@noodleseed/one 0.32.0 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/deploy.js +1 -1
- package/dist/deploy.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/project-scaffold-templates.d.ts +9 -6
- package/dist/project-scaffold-templates.d.ts.map +1 -1
- package/dist/project-scaffold-templates.js +3 -198
- package/dist/project-scaffold-templates.js.map +1 -1
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js +2 -1
- package/dist/project.js.map +1 -1
- package/dist/react-widget-build.js +10 -0
- package/dist/react-widget-build.js.map +1 -1
- package/dist/react.d.ts +2 -2
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +2 -1
- package/dist/react.js.map +1 -1
- package/dist/widget-scaffold-template.d.ts +4 -0
- package/dist/widget-scaffold-template.d.ts.map +1 -0
- package/dist/widget-scaffold-template.js +140 -0
- package/dist/widget-scaffold-template.js.map +1 -0
- package/dist/widget-showcase-template.d.ts +5 -0
- package/dist/widget-showcase-template.d.ts.map +1 -0
- package/dist/widget-showcase-template.js +478 -0
- package/dist/widget-showcase-template.js.map +1 -0
- package/node_modules/@floating-ui/core/LICENSE +20 -0
- package/node_modules/@floating-ui/core/README.md +4 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs +1 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.mjs +1184 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts +531 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +531 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.esm.js +1058 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +1058 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.js +1203 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.min.js +1 -0
- package/node_modules/@floating-ui/core/package.json +63 -0
- package/node_modules/@floating-ui/dom/LICENSE +20 -0
- package/node_modules/@floating-ui/dom/README.md +4 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs +1 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.mjs +956 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.mts +358 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts +358 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.esm.js +781 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +781 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.js +975 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.min.js +1 -0
- package/node_modules/@floating-ui/dom/package.json +70 -0
- package/node_modules/@floating-ui/react-dom/LICENSE +20 -0
- package/node_modules/@floating-ui/react-dom/README.md +3 -0
- package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.d.mts +307 -0
- package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.d.ts +307 -0
- package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.esm.js +406 -0
- package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +406 -0
- package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.umd.js +457 -0
- package/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.umd.min.js +1 -0
- package/node_modules/@floating-ui/react-dom/package.json +75 -0
- package/node_modules/@floating-ui/utils/LICENSE +20 -0
- package/node_modules/@floating-ui/utils/README.md +4 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts +103 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +103 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.mts +47 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.ts +47 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.esm.js +165 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +165 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.js +192 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.min.js +1 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.esm.js +136 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +136 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.js +167 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.min.js +1 -0
- package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.d.ts +47 -0
- package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.esm.js +165 -0
- package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.umd.js +192 -0
- package/node_modules/@floating-ui/utils/dom/package.json +6 -0
- package/node_modules/@floating-ui/utils/package.json +70 -0
- package/node_modules/@noodle-borg/agent-kit/dist/generated/example-files.js +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/generated/example-files.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/index.js +4 -0
- package/node_modules/@noodle-borg/agent-kit/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-refs.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-refs.js +5 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-refs.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/package.json +1 -1
- package/node_modules/@noodle-borg/authoring/dist/index.d.ts +0 -2
- package/node_modules/@noodle-borg/authoring/dist/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/index.js +0 -1
- package/node_modules/@noodle-borg/authoring/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react/bridge.d.ts +22 -2
- package/node_modules/@noodle-borg/authoring/dist/react/bridge.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react/bridge.js +15 -6
- package/node_modules/@noodle-borg/authoring/dist/react/bridge.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react/components.d.ts +399 -665
- package/node_modules/@noodle-borg/authoring/dist/react/components.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react/components.js +113 -22
- package/node_modules/@noodle-borg/authoring/dist/react/components.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react/display-components.d.ts +39 -0
- package/node_modules/@noodle-borg/authoring/dist/react/display-components.d.ts.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/react/display-components.js +55 -0
- package/node_modules/@noodle-borg/authoring/dist/react/display-components.js.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/react/field-context.d.ts +28 -0
- package/node_modules/@noodle-borg/authoring/dist/react/field-context.d.ts.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/react/field-context.js +20 -0
- package/node_modules/@noodle-borg/authoring/dist/react/field-context.js.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/react/form-components.d.ts +114 -0
- package/node_modules/@noodle-borg/authoring/dist/react/form-components.d.ts.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/react/form-components.js +147 -0
- package/node_modules/@noodle-borg/authoring/dist/react/form-components.js.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/react/hooks.d.ts +2 -2
- package/node_modules/@noodle-borg/authoring/dist/react/hooks.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react/hooks.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react/index.d.ts +4 -1
- package/node_modules/@noodle-borg/authoring/dist/react/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react/index.js +3 -0
- package/node_modules/@noodle-borg/authoring/dist/react/index.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react/native-components.d.ts +76 -76
- package/node_modules/@noodle-borg/authoring/dist/react/overlay-components.d.ts +67 -0
- package/node_modules/@noodle-borg/authoring/dist/react/overlay-components.d.ts.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/react/overlay-components.js +86 -0
- package/node_modules/@noodle-borg/authoring/dist/react/overlay-components.js.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/react/semantic-components.d.ts +971 -386
- package/node_modules/@noodle-borg/authoring/dist/react/semantic-components.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react/semantic-components.js +57 -10
- package/node_modules/@noodle-borg/authoring/dist/react/semantic-components.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react.d.ts +2 -2
- package/node_modules/@noodle-borg/authoring/dist/react.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react.js +2 -1
- package/node_modules/@noodle-borg/authoring/dist/react.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/server.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/server.js +20 -4
- package/node_modules/@noodle-borg/authoring/dist/server.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/package.json +7 -1
- package/node_modules/@noodle-borg/connector-defs/dist/index.d.ts +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/protocol/dist/widget/react-bridge-bootstrap.d.ts +1 -1
- package/node_modules/@noodle-borg/protocol/dist/widget/react-bridge-bootstrap.d.ts.map +1 -1
- package/node_modules/@noodle-borg/protocol/dist/widget/react-bridge-bootstrap.js +26 -2
- package/node_modules/@noodle-borg/protocol/dist/widget/react-bridge-bootstrap.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/connector-normalize.d.ts +6 -0
- package/node_modules/@noodle-borg/service/dist/connector-normalize.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/connector-normalize.js +80 -0
- package/node_modules/@noodle-borg/service/dist/connector-normalize.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/registry.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/registry.js +10 -4
- package/node_modules/@noodle-borg/service/dist/registry.js.map +1 -1
- package/node_modules/@radix-ui/primitive/LICENSE +21 -0
- package/node_modules/@radix-ui/primitive/README.md +3 -0
- package/node_modules/@radix-ui/primitive/dist/index.d.mts +20 -0
- package/node_modules/@radix-ui/primitive/dist/index.d.ts +20 -0
- package/node_modules/@radix-ui/primitive/dist/index.js +76 -0
- package/node_modules/@radix-ui/primitive/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/primitive/dist/index.mjs +53 -0
- package/node_modules/@radix-ui/primitive/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/primitive/package.json +47 -0
- package/node_modules/@radix-ui/react-arrow/LICENSE +21 -0
- package/node_modules/@radix-ui/react-arrow/README.md +3 -0
- package/node_modules/@radix-ui/react-arrow/dist/index.d.mts +10 -0
- package/node_modules/@radix-ui/react-arrow/dist/index.d.ts +10 -0
- package/node_modules/@radix-ui/react-arrow/dist/index.js +60 -0
- package/node_modules/@radix-ui/react-arrow/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-arrow/dist/index.mjs +27 -0
- package/node_modules/@radix-ui/react-arrow/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-arrow/package.json +68 -0
- package/node_modules/@radix-ui/react-collection/LICENSE +21 -0
- package/node_modules/@radix-ui/react-collection/README.md +3 -0
- package/node_modules/@radix-ui/react-collection/dist/index.d.mts +98 -0
- package/node_modules/@radix-ui/react-collection/dist/index.d.ts +98 -0
- package/node_modules/@radix-ui/react-collection/dist/index.js +577 -0
- package/node_modules/@radix-ui/react-collection/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-collection/dist/index.mjs +545 -0
- package/node_modules/@radix-ui/react-collection/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-collection/package.json +71 -0
- package/node_modules/@radix-ui/react-compose-refs/LICENSE +21 -0
- package/node_modules/@radix-ui/react-compose-refs/README.md +3 -0
- package/node_modules/@radix-ui/react-compose-refs/dist/index.d.mts +15 -0
- package/node_modules/@radix-ui/react-compose-refs/dist/index.d.ts +15 -0
- package/node_modules/@radix-ui/react-compose-refs/dist/index.js +74 -0
- package/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-compose-refs/dist/index.mjs +41 -0
- package/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-compose-refs/package.json +60 -0
- package/node_modules/@radix-ui/react-context/LICENSE +21 -0
- package/node_modules/@radix-ui/react-context/README.md +3 -0
- package/node_modules/@radix-ui/react-context/dist/index.d.mts +21 -0
- package/node_modules/@radix-ui/react-context/dist/index.d.ts +21 -0
- package/node_modules/@radix-ui/react-context/dist/index.js +116 -0
- package/node_modules/@radix-ui/react-context/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-context/dist/index.mjs +83 -0
- package/node_modules/@radix-ui/react-context/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-context/package.json +60 -0
- package/node_modules/@radix-ui/react-dialog/LICENSE +21 -0
- package/node_modules/@radix-ui/react-dialog/README.md +3 -0
- package/node_modules/@radix-ui/react-dialog/dist/index.d.mts +99 -0
- package/node_modules/@radix-ui/react-dialog/dist/index.d.ts +99 -0
- package/node_modules/@radix-ui/react-dialog/dist/index.js +330 -0
- package/node_modules/@radix-ui/react-dialog/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-dialog/dist/index.mjs +298 -0
- package/node_modules/@radix-ui/react-dialog/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-dialog/package.json +81 -0
- package/node_modules/@radix-ui/react-direction/LICENSE +21 -0
- package/node_modules/@radix-ui/react-direction/README.md +3 -0
- package/node_modules/@radix-ui/react-direction/dist/index.d.mts +12 -0
- package/node_modules/@radix-ui/react-direction/dist/index.d.ts +12 -0
- package/node_modules/@radix-ui/react-direction/dist/index.js +53 -0
- package/node_modules/@radix-ui/react-direction/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-direction/dist/index.mjs +21 -0
- package/node_modules/@radix-ui/react-direction/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-direction/package.json +60 -0
- package/node_modules/@radix-ui/react-dismissable-layer/LICENSE +21 -0
- package/node_modules/@radix-ui/react-dismissable-layer/README.md +3 -0
- package/node_modules/@radix-ui/react-dismissable-layer/dist/index.d.mts +62 -0
- package/node_modules/@radix-ui/react-dismissable-layer/dist/index.d.ts +62 -0
- package/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +364 -0
- package/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +332 -0
- package/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-dismissable-layer/package.json +73 -0
- package/node_modules/@radix-ui/react-dropdown-menu/LICENSE +21 -0
- package/node_modules/@radix-ui/react-dropdown-menu/README.md +3 -0
- package/node_modules/@radix-ui/react-dropdown-menu/dist/index.d.mts +97 -0
- package/node_modules/@radix-ui/react-dropdown-menu/dist/index.d.ts +97 -0
- package/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +338 -0
- package/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs +306 -0
- package/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-dropdown-menu/package.json +76 -0
- package/node_modules/@radix-ui/react-focus-guards/LICENSE +21 -0
- package/node_modules/@radix-ui/react-focus-guards/README.md +3 -0
- package/node_modules/@radix-ui/react-focus-guards/dist/index.d.mts +13 -0
- package/node_modules/@radix-ui/react-focus-guards/dist/index.d.ts +13 -0
- package/node_modules/@radix-ui/react-focus-guards/dist/index.js +81 -0
- package/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +49 -0
- package/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-focus-guards/package.json +60 -0
- package/node_modules/@radix-ui/react-focus-scope/LICENSE +21 -0
- package/node_modules/@radix-ui/react-focus-scope/README.md +3 -0
- package/node_modules/@radix-ui/react-focus-scope/dist/index.d.mts +32 -0
- package/node_modules/@radix-ui/react-focus-scope/dist/index.d.ts +32 -0
- package/node_modules/@radix-ui/react-focus-scope/dist/index.js +246 -0
- package/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-focus-scope/dist/index.mjs +214 -0
- package/node_modules/@radix-ui/react-focus-scope/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-focus-scope/package.json +70 -0
- package/node_modules/@radix-ui/react-id/LICENSE +21 -0
- package/node_modules/@radix-ui/react-id/README.md +3 -0
- package/node_modules/@radix-ui/react-id/dist/index.d.mts +3 -0
- package/node_modules/@radix-ui/react-id/dist/index.d.ts +3 -0
- package/node_modules/@radix-ui/react-id/dist/index.js +49 -0
- package/node_modules/@radix-ui/react-id/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-id/dist/index.mjs +16 -0
- package/node_modules/@radix-ui/react-id/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-id/package.json +63 -0
- package/node_modules/@radix-ui/react-menu/LICENSE +21 -0
- package/node_modules/@radix-ui/react-menu/README.md +3 -0
- package/node_modules/@radix-ui/react-menu/dist/index.d.mts +175 -0
- package/node_modules/@radix-ui/react-menu/dist/index.d.ts +175 -0
- package/node_modules/@radix-ui/react-menu/dist/index.js +913 -0
- package/node_modules/@radix-ui/react-menu/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-menu/dist/index.mjs +881 -0
- package/node_modules/@radix-ui/react-menu/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-menu/package.json +86 -0
- package/node_modules/@radix-ui/react-popover/LICENSE +21 -0
- package/node_modules/@radix-ui/react-popover/README.md +3 -0
- package/node_modules/@radix-ui/react-popover/dist/index.d.mts +85 -0
- package/node_modules/@radix-ui/react-popover/dist/index.d.ts +85 -0
- package/node_modules/@radix-ui/react-popover/dist/index.js +353 -0
- package/node_modules/@radix-ui/react-popover/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-popover/dist/index.mjs +321 -0
- package/node_modules/@radix-ui/react-popover/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-popover/package.json +82 -0
- package/node_modules/@radix-ui/react-popper/LICENSE +21 -0
- package/node_modules/@radix-ui/react-popper/README.md +3 -0
- package/node_modules/@radix-ui/react-popper/dist/index.d.mts +46 -0
- package/node_modules/@radix-ui/react-popper/dist/index.d.ts +46 -0
- package/node_modules/@radix-ui/react-popper/dist/index.js +384 -0
- package/node_modules/@radix-ui/react-popper/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-popper/dist/index.mjs +362 -0
- package/node_modules/@radix-ui/react-popper/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-popper/package.json +78 -0
- package/node_modules/@radix-ui/react-portal/LICENSE +21 -0
- package/node_modules/@radix-ui/react-portal/README.md +3 -0
- package/node_modules/@radix-ui/react-portal/dist/index.d.mts +14 -0
- package/node_modules/@radix-ui/react-portal/dist/index.d.ts +14 -0
- package/node_modules/@radix-ui/react-portal/dist/index.js +55 -0
- package/node_modules/@radix-ui/react-portal/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-portal/dist/index.mjs +23 -0
- package/node_modules/@radix-ui/react-portal/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-portal/package.json +69 -0
- package/node_modules/@radix-ui/react-presence/LICENSE +21 -0
- package/node_modules/@radix-ui/react-presence/README.md +3 -0
- package/node_modules/@radix-ui/react-presence/dist/index.d.mts +12 -0
- package/node_modules/@radix-ui/react-presence/dist/index.d.ts +12 -0
- package/node_modules/@radix-ui/react-presence/dist/index.js +204 -0
- package/node_modules/@radix-ui/react-presence/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-presence/dist/index.mjs +172 -0
- package/node_modules/@radix-ui/react-presence/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-presence/package.json +68 -0
- package/node_modules/@radix-ui/react-primitive/LICENSE +21 -0
- package/node_modules/@radix-ui/react-primitive/README.md +3 -0
- package/node_modules/@radix-ui/react-primitive/dist/index.d.mts +57 -0
- package/node_modules/@radix-ui/react-primitive/dist/index.d.ts +57 -0
- package/node_modules/@radix-ui/react-primitive/dist/index.js +80 -0
- package/node_modules/@radix-ui/react-primitive/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-primitive/dist/index.mjs +47 -0
- package/node_modules/@radix-ui/react-primitive/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-primitive/package.json +68 -0
- package/node_modules/@radix-ui/react-roving-focus/LICENSE +21 -0
- package/node_modules/@radix-ui/react-roving-focus/README.md +3 -0
- package/node_modules/@radix-ui/react-roving-focus/dist/index.d.mts +49 -0
- package/node_modules/@radix-ui/react-roving-focus/dist/index.d.ts +49 -0
- package/node_modules/@radix-ui/react-roving-focus/dist/index.js +263 -0
- package/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-roving-focus/dist/index.mjs +231 -0
- package/node_modules/@radix-ui/react-roving-focus/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-roving-focus/package.json +76 -0
- package/node_modules/@radix-ui/react-slot/LICENSE +21 -0
- package/node_modules/@radix-ui/react-slot/README.md +3 -0
- package/node_modules/@radix-ui/react-slot/dist/index.d.mts +29 -0
- package/node_modules/@radix-ui/react-slot/dist/index.d.ts +29 -0
- package/node_modules/@radix-ui/react-slot/dist/index.js +170 -0
- package/node_modules/@radix-ui/react-slot/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-slot/dist/index.mjs +137 -0
- package/node_modules/@radix-ui/react-slot/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-slot/package.json +63 -0
- package/node_modules/@radix-ui/react-tooltip/LICENSE +21 -0
- package/node_modules/@radix-ui/react-tooltip/README.md +3 -0
- package/node_modules/@radix-ui/react-tooltip/dist/index.d.mts +101 -0
- package/node_modules/@radix-ui/react-tooltip/dist/index.d.ts +101 -0
- package/node_modules/@radix-ui/react-tooltip/dist/index.js +543 -0
- package/node_modules/@radix-ui/react-tooltip/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-tooltip/dist/index.mjs +511 -0
- package/node_modules/@radix-ui/react-tooltip/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-tooltip/package.json +79 -0
- package/node_modules/@radix-ui/react-use-callback-ref/LICENSE +21 -0
- package/node_modules/@radix-ui/react-use-callback-ref/README.md +3 -0
- package/node_modules/@radix-ui/react-use-callback-ref/dist/index.d.mts +7 -0
- package/node_modules/@radix-ui/react-use-callback-ref/dist/index.d.ts +7 -0
- package/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +46 -0
- package/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs +13 -0
- package/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-use-callback-ref/package.json +60 -0
- package/node_modules/@radix-ui/react-use-controllable-state/LICENSE +21 -0
- package/node_modules/@radix-ui/react-use-controllable-state/README.md +3 -0
- package/node_modules/@radix-ui/react-use-controllable-state/dist/index.d.mts +40 -0
- package/node_modules/@radix-ui/react-use-controllable-state/dist/index.d.ts +40 -0
- package/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +169 -0
- package/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs +136 -0
- package/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-use-controllable-state/package.json +64 -0
- package/node_modules/@radix-ui/react-use-effect-event/LICENSE +21 -0
- package/node_modules/@radix-ui/react-use-effect-event/README.md +5 -0
- package/node_modules/@radix-ui/react-use-effect-event/dist/index.d.mts +8 -0
- package/node_modules/@radix-ui/react-use-effect-event/dist/index.d.ts +8 -0
- package/node_modules/@radix-ui/react-use-effect-event/dist/index.js +60 -0
- package/node_modules/@radix-ui/react-use-effect-event/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-use-effect-event/dist/index.mjs +27 -0
- package/node_modules/@radix-ui/react-use-effect-event/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-use-effect-event/package.json +65 -0
- package/node_modules/@radix-ui/react-use-effect-event/src/index.ts +1 -0
- package/node_modules/@radix-ui/react-use-effect-event/src/use-effect-event.tsx +36 -0
- package/node_modules/@radix-ui/react-use-escape-keydown/LICENSE +21 -0
- package/node_modules/@radix-ui/react-use-escape-keydown/README.md +3 -0
- package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.d.mts +6 -0
- package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.d.ts +6 -0
- package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +52 -0
- package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs +19 -0
- package/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-use-escape-keydown/package.json +63 -0
- package/node_modules/@radix-ui/react-use-layout-effect/LICENSE +21 -0
- package/node_modules/@radix-ui/react-use-layout-effect/README.md +3 -0
- package/node_modules/@radix-ui/react-use-layout-effect/dist/index.d.mts +12 -0
- package/node_modules/@radix-ui/react-use-layout-effect/dist/index.d.ts +12 -0
- package/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +41 -0
- package/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs +8 -0
- package/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-use-layout-effect/package.json +60 -0
- package/node_modules/@radix-ui/react-use-rect/LICENSE +21 -0
- package/node_modules/@radix-ui/react-use-rect/README.md +3 -0
- package/node_modules/@radix-ui/react-use-rect/dist/index.d.mts +9 -0
- package/node_modules/@radix-ui/react-use-rect/dist/index.d.ts +9 -0
- package/node_modules/@radix-ui/react-use-rect/dist/index.js +54 -0
- package/node_modules/@radix-ui/react-use-rect/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-use-rect/dist/index.mjs +21 -0
- package/node_modules/@radix-ui/react-use-rect/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-use-rect/package.json +63 -0
- package/node_modules/@radix-ui/react-use-size/LICENSE +21 -0
- package/node_modules/@radix-ui/react-use-size/README.md +3 -0
- package/node_modules/@radix-ui/react-use-size/dist/index.d.mts +6 -0
- package/node_modules/@radix-ui/react-use-size/dist/index.d.ts +6 -0
- package/node_modules/@radix-ui/react-use-size/dist/index.js +74 -0
- package/node_modules/@radix-ui/react-use-size/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-use-size/dist/index.mjs +41 -0
- package/node_modules/@radix-ui/react-use-size/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-use-size/package.json +63 -0
- package/node_modules/@radix-ui/react-visually-hidden/LICENSE +21 -0
- package/node_modules/@radix-ui/react-visually-hidden/README.md +3 -0
- package/node_modules/@radix-ui/react-visually-hidden/dist/index.d.mts +22 -0
- package/node_modules/@radix-ui/react-visually-hidden/dist/index.d.ts +22 -0
- package/node_modules/@radix-ui/react-visually-hidden/dist/index.js +71 -0
- package/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs +38 -0
- package/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/react-visually-hidden/package.json +68 -0
- package/node_modules/@radix-ui/rect/LICENSE +21 -0
- package/node_modules/@radix-ui/rect/README.md +3 -0
- package/node_modules/@radix-ui/rect/dist/index.d.mts +16 -0
- package/node_modules/@radix-ui/rect/dist/index.d.ts +16 -0
- package/node_modules/@radix-ui/rect/dist/index.js +73 -0
- package/node_modules/@radix-ui/rect/dist/index.js.map +7 -0
- package/node_modules/@radix-ui/rect/dist/index.mjs +50 -0
- package/node_modules/@radix-ui/rect/dist/index.mjs.map +7 -0
- package/node_modules/@radix-ui/rect/package.json +47 -0
- package/node_modules/aria-hidden/LICENSE +21 -0
- package/node_modules/aria-hidden/README.md +99 -0
- package/node_modules/aria-hidden/dist/es2015/index.d.ts +29 -0
- package/node_modules/aria-hidden/dist/es2015/index.js +167 -0
- package/node_modules/aria-hidden/dist/es2019/index.d.ts +29 -0
- package/node_modules/aria-hidden/dist/es2019/index.js +156 -0
- package/node_modules/aria-hidden/dist/es5/index.d.ts +29 -0
- package/node_modules/aria-hidden/dist/es5/index.js +174 -0
- package/node_modules/aria-hidden/package.json +71 -0
- package/node_modules/detect-node-es/LICENSE +21 -0
- package/node_modules/detect-node-es/Readme.md +39 -0
- package/node_modules/detect-node-es/es5/browser.js +2 -0
- package/node_modules/detect-node-es/es5/node.d.ts +4 -0
- package/node_modules/detect-node-es/es5/node.js +2 -0
- package/node_modules/detect-node-es/esm/browser.js +2 -0
- package/node_modules/detect-node-es/esm/node.js +2 -0
- package/node_modules/detect-node-es/package.json +29 -0
- package/node_modules/get-nonce/LICENSE +21 -0
- package/node_modules/get-nonce/README.md +54 -0
- package/node_modules/get-nonce/dist/es2015/index.d.ts +2 -0
- package/node_modules/get-nonce/dist/es2015/index.js +13 -0
- package/node_modules/get-nonce/dist/es5/index.d.ts +2 -0
- package/node_modules/get-nonce/dist/es5/index.js +15 -0
- package/node_modules/get-nonce/package.json +68 -0
- package/node_modules/react-remove-scroll/LICENSE +21 -0
- package/node_modules/react-remove-scroll/README.md +153 -0
- package/node_modules/react-remove-scroll/UI/UI.d.ts +1 -0
- package/node_modules/react-remove-scroll/UI/package.json +8 -0
- package/node_modules/react-remove-scroll/dist/es2015/Combination.d.ts +3 -0
- package/node_modules/react-remove-scroll/dist/es2015/Combination.js +7 -0
- package/node_modules/react-remove-scroll/dist/es2015/SideEffect.d.ts +5 -0
- package/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +164 -0
- package/node_modules/react-remove-scroll/dist/es2015/UI.d.ts +7 -0
- package/node_modules/react-remove-scroll/dist/es2015/UI.js +36 -0
- package/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.d.ts +3 -0
- package/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +19 -0
- package/node_modules/react-remove-scroll/dist/es2015/handleScroll.d.ts +3 -0
- package/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +108 -0
- package/node_modules/react-remove-scroll/dist/es2015/index.d.ts +2 -0
- package/node_modules/react-remove-scroll/dist/es2015/index.js +2 -0
- package/node_modules/react-remove-scroll/dist/es2015/medium.d.ts +2 -0
- package/node_modules/react-remove-scroll/dist/es2015/medium.js +2 -0
- package/node_modules/react-remove-scroll/dist/es2015/pinchAndZoom.d.ts +8 -0
- package/node_modules/react-remove-scroll/dist/es2015/pinchAndZoom.js +33 -0
- package/node_modules/react-remove-scroll/dist/es2015/sidecar.d.ts +2 -0
- package/node_modules/react-remove-scroll/dist/es2015/sidecar.js +4 -0
- package/node_modules/react-remove-scroll/dist/es2015/types.d.ts +104 -0
- package/node_modules/react-remove-scroll/dist/es2015/types.js +1 -0
- package/node_modules/react-remove-scroll/dist/es2019/Combination.d.ts +3 -0
- package/node_modules/react-remove-scroll/dist/es2019/Combination.js +6 -0
- package/node_modules/react-remove-scroll/dist/es2019/SideEffect.d.ts +5 -0
- package/node_modules/react-remove-scroll/dist/es2019/SideEffect.js +162 -0
- package/node_modules/react-remove-scroll/dist/es2019/UI.d.ts +7 -0
- package/node_modules/react-remove-scroll/dist/es2019/UI.js +41 -0
- package/node_modules/react-remove-scroll/dist/es2019/aggresiveCapture.d.ts +3 -0
- package/node_modules/react-remove-scroll/dist/es2019/aggresiveCapture.js +19 -0
- package/node_modules/react-remove-scroll/dist/es2019/handleScroll.d.ts +3 -0
- package/node_modules/react-remove-scroll/dist/es2019/handleScroll.js +96 -0
- package/node_modules/react-remove-scroll/dist/es2019/index.d.ts +2 -0
- package/node_modules/react-remove-scroll/dist/es2019/index.js +2 -0
- package/node_modules/react-remove-scroll/dist/es2019/medium.d.ts +2 -0
- package/node_modules/react-remove-scroll/dist/es2019/medium.js +2 -0
- package/node_modules/react-remove-scroll/dist/es2019/pinchAndZoom.d.ts +8 -0
- package/node_modules/react-remove-scroll/dist/es2019/pinchAndZoom.js +33 -0
- package/node_modules/react-remove-scroll/dist/es2019/sidecar.d.ts +2 -0
- package/node_modules/react-remove-scroll/dist/es2019/sidecar.js +4 -0
- package/node_modules/react-remove-scroll/dist/es2019/types.d.ts +104 -0
- package/node_modules/react-remove-scroll/dist/es2019/types.js +1 -0
- package/node_modules/react-remove-scroll/dist/es5/Combination.d.ts +3 -0
- package/node_modules/react-remove-scroll/dist/es5/Combination.js +9 -0
- package/node_modules/react-remove-scroll/dist/es5/SideEffect.d.ts +5 -0
- package/node_modules/react-remove-scroll/dist/es5/SideEffect.js +170 -0
- package/node_modules/react-remove-scroll/dist/es5/UI.d.ts +7 -0
- package/node_modules/react-remove-scroll/dist/es5/UI.js +39 -0
- package/node_modules/react-remove-scroll/dist/es5/aggresiveCapture.d.ts +3 -0
- package/node_modules/react-remove-scroll/dist/es5/aggresiveCapture.js +22 -0
- package/node_modules/react-remove-scroll/dist/es5/handleScroll.d.ts +3 -0
- package/node_modules/react-remove-scroll/dist/es5/handleScroll.js +113 -0
- package/node_modules/react-remove-scroll/dist/es5/index.d.ts +2 -0
- package/node_modules/react-remove-scroll/dist/es5/index.js +6 -0
- package/node_modules/react-remove-scroll/dist/es5/medium.d.ts +2 -0
- package/node_modules/react-remove-scroll/dist/es5/medium.js +5 -0
- package/node_modules/react-remove-scroll/dist/es5/pinchAndZoom.d.ts +8 -0
- package/node_modules/react-remove-scroll/dist/es5/pinchAndZoom.js +37 -0
- package/node_modules/react-remove-scroll/dist/es5/sidecar.d.ts +2 -0
- package/node_modules/react-remove-scroll/dist/es5/sidecar.js +6 -0
- package/node_modules/react-remove-scroll/dist/es5/types.d.ts +104 -0
- package/node_modules/react-remove-scroll/dist/es5/types.js +2 -0
- package/node_modules/react-remove-scroll/package.json +98 -0
- package/node_modules/react-remove-scroll/sidecar/package.json +7 -0
- package/node_modules/react-remove-scroll/sidecar/sidecar.d.ts +5 -0
- package/node_modules/react-remove-scroll-bar/README.md +52 -0
- package/node_modules/react-remove-scroll-bar/constants/package.json +8 -0
- package/node_modules/react-remove-scroll-bar/dist/es2015/component.d.ts +13 -0
- package/node_modules/react-remove-scroll-bar/dist/es2015/component.js +53 -0
- package/node_modules/react-remove-scroll-bar/dist/es2015/constants.d.ts +8 -0
- package/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +8 -0
- package/node_modules/react-remove-scroll-bar/dist/es2015/index.d.ts +4 -0
- package/node_modules/react-remove-scroll-bar/dist/es2015/index.js +4 -0
- package/node_modules/react-remove-scroll-bar/dist/es2015/utils.d.ts +14 -0
- package/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +29 -0
- package/node_modules/react-remove-scroll-bar/dist/es2019/component.d.ts +13 -0
- package/node_modules/react-remove-scroll-bar/dist/es2019/component.js +85 -0
- package/node_modules/react-remove-scroll-bar/dist/es2019/constants.d.ts +8 -0
- package/node_modules/react-remove-scroll-bar/dist/es2019/constants.js +8 -0
- package/node_modules/react-remove-scroll-bar/dist/es2019/index.d.ts +4 -0
- package/node_modules/react-remove-scroll-bar/dist/es2019/index.js +4 -0
- package/node_modules/react-remove-scroll-bar/dist/es2019/utils.d.ts +14 -0
- package/node_modules/react-remove-scroll-bar/dist/es2019/utils.js +28 -0
- package/node_modules/react-remove-scroll-bar/dist/es5/component.d.ts +13 -0
- package/node_modules/react-remove-scroll-bar/dist/es5/component.js +59 -0
- package/node_modules/react-remove-scroll-bar/dist/es5/constants.d.ts +8 -0
- package/node_modules/react-remove-scroll-bar/dist/es5/constants.js +11 -0
- package/node_modules/react-remove-scroll-bar/dist/es5/index.d.ts +4 -0
- package/node_modules/react-remove-scroll-bar/dist/es5/index.js +12 -0
- package/node_modules/react-remove-scroll-bar/dist/es5/utils.d.ts +14 -0
- package/node_modules/react-remove-scroll-bar/dist/es5/utils.js +33 -0
- package/node_modules/react-remove-scroll-bar/package.json +85 -0
- package/node_modules/react-style-singleton/LICENSE +21 -0
- package/node_modules/react-style-singleton/README.md +45 -0
- package/node_modules/react-style-singleton/dist/es2015/component.d.ts +21 -0
- package/node_modules/react-style-singleton/dist/es2015/component.js +16 -0
- package/node_modules/react-style-singleton/dist/es2015/hook.d.ts +23 -0
- package/node_modules/react-style-singleton/dist/es2015/hook.js +22 -0
- package/node_modules/react-style-singleton/dist/es2015/index.d.ts +3 -0
- package/node_modules/react-style-singleton/dist/es2015/index.js +3 -0
- package/node_modules/react-style-singleton/dist/es2015/singleton.d.ts +4 -0
- package/node_modules/react-style-singleton/dist/es2015/singleton.js +48 -0
- package/node_modules/react-style-singleton/dist/es2019/component.d.ts +21 -0
- package/node_modules/react-style-singleton/dist/es2019/component.js +15 -0
- package/node_modules/react-style-singleton/dist/es2019/hook.d.ts +23 -0
- package/node_modules/react-style-singleton/dist/es2019/hook.js +22 -0
- package/node_modules/react-style-singleton/dist/es2019/index.d.ts +3 -0
- package/node_modules/react-style-singleton/dist/es2019/index.js +3 -0
- package/node_modules/react-style-singleton/dist/es2019/singleton.d.ts +4 -0
- package/node_modules/react-style-singleton/dist/es2019/singleton.js +48 -0
- package/node_modules/react-style-singleton/dist/es5/component.d.ts +21 -0
- package/node_modules/react-style-singleton/dist/es5/component.js +20 -0
- package/node_modules/react-style-singleton/dist/es5/hook.d.ts +23 -0
- package/node_modules/react-style-singleton/dist/es5/hook.js +27 -0
- package/node_modules/react-style-singleton/dist/es5/index.d.ts +3 -0
- package/node_modules/react-style-singleton/dist/es5/index.js +9 -0
- package/node_modules/react-style-singleton/dist/es5/singleton.d.ts +4 -0
- package/node_modules/react-style-singleton/dist/es5/singleton.js +52 -0
- package/node_modules/react-style-singleton/dist/index.js +1 -0
- package/node_modules/react-style-singleton/package.json +90 -0
- package/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/tslib/README.md +164 -0
- package/node_modules/tslib/SECURITY.md +41 -0
- package/node_modules/tslib/modules/index.d.ts +38 -0
- package/node_modules/tslib/modules/index.js +70 -0
- package/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/tslib/package.json +47 -0
- package/node_modules/tslib/tslib.d.ts +460 -0
- package/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/tslib/tslib.es6.js +402 -0
- package/node_modules/tslib/tslib.es6.mjs +401 -0
- package/node_modules/tslib/tslib.html +1 -0
- package/node_modules/tslib/tslib.js +484 -0
- package/node_modules/use-callback-ref/LICENSE +21 -0
- package/node_modules/use-callback-ref/README.md +170 -0
- package/node_modules/use-callback-ref/dist/es2015/assignRef.d.ts +15 -0
- package/node_modules/use-callback-ref/dist/es2015/assignRef.js +22 -0
- package/node_modules/use-callback-ref/dist/es2015/createRef.d.ts +10 -0
- package/node_modules/use-callback-ref/dist/es2015/createRef.js +23 -0
- package/node_modules/use-callback-ref/dist/es2015/index.d.ts +8 -0
- package/node_modules/use-callback-ref/dist/es2015/index.js +12 -0
- package/node_modules/use-callback-ref/dist/es2015/mergeRef.d.ts +16 -0
- package/node_modules/use-callback-ref/dist/es2015/mergeRef.js +18 -0
- package/node_modules/use-callback-ref/dist/es2015/refToCallback.d.ts +24 -0
- package/node_modules/use-callback-ref/dist/es2015/refToCallback.js +48 -0
- package/node_modules/use-callback-ref/dist/es2015/transformRef.d.ts +11 -0
- package/node_modules/use-callback-ref/dist/es2015/transformRef.js +14 -0
- package/node_modules/use-callback-ref/dist/es2015/types.d.ts +5 -0
- package/node_modules/use-callback-ref/dist/es2015/types.js +1 -0
- package/node_modules/use-callback-ref/dist/es2015/useMergeRef.d.ts +17 -0
- package/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +45 -0
- package/node_modules/use-callback-ref/dist/es2015/useRef.d.ts +16 -0
- package/node_modules/use-callback-ref/dist/es2015/useRef.js +39 -0
- package/node_modules/use-callback-ref/dist/es2015/useTransformRef.d.ts +15 -0
- package/node_modules/use-callback-ref/dist/es2015/useTransformRef.js +18 -0
- package/node_modules/use-callback-ref/dist/es2019/assignRef.d.ts +15 -0
- package/node_modules/use-callback-ref/dist/es2019/assignRef.js +22 -0
- package/node_modules/use-callback-ref/dist/es2019/createRef.d.ts +10 -0
- package/node_modules/use-callback-ref/dist/es2019/createRef.js +23 -0
- package/node_modules/use-callback-ref/dist/es2019/index.d.ts +8 -0
- package/node_modules/use-callback-ref/dist/es2019/index.js +12 -0
- package/node_modules/use-callback-ref/dist/es2019/mergeRef.d.ts +16 -0
- package/node_modules/use-callback-ref/dist/es2019/mergeRef.js +18 -0
- package/node_modules/use-callback-ref/dist/es2019/refToCallback.d.ts +24 -0
- package/node_modules/use-callback-ref/dist/es2019/refToCallback.js +48 -0
- package/node_modules/use-callback-ref/dist/es2019/transformRef.d.ts +11 -0
- package/node_modules/use-callback-ref/dist/es2019/transformRef.js +14 -0
- package/node_modules/use-callback-ref/dist/es2019/types.d.ts +5 -0
- package/node_modules/use-callback-ref/dist/es2019/types.js +1 -0
- package/node_modules/use-callback-ref/dist/es2019/useMergeRef.d.ts +17 -0
- package/node_modules/use-callback-ref/dist/es2019/useMergeRef.js +43 -0
- package/node_modules/use-callback-ref/dist/es2019/useRef.d.ts +16 -0
- package/node_modules/use-callback-ref/dist/es2019/useRef.js +39 -0
- package/node_modules/use-callback-ref/dist/es2019/useTransformRef.d.ts +15 -0
- package/node_modules/use-callback-ref/dist/es2019/useTransformRef.js +18 -0
- package/node_modules/use-callback-ref/dist/es5/assignRef.d.ts +15 -0
- package/node_modules/use-callback-ref/dist/es5/assignRef.js +26 -0
- package/node_modules/use-callback-ref/dist/es5/createRef.d.ts +10 -0
- package/node_modules/use-callback-ref/dist/es5/createRef.js +27 -0
- package/node_modules/use-callback-ref/dist/es5/index.d.ts +8 -0
- package/node_modules/use-callback-ref/dist/es5/index.js +24 -0
- package/node_modules/use-callback-ref/dist/es5/mergeRef.d.ts +16 -0
- package/node_modules/use-callback-ref/dist/es5/mergeRef.js +22 -0
- package/node_modules/use-callback-ref/dist/es5/refToCallback.d.ts +24 -0
- package/node_modules/use-callback-ref/dist/es5/refToCallback.js +53 -0
- package/node_modules/use-callback-ref/dist/es5/transformRef.d.ts +11 -0
- package/node_modules/use-callback-ref/dist/es5/transformRef.js +18 -0
- package/node_modules/use-callback-ref/dist/es5/types.d.ts +5 -0
- package/node_modules/use-callback-ref/dist/es5/types.js +2 -0
- package/node_modules/use-callback-ref/dist/es5/useMergeRef.d.ts +17 -0
- package/node_modules/use-callback-ref/dist/es5/useMergeRef.js +50 -0
- package/node_modules/use-callback-ref/dist/es5/useRef.d.ts +16 -0
- package/node_modules/use-callback-ref/dist/es5/useRef.js +43 -0
- package/node_modules/use-callback-ref/dist/es5/useTransformRef.d.ts +15 -0
- package/node_modules/use-callback-ref/dist/es5/useTransformRef.js +22 -0
- package/node_modules/use-callback-ref/package.json +85 -0
- package/node_modules/use-sidecar/LICENSE +21 -0
- package/node_modules/use-sidecar/README.md +349 -0
- package/node_modules/use-sidecar/dist/es2015/config.d.ts +5 -0
- package/node_modules/use-sidecar/dist/es2015/config.js +6 -0
- package/node_modules/use-sidecar/dist/es2015/env.d.ts +4 -0
- package/node_modules/use-sidecar/dist/es2015/env.js +5 -0
- package/node_modules/use-sidecar/dist/es2015/exports.d.ts +3 -0
- package/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
- package/node_modules/use-sidecar/dist/es2015/hoc.d.ts +3 -0
- package/node_modules/use-sidecar/dist/es2015/hoc.js +15 -0
- package/node_modules/use-sidecar/dist/es2015/hook.d.ts +2 -0
- package/node_modules/use-sidecar/dist/es2015/hook.js +41 -0
- package/node_modules/use-sidecar/dist/es2015/index.d.ts +7 -0
- package/node_modules/use-sidecar/dist/es2015/index.js +6 -0
- package/node_modules/use-sidecar/dist/es2015/medium.d.ts +3 -0
- package/node_modules/use-sidecar/dist/es2015/medium.js +78 -0
- package/node_modules/use-sidecar/dist/es2015/renderProp.d.ts +9 -0
- package/node_modules/use-sidecar/dist/es2015/renderProp.js +35 -0
- package/node_modules/use-sidecar/dist/es2015/types.d.ts +47 -0
- package/node_modules/use-sidecar/dist/es2015/types.js +1 -0
- package/node_modules/use-sidecar/dist/es2019/config.d.ts +5 -0
- package/node_modules/use-sidecar/dist/es2019/config.js +6 -0
- package/node_modules/use-sidecar/dist/es2019/env.d.ts +4 -0
- package/node_modules/use-sidecar/dist/es2019/env.js +5 -0
- package/node_modules/use-sidecar/dist/es2019/exports.d.ts +3 -0
- package/node_modules/use-sidecar/dist/es2019/exports.js +16 -0
- package/node_modules/use-sidecar/dist/es2019/hoc.d.ts +3 -0
- package/node_modules/use-sidecar/dist/es2019/hoc.js +14 -0
- package/node_modules/use-sidecar/dist/es2019/hook.d.ts +2 -0
- package/node_modules/use-sidecar/dist/es2019/hook.js +41 -0
- package/node_modules/use-sidecar/dist/es2019/index.d.ts +7 -0
- package/node_modules/use-sidecar/dist/es2019/index.js +6 -0
- package/node_modules/use-sidecar/dist/es2019/medium.d.ts +3 -0
- package/node_modules/use-sidecar/dist/es2019/medium.js +78 -0
- package/node_modules/use-sidecar/dist/es2019/renderProp.d.ts +9 -0
- package/node_modules/use-sidecar/dist/es2019/renderProp.js +28 -0
- package/node_modules/use-sidecar/dist/es2019/types.d.ts +47 -0
- package/node_modules/use-sidecar/dist/es2019/types.js +1 -0
- package/node_modules/use-sidecar/dist/es5/config.d.ts +5 -0
- package/node_modules/use-sidecar/dist/es5/config.js +10 -0
- package/node_modules/use-sidecar/dist/es5/env.d.ts +4 -0
- package/node_modules/use-sidecar/dist/es5/env.js +8 -0
- package/node_modules/use-sidecar/dist/es5/exports.d.ts +3 -0
- package/node_modules/use-sidecar/dist/es5/exports.js +22 -0
- package/node_modules/use-sidecar/dist/es5/hoc.d.ts +3 -0
- package/node_modules/use-sidecar/dist/es5/hoc.js +19 -0
- package/node_modules/use-sidecar/dist/es5/hook.d.ts +2 -0
- package/node_modules/use-sidecar/dist/es5/hook.js +45 -0
- package/node_modules/use-sidecar/dist/es5/index.d.ts +7 -0
- package/node_modules/use-sidecar/dist/es5/index.js +16 -0
- package/node_modules/use-sidecar/dist/es5/medium.d.ts +3 -0
- package/node_modules/use-sidecar/dist/es5/medium.js +83 -0
- package/node_modules/use-sidecar/dist/es5/renderProp.d.ts +9 -0
- package/node_modules/use-sidecar/dist/es5/renderProp.js +39 -0
- package/node_modules/use-sidecar/dist/es5/types.d.ts +47 -0
- package/node_modules/use-sidecar/dist/es5/types.js +2 -0
- package/node_modules/use-sidecar/package.json +93 -0
- package/package.json +45 -2
- package/react/styles.css +568 -18
- package/react/styles.source.css +568 -18
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@radix-ui/react-use-escape-keydown",
|
|
3
|
+
"version": "1.1.2",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"source": "./src/index.ts",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.mjs",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md"
|
|
11
|
+
],
|
|
12
|
+
"sideEffects": false,
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@radix-ui/react-use-callback-ref": "1.1.2"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@types/react": "^19.2.2",
|
|
18
|
+
"@types/react-dom": "^19.2.2",
|
|
19
|
+
"react": "^19.2.0",
|
|
20
|
+
"react-dom": "^19.2.0",
|
|
21
|
+
"typescript": "^5.9.3",
|
|
22
|
+
"@repo/builder": "0.0.0",
|
|
23
|
+
"@repo/typescript-config": "0.0.0"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"@types/react": "*",
|
|
27
|
+
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
28
|
+
},
|
|
29
|
+
"peerDependenciesMeta": {
|
|
30
|
+
"@types/react": {
|
|
31
|
+
"optional": true
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"homepage": "https://radix-ui.com/primitives",
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/radix-ui/primitives.git",
|
|
38
|
+
"directory": "packages/react/use-escape-keydown"
|
|
39
|
+
},
|
|
40
|
+
"bugs": {
|
|
41
|
+
"url": "https://github.com/radix-ui/primitives/issues"
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"lint": "oxlint --max-warnings 0 src",
|
|
45
|
+
"clean": "rm -rf dist",
|
|
46
|
+
"reset": "rm -rf dist node_modules",
|
|
47
|
+
"typecheck": "tsc --noEmit",
|
|
48
|
+
"build": "radix-build"
|
|
49
|
+
},
|
|
50
|
+
"types": "./dist/index.d.ts",
|
|
51
|
+
"exports": {
|
|
52
|
+
".": {
|
|
53
|
+
"import": {
|
|
54
|
+
"types": "./dist/index.d.mts",
|
|
55
|
+
"default": "./dist/index.mjs"
|
|
56
|
+
},
|
|
57
|
+
"require": {
|
|
58
|
+
"types": "./dist/index.d.ts",
|
|
59
|
+
"default": "./dist/index.js"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 WorkOS
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* On the server, React emits a warning when calling `useLayoutEffect`.
|
|
5
|
+
* This is because neither `useLayoutEffect` nor `useEffect` run on the server.
|
|
6
|
+
* We use this safe version which suppresses the warning by replacing it with a noop on the server.
|
|
7
|
+
*
|
|
8
|
+
* See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect
|
|
9
|
+
*/
|
|
10
|
+
declare const useLayoutEffect: typeof React.useLayoutEffect;
|
|
11
|
+
|
|
12
|
+
export { useLayoutEffect };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* On the server, React emits a warning when calling `useLayoutEffect`.
|
|
5
|
+
* This is because neither `useLayoutEffect` nor `useEffect` run on the server.
|
|
6
|
+
* We use this safe version which suppresses the warning by replacing it with a noop on the server.
|
|
7
|
+
*
|
|
8
|
+
* See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect
|
|
9
|
+
*/
|
|
10
|
+
declare const useLayoutEffect: typeof React.useLayoutEffect;
|
|
11
|
+
|
|
12
|
+
export { useLayoutEffect };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/index.ts
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
|
+
useLayoutEffect: () => useLayoutEffect2
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(index_exports);
|
|
36
|
+
|
|
37
|
+
// src/use-layout-effect.tsx
|
|
38
|
+
var React = __toESM(require("react"));
|
|
39
|
+
var useLayoutEffect2 = globalThis?.document ? React.useLayoutEffect : () => {
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/index.ts", "../src/use-layout-effect.tsx"],
|
|
4
|
+
"sourcesContent": ["export { useLayoutEffect } from './use-layout-effect';\n", "import * as React from 'react';\n\n/**\n * On the server, React emits a warning when calling `useLayoutEffect`.\n * This is because neither `useLayoutEffect` nor `useEffect` run on the server.\n * We use this safe version which suppresses the warning by replacing it with a noop on the server.\n *\n * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect\n */\nconst useLayoutEffect = globalThis?.document ? React.useLayoutEffect : () => {};\n\nexport { useLayoutEffect };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,yBAAAA;AAAA;AAAA;;;ACAA,YAAuB;AASvB,IAAMC,mBAAkB,YAAY,WAAiB,wBAAkB,MAAM;AAAC;",
|
|
6
|
+
"names": ["useLayoutEffect", "useLayoutEffect"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/use-layout-effect.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\n\n/**\n * On the server, React emits a warning when calling `useLayoutEffect`.\n * This is because neither `useLayoutEffect` nor `useEffect` run on the server.\n * We use this safe version which suppresses the warning by replacing it with a noop on the server.\n *\n * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect\n */\nconst useLayoutEffect = globalThis?.document ? React.useLayoutEffect : () => {};\n\nexport { useLayoutEffect };\n"],
|
|
5
|
+
"mappings": ";AAAA,YAAY,WAAW;AASvB,IAAMA,mBAAkB,YAAY,WAAiB,wBAAkB,MAAM;AAAC;",
|
|
6
|
+
"names": ["useLayoutEffect"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@radix-ui/react-use-layout-effect",
|
|
3
|
+
"version": "1.1.2",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"source": "./src/index.ts",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.mjs",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md"
|
|
11
|
+
],
|
|
12
|
+
"sideEffects": false,
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@types/react": "^19.2.2",
|
|
15
|
+
"@types/react-dom": "^19.2.2",
|
|
16
|
+
"react": "^19.2.0",
|
|
17
|
+
"react-dom": "^19.2.0",
|
|
18
|
+
"typescript": "^5.9.3",
|
|
19
|
+
"@repo/builder": "0.0.0",
|
|
20
|
+
"@repo/typescript-config": "0.0.0"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"@types/react": "*",
|
|
24
|
+
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
25
|
+
},
|
|
26
|
+
"peerDependenciesMeta": {
|
|
27
|
+
"@types/react": {
|
|
28
|
+
"optional": true
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"homepage": "https://radix-ui.com/primitives",
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "git+https://github.com/radix-ui/primitives.git",
|
|
35
|
+
"directory": "packages/react/use-layout-effect"
|
|
36
|
+
},
|
|
37
|
+
"bugs": {
|
|
38
|
+
"url": "https://github.com/radix-ui/primitives/issues"
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"lint": "oxlint --max-warnings 0 src",
|
|
42
|
+
"clean": "rm -rf dist",
|
|
43
|
+
"reset": "rm -rf dist node_modules",
|
|
44
|
+
"typecheck": "tsc --noEmit",
|
|
45
|
+
"build": "radix-build"
|
|
46
|
+
},
|
|
47
|
+
"types": "./dist/index.d.ts",
|
|
48
|
+
"exports": {
|
|
49
|
+
".": {
|
|
50
|
+
"import": {
|
|
51
|
+
"types": "./dist/index.d.mts",
|
|
52
|
+
"default": "./dist/index.mjs"
|
|
53
|
+
},
|
|
54
|
+
"require": {
|
|
55
|
+
"types": "./dist/index.d.ts",
|
|
56
|
+
"default": "./dist/index.js"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 WorkOS
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Measurable } from '@radix-ui/rect';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Use this custom hook to get access to an element's rect (getBoundingClientRect)
|
|
5
|
+
* and observe it along time.
|
|
6
|
+
*/
|
|
7
|
+
declare function useRect(measurable: Measurable | null): DOMRect | undefined;
|
|
8
|
+
|
|
9
|
+
export { useRect };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Measurable } from '@radix-ui/rect';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Use this custom hook to get access to an element's rect (getBoundingClientRect)
|
|
5
|
+
* and observe it along time.
|
|
6
|
+
*/
|
|
7
|
+
declare function useRect(measurable: Measurable | null): DOMRect | undefined;
|
|
8
|
+
|
|
9
|
+
export { useRect };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/index.ts
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
|
+
useRect: () => useRect
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(index_exports);
|
|
36
|
+
|
|
37
|
+
// src/use-rect.tsx
|
|
38
|
+
var React = __toESM(require("react"));
|
|
39
|
+
var import_rect = require("@radix-ui/rect");
|
|
40
|
+
function useRect(measurable) {
|
|
41
|
+
const [rect, setRect] = React.useState();
|
|
42
|
+
React.useEffect(() => {
|
|
43
|
+
if (measurable) {
|
|
44
|
+
const unobserve = (0, import_rect.observeElementRect)(measurable, setRect);
|
|
45
|
+
return () => {
|
|
46
|
+
setRect(void 0);
|
|
47
|
+
unobserve();
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
return;
|
|
51
|
+
}, [measurable]);
|
|
52
|
+
return rect;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/index.ts", "../src/use-rect.tsx"],
|
|
4
|
+
"sourcesContent": ["export { useRect } from './use-rect';\n", "import * as React from 'react';\nimport { observeElementRect } from '@radix-ui/rect';\n\nimport type { Measurable } from '@radix-ui/rect';\n\n/**\n * Use this custom hook to get access to an element's rect (getBoundingClientRect)\n * and observe it along time.\n */\nfunction useRect(measurable: Measurable | null) {\n const [rect, setRect] = React.useState<DOMRect>();\n React.useEffect(() => {\n if (measurable) {\n const unobserve = observeElementRect(measurable, setRect);\n return () => {\n setRect(undefined);\n unobserve();\n };\n }\n return;\n }, [measurable]);\n return rect;\n}\n\nexport { useRect };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,YAAuB;AACvB,kBAAmC;AAQnC,SAAS,QAAQ,YAA+B;AAC9C,QAAM,CAAC,MAAM,OAAO,IAAU,eAAkB;AAChD,EAAM,gBAAU,MAAM;AACpB,QAAI,YAAY;AACd,YAAM,gBAAY,gCAAmB,YAAY,OAAO;AACxD,aAAO,MAAM;AACX,gBAAQ,MAAS;AACjB,kBAAU;AAAA,MACZ;AAAA,IACF;AACA;AAAA,EACF,GAAG,CAAC,UAAU,CAAC;AACf,SAAO;AACT;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// src/use-rect.tsx
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { observeElementRect } from "@radix-ui/rect";
|
|
4
|
+
function useRect(measurable) {
|
|
5
|
+
const [rect, setRect] = React.useState();
|
|
6
|
+
React.useEffect(() => {
|
|
7
|
+
if (measurable) {
|
|
8
|
+
const unobserve = observeElementRect(measurable, setRect);
|
|
9
|
+
return () => {
|
|
10
|
+
setRect(void 0);
|
|
11
|
+
unobserve();
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
return;
|
|
15
|
+
}, [measurable]);
|
|
16
|
+
return rect;
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
useRect
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/use-rect.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nimport { observeElementRect } from '@radix-ui/rect';\n\nimport type { Measurable } from '@radix-ui/rect';\n\n/**\n * Use this custom hook to get access to an element's rect (getBoundingClientRect)\n * and observe it along time.\n */\nfunction useRect(measurable: Measurable | null) {\n const [rect, setRect] = React.useState<DOMRect>();\n React.useEffect(() => {\n if (measurable) {\n const unobserve = observeElementRect(measurable, setRect);\n return () => {\n setRect(undefined);\n unobserve();\n };\n }\n return;\n }, [measurable]);\n return rect;\n}\n\nexport { useRect };\n"],
|
|
5
|
+
"mappings": ";AAAA,YAAY,WAAW;AACvB,SAAS,0BAA0B;AAQnC,SAAS,QAAQ,YAA+B;AAC9C,QAAM,CAAC,MAAM,OAAO,IAAU,eAAkB;AAChD,EAAM,gBAAU,MAAM;AACpB,QAAI,YAAY;AACd,YAAM,YAAY,mBAAmB,YAAY,OAAO;AACxD,aAAO,MAAM;AACX,gBAAQ,MAAS;AACjB,kBAAU;AAAA,MACZ;AAAA,IACF;AACA;AAAA,EACF,GAAG,CAAC,UAAU,CAAC;AACf,SAAO;AACT;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@radix-ui/react-use-rect",
|
|
3
|
+
"version": "1.1.2",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"source": "./src/index.ts",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.mjs",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md"
|
|
11
|
+
],
|
|
12
|
+
"sideEffects": false,
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@radix-ui/rect": "1.1.2"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@types/react": "^19.2.2",
|
|
18
|
+
"@types/react-dom": "^19.2.2",
|
|
19
|
+
"react": "^19.2.0",
|
|
20
|
+
"react-dom": "^19.2.0",
|
|
21
|
+
"typescript": "^5.9.3",
|
|
22
|
+
"@repo/builder": "0.0.0",
|
|
23
|
+
"@repo/typescript-config": "0.0.0"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"@types/react": "*",
|
|
27
|
+
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
28
|
+
},
|
|
29
|
+
"peerDependenciesMeta": {
|
|
30
|
+
"@types/react": {
|
|
31
|
+
"optional": true
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"homepage": "https://radix-ui.com/primitives",
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/radix-ui/primitives.git",
|
|
38
|
+
"directory": "packages/react/use-rect"
|
|
39
|
+
},
|
|
40
|
+
"bugs": {
|
|
41
|
+
"url": "https://github.com/radix-ui/primitives/issues"
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"lint": "oxlint --max-warnings 0 src",
|
|
45
|
+
"clean": "rm -rf dist",
|
|
46
|
+
"reset": "rm -rf dist node_modules",
|
|
47
|
+
"typecheck": "tsc --noEmit",
|
|
48
|
+
"build": "radix-build"
|
|
49
|
+
},
|
|
50
|
+
"types": "./dist/index.d.ts",
|
|
51
|
+
"exports": {
|
|
52
|
+
".": {
|
|
53
|
+
"import": {
|
|
54
|
+
"types": "./dist/index.d.mts",
|
|
55
|
+
"default": "./dist/index.mjs"
|
|
56
|
+
},
|
|
57
|
+
"require": {
|
|
58
|
+
"types": "./dist/index.d.ts",
|
|
59
|
+
"default": "./dist/index.js"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 WorkOS
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/index.ts
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
|
+
useSize: () => useSize
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(index_exports);
|
|
36
|
+
|
|
37
|
+
// src/use-size.tsx
|
|
38
|
+
var React = __toESM(require("react"));
|
|
39
|
+
var import_react_use_layout_effect = require("@radix-ui/react-use-layout-effect");
|
|
40
|
+
function useSize(element) {
|
|
41
|
+
const [size, setSize] = React.useState(void 0);
|
|
42
|
+
(0, import_react_use_layout_effect.useLayoutEffect)(() => {
|
|
43
|
+
if (element) {
|
|
44
|
+
setSize({ width: element.offsetWidth, height: element.offsetHeight });
|
|
45
|
+
const resizeObserver = new ResizeObserver((entries) => {
|
|
46
|
+
if (!Array.isArray(entries)) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
if (!entries.length) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
const entry = entries[0];
|
|
53
|
+
let width;
|
|
54
|
+
let height;
|
|
55
|
+
if ("borderBoxSize" in entry) {
|
|
56
|
+
const borderSizeEntry = entry["borderBoxSize"];
|
|
57
|
+
const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;
|
|
58
|
+
width = borderSize["inlineSize"];
|
|
59
|
+
height = borderSize["blockSize"];
|
|
60
|
+
} else {
|
|
61
|
+
width = element.offsetWidth;
|
|
62
|
+
height = element.offsetHeight;
|
|
63
|
+
}
|
|
64
|
+
setSize({ width, height });
|
|
65
|
+
});
|
|
66
|
+
resizeObserver.observe(element, { box: "border-box" });
|
|
67
|
+
return () => resizeObserver.unobserve(element);
|
|
68
|
+
} else {
|
|
69
|
+
setSize(void 0);
|
|
70
|
+
}
|
|
71
|
+
}, [element]);
|
|
72
|
+
return size;
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/index.ts", "../src/use-size.tsx"],
|
|
4
|
+
"sourcesContent": ["export { useSize } from './use-size';\n", "import * as React from 'react';\nimport { useLayoutEffect } from '@radix-ui/react-use-layout-effect';\n\nfunction useSize(element: HTMLElement | null) {\n const [size, setSize] = React.useState<{ width: number; height: number } | undefined>(undefined);\n\n useLayoutEffect(() => {\n if (element) {\n // provide size as early as possible\n setSize({ width: element.offsetWidth, height: element.offsetHeight });\n\n const resizeObserver = new ResizeObserver((entries) => {\n if (!Array.isArray(entries)) {\n return;\n }\n\n // Since we only observe the one element, we don't need to loop over the\n // array\n if (!entries.length) {\n return;\n }\n\n const entry = entries[0]!;\n let width: number;\n let height: number;\n\n if ('borderBoxSize' in entry) {\n const borderSizeEntry = entry['borderBoxSize'];\n // iron out differences between browsers\n const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;\n width = borderSize['inlineSize'];\n height = borderSize['blockSize'];\n } else {\n // for browsers that don't support `borderBoxSize`\n // we calculate it ourselves to get the correct border box.\n width = element.offsetWidth;\n height = element.offsetHeight;\n }\n\n setSize({ width, height });\n });\n\n resizeObserver.observe(element, { box: 'border-box' });\n\n return () => resizeObserver.unobserve(element);\n } else {\n // We only want to reset to `undefined` when the element becomes `null`,\n // not if it changes to another element.\n setSize(undefined);\n }\n }, [element]);\n\n return size;\n}\n\nexport { useSize };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,YAAuB;AACvB,qCAAgC;AAEhC,SAAS,QAAQ,SAA6B;AAC5C,QAAM,CAAC,MAAM,OAAO,IAAU,eAAwD,MAAS;AAE/F,sDAAgB,MAAM;AACpB,QAAI,SAAS;AAEX,cAAQ,EAAE,OAAO,QAAQ,aAAa,QAAQ,QAAQ,aAAa,CAAC;AAEpE,YAAM,iBAAiB,IAAI,eAAe,CAAC,YAAY;AACrD,YAAI,CAAC,MAAM,QAAQ,OAAO,GAAG;AAC3B;AAAA,QACF;AAIA,YAAI,CAAC,QAAQ,QAAQ;AACnB;AAAA,QACF;AAEA,cAAM,QAAQ,QAAQ,CAAC;AACvB,YAAI;AACJ,YAAI;AAEJ,YAAI,mBAAmB,OAAO;AAC5B,gBAAM,kBAAkB,MAAM,eAAe;AAE7C,gBAAM,aAAa,MAAM,QAAQ,eAAe,IAAI,gBAAgB,CAAC,IAAI;AACzE,kBAAQ,WAAW,YAAY;AAC/B,mBAAS,WAAW,WAAW;AAAA,QACjC,OAAO;AAGL,kBAAQ,QAAQ;AAChB,mBAAS,QAAQ;AAAA,QACnB;AAEA,gBAAQ,EAAE,OAAO,OAAO,CAAC;AAAA,MAC3B,CAAC;AAED,qBAAe,QAAQ,SAAS,EAAE,KAAK,aAAa,CAAC;AAErD,aAAO,MAAM,eAAe,UAAU,OAAO;AAAA,IAC/C,OAAO;AAGL,cAAQ,MAAS;AAAA,IACnB;AAAA,EACF,GAAG,CAAC,OAAO,CAAC;AAEZ,SAAO;AACT;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// src/use-size.tsx
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { useLayoutEffect } from "@radix-ui/react-use-layout-effect";
|
|
4
|
+
function useSize(element) {
|
|
5
|
+
const [size, setSize] = React.useState(void 0);
|
|
6
|
+
useLayoutEffect(() => {
|
|
7
|
+
if (element) {
|
|
8
|
+
setSize({ width: element.offsetWidth, height: element.offsetHeight });
|
|
9
|
+
const resizeObserver = new ResizeObserver((entries) => {
|
|
10
|
+
if (!Array.isArray(entries)) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
if (!entries.length) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
const entry = entries[0];
|
|
17
|
+
let width;
|
|
18
|
+
let height;
|
|
19
|
+
if ("borderBoxSize" in entry) {
|
|
20
|
+
const borderSizeEntry = entry["borderBoxSize"];
|
|
21
|
+
const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;
|
|
22
|
+
width = borderSize["inlineSize"];
|
|
23
|
+
height = borderSize["blockSize"];
|
|
24
|
+
} else {
|
|
25
|
+
width = element.offsetWidth;
|
|
26
|
+
height = element.offsetHeight;
|
|
27
|
+
}
|
|
28
|
+
setSize({ width, height });
|
|
29
|
+
});
|
|
30
|
+
resizeObserver.observe(element, { box: "border-box" });
|
|
31
|
+
return () => resizeObserver.unobserve(element);
|
|
32
|
+
} else {
|
|
33
|
+
setSize(void 0);
|
|
34
|
+
}
|
|
35
|
+
}, [element]);
|
|
36
|
+
return size;
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
useSize
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/use-size.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nimport { useLayoutEffect } from '@radix-ui/react-use-layout-effect';\n\nfunction useSize(element: HTMLElement | null) {\n const [size, setSize] = React.useState<{ width: number; height: number } | undefined>(undefined);\n\n useLayoutEffect(() => {\n if (element) {\n // provide size as early as possible\n setSize({ width: element.offsetWidth, height: element.offsetHeight });\n\n const resizeObserver = new ResizeObserver((entries) => {\n if (!Array.isArray(entries)) {\n return;\n }\n\n // Since we only observe the one element, we don't need to loop over the\n // array\n if (!entries.length) {\n return;\n }\n\n const entry = entries[0]!;\n let width: number;\n let height: number;\n\n if ('borderBoxSize' in entry) {\n const borderSizeEntry = entry['borderBoxSize'];\n // iron out differences between browsers\n const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;\n width = borderSize['inlineSize'];\n height = borderSize['blockSize'];\n } else {\n // for browsers that don't support `borderBoxSize`\n // we calculate it ourselves to get the correct border box.\n width = element.offsetWidth;\n height = element.offsetHeight;\n }\n\n setSize({ width, height });\n });\n\n resizeObserver.observe(element, { box: 'border-box' });\n\n return () => resizeObserver.unobserve(element);\n } else {\n // We only want to reset to `undefined` when the element becomes `null`,\n // not if it changes to another element.\n setSize(undefined);\n }\n }, [element]);\n\n return size;\n}\n\nexport { useSize };\n"],
|
|
5
|
+
"mappings": ";AAAA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,QAAQ,SAA6B;AAC5C,QAAM,CAAC,MAAM,OAAO,IAAU,eAAwD,MAAS;AAE/F,kBAAgB,MAAM;AACpB,QAAI,SAAS;AAEX,cAAQ,EAAE,OAAO,QAAQ,aAAa,QAAQ,QAAQ,aAAa,CAAC;AAEpE,YAAM,iBAAiB,IAAI,eAAe,CAAC,YAAY;AACrD,YAAI,CAAC,MAAM,QAAQ,OAAO,GAAG;AAC3B;AAAA,QACF;AAIA,YAAI,CAAC,QAAQ,QAAQ;AACnB;AAAA,QACF;AAEA,cAAM,QAAQ,QAAQ,CAAC;AACvB,YAAI;AACJ,YAAI;AAEJ,YAAI,mBAAmB,OAAO;AAC5B,gBAAM,kBAAkB,MAAM,eAAe;AAE7C,gBAAM,aAAa,MAAM,QAAQ,eAAe,IAAI,gBAAgB,CAAC,IAAI;AACzE,kBAAQ,WAAW,YAAY;AAC/B,mBAAS,WAAW,WAAW;AAAA,QACjC,OAAO;AAGL,kBAAQ,QAAQ;AAChB,mBAAS,QAAQ;AAAA,QACnB;AAEA,gBAAQ,EAAE,OAAO,OAAO,CAAC;AAAA,MAC3B,CAAC;AAED,qBAAe,QAAQ,SAAS,EAAE,KAAK,aAAa,CAAC;AAErD,aAAO,MAAM,eAAe,UAAU,OAAO;AAAA,IAC/C,OAAO;AAGL,cAAQ,MAAS;AAAA,IACnB;AAAA,EACF,GAAG,CAAC,OAAO,CAAC;AAEZ,SAAO;AACT;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|