@pixpilot/shadcn-ui 0.1.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.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.d.cts +2 -2
- package/dist/Select.d.ts +2 -2
- 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.d.cts +2 -2
- package/dist/ThemeToggle.d.ts +2 -2
- package/dist/ThemeToggle.js +94 -1
- package/dist/_virtual/rolldown_runtime.cjs +44 -1
- package/dist/_virtual/rolldown_runtime.js +43 -0
- 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 -0
- package/dist/file-upload/FileUpload.d.cts +7 -0
- package/dist/file-upload/FileUpload.d.ts +7 -0
- package/dist/file-upload/FileUpload.js +63 -0
- package/dist/file-upload/FileUploadItems.cjs +36 -0
- package/dist/file-upload/FileUploadItems.js +32 -0
- package/dist/file-upload/FileUploadListItem.cjs +89 -0
- package/dist/file-upload/FileUploadListItem.js +83 -0
- package/dist/file-upload/hooks/index.cjs +4 -0
- package/dist/file-upload/hooks/index.d.cts +2 -0
- package/dist/file-upload/hooks/index.d.ts +2 -0
- package/dist/file-upload/hooks/index.js +3 -0
- package/dist/file-upload/hooks/use-file-error.cjs +15 -0
- package/dist/file-upload/hooks/use-file-error.js +14 -0
- package/dist/file-upload/hooks/use-file-upload-progress-callbacks.cjs +34 -0
- package/dist/file-upload/hooks/use-file-upload-progress-callbacks.d.cts +1 -0
- package/dist/file-upload/hooks/use-file-upload-progress-callbacks.d.ts +1 -0
- package/dist/file-upload/hooks/use-file-upload-progress-callbacks.js +32 -0
- package/dist/file-upload/hooks/use-file-upload-store.cjs +77 -0
- package/dist/file-upload/hooks/use-file-upload-store.d.cts +2 -0
- package/dist/file-upload/hooks/use-file-upload-store.d.ts +2 -0
- package/dist/file-upload/hooks/use-file-upload-store.js +75 -0
- package/dist/file-upload/index.cjs +6 -0
- package/dist/file-upload/index.d.cts +3 -0
- package/dist/file-upload/index.d.ts +3 -0
- package/dist/file-upload/index.js +5 -0
- package/dist/file-upload/types/index.d.cts +40 -0
- package/dist/file-upload/types/index.d.ts +40 -0
- package/dist/file-upload/utils/create-placeholder-file.cjs +12 -0
- package/dist/file-upload/utils/create-placeholder-file.js +10 -0
- package/dist/file-upload/utils/get-file-key.cjs +9 -0
- package/dist/file-upload/utils/get-file-key.d.cts +1 -0
- package/dist/file-upload/utils/get-file-key.d.ts +1 -0
- package/dist/file-upload/utils/get-file-key.js +7 -0
- package/dist/file-upload/utils/get-file-meta.cjs +24 -0
- package/dist/file-upload/utils/get-file-meta.d.cts +1 -0
- package/dist/file-upload/utils/get-file-meta.d.ts +1 -0
- package/dist/file-upload/utils/get-file-meta.js +21 -0
- package/dist/file-upload/utils/index.d.cts +4 -0
- package/dist/file-upload/utils/index.d.ts +4 -0
- package/dist/file-upload/utils/is-file-equal.cjs +10 -0
- package/dist/file-upload/utils/is-file-equal.d.cts +1 -0
- package/dist/file-upload/utils/is-file-equal.d.ts +1 -0
- package/dist/file-upload/utils/is-file-equal.js +8 -0
- package/dist/file-upload/utils/merge-file-metadata.cjs +27 -0
- package/dist/file-upload/utils/merge-file-metadata.d.cts +1 -0
- package/dist/file-upload/utils/merge-file-metadata.d.ts +1 -0
- package/dist/file-upload/utils/merge-file-metadata.js +26 -0
- package/dist/file-upload-inline/FileUploadInline.cjs +71 -0
- package/dist/file-upload-inline/FileUploadInline.d.cts +10 -0
- package/dist/file-upload-inline/FileUploadInline.d.ts +10 -0
- package/dist/file-upload-inline/FileUploadInline.js +66 -0
- package/dist/file-upload-inline/FileUploadInlineItem.cjs +96 -0
- package/dist/file-upload-inline/FileUploadInlineItem.js +90 -0
- package/dist/file-upload-inline/defaults.cjs +12 -0
- package/dist/file-upload-inline/defaults.js +10 -0
- package/dist/file-upload-inline/index.cjs +2 -0
- package/dist/file-upload-inline/index.d.cts +2 -0
- package/dist/file-upload-inline/index.d.ts +2 -0
- package/dist/file-upload-inline/index.js +1 -0
- package/dist/file-upload-inline/types.d.cts +16 -0
- package/dist/file-upload-inline/types.d.ts +16 -0
- package/dist/file-upload-inline/utils.cjs +37 -0
- package/dist/file-upload-inline/utils.js +34 -0
- 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.d.cts +3 -2
- package/dist/icon-selector/IconPicker.d.ts +3 -2
- 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.d.cts +1 -2
- package/dist/icon-selector/index.d.ts +1 -2
- package/dist/icon-selector/index.js +1 -1
- package/dist/icon-selector/types.d.cts +4 -2
- package/dist/icon-selector/types.d.ts +4 -2
- 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.d.cts +12 -7
- package/dist/index.d.ts +12 -7
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +695 -0
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +679 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +521 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +503 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +165 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +175 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +151 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +138 -0
- 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 -0
- package/dist/node_modules/.pnpm/tabbable@6.3.0/node_modules/tabbable/dist/index.esm.js +268 -0
- 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 -0
- package/dist/packages/shadcn/src/components/index.js +5 -0
- package/dist/packages/shadcn/src/components/ui/OrContinueWithSeparator.cjs +6 -0
- package/dist/packages/shadcn/src/components/ui/OrContinueWithSeparator.js +3 -0
- package/dist/packages/shadcn/src/components/ui/alert-dialog.cjs +10 -0
- package/dist/packages/shadcn/src/components/ui/alert-dialog.js +6 -0
- package/dist/packages/shadcn/src/components/ui/alert.cjs +44 -0
- package/dist/packages/shadcn/src/components/ui/alert.js +38 -0
- package/dist/packages/shadcn/src/components/ui/avatar.cjs +5 -0
- package/dist/packages/shadcn/src/components/ui/avatar.js +2 -0
- package/dist/packages/shadcn/src/components/ui/badge.cjs +20 -0
- package/dist/packages/shadcn/src/components/ui/badge.js +16 -0
- package/dist/packages/shadcn/src/components/ui/button.cjs +50 -0
- package/dist/packages/shadcn/src/components/ui/button.js +45 -0
- package/dist/packages/shadcn/src/components/ui/calendar.cjs +8 -0
- package/dist/packages/shadcn/src/components/ui/calendar.js +4 -0
- package/dist/packages/shadcn/src/components/ui/card.cjs +5 -0
- package/dist/packages/shadcn/src/components/ui/card.js +2 -0
- package/dist/packages/shadcn/src/components/ui/checkbox.cjs +10 -0
- package/dist/packages/shadcn/src/components/ui/checkbox.js +6 -0
- package/dist/packages/shadcn/src/components/ui/command.cjs +11 -0
- package/dist/packages/shadcn/src/components/ui/command.js +7 -0
- package/dist/packages/shadcn/src/components/ui/dialog.cjs +93 -0
- package/dist/packages/shadcn/src/components/ui/dialog.js +81 -0
- package/dist/packages/shadcn/src/components/ui/dropdown-menu.cjs +7 -0
- package/dist/packages/shadcn/src/components/ui/dropdown-menu.js +3 -0
- package/dist/packages/shadcn/src/components/ui/file-upload.cjs +49 -0
- package/dist/packages/shadcn/src/components/ui/file-upload.js +45 -0
- package/dist/packages/shadcn/src/components/ui/form.cjs +12 -0
- package/dist/packages/shadcn/src/components/ui/form.js +9 -0
- package/dist/packages/shadcn/src/components/ui/index.cjs +30 -0
- package/dist/packages/shadcn/src/components/ui/index.js +29 -0
- package/dist/packages/shadcn/src/components/ui/input.cjs +5 -0
- package/dist/packages/shadcn/src/components/ui/input.js +2 -0
- package/dist/packages/shadcn/src/components/ui/label.cjs +5 -0
- package/dist/packages/shadcn/src/components/ui/label.js +2 -0
- package/dist/packages/shadcn/src/components/ui/pagination.cjs +9 -0
- package/dist/packages/shadcn/src/components/ui/pagination.js +4 -0
- package/dist/packages/shadcn/src/components/ui/popover.cjs +5 -0
- package/dist/packages/shadcn/src/components/ui/popover.js +2 -0
- package/dist/packages/shadcn/src/components/ui/radio-group.cjs +7 -0
- package/dist/packages/shadcn/src/components/ui/radio-group.js +3 -0
- package/dist/packages/shadcn/src/components/ui/select.cjs +10 -0
- package/dist/packages/shadcn/src/components/ui/select.js +6 -0
- package/dist/packages/shadcn/src/components/ui/separator.cjs +5 -0
- package/dist/packages/shadcn/src/components/ui/separator.js +2 -0
- package/dist/packages/shadcn/src/components/ui/shadcn-io/tags/index.cjs +26 -0
- package/dist/packages/shadcn/src/components/ui/shadcn-io/tags/index.js +22 -0
- package/dist/packages/shadcn/src/components/ui/shadcn-io/tags-input-inline/index.cjs +6 -0
- package/dist/packages/shadcn/src/components/ui/shadcn-io/tags-input-inline/index.js +3 -0
- package/dist/packages/shadcn/src/components/ui/sheet.cjs +7 -0
- package/dist/packages/shadcn/src/components/ui/sheet.js +3 -0
- package/dist/packages/shadcn/src/components/ui/slider.cjs +5 -0
- package/dist/packages/shadcn/src/components/ui/slider.js +2 -0
- package/dist/packages/shadcn/src/components/ui/switch.cjs +8 -0
- package/dist/packages/shadcn/src/components/ui/switch.js +5 -0
- package/dist/packages/shadcn/src/components/ui/tabs.cjs +5 -0
- package/dist/packages/shadcn/src/components/ui/tabs.js +2 -0
- package/dist/packages/shadcn/src/components/ui/textarea.cjs +5 -0
- package/dist/packages/shadcn/src/components/ui/textarea.js +2 -0
- package/dist/packages/shadcn/src/components/ui/tooltip.cjs +5 -0
- package/dist/packages/shadcn/src/components/ui/tooltip.js +2 -0
- package/dist/packages/shadcn/src/lib/utils.cjs +11 -0
- package/dist/packages/shadcn/src/lib/utils.js +10 -0
- package/dist/pagination/Pagination.cjs +156 -0
- package/dist/{Pagination → pagination}/Pagination.d.cts +1 -1
- package/dist/{Pagination → pagination}/Pagination.d.ts +1 -1
- package/dist/pagination/Pagination.js +151 -0
- package/dist/pagination/index.cjs +2 -0
- package/dist/pagination/index.js +1 -0
- package/dist/rich-text-editor/RichTextEditor.cjs +132 -0
- package/dist/rich-text-editor/RichTextEditor.d.cts +55 -0
- package/dist/rich-text-editor/RichTextEditor.d.ts +55 -0
- package/dist/rich-text-editor/RichTextEditor.js +126 -0
- package/dist/rich-text-editor/index.cjs +2 -0
- package/dist/rich-text-editor/index.d.cts +1 -0
- package/dist/rich-text-editor/index.d.ts +1 -0
- package/dist/rich-text-editor/index.js +1 -0
- package/dist/rich-text-editor/predefined-toolbar-options.cjs +84 -0
- package/dist/rich-text-editor/predefined-toolbar-options.js +81 -0
- 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.d.cts +2 -2
- package/dist/tags-input.d.ts +2 -2
- 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 +11 -4
- package/dist/FileUploadInline.cjs +0 -1
- package/dist/FileUploadInline.d.cts +0 -75
- package/dist/FileUploadInline.d.ts +0 -75
- package/dist/FileUploadInline.js +0 -1
- package/dist/Pagination/Pagination.cjs +0 -1
- package/dist/Pagination/Pagination.js +0 -1
- package/dist/Pagination/index.cjs +0 -1
- package/dist/Pagination/index.js +0 -1
- package/dist/PopoverContent.cjs +0 -1
- package/dist/PopoverContent.d.cts +0 -8
- package/dist/PopoverContent.d.ts +0 -8
- package/dist/PopoverContent.js +0 -1
- package/dist/icon-selector/use-async-providers.d.cts +0 -14
- package/dist/icon-selector/use-async-providers.d.ts +0 -14
- package/dist/shadcn/src/components/ui/alert.cjs +0 -1
- package/dist/shadcn/src/components/ui/alert.js +0 -1
- package/dist/shadcn/src/components/ui/dialog.cjs +0 -1
- package/dist/shadcn/src/components/ui/dialog.js +0 -1
- package/dist/shadcn/src/lib/index.cjs +0 -1
- package/dist/shadcn/src/lib/index.js +0 -1
- package/dist/shadcn/src/lib/utils.cjs +0 -1
- package/dist/shadcn/src/lib/utils.js +0 -1
- /package/dist/{Pagination → pagination}/index.d.cts +0 -0
- /package/dist/{Pagination → pagination}/index.d.ts +0 -0
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
import { __esm } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { floor, init_floating_ui_utils } from "../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";
|
|
3
|
+
import { init_floating_ui_utils_dom, isHTMLElement, isShadowRoot } from "../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js";
|
|
4
|
+
import { init_index_esm, tabbable } from "../../../../../tabbable@6.3.0/node_modules/tabbable/dist/index.esm.js";
|
|
5
|
+
import * as React$1 from "react";
|
|
6
|
+
import { useLayoutEffect } from "react";
|
|
7
|
+
|
|
8
|
+
//#region ../../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.mjs
|
|
9
|
+
function getPlatform() {
|
|
10
|
+
const uaData = navigator.userAgentData;
|
|
11
|
+
if (uaData != null && uaData.platform) return uaData.platform;
|
|
12
|
+
return navigator.platform;
|
|
13
|
+
}
|
|
14
|
+
function getUserAgent() {
|
|
15
|
+
const uaData = navigator.userAgentData;
|
|
16
|
+
if (uaData && Array.isArray(uaData.brands)) return uaData.brands.map((_ref) => {
|
|
17
|
+
let { brand, version } = _ref;
|
|
18
|
+
return brand + "/" + version;
|
|
19
|
+
}).join(" ");
|
|
20
|
+
return navigator.userAgent;
|
|
21
|
+
}
|
|
22
|
+
function isSafari() {
|
|
23
|
+
return /apple/i.test(navigator.vendor);
|
|
24
|
+
}
|
|
25
|
+
function isAndroid() {
|
|
26
|
+
const re = /android/i;
|
|
27
|
+
return re.test(getPlatform()) || re.test(getUserAgent());
|
|
28
|
+
}
|
|
29
|
+
function isMac() {
|
|
30
|
+
return getPlatform().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints;
|
|
31
|
+
}
|
|
32
|
+
function isJSDOM() {
|
|
33
|
+
return getUserAgent().includes("jsdom/");
|
|
34
|
+
}
|
|
35
|
+
function activeElement(doc) {
|
|
36
|
+
let activeElement$1 = doc.activeElement;
|
|
37
|
+
while (((_activeElement = activeElement$1) == null || (_activeElement = _activeElement.shadowRoot) == null ? void 0 : _activeElement.activeElement) != null) {
|
|
38
|
+
var _activeElement;
|
|
39
|
+
activeElement$1 = activeElement$1.shadowRoot.activeElement;
|
|
40
|
+
}
|
|
41
|
+
return activeElement$1;
|
|
42
|
+
}
|
|
43
|
+
function contains(parent, child) {
|
|
44
|
+
if (!parent || !child) return false;
|
|
45
|
+
const rootNode = child.getRootNode == null ? void 0 : child.getRootNode();
|
|
46
|
+
if (parent.contains(child)) return true;
|
|
47
|
+
if (rootNode && isShadowRoot(rootNode)) {
|
|
48
|
+
let next = child;
|
|
49
|
+
while (next) {
|
|
50
|
+
if (parent === next) return true;
|
|
51
|
+
next = next.parentNode || next.host;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
function getTarget(event) {
|
|
57
|
+
if ("composedPath" in event) return event.composedPath()[0];
|
|
58
|
+
return event.target;
|
|
59
|
+
}
|
|
60
|
+
function isEventTargetWithin(event, node) {
|
|
61
|
+
if (node == null) return false;
|
|
62
|
+
if ("composedPath" in event) return event.composedPath().includes(node);
|
|
63
|
+
const e = event;
|
|
64
|
+
return e.target != null && node.contains(e.target);
|
|
65
|
+
}
|
|
66
|
+
function isRootElement(element) {
|
|
67
|
+
return element.matches("html,body");
|
|
68
|
+
}
|
|
69
|
+
function getDocument(node) {
|
|
70
|
+
return (node == null ? void 0 : node.ownerDocument) || document;
|
|
71
|
+
}
|
|
72
|
+
function isTypeableElement(element) {
|
|
73
|
+
return isHTMLElement(element) && element.matches(TYPEABLE_SELECTOR);
|
|
74
|
+
}
|
|
75
|
+
function isTypeableCombobox(element) {
|
|
76
|
+
if (!element) return false;
|
|
77
|
+
return element.getAttribute("role") === "combobox" && isTypeableElement(element);
|
|
78
|
+
}
|
|
79
|
+
function matchesFocusVisible(element) {
|
|
80
|
+
if (!element || isJSDOM()) return true;
|
|
81
|
+
try {
|
|
82
|
+
return element.matches(":focus-visible");
|
|
83
|
+
} catch (_e) {
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
function getFloatingFocusElement(floatingElement) {
|
|
88
|
+
if (!floatingElement) return null;
|
|
89
|
+
return floatingElement.hasAttribute(FOCUSABLE_ATTRIBUTE) ? floatingElement : floatingElement.querySelector("[" + FOCUSABLE_ATTRIBUTE + "]") || floatingElement;
|
|
90
|
+
}
|
|
91
|
+
function getNodeChildren(nodes, id, onlyOpenChildren) {
|
|
92
|
+
if (onlyOpenChildren === void 0) onlyOpenChildren = true;
|
|
93
|
+
return nodes.filter((node) => {
|
|
94
|
+
var _node$context;
|
|
95
|
+
return node.parentId === id && (!onlyOpenChildren || ((_node$context = node.context) == null ? void 0 : _node$context.open));
|
|
96
|
+
}).flatMap((child) => [child, ...getNodeChildren(nodes, child.id, onlyOpenChildren)]);
|
|
97
|
+
}
|
|
98
|
+
function getDeepestNode(nodes, id) {
|
|
99
|
+
let deepestNodeId;
|
|
100
|
+
let maxDepth = -1;
|
|
101
|
+
function findDeepest(nodeId, depth) {
|
|
102
|
+
if (depth > maxDepth) {
|
|
103
|
+
deepestNodeId = nodeId;
|
|
104
|
+
maxDepth = depth;
|
|
105
|
+
}
|
|
106
|
+
getNodeChildren(nodes, nodeId).forEach((child) => {
|
|
107
|
+
findDeepest(child.id, depth + 1);
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
findDeepest(id, 0);
|
|
111
|
+
return nodes.find((node) => node.id === deepestNodeId);
|
|
112
|
+
}
|
|
113
|
+
function getNodeAncestors(nodes, id) {
|
|
114
|
+
var _nodes$find;
|
|
115
|
+
let allAncestors = [];
|
|
116
|
+
let currentParentId = (_nodes$find = nodes.find((node) => node.id === id)) == null ? void 0 : _nodes$find.parentId;
|
|
117
|
+
while (currentParentId) {
|
|
118
|
+
const currentNode = nodes.find((node) => node.id === currentParentId);
|
|
119
|
+
currentParentId = currentNode == null ? void 0 : currentNode.parentId;
|
|
120
|
+
if (currentNode) allAncestors = allAncestors.concat(currentNode);
|
|
121
|
+
}
|
|
122
|
+
return allAncestors;
|
|
123
|
+
}
|
|
124
|
+
function stopEvent(event) {
|
|
125
|
+
event.preventDefault();
|
|
126
|
+
event.stopPropagation();
|
|
127
|
+
}
|
|
128
|
+
function isReactEvent(event) {
|
|
129
|
+
return "nativeEvent" in event;
|
|
130
|
+
}
|
|
131
|
+
function isVirtualClick(event) {
|
|
132
|
+
if (event.mozInputSource === 0 && event.isTrusted) return true;
|
|
133
|
+
if (isAndroid() && event.pointerType) return event.type === "click" && event.buttons === 1;
|
|
134
|
+
return event.detail === 0 && !event.pointerType;
|
|
135
|
+
}
|
|
136
|
+
function isVirtualPointerEvent(event) {
|
|
137
|
+
if (isJSDOM()) return false;
|
|
138
|
+
return !isAndroid() && event.width === 0 && event.height === 0 || isAndroid() && event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "mouse" || event.width < 1 && event.height < 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "touch";
|
|
139
|
+
}
|
|
140
|
+
function isMouseLikePointerType(pointerType, strict) {
|
|
141
|
+
const values = ["mouse", "pen"];
|
|
142
|
+
if (!strict) values.push("", void 0);
|
|
143
|
+
return values.includes(pointerType);
|
|
144
|
+
}
|
|
145
|
+
function useLatestRef(value) {
|
|
146
|
+
const ref = React$1.useRef(value);
|
|
147
|
+
index(() => {
|
|
148
|
+
ref.current = value;
|
|
149
|
+
});
|
|
150
|
+
return ref;
|
|
151
|
+
}
|
|
152
|
+
function useEffectEvent(callback) {
|
|
153
|
+
const ref = React$1.useRef(() => {
|
|
154
|
+
throw new Error("Cannot call an event handler while rendering.");
|
|
155
|
+
});
|
|
156
|
+
useSafeInsertionEffect(() => {
|
|
157
|
+
ref.current = callback;
|
|
158
|
+
});
|
|
159
|
+
return React$1.useCallback(function() {
|
|
160
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
|
|
161
|
+
return ref.current == null ? void 0 : ref.current(...args);
|
|
162
|
+
}, []);
|
|
163
|
+
}
|
|
164
|
+
function isDifferentGridRow(index$1, cols, prevRow) {
|
|
165
|
+
return Math.floor(index$1 / cols) !== prevRow;
|
|
166
|
+
}
|
|
167
|
+
function isIndexOutOfListBounds(listRef, index$1) {
|
|
168
|
+
return index$1 < 0 || index$1 >= listRef.current.length;
|
|
169
|
+
}
|
|
170
|
+
function getMinListIndex(listRef, disabledIndices) {
|
|
171
|
+
return findNonDisabledListIndex(listRef, { disabledIndices });
|
|
172
|
+
}
|
|
173
|
+
function getMaxListIndex(listRef, disabledIndices) {
|
|
174
|
+
return findNonDisabledListIndex(listRef, {
|
|
175
|
+
decrement: true,
|
|
176
|
+
startingIndex: listRef.current.length,
|
|
177
|
+
disabledIndices
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
function findNonDisabledListIndex(listRef, _temp) {
|
|
181
|
+
let { startingIndex = -1, decrement = false, disabledIndices, amount = 1 } = _temp === void 0 ? {} : _temp;
|
|
182
|
+
let index$1 = startingIndex;
|
|
183
|
+
do
|
|
184
|
+
index$1 += decrement ? -amount : amount;
|
|
185
|
+
while (index$1 >= 0 && index$1 <= listRef.current.length - 1 && isListIndexDisabled(listRef, index$1, disabledIndices));
|
|
186
|
+
return index$1;
|
|
187
|
+
}
|
|
188
|
+
function getGridNavigatedIndex(listRef, _ref) {
|
|
189
|
+
let { event, orientation, loop, rtl, cols, disabledIndices, minIndex, maxIndex, prevIndex, stopEvent: stop = false } = _ref;
|
|
190
|
+
let nextIndex = prevIndex;
|
|
191
|
+
if (event.key === ARROW_UP) {
|
|
192
|
+
stop && stopEvent(event);
|
|
193
|
+
if (prevIndex === -1) nextIndex = maxIndex;
|
|
194
|
+
else {
|
|
195
|
+
nextIndex = findNonDisabledListIndex(listRef, {
|
|
196
|
+
startingIndex: nextIndex,
|
|
197
|
+
amount: cols,
|
|
198
|
+
decrement: true,
|
|
199
|
+
disabledIndices
|
|
200
|
+
});
|
|
201
|
+
if (loop && (prevIndex - cols < minIndex || nextIndex < 0)) {
|
|
202
|
+
const col = prevIndex % cols;
|
|
203
|
+
const maxCol = maxIndex % cols;
|
|
204
|
+
const offset = maxIndex - (maxCol - col);
|
|
205
|
+
if (maxCol === col) nextIndex = maxIndex;
|
|
206
|
+
else nextIndex = maxCol > col ? offset : offset - cols;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
if (isIndexOutOfListBounds(listRef, nextIndex)) nextIndex = prevIndex;
|
|
210
|
+
}
|
|
211
|
+
if (event.key === ARROW_DOWN) {
|
|
212
|
+
stop && stopEvent(event);
|
|
213
|
+
if (prevIndex === -1) nextIndex = minIndex;
|
|
214
|
+
else {
|
|
215
|
+
nextIndex = findNonDisabledListIndex(listRef, {
|
|
216
|
+
startingIndex: prevIndex,
|
|
217
|
+
amount: cols,
|
|
218
|
+
disabledIndices
|
|
219
|
+
});
|
|
220
|
+
if (loop && prevIndex + cols > maxIndex) nextIndex = findNonDisabledListIndex(listRef, {
|
|
221
|
+
startingIndex: prevIndex % cols - cols,
|
|
222
|
+
amount: cols,
|
|
223
|
+
disabledIndices
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
if (isIndexOutOfListBounds(listRef, nextIndex)) nextIndex = prevIndex;
|
|
227
|
+
}
|
|
228
|
+
if (orientation === "both") {
|
|
229
|
+
const prevRow = floor(prevIndex / cols);
|
|
230
|
+
if (event.key === (rtl ? ARROW_LEFT : ARROW_RIGHT)) {
|
|
231
|
+
stop && stopEvent(event);
|
|
232
|
+
if (prevIndex % cols !== cols - 1) {
|
|
233
|
+
nextIndex = findNonDisabledListIndex(listRef, {
|
|
234
|
+
startingIndex: prevIndex,
|
|
235
|
+
disabledIndices
|
|
236
|
+
});
|
|
237
|
+
if (loop && isDifferentGridRow(nextIndex, cols, prevRow)) nextIndex = findNonDisabledListIndex(listRef, {
|
|
238
|
+
startingIndex: prevIndex - prevIndex % cols - 1,
|
|
239
|
+
disabledIndices
|
|
240
|
+
});
|
|
241
|
+
} else if (loop) nextIndex = findNonDisabledListIndex(listRef, {
|
|
242
|
+
startingIndex: prevIndex - prevIndex % cols - 1,
|
|
243
|
+
disabledIndices
|
|
244
|
+
});
|
|
245
|
+
if (isDifferentGridRow(nextIndex, cols, prevRow)) nextIndex = prevIndex;
|
|
246
|
+
}
|
|
247
|
+
if (event.key === (rtl ? ARROW_RIGHT : ARROW_LEFT)) {
|
|
248
|
+
stop && stopEvent(event);
|
|
249
|
+
if (prevIndex % cols !== 0) {
|
|
250
|
+
nextIndex = findNonDisabledListIndex(listRef, {
|
|
251
|
+
startingIndex: prevIndex,
|
|
252
|
+
decrement: true,
|
|
253
|
+
disabledIndices
|
|
254
|
+
});
|
|
255
|
+
if (loop && isDifferentGridRow(nextIndex, cols, prevRow)) nextIndex = findNonDisabledListIndex(listRef, {
|
|
256
|
+
startingIndex: prevIndex + (cols - prevIndex % cols),
|
|
257
|
+
decrement: true,
|
|
258
|
+
disabledIndices
|
|
259
|
+
});
|
|
260
|
+
} else if (loop) nextIndex = findNonDisabledListIndex(listRef, {
|
|
261
|
+
startingIndex: prevIndex + (cols - prevIndex % cols),
|
|
262
|
+
decrement: true,
|
|
263
|
+
disabledIndices
|
|
264
|
+
});
|
|
265
|
+
if (isDifferentGridRow(nextIndex, cols, prevRow)) nextIndex = prevIndex;
|
|
266
|
+
}
|
|
267
|
+
const lastRow = floor(maxIndex / cols) === prevRow;
|
|
268
|
+
if (isIndexOutOfListBounds(listRef, nextIndex)) if (loop && lastRow) nextIndex = event.key === (rtl ? ARROW_RIGHT : ARROW_LEFT) ? maxIndex : findNonDisabledListIndex(listRef, {
|
|
269
|
+
startingIndex: prevIndex - prevIndex % cols - 1,
|
|
270
|
+
disabledIndices
|
|
271
|
+
});
|
|
272
|
+
else nextIndex = prevIndex;
|
|
273
|
+
}
|
|
274
|
+
return nextIndex;
|
|
275
|
+
}
|
|
276
|
+
/** For each cell index, gets the item index that occupies that cell */
|
|
277
|
+
function createGridCellMap(sizes, cols, dense) {
|
|
278
|
+
const cellMap = [];
|
|
279
|
+
let startIndex = 0;
|
|
280
|
+
sizes.forEach((_ref2, index$1) => {
|
|
281
|
+
let { width, height } = _ref2;
|
|
282
|
+
if (width > cols) throw new Error("[Floating UI]: Invalid grid - item width at index " + index$1 + " is greater than grid columns");
|
|
283
|
+
let itemPlaced = false;
|
|
284
|
+
if (dense) startIndex = 0;
|
|
285
|
+
while (!itemPlaced) {
|
|
286
|
+
const targetCells = [];
|
|
287
|
+
for (let i = 0; i < width; i++) for (let j = 0; j < height; j++) targetCells.push(startIndex + i + j * cols);
|
|
288
|
+
if (startIndex % cols + width <= cols && targetCells.every((cell) => cellMap[cell] == null)) {
|
|
289
|
+
targetCells.forEach((cell) => {
|
|
290
|
+
cellMap[cell] = index$1;
|
|
291
|
+
});
|
|
292
|
+
itemPlaced = true;
|
|
293
|
+
} else startIndex++;
|
|
294
|
+
}
|
|
295
|
+
});
|
|
296
|
+
return [...cellMap];
|
|
297
|
+
}
|
|
298
|
+
/** Gets cell index of an item's corner or -1 when index is -1. */
|
|
299
|
+
function getGridCellIndexOfCorner(index$1, sizes, cellMap, cols, corner) {
|
|
300
|
+
if (index$1 === -1) return -1;
|
|
301
|
+
const firstCellIndex = cellMap.indexOf(index$1);
|
|
302
|
+
const sizeItem = sizes[index$1];
|
|
303
|
+
switch (corner) {
|
|
304
|
+
case "tl": return firstCellIndex;
|
|
305
|
+
case "tr":
|
|
306
|
+
if (!sizeItem) return firstCellIndex;
|
|
307
|
+
return firstCellIndex + sizeItem.width - 1;
|
|
308
|
+
case "bl":
|
|
309
|
+
if (!sizeItem) return firstCellIndex;
|
|
310
|
+
return firstCellIndex + (sizeItem.height - 1) * cols;
|
|
311
|
+
case "br": return cellMap.lastIndexOf(index$1);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
/** Gets all cell indices that correspond to the specified indices */
|
|
315
|
+
function getGridCellIndices(indices, cellMap) {
|
|
316
|
+
return cellMap.flatMap((index$1, cellIndex) => indices.includes(index$1) ? [cellIndex] : []);
|
|
317
|
+
}
|
|
318
|
+
function isListIndexDisabled(listRef, index$1, disabledIndices) {
|
|
319
|
+
if (typeof disabledIndices === "function") return disabledIndices(index$1);
|
|
320
|
+
else if (disabledIndices) return disabledIndices.includes(index$1);
|
|
321
|
+
const element = listRef.current[index$1];
|
|
322
|
+
return element == null || element.hasAttribute("disabled") || element.getAttribute("aria-disabled") === "true";
|
|
323
|
+
}
|
|
324
|
+
function getTabbableIn(container, dir) {
|
|
325
|
+
const list = tabbable(container, getTabbableOptions());
|
|
326
|
+
const len = list.length;
|
|
327
|
+
if (len === 0) return;
|
|
328
|
+
const active = activeElement(getDocument(container));
|
|
329
|
+
const index$1 = list.indexOf(active);
|
|
330
|
+
return list[index$1 === -1 ? dir === 1 ? 0 : len - 1 : index$1 + dir];
|
|
331
|
+
}
|
|
332
|
+
function getNextTabbable(referenceElement) {
|
|
333
|
+
return getTabbableIn(getDocument(referenceElement).body, 1) || referenceElement;
|
|
334
|
+
}
|
|
335
|
+
function getPreviousTabbable(referenceElement) {
|
|
336
|
+
return getTabbableIn(getDocument(referenceElement).body, -1) || referenceElement;
|
|
337
|
+
}
|
|
338
|
+
function isOutsideEvent(event, container) {
|
|
339
|
+
const containerElement = container || event.currentTarget;
|
|
340
|
+
const relatedTarget = event.relatedTarget;
|
|
341
|
+
return !relatedTarget || !contains(containerElement, relatedTarget);
|
|
342
|
+
}
|
|
343
|
+
function disableFocusInside(container) {
|
|
344
|
+
tabbable(container, getTabbableOptions()).forEach((element) => {
|
|
345
|
+
element.dataset.tabindex = element.getAttribute("tabindex") || "";
|
|
346
|
+
element.setAttribute("tabindex", "-1");
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
function enableFocusInside(container) {
|
|
350
|
+
container.querySelectorAll("[data-tabindex]").forEach((element) => {
|
|
351
|
+
const tabindex = element.dataset.tabindex;
|
|
352
|
+
delete element.dataset.tabindex;
|
|
353
|
+
if (tabindex) element.setAttribute("tabindex", tabindex);
|
|
354
|
+
else element.removeAttribute("tabindex");
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
var FOCUSABLE_ATTRIBUTE, TYPEABLE_SELECTOR, ARROW_LEFT, ARROW_RIGHT, ARROW_UP, ARROW_DOWN, index, SafeReact, useSafeInsertionEffect, getTabbableOptions;
|
|
358
|
+
var init_floating_ui_react_utils = __esm({ "../../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.mjs": (() => {
|
|
359
|
+
init_floating_ui_utils_dom();
|
|
360
|
+
init_floating_ui_utils();
|
|
361
|
+
init_index_esm();
|
|
362
|
+
FOCUSABLE_ATTRIBUTE = "data-floating-ui-focusable";
|
|
363
|
+
TYPEABLE_SELECTOR = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
|
|
364
|
+
ARROW_LEFT = "ArrowLeft";
|
|
365
|
+
ARROW_RIGHT = "ArrowRight";
|
|
366
|
+
ARROW_UP = "ArrowUp";
|
|
367
|
+
ARROW_DOWN = "ArrowDown";
|
|
368
|
+
index = typeof document !== "undefined" ? useLayoutEffect : function noop() {};
|
|
369
|
+
SafeReact = { ...React$1 };
|
|
370
|
+
useSafeInsertionEffect = SafeReact.useInsertionEffect || ((fn) => fn());
|
|
371
|
+
getTabbableOptions = () => ({
|
|
372
|
+
getShadowRoot: true,
|
|
373
|
+
displayCheck: typeof ResizeObserver === "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
|
|
374
|
+
});
|
|
375
|
+
}) });
|
|
376
|
+
|
|
377
|
+
//#endregion
|
|
378
|
+
init_floating_ui_react_utils();
|
|
379
|
+
export { activeElement, contains, createGridCellMap, disableFocusInside, enableFocusInside, findNonDisabledListIndex, getDeepestNode, getDocument, getFloatingFocusElement, getGridCellIndexOfCorner, getGridCellIndices, getGridNavigatedIndex, getMaxListIndex, getMinListIndex, getNextTabbable, getNodeAncestors, getNodeChildren, getPlatform, getPreviousTabbable, getTabbableOptions, getTarget, getUserAgent, index, init_floating_ui_react_utils, isEventTargetWithin, isIndexOutOfListBounds, isListIndexDisabled, isMac, isMouseLikePointerType, isOutsideEvent, isReactEvent, isRootElement, isSafari, isTypeableCombobox, isTypeableElement, isVirtualClick, isVirtualPointerEvent, matchesFocusVisible, stopEvent, useEffectEvent, useLatestRef };
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
4
|
+
function clamp(start, value, end) {
|
|
5
|
+
return max(start, min(value, end));
|
|
6
|
+
}
|
|
7
|
+
function evaluate(value, param) {
|
|
8
|
+
return typeof value === "function" ? value(param) : value;
|
|
9
|
+
}
|
|
10
|
+
function getSide(placement) {
|
|
11
|
+
return placement.split("-")[0];
|
|
12
|
+
}
|
|
13
|
+
function getAlignment(placement) {
|
|
14
|
+
return placement.split("-")[1];
|
|
15
|
+
}
|
|
16
|
+
function getOppositeAxis(axis) {
|
|
17
|
+
return axis === "x" ? "y" : "x";
|
|
18
|
+
}
|
|
19
|
+
function getAxisLength(axis) {
|
|
20
|
+
return axis === "y" ? "height" : "width";
|
|
21
|
+
}
|
|
22
|
+
function getSideAxis(placement) {
|
|
23
|
+
return yAxisSides.has(getSide(placement)) ? "y" : "x";
|
|
24
|
+
}
|
|
25
|
+
function getAlignmentAxis(placement) {
|
|
26
|
+
return getOppositeAxis(getSideAxis(placement));
|
|
27
|
+
}
|
|
28
|
+
function getAlignmentSides(placement, rects, rtl) {
|
|
29
|
+
if (rtl === void 0) rtl = false;
|
|
30
|
+
const alignment = getAlignment(placement);
|
|
31
|
+
const alignmentAxis = getAlignmentAxis(placement);
|
|
32
|
+
const length = getAxisLength(alignmentAxis);
|
|
33
|
+
let mainAlignmentSide = alignmentAxis === "x" ? alignment === (rtl ? "end" : "start") ? "right" : "left" : alignment === "start" ? "bottom" : "top";
|
|
34
|
+
if (rects.reference[length] > rects.floating[length]) mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
|
35
|
+
return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
|
|
36
|
+
}
|
|
37
|
+
function getExpandedPlacements(placement) {
|
|
38
|
+
const oppositePlacement = getOppositePlacement(placement);
|
|
39
|
+
return [
|
|
40
|
+
getOppositeAlignmentPlacement(placement),
|
|
41
|
+
oppositePlacement,
|
|
42
|
+
getOppositeAlignmentPlacement(oppositePlacement)
|
|
43
|
+
];
|
|
44
|
+
}
|
|
45
|
+
function getOppositeAlignmentPlacement(placement) {
|
|
46
|
+
return placement.replace(/start|end/g, (alignment) => oppositeAlignmentMap[alignment]);
|
|
47
|
+
}
|
|
48
|
+
function getSideList(side, isStart, rtl) {
|
|
49
|
+
switch (side) {
|
|
50
|
+
case "top":
|
|
51
|
+
case "bottom":
|
|
52
|
+
if (rtl) return isStart ? rlPlacement : lrPlacement;
|
|
53
|
+
return isStart ? lrPlacement : rlPlacement;
|
|
54
|
+
case "left":
|
|
55
|
+
case "right": return isStart ? tbPlacement : btPlacement;
|
|
56
|
+
default: return [];
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
60
|
+
const alignment = getAlignment(placement);
|
|
61
|
+
let list = getSideList(getSide(placement), direction === "start", rtl);
|
|
62
|
+
if (alignment) {
|
|
63
|
+
list = list.map((side) => side + "-" + alignment);
|
|
64
|
+
if (flipAlignment) list = list.concat(list.map(getOppositeAlignmentPlacement));
|
|
65
|
+
}
|
|
66
|
+
return list;
|
|
67
|
+
}
|
|
68
|
+
function getOppositePlacement(placement) {
|
|
69
|
+
return placement.replace(/left|right|bottom|top/g, (side) => oppositeSideMap[side]);
|
|
70
|
+
}
|
|
71
|
+
function expandPaddingObject(padding) {
|
|
72
|
+
return {
|
|
73
|
+
top: 0,
|
|
74
|
+
right: 0,
|
|
75
|
+
bottom: 0,
|
|
76
|
+
left: 0,
|
|
77
|
+
...padding
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function getPaddingObject(padding) {
|
|
81
|
+
return typeof padding !== "number" ? expandPaddingObject(padding) : {
|
|
82
|
+
top: padding,
|
|
83
|
+
right: padding,
|
|
84
|
+
bottom: padding,
|
|
85
|
+
left: padding
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
function rectToClientRect(rect) {
|
|
89
|
+
const { x, y, width, height } = rect;
|
|
90
|
+
return {
|
|
91
|
+
width,
|
|
92
|
+
height,
|
|
93
|
+
top: y,
|
|
94
|
+
left: x,
|
|
95
|
+
right: x + width,
|
|
96
|
+
bottom: y + height,
|
|
97
|
+
x,
|
|
98
|
+
y
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
var sides, alignments, placements, min, max, round, floor, createCoords, oppositeSideMap, oppositeAlignmentMap, yAxisSides, lrPlacement, rlPlacement, tbPlacement, btPlacement;
|
|
102
|
+
var init_floating_ui_utils = require_rolldown_runtime.__esm({ "../../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs": (() => {
|
|
103
|
+
sides = [
|
|
104
|
+
"top",
|
|
105
|
+
"right",
|
|
106
|
+
"bottom",
|
|
107
|
+
"left"
|
|
108
|
+
];
|
|
109
|
+
alignments = ["start", "end"];
|
|
110
|
+
placements = /* @__PURE__ */ sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
|
111
|
+
min = Math.min;
|
|
112
|
+
max = Math.max;
|
|
113
|
+
round = Math.round;
|
|
114
|
+
floor = Math.floor;
|
|
115
|
+
createCoords = (v) => ({
|
|
116
|
+
x: v,
|
|
117
|
+
y: v
|
|
118
|
+
});
|
|
119
|
+
oppositeSideMap = {
|
|
120
|
+
left: "right",
|
|
121
|
+
right: "left",
|
|
122
|
+
bottom: "top",
|
|
123
|
+
top: "bottom"
|
|
124
|
+
};
|
|
125
|
+
oppositeAlignmentMap = {
|
|
126
|
+
start: "end",
|
|
127
|
+
end: "start"
|
|
128
|
+
};
|
|
129
|
+
yAxisSides = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
130
|
+
lrPlacement = ["left", "right"];
|
|
131
|
+
rlPlacement = ["right", "left"];
|
|
132
|
+
tbPlacement = ["top", "bottom"];
|
|
133
|
+
btPlacement = ["bottom", "top"];
|
|
134
|
+
}) });
|
|
135
|
+
|
|
136
|
+
//#endregion
|
|
137
|
+
init_floating_ui_utils();
|
|
138
|
+
exports.clamp = clamp;
|
|
139
|
+
exports.createCoords = createCoords;
|
|
140
|
+
exports.evaluate = evaluate;
|
|
141
|
+
exports.floor = floor;
|
|
142
|
+
exports.getAlignment = getAlignment;
|
|
143
|
+
exports.getAlignmentAxis = getAlignmentAxis;
|
|
144
|
+
exports.getAlignmentSides = getAlignmentSides;
|
|
145
|
+
exports.getAxisLength = getAxisLength;
|
|
146
|
+
exports.getExpandedPlacements = getExpandedPlacements;
|
|
147
|
+
exports.getOppositeAlignmentPlacement = getOppositeAlignmentPlacement;
|
|
148
|
+
exports.getOppositeAxis = getOppositeAxis;
|
|
149
|
+
exports.getOppositeAxisPlacements = getOppositeAxisPlacements;
|
|
150
|
+
exports.getOppositePlacement = getOppositePlacement;
|
|
151
|
+
exports.getPaddingObject = getPaddingObject;
|
|
152
|
+
exports.getSide = getSide;
|
|
153
|
+
exports.getSideAxis = getSideAxis;
|
|
154
|
+
Object.defineProperty(exports, 'init_floating_ui_utils', {
|
|
155
|
+
enumerable: true,
|
|
156
|
+
get: function () {
|
|
157
|
+
return init_floating_ui_utils;
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
exports.max = max;
|
|
161
|
+
exports.min = min;
|
|
162
|
+
exports.placements = placements;
|
|
163
|
+
exports.rectToClientRect = rectToClientRect;
|
|
164
|
+
exports.round = round;
|
|
165
|
+
exports.sides = sides;
|