Skip to content

Commit

Permalink
feat: rebase and upgrade to last nextjs version
Browse files Browse the repository at this point in the history
  • Loading branch information
theo-mesnil committed Mar 14, 2024
1 parent ff0192f commit 42c9ec4
Show file tree
Hide file tree
Showing 3 changed files with 139 additions and 153 deletions.
59 changes: 45 additions & 14 deletions packages/Accordion/docs/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"props": {
"setOpen": {
"defaultValue": null,
"description": "A callback that gets called when the `open` state changes.\n@param open The new open value.\n@example const [open, setOpen] = useState(false);\nconst disclosure = useDisclosureStore({ open, setOpen });",
"description": "A callback that gets called when the\n[`open`](https://ariakit.org/reference/disclosure-provider#open) state\nchanges.\n@example const [open, setOpen] = useState(false);\nconst disclosure = useDisclosureStore({ open, setOpen });",
"name": "setOpen",
"parent": {
"fileName": "welcome-ui/node_modules/@ariakit/react-core/cjs/disclosure/disclosure-store.d.ts",
Expand All @@ -22,7 +22,7 @@
},
"setMounted": {
"defaultValue": null,
"description": "A callback that gets called when the `mounted` state changes.\n@param mounted The new mounted value.\n@example const [mounted, setMounted] = useState(false);\nconst disclosure = useDisclosureStore({ setMounted });",
"description": "A callback that gets called when the `mounted` state changes.\n@example const [mounted, setMounted] = useState(false);\nconst disclosure = useDisclosureStore({ setMounted });",
"name": "setMounted",
"parent": {
"fileName": "welcome-ui/node_modules/@ariakit/react-core/cjs/disclosure/disclosure-store.d.ts",
Expand All @@ -39,12 +39,29 @@
"name": "(mounted: boolean) => void"
}
},
"defaultOpen": {
"defaultValue": {
"value": "false"
"disclosure": {
"defaultValue": null,
"description": "A reference to another disclosure store that controls another disclosure\ncomponent to keep them in sync. Element states like `contentElement` and\n`disclosureElement` won't be synced. For that, use the\n[`store`](https://ariakit.org/reference/disclosure-provider#store) prop\ninstead.\n\nLive examples:\n- [Command Menu](https://ariakit.org/examples/dialog-combobox-command-menu)",
"name": "disclosure",
"parent": {
"fileName": "welcome-ui/node_modules/@ariakit/react-core/cjs/disclosure/disclosure-store.d.ts",
"name": "DisclosureStoreOptions"
},
"description": "The default visibility state of the content.",
"name": "defaultOpen",
"declarations": [
{
"fileName": "welcome-ui/node_modules/@ariakit/react-core/cjs/disclosure/disclosure-store.d.ts",
"name": "DisclosureStoreOptions"
}
],
"required": false,
"type": {
"name": "DisclosureStore"
}
},
"animated": {
"defaultValue": null,
"description": "Determines whether the content should animate when it is shown or hidden.\n- If `true`, the `animating` state will be `true` when the content is shown\n or hidden and it will wait for a CSS animation/transition to end before\n becoming `false`.\n- If it's set to a number, the `animating` state will be `true` when the\n content is shown or hidden and it will wait for the number of\n milliseconds to pass before becoming `false`.\n@deprecated Manually setting the `animated` prop is no longer necessary.\nThis will be removed in a future release.",
"name": "animated",
"parent": {
"fileName": "welcome-ui/node_modules/@ariakit/core/cjs/disclosure/disclosure-store.d.ts",
"name": "DisclosureStoreOptions"
Expand All @@ -58,8 +75,11 @@
"required": false,
"type": {
"name": "enum",
"raw": "boolean",
"raw": "number | boolean",
"value": [
{
"value": "number"
},
{
"value": "false"
},
Expand All @@ -69,10 +89,12 @@
]
}
},
"disclosure": {
"defaultValue": null,
"description": "A reference to another disclosure store that controls another disclosure\ncomponent to keep them in sync. Element states like `contentElement` and\n`disclosureElement` won't be synced. For that, use the `store` prop\ninstead.",
"name": "disclosure",
"defaultOpen": {
"defaultValue": {
"value": "false"
},
"description": "Whether the content should be visible by default.",
"name": "defaultOpen",
"parent": {
"fileName": "welcome-ui/node_modules/@ariakit/core/cjs/disclosure/disclosure-store.d.ts",
"name": "DisclosureStoreOptions"
Expand All @@ -85,7 +107,16 @@
],
"required": false,
"type": {
"name": "DisclosureStoreFunctions & Store<DisclosureStoreState>"
"name": "enum",
"raw": "boolean",
"value": [
{
"value": "false"
},
{
"value": "true"
}
]
}
}
}
Expand Down Expand Up @@ -160,7 +191,7 @@
],
"required": true,
"type": {
"name": "DisclosureStoreFunctions & Store<DisclosureStoreState> & { useState: UseState<DisclosureStoreState>; }"
"name": "DisclosureStore"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
"@types/react": "18.2.23",
"@types/react-dom": "18.2.8",
"eslint": "8.50.0",
"eslint-config-next": "14.0.4",
"eslint-config-next": "14.1.3",
"gray-matter": "4.0.3",
"lodash": "4.17.21",
"marked": "9.0.3",
"next": "14.0.4",
"next": "14.1.3",
"prism-react-renderer": "2.1.0",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down

0 comments on commit 42c9ec4

Please sign in to comment.