@noodleseed/one 0.32.1 → 0.34.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/LICENSE +27 -1
- package/NOTICE +4 -0
- package/dist/assistant-embed-scaffold-template.d.ts +10 -0
- package/dist/assistant-embed-scaffold-template.d.ts.map +1 -0
- package/dist/assistant-embed-scaffold-template.js +74 -0
- package/dist/assistant-embed-scaffold-template.js.map +1 -0
- package/dist/commands/assistant-embed-ops.d.ts +2 -0
- package/dist/commands/assistant-embed-ops.d.ts.map +1 -0
- package/dist/commands/assistant-embed-ops.js +87 -0
- package/dist/commands/assistant-embed-ops.js.map +1 -0
- package/dist/commands/assistant-ops.d.ts.map +1 -1
- package/dist/commands/assistant-ops.js +32 -1
- package/dist/commands/assistant-ops.js.map +1 -1
- package/dist/commands/catalog-data-resources.d.ts.map +1 -1
- package/dist/commands/catalog-data-resources.js +11 -0
- package/dist/commands/catalog-data-resources.js.map +1 -1
- package/dist/commands/deploy-ops.d.ts +2 -0
- package/dist/commands/deploy-ops.d.ts.map +1 -1
- package/dist/commands/deploy-ops.js +18 -0
- package/dist/commands/deploy-ops.js.map +1 -1
- package/dist/commands/mcp-apps.js +20 -0
- package/dist/commands/mcp-apps.js.map +1 -1
- package/dist/commands/project-setup.d.ts +2 -2
- package/dist/commands/project-setup.d.ts.map +1 -1
- package/dist/commands/project-setup.js +5 -4
- package/dist/commands/project-setup.js.map +1 -1
- package/dist/control-plane.d.ts.map +1 -1
- package/dist/control-plane.js +2 -0
- package/dist/control-plane.js.map +1 -1
- package/dist/deploy.d.ts +2 -1
- package/dist/deploy.d.ts.map +1 -1
- package/dist/deploy.js +57 -40
- package/dist/deploy.js.map +1 -1
- package/dist/first-run.js +1 -1
- package/dist/first-run.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/openapi-import.d.ts.map +1 -1
- package/dist/openapi-import.js +6 -1
- package/dist/openapi-import.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 +9 -200
- package/dist/project-scaffold-templates.js.map +1 -1
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js +5 -2
- 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-focused-template.d.ts +4 -0
- package/dist/widget-focused-template.d.ts.map +1 -0
- package/dist/widget-focused-template.js +75 -0
- package/dist/widget-focused-template.js.map +1 -0
- 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 +228 -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/curated/error-fixes.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/curated/error-fixes.js +1 -0
- package/node_modules/@noodle-borg/agent-kit/dist/curated/error-fixes.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/generated/example-files.js +7 -7
- package/node_modules/@noodle-borg/agent-kit/dist/generated/example-files.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/generated/surface.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/generated/surface.js +1 -0
- package/node_modules/@noodle-borg/agent-kit/dist/generated/surface.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 +36 -22
- package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-refs.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-content.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-content.js +6 -3
- package/node_modules/@noodle-borg/agent-kit/dist/skill-content.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-embedded-assistant-ref.d.ts +3 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-embedded-assistant-ref.d.ts.map +1 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-embedded-assistant-ref.js +166 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-embedded-assistant-ref.js.map +1 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-operations-refs.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-operations-refs.js +5 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-operations-refs.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/package.json +2 -1
- package/node_modules/@noodle-borg/auth/package.json +1 -0
- package/node_modules/@noodle-borg/authoring/dist/customer-auth.d.ts +5 -5
- package/node_modules/@noodle-borg/authoring/dist/customer-auth.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/customer-auth.js +11 -5
- package/node_modules/@noodle-borg/authoring/dist/customer-auth.js.map +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 +400 -666
- package/node_modules/@noodle-borg/authoring/dist/react/components.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react/components.js +114 -23
- 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 +0 -1
- package/node_modules/@noodle-borg/authoring/dist/server.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/server.js +24 -6
- package/node_modules/@noodle-borg/authoring/dist/server.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/package.json +8 -1
- package/node_modules/@noodle-borg/capabilities/package.json +1 -0
- package/node_modules/@noodle-borg/compiler/dist/artifact/types.d.ts +3 -1
- package/node_modules/@noodle-borg/compiler/dist/artifact/types.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/compile.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/compile.js +48 -3
- package/node_modules/@noodle-borg/compiler/dist/compile.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/errors.d.ts +1 -1
- package/node_modules/@noodle-borg/compiler/dist/errors.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-emit.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-emit.js +1 -4
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-emit.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-structural.d.ts +7 -9
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-structural.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-structural.js +8 -18
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-structural.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/index.d.ts +1 -1
- package/node_modules/@noodle-borg/compiler/dist/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/index.js +1 -1
- package/node_modules/@noodle-borg/compiler/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/manifest/csp-origins.js +2 -2
- package/node_modules/@noodle-borg/compiler/dist/manifest/schema.d.ts +1 -5
- package/node_modules/@noodle-borg/compiler/dist/manifest/schema.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/manifest/schema.js +19 -8
- package/node_modules/@noodle-borg/compiler/dist/manifest/schema.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/schema-validation.d.ts +9 -0
- package/node_modules/@noodle-borg/compiler/dist/schema-validation.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/schema-validation.js +42 -0
- package/node_modules/@noodle-borg/compiler/dist/schema-validation.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/package.json +1 -0
- package/node_modules/@noodle-borg/compute/package.json +1 -0
- 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/connector-defs/package.json +1 -0
- package/node_modules/@noodle-borg/connector-http/package.json +1 -0
- package/node_modules/@noodle-borg/module/package.json +1 -0
- package/node_modules/@noodle-borg/module-audit/package.json +1 -0
- package/node_modules/@noodle-borg/openapi-import/dist/index.js +1 -1
- package/node_modules/@noodle-borg/openapi-import/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/openapi-import/package.json +1 -0
- package/node_modules/@noodle-borg/protocol/dist/input-validation.d.ts +9 -0
- package/node_modules/@noodle-borg/protocol/dist/input-validation.d.ts.map +1 -1
- package/node_modules/@noodle-borg/protocol/dist/input-validation.js +13 -1
- package/node_modules/@noodle-borg/protocol/dist/input-validation.js.map +1 -1
- package/node_modules/@noodle-borg/protocol/dist/sdk-server.js +8 -5
- package/node_modules/@noodle-borg/protocol/dist/sdk-server.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/protocol/package.json +1 -0
- package/node_modules/@noodle-borg/runtime/package.json +1 -0
- package/node_modules/@noodle-borg/service/dist/assistant-model-stream.d.ts +19 -0
- package/node_modules/@noodle-borg/service/dist/assistant-model-stream.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/assistant-model-stream.js +84 -0
- package/node_modules/@noodle-borg/service/dist/assistant-model-stream.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/assistant-store.d.ts +2 -0
- package/node_modules/@noodle-borg/service/dist/assistant-store.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/assistant-store.js +11 -0
- package/node_modules/@noodle-borg/service/dist/assistant-store.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/auth/deploy-gate.d.ts +4 -0
- package/node_modules/@noodle-borg/service/dist/auth/deploy-gate.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/auth/deploy-gate.js +10 -1
- package/node_modules/@noodle-borg/service/dist/auth/deploy-gate.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/build-info.d.ts +9 -0
- package/node_modules/@noodle-borg/service/dist/build-info.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/build-info.js +50 -0
- package/node_modules/@noodle-borg/service/dist/build-info.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/client-compatibility.d.ts +5 -0
- package/node_modules/@noodle-borg/service/dist/client-compatibility.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/client-compatibility.js +12 -0
- package/node_modules/@noodle-borg/service/dist/client-compatibility.js.map +1 -0
- 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/index.d.ts +3 -1
- package/node_modules/@noodle-borg/service/dist/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/index.js +2 -0
- package/node_modules/@noodle-borg/service/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/main.js +8 -0
- package/node_modules/@noodle-borg/service/dist/main.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/manifest-normalize.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/manifest-normalize.js +13 -0
- package/node_modules/@noodle-borg/service/dist/manifest-normalize.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/options.d.ts +7 -0
- package/node_modules/@noodle-borg/service/dist/options.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/personal-workspace.d.ts +1 -0
- package/node_modules/@noodle-borg/service/dist/personal-workspace.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/personal-workspace.js +4 -5
- package/node_modules/@noodle-borg/service/dist/personal-workspace.js.map +1 -1
- 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/@noodle-borg/service/dist/routes/access-mode.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/access-mode.js +2 -6
- package/node_modules/@noodle-borg/service/dist/routes/access-mode.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assets.d.ts +6 -2
- package/node_modules/@noodle-borg/service/dist/routes/assets.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assets.js +12 -52
- package/node_modules/@noodle-borg/service/dist/routes/assets.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant-dispatch.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant-dispatch.js +7 -2
- package/node_modules/@noodle-borg/service/dist/routes/assistant-dispatch.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant.d.ts +1 -0
- package/node_modules/@noodle-borg/service/dist/routes/assistant.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant.js +103 -35
- package/node_modules/@noodle-borg/service/dist/routes/assistant.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/control-plane.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/control-plane.js +22 -27
- package/node_modules/@noodle-borg/service/dist/routes/control-plane.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/org-admin-dispatch.d.ts +3 -0
- package/node_modules/@noodle-borg/service/dist/routes/org-admin-dispatch.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/org-admin-dispatch.js +6 -1
- package/node_modules/@noodle-borg/service/dist/routes/org-admin-dispatch.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/org-admin.d.ts +5 -1
- package/node_modules/@noodle-borg/service/dist/routes/org-admin.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/org-admin.js +31 -3
- package/node_modules/@noodle-borg/service/dist/routes/org-admin.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/serve.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/serve.js +12 -0
- package/node_modules/@noodle-borg/service/dist/serve.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/service.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/service.js +6 -3
- package/node_modules/@noodle-borg/service/dist/service.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/control-plane.d.ts +15 -1
- package/node_modules/@noodle-borg/service/dist/store/control-plane.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/control-plane.js +81 -0
- package/node_modules/@noodle-borg/service/dist/store/control-plane.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-assistant.d.ts +1 -0
- package/node_modules/@noodle-borg/service/dist/store/postgres-assistant.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-assistant.js +18 -0
- package/node_modules/@noodle-borg/service/dist/store/postgres-assistant.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-control-plane.d.ts +15 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-control-plane.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-control-plane.js +83 -0
- package/node_modules/@noodle-borg/service/dist/store/postgres-control-plane.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-schema.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-schema.js +21 -0
- package/node_modules/@noodle-borg/service/dist/store/postgres-schema.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-signup.d.ts +22 -0
- package/node_modules/@noodle-borg/service/dist/store/postgres-signup.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/store/postgres-signup.js +26 -0
- package/node_modules/@noodle-borg/service/dist/store/postgres-signup.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/store/postgres.d.ts +2 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres.js +10 -9
- package/node_modules/@noodle-borg/service/dist/store/postgres.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store.d.ts +40 -0
- package/node_modules/@noodle-borg/service/dist/store.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/welcome-email.d.ts +65 -0
- package/node_modules/@noodle-borg/service/dist/welcome-email.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/welcome-email.js +243 -0
- package/node_modules/@noodle-borg/service/dist/welcome-email.js.map +1 -0
- package/node_modules/@noodle-borg/service/package.json +2 -0
- package/node_modules/@noodle-borg/transport-http/dist/examples/serve-demo.js +1 -1
- package/node_modules/@noodle-borg/transport-http/package.json +1 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/assistant.d.ts +26 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/assistant.d.ts.map +1 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/assistant.js +31 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/assistant.js.map +1 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/index.d.ts +261 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/index.d.ts.map +1 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/index.js +150 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/index.js.map +1 -0
- package/node_modules/@noodle-borg/wire-contracts/package.json +31 -0
- 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 +50 -5
- package/react/styles.css +568 -18
- package/react/styles.source.css +568 -18
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@radix-ui/react-roving-focus",
|
|
3
|
+
"version": "1.1.14",
|
|
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/primitive": "1.1.4",
|
|
15
|
+
"@radix-ui/react-context": "1.1.4",
|
|
16
|
+
"@radix-ui/react-direction": "1.1.2",
|
|
17
|
+
"@radix-ui/react-compose-refs": "1.1.3",
|
|
18
|
+
"@radix-ui/react-id": "1.1.2",
|
|
19
|
+
"@radix-ui/react-collection": "1.1.11",
|
|
20
|
+
"@radix-ui/react-primitive": "2.1.7",
|
|
21
|
+
"@radix-ui/react-use-callback-ref": "1.1.2",
|
|
22
|
+
"@radix-ui/react-use-controllable-state": "1.2.3"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@types/react": "^19.2.2",
|
|
26
|
+
"@types/react-dom": "^19.2.2",
|
|
27
|
+
"react": "^19.2.0",
|
|
28
|
+
"react-dom": "^19.2.0",
|
|
29
|
+
"typescript": "^5.9.3",
|
|
30
|
+
"@repo/builder": "0.0.0",
|
|
31
|
+
"@repo/typescript-config": "0.0.0"
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"@types/react": "*",
|
|
35
|
+
"@types/react-dom": "*",
|
|
36
|
+
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
|
37
|
+
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
38
|
+
},
|
|
39
|
+
"peerDependenciesMeta": {
|
|
40
|
+
"@types/react": {
|
|
41
|
+
"optional": true
|
|
42
|
+
},
|
|
43
|
+
"@types/react-dom": {
|
|
44
|
+
"optional": true
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"homepage": "https://radix-ui.com/primitives",
|
|
48
|
+
"repository": {
|
|
49
|
+
"type": "git",
|
|
50
|
+
"url": "git+https://github.com/radix-ui/primitives.git",
|
|
51
|
+
"directory": "packages/react/roving-focus"
|
|
52
|
+
},
|
|
53
|
+
"bugs": {
|
|
54
|
+
"url": "https://github.com/radix-ui/primitives/issues"
|
|
55
|
+
},
|
|
56
|
+
"scripts": {
|
|
57
|
+
"lint": "oxlint --max-warnings 0 src",
|
|
58
|
+
"clean": "rm -rf dist",
|
|
59
|
+
"reset": "rm -rf dist node_modules",
|
|
60
|
+
"typecheck": "tsc --noEmit",
|
|
61
|
+
"build": "radix-build"
|
|
62
|
+
},
|
|
63
|
+
"types": "./dist/index.d.ts",
|
|
64
|
+
"exports": {
|
|
65
|
+
".": {
|
|
66
|
+
"import": {
|
|
67
|
+
"types": "./dist/index.d.mts",
|
|
68
|
+
"default": "./dist/index.mjs"
|
|
69
|
+
},
|
|
70
|
+
"require": {
|
|
71
|
+
"types": "./dist/index.d.ts",
|
|
72
|
+
"default": "./dist/index.js"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -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,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
declare module 'react' {
|
|
4
|
+
interface ReactElement {
|
|
5
|
+
$$typeof?: symbol | string;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
type SlotProps<Elem extends Element = HTMLElement, Props = React.HTMLAttributes<Elem>> = Props & {
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
};
|
|
11
|
+
declare function createSlot<Elem extends Element = HTMLElement, Props = React.HTMLAttributes<Elem>>(ownerName: string): React.ForwardRefExoticComponent<React.PropsWithoutRef<SlotProps<Elem, Props>> & React.RefAttributes<Elem>>;
|
|
12
|
+
declare const Slot: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
15
|
+
type SlottableChildrenProps = {
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
};
|
|
18
|
+
type SlottableRenderFnProps = {
|
|
19
|
+
child: React.ReactNode;
|
|
20
|
+
children: (slottable: React.ReactNode) => React.ReactNode;
|
|
21
|
+
};
|
|
22
|
+
type SlottableProps = SlottableRenderFnProps | SlottableChildrenProps;
|
|
23
|
+
interface SlottableComponent extends React.FC<SlottableProps> {
|
|
24
|
+
__radixId: symbol;
|
|
25
|
+
}
|
|
26
|
+
declare function createSlottable(ownerName: string): SlottableComponent;
|
|
27
|
+
declare const Slottable: SlottableComponent;
|
|
28
|
+
|
|
29
|
+
export { Slot as Root, Slot, type SlotProps, Slottable, createSlot, createSlottable };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
declare module 'react' {
|
|
4
|
+
interface ReactElement {
|
|
5
|
+
$$typeof?: symbol | string;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
type SlotProps<Elem extends Element = HTMLElement, Props = React.HTMLAttributes<Elem>> = Props & {
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
};
|
|
11
|
+
declare function createSlot<Elem extends Element = HTMLElement, Props = React.HTMLAttributes<Elem>>(ownerName: string): React.ForwardRefExoticComponent<React.PropsWithoutRef<SlotProps<Elem, Props>> & React.RefAttributes<Elem>>;
|
|
12
|
+
declare const Slot: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
15
|
+
type SlottableChildrenProps = {
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
};
|
|
18
|
+
type SlottableRenderFnProps = {
|
|
19
|
+
child: React.ReactNode;
|
|
20
|
+
children: (slottable: React.ReactNode) => React.ReactNode;
|
|
21
|
+
};
|
|
22
|
+
type SlottableProps = SlottableRenderFnProps | SlottableChildrenProps;
|
|
23
|
+
interface SlottableComponent extends React.FC<SlottableProps> {
|
|
24
|
+
__radixId: symbol;
|
|
25
|
+
}
|
|
26
|
+
declare function createSlottable(ownerName: string): SlottableComponent;
|
|
27
|
+
declare const Slottable: SlottableComponent;
|
|
28
|
+
|
|
29
|
+
export { Slot as Root, Slot, type SlotProps, Slottable, createSlot, createSlottable };
|
|
@@ -0,0 +1,170 @@
|
|
|
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
|
+
Root: () => Slot,
|
|
34
|
+
Slot: () => Slot,
|
|
35
|
+
Slottable: () => Slottable,
|
|
36
|
+
createSlot: () => createSlot,
|
|
37
|
+
createSlottable: () => createSlottable
|
|
38
|
+
});
|
|
39
|
+
module.exports = __toCommonJS(index_exports);
|
|
40
|
+
|
|
41
|
+
// src/slot.tsx
|
|
42
|
+
var React = __toESM(require("react"));
|
|
43
|
+
var import_react_compose_refs = require("@radix-ui/react-compose-refs");
|
|
44
|
+
// @__NO_SIDE_EFFECTS__
|
|
45
|
+
function createSlot(ownerName) {
|
|
46
|
+
const Slot2 = React.forwardRef((props, forwardedRef) => {
|
|
47
|
+
let { children, ...slotProps } = props;
|
|
48
|
+
let slottableElement = null;
|
|
49
|
+
let hasSlottable = false;
|
|
50
|
+
const newChildren = [];
|
|
51
|
+
if (isLazyComponent(children) && typeof use === "function") {
|
|
52
|
+
children = use(children._payload);
|
|
53
|
+
}
|
|
54
|
+
React.Children.forEach(children, (maybeSlottable) => {
|
|
55
|
+
if (isSlottable(maybeSlottable)) {
|
|
56
|
+
hasSlottable = true;
|
|
57
|
+
const slottable = maybeSlottable;
|
|
58
|
+
let child = "child" in slottable.props ? slottable.props.child : slottable.props.children;
|
|
59
|
+
if (isLazyComponent(child) && typeof use === "function") {
|
|
60
|
+
child = use(child._payload);
|
|
61
|
+
}
|
|
62
|
+
slottableElement = getSlottableElementFromSlottable(slottable, child);
|
|
63
|
+
newChildren.push(slottableElement?.props?.children);
|
|
64
|
+
} else {
|
|
65
|
+
newChildren.push(maybeSlottable);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
if (slottableElement) {
|
|
69
|
+
slottableElement = React.cloneElement(slottableElement, void 0, newChildren);
|
|
70
|
+
} else if (
|
|
71
|
+
// A `Slottable` was found but it didn't resolve to a single element (e.g.
|
|
72
|
+
// it wrapped multiple elements, text, or a render-prop `child` that
|
|
73
|
+
// wasn't an element). Don't fall back to treating the `Slottable` wrapper
|
|
74
|
+
// itself as the slot target — throw a descriptive error below instead.
|
|
75
|
+
!hasSlottable && React.Children.count(children) === 1 && React.isValidElement(children)
|
|
76
|
+
) {
|
|
77
|
+
slottableElement = children;
|
|
78
|
+
}
|
|
79
|
+
const slottableElementRef = slottableElement ? getElementRef(slottableElement) : void 0;
|
|
80
|
+
const composedRef = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, slottableElementRef);
|
|
81
|
+
if (!slottableElement) {
|
|
82
|
+
if (children || children === 0) {
|
|
83
|
+
throw new Error(
|
|
84
|
+
hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName)
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
return children;
|
|
88
|
+
}
|
|
89
|
+
const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});
|
|
90
|
+
if (slottableElement.type !== React.Fragment) {
|
|
91
|
+
mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;
|
|
92
|
+
}
|
|
93
|
+
return React.cloneElement(slottableElement, mergedProps);
|
|
94
|
+
});
|
|
95
|
+
Slot2.displayName = `${ownerName}.Slot`;
|
|
96
|
+
return Slot2;
|
|
97
|
+
}
|
|
98
|
+
var Slot = /* @__PURE__ */ createSlot("Slot");
|
|
99
|
+
var SLOTTABLE_IDENTIFIER = Symbol.for("radix.slottable");
|
|
100
|
+
// @__NO_SIDE_EFFECTS__
|
|
101
|
+
function createSlottable(ownerName) {
|
|
102
|
+
const Slottable2 = (props) => "child" in props ? props.children(props.child) : props.children;
|
|
103
|
+
Slottable2.displayName = `${ownerName}.Slottable`;
|
|
104
|
+
Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
|
|
105
|
+
return Slottable2;
|
|
106
|
+
}
|
|
107
|
+
var Slottable = /* @__PURE__ */ createSlottable("Slottable");
|
|
108
|
+
var getSlottableElementFromSlottable = (slottable, child) => {
|
|
109
|
+
if ("child" in slottable.props) {
|
|
110
|
+
const child2 = slottable.props.child;
|
|
111
|
+
if (!React.isValidElement(child2)) return null;
|
|
112
|
+
return React.cloneElement(child2, void 0, slottable.props.children(child2.props.children));
|
|
113
|
+
}
|
|
114
|
+
return React.isValidElement(child) ? child : null;
|
|
115
|
+
};
|
|
116
|
+
function mergeProps(slotProps, childProps) {
|
|
117
|
+
const overrideProps = { ...childProps };
|
|
118
|
+
for (const propName in childProps) {
|
|
119
|
+
const slotPropValue = slotProps[propName];
|
|
120
|
+
const childPropValue = childProps[propName];
|
|
121
|
+
const isHandler = /^on[A-Z]/.test(propName);
|
|
122
|
+
if (isHandler) {
|
|
123
|
+
if (slotPropValue && childPropValue) {
|
|
124
|
+
overrideProps[propName] = (...args) => {
|
|
125
|
+
const result = childPropValue(...args);
|
|
126
|
+
slotPropValue(...args);
|
|
127
|
+
return result;
|
|
128
|
+
};
|
|
129
|
+
} else if (slotPropValue) {
|
|
130
|
+
overrideProps[propName] = slotPropValue;
|
|
131
|
+
}
|
|
132
|
+
} else if (propName === "style") {
|
|
133
|
+
overrideProps[propName] = { ...slotPropValue, ...childPropValue };
|
|
134
|
+
} else if (propName === "className") {
|
|
135
|
+
overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return { ...slotProps, ...overrideProps };
|
|
139
|
+
}
|
|
140
|
+
function getElementRef(element) {
|
|
141
|
+
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
142
|
+
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
143
|
+
if (mayWarn) {
|
|
144
|
+
return element.ref;
|
|
145
|
+
}
|
|
146
|
+
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
147
|
+
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
148
|
+
if (mayWarn) {
|
|
149
|
+
return element.props.ref;
|
|
150
|
+
}
|
|
151
|
+
return element.props.ref || element.ref;
|
|
152
|
+
}
|
|
153
|
+
function isSlottable(child) {
|
|
154
|
+
return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
|
|
155
|
+
}
|
|
156
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
157
|
+
function isLazyComponent(element) {
|
|
158
|
+
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
|
|
159
|
+
}
|
|
160
|
+
function isPromiseLike(value) {
|
|
161
|
+
return typeof value === "object" && value !== null && "then" in value;
|
|
162
|
+
}
|
|
163
|
+
var createSlotError = (ownerName) => {
|
|
164
|
+
return `${ownerName} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`;
|
|
165
|
+
};
|
|
166
|
+
var createSlottableError = (ownerName) => {
|
|
167
|
+
return `${ownerName} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`;
|
|
168
|
+
};
|
|
169
|
+
var use = React[" use ".trim().toString()];
|
|
170
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/index.ts", "../src/slot.tsx"],
|
|
4
|
+
"sourcesContent": ["export {\n Slot,\n Slottable,\n //\n Root,\n createSlot,\n createSlottable,\n} from './slot';\nexport type { SlotProps } from './slot';\n", "import * as React from 'react';\nimport { useComposedRefs } from '@radix-ui/react-compose-refs';\n\ndeclare module 'react' {\n interface ReactElement {\n $$typeof?: symbol | string;\n }\n}\n\n/* -------------------------------------------------------------------------------------------------\n * Slot\n * -----------------------------------------------------------------------------------------------*/\n\nexport type Usable<T> = PromiseLike<T> | React.Context<T>;\n\ntype SlotProps<Elem extends Element = HTMLElement, Props = React.HTMLAttributes<Elem>> = Props & {\n children?: React.ReactNode;\n};\n\n/* @__NO_SIDE_EFFECTS__ */ export function createSlot<\n Elem extends Element = HTMLElement,\n Props = React.HTMLAttributes<Elem>,\n>(ownerName: string) {\n const Slot = React.forwardRef<Elem, SlotProps<Elem, Props>>((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n let slottableElement: React.ReactElement | null = null;\n let hasSlottable = false;\n const newChildren: React.ReactNode[] = [];\n\n if (isLazyComponent(children) && typeof use === 'function') {\n children = use(children._payload);\n }\n\n React.Children.forEach(children, (maybeSlottable) => {\n if (isSlottable(maybeSlottable)) {\n hasSlottable = true;\n const slottable = maybeSlottable;\n let child = 'child' in slottable.props ? slottable.props.child : slottable.props.children;\n\n if (isLazyComponent(child) && typeof use === 'function') {\n child = use(child._payload);\n }\n\n slottableElement = getSlottableElementFromSlottable(slottable, child);\n newChildren.push((slottableElement?.props as any)?.children);\n } else {\n newChildren.push(maybeSlottable);\n }\n });\n\n if (slottableElement) {\n slottableElement = React.cloneElement(slottableElement, undefined, newChildren);\n } else if (\n // A `Slottable` was found but it didn't resolve to a single element (e.g.\n // it wrapped multiple elements, text, or a render-prop `child` that\n // wasn't an element). Don't fall back to treating the `Slottable` wrapper\n // itself as the slot target \u2014 throw a descriptive error below instead.\n !hasSlottable &&\n React.Children.count(children) === 1 &&\n React.isValidElement(children)\n ) {\n slottableElement = children;\n }\n\n const slottableElementRef = slottableElement ? getElementRef(slottableElement) : undefined;\n const composedRef = useComposedRefs(forwardedRef, slottableElementRef);\n\n if (!slottableElement) {\n // Empty/falsy children (`null`, `undefined`, `false`, no children, etc.) are valid and\n // render nothing. Anything else is content we couldn't slot onto a single element, which\n // is a usage error, so we fail loudly with a clear message.\n if (children || children === 0) {\n throw new Error(\n hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName),\n );\n }\n return children;\n }\n\n const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});\n\n // do not pass ref to React.Fragment for React 19 compatibility\n if (slottableElement.type !== React.Fragment) {\n mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;\n }\n\n return React.cloneElement(slottableElement, mergedProps);\n });\n\n Slot.displayName = `${ownerName}.Slot`;\n return Slot;\n}\n\nconst Slot = createSlot('Slot');\n\n/* -------------------------------------------------------------------------------------------------\n * Slottable\n * -----------------------------------------------------------------------------------------------*/\n\nconst SLOTTABLE_IDENTIFIER = Symbol.for('radix.slottable');\n\ntype SlottableChildrenProps = { children: React.ReactNode };\ntype SlottableRenderFnProps = {\n child: React.ReactNode;\n children: (slottable: React.ReactNode) => React.ReactNode;\n};\n\ntype SlottableProps = SlottableRenderFnProps | SlottableChildrenProps;\ninterface SlottableComponent extends React.FC<SlottableProps> {\n __radixId: symbol;\n}\n\n/* @__NO_SIDE_EFFECTS__ */ export function createSlottable(ownerName: string) {\n const Slottable: SlottableComponent = (props) =>\n 'child' in props ? props.children(props.child) : props.children;\n\n Slottable.displayName = `${ownerName}.Slottable`;\n Slottable.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable;\n}\n\nconst Slottable = createSlottable('Slottable');\n\n/* -------------------------------------------------------------------------------------------------\n * getSlottableElementFromSlottable\n * -----------------------------------------------------------------------------------------------*/\n\nconst getSlottableElementFromSlottable = (slottable: SlottableElement, child: React.ReactNode) => {\n if ('child' in slottable.props) {\n const child = slottable.props.child;\n if (!React.isValidElement<React.PropsWithChildren>(child)) return null;\n return React.cloneElement(child, undefined, slottable.props.children(child.props.children));\n }\n\n return React.isValidElement(child) ? child : null;\n};\n\n/* -------------------------------------------------------------------------------------------------\n * mergeProps\n * -----------------------------------------------------------------------------------------------*/\n\ntype AnyProps = Record<string, any>;\n\nfunction mergeProps(slotProps: AnyProps, childProps: AnyProps) {\n // all child props should override\n const overrideProps = { ...childProps };\n\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n // if the handler exists on both, we compose them\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args: unknown[]) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n }\n // but if it exists only on the slot, we use only this one\n else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n }\n // if it's `style`, we merge them\n else if (propName === 'style') {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === 'className') {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(' ');\n }\n }\n\n return { ...slotProps, ...overrideProps };\n}\n\n/* -------------------------------------------------------------------------------------------------\n * getElementRef\n * -----------------------------------------------------------------------------------------------*/\n\n// Before React 19 accessing `element.props.ref` will throw a warning and suggest using `element.ref`\n// After React 19 accessing `element.ref` does the opposite.\n// https://github.com/facebook/react/pull/28348\n//\n// Access the ref using the method that doesn't yield a warning.\nfunction getElementRef(element: React.ReactElement) {\n // React <=18 in DEV\n let getter = Object.getOwnPropertyDescriptor(element.props, 'ref')?.get;\n let mayWarn = getter && 'isReactWarning' in getter && getter.isReactWarning;\n if (mayWarn) {\n return (element as any).ref;\n }\n\n // React 19 in DEV\n getter = Object.getOwnPropertyDescriptor(element, 'ref')?.get;\n mayWarn = getter && 'isReactWarning' in getter && getter.isReactWarning;\n if (mayWarn) {\n return (element.props as { ref?: React.Ref<unknown> }).ref;\n }\n\n // Not DEV\n return (element.props as { ref?: React.Ref<unknown> }).ref || (element as any).ref;\n}\n\n/* ---------------------------------------------------------------------------------------------- */\n\ntype SlottableElement = React.ReactElement<SlottableProps, SlottableComponent>;\n\nfunction isSlottable(\n child: React.ReactNode,\n): child is React.ReactElement<SlottableProps, typeof Slottable> {\n return (\n React.isValidElement(child) &&\n typeof child.type === 'function' &&\n '__radixId' in child.type &&\n child.type.__radixId === SLOTTABLE_IDENTIFIER\n );\n}\n\nconst REACT_LAZY_TYPE = Symbol.for('react.lazy');\n\ninterface LazyReactElement extends React.ReactElement {\n $$typeof: typeof REACT_LAZY_TYPE;\n _payload: PromiseLike<Exclude<React.ReactNode, PromiseLike<any>>>;\n}\n\nfunction isLazyComponent(element: React.ReactNode): element is LazyReactElement {\n return (\n element != null &&\n typeof element === 'object' &&\n '$$typeof' in element &&\n element.$$typeof === REACT_LAZY_TYPE &&\n '_payload' in element &&\n isPromiseLike(element._payload)\n );\n}\n\nfunction isPromiseLike(value: unknown): value is PromiseLike<unknown> {\n return typeof value === 'object' && value !== null && 'then' in value;\n}\n\nconst createSlotError = (ownerName: string) => {\n return `${ownerName} failed to slot onto its children. Expected a single React element child or \\`Slottable\\`.`;\n};\n\nconst createSlottableError = (ownerName: string) => {\n return `${ownerName} failed to slot onto its \\`Slottable\\`. Expected \\`Slottable\\` to receive a single React element child.`;\n};\n\nconst use: typeof React.use | undefined = (React as any)[' use '.trim().toString()];\n\nexport {\n Slot,\n Slottable,\n //\n Slot as Root,\n};\nexport type { SlotProps };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,YAAuB;AACvB,gCAAgC;AAAA;AAkBE,SAAS,WAGzC,WAAmB;AACnB,QAAMA,QAAa,iBAAyC,CAAC,OAAO,iBAAiB;AACnF,QAAI,EAAE,UAAU,GAAG,UAAU,IAAI;AACjC,QAAI,mBAA8C;AAClD,QAAI,eAAe;AACnB,UAAM,cAAiC,CAAC;AAExC,QAAI,gBAAgB,QAAQ,KAAK,OAAO,QAAQ,YAAY;AAC1D,iBAAW,IAAI,SAAS,QAAQ;AAAA,IAClC;AAEA,IAAM,eAAS,QAAQ,UAAU,CAAC,mBAAmB;AACnD,UAAI,YAAY,cAAc,GAAG;AAC/B,uBAAe;AACf,cAAM,YAAY;AAClB,YAAI,QAAQ,WAAW,UAAU,QAAQ,UAAU,MAAM,QAAQ,UAAU,MAAM;AAEjF,YAAI,gBAAgB,KAAK,KAAK,OAAO,QAAQ,YAAY;AACvD,kBAAQ,IAAI,MAAM,QAAQ;AAAA,QAC5B;AAEA,2BAAmB,iCAAiC,WAAW,KAAK;AACpE,oBAAY,KAAM,kBAAkB,OAAe,QAAQ;AAAA,MAC7D,OAAO;AACL,oBAAY,KAAK,cAAc;AAAA,MACjC;AAAA,IACF,CAAC;AAED,QAAI,kBAAkB;AACpB,yBAAyB,mBAAa,kBAAkB,QAAW,WAAW;AAAA,IAChF;AAAA;AAAA;AAAA;AAAA;AAAA,MAKE,CAAC,gBACK,eAAS,MAAM,QAAQ,MAAM,KAC7B,qBAAe,QAAQ;AAAA,MAC7B;AACA,yBAAmB;AAAA,IACrB;AAEA,UAAM,sBAAsB,mBAAmB,cAAc,gBAAgB,IAAI;AACjF,UAAM,kBAAc,2CAAgB,cAAc,mBAAmB;AAErE,QAAI,CAAC,kBAAkB;AAIrB,UAAI,YAAY,aAAa,GAAG;AAC9B,cAAM,IAAI;AAAA,UACR,eAAe,qBAAqB,SAAS,IAAI,gBAAgB,SAAS;AAAA,QAC5E;AAAA,MACF;AACA,aAAO;AAAA,IACT;AAEA,UAAM,cAAc,WAAW,WAAW,iBAAiB,SAAS,CAAC,CAAC;AAGtE,QAAI,iBAAiB,SAAe,gBAAU;AAC5C,kBAAY,MAAM,eAAe,cAAc;AAAA,IACjD;AAEA,WAAa,mBAAa,kBAAkB,WAAW;AAAA,EACzD,CAAC;AAED,EAAAA,MAAK,cAAc,GAAG,SAAS;AAC/B,SAAOA;AACT;AAEA,IAAM,OAAO,2BAAW,MAAM;AAM9B,IAAM,uBAAuB,OAAO,IAAI,iBAAiB;AAAA;AAavB,SAAS,gBAAgB,WAAmB;AAC5E,QAAMC,aAAgC,CAAC,UACrC,WAAW,QAAQ,MAAM,SAAS,MAAM,KAAK,IAAI,MAAM;AAEzD,EAAAA,WAAU,cAAc,GAAG,SAAS;AACpC,EAAAA,WAAU,YAAY;AACtB,SAAOA;AACT;AAEA,IAAM,YAAY,gCAAgB,WAAW;AAM7C,IAAM,mCAAmC,CAAC,WAA6B,UAA2B;AAChG,MAAI,WAAW,UAAU,OAAO;AAC9B,UAAMC,SAAQ,UAAU,MAAM;AAC9B,QAAI,CAAO,qBAAwCA,MAAK,EAAG,QAAO;AAClE,WAAa,mBAAaA,QAAO,QAAW,UAAU,MAAM,SAASA,OAAM,MAAM,QAAQ,CAAC;AAAA,EAC5F;AAEA,SAAa,qBAAe,KAAK,IAAI,QAAQ;AAC/C;AAQA,SAAS,WAAW,WAAqB,YAAsB;AAE7D,QAAM,gBAAgB,EAAE,GAAG,WAAW;AAEtC,aAAW,YAAY,YAAY;AACjC,UAAM,gBAAgB,UAAU,QAAQ;AACxC,UAAM,iBAAiB,WAAW,QAAQ;AAE1C,UAAM,YAAY,WAAW,KAAK,QAAQ;AAC1C,QAAI,WAAW;AAEb,UAAI,iBAAiB,gBAAgB;AACnC,sBAAc,QAAQ,IAAI,IAAI,SAAoB;AAChD,gBAAM,SAAS,eAAe,GAAG,IAAI;AACrC,wBAAc,GAAG,IAAI;AACrB,iBAAO;AAAA,QACT;AAAA,MACF,WAES,eAAe;AACtB,sBAAc,QAAQ,IAAI;AAAA,MAC5B;AAAA,IACF,WAES,aAAa,SAAS;AAC7B,oBAAc,QAAQ,IAAI,EAAE,GAAG,eAAe,GAAG,eAAe;AAAA,IAClE,WAAW,aAAa,aAAa;AACnC,oBAAc,QAAQ,IAAI,CAAC,eAAe,cAAc,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,IACpF;AAAA,EACF;AAEA,SAAO,EAAE,GAAG,WAAW,GAAG,cAAc;AAC1C;AAWA,SAAS,cAAc,SAA6B;AAElD,MAAI,SAAS,OAAO,yBAAyB,QAAQ,OAAO,KAAK,GAAG;AACpE,MAAI,UAAU,UAAU,oBAAoB,UAAU,OAAO;AAC7D,MAAI,SAAS;AACX,WAAQ,QAAgB;AAAA,EAC1B;AAGA,WAAS,OAAO,yBAAyB,SAAS,KAAK,GAAG;AAC1D,YAAU,UAAU,oBAAoB,UAAU,OAAO;AACzD,MAAI,SAAS;AACX,WAAQ,QAAQ,MAAuC;AAAA,EACzD;AAGA,SAAQ,QAAQ,MAAuC,OAAQ,QAAgB;AACjF;AAMA,SAAS,YACP,OAC+D;AAC/D,SACQ,qBAAe,KAAK,KAC1B,OAAO,MAAM,SAAS,cACtB,eAAe,MAAM,QACrB,MAAM,KAAK,cAAc;AAE7B;AAEA,IAAM,kBAAkB,OAAO,IAAI,YAAY;AAO/C,SAAS,gBAAgB,SAAuD;AAC9E,SACE,WAAW,QACX,OAAO,YAAY,YACnB,cAAc,WACd,QAAQ,aAAa,mBACrB,cAAc,WACd,cAAc,QAAQ,QAAQ;AAElC;AAEA,SAAS,cAAc,OAA+C;AACpE,SAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,UAAU;AAClE;AAEA,IAAM,kBAAkB,CAAC,cAAsB;AAC7C,SAAO,GAAG,SAAS;AACrB;AAEA,IAAM,uBAAuB,CAAC,cAAsB;AAClD,SAAO,GAAG,SAAS;AACrB;AAEA,IAAM,MAAqC,MAAc,QAAQ,KAAK,EAAE,SAAS,CAAC;",
|
|
6
|
+
"names": ["Slot", "Slottable", "child"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
// src/slot.tsx
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { useComposedRefs } from "@radix-ui/react-compose-refs";
|
|
4
|
+
// @__NO_SIDE_EFFECTS__
|
|
5
|
+
function createSlot(ownerName) {
|
|
6
|
+
const Slot2 = React.forwardRef((props, forwardedRef) => {
|
|
7
|
+
let { children, ...slotProps } = props;
|
|
8
|
+
let slottableElement = null;
|
|
9
|
+
let hasSlottable = false;
|
|
10
|
+
const newChildren = [];
|
|
11
|
+
if (isLazyComponent(children) && typeof use === "function") {
|
|
12
|
+
children = use(children._payload);
|
|
13
|
+
}
|
|
14
|
+
React.Children.forEach(children, (maybeSlottable) => {
|
|
15
|
+
if (isSlottable(maybeSlottable)) {
|
|
16
|
+
hasSlottable = true;
|
|
17
|
+
const slottable = maybeSlottable;
|
|
18
|
+
let child = "child" in slottable.props ? slottable.props.child : slottable.props.children;
|
|
19
|
+
if (isLazyComponent(child) && typeof use === "function") {
|
|
20
|
+
child = use(child._payload);
|
|
21
|
+
}
|
|
22
|
+
slottableElement = getSlottableElementFromSlottable(slottable, child);
|
|
23
|
+
newChildren.push(slottableElement?.props?.children);
|
|
24
|
+
} else {
|
|
25
|
+
newChildren.push(maybeSlottable);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
if (slottableElement) {
|
|
29
|
+
slottableElement = React.cloneElement(slottableElement, void 0, newChildren);
|
|
30
|
+
} else if (
|
|
31
|
+
// A `Slottable` was found but it didn't resolve to a single element (e.g.
|
|
32
|
+
// it wrapped multiple elements, text, or a render-prop `child` that
|
|
33
|
+
// wasn't an element). Don't fall back to treating the `Slottable` wrapper
|
|
34
|
+
// itself as the slot target — throw a descriptive error below instead.
|
|
35
|
+
!hasSlottable && React.Children.count(children) === 1 && React.isValidElement(children)
|
|
36
|
+
) {
|
|
37
|
+
slottableElement = children;
|
|
38
|
+
}
|
|
39
|
+
const slottableElementRef = slottableElement ? getElementRef(slottableElement) : void 0;
|
|
40
|
+
const composedRef = useComposedRefs(forwardedRef, slottableElementRef);
|
|
41
|
+
if (!slottableElement) {
|
|
42
|
+
if (children || children === 0) {
|
|
43
|
+
throw new Error(
|
|
44
|
+
hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName)
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
return children;
|
|
48
|
+
}
|
|
49
|
+
const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});
|
|
50
|
+
if (slottableElement.type !== React.Fragment) {
|
|
51
|
+
mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;
|
|
52
|
+
}
|
|
53
|
+
return React.cloneElement(slottableElement, mergedProps);
|
|
54
|
+
});
|
|
55
|
+
Slot2.displayName = `${ownerName}.Slot`;
|
|
56
|
+
return Slot2;
|
|
57
|
+
}
|
|
58
|
+
var Slot = /* @__PURE__ */ createSlot("Slot");
|
|
59
|
+
var SLOTTABLE_IDENTIFIER = Symbol.for("radix.slottable");
|
|
60
|
+
// @__NO_SIDE_EFFECTS__
|
|
61
|
+
function createSlottable(ownerName) {
|
|
62
|
+
const Slottable2 = (props) => "child" in props ? props.children(props.child) : props.children;
|
|
63
|
+
Slottable2.displayName = `${ownerName}.Slottable`;
|
|
64
|
+
Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
|
|
65
|
+
return Slottable2;
|
|
66
|
+
}
|
|
67
|
+
var Slottable = /* @__PURE__ */ createSlottable("Slottable");
|
|
68
|
+
var getSlottableElementFromSlottable = (slottable, child) => {
|
|
69
|
+
if ("child" in slottable.props) {
|
|
70
|
+
const child2 = slottable.props.child;
|
|
71
|
+
if (!React.isValidElement(child2)) return null;
|
|
72
|
+
return React.cloneElement(child2, void 0, slottable.props.children(child2.props.children));
|
|
73
|
+
}
|
|
74
|
+
return React.isValidElement(child) ? child : null;
|
|
75
|
+
};
|
|
76
|
+
function mergeProps(slotProps, childProps) {
|
|
77
|
+
const overrideProps = { ...childProps };
|
|
78
|
+
for (const propName in childProps) {
|
|
79
|
+
const slotPropValue = slotProps[propName];
|
|
80
|
+
const childPropValue = childProps[propName];
|
|
81
|
+
const isHandler = /^on[A-Z]/.test(propName);
|
|
82
|
+
if (isHandler) {
|
|
83
|
+
if (slotPropValue && childPropValue) {
|
|
84
|
+
overrideProps[propName] = (...args) => {
|
|
85
|
+
const result = childPropValue(...args);
|
|
86
|
+
slotPropValue(...args);
|
|
87
|
+
return result;
|
|
88
|
+
};
|
|
89
|
+
} else if (slotPropValue) {
|
|
90
|
+
overrideProps[propName] = slotPropValue;
|
|
91
|
+
}
|
|
92
|
+
} else if (propName === "style") {
|
|
93
|
+
overrideProps[propName] = { ...slotPropValue, ...childPropValue };
|
|
94
|
+
} else if (propName === "className") {
|
|
95
|
+
overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return { ...slotProps, ...overrideProps };
|
|
99
|
+
}
|
|
100
|
+
function getElementRef(element) {
|
|
101
|
+
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
102
|
+
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
103
|
+
if (mayWarn) {
|
|
104
|
+
return element.ref;
|
|
105
|
+
}
|
|
106
|
+
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
107
|
+
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
108
|
+
if (mayWarn) {
|
|
109
|
+
return element.props.ref;
|
|
110
|
+
}
|
|
111
|
+
return element.props.ref || element.ref;
|
|
112
|
+
}
|
|
113
|
+
function isSlottable(child) {
|
|
114
|
+
return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
|
|
115
|
+
}
|
|
116
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
117
|
+
function isLazyComponent(element) {
|
|
118
|
+
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
|
|
119
|
+
}
|
|
120
|
+
function isPromiseLike(value) {
|
|
121
|
+
return typeof value === "object" && value !== null && "then" in value;
|
|
122
|
+
}
|
|
123
|
+
var createSlotError = (ownerName) => {
|
|
124
|
+
return `${ownerName} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`;
|
|
125
|
+
};
|
|
126
|
+
var createSlottableError = (ownerName) => {
|
|
127
|
+
return `${ownerName} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`;
|
|
128
|
+
};
|
|
129
|
+
var use = React[" use ".trim().toString()];
|
|
130
|
+
export {
|
|
131
|
+
Slot as Root,
|
|
132
|
+
Slot,
|
|
133
|
+
Slottable,
|
|
134
|
+
createSlot,
|
|
135
|
+
createSlottable
|
|
136
|
+
};
|
|
137
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/slot.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nimport { useComposedRefs } from '@radix-ui/react-compose-refs';\n\ndeclare module 'react' {\n interface ReactElement {\n $$typeof?: symbol | string;\n }\n}\n\n/* -------------------------------------------------------------------------------------------------\n * Slot\n * -----------------------------------------------------------------------------------------------*/\n\nexport type Usable<T> = PromiseLike<T> | React.Context<T>;\n\ntype SlotProps<Elem extends Element = HTMLElement, Props = React.HTMLAttributes<Elem>> = Props & {\n children?: React.ReactNode;\n};\n\n/* @__NO_SIDE_EFFECTS__ */ export function createSlot<\n Elem extends Element = HTMLElement,\n Props = React.HTMLAttributes<Elem>,\n>(ownerName: string) {\n const Slot = React.forwardRef<Elem, SlotProps<Elem, Props>>((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n let slottableElement: React.ReactElement | null = null;\n let hasSlottable = false;\n const newChildren: React.ReactNode[] = [];\n\n if (isLazyComponent(children) && typeof use === 'function') {\n children = use(children._payload);\n }\n\n React.Children.forEach(children, (maybeSlottable) => {\n if (isSlottable(maybeSlottable)) {\n hasSlottable = true;\n const slottable = maybeSlottable;\n let child = 'child' in slottable.props ? slottable.props.child : slottable.props.children;\n\n if (isLazyComponent(child) && typeof use === 'function') {\n child = use(child._payload);\n }\n\n slottableElement = getSlottableElementFromSlottable(slottable, child);\n newChildren.push((slottableElement?.props as any)?.children);\n } else {\n newChildren.push(maybeSlottable);\n }\n });\n\n if (slottableElement) {\n slottableElement = React.cloneElement(slottableElement, undefined, newChildren);\n } else if (\n // A `Slottable` was found but it didn't resolve to a single element (e.g.\n // it wrapped multiple elements, text, or a render-prop `child` that\n // wasn't an element). Don't fall back to treating the `Slottable` wrapper\n // itself as the slot target \u2014 throw a descriptive error below instead.\n !hasSlottable &&\n React.Children.count(children) === 1 &&\n React.isValidElement(children)\n ) {\n slottableElement = children;\n }\n\n const slottableElementRef = slottableElement ? getElementRef(slottableElement) : undefined;\n const composedRef = useComposedRefs(forwardedRef, slottableElementRef);\n\n if (!slottableElement) {\n // Empty/falsy children (`null`, `undefined`, `false`, no children, etc.) are valid and\n // render nothing. Anything else is content we couldn't slot onto a single element, which\n // is a usage error, so we fail loudly with a clear message.\n if (children || children === 0) {\n throw new Error(\n hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName),\n );\n }\n return children;\n }\n\n const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});\n\n // do not pass ref to React.Fragment for React 19 compatibility\n if (slottableElement.type !== React.Fragment) {\n mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;\n }\n\n return React.cloneElement(slottableElement, mergedProps);\n });\n\n Slot.displayName = `${ownerName}.Slot`;\n return Slot;\n}\n\nconst Slot = createSlot('Slot');\n\n/* -------------------------------------------------------------------------------------------------\n * Slottable\n * -----------------------------------------------------------------------------------------------*/\n\nconst SLOTTABLE_IDENTIFIER = Symbol.for('radix.slottable');\n\ntype SlottableChildrenProps = { children: React.ReactNode };\ntype SlottableRenderFnProps = {\n child: React.ReactNode;\n children: (slottable: React.ReactNode) => React.ReactNode;\n};\n\ntype SlottableProps = SlottableRenderFnProps | SlottableChildrenProps;\ninterface SlottableComponent extends React.FC<SlottableProps> {\n __radixId: symbol;\n}\n\n/* @__NO_SIDE_EFFECTS__ */ export function createSlottable(ownerName: string) {\n const Slottable: SlottableComponent = (props) =>\n 'child' in props ? props.children(props.child) : props.children;\n\n Slottable.displayName = `${ownerName}.Slottable`;\n Slottable.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable;\n}\n\nconst Slottable = createSlottable('Slottable');\n\n/* -------------------------------------------------------------------------------------------------\n * getSlottableElementFromSlottable\n * -----------------------------------------------------------------------------------------------*/\n\nconst getSlottableElementFromSlottable = (slottable: SlottableElement, child: React.ReactNode) => {\n if ('child' in slottable.props) {\n const child = slottable.props.child;\n if (!React.isValidElement<React.PropsWithChildren>(child)) return null;\n return React.cloneElement(child, undefined, slottable.props.children(child.props.children));\n }\n\n return React.isValidElement(child) ? child : null;\n};\n\n/* -------------------------------------------------------------------------------------------------\n * mergeProps\n * -----------------------------------------------------------------------------------------------*/\n\ntype AnyProps = Record<string, any>;\n\nfunction mergeProps(slotProps: AnyProps, childProps: AnyProps) {\n // all child props should override\n const overrideProps = { ...childProps };\n\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n // if the handler exists on both, we compose them\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args: unknown[]) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n }\n // but if it exists only on the slot, we use only this one\n else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n }\n // if it's `style`, we merge them\n else if (propName === 'style') {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === 'className') {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(' ');\n }\n }\n\n return { ...slotProps, ...overrideProps };\n}\n\n/* -------------------------------------------------------------------------------------------------\n * getElementRef\n * -----------------------------------------------------------------------------------------------*/\n\n// Before React 19 accessing `element.props.ref` will throw a warning and suggest using `element.ref`\n// After React 19 accessing `element.ref` does the opposite.\n// https://github.com/facebook/react/pull/28348\n//\n// Access the ref using the method that doesn't yield a warning.\nfunction getElementRef(element: React.ReactElement) {\n // React <=18 in DEV\n let getter = Object.getOwnPropertyDescriptor(element.props, 'ref')?.get;\n let mayWarn = getter && 'isReactWarning' in getter && getter.isReactWarning;\n if (mayWarn) {\n return (element as any).ref;\n }\n\n // React 19 in DEV\n getter = Object.getOwnPropertyDescriptor(element, 'ref')?.get;\n mayWarn = getter && 'isReactWarning' in getter && getter.isReactWarning;\n if (mayWarn) {\n return (element.props as { ref?: React.Ref<unknown> }).ref;\n }\n\n // Not DEV\n return (element.props as { ref?: React.Ref<unknown> }).ref || (element as any).ref;\n}\n\n/* ---------------------------------------------------------------------------------------------- */\n\ntype SlottableElement = React.ReactElement<SlottableProps, SlottableComponent>;\n\nfunction isSlottable(\n child: React.ReactNode,\n): child is React.ReactElement<SlottableProps, typeof Slottable> {\n return (\n React.isValidElement(child) &&\n typeof child.type === 'function' &&\n '__radixId' in child.type &&\n child.type.__radixId === SLOTTABLE_IDENTIFIER\n );\n}\n\nconst REACT_LAZY_TYPE = Symbol.for('react.lazy');\n\ninterface LazyReactElement extends React.ReactElement {\n $$typeof: typeof REACT_LAZY_TYPE;\n _payload: PromiseLike<Exclude<React.ReactNode, PromiseLike<any>>>;\n}\n\nfunction isLazyComponent(element: React.ReactNode): element is LazyReactElement {\n return (\n element != null &&\n typeof element === 'object' &&\n '$$typeof' in element &&\n element.$$typeof === REACT_LAZY_TYPE &&\n '_payload' in element &&\n isPromiseLike(element._payload)\n );\n}\n\nfunction isPromiseLike(value: unknown): value is PromiseLike<unknown> {\n return typeof value === 'object' && value !== null && 'then' in value;\n}\n\nconst createSlotError = (ownerName: string) => {\n return `${ownerName} failed to slot onto its children. Expected a single React element child or \\`Slottable\\`.`;\n};\n\nconst createSlottableError = (ownerName: string) => {\n return `${ownerName} failed to slot onto its \\`Slottable\\`. Expected \\`Slottable\\` to receive a single React element child.`;\n};\n\nconst use: typeof React.use | undefined = (React as any)[' use '.trim().toString()];\n\nexport {\n Slot,\n Slottable,\n //\n Slot as Root,\n};\nexport type { SlotProps };\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["Slot", "Slottable", "child"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@radix-ui/react-slot",
|
|
3
|
+
"version": "1.3.0",
|
|
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-compose-refs": "1.1.3"
|
|
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/typescript-config": "0.0.0",
|
|
23
|
+
"@repo/builder": "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/slot"
|
|
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.
|