@pixpilot/shadcn-ui 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AbsoluteFill.cjs +24 -1
- package/dist/AbsoluteFill.d.ts +2 -2
- package/dist/AbsoluteFill.js +21 -1
- package/dist/Alert.cjs +81 -1
- package/dist/Alert.js +77 -1
- package/dist/Button.cjs +84 -1
- package/dist/Button.d.ts +1 -1
- package/dist/Button.js +79 -1
- package/dist/CloseButtonAbsolute.cjs +20 -1
- package/dist/CloseButtonAbsolute.js +16 -1
- package/dist/CloseButtonRounded.cjs +22 -1
- package/dist/CloseButtonRounded.js +17 -1
- package/dist/Combobox.cjs +53 -1
- package/dist/Combobox.js +48 -1
- package/dist/CommandOptionList.cjs +29 -1
- package/dist/CommandOptionList.js +25 -1
- package/dist/ContentCard.cjs +27 -1
- package/dist/ContentCard.js +23 -1
- package/dist/DatePicker.cjs +38 -1
- package/dist/DatePicker.d.ts +2 -2
- package/dist/DatePicker.js +33 -1
- package/dist/LoadingOverlay.cjs +65 -1
- package/dist/LoadingOverlay.js +60 -1
- package/dist/Select.cjs +27 -1
- package/dist/Select.js +23 -1
- package/dist/Slider.cjs +19 -1
- package/dist/Slider.js +15 -1
- package/dist/ThemeToggle.cjs +98 -1
- package/dist/ThemeToggle.js +94 -1
- package/dist/_virtual/rolldown_runtime.cjs +44 -1
- package/dist/_virtual/rolldown_runtime.js +43 -1
- package/dist/confirmation-dialog/ConfirmationDialog.cjs +47 -1
- package/dist/confirmation-dialog/ConfirmationDialog.d.cts +1 -0
- package/dist/confirmation-dialog/ConfirmationDialog.js +43 -1
- package/dist/confirmation-dialog/DialogProvider.cjs +16 -1
- package/dist/confirmation-dialog/DialogProvider.js +12 -1
- package/dist/confirmation-dialog/confirmation-dialogs.cjs +14 -1
- package/dist/confirmation-dialog/confirmation-dialogs.js +12 -1
- package/dist/confirmation-dialog/index.cjs +7 -1
- package/dist/confirmation-dialog/index.js +6 -1
- package/dist/file-upload/FileUpload.cjs +68 -1
- package/dist/file-upload/FileUpload.js +63 -1
- package/dist/file-upload/FileUploadItems.cjs +36 -1
- package/dist/file-upload/FileUploadItems.js +32 -1
- package/dist/file-upload/FileUploadListItem.cjs +89 -1
- package/dist/file-upload/FileUploadListItem.js +83 -1
- package/dist/file-upload/hooks/index.cjs +4 -1
- package/dist/file-upload/hooks/index.d.cts +2 -0
- package/dist/file-upload/hooks/index.js +3 -1
- package/dist/file-upload/hooks/use-file-error.cjs +15 -1
- package/dist/file-upload/hooks/use-file-error.js +14 -1
- package/dist/file-upload/hooks/use-file-upload-progress-callbacks.cjs +34 -1
- package/dist/file-upload/hooks/use-file-upload-progress-callbacks.d.cts +1 -0
- package/dist/file-upload/hooks/use-file-upload-progress-callbacks.js +32 -1
- package/dist/file-upload/hooks/use-file-upload-store.cjs +77 -1
- package/dist/file-upload/hooks/use-file-upload-store.d.cts +2 -0
- package/dist/file-upload/hooks/use-file-upload-store.js +75 -1
- package/dist/file-upload/index.cjs +6 -1
- package/dist/file-upload/index.d.cts +2 -1
- package/dist/file-upload/index.js +5 -1
- package/dist/file-upload/utils/create-placeholder-file.cjs +12 -1
- package/dist/file-upload/utils/create-placeholder-file.js +10 -1
- package/dist/file-upload/utils/get-file-key.cjs +9 -1
- package/dist/file-upload/utils/get-file-key.d.cts +1 -0
- package/dist/file-upload/utils/get-file-key.js +7 -1
- package/dist/file-upload/utils/get-file-meta.cjs +24 -1
- package/dist/file-upload/utils/get-file-meta.d.cts +1 -0
- package/dist/file-upload/utils/get-file-meta.js +21 -1
- package/dist/file-upload/utils/index.d.cts +4 -0
- package/dist/file-upload/utils/is-file-equal.cjs +10 -1
- package/dist/file-upload/utils/is-file-equal.d.cts +1 -0
- package/dist/file-upload/utils/is-file-equal.js +8 -1
- package/dist/file-upload/utils/merge-file-metadata.cjs +27 -1
- package/dist/file-upload/utils/merge-file-metadata.d.cts +1 -0
- package/dist/file-upload/utils/merge-file-metadata.js +26 -1
- package/dist/file-upload-inline/FileUploadInline.cjs +71 -1
- package/dist/file-upload-inline/FileUploadInline.js +66 -1
- package/dist/file-upload-inline/FileUploadInlineItem.cjs +96 -1
- package/dist/file-upload-inline/FileUploadInlineItem.js +90 -1
- package/dist/file-upload-inline/defaults.cjs +12 -1
- package/dist/file-upload-inline/defaults.js +10 -1
- package/dist/file-upload-inline/index.cjs +2 -1
- package/dist/file-upload-inline/index.js +1 -1
- package/dist/file-upload-inline/utils.cjs +37 -1
- package/dist/file-upload-inline/utils.js +34 -1
- package/dist/hooks/index.cjs +2 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-media-query.cjs +9 -1
- package/dist/hooks/use-media-query.js +7 -1
- package/dist/icon-selector/IconPicker.cjs +93 -1
- package/dist/icon-selector/IconPicker.js +88 -1
- package/dist/icon-selector/constants.cjs +7 -1
- package/dist/icon-selector/constants.js +5 -0
- package/dist/icon-selector/icon-picker-container.cjs +35 -1
- package/dist/icon-selector/icon-picker-container.js +32 -1
- package/dist/icon-selector/icon-picker-content.cjs +146 -1
- package/dist/icon-selector/icon-picker-content.js +141 -1
- package/dist/icon-selector/index.cjs +2 -1
- package/dist/icon-selector/index.js +1 -1
- package/dist/icon-selector/use-async-providers.cjs +69 -1
- package/dist/icon-selector/use-async-providers.js +67 -1
- package/dist/icon-selector/utils/is-valid-provider.cjs +12 -1
- package/dist/icon-selector/utils/is-valid-provider.js +10 -1
- package/dist/icon-selector/virtualized-icon-grid.cjs +137 -1
- package/dist/icon-selector/virtualized-icon-grid.js +132 -1
- package/dist/index.cjs +76 -1
- package/dist/index.js +37 -1
- package/dist/node_modules/.pnpm/@diceui_shared@0.12.0_@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@1_2c51ffe880f01dd537d5b6a13313daf4/node_modules/@diceui/shared/dist/index.cjs +558 -1
- package/dist/node_modules/.pnpm/@diceui_shared@0.12.0_@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@1_2c51ffe880f01dd537d5b6a13313daf4/node_modules/@diceui/shared/dist/index.js +555 -1
- package/dist/node_modules/.pnpm/@diceui_tags-input@0.7.2_@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__reac_e193dc2ff0d426ed009417f8d89778fd/node_modules/@diceui/tags-input/dist/index.cjs +566 -1
- package/dist/node_modules/.pnpm/@diceui_tags-input@0.7.2_@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__reac_e193dc2ff0d426ed009417f8d89778fd/node_modules/@diceui/tags-input/dist/index.js +565 -1
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +695 -1
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +679 -1
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +521 -1
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +503 -1
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs +282 -1
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +266 -1
- package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.esm.cjs +3767 -1
- package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.esm.js +3747 -1
- package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.utils.cjs +426 -1
- package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +379 -1
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +165 -1
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +175 -1
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +151 -1
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +138 -1
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.3/node_modules/@radix-ui/primitive/dist/index.cjs +13 -0
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.3/node_modules/@radix-ui/primitive/dist/index.js +11 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +33 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.js +30 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.cjs +92 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.js +88 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1.15_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_4f1d9653b0e2175502748f45fd432185/node_modules/@radix-ui/react-dialog/dist/index.cjs +310 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1.15_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_4f1d9653b0e2175502748f45fd432185/node_modules/@radix-ui/react-dialog/dist/index.js +299 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.11_@types_react-dom@19.2.3_@types_react@19.2.6__@_9ee1db7daf927866cf505b31d40047ad/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +190 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.11_@types_react-dom@19.2.3_@types_react@19.2.6__@_9ee1db7daf927866cf505b31d40047ad/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +187 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +34 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.js +32 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.7_@types_react-dom@19.2.3_@types_react@19.2.6__@types_r_0a31b7f987af9482d13505312e1a1be9/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +203 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.7_@types_react-dom@19.2.3_@types_react@19.2.6__@types_r_0a31b7f987af9482d13505312e1a1be9/node_modules/@radix-ui/react-focus-scope/dist/index.js +200 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-id/dist/index.cjs +18 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-id/dist/index.js +16 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.9_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@_1bb4e0f97f86496802d28a2e74e2a8b9/node_modules/@radix-ui/react-portal/dist/index.cjs +29 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.9_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@_1bb4e0f97f86496802d28a2e74e2a8b9/node_modules/@radix-ui/react-portal/dist/index.js +25 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.5_@types_react-dom@19.2.3_@types_react@19.2.6__@types_reac_90f8e5c12233caef3399d5fd66452a13/node_modules/@radix-ui/react-presence/dist/index.cjs +110 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.5_@types_react-dom@19.2.3_@types_react@19.2.6__@types_reac_90f8e5c12233caef3399d5fd66452a13/node_modules/@radix-ui/react-presence/dist/index.js +108 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_a92a69cb1cb39305138539e4fa72f596/node_modules/@radix-ui/react-primitive/dist/index.cjs +52 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_a92a69cb1cb39305138539e4fa72f596/node_modules/@radix-ui/react-primitive/dist/index.js +47 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.3_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.cjs +92 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.3_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.js +89 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.4_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.cjs +103 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.4_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.js +100 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +15 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +13 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +64 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +62 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +19 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +17 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +9 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +108 -0
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es5/index.cjs +155 -0
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.cjs +19 -0
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +17 -0
- package/dist/node_modules/.pnpm/detect-node-es@1.1.0/node_modules/detect-node-es/es5/node.cjs +14 -0
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +9 -0
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es5/index.cjs +22 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/component.js +46 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +12 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/index.js +3 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +37 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es5/component.cjs +61 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es5/constants.cjs +23 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es5/index.cjs +57 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es5/utils.cjs +49 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.js +17 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +163 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/UI.js +64 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +85 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/medium.js +7 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.js +9 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/Combination.cjs +29 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/SideEffect.cjs +179 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/UI.cjs +79 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/aggresiveCapture.cjs +27 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/handleScroll.cjs +98 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/index.cjs +19 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/medium.cjs +18 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/sidecar.cjs +21 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/component.js +21 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/hook.js +27 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/index.js +3 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/singleton.js +43 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es5/component.cjs +33 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es5/hook.cjs +40 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es5/index.cjs +39 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es5/singleton.cjs +55 -0
- package/dist/node_modules/.pnpm/tabbable@6.3.0/node_modules/tabbable/dist/index.cjs +347 -1
- package/dist/node_modules/.pnpm/tabbable@6.3.0/node_modules/tabbable/dist/index.esm.js +268 -1
- package/dist/node_modules/.pnpm/tailwind-merge@3.4.0/node_modules/tailwind-merge/dist/bundle-mjs.cjs +1895 -0
- package/dist/node_modules/.pnpm/tailwind-merge@3.4.0/node_modules/tailwind-merge/dist/bundle-mjs.js +1893 -0
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.cjs +557 -0
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +31 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es2015/assignRef.js +22 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +47 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useRef.js +42 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/assignRef.cjs +34 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/createRef.cjs +39 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/index.cjs +85 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/mergeRef.cjs +40 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/refToCallback.cjs +59 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/transformRef.cjs +34 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/useMergeRef.cjs +61 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/useRef.cjs +53 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/useTransformRef.cjs +38 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es2015/exports.js +19 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es2015/medium.js +84 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es5/config.cjs +22 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es5/env.cjs +21 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es5/exports.cjs +31 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es5/hoc.cjs +31 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es5/hook.cjs +60 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es5/index.cjs +69 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es5/medium.cjs +101 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es5/renderProp.cjs +58 -0
- package/dist/packages/shadcn/src/components/index.cjs +6 -1
- package/dist/packages/shadcn/src/components/index.js +5 -1
- package/dist/packages/shadcn/src/components/ui/OrContinueWithSeparator.cjs +6 -1
- package/dist/packages/shadcn/src/components/ui/OrContinueWithSeparator.js +3 -1
- package/dist/packages/shadcn/src/components/ui/alert-dialog.cjs +10 -1
- package/dist/packages/shadcn/src/components/ui/alert-dialog.js +6 -1
- package/dist/packages/shadcn/src/components/ui/alert.cjs +44 -1
- package/dist/packages/shadcn/src/components/ui/alert.js +38 -1
- package/dist/packages/shadcn/src/components/ui/avatar.cjs +5 -1
- package/dist/packages/shadcn/src/components/ui/avatar.js +2 -1
- package/dist/packages/shadcn/src/components/ui/badge.cjs +20 -1
- package/dist/packages/shadcn/src/components/ui/badge.js +16 -1
- package/dist/packages/shadcn/src/components/ui/button.cjs +50 -1
- package/dist/packages/shadcn/src/components/ui/button.js +45 -1
- package/dist/packages/shadcn/src/components/ui/calendar.cjs +8 -1
- package/dist/packages/shadcn/src/components/ui/calendar.js +4 -1
- package/dist/packages/shadcn/src/components/ui/card.cjs +5 -1
- package/dist/packages/shadcn/src/components/ui/card.js +2 -1
- package/dist/packages/shadcn/src/components/ui/checkbox.cjs +10 -1
- package/dist/packages/shadcn/src/components/ui/checkbox.js +6 -1
- package/dist/packages/shadcn/src/components/ui/command.cjs +11 -1
- package/dist/packages/shadcn/src/components/ui/command.js +7 -1
- package/dist/packages/shadcn/src/components/ui/dialog.cjs +93 -1
- package/dist/packages/shadcn/src/components/ui/dialog.js +81 -1
- package/dist/packages/shadcn/src/components/ui/dropdown-menu.cjs +7 -1
- package/dist/packages/shadcn/src/components/ui/dropdown-menu.js +3 -1
- package/dist/packages/shadcn/src/components/ui/file-upload.cjs +49 -1
- package/dist/packages/shadcn/src/components/ui/file-upload.js +45 -1
- package/dist/packages/shadcn/src/components/ui/form.cjs +12 -1
- package/dist/packages/shadcn/src/components/ui/form.js +9 -1
- package/dist/packages/shadcn/src/components/ui/index.cjs +30 -1
- package/dist/packages/shadcn/src/components/ui/index.js +29 -1
- package/dist/packages/shadcn/src/components/ui/input.cjs +5 -1
- package/dist/packages/shadcn/src/components/ui/input.js +2 -1
- package/dist/packages/shadcn/src/components/ui/label.cjs +5 -1
- package/dist/packages/shadcn/src/components/ui/label.js +2 -1
- package/dist/packages/shadcn/src/components/ui/pagination.cjs +9 -1
- package/dist/packages/shadcn/src/components/ui/pagination.js +4 -1
- package/dist/packages/shadcn/src/components/ui/popover.cjs +5 -1
- package/dist/packages/shadcn/src/components/ui/popover.js +2 -1
- package/dist/packages/shadcn/src/components/ui/radio-group.cjs +7 -1
- package/dist/packages/shadcn/src/components/ui/radio-group.js +3 -1
- package/dist/packages/shadcn/src/components/ui/select.cjs +10 -1
- package/dist/packages/shadcn/src/components/ui/select.js +6 -1
- package/dist/packages/shadcn/src/components/ui/separator.cjs +5 -1
- package/dist/packages/shadcn/src/components/ui/separator.js +2 -1
- package/dist/packages/shadcn/src/components/ui/shadcn-io/tags/index.cjs +26 -1
- package/dist/packages/shadcn/src/components/ui/shadcn-io/tags/index.js +22 -1
- package/dist/packages/shadcn/src/components/ui/shadcn-io/tags-input-inline/index.cjs +6 -1
- package/dist/packages/shadcn/src/components/ui/shadcn-io/tags-input-inline/index.js +3 -1
- package/dist/packages/shadcn/src/components/ui/sheet.cjs +7 -1
- package/dist/packages/shadcn/src/components/ui/sheet.js +3 -1
- package/dist/packages/shadcn/src/components/ui/slider.cjs +5 -1
- package/dist/packages/shadcn/src/components/ui/slider.js +2 -1
- package/dist/packages/shadcn/src/components/ui/switch.cjs +8 -1
- package/dist/packages/shadcn/src/components/ui/switch.js +5 -1
- package/dist/packages/shadcn/src/components/ui/tabs.cjs +5 -1
- package/dist/packages/shadcn/src/components/ui/tabs.js +2 -1
- package/dist/packages/shadcn/src/components/ui/textarea.cjs +5 -1
- package/dist/packages/shadcn/src/components/ui/textarea.js +2 -1
- package/dist/packages/shadcn/src/components/ui/tooltip.cjs +5 -1
- package/dist/packages/shadcn/src/components/ui/tooltip.js +2 -1
- package/dist/packages/shadcn/src/lib/utils.cjs +11 -1
- package/dist/packages/shadcn/src/lib/utils.js +10 -1
- package/dist/pagination/Pagination.cjs +156 -1
- package/dist/pagination/Pagination.js +151 -1
- package/dist/pagination/index.cjs +2 -1
- package/dist/pagination/index.js +1 -1
- package/dist/rich-text-editor/RichTextEditor.cjs +132 -1
- package/dist/rich-text-editor/RichTextEditor.js +126 -1
- package/dist/rich-text-editor/index.cjs +2 -1
- package/dist/rich-text-editor/index.js +1 -1
- package/dist/rich-text-editor/predefined-toolbar-options.cjs +84 -1
- package/dist/rich-text-editor/predefined-toolbar-options.js +81 -1
- package/dist/spinner/index.cjs +2 -1
- package/dist/spinner/index.js +1 -1
- package/dist/spinner/spinner.cjs +73 -6
- package/dist/spinner/spinner.js +70 -6
- package/dist/spinner/styles.cjs +25 -12
- package/dist/spinner/styles.js +23 -12
- package/dist/tags-input.cjs +226 -1
- package/dist/tags-input.js +222 -1
- package/dist/theme-provider/ThemeProvider.cjs +27 -1
- package/dist/theme-provider/ThemeProvider.js +23 -1
- package/dist/theme-provider/index.cjs +4 -1
- package/dist/theme-provider/index.js +4 -1
- package/dist/toast/AlertToast.cjs +36 -1
- package/dist/toast/AlertToast.js +31 -1
- package/dist/toast/index.cjs +2 -1
- package/dist/toast/index.js +1 -1
- package/dist/toast/toast.cjs +75 -1
- package/dist/toast/toast.js +66 -1
- package/package.json +3 -3
- package/dist/packages/shadcn/src/lib/index.cjs +0 -1
- package/dist/packages/shadcn/src/lib/index.js +0 -1
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import { useComposedRefs } from "../../../../../@radix-ui_react-compose-refs@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.js";
|
|
5
|
+
import { useLayoutEffect2 } from "../../../../../@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.js";
|
|
6
|
+
import * as React2 from "react";
|
|
7
|
+
|
|
8
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.5_@types+react-dom@19.2.3_@types+react@19.2.6__@types+reac_90f8e5c12233caef3399d5fd66452a13/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
9
|
+
function useStateMachine(initialState, machine) {
|
|
10
|
+
return React2.useReducer((state, event) => {
|
|
11
|
+
return machine[state][event] ?? state;
|
|
12
|
+
}, initialState);
|
|
13
|
+
}
|
|
14
|
+
var Presence = (props) => {
|
|
15
|
+
const { present, children } = props;
|
|
16
|
+
const presence = usePresence(present);
|
|
17
|
+
const child = typeof children === "function" ? children({ present: presence.isPresent }) : React2.Children.only(children);
|
|
18
|
+
const ref = useComposedRefs(presence.ref, getElementRef(child));
|
|
19
|
+
return typeof children === "function" || presence.isPresent ? React2.cloneElement(child, { ref }) : null;
|
|
20
|
+
};
|
|
21
|
+
Presence.displayName = "Presence";
|
|
22
|
+
function usePresence(present) {
|
|
23
|
+
const [node, setNode] = React2.useState();
|
|
24
|
+
const stylesRef = React2.useRef(null);
|
|
25
|
+
const prevPresentRef = React2.useRef(present);
|
|
26
|
+
const prevAnimationNameRef = React2.useRef("none");
|
|
27
|
+
const [state, send] = useStateMachine(present ? "mounted" : "unmounted", {
|
|
28
|
+
mounted: {
|
|
29
|
+
UNMOUNT: "unmounted",
|
|
30
|
+
ANIMATION_OUT: "unmountSuspended"
|
|
31
|
+
},
|
|
32
|
+
unmountSuspended: {
|
|
33
|
+
MOUNT: "mounted",
|
|
34
|
+
ANIMATION_END: "unmounted"
|
|
35
|
+
},
|
|
36
|
+
unmounted: { MOUNT: "mounted" }
|
|
37
|
+
});
|
|
38
|
+
React2.useEffect(() => {
|
|
39
|
+
const currentAnimationName = getAnimationName(stylesRef.current);
|
|
40
|
+
prevAnimationNameRef.current = state === "mounted" ? currentAnimationName : "none";
|
|
41
|
+
}, [state]);
|
|
42
|
+
useLayoutEffect2(() => {
|
|
43
|
+
const styles = stylesRef.current;
|
|
44
|
+
const wasPresent = prevPresentRef.current;
|
|
45
|
+
if (wasPresent !== present) {
|
|
46
|
+
const prevAnimationName = prevAnimationNameRef.current;
|
|
47
|
+
const currentAnimationName = getAnimationName(styles);
|
|
48
|
+
if (present) send("MOUNT");
|
|
49
|
+
else if (currentAnimationName === "none" || styles?.display === "none") send("UNMOUNT");
|
|
50
|
+
else if (wasPresent && prevAnimationName !== currentAnimationName) send("ANIMATION_OUT");
|
|
51
|
+
else send("UNMOUNT");
|
|
52
|
+
prevPresentRef.current = present;
|
|
53
|
+
}
|
|
54
|
+
}, [present, send]);
|
|
55
|
+
useLayoutEffect2(() => {
|
|
56
|
+
if (node) {
|
|
57
|
+
let timeoutId;
|
|
58
|
+
const ownerWindow = node.ownerDocument.defaultView ?? window;
|
|
59
|
+
const handleAnimationEnd = (event) => {
|
|
60
|
+
const isCurrentAnimation = getAnimationName(stylesRef.current).includes(CSS.escape(event.animationName));
|
|
61
|
+
if (event.target === node && isCurrentAnimation) {
|
|
62
|
+
send("ANIMATION_END");
|
|
63
|
+
if (!prevPresentRef.current) {
|
|
64
|
+
const currentFillMode = node.style.animationFillMode;
|
|
65
|
+
node.style.animationFillMode = "forwards";
|
|
66
|
+
timeoutId = ownerWindow.setTimeout(() => {
|
|
67
|
+
if (node.style.animationFillMode === "forwards") node.style.animationFillMode = currentFillMode;
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
const handleAnimationStart = (event) => {
|
|
73
|
+
if (event.target === node) prevAnimationNameRef.current = getAnimationName(stylesRef.current);
|
|
74
|
+
};
|
|
75
|
+
node.addEventListener("animationstart", handleAnimationStart);
|
|
76
|
+
node.addEventListener("animationcancel", handleAnimationEnd);
|
|
77
|
+
node.addEventListener("animationend", handleAnimationEnd);
|
|
78
|
+
return () => {
|
|
79
|
+
ownerWindow.clearTimeout(timeoutId);
|
|
80
|
+
node.removeEventListener("animationstart", handleAnimationStart);
|
|
81
|
+
node.removeEventListener("animationcancel", handleAnimationEnd);
|
|
82
|
+
node.removeEventListener("animationend", handleAnimationEnd);
|
|
83
|
+
};
|
|
84
|
+
} else send("ANIMATION_END");
|
|
85
|
+
}, [node, send]);
|
|
86
|
+
return {
|
|
87
|
+
isPresent: ["mounted", "unmountSuspended"].includes(state),
|
|
88
|
+
ref: React2.useCallback((node2) => {
|
|
89
|
+
stylesRef.current = node2 ? getComputedStyle(node2) : null;
|
|
90
|
+
setNode(node2);
|
|
91
|
+
}, [])
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
function getAnimationName(styles) {
|
|
95
|
+
return styles?.animationName || "none";
|
|
96
|
+
}
|
|
97
|
+
function getElementRef(element) {
|
|
98
|
+
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
99
|
+
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
100
|
+
if (mayWarn) return element.ref;
|
|
101
|
+
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
102
|
+
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
103
|
+
if (mayWarn) return element.props.ref;
|
|
104
|
+
return element.props.ref || element.ref;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
//#endregion
|
|
108
|
+
export { Presence };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_index = require('../../../../../@radix-ui_react-slot@1.2.3_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.cjs');
|
|
3
|
+
let react = require("react");
|
|
4
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
7
|
+
let react_dom = require("react-dom");
|
|
8
|
+
react_dom = require_rolldown_runtime.__toESM(react_dom);
|
|
9
|
+
|
|
10
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.2.3_@types+react@19.2.6__@types+rea_a92a69cb1cb39305138539e4fa72f596/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
11
|
+
var Primitive = [
|
|
12
|
+
"a",
|
|
13
|
+
"button",
|
|
14
|
+
"div",
|
|
15
|
+
"form",
|
|
16
|
+
"h2",
|
|
17
|
+
"h3",
|
|
18
|
+
"img",
|
|
19
|
+
"input",
|
|
20
|
+
"label",
|
|
21
|
+
"li",
|
|
22
|
+
"nav",
|
|
23
|
+
"ol",
|
|
24
|
+
"p",
|
|
25
|
+
"select",
|
|
26
|
+
"span",
|
|
27
|
+
"svg",
|
|
28
|
+
"ul"
|
|
29
|
+
].reduce((primitive, node) => {
|
|
30
|
+
const Slot = require_index.createSlot(`Primitive.${node}`);
|
|
31
|
+
const Node = react.forwardRef((props, forwardedRef) => {
|
|
32
|
+
const { asChild,...primitiveProps } = props;
|
|
33
|
+
const Comp = asChild ? Slot : node;
|
|
34
|
+
if (typeof window !== "undefined") window[Symbol.for("radix-ui")] = true;
|
|
35
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Comp, {
|
|
36
|
+
...primitiveProps,
|
|
37
|
+
ref: forwardedRef
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
Node.displayName = `Primitive.${node}`;
|
|
41
|
+
return {
|
|
42
|
+
...primitive,
|
|
43
|
+
[node]: Node
|
|
44
|
+
};
|
|
45
|
+
}, {});
|
|
46
|
+
function dispatchDiscreteCustomEvent(target, event) {
|
|
47
|
+
if (target) react_dom.flushSync(() => target.dispatchEvent(event));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
exports.Primitive = Primitive;
|
|
52
|
+
exports.dispatchDiscreteCustomEvent = dispatchDiscreteCustomEvent;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { createSlot } from "../../../../../@radix-ui_react-slot@1.2.3_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.js";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import * as ReactDOM$1 from "react-dom";
|
|
5
|
+
|
|
6
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.2.3_@types+react@19.2.6__@types+rea_a92a69cb1cb39305138539e4fa72f596/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
7
|
+
var Primitive = [
|
|
8
|
+
"a",
|
|
9
|
+
"button",
|
|
10
|
+
"div",
|
|
11
|
+
"form",
|
|
12
|
+
"h2",
|
|
13
|
+
"h3",
|
|
14
|
+
"img",
|
|
15
|
+
"input",
|
|
16
|
+
"label",
|
|
17
|
+
"li",
|
|
18
|
+
"nav",
|
|
19
|
+
"ol",
|
|
20
|
+
"p",
|
|
21
|
+
"select",
|
|
22
|
+
"span",
|
|
23
|
+
"svg",
|
|
24
|
+
"ul"
|
|
25
|
+
].reduce((primitive, node) => {
|
|
26
|
+
const Slot = createSlot(`Primitive.${node}`);
|
|
27
|
+
const Node = React$1.forwardRef((props, forwardedRef) => {
|
|
28
|
+
const { asChild,...primitiveProps } = props;
|
|
29
|
+
const Comp = asChild ? Slot : node;
|
|
30
|
+
if (typeof window !== "undefined") window[Symbol.for("radix-ui")] = true;
|
|
31
|
+
return /* @__PURE__ */ jsx(Comp, {
|
|
32
|
+
...primitiveProps,
|
|
33
|
+
ref: forwardedRef
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
Node.displayName = `Primitive.${node}`;
|
|
37
|
+
return {
|
|
38
|
+
...primitive,
|
|
39
|
+
[node]: Node
|
|
40
|
+
};
|
|
41
|
+
}, {});
|
|
42
|
+
function dispatchDiscreteCustomEvent(target, event) {
|
|
43
|
+
if (target) ReactDOM$1.flushSync(() => target.dispatchEvent(event));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
export { Primitive, dispatchDiscreteCustomEvent };
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_index = require('../../../../../@radix-ui_react-compose-refs@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.cjs');
|
|
3
|
+
let react = require("react");
|
|
4
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
7
|
+
|
|
8
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
9
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
10
|
+
function createSlot(ownerName) {
|
|
11
|
+
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
|
12
|
+
const Slot2 = react.forwardRef((props, forwardedRef) => {
|
|
13
|
+
const { children,...slotProps } = props;
|
|
14
|
+
const childrenArray = react.Children.toArray(children);
|
|
15
|
+
const slottable = childrenArray.find(isSlottable);
|
|
16
|
+
if (slottable) {
|
|
17
|
+
const newElement = slottable.props.children;
|
|
18
|
+
const newChildren = childrenArray.map((child) => {
|
|
19
|
+
if (child === slottable) {
|
|
20
|
+
if (react.Children.count(newElement) > 1) return react.Children.only(null);
|
|
21
|
+
return react.isValidElement(newElement) ? newElement.props.children : null;
|
|
22
|
+
} else return child;
|
|
23
|
+
});
|
|
24
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SlotClone, {
|
|
25
|
+
...slotProps,
|
|
26
|
+
ref: forwardedRef,
|
|
27
|
+
children: react.isValidElement(newElement) ? react.cloneElement(newElement, void 0, newChildren) : null
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SlotClone, {
|
|
31
|
+
...slotProps,
|
|
32
|
+
ref: forwardedRef,
|
|
33
|
+
children
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
Slot2.displayName = `${ownerName}.Slot`;
|
|
37
|
+
return Slot2;
|
|
38
|
+
}
|
|
39
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
40
|
+
function createSlotClone(ownerName) {
|
|
41
|
+
const SlotClone = react.forwardRef((props, forwardedRef) => {
|
|
42
|
+
const { children,...slotProps } = props;
|
|
43
|
+
if (react.isValidElement(children)) {
|
|
44
|
+
const childrenRef = getElementRef(children);
|
|
45
|
+
const props2 = mergeProps(slotProps, children.props);
|
|
46
|
+
if (children.type !== react.Fragment) props2.ref = forwardedRef ? require_index.composeRefs(forwardedRef, childrenRef) : childrenRef;
|
|
47
|
+
return react.cloneElement(children, props2);
|
|
48
|
+
}
|
|
49
|
+
return react.Children.count(children) > 1 ? react.Children.only(null) : null;
|
|
50
|
+
});
|
|
51
|
+
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
52
|
+
return SlotClone;
|
|
53
|
+
}
|
|
54
|
+
var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
|
|
55
|
+
function isSlottable(child) {
|
|
56
|
+
return react.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
|
|
57
|
+
}
|
|
58
|
+
function mergeProps(slotProps, childProps) {
|
|
59
|
+
const overrideProps = { ...childProps };
|
|
60
|
+
for (const propName in childProps) {
|
|
61
|
+
const slotPropValue = slotProps[propName];
|
|
62
|
+
const childPropValue = childProps[propName];
|
|
63
|
+
if (/^on[A-Z]/.test(propName)) {
|
|
64
|
+
if (slotPropValue && childPropValue) overrideProps[propName] = (...args) => {
|
|
65
|
+
const result = childPropValue(...args);
|
|
66
|
+
slotPropValue(...args);
|
|
67
|
+
return result;
|
|
68
|
+
};
|
|
69
|
+
else if (slotPropValue) overrideProps[propName] = slotPropValue;
|
|
70
|
+
} else if (propName === "style") overrideProps[propName] = {
|
|
71
|
+
...slotPropValue,
|
|
72
|
+
...childPropValue
|
|
73
|
+
};
|
|
74
|
+
else if (propName === "className") overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
...slotProps,
|
|
78
|
+
...overrideProps
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function getElementRef(element) {
|
|
82
|
+
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
83
|
+
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
84
|
+
if (mayWarn) return element.ref;
|
|
85
|
+
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
86
|
+
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
87
|
+
if (mayWarn) return element.props.ref;
|
|
88
|
+
return element.props.ref || element.ref;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
//#endregion
|
|
92
|
+
exports.createSlot = createSlot;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { composeRefs } from "../../../../../@radix-ui_react-compose-refs@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.js";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
6
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
7
|
+
function createSlot(ownerName) {
|
|
8
|
+
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
|
9
|
+
const Slot2 = React$1.forwardRef((props, forwardedRef) => {
|
|
10
|
+
const { children,...slotProps } = props;
|
|
11
|
+
const childrenArray = React$1.Children.toArray(children);
|
|
12
|
+
const slottable = childrenArray.find(isSlottable);
|
|
13
|
+
if (slottable) {
|
|
14
|
+
const newElement = slottable.props.children;
|
|
15
|
+
const newChildren = childrenArray.map((child) => {
|
|
16
|
+
if (child === slottable) {
|
|
17
|
+
if (React$1.Children.count(newElement) > 1) return React$1.Children.only(null);
|
|
18
|
+
return React$1.isValidElement(newElement) ? newElement.props.children : null;
|
|
19
|
+
} else return child;
|
|
20
|
+
});
|
|
21
|
+
return /* @__PURE__ */ jsx(SlotClone, {
|
|
22
|
+
...slotProps,
|
|
23
|
+
ref: forwardedRef,
|
|
24
|
+
children: React$1.isValidElement(newElement) ? React$1.cloneElement(newElement, void 0, newChildren) : null
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return /* @__PURE__ */ jsx(SlotClone, {
|
|
28
|
+
...slotProps,
|
|
29
|
+
ref: forwardedRef,
|
|
30
|
+
children
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
Slot2.displayName = `${ownerName}.Slot`;
|
|
34
|
+
return Slot2;
|
|
35
|
+
}
|
|
36
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
37
|
+
function createSlotClone(ownerName) {
|
|
38
|
+
const SlotClone = React$1.forwardRef((props, forwardedRef) => {
|
|
39
|
+
const { children,...slotProps } = props;
|
|
40
|
+
if (React$1.isValidElement(children)) {
|
|
41
|
+
const childrenRef = getElementRef(children);
|
|
42
|
+
const props2 = mergeProps(slotProps, children.props);
|
|
43
|
+
if (children.type !== React$1.Fragment) props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
|
|
44
|
+
return React$1.cloneElement(children, props2);
|
|
45
|
+
}
|
|
46
|
+
return React$1.Children.count(children) > 1 ? React$1.Children.only(null) : null;
|
|
47
|
+
});
|
|
48
|
+
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
49
|
+
return SlotClone;
|
|
50
|
+
}
|
|
51
|
+
var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
|
|
52
|
+
function isSlottable(child) {
|
|
53
|
+
return React$1.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
|
|
54
|
+
}
|
|
55
|
+
function mergeProps(slotProps, childProps) {
|
|
56
|
+
const overrideProps = { ...childProps };
|
|
57
|
+
for (const propName in childProps) {
|
|
58
|
+
const slotPropValue = slotProps[propName];
|
|
59
|
+
const childPropValue = childProps[propName];
|
|
60
|
+
if (/^on[A-Z]/.test(propName)) {
|
|
61
|
+
if (slotPropValue && childPropValue) overrideProps[propName] = (...args) => {
|
|
62
|
+
const result = childPropValue(...args);
|
|
63
|
+
slotPropValue(...args);
|
|
64
|
+
return result;
|
|
65
|
+
};
|
|
66
|
+
else if (slotPropValue) overrideProps[propName] = slotPropValue;
|
|
67
|
+
} else if (propName === "style") overrideProps[propName] = {
|
|
68
|
+
...slotPropValue,
|
|
69
|
+
...childPropValue
|
|
70
|
+
};
|
|
71
|
+
else if (propName === "className") overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
...slotProps,
|
|
75
|
+
...overrideProps
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function getElementRef(element) {
|
|
79
|
+
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
80
|
+
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
81
|
+
if (mayWarn) return element.ref;
|
|
82
|
+
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
83
|
+
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
84
|
+
if (mayWarn) return element.props.ref;
|
|
85
|
+
return element.props.ref || element.ref;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
//#endregion
|
|
89
|
+
export { createSlot };
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_index = require('../../../../../@radix-ui_react-compose-refs@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.cjs');
|
|
3
|
+
let react = require("react");
|
|
4
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
7
|
+
|
|
8
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.4_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
9
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
10
|
+
var use = react[" use ".trim().toString()];
|
|
11
|
+
function isPromiseLike(value) {
|
|
12
|
+
return typeof value === "object" && value !== null && "then" in value;
|
|
13
|
+
}
|
|
14
|
+
function isLazyComponent(element) {
|
|
15
|
+
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
|
|
16
|
+
}
|
|
17
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
18
|
+
function createSlot(ownerName) {
|
|
19
|
+
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
|
20
|
+
const Slot2 = react.forwardRef((props, forwardedRef) => {
|
|
21
|
+
let { children,...slotProps } = props;
|
|
22
|
+
if (isLazyComponent(children) && typeof use === "function") children = use(children._payload);
|
|
23
|
+
const childrenArray = react.Children.toArray(children);
|
|
24
|
+
const slottable = childrenArray.find(isSlottable);
|
|
25
|
+
if (slottable) {
|
|
26
|
+
const newElement = slottable.props.children;
|
|
27
|
+
const newChildren = childrenArray.map((child) => {
|
|
28
|
+
if (child === slottable) {
|
|
29
|
+
if (react.Children.count(newElement) > 1) return react.Children.only(null);
|
|
30
|
+
return react.isValidElement(newElement) ? newElement.props.children : null;
|
|
31
|
+
} else return child;
|
|
32
|
+
});
|
|
33
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SlotClone, {
|
|
34
|
+
...slotProps,
|
|
35
|
+
ref: forwardedRef,
|
|
36
|
+
children: react.isValidElement(newElement) ? react.cloneElement(newElement, void 0, newChildren) : null
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SlotClone, {
|
|
40
|
+
...slotProps,
|
|
41
|
+
ref: forwardedRef,
|
|
42
|
+
children
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
Slot2.displayName = `${ownerName}.Slot`;
|
|
46
|
+
return Slot2;
|
|
47
|
+
}
|
|
48
|
+
var Slot = /* @__PURE__ */ createSlot("Slot");
|
|
49
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
50
|
+
function createSlotClone(ownerName) {
|
|
51
|
+
const SlotClone = react.forwardRef((props, forwardedRef) => {
|
|
52
|
+
let { children,...slotProps } = props;
|
|
53
|
+
if (isLazyComponent(children) && typeof use === "function") children = use(children._payload);
|
|
54
|
+
if (react.isValidElement(children)) {
|
|
55
|
+
const childrenRef = getElementRef(children);
|
|
56
|
+
const props2 = mergeProps(slotProps, children.props);
|
|
57
|
+
if (children.type !== react.Fragment) props2.ref = forwardedRef ? require_index.composeRefs(forwardedRef, childrenRef) : childrenRef;
|
|
58
|
+
return react.cloneElement(children, props2);
|
|
59
|
+
}
|
|
60
|
+
return react.Children.count(children) > 1 ? react.Children.only(null) : null;
|
|
61
|
+
});
|
|
62
|
+
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
63
|
+
return SlotClone;
|
|
64
|
+
}
|
|
65
|
+
var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
|
|
66
|
+
function isSlottable(child) {
|
|
67
|
+
return react.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
|
|
68
|
+
}
|
|
69
|
+
function mergeProps(slotProps, childProps) {
|
|
70
|
+
const overrideProps = { ...childProps };
|
|
71
|
+
for (const propName in childProps) {
|
|
72
|
+
const slotPropValue = slotProps[propName];
|
|
73
|
+
const childPropValue = childProps[propName];
|
|
74
|
+
if (/^on[A-Z]/.test(propName)) {
|
|
75
|
+
if (slotPropValue && childPropValue) overrideProps[propName] = (...args) => {
|
|
76
|
+
const result = childPropValue(...args);
|
|
77
|
+
slotPropValue(...args);
|
|
78
|
+
return result;
|
|
79
|
+
};
|
|
80
|
+
else if (slotPropValue) overrideProps[propName] = slotPropValue;
|
|
81
|
+
} else if (propName === "style") overrideProps[propName] = {
|
|
82
|
+
...slotPropValue,
|
|
83
|
+
...childPropValue
|
|
84
|
+
};
|
|
85
|
+
else if (propName === "className") overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
...slotProps,
|
|
89
|
+
...overrideProps
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
function getElementRef(element) {
|
|
93
|
+
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
94
|
+
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
95
|
+
if (mayWarn) return element.ref;
|
|
96
|
+
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
97
|
+
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
98
|
+
if (mayWarn) return element.props.ref;
|
|
99
|
+
return element.props.ref || element.ref;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
//#endregion
|
|
103
|
+
exports.Slot = Slot;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { composeRefs } from "../../../../../@radix-ui_react-compose-refs@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.js";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.4_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
6
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
7
|
+
var use = React$1[" use ".trim().toString()];
|
|
8
|
+
function isPromiseLike(value) {
|
|
9
|
+
return typeof value === "object" && value !== null && "then" in value;
|
|
10
|
+
}
|
|
11
|
+
function isLazyComponent(element) {
|
|
12
|
+
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
|
|
13
|
+
}
|
|
14
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
15
|
+
function createSlot(ownerName) {
|
|
16
|
+
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
|
17
|
+
const Slot2 = React$1.forwardRef((props, forwardedRef) => {
|
|
18
|
+
let { children,...slotProps } = props;
|
|
19
|
+
if (isLazyComponent(children) && typeof use === "function") children = use(children._payload);
|
|
20
|
+
const childrenArray = React$1.Children.toArray(children);
|
|
21
|
+
const slottable = childrenArray.find(isSlottable);
|
|
22
|
+
if (slottable) {
|
|
23
|
+
const newElement = slottable.props.children;
|
|
24
|
+
const newChildren = childrenArray.map((child) => {
|
|
25
|
+
if (child === slottable) {
|
|
26
|
+
if (React$1.Children.count(newElement) > 1) return React$1.Children.only(null);
|
|
27
|
+
return React$1.isValidElement(newElement) ? newElement.props.children : null;
|
|
28
|
+
} else return child;
|
|
29
|
+
});
|
|
30
|
+
return /* @__PURE__ */ jsx(SlotClone, {
|
|
31
|
+
...slotProps,
|
|
32
|
+
ref: forwardedRef,
|
|
33
|
+
children: React$1.isValidElement(newElement) ? React$1.cloneElement(newElement, void 0, newChildren) : null
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
return /* @__PURE__ */ jsx(SlotClone, {
|
|
37
|
+
...slotProps,
|
|
38
|
+
ref: forwardedRef,
|
|
39
|
+
children
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
Slot2.displayName = `${ownerName}.Slot`;
|
|
43
|
+
return Slot2;
|
|
44
|
+
}
|
|
45
|
+
var Slot = /* @__PURE__ */ createSlot("Slot");
|
|
46
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
47
|
+
function createSlotClone(ownerName) {
|
|
48
|
+
const SlotClone = React$1.forwardRef((props, forwardedRef) => {
|
|
49
|
+
let { children,...slotProps } = props;
|
|
50
|
+
if (isLazyComponent(children) && typeof use === "function") children = use(children._payload);
|
|
51
|
+
if (React$1.isValidElement(children)) {
|
|
52
|
+
const childrenRef = getElementRef(children);
|
|
53
|
+
const props2 = mergeProps(slotProps, children.props);
|
|
54
|
+
if (children.type !== React$1.Fragment) props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
|
|
55
|
+
return React$1.cloneElement(children, props2);
|
|
56
|
+
}
|
|
57
|
+
return React$1.Children.count(children) > 1 ? React$1.Children.only(null) : null;
|
|
58
|
+
});
|
|
59
|
+
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
60
|
+
return SlotClone;
|
|
61
|
+
}
|
|
62
|
+
var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
|
|
63
|
+
function isSlottable(child) {
|
|
64
|
+
return React$1.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
|
|
65
|
+
}
|
|
66
|
+
function mergeProps(slotProps, childProps) {
|
|
67
|
+
const overrideProps = { ...childProps };
|
|
68
|
+
for (const propName in childProps) {
|
|
69
|
+
const slotPropValue = slotProps[propName];
|
|
70
|
+
const childPropValue = childProps[propName];
|
|
71
|
+
if (/^on[A-Z]/.test(propName)) {
|
|
72
|
+
if (slotPropValue && childPropValue) overrideProps[propName] = (...args) => {
|
|
73
|
+
const result = childPropValue(...args);
|
|
74
|
+
slotPropValue(...args);
|
|
75
|
+
return result;
|
|
76
|
+
};
|
|
77
|
+
else if (slotPropValue) overrideProps[propName] = slotPropValue;
|
|
78
|
+
} else if (propName === "style") overrideProps[propName] = {
|
|
79
|
+
...slotPropValue,
|
|
80
|
+
...childPropValue
|
|
81
|
+
};
|
|
82
|
+
else if (propName === "className") overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
...slotProps,
|
|
86
|
+
...overrideProps
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
function getElementRef(element) {
|
|
90
|
+
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
91
|
+
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
92
|
+
if (mayWarn) return element.ref;
|
|
93
|
+
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
94
|
+
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
95
|
+
if (mayWarn) return element.props.ref;
|
|
96
|
+
return element.props.ref || element.ref;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
//#endregion
|
|
100
|
+
export { Slot };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let react = require("react");
|
|
3
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
6
|
+
function useCallbackRef(callback) {
|
|
7
|
+
const callbackRef = react.useRef(callback);
|
|
8
|
+
react.useEffect(() => {
|
|
9
|
+
callbackRef.current = callback;
|
|
10
|
+
});
|
|
11
|
+
return react.useMemo(() => (...args) => callbackRef.current?.(...args), []);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
exports.useCallbackRef = useCallbackRef;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
4
|
+
function useCallbackRef(callback) {
|
|
5
|
+
const callbackRef = React$1.useRef(callback);
|
|
6
|
+
React$1.useEffect(() => {
|
|
7
|
+
callbackRef.current = callback;
|
|
8
|
+
});
|
|
9
|
+
return React$1.useMemo(() => (...args) => callbackRef.current?.(...args), []);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { useCallbackRef };
|