@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
|
@@ -1 +1,282 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_floating_ui_utils_dom = require('../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs');
|
|
3
|
+
const require_floating_ui_dom = require('../../../../../@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs');
|
|
4
|
+
let react = require("react");
|
|
5
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
6
|
+
let react_dom = require("react-dom");
|
|
7
|
+
react_dom = require_rolldown_runtime.__toESM(react_dom);
|
|
8
|
+
|
|
9
|
+
//#region ../../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.mjs
|
|
10
|
+
function deepEqual(a, b) {
|
|
11
|
+
if (a === b) return true;
|
|
12
|
+
if (typeof a !== typeof b) return false;
|
|
13
|
+
if (typeof a === "function" && a.toString() === b.toString()) return true;
|
|
14
|
+
let length;
|
|
15
|
+
let i;
|
|
16
|
+
let keys;
|
|
17
|
+
if (a && b && typeof a === "object") {
|
|
18
|
+
if (Array.isArray(a)) {
|
|
19
|
+
length = a.length;
|
|
20
|
+
if (length !== b.length) return false;
|
|
21
|
+
for (i = length; i-- !== 0;) if (!deepEqual(a[i], b[i])) return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
keys = Object.keys(a);
|
|
25
|
+
length = keys.length;
|
|
26
|
+
if (length !== Object.keys(b).length) return false;
|
|
27
|
+
for (i = length; i-- !== 0;) if (!{}.hasOwnProperty.call(b, keys[i])) return false;
|
|
28
|
+
for (i = length; i-- !== 0;) {
|
|
29
|
+
const key = keys[i];
|
|
30
|
+
if (key === "_owner" && a.$$typeof) continue;
|
|
31
|
+
if (!deepEqual(a[key], b[key])) return false;
|
|
32
|
+
}
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
return a !== a && b !== b;
|
|
36
|
+
}
|
|
37
|
+
function getDPR(element) {
|
|
38
|
+
if (typeof window === "undefined") return 1;
|
|
39
|
+
return (element.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
40
|
+
}
|
|
41
|
+
function roundByDPR(element, value) {
|
|
42
|
+
const dpr = getDPR(element);
|
|
43
|
+
return Math.round(value * dpr) / dpr;
|
|
44
|
+
}
|
|
45
|
+
function useLatestRef(value) {
|
|
46
|
+
const ref = react.useRef(value);
|
|
47
|
+
index(() => {
|
|
48
|
+
ref.current = value;
|
|
49
|
+
});
|
|
50
|
+
return ref;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Provides data to position a floating element.
|
|
54
|
+
* @see https://floating-ui.com/docs/useFloating
|
|
55
|
+
*/
|
|
56
|
+
function useFloating(options) {
|
|
57
|
+
if (options === void 0) options = {};
|
|
58
|
+
const { placement = "bottom", strategy = "absolute", middleware = [], platform: platform$1, elements: { reference: externalReference, floating: externalFloating } = {}, transform = true, whileElementsMounted, open } = options;
|
|
59
|
+
const [data, setData] = react.useState({
|
|
60
|
+
x: 0,
|
|
61
|
+
y: 0,
|
|
62
|
+
strategy,
|
|
63
|
+
placement,
|
|
64
|
+
middlewareData: {},
|
|
65
|
+
isPositioned: false
|
|
66
|
+
});
|
|
67
|
+
const [latestMiddleware, setLatestMiddleware] = react.useState(middleware);
|
|
68
|
+
if (!deepEqual(latestMiddleware, middleware)) setLatestMiddleware(middleware);
|
|
69
|
+
const [_reference, _setReference] = react.useState(null);
|
|
70
|
+
const [_floating, _setFloating] = react.useState(null);
|
|
71
|
+
const setReference = react.useCallback((node) => {
|
|
72
|
+
if (node !== referenceRef.current) {
|
|
73
|
+
referenceRef.current = node;
|
|
74
|
+
_setReference(node);
|
|
75
|
+
}
|
|
76
|
+
}, []);
|
|
77
|
+
const setFloating = react.useCallback((node) => {
|
|
78
|
+
if (node !== floatingRef.current) {
|
|
79
|
+
floatingRef.current = node;
|
|
80
|
+
_setFloating(node);
|
|
81
|
+
}
|
|
82
|
+
}, []);
|
|
83
|
+
const referenceEl = externalReference || _reference;
|
|
84
|
+
const floatingEl = externalFloating || _floating;
|
|
85
|
+
const referenceRef = react.useRef(null);
|
|
86
|
+
const floatingRef = react.useRef(null);
|
|
87
|
+
const dataRef = react.useRef(data);
|
|
88
|
+
const hasWhileElementsMounted = whileElementsMounted != null;
|
|
89
|
+
const whileElementsMountedRef = useLatestRef(whileElementsMounted);
|
|
90
|
+
const platformRef = useLatestRef(platform$1);
|
|
91
|
+
const openRef = useLatestRef(open);
|
|
92
|
+
const update = react.useCallback(() => {
|
|
93
|
+
if (!referenceRef.current || !floatingRef.current) return;
|
|
94
|
+
const config = {
|
|
95
|
+
placement,
|
|
96
|
+
strategy,
|
|
97
|
+
middleware: latestMiddleware
|
|
98
|
+
};
|
|
99
|
+
if (platformRef.current) config.platform = platformRef.current;
|
|
100
|
+
require_floating_ui_dom.computePosition(referenceRef.current, floatingRef.current, config).then((data$1) => {
|
|
101
|
+
const fullData = {
|
|
102
|
+
...data$1,
|
|
103
|
+
isPositioned: openRef.current !== false
|
|
104
|
+
};
|
|
105
|
+
if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {
|
|
106
|
+
dataRef.current = fullData;
|
|
107
|
+
react_dom.flushSync(() => {
|
|
108
|
+
setData(fullData);
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
}, [
|
|
113
|
+
latestMiddleware,
|
|
114
|
+
placement,
|
|
115
|
+
strategy,
|
|
116
|
+
platformRef,
|
|
117
|
+
openRef
|
|
118
|
+
]);
|
|
119
|
+
index(() => {
|
|
120
|
+
if (open === false && dataRef.current.isPositioned) {
|
|
121
|
+
dataRef.current.isPositioned = false;
|
|
122
|
+
setData((data$1) => ({
|
|
123
|
+
...data$1,
|
|
124
|
+
isPositioned: false
|
|
125
|
+
}));
|
|
126
|
+
}
|
|
127
|
+
}, [open]);
|
|
128
|
+
const isMountedRef = react.useRef(false);
|
|
129
|
+
index(() => {
|
|
130
|
+
isMountedRef.current = true;
|
|
131
|
+
return () => {
|
|
132
|
+
isMountedRef.current = false;
|
|
133
|
+
};
|
|
134
|
+
}, []);
|
|
135
|
+
index(() => {
|
|
136
|
+
if (referenceEl) referenceRef.current = referenceEl;
|
|
137
|
+
if (floatingEl) floatingRef.current = floatingEl;
|
|
138
|
+
if (referenceEl && floatingEl) {
|
|
139
|
+
if (whileElementsMountedRef.current) return whileElementsMountedRef.current(referenceEl, floatingEl, update);
|
|
140
|
+
update();
|
|
141
|
+
}
|
|
142
|
+
}, [
|
|
143
|
+
referenceEl,
|
|
144
|
+
floatingEl,
|
|
145
|
+
update,
|
|
146
|
+
whileElementsMountedRef,
|
|
147
|
+
hasWhileElementsMounted
|
|
148
|
+
]);
|
|
149
|
+
const refs = react.useMemo(() => ({
|
|
150
|
+
reference: referenceRef,
|
|
151
|
+
floating: floatingRef,
|
|
152
|
+
setReference,
|
|
153
|
+
setFloating
|
|
154
|
+
}), [setReference, setFloating]);
|
|
155
|
+
const elements = react.useMemo(() => ({
|
|
156
|
+
reference: referenceEl,
|
|
157
|
+
floating: floatingEl
|
|
158
|
+
}), [referenceEl, floatingEl]);
|
|
159
|
+
const floatingStyles = react.useMemo(() => {
|
|
160
|
+
const initialStyles = {
|
|
161
|
+
position: strategy,
|
|
162
|
+
left: 0,
|
|
163
|
+
top: 0
|
|
164
|
+
};
|
|
165
|
+
if (!elements.floating) return initialStyles;
|
|
166
|
+
const x = roundByDPR(elements.floating, data.x);
|
|
167
|
+
const y = roundByDPR(elements.floating, data.y);
|
|
168
|
+
if (transform) return {
|
|
169
|
+
...initialStyles,
|
|
170
|
+
transform: "translate(" + x + "px, " + y + "px)",
|
|
171
|
+
...getDPR(elements.floating) >= 1.5 && { willChange: "transform" }
|
|
172
|
+
};
|
|
173
|
+
return {
|
|
174
|
+
position: strategy,
|
|
175
|
+
left: x,
|
|
176
|
+
top: y
|
|
177
|
+
};
|
|
178
|
+
}, [
|
|
179
|
+
strategy,
|
|
180
|
+
transform,
|
|
181
|
+
elements.floating,
|
|
182
|
+
data.x,
|
|
183
|
+
data.y
|
|
184
|
+
]);
|
|
185
|
+
return react.useMemo(() => ({
|
|
186
|
+
...data,
|
|
187
|
+
update,
|
|
188
|
+
refs,
|
|
189
|
+
elements,
|
|
190
|
+
floatingStyles
|
|
191
|
+
}), [
|
|
192
|
+
data,
|
|
193
|
+
update,
|
|
194
|
+
refs,
|
|
195
|
+
elements,
|
|
196
|
+
floatingStyles
|
|
197
|
+
]);
|
|
198
|
+
}
|
|
199
|
+
var index, arrow$1, offset$1, shift$1, limitShift$1, flip$1, size$1, autoPlacement$1, hide$1, inline$1, arrow$2;
|
|
200
|
+
var init_floating_ui_react_dom = require_rolldown_runtime.__esm({ "../../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.mjs": (() => {
|
|
201
|
+
require_floating_ui_dom.init_floating_ui_dom();
|
|
202
|
+
index = typeof document !== "undefined" ? react.useLayoutEffect : function noop() {};
|
|
203
|
+
arrow$1 = (options) => {
|
|
204
|
+
function isRef(value) {
|
|
205
|
+
return {}.hasOwnProperty.call(value, "current");
|
|
206
|
+
}
|
|
207
|
+
return {
|
|
208
|
+
name: "arrow",
|
|
209
|
+
options,
|
|
210
|
+
fn(state) {
|
|
211
|
+
const { element, padding } = typeof options === "function" ? options(state) : options;
|
|
212
|
+
if (element && isRef(element)) {
|
|
213
|
+
if (element.current != null) return require_floating_ui_dom.arrow({
|
|
214
|
+
element: element.current,
|
|
215
|
+
padding
|
|
216
|
+
}).fn(state);
|
|
217
|
+
return {};
|
|
218
|
+
}
|
|
219
|
+
if (element) return require_floating_ui_dom.arrow({
|
|
220
|
+
element,
|
|
221
|
+
padding
|
|
222
|
+
}).fn(state);
|
|
223
|
+
return {};
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
offset$1 = (options, deps) => ({
|
|
228
|
+
...require_floating_ui_dom.offset(options),
|
|
229
|
+
options: [options, deps]
|
|
230
|
+
});
|
|
231
|
+
shift$1 = (options, deps) => ({
|
|
232
|
+
...require_floating_ui_dom.shift(options),
|
|
233
|
+
options: [options, deps]
|
|
234
|
+
});
|
|
235
|
+
limitShift$1 = (options, deps) => ({
|
|
236
|
+
...require_floating_ui_dom.limitShift(options),
|
|
237
|
+
options: [options, deps]
|
|
238
|
+
});
|
|
239
|
+
flip$1 = (options, deps) => ({
|
|
240
|
+
...require_floating_ui_dom.flip(options),
|
|
241
|
+
options: [options, deps]
|
|
242
|
+
});
|
|
243
|
+
size$1 = (options, deps) => ({
|
|
244
|
+
...require_floating_ui_dom.size(options),
|
|
245
|
+
options: [options, deps]
|
|
246
|
+
});
|
|
247
|
+
autoPlacement$1 = (options, deps) => ({
|
|
248
|
+
...require_floating_ui_dom.autoPlacement(options),
|
|
249
|
+
options: [options, deps]
|
|
250
|
+
});
|
|
251
|
+
hide$1 = (options, deps) => ({
|
|
252
|
+
...require_floating_ui_dom.hide(options),
|
|
253
|
+
options: [options, deps]
|
|
254
|
+
});
|
|
255
|
+
inline$1 = (options, deps) => ({
|
|
256
|
+
...require_floating_ui_dom.inline(options),
|
|
257
|
+
options: [options, deps]
|
|
258
|
+
});
|
|
259
|
+
arrow$2 = (options, deps) => ({
|
|
260
|
+
...arrow$1(options),
|
|
261
|
+
options: [options, deps]
|
|
262
|
+
});
|
|
263
|
+
}) });
|
|
264
|
+
|
|
265
|
+
//#endregion
|
|
266
|
+
init_floating_ui_react_dom();
|
|
267
|
+
exports.arrow = arrow$2;
|
|
268
|
+
exports.autoPlacement = autoPlacement$1;
|
|
269
|
+
exports.flip = flip$1;
|
|
270
|
+
exports.hide = hide$1;
|
|
271
|
+
Object.defineProperty(exports, 'init_floating_ui_react_dom', {
|
|
272
|
+
enumerable: true,
|
|
273
|
+
get: function () {
|
|
274
|
+
return init_floating_ui_react_dom;
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
exports.inline = inline$1;
|
|
278
|
+
exports.limitShift = limitShift$1;
|
|
279
|
+
exports.offset = offset$1;
|
|
280
|
+
exports.shift = shift$1;
|
|
281
|
+
exports.size = size$1;
|
|
282
|
+
exports.useFloating = useFloating;
|
|
@@ -1 +1,266 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import { __esm } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { getOverflowAncestors } from "../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js";
|
|
3
|
+
import { arrow, autoPlacement, autoUpdate, computePosition, detectOverflow, flip, hide, init_floating_ui_dom, inline, limitShift, offset, platform, shift, size } from "../../../../../@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
|
|
4
|
+
import * as React$1 from "react";
|
|
5
|
+
import { useLayoutEffect } from "react";
|
|
6
|
+
import * as ReactDOM$1 from "react-dom";
|
|
7
|
+
|
|
8
|
+
//#region ../../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.mjs
|
|
9
|
+
function deepEqual(a, b) {
|
|
10
|
+
if (a === b) return true;
|
|
11
|
+
if (typeof a !== typeof b) return false;
|
|
12
|
+
if (typeof a === "function" && a.toString() === b.toString()) return true;
|
|
13
|
+
let length;
|
|
14
|
+
let i;
|
|
15
|
+
let keys;
|
|
16
|
+
if (a && b && typeof a === "object") {
|
|
17
|
+
if (Array.isArray(a)) {
|
|
18
|
+
length = a.length;
|
|
19
|
+
if (length !== b.length) return false;
|
|
20
|
+
for (i = length; i-- !== 0;) if (!deepEqual(a[i], b[i])) return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
keys = Object.keys(a);
|
|
24
|
+
length = keys.length;
|
|
25
|
+
if (length !== Object.keys(b).length) return false;
|
|
26
|
+
for (i = length; i-- !== 0;) if (!{}.hasOwnProperty.call(b, keys[i])) return false;
|
|
27
|
+
for (i = length; i-- !== 0;) {
|
|
28
|
+
const key = keys[i];
|
|
29
|
+
if (key === "_owner" && a.$$typeof) continue;
|
|
30
|
+
if (!deepEqual(a[key], b[key])) return false;
|
|
31
|
+
}
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
return a !== a && b !== b;
|
|
35
|
+
}
|
|
36
|
+
function getDPR(element) {
|
|
37
|
+
if (typeof window === "undefined") return 1;
|
|
38
|
+
return (element.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
39
|
+
}
|
|
40
|
+
function roundByDPR(element, value) {
|
|
41
|
+
const dpr = getDPR(element);
|
|
42
|
+
return Math.round(value * dpr) / dpr;
|
|
43
|
+
}
|
|
44
|
+
function useLatestRef(value) {
|
|
45
|
+
const ref = React$1.useRef(value);
|
|
46
|
+
index(() => {
|
|
47
|
+
ref.current = value;
|
|
48
|
+
});
|
|
49
|
+
return ref;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Provides data to position a floating element.
|
|
53
|
+
* @see https://floating-ui.com/docs/useFloating
|
|
54
|
+
*/
|
|
55
|
+
function useFloating(options) {
|
|
56
|
+
if (options === void 0) options = {};
|
|
57
|
+
const { placement = "bottom", strategy = "absolute", middleware = [], platform: platform$1, elements: { reference: externalReference, floating: externalFloating } = {}, transform = true, whileElementsMounted, open } = options;
|
|
58
|
+
const [data, setData] = React$1.useState({
|
|
59
|
+
x: 0,
|
|
60
|
+
y: 0,
|
|
61
|
+
strategy,
|
|
62
|
+
placement,
|
|
63
|
+
middlewareData: {},
|
|
64
|
+
isPositioned: false
|
|
65
|
+
});
|
|
66
|
+
const [latestMiddleware, setLatestMiddleware] = React$1.useState(middleware);
|
|
67
|
+
if (!deepEqual(latestMiddleware, middleware)) setLatestMiddleware(middleware);
|
|
68
|
+
const [_reference, _setReference] = React$1.useState(null);
|
|
69
|
+
const [_floating, _setFloating] = React$1.useState(null);
|
|
70
|
+
const setReference = React$1.useCallback((node) => {
|
|
71
|
+
if (node !== referenceRef.current) {
|
|
72
|
+
referenceRef.current = node;
|
|
73
|
+
_setReference(node);
|
|
74
|
+
}
|
|
75
|
+
}, []);
|
|
76
|
+
const setFloating = React$1.useCallback((node) => {
|
|
77
|
+
if (node !== floatingRef.current) {
|
|
78
|
+
floatingRef.current = node;
|
|
79
|
+
_setFloating(node);
|
|
80
|
+
}
|
|
81
|
+
}, []);
|
|
82
|
+
const referenceEl = externalReference || _reference;
|
|
83
|
+
const floatingEl = externalFloating || _floating;
|
|
84
|
+
const referenceRef = React$1.useRef(null);
|
|
85
|
+
const floatingRef = React$1.useRef(null);
|
|
86
|
+
const dataRef = React$1.useRef(data);
|
|
87
|
+
const hasWhileElementsMounted = whileElementsMounted != null;
|
|
88
|
+
const whileElementsMountedRef = useLatestRef(whileElementsMounted);
|
|
89
|
+
const platformRef = useLatestRef(platform$1);
|
|
90
|
+
const openRef = useLatestRef(open);
|
|
91
|
+
const update = React$1.useCallback(() => {
|
|
92
|
+
if (!referenceRef.current || !floatingRef.current) return;
|
|
93
|
+
const config = {
|
|
94
|
+
placement,
|
|
95
|
+
strategy,
|
|
96
|
+
middleware: latestMiddleware
|
|
97
|
+
};
|
|
98
|
+
if (platformRef.current) config.platform = platformRef.current;
|
|
99
|
+
computePosition(referenceRef.current, floatingRef.current, config).then((data$1) => {
|
|
100
|
+
const fullData = {
|
|
101
|
+
...data$1,
|
|
102
|
+
isPositioned: openRef.current !== false
|
|
103
|
+
};
|
|
104
|
+
if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {
|
|
105
|
+
dataRef.current = fullData;
|
|
106
|
+
ReactDOM$1.flushSync(() => {
|
|
107
|
+
setData(fullData);
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
}, [
|
|
112
|
+
latestMiddleware,
|
|
113
|
+
placement,
|
|
114
|
+
strategy,
|
|
115
|
+
platformRef,
|
|
116
|
+
openRef
|
|
117
|
+
]);
|
|
118
|
+
index(() => {
|
|
119
|
+
if (open === false && dataRef.current.isPositioned) {
|
|
120
|
+
dataRef.current.isPositioned = false;
|
|
121
|
+
setData((data$1) => ({
|
|
122
|
+
...data$1,
|
|
123
|
+
isPositioned: false
|
|
124
|
+
}));
|
|
125
|
+
}
|
|
126
|
+
}, [open]);
|
|
127
|
+
const isMountedRef = React$1.useRef(false);
|
|
128
|
+
index(() => {
|
|
129
|
+
isMountedRef.current = true;
|
|
130
|
+
return () => {
|
|
131
|
+
isMountedRef.current = false;
|
|
132
|
+
};
|
|
133
|
+
}, []);
|
|
134
|
+
index(() => {
|
|
135
|
+
if (referenceEl) referenceRef.current = referenceEl;
|
|
136
|
+
if (floatingEl) floatingRef.current = floatingEl;
|
|
137
|
+
if (referenceEl && floatingEl) {
|
|
138
|
+
if (whileElementsMountedRef.current) return whileElementsMountedRef.current(referenceEl, floatingEl, update);
|
|
139
|
+
update();
|
|
140
|
+
}
|
|
141
|
+
}, [
|
|
142
|
+
referenceEl,
|
|
143
|
+
floatingEl,
|
|
144
|
+
update,
|
|
145
|
+
whileElementsMountedRef,
|
|
146
|
+
hasWhileElementsMounted
|
|
147
|
+
]);
|
|
148
|
+
const refs = React$1.useMemo(() => ({
|
|
149
|
+
reference: referenceRef,
|
|
150
|
+
floating: floatingRef,
|
|
151
|
+
setReference,
|
|
152
|
+
setFloating
|
|
153
|
+
}), [setReference, setFloating]);
|
|
154
|
+
const elements = React$1.useMemo(() => ({
|
|
155
|
+
reference: referenceEl,
|
|
156
|
+
floating: floatingEl
|
|
157
|
+
}), [referenceEl, floatingEl]);
|
|
158
|
+
const floatingStyles = React$1.useMemo(() => {
|
|
159
|
+
const initialStyles = {
|
|
160
|
+
position: strategy,
|
|
161
|
+
left: 0,
|
|
162
|
+
top: 0
|
|
163
|
+
};
|
|
164
|
+
if (!elements.floating) return initialStyles;
|
|
165
|
+
const x = roundByDPR(elements.floating, data.x);
|
|
166
|
+
const y = roundByDPR(elements.floating, data.y);
|
|
167
|
+
if (transform) return {
|
|
168
|
+
...initialStyles,
|
|
169
|
+
transform: "translate(" + x + "px, " + y + "px)",
|
|
170
|
+
...getDPR(elements.floating) >= 1.5 && { willChange: "transform" }
|
|
171
|
+
};
|
|
172
|
+
return {
|
|
173
|
+
position: strategy,
|
|
174
|
+
left: x,
|
|
175
|
+
top: y
|
|
176
|
+
};
|
|
177
|
+
}, [
|
|
178
|
+
strategy,
|
|
179
|
+
transform,
|
|
180
|
+
elements.floating,
|
|
181
|
+
data.x,
|
|
182
|
+
data.y
|
|
183
|
+
]);
|
|
184
|
+
return React$1.useMemo(() => ({
|
|
185
|
+
...data,
|
|
186
|
+
update,
|
|
187
|
+
refs,
|
|
188
|
+
elements,
|
|
189
|
+
floatingStyles
|
|
190
|
+
}), [
|
|
191
|
+
data,
|
|
192
|
+
update,
|
|
193
|
+
refs,
|
|
194
|
+
elements,
|
|
195
|
+
floatingStyles
|
|
196
|
+
]);
|
|
197
|
+
}
|
|
198
|
+
var index, arrow$1, offset$1, shift$1, limitShift$1, flip$1, size$1, autoPlacement$1, hide$1, inline$1, arrow$2;
|
|
199
|
+
var init_floating_ui_react_dom = __esm({ "../../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.mjs": (() => {
|
|
200
|
+
init_floating_ui_dom();
|
|
201
|
+
index = typeof document !== "undefined" ? useLayoutEffect : function noop() {};
|
|
202
|
+
arrow$1 = (options) => {
|
|
203
|
+
function isRef(value) {
|
|
204
|
+
return {}.hasOwnProperty.call(value, "current");
|
|
205
|
+
}
|
|
206
|
+
return {
|
|
207
|
+
name: "arrow",
|
|
208
|
+
options,
|
|
209
|
+
fn(state) {
|
|
210
|
+
const { element, padding } = typeof options === "function" ? options(state) : options;
|
|
211
|
+
if (element && isRef(element)) {
|
|
212
|
+
if (element.current != null) return arrow({
|
|
213
|
+
element: element.current,
|
|
214
|
+
padding
|
|
215
|
+
}).fn(state);
|
|
216
|
+
return {};
|
|
217
|
+
}
|
|
218
|
+
if (element) return arrow({
|
|
219
|
+
element,
|
|
220
|
+
padding
|
|
221
|
+
}).fn(state);
|
|
222
|
+
return {};
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
offset$1 = (options, deps) => ({
|
|
227
|
+
...offset(options),
|
|
228
|
+
options: [options, deps]
|
|
229
|
+
});
|
|
230
|
+
shift$1 = (options, deps) => ({
|
|
231
|
+
...shift(options),
|
|
232
|
+
options: [options, deps]
|
|
233
|
+
});
|
|
234
|
+
limitShift$1 = (options, deps) => ({
|
|
235
|
+
...limitShift(options),
|
|
236
|
+
options: [options, deps]
|
|
237
|
+
});
|
|
238
|
+
flip$1 = (options, deps) => ({
|
|
239
|
+
...flip(options),
|
|
240
|
+
options: [options, deps]
|
|
241
|
+
});
|
|
242
|
+
size$1 = (options, deps) => ({
|
|
243
|
+
...size(options),
|
|
244
|
+
options: [options, deps]
|
|
245
|
+
});
|
|
246
|
+
autoPlacement$1 = (options, deps) => ({
|
|
247
|
+
...autoPlacement(options),
|
|
248
|
+
options: [options, deps]
|
|
249
|
+
});
|
|
250
|
+
hide$1 = (options, deps) => ({
|
|
251
|
+
...hide(options),
|
|
252
|
+
options: [options, deps]
|
|
253
|
+
});
|
|
254
|
+
inline$1 = (options, deps) => ({
|
|
255
|
+
...inline(options),
|
|
256
|
+
options: [options, deps]
|
|
257
|
+
});
|
|
258
|
+
arrow$2 = (options, deps) => ({
|
|
259
|
+
...arrow$1(options),
|
|
260
|
+
options: [options, deps]
|
|
261
|
+
});
|
|
262
|
+
}) });
|
|
263
|
+
|
|
264
|
+
//#endregion
|
|
265
|
+
init_floating_ui_react_dom();
|
|
266
|
+
export { arrow$2 as arrow, autoPlacement$1 as autoPlacement, flip$1 as flip, hide$1 as hide, init_floating_ui_react_dom, inline$1 as inline, limitShift$1 as limitShift, offset$1 as offset, shift$1 as shift, size$1 as size, useFloating };
|