@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icon-selector/types.d.ts
|
|
2
|
-
interface
|
|
2
|
+
interface IconProviderProps {
|
|
3
3
|
prefix: string;
|
|
4
4
|
icons: string[];
|
|
5
5
|
/**
|
|
@@ -7,5 +7,7 @@ interface IconProvider {
|
|
|
7
7
|
*/
|
|
8
8
|
name: string;
|
|
9
9
|
}
|
|
10
|
+
type IconProviderLoader = () => Promise<IconProviderProps>;
|
|
11
|
+
type IconProvider = IconProviderProps | IconProviderLoader;
|
|
10
12
|
//#endregion
|
|
11
|
-
export { IconProvider };
|
|
13
|
+
export { IconProvider, IconProviderLoader, IconProviderProps };
|
|
@@ -1 +1,69 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_is_valid_provider = require('./utils/is-valid-provider.cjs');
|
|
3
|
+
let react = require("react");
|
|
4
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
5
|
+
|
|
6
|
+
//#region src/icon-selector/use-async-providers.ts
|
|
7
|
+
function useAsyncProviders(providers = []) {
|
|
8
|
+
const [state, setState] = (0, react.useState)({
|
|
9
|
+
resolved: [],
|
|
10
|
+
loading: false,
|
|
11
|
+
errors: []
|
|
12
|
+
});
|
|
13
|
+
const previousProvidersRef = (0, react.useRef)([]);
|
|
14
|
+
(0, react.useEffect)(() => {
|
|
15
|
+
let isMounted = true;
|
|
16
|
+
if (state.loading) return;
|
|
17
|
+
if (previousProvidersRef.current.length === providers.length && providers.every((p, i) => p === previousProvidersRef.current[i])) return;
|
|
18
|
+
previousProvidersRef.current = providers;
|
|
19
|
+
const loadProviders = async () => {
|
|
20
|
+
if (!providers.length) {
|
|
21
|
+
if (isMounted) setState({
|
|
22
|
+
resolved: [],
|
|
23
|
+
loading: false,
|
|
24
|
+
errors: []
|
|
25
|
+
});
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
setState((prev) => ({
|
|
29
|
+
...prev,
|
|
30
|
+
loading: true,
|
|
31
|
+
errors: []
|
|
32
|
+
}));
|
|
33
|
+
const loaded = [];
|
|
34
|
+
const loadErrors = [];
|
|
35
|
+
const results = await Promise.allSettled(providers.map(async (p) => {
|
|
36
|
+
if (typeof p === "function") return p();
|
|
37
|
+
return p;
|
|
38
|
+
}));
|
|
39
|
+
for (const [index, result] of results.entries()) if (result.status === "fulfilled") {
|
|
40
|
+
const provider = result.value;
|
|
41
|
+
if (require_is_valid_provider.isValidProvider(provider)) loaded.push(provider);
|
|
42
|
+
else {
|
|
43
|
+
const err = /* @__PURE__ */ new Error(`Invalid provider at index ${index}: Missing required fields.`);
|
|
44
|
+
loadErrors.push(err);
|
|
45
|
+
}
|
|
46
|
+
} else {
|
|
47
|
+
const err = result.reason instanceof Error ? result.reason : new Error(String(result.reason));
|
|
48
|
+
loadErrors.push(err);
|
|
49
|
+
}
|
|
50
|
+
setState({
|
|
51
|
+
resolved: loaded,
|
|
52
|
+
loading: false,
|
|
53
|
+
errors: loadErrors
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
loadProviders();
|
|
57
|
+
return () => {
|
|
58
|
+
isMounted = false;
|
|
59
|
+
};
|
|
60
|
+
}, [providers, state.loading]);
|
|
61
|
+
return {
|
|
62
|
+
providers: state.resolved,
|
|
63
|
+
isLoading: state.loading,
|
|
64
|
+
errors: state.errors
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
//#endregion
|
|
69
|
+
exports.useAsyncProviders = useAsyncProviders;
|
|
@@ -1 +1,67 @@
|
|
|
1
|
-
import{isValidProvider
|
|
1
|
+
import { isValidProvider } from "./utils/is-valid-provider.js";
|
|
2
|
+
import { useEffect, useRef, useState } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/icon-selector/use-async-providers.ts
|
|
5
|
+
function useAsyncProviders(providers = []) {
|
|
6
|
+
const [state, setState] = useState({
|
|
7
|
+
resolved: [],
|
|
8
|
+
loading: false,
|
|
9
|
+
errors: []
|
|
10
|
+
});
|
|
11
|
+
const previousProvidersRef = useRef([]);
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
let isMounted = true;
|
|
14
|
+
if (state.loading) return;
|
|
15
|
+
if (previousProvidersRef.current.length === providers.length && providers.every((p, i) => p === previousProvidersRef.current[i])) return;
|
|
16
|
+
previousProvidersRef.current = providers;
|
|
17
|
+
const loadProviders = async () => {
|
|
18
|
+
if (!providers.length) {
|
|
19
|
+
if (isMounted) setState({
|
|
20
|
+
resolved: [],
|
|
21
|
+
loading: false,
|
|
22
|
+
errors: []
|
|
23
|
+
});
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
setState((prev) => ({
|
|
27
|
+
...prev,
|
|
28
|
+
loading: true,
|
|
29
|
+
errors: []
|
|
30
|
+
}));
|
|
31
|
+
const loaded = [];
|
|
32
|
+
const loadErrors = [];
|
|
33
|
+
const results = await Promise.allSettled(providers.map(async (p) => {
|
|
34
|
+
if (typeof p === "function") return p();
|
|
35
|
+
return p;
|
|
36
|
+
}));
|
|
37
|
+
for (const [index, result] of results.entries()) if (result.status === "fulfilled") {
|
|
38
|
+
const provider = result.value;
|
|
39
|
+
if (isValidProvider(provider)) loaded.push(provider);
|
|
40
|
+
else {
|
|
41
|
+
const err = /* @__PURE__ */ new Error(`Invalid provider at index ${index}: Missing required fields.`);
|
|
42
|
+
loadErrors.push(err);
|
|
43
|
+
}
|
|
44
|
+
} else {
|
|
45
|
+
const err = result.reason instanceof Error ? result.reason : new Error(String(result.reason));
|
|
46
|
+
loadErrors.push(err);
|
|
47
|
+
}
|
|
48
|
+
setState({
|
|
49
|
+
resolved: loaded,
|
|
50
|
+
loading: false,
|
|
51
|
+
errors: loadErrors
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
loadProviders();
|
|
55
|
+
return () => {
|
|
56
|
+
isMounted = false;
|
|
57
|
+
};
|
|
58
|
+
}, [providers, state.loading]);
|
|
59
|
+
return {
|
|
60
|
+
providers: state.resolved,
|
|
61
|
+
isLoading: state.loading,
|
|
62
|
+
errors: state.errors
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
//#endregion
|
|
67
|
+
export { useAsyncProviders };
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
|
|
3
|
+
//#region src/icon-selector/utils/is-valid-provider.ts
|
|
4
|
+
/**
|
|
5
|
+
* Validates if a value is a valid IconProvider structure
|
|
6
|
+
*/
|
|
7
|
+
function isValidProvider(value) {
|
|
8
|
+
return typeof value === "object" && value !== null && "prefix" in value && "icons" in value && "name" in value && typeof value.prefix === "string" && Array.isArray(value.icons);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
exports.isValidProvider = isValidProvider;
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/icon-selector/utils/is-valid-provider.ts
|
|
2
|
+
/**
|
|
3
|
+
* Validates if a value is a valid IconProvider structure
|
|
4
|
+
*/
|
|
5
|
+
function isValidProvider(value) {
|
|
6
|
+
return typeof value === "object" && value !== null && "prefix" in value && "icons" in value && "name" in value && typeof value.prefix === "string" && Array.isArray(value.icons);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { isValidProvider };
|
|
@@ -1 +1,137 @@
|
|
|
1
|
-
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
5
|
+
let react = require("react");
|
|
6
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
9
|
+
let __iconify_react = require("@iconify/react");
|
|
10
|
+
__iconify_react = require_rolldown_runtime.__toESM(__iconify_react);
|
|
11
|
+
let __tanstack_react_virtual = require("@tanstack/react-virtual");
|
|
12
|
+
__tanstack_react_virtual = require_rolldown_runtime.__toESM(__tanstack_react_virtual);
|
|
13
|
+
|
|
14
|
+
//#region src/icon-selector/virtualized-icon-grid.tsx
|
|
15
|
+
const CELL_SIZE_DEFAULT = 80;
|
|
16
|
+
const ROW_HEIGHT = 80;
|
|
17
|
+
const DEFAULT_HEIGHT = 480;
|
|
18
|
+
const MIN_COLUMNS = 3;
|
|
19
|
+
const IconCell = react.default.memo(({ iconName, onSelectIcon }) => {
|
|
20
|
+
if (!iconName) return null;
|
|
21
|
+
const displayName = iconName.split(":")[1] ?? iconName;
|
|
22
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
23
|
+
type: "button",
|
|
24
|
+
onClick: () => onSelectIcon(iconName),
|
|
25
|
+
className: "w-full h-full flex flex-col items-center justify-center gap-1 rounded-md border border-transparent hover:border-primary hover:bg-accent transition-colors p-1",
|
|
26
|
+
title: iconName,
|
|
27
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__iconify_react.Icon, {
|
|
28
|
+
icon: iconName,
|
|
29
|
+
width: "24",
|
|
30
|
+
height: "24"
|
|
31
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
32
|
+
className: "truncate text-xs text-muted-foreground max-w-full",
|
|
33
|
+
children: displayName
|
|
34
|
+
})]
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
IconCell.displayName = "IconCell";
|
|
38
|
+
const VirtualizedIconGrid = ({ icons, onSelectIcon, maxHeight = DEFAULT_HEIGHT, columnCount: providedColumnCount, cellSize = CELL_SIZE_DEFAULT }) => {
|
|
39
|
+
const scrollableRef = (0, react.useRef)(null);
|
|
40
|
+
const containerRef = (0, react.useRef)(null);
|
|
41
|
+
const [containerWidth, setContainerWidth] = (0, react.useState)(0);
|
|
42
|
+
const columnCount = (0, react.useMemo)(() => {
|
|
43
|
+
if (providedColumnCount !== void 0 && providedColumnCount > 0) return providedColumnCount;
|
|
44
|
+
if (containerWidth === 0) return MIN_COLUMNS;
|
|
45
|
+
return Math.max(MIN_COLUMNS, Math.floor(containerWidth / cellSize));
|
|
46
|
+
}, [
|
|
47
|
+
containerWidth,
|
|
48
|
+
cellSize,
|
|
49
|
+
providedColumnCount
|
|
50
|
+
]);
|
|
51
|
+
(0, react.useEffect)(() => {
|
|
52
|
+
const resizeObserver = new ResizeObserver((entries) => {
|
|
53
|
+
for (const entry of entries) setContainerWidth(entry.contentRect.width);
|
|
54
|
+
});
|
|
55
|
+
if (containerRef.current) resizeObserver.observe(containerRef.current);
|
|
56
|
+
return () => {
|
|
57
|
+
resizeObserver.disconnect();
|
|
58
|
+
};
|
|
59
|
+
}, []);
|
|
60
|
+
const height = typeof maxHeight === "number" ? maxHeight : DEFAULT_HEIGHT;
|
|
61
|
+
const rowVirtualizer = (0, __tanstack_react_virtual.useVirtualizer)({
|
|
62
|
+
count: (0, react.useMemo)(() => Math.ceil(icons.length / columnCount), [icons.length, columnCount]),
|
|
63
|
+
getScrollElement: () => scrollableRef.current,
|
|
64
|
+
estimateSize: () => ROW_HEIGHT,
|
|
65
|
+
overscan: 10
|
|
66
|
+
});
|
|
67
|
+
const virtualRows = rowVirtualizer.getVirtualItems();
|
|
68
|
+
const totalSize = rowVirtualizer.getTotalSize();
|
|
69
|
+
const handleSelectIcon = (0, react.useCallback)((iconName) => {
|
|
70
|
+
onSelectIcon(iconName);
|
|
71
|
+
}, [onSelectIcon]);
|
|
72
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
73
|
+
ref: containerRef,
|
|
74
|
+
style: {
|
|
75
|
+
height,
|
|
76
|
+
width: "100%",
|
|
77
|
+
overflow: "hidden",
|
|
78
|
+
position: "relative",
|
|
79
|
+
display: "flex",
|
|
80
|
+
flexDirection: "column"
|
|
81
|
+
},
|
|
82
|
+
children: containerRef.current && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
83
|
+
ref: scrollableRef,
|
|
84
|
+
style: {
|
|
85
|
+
height: "100%",
|
|
86
|
+
width: "100%",
|
|
87
|
+
overflow: "auto",
|
|
88
|
+
flex: 1
|
|
89
|
+
},
|
|
90
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
91
|
+
style: {
|
|
92
|
+
height: `${totalSize}px`,
|
|
93
|
+
width: "100%",
|
|
94
|
+
position: "relative"
|
|
95
|
+
},
|
|
96
|
+
children: virtualRows.map((virtualRow) => {
|
|
97
|
+
const startIndex = virtualRow.index * columnCount;
|
|
98
|
+
const endIndex = Math.min(startIndex + columnCount, icons.length);
|
|
99
|
+
const rowIcons = icons.slice(startIndex, endIndex);
|
|
100
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
101
|
+
style: {
|
|
102
|
+
position: "absolute",
|
|
103
|
+
top: 0,
|
|
104
|
+
left: 0,
|
|
105
|
+
width: "100%",
|
|
106
|
+
height: `${virtualRow.size}px`,
|
|
107
|
+
transform: `translateY(${virtualRow.start}px)`
|
|
108
|
+
},
|
|
109
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
110
|
+
style: {
|
|
111
|
+
display: "grid",
|
|
112
|
+
gridTemplateColumns: `repeat(${columnCount}, 1fr)`,
|
|
113
|
+
height: "100%",
|
|
114
|
+
width: "100%",
|
|
115
|
+
gap: "0"
|
|
116
|
+
},
|
|
117
|
+
children: rowIcons.map((iconName) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
118
|
+
style: {
|
|
119
|
+
minHeight: "100%",
|
|
120
|
+
minWidth: "0"
|
|
121
|
+
},
|
|
122
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconCell, {
|
|
123
|
+
iconName,
|
|
124
|
+
onSelectIcon: handleSelectIcon
|
|
125
|
+
})
|
|
126
|
+
}, iconName))
|
|
127
|
+
})
|
|
128
|
+
}, virtualRow.key);
|
|
129
|
+
})
|
|
130
|
+
})
|
|
131
|
+
})
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
var virtualized_icon_grid_default = VirtualizedIconGrid;
|
|
135
|
+
|
|
136
|
+
//#endregion
|
|
137
|
+
exports.default = virtualized_icon_grid_default;
|
|
@@ -1 +1,132 @@
|
|
|
1
|
-
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { Icon } from "@iconify/react";
|
|
7
|
+
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
8
|
+
|
|
9
|
+
//#region src/icon-selector/virtualized-icon-grid.tsx
|
|
10
|
+
const CELL_SIZE_DEFAULT = 80;
|
|
11
|
+
const ROW_HEIGHT = 80;
|
|
12
|
+
const DEFAULT_HEIGHT = 480;
|
|
13
|
+
const MIN_COLUMNS = 3;
|
|
14
|
+
const IconCell = React.memo(({ iconName, onSelectIcon }) => {
|
|
15
|
+
if (!iconName) return null;
|
|
16
|
+
const displayName = iconName.split(":")[1] ?? iconName;
|
|
17
|
+
return /* @__PURE__ */ jsxs("button", {
|
|
18
|
+
type: "button",
|
|
19
|
+
onClick: () => onSelectIcon(iconName),
|
|
20
|
+
className: "w-full h-full flex flex-col items-center justify-center gap-1 rounded-md border border-transparent hover:border-primary hover:bg-accent transition-colors p-1",
|
|
21
|
+
title: iconName,
|
|
22
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
23
|
+
icon: iconName,
|
|
24
|
+
width: "24",
|
|
25
|
+
height: "24"
|
|
26
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
27
|
+
className: "truncate text-xs text-muted-foreground max-w-full",
|
|
28
|
+
children: displayName
|
|
29
|
+
})]
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
IconCell.displayName = "IconCell";
|
|
33
|
+
const VirtualizedIconGrid = ({ icons, onSelectIcon, maxHeight = DEFAULT_HEIGHT, columnCount: providedColumnCount, cellSize = CELL_SIZE_DEFAULT }) => {
|
|
34
|
+
const scrollableRef = useRef(null);
|
|
35
|
+
const containerRef = useRef(null);
|
|
36
|
+
const [containerWidth, setContainerWidth] = useState(0);
|
|
37
|
+
const columnCount = useMemo(() => {
|
|
38
|
+
if (providedColumnCount !== void 0 && providedColumnCount > 0) return providedColumnCount;
|
|
39
|
+
if (containerWidth === 0) return MIN_COLUMNS;
|
|
40
|
+
return Math.max(MIN_COLUMNS, Math.floor(containerWidth / cellSize));
|
|
41
|
+
}, [
|
|
42
|
+
containerWidth,
|
|
43
|
+
cellSize,
|
|
44
|
+
providedColumnCount
|
|
45
|
+
]);
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
const resizeObserver = new ResizeObserver((entries) => {
|
|
48
|
+
for (const entry of entries) setContainerWidth(entry.contentRect.width);
|
|
49
|
+
});
|
|
50
|
+
if (containerRef.current) resizeObserver.observe(containerRef.current);
|
|
51
|
+
return () => {
|
|
52
|
+
resizeObserver.disconnect();
|
|
53
|
+
};
|
|
54
|
+
}, []);
|
|
55
|
+
const height = typeof maxHeight === "number" ? maxHeight : DEFAULT_HEIGHT;
|
|
56
|
+
const rowVirtualizer = useVirtualizer({
|
|
57
|
+
count: useMemo(() => Math.ceil(icons.length / columnCount), [icons.length, columnCount]),
|
|
58
|
+
getScrollElement: () => scrollableRef.current,
|
|
59
|
+
estimateSize: () => ROW_HEIGHT,
|
|
60
|
+
overscan: 10
|
|
61
|
+
});
|
|
62
|
+
const virtualRows = rowVirtualizer.getVirtualItems();
|
|
63
|
+
const totalSize = rowVirtualizer.getTotalSize();
|
|
64
|
+
const handleSelectIcon = useCallback((iconName) => {
|
|
65
|
+
onSelectIcon(iconName);
|
|
66
|
+
}, [onSelectIcon]);
|
|
67
|
+
return /* @__PURE__ */ jsx("div", {
|
|
68
|
+
ref: containerRef,
|
|
69
|
+
style: {
|
|
70
|
+
height,
|
|
71
|
+
width: "100%",
|
|
72
|
+
overflow: "hidden",
|
|
73
|
+
position: "relative",
|
|
74
|
+
display: "flex",
|
|
75
|
+
flexDirection: "column"
|
|
76
|
+
},
|
|
77
|
+
children: containerRef.current && /* @__PURE__ */ jsx("div", {
|
|
78
|
+
ref: scrollableRef,
|
|
79
|
+
style: {
|
|
80
|
+
height: "100%",
|
|
81
|
+
width: "100%",
|
|
82
|
+
overflow: "auto",
|
|
83
|
+
flex: 1
|
|
84
|
+
},
|
|
85
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
86
|
+
style: {
|
|
87
|
+
height: `${totalSize}px`,
|
|
88
|
+
width: "100%",
|
|
89
|
+
position: "relative"
|
|
90
|
+
},
|
|
91
|
+
children: virtualRows.map((virtualRow) => {
|
|
92
|
+
const startIndex = virtualRow.index * columnCount;
|
|
93
|
+
const endIndex = Math.min(startIndex + columnCount, icons.length);
|
|
94
|
+
const rowIcons = icons.slice(startIndex, endIndex);
|
|
95
|
+
return /* @__PURE__ */ jsx("div", {
|
|
96
|
+
style: {
|
|
97
|
+
position: "absolute",
|
|
98
|
+
top: 0,
|
|
99
|
+
left: 0,
|
|
100
|
+
width: "100%",
|
|
101
|
+
height: `${virtualRow.size}px`,
|
|
102
|
+
transform: `translateY(${virtualRow.start}px)`
|
|
103
|
+
},
|
|
104
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
105
|
+
style: {
|
|
106
|
+
display: "grid",
|
|
107
|
+
gridTemplateColumns: `repeat(${columnCount}, 1fr)`,
|
|
108
|
+
height: "100%",
|
|
109
|
+
width: "100%",
|
|
110
|
+
gap: "0"
|
|
111
|
+
},
|
|
112
|
+
children: rowIcons.map((iconName) => /* @__PURE__ */ jsx("div", {
|
|
113
|
+
style: {
|
|
114
|
+
minHeight: "100%",
|
|
115
|
+
minWidth: "0"
|
|
116
|
+
},
|
|
117
|
+
children: /* @__PURE__ */ jsx(IconCell, {
|
|
118
|
+
iconName,
|
|
119
|
+
onSelectIcon: handleSelectIcon
|
|
120
|
+
})
|
|
121
|
+
}, iconName))
|
|
122
|
+
})
|
|
123
|
+
}, virtualRow.key);
|
|
124
|
+
})
|
|
125
|
+
})
|
|
126
|
+
})
|
|
127
|
+
});
|
|
128
|
+
};
|
|
129
|
+
var virtualized_icon_grid_default = VirtualizedIconGrid;
|
|
130
|
+
|
|
131
|
+
//#endregion
|
|
132
|
+
export { virtualized_icon_grid_default as default };
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1,76 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_FileUpload = require('./file-upload/FileUpload.cjs');
|
|
3
|
+
require('./file-upload/index.cjs');
|
|
4
|
+
const require_AbsoluteFill = require('./AbsoluteFill.cjs');
|
|
5
|
+
const require_Alert = require('./Alert.cjs');
|
|
6
|
+
const require_Button = require('./Button.cjs');
|
|
7
|
+
const require_CloseButtonRounded = require('./CloseButtonRounded.cjs');
|
|
8
|
+
const require_CloseButtonAbsolute = require('./CloseButtonAbsolute.cjs');
|
|
9
|
+
const require_Combobox = require('./Combobox.cjs');
|
|
10
|
+
const require_confirmation_dialogs = require('./confirmation-dialog/confirmation-dialogs.cjs');
|
|
11
|
+
const require_DialogProvider = require('./confirmation-dialog/DialogProvider.cjs');
|
|
12
|
+
require('./confirmation-dialog/index.cjs');
|
|
13
|
+
const require_ContentCard = require('./ContentCard.cjs');
|
|
14
|
+
const require_DatePicker = require('./DatePicker.cjs');
|
|
15
|
+
const require_FileUploadInline = require('./file-upload-inline/FileUploadInline.cjs');
|
|
16
|
+
require('./file-upload-inline/index.cjs');
|
|
17
|
+
const require_use_media_query = require('./hooks/use-media-query.cjs');
|
|
18
|
+
require('./hooks/index.cjs');
|
|
19
|
+
const require_LoadingOverlay = require('./LoadingOverlay.cjs');
|
|
20
|
+
const require_IconPicker = require('./icon-selector/IconPicker.cjs');
|
|
21
|
+
require('./icon-selector/index.cjs');
|
|
22
|
+
const require_Pagination = require('./pagination/Pagination.cjs');
|
|
23
|
+
require('./pagination/index.cjs');
|
|
24
|
+
const require_RichTextEditor = require('./rich-text-editor/RichTextEditor.cjs');
|
|
25
|
+
require('./rich-text-editor/index.cjs');
|
|
26
|
+
const require_Select = require('./Select.cjs');
|
|
27
|
+
const require_Slider = require('./Slider.cjs');
|
|
28
|
+
const require_spinner = require('./spinner/spinner.cjs');
|
|
29
|
+
require('./spinner/index.cjs');
|
|
30
|
+
const require_tags_input = require('./tags-input.cjs');
|
|
31
|
+
const require_ThemeProvider = require('./theme-provider/ThemeProvider.cjs');
|
|
32
|
+
require('./theme-provider/index.cjs');
|
|
33
|
+
const require_ThemeToggle = require('./ThemeToggle.cjs');
|
|
34
|
+
const require_toast = require('./toast/toast.cjs');
|
|
35
|
+
require('./toast/index.cjs');
|
|
36
|
+
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
37
|
+
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
38
|
+
let next_themes = require("next-themes");
|
|
39
|
+
next_themes = require_rolldown_runtime.__toESM(next_themes);
|
|
40
|
+
|
|
41
|
+
exports.AbsoluteFill = require_AbsoluteFill.AbsoluteFill;
|
|
42
|
+
exports.Alert = require_Alert.Alert;
|
|
43
|
+
exports.Button = require_Button.Button;
|
|
44
|
+
exports.CloseButtonAbsolute = require_CloseButtonAbsolute.CloseButtonAbsolute;
|
|
45
|
+
exports.CloseButtonRounded = require_CloseButtonRounded.CloseButtonRounded;
|
|
46
|
+
exports.Combobox = require_Combobox.Combobox;
|
|
47
|
+
exports.ContentCard = require_ContentCard.ContentCard;
|
|
48
|
+
exports.DEFAULT_ALERT_DURATION = require_toast.DEFAULT_ALERT_DURATION;
|
|
49
|
+
exports.DatePicker = require_DatePicker.DatePicker;
|
|
50
|
+
exports.DialogProvider = require_DialogProvider.DialogProvider;
|
|
51
|
+
exports.FileUpload = require_FileUpload.FileUpload;
|
|
52
|
+
exports.FileUploadInline = require_FileUploadInline.FileUploadInline;
|
|
53
|
+
exports.IconPicker = require_IconPicker.IconPicker;
|
|
54
|
+
exports.LoadingOverlay = require_LoadingOverlay.LoadingOverlay;
|
|
55
|
+
exports.Pagination = require_Pagination.Pagination;
|
|
56
|
+
exports.RichTextEditor = require_RichTextEditor.RichTextEditor;
|
|
57
|
+
exports.Select = require_Select.Select;
|
|
58
|
+
exports.Slider = require_Slider.Slider;
|
|
59
|
+
exports.Spinner = require_spinner.Spinner;
|
|
60
|
+
exports.TagsInput = require_tags_input.TagsInput;
|
|
61
|
+
exports.ThemeProvider = require_ThemeProvider.ThemeProvider;
|
|
62
|
+
exports.ThemeToggle = require_ThemeToggle.ThemeToggle;
|
|
63
|
+
exports.cn = __pixpilot_shadcn.cn;
|
|
64
|
+
exports.showConfirmDialog = require_confirmation_dialogs.showConfirmDialog;
|
|
65
|
+
exports.toast = require_toast.toast;
|
|
66
|
+
exports.toastError = require_toast.toastError;
|
|
67
|
+
exports.toastInfo = require_toast.toastInfo;
|
|
68
|
+
exports.toastSuccess = require_toast.toastSuccess;
|
|
69
|
+
exports.toastWarning = require_toast.toastWarning;
|
|
70
|
+
exports.useMediaQuery = require_use_media_query.useMediaQuery;
|
|
71
|
+
Object.defineProperty(exports, 'useTheme', {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get: function () {
|
|
74
|
+
return next_themes.useTheme;
|
|
75
|
+
}
|
|
76
|
+
});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { FileMetadata, FileUploadBaseProps, FileUploadProgressCallBacks, FileUploadProps, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, SingleFileUploadProps } from "./file-upload/types/index.cjs";
|
|
2
|
+
import { FileUpload } from "./file-upload/FileUpload.cjs";
|
|
3
|
+
import "./file-upload/index.cjs";
|
|
1
4
|
import { AbsoluteFill } from "./AbsoluteFill.cjs";
|
|
2
5
|
import { Alert, AlertBaseProps, AlertProps, AlertVariant } from "./Alert.cjs";
|
|
3
6
|
import { Button, ButtonLoaderProps, ButtonProps } from "./Button.cjs";
|
|
@@ -10,16 +13,18 @@ import { DialogProvider, DialogProviderProps } from "./confirmation-dialog/Dialo
|
|
|
10
13
|
import "./confirmation-dialog/index.cjs";
|
|
11
14
|
import { ContentCard } from "./ContentCard.cjs";
|
|
12
15
|
import { DatePicker } from "./DatePicker.cjs";
|
|
13
|
-
import {
|
|
16
|
+
import { FileUploadInlineBaseProps, FileUploadInlineProps } from "./file-upload-inline/types.cjs";
|
|
17
|
+
import { FileUploadInline } from "./file-upload-inline/FileUploadInline.cjs";
|
|
18
|
+
import "./file-upload-inline/index.cjs";
|
|
14
19
|
import { useMediaQuery } from "./hooks/use-media-query.cjs";
|
|
15
|
-
import { AsyncIconProvider, IconProviderLoader, useAsyncProviders } from "./icon-selector/use-async-providers.cjs";
|
|
16
20
|
import { IconPicker, IconPickerProps, IconPickerVariant } from "./icon-selector/IconPicker.cjs";
|
|
17
|
-
import { IconProvider } from "./icon-selector/types.cjs";
|
|
21
|
+
import { IconProvider, IconProviderLoader, IconProviderProps } from "./icon-selector/types.cjs";
|
|
18
22
|
import "./icon-selector/index.cjs";
|
|
19
23
|
import { LoaderProps, LoadingOverlay } from "./LoadingOverlay.cjs";
|
|
20
|
-
import { Pagination, PaginationProps } from "./
|
|
21
|
-
import "./
|
|
22
|
-
import {
|
|
24
|
+
import { Pagination, PaginationProps } from "./pagination/Pagination.cjs";
|
|
25
|
+
import "./pagination/index.cjs";
|
|
26
|
+
import { RichTextEditor, RichTextEditorProps, ToolbarOption } from "./rich-text-editor/RichTextEditor.cjs";
|
|
27
|
+
import "./rich-text-editor/index.cjs";
|
|
23
28
|
import { Select, SelectOption } from "./Select.cjs";
|
|
24
29
|
import { Slider, SliderProps } from "./Slider.cjs";
|
|
25
30
|
import { Spinner, SpinnerProps } from "./spinner/spinner.cjs";
|
|
@@ -31,4 +36,4 @@ import { ThemeToggle } from "./ThemeToggle.cjs";
|
|
|
31
36
|
import { DEFAULT_ALERT_DURATION, ToastMessage, toast, toastError, toastInfo, toastSuccess, toastWarning } from "./toast/toast.cjs";
|
|
32
37
|
import "./toast/index.cjs";
|
|
33
38
|
import { cn } from "@pixpilot/shadcn";
|
|
34
|
-
export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertVariant,
|
|
39
|
+
export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertVariant, Button, ButtonLoaderProps, ButtonProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, Combobox, ConfirmationDialogProps, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DialogProvider, DialogProviderProps, FileMetadata, FileUpload, FileUploadBaseProps, FileUploadInline, FileUploadInlineBaseProps, FileUploadInlineProps, FileUploadProgressCallBacks, FileUploadProps, IconPicker, IconPickerProps, IconPickerVariant, IconProvider, IconProviderLoader, IconProviderProps, LoaderProps, LoadingOverlay, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, Pagination, PaginationProps, PopoverCloseButtonProps, RichTextEditor, RichTextEditorProps, Select, SelectOption, SingleFileUploadProps, Slider, SliderProps, Spinner, SpinnerProps, TagsInput, TagsInputProps, ThemeProvider, ThemeProviderProps, ThemeToggle, ToastMessage, ToolbarOption, cn, showConfirmDialog, toast, toastError, toastInfo, toastSuccess, toastWarning, useMediaQuery, useTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { FileMetadata, FileUploadBaseProps, FileUploadProgressCallBacks, FileUploadProps, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, SingleFileUploadProps } from "./file-upload/types/index.js";
|
|
2
|
+
import { FileUpload } from "./file-upload/FileUpload.js";
|
|
3
|
+
import "./file-upload/index.js";
|
|
1
4
|
import { AbsoluteFill } from "./AbsoluteFill.js";
|
|
2
5
|
import { Alert, AlertBaseProps, AlertProps, AlertVariant } from "./Alert.js";
|
|
3
6
|
import { Button, ButtonLoaderProps, ButtonProps } from "./Button.js";
|
|
@@ -10,17 +13,19 @@ import { DialogProvider, DialogProviderProps } from "./confirmation-dialog/Dialo
|
|
|
10
13
|
import "./confirmation-dialog/index.js";
|
|
11
14
|
import { ContentCard } from "./ContentCard.js";
|
|
12
15
|
import { DatePicker } from "./DatePicker.js";
|
|
13
|
-
import {
|
|
16
|
+
import { FileUploadInlineBaseProps, FileUploadInlineProps } from "./file-upload-inline/types.js";
|
|
17
|
+
import { FileUploadInline } from "./file-upload-inline/FileUploadInline.js";
|
|
18
|
+
import "./file-upload-inline/index.js";
|
|
14
19
|
import { useMediaQuery } from "./hooks/use-media-query.js";
|
|
15
20
|
import "./hooks/index.js";
|
|
16
|
-
import { AsyncIconProvider, IconProviderLoader, useAsyncProviders } from "./icon-selector/use-async-providers.js";
|
|
17
21
|
import { IconPicker, IconPickerProps, IconPickerVariant } from "./icon-selector/IconPicker.js";
|
|
18
|
-
import { IconProvider } from "./icon-selector/types.js";
|
|
22
|
+
import { IconProvider, IconProviderLoader, IconProviderProps } from "./icon-selector/types.js";
|
|
19
23
|
import "./icon-selector/index.js";
|
|
20
24
|
import { LoaderProps, LoadingOverlay } from "./LoadingOverlay.js";
|
|
21
|
-
import { Pagination, PaginationProps } from "./
|
|
22
|
-
import "./
|
|
23
|
-
import {
|
|
25
|
+
import { Pagination, PaginationProps } from "./pagination/Pagination.js";
|
|
26
|
+
import "./pagination/index.js";
|
|
27
|
+
import { RichTextEditor, RichTextEditorProps, ToolbarOption } from "./rich-text-editor/RichTextEditor.js";
|
|
28
|
+
import "./rich-text-editor/index.js";
|
|
24
29
|
import { Select, SelectOption } from "./Select.js";
|
|
25
30
|
import { Slider, SliderProps } from "./Slider.js";
|
|
26
31
|
import { Spinner, SpinnerProps } from "./spinner/spinner.js";
|
|
@@ -32,4 +37,4 @@ import { ThemeToggle } from "./ThemeToggle.js";
|
|
|
32
37
|
import { DEFAULT_ALERT_DURATION, ToastMessage, toast, toastError, toastInfo, toastSuccess, toastWarning } from "./toast/toast.js";
|
|
33
38
|
import "./toast/index.js";
|
|
34
39
|
import { cn } from "@pixpilot/shadcn";
|
|
35
|
-
export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertVariant,
|
|
40
|
+
export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertVariant, Button, ButtonLoaderProps, ButtonProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, Combobox, ConfirmationDialogProps, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DialogProvider, DialogProviderProps, FileMetadata, FileUpload, FileUploadBaseProps, FileUploadInline, FileUploadInlineBaseProps, FileUploadInlineProps, FileUploadProgressCallBacks, FileUploadProps, IconPicker, IconPickerProps, IconPickerVariant, IconProvider, IconProviderLoader, IconProviderProps, LoaderProps, LoadingOverlay, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, Pagination, PaginationProps, PopoverCloseButtonProps, RichTextEditor, RichTextEditorProps, Select, SelectOption, SingleFileUploadProps, Slider, SliderProps, Spinner, SpinnerProps, TagsInput, TagsInputProps, ThemeProvider, ThemeProviderProps, ThemeToggle, ToastMessage, ToolbarOption, cn, showConfirmDialog, toast, toastError, toastInfo, toastSuccess, toastWarning, useMediaQuery, useTheme };
|