@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
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkCZC76ZD5_js = require('./chunk-CZC76ZD5.js');
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var classVarianceAuthority = require('class-variance-authority');
|
|
6
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
|
|
8
|
-
function _interopNamespace(e) {
|
|
9
|
-
if (e && e.__esModule) return e;
|
|
10
|
-
var n = Object.create(null);
|
|
11
|
-
if (e) {
|
|
12
|
-
Object.keys(e).forEach(function (k) {
|
|
13
|
-
if (k !== 'default') {
|
|
14
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return e[k]; }
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
n.default = e;
|
|
23
|
-
return Object.freeze(n);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
27
|
-
|
|
28
|
-
var textAreaVariants = classVarianceAuthority.cva("nexus-textarea", {
|
|
29
|
-
variants: {
|
|
30
|
-
state: {
|
|
31
|
-
default: "nexus-textarea--default",
|
|
32
|
-
error: "nexus-textarea--error"
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
defaultVariants: { state: "default" }
|
|
36
|
-
});
|
|
37
|
-
var TextArea = React__namespace.forwardRef(
|
|
38
|
-
({ className, error, showCount, maxLength, onValueChange, onChange, ...props }, ref) => {
|
|
39
|
-
const state = error ? "error" : "default";
|
|
40
|
-
const [count, setCount] = React__namespace.useState(0);
|
|
41
|
-
const handleChange = React__namespace.useCallback(
|
|
42
|
-
(e) => {
|
|
43
|
-
setCount(e.target.value.length);
|
|
44
|
-
onValueChange?.(e.target.value);
|
|
45
|
-
onChange?.(e);
|
|
46
|
-
},
|
|
47
|
-
[onValueChange, onChange]
|
|
48
|
-
);
|
|
49
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "nexus-textarea-wrap", children: [
|
|
50
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
51
|
-
"textarea",
|
|
52
|
-
{
|
|
53
|
-
ref,
|
|
54
|
-
className: chunkCZC76ZD5_js.cn(textAreaVariants({ state }), className),
|
|
55
|
-
maxLength,
|
|
56
|
-
"aria-invalid": error || void 0,
|
|
57
|
-
onChange: handleChange,
|
|
58
|
-
...props
|
|
59
|
-
}
|
|
60
|
-
),
|
|
61
|
-
showCount && maxLength && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
62
|
-
"p",
|
|
63
|
-
{
|
|
64
|
-
className: "nexus-textarea-count",
|
|
65
|
-
"aria-live": "polite",
|
|
66
|
-
"aria-atomic": "true",
|
|
67
|
-
children: [
|
|
68
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "nexus-textarea-count__current", children: count.toLocaleString() }),
|
|
69
|
-
"/",
|
|
70
|
-
maxLength.toLocaleString()
|
|
71
|
-
]
|
|
72
|
-
}
|
|
73
|
-
)
|
|
74
|
-
] });
|
|
75
|
-
}
|
|
76
|
-
);
|
|
77
|
-
TextArea.displayName = "TextArea";
|
|
78
|
-
|
|
79
|
-
exports.TextArea = TextArea;
|
|
80
|
-
exports.textAreaVariants = textAreaVariants;
|
package/dist/client-only.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
interface ClientOnlyProps {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
fallback?: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
declare function ClientOnly({ children, fallback }: ClientOnlyProps): react_jsx_runtime.JSX.Element;
|
|
9
|
-
declare namespace ClientOnly {
|
|
10
|
-
var displayName: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { ClientOnly, type ClientOnlyProps };
|
package/dist/countdown.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface TimeLeft {
|
|
4
|
-
days: number;
|
|
5
|
-
hours: number;
|
|
6
|
-
minutes: number;
|
|
7
|
-
seconds: number;
|
|
8
|
-
total: number;
|
|
9
|
-
isFinished: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare function useCountdown(endTimestamp: number, onEnd?: () => void): TimeLeft;
|
|
12
|
-
interface CountdownProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
13
|
-
endTimestamp: number;
|
|
14
|
-
separator?: React.ReactNode;
|
|
15
|
-
showDays?: boolean;
|
|
16
|
-
labels?: {
|
|
17
|
-
days?: string;
|
|
18
|
-
hours?: string;
|
|
19
|
-
minutes?: string;
|
|
20
|
-
seconds?: string;
|
|
21
|
-
};
|
|
22
|
-
onEnd?: () => void;
|
|
23
|
-
render?: (timeLeft: TimeLeft) => React.ReactNode;
|
|
24
|
-
}
|
|
25
|
-
declare const Countdown: React.ForwardRefExoticComponent<CountdownProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
-
|
|
27
|
-
export { Countdown, type CountdownProps, type TimeLeft, useCountdown };
|
package/dist/counter.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface CounterProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
4
|
-
startValue?: number;
|
|
5
|
-
endValue: number;
|
|
6
|
-
duration?: number;
|
|
7
|
-
delay?: number;
|
|
8
|
-
separator?: boolean;
|
|
9
|
-
digits?: number;
|
|
10
|
-
triggerOnView?: boolean;
|
|
11
|
-
onEnd?: () => void;
|
|
12
|
-
}
|
|
13
|
-
declare const Counter: React.ForwardRefExoticComponent<CounterProps & React.RefAttributes<HTMLSpanElement>>;
|
|
14
|
-
|
|
15
|
-
export { Counter, type CounterProps };
|
package/dist/data-list.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
type UnknownArray = readonly unknown[];
|
|
5
|
-
interface DataListProps<T extends UnknownArray> {
|
|
6
|
-
/** 렌더링할 데이터 배열. null이면 로딩 상태로 간주 */
|
|
7
|
-
list: T | null;
|
|
8
|
-
/** 빈 배열일 때 표시할 메시지 또는 요소 */
|
|
9
|
-
noDataMessage?: string | React.ReactElement;
|
|
10
|
-
/** 에러 발생 시 표시할 fallback */
|
|
11
|
-
errorFallback?: React.ReactNode;
|
|
12
|
-
/** 로딩 중 표시할 요소 (기본: Spinner) */
|
|
13
|
-
loadingElement?: React.ReactElement;
|
|
14
|
-
/** 로딩 중 표시할 스켈레톤 요소 */
|
|
15
|
-
skeletonElement?: React.ReactElement;
|
|
16
|
-
/** 스켈레톤 반복 개수 */
|
|
17
|
-
skeletonCount?: number;
|
|
18
|
-
/** 강제 로딩 상태 */
|
|
19
|
-
loading?: boolean;
|
|
20
|
-
/** 각 아이템을 렌더링하는 함수 */
|
|
21
|
-
children: (params: {
|
|
22
|
-
item: T[number];
|
|
23
|
-
index: number;
|
|
24
|
-
}) => React.ReactNode;
|
|
25
|
-
/** 루트 요소 className */
|
|
26
|
-
className?: string;
|
|
27
|
-
}
|
|
28
|
-
declare function DataList<T extends UnknownArray>({ list, loadingElement, skeletonElement, skeletonCount, noDataMessage, loading, errorFallback, children, className, }: DataListProps<T>): react_jsx_runtime.JSX.Element;
|
|
29
|
-
declare namespace DataList {
|
|
30
|
-
var displayName: string;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export { DataList, type DataListProps };
|
package/dist/divider.d.ts
DELETED
|
@@ -1,14 +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 dividerVariants: (props?: ({
|
|
6
|
-
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
7
|
-
variant?: "dashed" | "dotted" | "solid" | null | undefined;
|
|
8
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
-
interface DividerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof dividerVariants> {
|
|
10
|
-
color?: string;
|
|
11
|
-
}
|
|
12
|
-
declare const Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
|
|
14
|
-
export { Divider, type DividerProps, dividerVariants };
|
package/dist/drawer.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { Drawer as Drawer$1 } from 'vaul';
|
|
4
|
-
import { VariantProps } from 'class-variance-authority';
|
|
5
|
-
|
|
6
|
-
declare const drawerOverlayVariants: (props?: ({
|
|
7
|
-
blur?: "none" | "md" | "sm" | null | undefined;
|
|
8
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
-
declare const drawerContentVariants: (props?: ({
|
|
10
|
-
direction?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
11
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
12
|
-
type DrawerDirection = 'bottom' | 'top' | 'left' | 'right';
|
|
13
|
-
type DrawerRootProps = React.ComponentPropsWithoutRef<typeof Drawer$1.Root> & {
|
|
14
|
-
direction?: DrawerDirection;
|
|
15
|
-
};
|
|
16
|
-
declare const DrawerRoot: ({ direction, ...props }: DrawerRootProps) => React.ReactElement;
|
|
17
|
-
declare const DrawerTrigger: React.FC<React.ComponentPropsWithoutRef<typeof Drawer$1.Trigger>>;
|
|
18
|
-
interface DrawerContentProps extends VariantProps<typeof drawerOverlayVariants> {
|
|
19
|
-
children?: React.ReactNode;
|
|
20
|
-
direction?: DrawerDirection;
|
|
21
|
-
showHandle?: boolean;
|
|
22
|
-
overlayClassName?: string;
|
|
23
|
-
className?: string;
|
|
24
|
-
}
|
|
25
|
-
declare const DrawerContent: React.ForwardRefExoticComponent<DrawerContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
-
declare const DrawerClose: React.FC<React.ComponentPropsWithoutRef<typeof Drawer$1.Close>>;
|
|
27
|
-
declare const DrawerTitle: React.FC<React.ComponentPropsWithoutRef<typeof Drawer$1.Title> & {
|
|
28
|
-
className?: string;
|
|
29
|
-
}>;
|
|
30
|
-
declare const DrawerDescription: React.FC<React.ComponentPropsWithoutRef<typeof Drawer$1.Description> & {
|
|
31
|
-
className?: string;
|
|
32
|
-
}>;
|
|
33
|
-
type DrawerComponent = typeof DrawerRoot & {
|
|
34
|
-
Trigger: typeof DrawerTrigger;
|
|
35
|
-
Content: typeof DrawerContent;
|
|
36
|
-
Close: typeof DrawerClose;
|
|
37
|
-
Title: typeof DrawerTitle;
|
|
38
|
-
Description: typeof DrawerDescription;
|
|
39
|
-
};
|
|
40
|
-
declare const Drawer: DrawerComponent;
|
|
41
|
-
|
|
42
|
-
export { Drawer, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDirection, DrawerRoot, type DrawerRootProps, DrawerTitle, DrawerTrigger, drawerContentVariants, drawerOverlayVariants };
|
package/dist/ellipsis.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
interface EllipsisProps {
|
|
5
|
-
className?: string;
|
|
6
|
-
content: ReactNode;
|
|
7
|
-
triggerMore?: ReactNode;
|
|
8
|
-
triggerLess?: ReactNode;
|
|
9
|
-
lineClamp?: number;
|
|
10
|
-
defaultShortened?: boolean;
|
|
11
|
-
observingEnvs?: boolean[];
|
|
12
|
-
onShowMoreLessClick?: () => void;
|
|
13
|
-
}
|
|
14
|
-
declare const Ellipsis: ({ className, content, triggerMore, triggerLess, lineClamp, defaultShortened, observingEnvs, onShowMoreLessClick, }: EllipsisProps) => react_jsx_runtime.JSX.Element;
|
|
15
|
-
|
|
16
|
-
export { Ellipsis, type EllipsisProps };
|
package/dist/error-boundary.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
interface ErrorBoundaryProps {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
fallback?: React.ReactNode;
|
|
7
|
-
onError?: (error: Error, errorInfo: React.ErrorInfo) => void;
|
|
8
|
-
}
|
|
9
|
-
interface ErrorBoundaryState {
|
|
10
|
-
hasError: boolean;
|
|
11
|
-
error: Error | null;
|
|
12
|
-
}
|
|
13
|
-
declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
14
|
-
constructor(props: ErrorBoundaryProps);
|
|
15
|
-
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
16
|
-
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
17
|
-
render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export { ErrorBoundary, type ErrorBoundaryProps };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
interface BreakPoints {
|
|
2
|
-
isDesktop?: string;
|
|
3
|
-
isTablet?: string;
|
|
4
|
-
isMobile?: string;
|
|
5
|
-
}
|
|
6
|
-
interface CheckDeviceResult {
|
|
7
|
-
isDesktop: boolean;
|
|
8
|
-
isTablet: boolean;
|
|
9
|
-
isMobile: boolean;
|
|
10
|
-
}
|
|
11
|
-
type NumericBreakpoints = Record<string, number>;
|
|
12
|
-
/**
|
|
13
|
-
* 미디어쿼리 기반 디바이스 타입 감지 훅.
|
|
14
|
-
*
|
|
15
|
-
* 숫자 기반 (권장):
|
|
16
|
-
* ```tsx
|
|
17
|
-
* const device = useCheckDevice({
|
|
18
|
-
* mobile: 0,
|
|
19
|
-
* tablet: 600,
|
|
20
|
-
* 'desktop-sm': 1024,
|
|
21
|
-
* desktop: 1280,
|
|
22
|
-
* });
|
|
23
|
-
* // device.mobile, device.tablet, device['desktop-sm'], device.desktop
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* 기본값:
|
|
27
|
-
* ```tsx
|
|
28
|
-
* const { mobile, tablet, desktop } = useCheckDevice();
|
|
29
|
-
* // mobile < 768, tablet 768–1279, desktop 1280+
|
|
30
|
-
* ```
|
|
31
|
-
*
|
|
32
|
-
* 레거시 (미디어쿼리 문자열):
|
|
33
|
-
* ```tsx
|
|
34
|
-
* const { isDesktop } = useCheckDevice({
|
|
35
|
-
* isDesktop: '(min-width: 1440px)',
|
|
36
|
-
* });
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
declare function useCheckDevice(): {
|
|
40
|
-
mobile: boolean;
|
|
41
|
-
tablet: boolean;
|
|
42
|
-
desktop: boolean;
|
|
43
|
-
};
|
|
44
|
-
declare function useCheckDevice(breakPoints: BreakPoints | undefined): CheckDeviceResult;
|
|
45
|
-
declare function useCheckDevice(breakPoints: NumericBreakpoints): Record<string, boolean>;
|
|
46
|
-
|
|
47
|
-
export { type BreakPoints, type CheckDeviceResult, useCheckDevice as default };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 특정 엘리먼트 외부 클릭을 감지하는 훅.
|
|
3
|
-
*
|
|
4
|
-
* @param ref - 외부 클릭 감지 대상 HTMLElement (또는 null)
|
|
5
|
-
* @param handler - 외부 클릭 시 실행할 콜백
|
|
6
|
-
* @param option.offTouchEvent - true이면 touchstart 이벤트 무시
|
|
7
|
-
*/
|
|
8
|
-
declare const useClickOutside: (ref: HTMLElement | null, handler: (e: MouseEvent | TouchEvent) => void, option?: {
|
|
9
|
-
offTouchEvent?: boolean;
|
|
10
|
-
}) => void;
|
|
11
|
-
|
|
12
|
-
export { useClickOutside as default };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
interface UseDraggableBottomSheetOptions {
|
|
2
|
-
enabled: boolean;
|
|
3
|
-
onClose: () => void;
|
|
4
|
-
threshold?: number;
|
|
5
|
-
velocityThreshold?: number;
|
|
6
|
-
maxDragDistance?: number;
|
|
7
|
-
}
|
|
8
|
-
declare function useDraggableBottomSheet({ enabled, onClose, threshold, velocityThreshold, maxDragDistance, }: UseDraggableBottomSheetOptions): {
|
|
9
|
-
onTouchStart: undefined;
|
|
10
|
-
onTouchMove: undefined;
|
|
11
|
-
onTouchEnd: undefined;
|
|
12
|
-
translateY: number;
|
|
13
|
-
dimOpacity: number;
|
|
14
|
-
isAnimating: boolean;
|
|
15
|
-
} | {
|
|
16
|
-
onTouchStart: (e: React.TouchEvent) => void;
|
|
17
|
-
onTouchMove: (e: React.TouchEvent) => void;
|
|
18
|
-
onTouchEnd: () => void;
|
|
19
|
-
translateY: number;
|
|
20
|
-
dimOpacity: number;
|
|
21
|
-
isAnimating: boolean;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { useDraggableBottomSheet };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React$1 from 'react';
|
|
2
|
-
import { RefObject } from 'react';
|
|
3
|
-
|
|
4
|
-
interface Position {
|
|
5
|
-
x: number;
|
|
6
|
-
y: number;
|
|
7
|
-
}
|
|
8
|
-
interface UseDraggableWindowOptions {
|
|
9
|
-
initialPosition?: Position;
|
|
10
|
-
persistKey?: string;
|
|
11
|
-
targetRef?: RefObject<HTMLElement | null>;
|
|
12
|
-
}
|
|
13
|
-
declare function useDraggableWindow({ initialPosition, persistKey, targetRef, }?: UseDraggableWindowOptions): {
|
|
14
|
-
position: Position;
|
|
15
|
-
setPosition: React$1.Dispatch<React$1.SetStateAction<Position>>;
|
|
16
|
-
handleMouseDown: (e: React.MouseEvent) => void;
|
|
17
|
-
resetPosition: () => void;
|
|
18
|
-
isDefaultPosition: boolean;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export { useDraggableWindow };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
interface UseInViewOptions {
|
|
2
|
-
/** 한 번 보이면 계속 true 유지 (default: true) */
|
|
3
|
-
triggerOnce?: boolean;
|
|
4
|
-
/** 뷰포트 확장 마진 (default: '200px') */
|
|
5
|
-
rootMargin?: string;
|
|
6
|
-
/** 교차 비율 임계값 (default: 0) */
|
|
7
|
-
threshold?: number;
|
|
8
|
-
}
|
|
9
|
-
declare function useInView(options?: UseInViewOptions): {
|
|
10
|
-
ref: (node: Element | null) => void;
|
|
11
|
-
isInView: boolean;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export { useInView as default, useInView };
|
package/dist/index.d.mts
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
export { cn } from './utils/cn.mjs';
|
|
2
|
-
export { scrollFreeze, scrollRelease } from './utils/scroll.mjs';
|
|
3
|
-
export { BreakPoints, CheckDeviceResult, default as useCheckDevice } from './hooks/useCheckDevice.mjs';
|
|
4
|
-
export { default as useClickOutside } from './hooks/useClickOutside.mjs';
|
|
5
|
-
export { A as AnimationOptions, D as DefaultModalPropsType, M as ModalLayout, a as ModalPropsType, b as ModalTemplatePropsType, c as ModalType, O as OpenModal, u as useModal } from './useModal-BsGIcP8t.mjs';
|
|
6
|
-
export { useDraggableBottomSheet } from './hooks/useDraggableBottomSheet.mjs';
|
|
7
|
-
export { useDraggableWindow } from './hooks/useDraggableWindow.mjs';
|
|
8
|
-
export { default as useInView } from './hooks/useInView.mjs';
|
|
9
|
-
export { ModalContainer, ModalPortalTarget, ModalTemplate, ModalTemplateProps, checkModal, closeModal, getModalDefaultOption, modal, modal as openModal, resetModal } from './modal/index.mjs';
|
|
10
|
-
export { ExternalToast as ToastOptions, toast } from 'sonner';
|
|
11
|
-
export { ToastPosition, Toaster, ToasterProps, useToast } from './toast.mjs';
|
|
12
|
-
export { ChildrenFuncParamsType, Table, TableData, TableHighlightProvider, TableProps, TableRow, TableRowProps, TableThRowDataType, TdColumn, TdColumnProps, tableRowVariants, useTableHighlight } from './table.mjs';
|
|
13
|
-
export { Popover, PopoverArrow, PopoverClose, PopoverContent, PopoverTrigger, popoverContentClasses } from './popover.mjs';
|
|
14
|
-
export { Tooltip, TooltipProvider, tooltipContentVariants } from './tooltip.mjs';
|
|
15
|
-
export { Select, SelectItem, selectContentVariants, selectTriggerVariants } from './select.mjs';
|
|
16
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger } from './accordion.mjs';
|
|
17
|
-
export { InfiniteScroll, InfiniteScrollProps } from './infinite-scroll.mjs';
|
|
18
|
-
export { Ellipsis, EllipsisProps } from './ellipsis.mjs';
|
|
19
|
-
export { Drawer, DrawerClose, DrawerContent, DrawerContentProps, DrawerDescription, DrawerDirection, DrawerRoot, DrawerRootProps, DrawerTitle, DrawerTrigger, drawerContentVariants, drawerOverlayVariants } from './drawer.mjs';
|
|
20
|
-
export { Button, ButtonProps, buttonVariants } from './button.mjs';
|
|
21
|
-
export { Chip, ChipProps, chipVariants } from './chip.mjs';
|
|
22
|
-
export { Switch, SwitchProps, switchVariants } from './switch.mjs';
|
|
23
|
-
export { TextInput, TextInputProps, textInputVariants } from './text-input.mjs';
|
|
24
|
-
export { TextArea, TextAreaProps, textAreaVariants } from './text-area.mjs';
|
|
25
|
-
export { CheckBox, CheckBoxProps, checkBoxVariants } from './checkbox.mjs';
|
|
26
|
-
export { RadioGroup, RadioGroupProps, RadioItem, RadioItemProps, radioGroupVariants, radioItemVariants } from './radio-group.mjs';
|
|
27
|
-
export { Spinner, SpinnerProps } from './spinner.mjs';
|
|
28
|
-
export { Skeleton, SkeletonProps } from './skeleton.mjs';
|
|
29
|
-
export { Divider, DividerProps, dividerVariants } from './divider.mjs';
|
|
30
|
-
export { ClientOnly, ClientOnlyProps } from './client-only.mjs';
|
|
31
|
-
export { ErrorBoundary, ErrorBoundaryProps } from './error-boundary.mjs';
|
|
32
|
-
export { ThemeProvider, ThemeProviderProps, useTheme } from './theme-provider.mjs';
|
|
33
|
-
export { Pagination, PaginationProps, pageButtonVariants, paginationVariants } from './pagination.mjs';
|
|
34
|
-
export { NumberInput, NumberInputProps, NumberInputRef, numberInputBind, numberInputVariants } from './number-input.mjs';
|
|
35
|
-
export { PriceInput, PriceInputProps, priceInputVariants } from './price-input.mjs';
|
|
36
|
-
export { Avatar, AvatarProps, avatarVariants } from './avatar.mjs';
|
|
37
|
-
export { Counter, CounterProps } from './counter.mjs';
|
|
38
|
-
export { Countdown, CountdownProps, TimeLeft, useCountdown } from './countdown.mjs';
|
|
39
|
-
export { Marquee, MarqueeProps } from './marquee.mjs';
|
|
40
|
-
export { Tab, TabItem, TabProps, tabListVariants, tabTriggerVariants } from './tab.mjs';
|
|
41
|
-
export { Carousel, CarouselApi, CarouselDots, CarouselNext, CarouselPrev, CarouselProps, CarouselSlide, CarouselSlideProps, useCarousel } from './carousel.mjs';
|
|
42
|
-
export { DataList, DataListProps } from './data-list.mjs';
|
|
43
|
-
export { VirtualGrid, VirtualGridProps, VirtualList, VirtualListProps } from './virtual-scroll.mjs';
|
|
44
|
-
import 'clsx';
|
|
45
|
-
import 'react';
|
|
46
|
-
import 'react/jsx-runtime';
|
|
47
|
-
import 'class-variance-authority/types';
|
|
48
|
-
import 'class-variance-authority';
|
|
49
|
-
import '@radix-ui/react-popover';
|
|
50
|
-
import '@radix-ui/react-tooltip';
|
|
51
|
-
import '@radix-ui/react-accordion';
|
|
52
|
-
import 'vaul';
|
|
53
|
-
import 'embla-carousel-react';
|
|
54
|
-
import '@tanstack/react-virtual';
|
|
55
|
-
|
|
56
|
-
interface ComponentTokenDef {
|
|
57
|
-
/** CSS custom property name, e.g. '--color-comp-btn-primary-bg' */
|
|
58
|
-
cssVar: string;
|
|
59
|
-
type: 'color' | 'opacity' | 'radius' | 'spacing' | 'shadow' | 'font-size';
|
|
60
|
-
/** Default value referencing a semantic token, e.g. 'var(--color-accent-primary)' */
|
|
61
|
-
defaultValue: string;
|
|
62
|
-
description?: string;
|
|
63
|
-
}
|
|
64
|
-
interface ComponentTokenSchema {
|
|
65
|
-
id: string;
|
|
66
|
-
name: string;
|
|
67
|
-
description?: string;
|
|
68
|
-
tokens: {
|
|
69
|
-
common: Record<string, ComponentTokenDef>;
|
|
70
|
-
variants?: Record<string, Record<string, ComponentTokenDef>>;
|
|
71
|
-
sizes?: Record<string, Record<string, ComponentTokenDef>>;
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
declare const buttonTokenSchema: ComponentTokenSchema;
|
|
76
|
-
|
|
77
|
-
export { type ComponentTokenDef, type ComponentTokenSchema, buttonTokenSchema };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode, MutableRefObject, ReactElement } from 'react';
|
|
3
|
-
|
|
4
|
-
type BaseProps = {
|
|
5
|
-
className?: string;
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
tag?: string;
|
|
8
|
-
list: unknown[] | null;
|
|
9
|
-
scrollTarget?: HTMLElement | Document | MutableRefObject<HTMLElement | Document> | null;
|
|
10
|
-
rootMargin?: number;
|
|
11
|
-
loading?: boolean;
|
|
12
|
-
loadingElement?: ReactElement;
|
|
13
|
-
handleLoadMore: () => void;
|
|
14
|
-
};
|
|
15
|
-
type TotalCountProps = BaseProps & {
|
|
16
|
-
totalCount: number;
|
|
17
|
-
hasMore?: never;
|
|
18
|
-
};
|
|
19
|
-
type HasMoreProps = BaseProps & {
|
|
20
|
-
hasMore: boolean;
|
|
21
|
-
totalCount?: never;
|
|
22
|
-
};
|
|
23
|
-
type InfiniteScrollProps = TotalCountProps | HasMoreProps;
|
|
24
|
-
declare const InfiniteScroll: ({ className, tag, list, scrollTarget, rootMargin, loading, loadingElement, children, handleLoadMore, ...props }: InfiniteScrollProps) => react_jsx_runtime.JSX.Element;
|
|
25
|
-
|
|
26
|
-
export { InfiniteScroll, type InfiniteScrollProps };
|
package/dist/marquee.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface MarqueeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
direction?: 'left' | 'right' | 'up' | 'down';
|
|
5
|
-
speed?: number;
|
|
6
|
-
pauseOnHover?: boolean;
|
|
7
|
-
gap?: number;
|
|
8
|
-
children: React.ReactNode;
|
|
9
|
-
}
|
|
10
|
-
declare const Marquee: React.ForwardRefExoticComponent<MarqueeProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
-
|
|
12
|
-
export { Marquee, type MarqueeProps };
|
package/dist/modal/index.d.mts
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { d as DefaultModalOption, b as ModalTemplatePropsType, M as ModalLayout, c as ModalType, D as DefaultModalPropsType, e as ModalPropsOf, O as OpenModal } from '../useModal-BsGIcP8t.mjs';
|
|
3
|
-
export { A as AnimationOptions, a as ModalPropsType, u as useModal } from '../useModal-BsGIcP8t.mjs';
|
|
4
|
-
import { BreakPoints } from '../hooks/useCheckDevice.mjs';
|
|
5
|
-
import React__default, { ReactElement, ComponentType } from 'react';
|
|
6
|
-
|
|
7
|
-
type Props = DefaultModalOption & {
|
|
8
|
-
className?: string;
|
|
9
|
-
breakPoints?: BreakPoints;
|
|
10
|
-
};
|
|
11
|
-
declare const ModalContainer: ({ className, breakPoints, ...defaultOption }: Props) => react_jsx_runtime.JSX.Element;
|
|
12
|
-
|
|
13
|
-
interface PropsType$1 {
|
|
14
|
-
id: string;
|
|
15
|
-
className?: string;
|
|
16
|
-
}
|
|
17
|
-
declare const ModalPortalTarget: ({ id, className }: PropsType$1) => react_jsx_runtime.JSX.Element;
|
|
18
|
-
|
|
19
|
-
interface PropsType extends ModalTemplatePropsType {
|
|
20
|
-
layout?: ModalLayout;
|
|
21
|
-
hideHeader?: boolean;
|
|
22
|
-
hideFooter?: boolean;
|
|
23
|
-
footer?: ReactElement | string;
|
|
24
|
-
innerClassName?: string;
|
|
25
|
-
bodyClassName?: string;
|
|
26
|
-
footerClassName?: string;
|
|
27
|
-
dimClassName?: string;
|
|
28
|
-
headerClassName?: string;
|
|
29
|
-
enableDrag?: boolean;
|
|
30
|
-
dragPersistKey?: string;
|
|
31
|
-
}
|
|
32
|
-
declare const ModalTemplate: React__default.ForwardRefExoticComponent<PropsType & React__default.RefAttributes<HTMLDivElement>>;
|
|
33
|
-
|
|
34
|
-
declare class Modal {
|
|
35
|
-
private _modalList;
|
|
36
|
-
private defaultOption;
|
|
37
|
-
observeFunction: ((modalList: ModalType[]) => void) | null;
|
|
38
|
-
private enableKeyDownEvent;
|
|
39
|
-
set modalList(value: ModalType[]);
|
|
40
|
-
get modalList(): ModalType[];
|
|
41
|
-
handleKeyPressEvent: (e: KeyboardEvent) => void;
|
|
42
|
-
checkModal(params: {
|
|
43
|
-
componentName: string;
|
|
44
|
-
onlyLastCheck?: boolean;
|
|
45
|
-
} | {
|
|
46
|
-
modalId: string;
|
|
47
|
-
onlyLastCheck?: boolean;
|
|
48
|
-
}): boolean;
|
|
49
|
-
deleteModal(id: string): void;
|
|
50
|
-
closeModal(id: string, isAnimation?: boolean): void;
|
|
51
|
-
resolveModal<T extends ModalType>({ modal, result, useClose, }: {
|
|
52
|
-
modal: T;
|
|
53
|
-
result: unknown;
|
|
54
|
-
useClose?: boolean;
|
|
55
|
-
}): void;
|
|
56
|
-
resetModal(): void;
|
|
57
|
-
makeProps<P extends DefaultModalPropsType>(props: P): P & {
|
|
58
|
-
animation: {
|
|
59
|
-
name?: string;
|
|
60
|
-
mobile?: string;
|
|
61
|
-
delay?: number;
|
|
62
|
-
duration?: number;
|
|
63
|
-
timingFunc?: string;
|
|
64
|
-
leaveTimingFunc?: string;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
private handleToggle;
|
|
68
|
-
private handleToggleOnlyOne;
|
|
69
|
-
openModal<T extends ComponentType<Record<string, unknown>>>({ component, props, }: {
|
|
70
|
-
component: T;
|
|
71
|
-
props?: ModalPropsOf<T> & DefaultModalPropsType;
|
|
72
|
-
}): Promise<unknown>;
|
|
73
|
-
getDefaultOption(): DefaultModalOption;
|
|
74
|
-
observe({ options, observeFunction, }: {
|
|
75
|
-
options?: DefaultModalOption;
|
|
76
|
-
observeFunction: (modalList: ModalType[]) => void;
|
|
77
|
-
}): void;
|
|
78
|
-
unobserve(): void;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
declare const openModal: OpenModal;
|
|
82
|
-
declare const closeModal: Modal['closeModal'];
|
|
83
|
-
declare const checkModal: Modal['checkModal'];
|
|
84
|
-
declare const resetModal: () => void;
|
|
85
|
-
declare const getModalDefaultOption: Modal['getDefaultOption'];
|
|
86
|
-
|
|
87
|
-
export { DefaultModalPropsType, ModalContainer, ModalLayout, ModalPortalTarget, ModalTemplate, type PropsType as ModalTemplateProps, ModalTemplatePropsType, ModalType, OpenModal, checkModal, closeModal, getModalDefaultOption, openModal as modal, openModal, resetModal };
|
package/dist/number-input.d.ts
DELETED
|
@@ -1,38 +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 numberInputVariants: (props?: ({
|
|
6
|
-
size?: "xl" | "lg" | "md" | "sm" | null | undefined;
|
|
7
|
-
state?: "error" | "default" | null | undefined;
|
|
8
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
-
interface NumberInputRef {
|
|
10
|
-
input: HTMLInputElement | null;
|
|
11
|
-
increment: () => void;
|
|
12
|
-
decrement: () => void;
|
|
13
|
-
startIncrement: (e: React.PointerEvent) => void;
|
|
14
|
-
startDecrement: (e: React.PointerEvent) => void;
|
|
15
|
-
stop: () => void;
|
|
16
|
-
}
|
|
17
|
-
interface NumberInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'onChange' | 'value'>, VariantProps<typeof numberInputVariants> {
|
|
18
|
-
value?: number | string;
|
|
19
|
-
error?: boolean;
|
|
20
|
-
min?: number;
|
|
21
|
-
max?: number;
|
|
22
|
-
step?: number;
|
|
23
|
-
digit?: number;
|
|
24
|
-
hideButtons?: boolean;
|
|
25
|
-
onValueChange?: (value: number | undefined) => void;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* 외부 버튼에 NumberInput의 증감 이벤트를 바인딩하는 유틸 함수.
|
|
29
|
-
* 이벤트 핸들러 내부에서 ref.current를 참조하므로 mount 이후 정상 동작.
|
|
30
|
-
*/
|
|
31
|
-
declare function numberInputBind(ref: React.RefObject<NumberInputRef | null>, direction: 'increment' | 'decrement'): {
|
|
32
|
-
onPointerDown: (e: React.PointerEvent) => void;
|
|
33
|
-
onPointerUp: () => void | undefined;
|
|
34
|
-
onPointerLeave: () => void | undefined;
|
|
35
|
-
};
|
|
36
|
-
declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<NumberInputRef>>;
|
|
37
|
-
|
|
38
|
-
export { NumberInput, type NumberInputProps, type NumberInputRef, numberInputBind, numberInputVariants };
|