@nexus-cross/design-system 1.0.6-beta.2 → 1.0.7
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/DESIGN.md +185 -0
- package/cursor-rules/nexus-ui-api.mdc +223 -7
- package/cursor-rules/nexus-ui-components.mdc +44 -17
- package/dist/alert.js +16 -0
- package/dist/alert.mjs +3 -0
- package/dist/badge.js +16 -0
- package/dist/badge.mjs +3 -0
- package/dist/breadcrumb.js +12 -0
- package/dist/breadcrumb.mjs +3 -0
- package/dist/chunks/chunk-22O6YUYH.mjs +5 -0
- package/dist/chunks/chunk-2N2EPBO4.js +120 -0
- package/dist/chunks/{chunk-AFSEYJZT.js → chunk-2T7RUYEK.js} +175 -50
- package/dist/chunks/chunk-2UPGFY6E.mjs +76 -0
- package/dist/chunks/{chunk-VGO4Z2WH.js → chunk-3RK3UT2O.js} +50 -12
- package/dist/chunks/chunk-3ZWN66YH.js +53 -0
- package/dist/chunks/chunk-5PQ3UCKF.js +99 -0
- package/dist/chunks/chunk-6BWOKTVQ.mjs +87 -0
- package/dist/chunks/chunk-6DBRL6NA.mjs +81 -0
- package/dist/chunks/{chunk-HNLI646G.mjs → chunk-AAITRHED.mjs} +51 -13
- package/dist/chunks/chunk-B5O6W3Z4.mjs +73 -0
- package/dist/chunks/chunk-BJM3NDT2.mjs +368 -0
- package/dist/chunks/chunk-C2DSAJTL.js +109 -0
- package/dist/chunks/chunk-CUTMLBC3.mjs +86 -0
- package/dist/chunks/chunk-CV4GMFWP.js +174 -0
- package/dist/chunks/chunk-DICN6GKE.js +99 -0
- package/dist/chunks/chunk-DYPPVXQF.js +143 -0
- package/dist/chunks/chunk-EJY7IVSK.mjs +31 -0
- package/dist/chunks/chunk-FUIBYZZ4.mjs +98 -0
- package/dist/chunks/chunk-H2G5FMRN.mjs +75 -0
- package/dist/chunks/chunk-H2V7RHYV.mjs +120 -0
- package/dist/chunks/chunk-MMCA33FW.mjs +85 -0
- package/dist/chunks/chunk-NZHK76R3.js +109 -0
- package/dist/chunks/chunk-OE5BAEBE.js +7 -0
- package/dist/chunks/chunk-P73MEU7N.mjs +150 -0
- package/dist/chunks/chunk-PDJTSQOC.js +59 -0
- package/dist/chunks/chunk-S2GMEC43.js +109 -0
- package/dist/chunks/chunk-X3CTJ7TD.js +108 -0
- package/dist/chunks/chunk-XGIJZ3NZ.js +160 -0
- package/dist/chunks/chunk-YO5MSDPX.mjs +36 -0
- package/dist/chunks/chunk-ZI4LN2B2.js +96 -0
- package/dist/chunks/chunk-ZU4AWAFT.mjs +137 -0
- package/dist/component-tokens/button.d.ts +3 -0
- package/dist/component-tokens/button.d.ts.map +1 -0
- package/dist/component-tokens/index.d.ts +3 -0
- package/dist/component-tokens/index.d.ts.map +1 -0
- package/dist/component-tokens/types.d.ts +19 -0
- package/dist/component-tokens/types.d.ts.map +1 -0
- package/dist/{accordion.d.mts → components/Accordion.d.ts} +2 -3
- package/dist/components/Accordion.d.ts.map +1 -0
- package/dist/components/Alert.d.ts +16 -0
- package/dist/components/Alert.d.ts.map +1 -0
- package/dist/{avatar.d.mts → components/Avatar.d.ts} +5 -6
- package/dist/components/Avatar.d.ts.map +1 -0
- package/dist/components/Badge.d.ts +17 -0
- package/dist/components/Badge.d.ts.map +1 -0
- package/dist/components/Breadcrumb.d.ts +15 -0
- package/dist/components/Breadcrumb.d.ts.map +1 -0
- package/dist/{button.d.mts → components/Button.d.ts} +5 -6
- package/dist/components/Button.d.ts.map +1 -0
- package/dist/{carousel.d.mts → components/Carousel.d.ts} +5 -6
- package/dist/components/Carousel.d.ts.map +1 -0
- package/dist/{checkbox.d.mts → components/CheckBox.d.ts} +6 -7
- package/dist/components/CheckBox.d.ts.map +1 -0
- package/dist/{chip.d.mts → components/Chip.d.ts} +6 -7
- package/dist/components/Chip.d.ts.map +1 -0
- package/dist/{client-only.d.mts → components/ClientOnly.d.ts} +4 -5
- package/dist/components/ClientOnly.d.ts.map +1 -0
- package/dist/{countdown.d.mts → components/Countdown.d.ts} +3 -3
- package/dist/components/Countdown.d.ts.map +1 -0
- package/dist/{counter.d.mts → components/Counter.d.ts} +3 -3
- package/dist/components/Counter.d.ts.map +1 -0
- package/dist/{data-list.d.mts → components/DataList.d.ts} +4 -5
- package/dist/components/DataList.d.ts.map +1 -0
- package/dist/components/DatePicker.d.ts +17 -0
- package/dist/components/DatePicker.d.ts.map +1 -0
- package/dist/{divider.d.mts → components/Divider.d.ts} +5 -6
- package/dist/components/Divider.d.ts.map +1 -0
- package/dist/{drawer.d.mts → components/Drawer.d.ts} +13 -15
- package/dist/components/Drawer.d.ts.map +1 -0
- package/dist/components/DropdownMenu.d.ts +30 -0
- package/dist/components/DropdownMenu.d.ts.map +1 -0
- package/dist/{ellipsis.d.mts → components/Ellipsis.d.ts} +4 -5
- package/dist/components/Ellipsis.d.ts.map +1 -0
- package/dist/components/EmptyState.d.ts +15 -0
- package/dist/components/EmptyState.d.ts.map +1 -0
- package/dist/{error-boundary.d.mts → components/ErrorBoundary.d.ts} +4 -5
- package/dist/components/ErrorBoundary.d.ts.map +1 -0
- package/dist/{infinite-scroll.d.mts → components/InfiniteScroll.d.ts} +5 -6
- package/dist/components/InfiniteScroll.d.ts.map +1 -0
- package/dist/{marquee.d.mts → components/Marquee.d.ts} +3 -3
- package/dist/components/Marquee.d.ts.map +1 -0
- package/dist/{number-input.d.mts → components/NumberInput.d.ts} +10 -12
- package/dist/components/NumberInput.d.ts.map +1 -0
- package/dist/components/NxImage.d.ts +13 -0
- package/dist/components/NxImage.d.ts.map +1 -0
- package/dist/{pagination.d.mts → components/Pagination.d.ts} +6 -7
- package/dist/components/Pagination.d.ts.map +1 -0
- package/dist/components/Popover.d.ts +23 -0
- package/dist/components/Popover.d.ts.map +1 -0
- package/dist/{price-input.d.mts → components/PriceInput.d.ts} +5 -6
- package/dist/components/PriceInput.d.ts.map +1 -0
- package/dist/components/Progress.d.ts +17 -0
- package/dist/components/Progress.d.ts.map +1 -0
- package/dist/{radio-group.d.mts → components/RadioGroup.d.ts} +6 -7
- package/dist/components/RadioGroup.d.ts.map +1 -0
- package/dist/{select.d.mts → components/Select.d.ts} +7 -10
- package/dist/components/Select.d.ts.map +1 -0
- package/dist/{skeleton.d.mts → components/Skeleton.d.ts} +3 -3
- package/dist/components/Skeleton.d.ts.map +1 -0
- package/dist/components/Slider.d.ts +19 -0
- package/dist/components/Slider.d.ts.map +1 -0
- package/dist/{spinner.d.mts → components/Spinner.d.ts} +3 -3
- package/dist/components/Spinner.d.ts.map +1 -0
- package/dist/components/Stepper.d.ts +19 -0
- package/dist/components/Stepper.d.ts.map +1 -0
- package/dist/{switch.d.mts → components/Switch.d.ts} +5 -6
- package/dist/components/Switch.d.ts.map +1 -0
- package/dist/{tab.d.mts → components/Tab.d.ts} +7 -9
- package/dist/components/Tab.d.ts.map +1 -0
- package/dist/components/TagInput.d.ts +20 -0
- package/dist/components/TagInput.d.ts.map +1 -0
- package/dist/components/TextArea.d.ts +18 -0
- package/dist/components/TextArea.d.ts.map +1 -0
- package/dist/{text-input.d.mts → components/TextInput.d.ts} +5 -6
- package/dist/components/TextInput.d.ts.map +1 -0
- package/dist/{theme-provider.d.mts → components/ThemeProvider.d.ts} +3 -3
- package/dist/components/ThemeProvider.d.ts.map +1 -0
- package/dist/components/ToggleGroup.d.ts +35 -0
- package/dist/components/ToggleGroup.d.ts.map +1 -0
- package/dist/{tooltip.d.mts → components/Tooltip.d.ts} +6 -10
- package/dist/components/Tooltip.d.ts.map +1 -0
- package/dist/{virtual-scroll.d.mts → components/VirtualScroll.d.ts} +4 -4
- package/dist/components/VirtualScroll.d.ts.map +1 -0
- package/dist/date-picker.js +12 -0
- package/dist/date-picker.mjs +3 -0
- package/dist/dropdown-menu.js +32 -0
- package/dist/dropdown-menu.mjs +3 -0
- package/dist/empty-state.js +16 -0
- package/dist/empty-state.mjs +3 -0
- package/dist/hooks/useCheckDevice.d.ts +4 -4
- package/dist/hooks/useCheckDevice.d.ts.map +1 -0
- package/dist/hooks/useClickOutside.d.ts +2 -2
- package/dist/hooks/useClickOutside.d.ts.map +1 -0
- package/dist/hooks/useDraggableBottomSheet.d.ts +3 -3
- package/dist/hooks/useDraggableBottomSheet.d.ts.map +1 -0
- package/dist/hooks/useDraggableWindow.d.ts +5 -7
- package/dist/hooks/useDraggableWindow.d.ts.map +1 -0
- package/dist/hooks/useInView.d.ts +3 -3
- package/dist/hooks/useInView.d.ts.map +1 -0
- package/dist/hooks/useModal.d.ts +48 -2
- package/dist/hooks/useModal.d.ts.map +1 -0
- package/dist/index.d.ts +100 -77
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +269 -157
- package/dist/index.mjs +30 -18
- package/dist/modal/Modal.d.ts +52 -0
- package/dist/modal/Modal.d.ts.map +1 -0
- package/dist/modal/components/ModalComponent.d.ts +22 -0
- package/dist/modal/components/ModalComponent.d.ts.map +1 -0
- package/dist/modal/components/ModalContainer.d.ts +9 -0
- package/dist/modal/components/ModalContainer.d.ts.map +1 -0
- package/dist/modal/components/ModalPortal.d.ts +8 -0
- package/dist/modal/components/ModalPortal.d.ts.map +1 -0
- package/dist/modal/components/ModalPortalTarget.d.ts +7 -0
- package/dist/modal/components/ModalPortalTarget.d.ts.map +1 -0
- package/dist/modal/components/ModalTemplate.d.ts +20 -0
- package/dist/modal/components/ModalTemplate.d.ts.map +1 -0
- package/dist/modal/components/ModalTemplate.variants.d.ts +29 -0
- package/dist/modal/components/ModalTemplate.variants.d.ts.map +1 -0
- package/dist/modal/constants.d.ts +3 -0
- package/dist/modal/constants.d.ts.map +1 -0
- package/dist/modal/index.d.ts +11 -82
- package/dist/modal/index.d.ts.map +1 -0
- package/dist/modal/index.js +12 -12
- package/dist/modal/index.mjs +3 -3
- package/dist/modal/types.d.ts +90 -0
- package/dist/modal/types.d.ts.map +1 -0
- package/dist/number-input.js +4 -4
- package/dist/number-input.mjs +1 -1
- package/dist/nx-image.js +12 -0
- package/dist/nx-image.mjs +3 -0
- package/dist/progress.js +16 -0
- package/dist/progress.mjs +3 -0
- package/dist/schemas/_all.json +840 -13
- package/dist/schemas/accordion.d.ts +67 -0
- package/dist/schemas/accordion.d.ts.map +1 -0
- package/dist/schemas/alert.d.ts +30 -0
- package/dist/schemas/alert.d.ts.map +1 -0
- package/dist/schemas/alert.json +49 -0
- package/dist/schemas/avatar.d.ts +30 -0
- package/dist/schemas/avatar.d.ts.map +1 -0
- package/dist/schemas/badge.d.ts +33 -0
- package/dist/schemas/badge.d.ts.map +1 -0
- package/dist/schemas/badge.json +76 -0
- package/dist/schemas/breadcrumb.d.ts +38 -0
- package/dist/schemas/breadcrumb.d.ts.map +1 -0
- package/dist/schemas/breadcrumb.json +47 -0
- package/dist/schemas/button.d.ts +42 -0
- package/dist/schemas/button.d.ts.map +1 -0
- package/dist/schemas/carousel.d.ts +48 -0
- package/dist/schemas/carousel.d.ts.map +1 -0
- package/dist/schemas/checkbox.d.ts +48 -0
- package/dist/schemas/checkbox.d.ts.map +1 -0
- package/dist/schemas/chip.d.ts +30 -0
- package/dist/schemas/chip.d.ts.map +1 -0
- package/dist/schemas/client-only.d.ts +12 -0
- package/dist/schemas/client-only.d.ts.map +1 -0
- package/dist/schemas/countdown.d.ts +52 -0
- package/dist/schemas/countdown.d.ts.map +1 -0
- package/dist/schemas/counter.d.ts +36 -0
- package/dist/schemas/counter.d.ts.map +1 -0
- package/dist/schemas/data-list.d.ts +33 -0
- package/dist/schemas/data-list.d.ts.map +1 -0
- package/dist/schemas/date-picker.d.ts +36 -0
- package/dist/schemas/date-picker.d.ts.map +1 -0
- package/dist/schemas/datePicker.json +56 -0
- package/dist/schemas/divider.d.ts +21 -0
- package/dist/schemas/divider.d.ts.map +1 -0
- package/dist/schemas/drawer.d.ts +95 -0
- package/dist/schemas/drawer.d.ts.map +1 -0
- package/dist/schemas/dropdown-menu.d.ts +64 -0
- package/dist/schemas/dropdown-menu.d.ts.map +1 -0
- package/dist/schemas/dropdownMenu.json +83 -0
- package/dist/schemas/ellipsis.d.ts +30 -0
- package/dist/schemas/ellipsis.d.ts.map +1 -0
- package/dist/schemas/empty-state.d.ts +27 -0
- package/dist/schemas/empty-state.d.ts.map +1 -0
- package/dist/schemas/emptyState.json +44 -0
- package/dist/schemas/error-boundary.d.ts +15 -0
- package/dist/schemas/error-boundary.d.ts.map +1 -0
- package/dist/schemas/index.d.ts +47 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/infinite-scroll.d.ts +39 -0
- package/dist/schemas/infinite-scroll.d.ts.map +1 -0
- package/dist/schemas/marquee.d.ts +27 -0
- package/dist/schemas/marquee.d.ts.map +1 -0
- package/dist/schemas/modal.d.ts +176 -0
- package/dist/schemas/modal.d.ts.map +1 -0
- package/dist/schemas/number-input.d.ts +72 -0
- package/dist/schemas/number-input.d.ts.map +1 -0
- package/dist/schemas/numberInput.json +27 -8
- package/dist/schemas/nx-image.d.ts +33 -0
- package/dist/schemas/nx-image.d.ts.map +1 -0
- package/dist/schemas/nxImage.json +56 -0
- package/dist/schemas/pagination.d.ts +27 -0
- package/dist/schemas/pagination.d.ts.map +1 -0
- package/dist/schemas/popover.d.ts +39 -0
- package/dist/schemas/popover.d.ts.map +1 -0
- package/dist/schemas/price-input.d.ts +63 -0
- package/dist/schemas/price-input.d.ts.map +1 -0
- package/dist/schemas/progress.d.ts +30 -0
- package/dist/schemas/progress.d.ts.map +1 -0
- package/dist/schemas/progress.json +63 -0
- package/dist/schemas/radio-group.d.ts +61 -0
- package/dist/schemas/radio-group.d.ts.map +1 -0
- package/dist/schemas/select.d.ts +52 -0
- package/dist/schemas/select.d.ts.map +1 -0
- package/dist/schemas/skeleton.d.ts +27 -0
- package/dist/schemas/skeleton.d.ts.map +1 -0
- package/dist/schemas/slider.d.ts +45 -0
- package/dist/schemas/slider.d.ts.map +1 -0
- package/dist/schemas/slider.json +78 -0
- package/dist/schemas/spinner.d.ts +21 -0
- package/dist/schemas/spinner.d.ts.map +1 -0
- package/dist/schemas/stepper.d.ts +39 -0
- package/dist/schemas/stepper.d.ts.map +1 -0
- package/dist/schemas/stepper.json +73 -0
- package/dist/schemas/switch.d.ts +33 -0
- package/dist/schemas/switch.d.ts.map +1 -0
- package/dist/schemas/tab.d.ts +61 -0
- package/dist/schemas/tab.d.ts.map +1 -0
- package/dist/schemas/table.d.ts +113 -0
- package/dist/schemas/table.d.ts.map +1 -0
- package/dist/schemas/tag-input.d.ts +39 -0
- package/dist/schemas/tag-input.d.ts.map +1 -0
- package/dist/schemas/tagInput.json +70 -0
- package/dist/schemas/text-area.d.ts +69 -0
- package/dist/schemas/text-area.d.ts.map +1 -0
- package/dist/schemas/text-input.d.ts +78 -0
- package/dist/schemas/text-input.d.ts.map +1 -0
- package/dist/schemas/textArea.json +26 -1
- package/dist/schemas/theme-provider.d.ts +36 -0
- package/dist/schemas/theme-provider.d.ts.map +1 -0
- package/dist/schemas/toast.d.ts +91 -0
- package/dist/schemas/toast.d.ts.map +1 -0
- package/dist/schemas/toggle-group.d.ts +58 -0
- package/dist/schemas/toggle-group.d.ts.map +1 -0
- package/dist/schemas/toggleGroup.json +88 -0
- package/dist/schemas/tooltip.d.ts +33 -0
- package/dist/schemas/tooltip.d.ts.map +1 -0
- package/dist/schemas/virtual-scroll.d.ts +67 -0
- package/dist/schemas/virtual-scroll.d.ts.map +1 -0
- package/dist/schemas.js +177 -7
- package/dist/schemas.mjs +166 -8
- package/dist/slider.js +16 -0
- package/dist/slider.mjs +3 -0
- package/dist/stepper.js +16 -0
- package/dist/stepper.mjs +3 -0
- package/dist/styles/.generated/built.d.ts +3 -0
- package/dist/styles/.generated/built.d.ts.map +1 -0
- package/dist/styles/inject-layer.d.ts +2 -0
- package/dist/styles/inject-layer.d.ts.map +1 -0
- package/dist/styles/inject.d.ts +2 -0
- package/dist/styles/inject.d.ts.map +1 -0
- package/dist/styles/layer.js +2 -2
- package/dist/styles/layer.mjs +1 -1
- package/dist/styles.css +1655 -162
- package/dist/styles.js +2 -2
- package/dist/styles.layered.css +1655 -162
- package/dist/styles.mjs +1 -1
- package/dist/table/Table.d.ts +20 -0
- package/dist/table/Table.d.ts.map +1 -0
- package/dist/table/TableHighlightContext.d.ts +11 -0
- package/dist/table/TableHighlightContext.d.ts.map +1 -0
- package/dist/table/TableRow.d.ts +17 -0
- package/dist/table/TableRow.d.ts.map +1 -0
- package/dist/table/TdColumn.d.ts +14 -0
- package/dist/table/TdColumn.d.ts.map +1 -0
- package/dist/table/index.d.ts +23 -0
- package/dist/table/index.d.ts.map +1 -0
- package/dist/table/types.d.ts +27 -0
- package/dist/table/types.d.ts.map +1 -0
- package/dist/table.js +7 -7
- package/dist/table.mjs +1 -1
- package/dist/tag-input.js +16 -0
- package/dist/tag-input.mjs +3 -0
- package/dist/text-area.js +3 -3
- package/dist/text-area.mjs +1 -1
- package/dist/toast/Toast.d.ts +8 -0
- package/dist/toast/Toast.d.ts.map +1 -0
- package/dist/toast/index.d.ts +6 -0
- package/dist/toast/index.d.ts.map +1 -0
- package/dist/{toast.d.ts → toast/useToast.d.ts} +4 -14
- package/dist/toast/useToast.d.ts.map +1 -0
- package/dist/toggle-group.js +16 -0
- package/dist/toggle-group.mjs +3 -0
- package/dist/utils/cn.d.ts +3 -5
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/scroll.d.ts +3 -4
- package/dist/utils/scroll.d.ts.map +1 -0
- package/package.json +104 -38
- package/scripts/setup-cursor-rules.cjs +15 -1
- package/dist/accordion.d.ts +0 -28
- package/dist/avatar.d.ts +0 -17
- package/dist/button.d.ts +0 -17
- package/dist/carousel.d.ts +0 -36
- package/dist/checkbox.d.ts +0 -21
- package/dist/chip.d.ts +0 -16
- package/dist/chunks/chunk-26BUGBOY.mjs +0 -57
- package/dist/chunks/chunk-CLGH2RTS.js +0 -7
- package/dist/chunks/chunk-ECVAVQUY.mjs +0 -243
- package/dist/chunks/chunk-UPCWJWXR.mjs +0 -5
- package/dist/chunks/chunk-WR55D4ZS.js +0 -80
- package/dist/client-only.d.ts +0 -13
- package/dist/countdown.d.ts +0 -27
- package/dist/counter.d.ts +0 -15
- package/dist/data-list.d.ts +0 -33
- package/dist/divider.d.ts +0 -14
- package/dist/drawer.d.ts +0 -42
- package/dist/ellipsis.d.ts +0 -16
- package/dist/error-boundary.d.ts +0 -20
- package/dist/hooks/useCheckDevice.d.mts +0 -47
- package/dist/hooks/useClickOutside.d.mts +0 -12
- package/dist/hooks/useDraggableBottomSheet.d.mts +0 -24
- package/dist/hooks/useDraggableWindow.d.mts +0 -21
- package/dist/hooks/useInView.d.mts +0 -14
- package/dist/hooks/useModal.d.mts +0 -2
- package/dist/index.d.mts +0 -77
- package/dist/infinite-scroll.d.ts +0 -26
- package/dist/marquee.d.ts +0 -12
- package/dist/modal/index.d.mts +0 -87
- package/dist/number-input.d.ts +0 -38
- package/dist/pagination.d.ts +0 -22
- package/dist/popover.d.mts +0 -25
- package/dist/popover.d.ts +0 -25
- package/dist/price-input.d.ts +0 -36
- package/dist/radio-group.d.ts +0 -29
- package/dist/schemas.d.mts +0 -1689
- package/dist/schemas.d.ts +0 -1689
- package/dist/select.d.ts +0 -31
- package/dist/skeleton.d.ts +0 -15
- package/dist/spinner.d.ts +0 -9
- package/dist/styles/layer.d.mts +0 -3
- package/dist/styles/layer.d.ts +0 -3
- package/dist/styles.d.mts +0 -3
- package/dist/styles.d.ts +0 -3
- package/dist/switch.d.ts +0 -15
- package/dist/tab.d.ts +0 -36
- package/dist/table.d.mts +0 -80
- package/dist/table.d.ts +0 -80
- package/dist/text-area.d.mts +0 -15
- package/dist/text-area.d.ts +0 -15
- package/dist/text-input.d.ts +0 -21
- package/dist/theme-provider.d.ts +0 -25
- package/dist/toast.d.mts +0 -42
- package/dist/tooltip.d.ts +0 -24
- package/dist/useModal-BsGIcP8t.d.mts +0 -128
- package/dist/useModal-BsGIcP8t.d.ts +0 -128
- package/dist/utils/cn.d.mts +0 -5
- package/dist/utils/scroll.d.mts +0 -4
- package/dist/virtual-scroll.d.ts +0 -34
- package/dist/chunks/{chunk-3VFBPFZF.mjs → chunk-CWMLTXOH.mjs} +2 -2
- package/dist/chunks/{chunk-U53UA76K.js → chunk-HFBTS42N.js} +2 -2
package/dist/select.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
import { ReactNode } from 'react';
|
|
5
|
-
|
|
6
|
-
declare const selectTriggerVariants: (props?: ({
|
|
7
|
-
variant?: "default" | "outline" | null | undefined;
|
|
8
|
-
size?: "lg" | "md" | "sm" | "full" | null | undefined;
|
|
9
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
|
-
declare const selectContentVariants: (props?: ({
|
|
11
|
-
size?: "lg" | "md" | "sm" | "full" | null | undefined;
|
|
12
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
13
|
-
interface SelectProps extends VariantProps<typeof selectTriggerVariants> {
|
|
14
|
-
children: ReactNode;
|
|
15
|
-
value?: string;
|
|
16
|
-
onValueChange?: (value: string) => void;
|
|
17
|
-
placeholder?: string;
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
className?: string;
|
|
20
|
-
displayComponent?: ReactNode;
|
|
21
|
-
triggerClassName?: string;
|
|
22
|
-
}
|
|
23
|
-
declare const Select: ({ children, value, onValueChange, placeholder, disabled, size, variant, className, triggerClassName, displayComponent, }: SelectProps) => react_jsx_runtime.JSX.Element;
|
|
24
|
-
declare const SelectItem: ({ children, value, disabled, className, }: {
|
|
25
|
-
children: ReactNode;
|
|
26
|
-
value: string;
|
|
27
|
-
disabled?: boolean;
|
|
28
|
-
className?: string;
|
|
29
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
30
|
-
|
|
31
|
-
export { Select, SelectItem, selectContentVariants, selectTriggerVariants };
|
package/dist/skeleton.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface SkeletonProps extends React.HTMLAttributes<HTMLElement> {
|
|
4
|
-
/** 렌더링 태그 */
|
|
5
|
-
as?: 'div' | 'span';
|
|
6
|
-
/** 원형 스켈레톤 */
|
|
7
|
-
circle?: boolean;
|
|
8
|
-
/** 너비 (inline style, 예: '100px', '50%') */
|
|
9
|
-
width?: string | number;
|
|
10
|
-
/** 높이 (inline style, 예: '16px') */
|
|
11
|
-
height?: string | number;
|
|
12
|
-
}
|
|
13
|
-
declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLElement>>;
|
|
14
|
-
|
|
15
|
-
export { Skeleton, type SkeletonProps };
|
package/dist/spinner.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface SpinnerProps extends React.SVGAttributes<SVGSVGElement> {
|
|
4
|
-
size?: number;
|
|
5
|
-
'aria-label'?: string;
|
|
6
|
-
}
|
|
7
|
-
declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<SVGSVGElement>>;
|
|
8
|
-
|
|
9
|
-
export { Spinner, type SpinnerProps };
|
package/dist/styles/layer.d.mts
DELETED
package/dist/styles/layer.d.ts
DELETED
package/dist/styles.d.mts
DELETED
package/dist/styles.d.ts
DELETED
package/dist/switch.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
|
|
5
|
-
declare const switchVariants: (props?: ({
|
|
6
|
-
size?: "md" | "sm" | null | undefined;
|
|
7
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
8
|
-
interface SwitchProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'onChange'>, VariantProps<typeof switchVariants> {
|
|
9
|
-
checked?: boolean;
|
|
10
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
11
|
-
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
12
|
-
}
|
|
13
|
-
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;
|
|
14
|
-
|
|
15
|
-
export { Switch, type SwitchProps, switchVariants };
|
package/dist/tab.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { VariantProps } from 'class-variance-authority';
|
|
5
|
-
|
|
6
|
-
declare const tabListVariants: (props?: ({
|
|
7
|
-
variant?: "line" | "pill" | null | undefined;
|
|
8
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
-
declare const tabTriggerVariants: (props?: ({
|
|
10
|
-
variant?: "line" | "pill" | null | undefined;
|
|
11
|
-
size?: "md" | "sm" | null | undefined;
|
|
12
|
-
active?: boolean | null | undefined;
|
|
13
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
14
|
-
interface TabItem {
|
|
15
|
-
key: string;
|
|
16
|
-
label: React.ReactNode;
|
|
17
|
-
children?: React.ReactNode;
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
}
|
|
20
|
-
interface TabProps extends VariantProps<typeof tabListVariants> {
|
|
21
|
-
items: TabItem[];
|
|
22
|
-
activeKey?: string;
|
|
23
|
-
defaultActiveKey?: string;
|
|
24
|
-
size?: 'sm' | 'md';
|
|
25
|
-
destroyInactive?: boolean;
|
|
26
|
-
onTabChange?: (key: string) => void;
|
|
27
|
-
className?: string;
|
|
28
|
-
tabListClassName?: string;
|
|
29
|
-
tabPanelClassName?: string;
|
|
30
|
-
}
|
|
31
|
-
declare function Tab({ items, activeKey: controlledKey, defaultActiveKey, variant, size, destroyInactive, onTabChange, className, tabListClassName, tabPanelClassName, }: TabProps): react_jsx_runtime.JSX.Element;
|
|
32
|
-
declare namespace Tab {
|
|
33
|
-
var displayName: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export { Tab, type TabItem, type TabProps, tabListVariants, tabTriggerVariants };
|
package/dist/table.d.mts
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactElement, ReactNode, MouseEvent } from 'react';
|
|
3
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
|
-
import { VariantProps } from 'class-variance-authority';
|
|
5
|
-
|
|
6
|
-
type TableThRowDataType = {
|
|
7
|
-
className?: string;
|
|
8
|
-
label?: ReactElement | string;
|
|
9
|
-
fieldId: string | null;
|
|
10
|
-
rowSpan?: number;
|
|
11
|
-
colSpan?: number;
|
|
12
|
-
thColSpan?: number;
|
|
13
|
-
thRowSpan?: number;
|
|
14
|
-
size?: number | string;
|
|
15
|
-
align?: 'center' | 'left' | 'right';
|
|
16
|
-
enableSorting?: boolean;
|
|
17
|
-
order?: 'desc' | 'asc' | '';
|
|
18
|
-
sortValue?: string | number;
|
|
19
|
-
handleClickSort?: (params: {
|
|
20
|
-
index: number;
|
|
21
|
-
fieldId: string;
|
|
22
|
-
order: 'desc' | 'asc' | '';
|
|
23
|
-
}) => Promise<void> | void;
|
|
24
|
-
};
|
|
25
|
-
type TableData = Record<string, unknown>;
|
|
26
|
-
type ChildrenFuncParamsType<T> = {
|
|
27
|
-
index: number;
|
|
28
|
-
item: T extends (infer R)[] ? R : never;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
interface TableProps<T extends TableData[]> {
|
|
32
|
-
className?: string;
|
|
33
|
-
theadClassName?: string;
|
|
34
|
-
notification?: ReactNode;
|
|
35
|
-
list: T | null | undefined;
|
|
36
|
-
noDataMsg?: ReactElement | string;
|
|
37
|
-
hideThead?: boolean;
|
|
38
|
-
sortUpElement?: ReactElement | string;
|
|
39
|
-
sortDownElement?: ReactElement | string;
|
|
40
|
-
loadingType?: 'loading' | 'skeleton';
|
|
41
|
-
loadingElement?: ReactElement;
|
|
42
|
-
loading?: boolean;
|
|
43
|
-
skeletonCount?: number;
|
|
44
|
-
children: (obj: ChildrenFuncParamsType<T>) => ReactNode;
|
|
45
|
-
}
|
|
46
|
-
declare function Table<T extends TableData[]>({ className, theadClassName, list, children, loadingElement, noDataMsg, hideThead, sortUpElement, sortDownElement, loadingType, loading, skeletonCount, notification, }: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
47
|
-
|
|
48
|
-
declare const tableRowVariants: (props?: ({
|
|
49
|
-
variant?: "default" | "accent" | null | undefined;
|
|
50
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
51
|
-
type TableRowProps = VariantProps<typeof tableRowVariants> & {
|
|
52
|
-
className?: string;
|
|
53
|
-
children: ReactNode | string;
|
|
54
|
-
onClick?: (e: MouseEvent<HTMLTableRowElement>) => void;
|
|
55
|
-
};
|
|
56
|
-
declare const TableRow: {
|
|
57
|
-
({ className, children, onClick, variant }: TableRowProps): react_jsx_runtime.JSX.Element;
|
|
58
|
-
displayName: string;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
type TdColumnProps = TableThRowDataType & {
|
|
62
|
-
children: ReactNode;
|
|
63
|
-
textOverflow?: 'auto' | 'truncate' | 'wrap' | 'break-all';
|
|
64
|
-
highlightKey?: string | null;
|
|
65
|
-
};
|
|
66
|
-
declare const TdColumn: {
|
|
67
|
-
({ className, children, fieldId, size, colSpan, rowSpan, align, textOverflow, highlightKey, }: TdColumnProps): react_jsx_runtime.JSX.Element;
|
|
68
|
-
displayName: string;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
type TableHighlightContextType = {
|
|
72
|
-
highlightValue: string | null;
|
|
73
|
-
setHighlightValue: (value: string | null) => void;
|
|
74
|
-
};
|
|
75
|
-
declare const useTableHighlight: () => TableHighlightContextType;
|
|
76
|
-
declare const TableHighlightProvider: ({ children }: {
|
|
77
|
-
children: ReactNode;
|
|
78
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
79
|
-
|
|
80
|
-
export { type ChildrenFuncParamsType, Table, type TableData, TableHighlightProvider, type TableProps, TableRow, type TableRowProps, type TableThRowDataType, TdColumn, type TdColumnProps, tableRowVariants, useTableHighlight };
|
package/dist/table.d.ts
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactElement, ReactNode, MouseEvent } from 'react';
|
|
3
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
|
-
import { VariantProps } from 'class-variance-authority';
|
|
5
|
-
|
|
6
|
-
type TableThRowDataType = {
|
|
7
|
-
className?: string;
|
|
8
|
-
label?: ReactElement | string;
|
|
9
|
-
fieldId: string | null;
|
|
10
|
-
rowSpan?: number;
|
|
11
|
-
colSpan?: number;
|
|
12
|
-
thColSpan?: number;
|
|
13
|
-
thRowSpan?: number;
|
|
14
|
-
size?: number | string;
|
|
15
|
-
align?: 'center' | 'left' | 'right';
|
|
16
|
-
enableSorting?: boolean;
|
|
17
|
-
order?: 'desc' | 'asc' | '';
|
|
18
|
-
sortValue?: string | number;
|
|
19
|
-
handleClickSort?: (params: {
|
|
20
|
-
index: number;
|
|
21
|
-
fieldId: string;
|
|
22
|
-
order: 'desc' | 'asc' | '';
|
|
23
|
-
}) => Promise<void> | void;
|
|
24
|
-
};
|
|
25
|
-
type TableData = Record<string, unknown>;
|
|
26
|
-
type ChildrenFuncParamsType<T> = {
|
|
27
|
-
index: number;
|
|
28
|
-
item: T extends (infer R)[] ? R : never;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
interface TableProps<T extends TableData[]> {
|
|
32
|
-
className?: string;
|
|
33
|
-
theadClassName?: string;
|
|
34
|
-
notification?: ReactNode;
|
|
35
|
-
list: T | null | undefined;
|
|
36
|
-
noDataMsg?: ReactElement | string;
|
|
37
|
-
hideThead?: boolean;
|
|
38
|
-
sortUpElement?: ReactElement | string;
|
|
39
|
-
sortDownElement?: ReactElement | string;
|
|
40
|
-
loadingType?: 'loading' | 'skeleton';
|
|
41
|
-
loadingElement?: ReactElement;
|
|
42
|
-
loading?: boolean;
|
|
43
|
-
skeletonCount?: number;
|
|
44
|
-
children: (obj: ChildrenFuncParamsType<T>) => ReactNode;
|
|
45
|
-
}
|
|
46
|
-
declare function Table<T extends TableData[]>({ className, theadClassName, list, children, loadingElement, noDataMsg, hideThead, sortUpElement, sortDownElement, loadingType, loading, skeletonCount, notification, }: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
47
|
-
|
|
48
|
-
declare const tableRowVariants: (props?: ({
|
|
49
|
-
variant?: "default" | "accent" | null | undefined;
|
|
50
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
51
|
-
type TableRowProps = VariantProps<typeof tableRowVariants> & {
|
|
52
|
-
className?: string;
|
|
53
|
-
children: ReactNode | string;
|
|
54
|
-
onClick?: (e: MouseEvent<HTMLTableRowElement>) => void;
|
|
55
|
-
};
|
|
56
|
-
declare const TableRow: {
|
|
57
|
-
({ className, children, onClick, variant }: TableRowProps): react_jsx_runtime.JSX.Element;
|
|
58
|
-
displayName: string;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
type TdColumnProps = TableThRowDataType & {
|
|
62
|
-
children: ReactNode;
|
|
63
|
-
textOverflow?: 'auto' | 'truncate' | 'wrap' | 'break-all';
|
|
64
|
-
highlightKey?: string | null;
|
|
65
|
-
};
|
|
66
|
-
declare const TdColumn: {
|
|
67
|
-
({ className, children, fieldId, size, colSpan, rowSpan, align, textOverflow, highlightKey, }: TdColumnProps): react_jsx_runtime.JSX.Element;
|
|
68
|
-
displayName: string;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
type TableHighlightContextType = {
|
|
72
|
-
highlightValue: string | null;
|
|
73
|
-
setHighlightValue: (value: string | null) => void;
|
|
74
|
-
};
|
|
75
|
-
declare const useTableHighlight: () => TableHighlightContextType;
|
|
76
|
-
declare const TableHighlightProvider: ({ children }: {
|
|
77
|
-
children: ReactNode;
|
|
78
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
79
|
-
|
|
80
|
-
export { type ChildrenFuncParamsType, Table, type TableData, TableHighlightProvider, type TableProps, TableRow, type TableRowProps, type TableThRowDataType, TdColumn, type TdColumnProps, tableRowVariants, useTableHighlight };
|
package/dist/text-area.d.mts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
|
|
5
|
-
declare const textAreaVariants: (props?: ({
|
|
6
|
-
state?: "error" | "default" | null | undefined;
|
|
7
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
8
|
-
interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement>, VariantProps<typeof textAreaVariants> {
|
|
9
|
-
error?: boolean;
|
|
10
|
-
showCount?: boolean;
|
|
11
|
-
onValueChange?: (value: string) => void;
|
|
12
|
-
}
|
|
13
|
-
declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
14
|
-
|
|
15
|
-
export { TextArea, type TextAreaProps, textAreaVariants };
|
package/dist/text-area.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
|
|
5
|
-
declare const textAreaVariants: (props?: ({
|
|
6
|
-
state?: "error" | "default" | null | undefined;
|
|
7
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
8
|
-
interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement>, VariantProps<typeof textAreaVariants> {
|
|
9
|
-
error?: boolean;
|
|
10
|
-
showCount?: boolean;
|
|
11
|
-
onValueChange?: (value: string) => void;
|
|
12
|
-
}
|
|
13
|
-
declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
14
|
-
|
|
15
|
-
export { TextArea, type TextAreaProps, textAreaVariants };
|
package/dist/text-input.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
|
|
5
|
-
declare const textInputVariants: (props?: ({
|
|
6
|
-
size?: "xl" | "lg" | "md" | null | undefined;
|
|
7
|
-
state?: "error" | "default" | null | undefined;
|
|
8
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
-
interface TextInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>, VariantProps<typeof textInputVariants> {
|
|
10
|
-
error?: boolean;
|
|
11
|
-
prefixIcon?: React.ReactNode;
|
|
12
|
-
suffixIcon?: React.ReactNode;
|
|
13
|
-
label?: React.ReactNode;
|
|
14
|
-
description?: React.ReactNode;
|
|
15
|
-
showCount?: boolean;
|
|
16
|
-
clearable?: boolean;
|
|
17
|
-
onValueChange?: (value: string) => void;
|
|
18
|
-
}
|
|
19
|
-
declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
20
|
-
|
|
21
|
-
export { TextInput, type TextInputProps, textInputVariants };
|
package/dist/theme-provider.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface ThemeProviderProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
defaultTheme?: string;
|
|
6
|
-
storageKey?: string;
|
|
7
|
-
themes?: string[];
|
|
8
|
-
attribute?: string | string[];
|
|
9
|
-
enableSystem?: boolean;
|
|
10
|
-
disableTransitionOnChange?: boolean;
|
|
11
|
-
forcedTheme?: string;
|
|
12
|
-
enableColorScheme?: boolean;
|
|
13
|
-
nonce?: string;
|
|
14
|
-
}
|
|
15
|
-
declare let ThemeProvider: React.FC<ThemeProviderProps>;
|
|
16
|
-
declare let useTheme: () => {
|
|
17
|
-
theme: string | undefined;
|
|
18
|
-
setTheme: (theme: string) => void;
|
|
19
|
-
resolvedTheme: string | undefined;
|
|
20
|
-
themes: string[];
|
|
21
|
-
systemTheme: string | undefined;
|
|
22
|
-
forcedTheme: string | undefined;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export { ThemeProvider, type ThemeProviderProps, useTheme };
|
package/dist/toast.d.mts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { ToasterProps as ToasterProps$1, ExternalToast } from 'sonner';
|
|
2
|
-
export { ExternalToast as ToastOptions, toast } from 'sonner';
|
|
3
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
type ToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
6
|
-
interface ToasterProps extends Partial<ToasterProps$1> {
|
|
7
|
-
position?: ToastPosition;
|
|
8
|
-
unstyled?: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare function Toaster({ position, unstyled, toastOptions, ...props }: ToasterProps): react_jsx_runtime.JSX.Element;
|
|
11
|
-
|
|
12
|
-
type ToastOptions = ExternalToast;
|
|
13
|
-
/**
|
|
14
|
-
* Sonner toast 래퍼 훅.
|
|
15
|
-
*
|
|
16
|
-
* `toast()` 함수를 직접 사용해도 되지만,
|
|
17
|
-
* 편의 메서드(successToast, errorToast 등)를 제공합니다.
|
|
18
|
-
*
|
|
19
|
-
* headless 모드: `toast.custom(<MyComponent />)` 사용
|
|
20
|
-
*/
|
|
21
|
-
declare function useToast(): {
|
|
22
|
-
toast: (message: string, options?: ToastOptions) => string | number;
|
|
23
|
-
successToast: (message: string, options?: ToastOptions) => string | number;
|
|
24
|
-
errorToast: (message: string, options?: ToastOptions) => string | number;
|
|
25
|
-
warningToast: (message: string, options?: ToastOptions) => string | number;
|
|
26
|
-
infoToast: (message: string, options?: ToastOptions) => string | number;
|
|
27
|
-
promiseToast: <T>(promise: Promise<T> | (() => Promise<T>), msgs: {
|
|
28
|
-
loading: string;
|
|
29
|
-
success: string | ((data: T) => string);
|
|
30
|
-
error: string | ((error: unknown) => string);
|
|
31
|
-
}, options?: ToastOptions) => (string & {
|
|
32
|
-
unwrap: () => Promise<T>;
|
|
33
|
-
}) | (number & {
|
|
34
|
-
unwrap: () => Promise<T>;
|
|
35
|
-
}) | {
|
|
36
|
-
unwrap: () => Promise<T>;
|
|
37
|
-
};
|
|
38
|
-
customToast: (jsx: (id: string | number) => React.ReactElement, options?: ToastOptions) => string | number;
|
|
39
|
-
dismissToast: (id?: string | number) => string | number;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export { type ToastPosition, Toaster, type ToasterProps, useToast };
|
package/dist/tooltip.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
-
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
6
|
-
import { VariantProps } from 'class-variance-authority';
|
|
7
|
-
|
|
8
|
-
declare const tooltipContentVariants: (props?: ({
|
|
9
|
-
variant?: "light" | "dark" | null | undefined;
|
|
10
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
|
-
interface TooltipProps extends VariantProps<typeof tooltipContentVariants> {
|
|
12
|
-
children: ReactNode;
|
|
13
|
-
content: ReactNode;
|
|
14
|
-
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
15
|
-
align?: 'start' | 'center' | 'end';
|
|
16
|
-
delayDuration?: number;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
className?: string;
|
|
19
|
-
triggerClassName?: string;
|
|
20
|
-
}
|
|
21
|
-
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
22
|
-
declare const Tooltip: ({ children, content, side, align, delayDuration, disabled, variant, triggerClassName, className, }: TooltipProps) => react_jsx_runtime.JSX.Element;
|
|
23
|
-
|
|
24
|
-
export { Tooltip, TooltipProvider, tooltipContentVariants };
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { MutableRefObject, ComponentType, ReactNode, FunctionComponent } from 'react';
|
|
2
|
-
|
|
3
|
-
type ModalLayout = 'default' | 'bottom-sheet' | 'slide-left' | 'slide-right' | 'full-page' | 'full-page-reverse' | 'draggable';
|
|
4
|
-
interface AnimationOptions {
|
|
5
|
-
name?: string;
|
|
6
|
-
mobile?: string;
|
|
7
|
-
delay?: number;
|
|
8
|
-
duration?: number;
|
|
9
|
-
timingFunc?: string;
|
|
10
|
-
leaveTimingFunc?: string;
|
|
11
|
-
}
|
|
12
|
-
interface DefaultModalOption {
|
|
13
|
-
animation?: AnimationOptions;
|
|
14
|
-
dimCloseEnable?: boolean;
|
|
15
|
-
}
|
|
16
|
-
interface ModalType {
|
|
17
|
-
id: string;
|
|
18
|
-
props: Record<string, unknown>;
|
|
19
|
-
component: ComponentType<Record<string, unknown>>;
|
|
20
|
-
isUpdate?: boolean;
|
|
21
|
-
close?: (modalId: string, isAnimation?: boolean) => void;
|
|
22
|
-
onOpen?: (value: ModalType) => void;
|
|
23
|
-
onClose?: () => void;
|
|
24
|
-
resolve: <T>(value: T) => void;
|
|
25
|
-
reject: (reason?: unknown) => void;
|
|
26
|
-
}
|
|
27
|
-
interface ModalTemplatePropsType {
|
|
28
|
-
className?: string;
|
|
29
|
-
layout?: ModalLayout;
|
|
30
|
-
children: ReactNode;
|
|
31
|
-
showDim?: boolean;
|
|
32
|
-
title?: ReactNode | string;
|
|
33
|
-
desc?: ReactNode | string;
|
|
34
|
-
dimClose?: boolean;
|
|
35
|
-
animation?: AnimationOptions;
|
|
36
|
-
close: (isAnimation?: boolean) => void | Promise<unknown>;
|
|
37
|
-
}
|
|
38
|
-
interface ModalPropsType<T = unknown> {
|
|
39
|
-
children?: ReactNode;
|
|
40
|
-
className?: string;
|
|
41
|
-
layout?: ModalLayout;
|
|
42
|
-
componentName?: string;
|
|
43
|
-
animation?: AnimationOptions;
|
|
44
|
-
close: (isAnimation?: boolean) => void | Promise<unknown>;
|
|
45
|
-
resolve: (value: T, useClose?: boolean) => void;
|
|
46
|
-
}
|
|
47
|
-
interface DefaultModalPropsType {
|
|
48
|
-
id?: string;
|
|
49
|
-
duplicateCheck?: boolean;
|
|
50
|
-
portalId?: string;
|
|
51
|
-
scrollEnable?: boolean;
|
|
52
|
-
isToggle?: boolean;
|
|
53
|
-
isAlone?: boolean;
|
|
54
|
-
clickOutSideRef?: MutableRefObject<HTMLElement>;
|
|
55
|
-
componentName?: string;
|
|
56
|
-
animation?: AnimationOptions;
|
|
57
|
-
layout?: ModalLayout;
|
|
58
|
-
disableEscapeKeyPress?: boolean;
|
|
59
|
-
onOpen?: (value: ModalType) => void;
|
|
60
|
-
onClose?: () => void;
|
|
61
|
-
}
|
|
62
|
-
type PropsOf<T> = T extends FunctionComponent<infer P> ? P : undefined;
|
|
63
|
-
type ModalPropsOf<T> = Omit<PropsOf<T>, 'close' | 'resolve'>;
|
|
64
|
-
type RequiredKeys<T> = {
|
|
65
|
-
[K in keyof T]: T extends Record<K, T[K]> ? K : never;
|
|
66
|
-
}[keyof T];
|
|
67
|
-
type HasRequiredKeys<T> = RequiredKeys<T> extends never ? false : true;
|
|
68
|
-
type OpenModalPropsAndOptions<T> = HasRequiredKeys<ModalPropsOf<T>> extends true ? ModalPropsOf<T> & DefaultModalPropsType : (ModalPropsOf<T> & DefaultModalPropsType) | undefined;
|
|
69
|
-
type OpenModalProps<T> = HasRequiredKeys<ModalPropsOf<T>> extends true ? {
|
|
70
|
-
component: T;
|
|
71
|
-
props: ModalPropsOf<T>;
|
|
72
|
-
options?: DefaultModalPropsType;
|
|
73
|
-
} : {
|
|
74
|
-
component: T;
|
|
75
|
-
props?: ModalPropsOf<T>;
|
|
76
|
-
options?: DefaultModalPropsType;
|
|
77
|
-
};
|
|
78
|
-
interface OpenModal {
|
|
79
|
-
<T extends ComponentType<any>>(params: OpenModalProps<T>): Promise<unknown>;
|
|
80
|
-
<T extends ComponentType<any>>(component: T, props?: OpenModalPropsAndOptions<T>): Promise<unknown>;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
type OpenModalParams<T extends ComponentType<any> = ComponentType<any>> = {
|
|
84
|
-
component: T;
|
|
85
|
-
props?: ModalPropsOf<T>;
|
|
86
|
-
options?: DefaultModalPropsType;
|
|
87
|
-
};
|
|
88
|
-
interface ModalFn {
|
|
89
|
-
<T extends ComponentType<any>>(params: OpenModalParams<T>): Promise<unknown>;
|
|
90
|
-
close: (id: string, isAnimation?: boolean) => void;
|
|
91
|
-
check: (params: {
|
|
92
|
-
componentName: string;
|
|
93
|
-
onlyLastCheck?: boolean;
|
|
94
|
-
} | {
|
|
95
|
-
modalId: string;
|
|
96
|
-
onlyLastCheck?: boolean;
|
|
97
|
-
}) => boolean;
|
|
98
|
-
reset: () => void;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* @example
|
|
102
|
-
* ```tsx
|
|
103
|
-
* const { modal, toggleModal, scrollModal, closeModal } = useModal();
|
|
104
|
-
*
|
|
105
|
-
* const result = await modal({
|
|
106
|
-
* component: MyModal,
|
|
107
|
-
* props: { title: 'Hello' },
|
|
108
|
-
* options: { animation: { name: 'pop-fade', duration: 300 } },
|
|
109
|
-
* });
|
|
110
|
-
* ```
|
|
111
|
-
*/
|
|
112
|
-
declare function useModal(): {
|
|
113
|
-
modal: ModalFn;
|
|
114
|
-
toggleModal: <T extends ComponentType<any>>(params: OpenModalParams<T>) => Promise<unknown>;
|
|
115
|
-
toggleOneModal: <T extends ComponentType<any>>(params: OpenModalParams<T>) => Promise<unknown>;
|
|
116
|
-
scrollModal: <T extends ComponentType<any>>(params: OpenModalParams<T>) => Promise<unknown>;
|
|
117
|
-
closeModal: (id: string, isAnimation?: boolean) => void;
|
|
118
|
-
checkModal: (params: {
|
|
119
|
-
componentName: string;
|
|
120
|
-
onlyLastCheck?: boolean;
|
|
121
|
-
} | {
|
|
122
|
-
modalId: string;
|
|
123
|
-
onlyLastCheck?: boolean;
|
|
124
|
-
}) => boolean;
|
|
125
|
-
resetModal: () => void;
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
export { type AnimationOptions as A, type DefaultModalPropsType as D, type ModalLayout as M, type OpenModal as O, type ModalPropsType as a, type ModalTemplatePropsType as b, type ModalType as c, type DefaultModalOption as d, type ModalPropsOf as e, useModal as u };
|