@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexus-cross/design-system",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "NEXUS Design System UI Components",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -27,167 +27,227 @@
|
|
|
27
27
|
"require": "./dist/modal/index.js"
|
|
28
28
|
},
|
|
29
29
|
"./button": {
|
|
30
|
-
"types": "./dist/
|
|
30
|
+
"types": "./dist/components/Button.d.ts",
|
|
31
31
|
"import": "./dist/button.mjs",
|
|
32
32
|
"require": "./dist/button.js"
|
|
33
33
|
},
|
|
34
34
|
"./chip": {
|
|
35
|
-
"types": "./dist/
|
|
35
|
+
"types": "./dist/components/Chip.d.ts",
|
|
36
36
|
"import": "./dist/chip.mjs",
|
|
37
37
|
"require": "./dist/chip.js"
|
|
38
38
|
},
|
|
39
|
+
"./badge": {
|
|
40
|
+
"types": "./dist/components/Badge.d.ts",
|
|
41
|
+
"import": "./dist/badge.mjs",
|
|
42
|
+
"require": "./dist/badge.js"
|
|
43
|
+
},
|
|
44
|
+
"./progress": {
|
|
45
|
+
"types": "./dist/components/Progress.d.ts",
|
|
46
|
+
"import": "./dist/progress.mjs",
|
|
47
|
+
"require": "./dist/progress.js"
|
|
48
|
+
},
|
|
49
|
+
"./alert": {
|
|
50
|
+
"types": "./dist/components/Alert.d.ts",
|
|
51
|
+
"import": "./dist/alert.mjs",
|
|
52
|
+
"require": "./dist/alert.js"
|
|
53
|
+
},
|
|
39
54
|
"./checkbox": {
|
|
40
|
-
"types": "./dist/
|
|
55
|
+
"types": "./dist/components/CheckBox.d.ts",
|
|
41
56
|
"import": "./dist/checkbox.mjs",
|
|
42
57
|
"require": "./dist/checkbox.js"
|
|
43
58
|
},
|
|
44
59
|
"./switch": {
|
|
45
|
-
"types": "./dist/
|
|
60
|
+
"types": "./dist/components/Switch.d.ts",
|
|
46
61
|
"import": "./dist/switch.mjs",
|
|
47
62
|
"require": "./dist/switch.js"
|
|
48
63
|
},
|
|
49
64
|
"./text-input": {
|
|
50
|
-
"types": "./dist/
|
|
65
|
+
"types": "./dist/components/TextInput.d.ts",
|
|
51
66
|
"import": "./dist/text-input.mjs",
|
|
52
67
|
"require": "./dist/text-input.js"
|
|
53
68
|
},
|
|
54
69
|
"./text-area": {
|
|
55
|
-
"types": "./dist/
|
|
70
|
+
"types": "./dist/components/TextArea.d.ts",
|
|
56
71
|
"import": "./dist/text-area.mjs",
|
|
57
72
|
"require": "./dist/text-area.js"
|
|
58
73
|
},
|
|
59
74
|
"./number-input": {
|
|
60
|
-
"types": "./dist/
|
|
75
|
+
"types": "./dist/components/NumberInput.d.ts",
|
|
61
76
|
"import": "./dist/number-input.mjs",
|
|
62
77
|
"require": "./dist/number-input.js"
|
|
63
78
|
},
|
|
64
79
|
"./price-input": {
|
|
65
|
-
"types": "./dist/
|
|
80
|
+
"types": "./dist/components/PriceInput.d.ts",
|
|
66
81
|
"import": "./dist/price-input.mjs",
|
|
67
82
|
"require": "./dist/price-input.js"
|
|
68
83
|
},
|
|
69
84
|
"./avatar": {
|
|
70
|
-
"types": "./dist/
|
|
85
|
+
"types": "./dist/components/Avatar.d.ts",
|
|
71
86
|
"import": "./dist/avatar.mjs",
|
|
72
87
|
"require": "./dist/avatar.js"
|
|
73
88
|
},
|
|
74
89
|
"./select": {
|
|
75
|
-
"types": "./dist/
|
|
90
|
+
"types": "./dist/components/Select.d.ts",
|
|
76
91
|
"import": "./dist/select.mjs",
|
|
77
92
|
"require": "./dist/select.js"
|
|
78
93
|
},
|
|
79
94
|
"./drawer": {
|
|
80
|
-
"types": "./dist/
|
|
95
|
+
"types": "./dist/components/Drawer.d.ts",
|
|
81
96
|
"import": "./dist/drawer.mjs",
|
|
82
97
|
"require": "./dist/drawer.js"
|
|
83
98
|
},
|
|
84
99
|
"./tooltip": {
|
|
85
|
-
"types": "./dist/
|
|
100
|
+
"types": "./dist/components/Tooltip.d.ts",
|
|
86
101
|
"import": "./dist/tooltip.mjs",
|
|
87
102
|
"require": "./dist/tooltip.js"
|
|
88
103
|
},
|
|
89
104
|
"./divider": {
|
|
90
|
-
"types": "./dist/
|
|
105
|
+
"types": "./dist/components/Divider.d.ts",
|
|
91
106
|
"import": "./dist/divider.mjs",
|
|
92
107
|
"require": "./dist/divider.js"
|
|
93
108
|
},
|
|
94
109
|
"./radio-group": {
|
|
95
|
-
"types": "./dist/
|
|
110
|
+
"types": "./dist/components/RadioGroup.d.ts",
|
|
96
111
|
"import": "./dist/radio-group.mjs",
|
|
97
112
|
"require": "./dist/radio-group.js"
|
|
98
113
|
},
|
|
99
114
|
"./pagination": {
|
|
100
|
-
"types": "./dist/
|
|
115
|
+
"types": "./dist/components/Pagination.d.ts",
|
|
101
116
|
"import": "./dist/pagination.mjs",
|
|
102
117
|
"require": "./dist/pagination.js"
|
|
103
118
|
},
|
|
104
119
|
"./tab": {
|
|
105
|
-
"types": "./dist/
|
|
120
|
+
"types": "./dist/components/Tab.d.ts",
|
|
106
121
|
"import": "./dist/tab.mjs",
|
|
107
122
|
"require": "./dist/tab.js"
|
|
108
123
|
},
|
|
109
124
|
"./accordion": {
|
|
110
|
-
"types": "./dist/
|
|
125
|
+
"types": "./dist/components/Accordion.d.ts",
|
|
111
126
|
"import": "./dist/accordion.mjs",
|
|
112
127
|
"require": "./dist/accordion.js"
|
|
113
128
|
},
|
|
114
129
|
"./popover": {
|
|
115
|
-
"types": "./dist/
|
|
130
|
+
"types": "./dist/components/Popover.d.ts",
|
|
116
131
|
"import": "./dist/popover.mjs",
|
|
117
132
|
"require": "./dist/popover.js"
|
|
118
133
|
},
|
|
119
134
|
"./carousel": {
|
|
120
|
-
"types": "./dist/
|
|
135
|
+
"types": "./dist/components/Carousel.d.ts",
|
|
121
136
|
"import": "./dist/carousel.mjs",
|
|
122
137
|
"require": "./dist/carousel.js"
|
|
123
138
|
},
|
|
124
139
|
"./virtual-scroll": {
|
|
125
|
-
"types": "./dist/
|
|
140
|
+
"types": "./dist/components/VirtualScroll.d.ts",
|
|
126
141
|
"import": "./dist/virtual-scroll.mjs",
|
|
127
142
|
"require": "./dist/virtual-scroll.js"
|
|
128
143
|
},
|
|
129
144
|
"./infinite-scroll": {
|
|
130
|
-
"types": "./dist/
|
|
145
|
+
"types": "./dist/components/InfiniteScroll.d.ts",
|
|
131
146
|
"import": "./dist/infinite-scroll.mjs",
|
|
132
147
|
"require": "./dist/infinite-scroll.js"
|
|
133
148
|
},
|
|
134
149
|
"./marquee": {
|
|
135
|
-
"types": "./dist/
|
|
150
|
+
"types": "./dist/components/Marquee.d.ts",
|
|
136
151
|
"import": "./dist/marquee.mjs",
|
|
137
152
|
"require": "./dist/marquee.js"
|
|
138
153
|
},
|
|
139
154
|
"./ellipsis": {
|
|
140
|
-
"types": "./dist/
|
|
155
|
+
"types": "./dist/components/Ellipsis.d.ts",
|
|
141
156
|
"import": "./dist/ellipsis.mjs",
|
|
142
157
|
"require": "./dist/ellipsis.js"
|
|
143
158
|
},
|
|
144
159
|
"./spinner": {
|
|
145
|
-
"types": "./dist/
|
|
160
|
+
"types": "./dist/components/Spinner.d.ts",
|
|
146
161
|
"import": "./dist/spinner.mjs",
|
|
147
162
|
"require": "./dist/spinner.js"
|
|
148
163
|
},
|
|
149
164
|
"./skeleton": {
|
|
150
|
-
"types": "./dist/
|
|
165
|
+
"types": "./dist/components/Skeleton.d.ts",
|
|
151
166
|
"import": "./dist/skeleton.mjs",
|
|
152
167
|
"require": "./dist/skeleton.js"
|
|
153
168
|
},
|
|
154
169
|
"./countdown": {
|
|
155
|
-
"types": "./dist/
|
|
170
|
+
"types": "./dist/components/Countdown.d.ts",
|
|
156
171
|
"import": "./dist/countdown.mjs",
|
|
157
172
|
"require": "./dist/countdown.js"
|
|
158
173
|
},
|
|
159
174
|
"./counter": {
|
|
160
|
-
"types": "./dist/
|
|
175
|
+
"types": "./dist/components/Counter.d.ts",
|
|
161
176
|
"import": "./dist/counter.mjs",
|
|
162
177
|
"require": "./dist/counter.js"
|
|
163
178
|
},
|
|
164
179
|
"./data-list": {
|
|
165
|
-
"types": "./dist/
|
|
180
|
+
"types": "./dist/components/DataList.d.ts",
|
|
166
181
|
"import": "./dist/data-list.mjs",
|
|
167
182
|
"require": "./dist/data-list.js"
|
|
168
183
|
},
|
|
184
|
+
"./empty-state": {
|
|
185
|
+
"types": "./dist/components/EmptyState.d.ts",
|
|
186
|
+
"import": "./dist/empty-state.mjs",
|
|
187
|
+
"require": "./dist/empty-state.js"
|
|
188
|
+
},
|
|
189
|
+
"./breadcrumb": {
|
|
190
|
+
"types": "./dist/components/Breadcrumb.d.ts",
|
|
191
|
+
"import": "./dist/breadcrumb.mjs",
|
|
192
|
+
"require": "./dist/breadcrumb.js"
|
|
193
|
+
},
|
|
194
|
+
"./stepper": {
|
|
195
|
+
"types": "./dist/components/Stepper.d.ts",
|
|
196
|
+
"import": "./dist/stepper.mjs",
|
|
197
|
+
"require": "./dist/stepper.js"
|
|
198
|
+
},
|
|
199
|
+
"./dropdown-menu": {
|
|
200
|
+
"types": "./dist/components/DropdownMenu.d.ts",
|
|
201
|
+
"import": "./dist/dropdown-menu.mjs",
|
|
202
|
+
"require": "./dist/dropdown-menu.js"
|
|
203
|
+
},
|
|
204
|
+
"./toggle-group": {
|
|
205
|
+
"types": "./dist/components/ToggleGroup.d.ts",
|
|
206
|
+
"import": "./dist/toggle-group.mjs",
|
|
207
|
+
"require": "./dist/toggle-group.js"
|
|
208
|
+
},
|
|
209
|
+
"./slider": {
|
|
210
|
+
"types": "./dist/components/Slider.d.ts",
|
|
211
|
+
"import": "./dist/slider.mjs",
|
|
212
|
+
"require": "./dist/slider.js"
|
|
213
|
+
},
|
|
214
|
+
"./tag-input": {
|
|
215
|
+
"types": "./dist/components/TagInput.d.ts",
|
|
216
|
+
"import": "./dist/tag-input.mjs",
|
|
217
|
+
"require": "./dist/tag-input.js"
|
|
218
|
+
},
|
|
219
|
+
"./nx-image": {
|
|
220
|
+
"types": "./dist/components/NxImage.d.ts",
|
|
221
|
+
"import": "./dist/nx-image.mjs",
|
|
222
|
+
"require": "./dist/nx-image.js"
|
|
223
|
+
},
|
|
224
|
+
"./date-picker": {
|
|
225
|
+
"types": "./dist/components/DatePicker.d.ts",
|
|
226
|
+
"import": "./dist/date-picker.mjs",
|
|
227
|
+
"require": "./dist/date-picker.js"
|
|
228
|
+
},
|
|
169
229
|
"./client-only": {
|
|
170
|
-
"types": "./dist/
|
|
230
|
+
"types": "./dist/components/ClientOnly.d.ts",
|
|
171
231
|
"import": "./dist/client-only.mjs",
|
|
172
232
|
"require": "./dist/client-only.js"
|
|
173
233
|
},
|
|
174
234
|
"./error-boundary": {
|
|
175
|
-
"types": "./dist/
|
|
235
|
+
"types": "./dist/components/ErrorBoundary.d.ts",
|
|
176
236
|
"import": "./dist/error-boundary.mjs",
|
|
177
237
|
"require": "./dist/error-boundary.js"
|
|
178
238
|
},
|
|
179
239
|
"./theme-provider": {
|
|
180
|
-
"types": "./dist/
|
|
240
|
+
"types": "./dist/components/ThemeProvider.d.ts",
|
|
181
241
|
"import": "./dist/theme-provider.mjs",
|
|
182
242
|
"require": "./dist/theme-provider.js"
|
|
183
243
|
},
|
|
184
244
|
"./toast": {
|
|
185
|
-
"types": "./dist/toast.d.ts",
|
|
245
|
+
"types": "./dist/toast/index.d.ts",
|
|
186
246
|
"import": "./dist/toast.mjs",
|
|
187
247
|
"require": "./dist/toast.js"
|
|
188
248
|
},
|
|
189
249
|
"./table": {
|
|
190
|
-
"types": "./dist/table.d.ts",
|
|
250
|
+
"types": "./dist/table/index.d.ts",
|
|
191
251
|
"import": "./dist/table.mjs",
|
|
192
252
|
"require": "./dist/table.js"
|
|
193
253
|
},
|
|
@@ -217,7 +277,7 @@
|
|
|
217
277
|
"require": "./dist/utils/cn.js"
|
|
218
278
|
},
|
|
219
279
|
"./schemas": {
|
|
220
|
-
"types": "./dist/schemas.d.ts",
|
|
280
|
+
"types": "./dist/schemas/index.d.ts",
|
|
221
281
|
"import": "./dist/schemas.mjs",
|
|
222
282
|
"require": "./dist/schemas.js"
|
|
223
283
|
}
|
|
@@ -232,7 +292,8 @@
|
|
|
232
292
|
"files": [
|
|
233
293
|
"dist",
|
|
234
294
|
"cursor-rules",
|
|
235
|
-
"scripts/setup-cursor-rules.cjs"
|
|
295
|
+
"scripts/setup-cursor-rules.cjs",
|
|
296
|
+
"DESIGN.md"
|
|
236
297
|
],
|
|
237
298
|
"bin": {
|
|
238
299
|
"nexus-ds-setup": "./scripts/setup-cursor-rules.cjs"
|
|
@@ -257,16 +318,21 @@
|
|
|
257
318
|
"dependencies": {
|
|
258
319
|
"@radix-ui/react-accordion": "^1.2.12",
|
|
259
320
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
321
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
260
322
|
"@radix-ui/react-popover": "^1.1.15",
|
|
261
323
|
"@radix-ui/react-select": "^2.2.6",
|
|
324
|
+
"@radix-ui/react-slider": "^1.3.6",
|
|
262
325
|
"@radix-ui/react-slot": "^1.2.4",
|
|
326
|
+
"@radix-ui/react-toggle-group": "^1.1.11",
|
|
263
327
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
264
328
|
"@tanstack/react-virtual": "^3.13.23",
|
|
265
329
|
"class-variance-authority": "^0.7.1",
|
|
266
330
|
"clsx": "^2.1.1",
|
|
331
|
+
"date-fns": "^4.1.0",
|
|
267
332
|
"embla-carousel-autoplay": "^8.6.0",
|
|
268
333
|
"embla-carousel-react": "^8.6.0",
|
|
269
334
|
"lodash-es": "^4.17.21",
|
|
335
|
+
"react-day-picker": "^9.14.0",
|
|
270
336
|
"sonner": "^2.0.7",
|
|
271
337
|
"vaul": "^1.1.2",
|
|
272
338
|
"zod": "^3.25.76"
|
|
@@ -282,12 +348,12 @@
|
|
|
282
348
|
"typescript": "^5.0.0",
|
|
283
349
|
"vitest": "^1.6.1",
|
|
284
350
|
"zod-to-json-schema": "^3.25.2",
|
|
285
|
-
"@nexus-cross/tokens": "1.0.
|
|
351
|
+
"@nexus-cross/tokens": "1.0.7"
|
|
286
352
|
},
|
|
287
353
|
"scripts": {
|
|
288
354
|
"postinstall": "node scripts/setup-cursor-rules.cjs",
|
|
289
355
|
"build:css": "node src/styles/scripts/css-to-ts.js",
|
|
290
|
-
"build:js": "tsup",
|
|
356
|
+
"build:js": "tsup && tsc -p tsconfig.build.json",
|
|
291
357
|
"build:schemas": "node scripts/generate-json-schemas.cjs",
|
|
292
358
|
"build:mdc": "node scripts/generate-mdc.cjs",
|
|
293
359
|
"build": "pnpm build:css && pnpm build:js && cp src/styles/.generated/built.clean.css dist/styles.css && node scripts/generate-layered-css.cjs && node scripts/inject-css-import.cjs && pnpm build:schemas && pnpm build:mdc",
|
|
@@ -82,10 +82,24 @@ function run() {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
// DESIGN.md → project root
|
|
86
|
+
const designMdSrc = path.resolve(__dirname, '..', 'DESIGN.md');
|
|
87
|
+
if (fs.existsSync(designMdSrc)) {
|
|
88
|
+
const dest = path.join(projectRoot, 'DESIGN.md');
|
|
89
|
+
const srcContent = fs.readFileSync(designMdSrc, 'utf-8');
|
|
90
|
+
const destExists = fs.existsSync(dest);
|
|
91
|
+
const destContent = destExists ? fs.readFileSync(dest, 'utf-8') : '';
|
|
92
|
+
if (!destExists || srcContent !== destContent) {
|
|
93
|
+
fs.writeFileSync(dest, srcContent, 'utf-8');
|
|
94
|
+
installed++;
|
|
95
|
+
console.log(`[@nexus-cross/design-system] ${destExists ? 'updated' : 'installed'}: DESIGN.md`);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
85
99
|
if (installed === 0) {
|
|
86
100
|
console.log('[@nexus-cross] Cursor rules are already up to date.');
|
|
87
101
|
} else {
|
|
88
|
-
console.log(`[@nexus-cross] ${installed}
|
|
102
|
+
console.log(`[@nexus-cross] ${installed} file(s) installed.`);
|
|
89
103
|
}
|
|
90
104
|
}
|
|
91
105
|
|
package/dist/accordion.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
declare const AccordionRoot: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
-
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
-
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
type AccordionItemData = {
|
|
9
|
-
id: string;
|
|
10
|
-
trigger: React.ReactNode;
|
|
11
|
-
content: React.ReactNode;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
className?: string;
|
|
14
|
-
triggerClassName?: string;
|
|
15
|
-
contentClassName?: string;
|
|
16
|
-
};
|
|
17
|
-
interface SimpleAccordionProps {
|
|
18
|
-
items: AccordionItemData[];
|
|
19
|
-
type?: 'single' | 'multiple';
|
|
20
|
-
collapsible?: boolean;
|
|
21
|
-
value?: string | string[];
|
|
22
|
-
defaultValue?: string | string[];
|
|
23
|
-
className?: string;
|
|
24
|
-
onValueChange?: (value: string | string[]) => void;
|
|
25
|
-
}
|
|
26
|
-
declare const Accordion: React.FC<SimpleAccordionProps>;
|
|
27
|
-
|
|
28
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger };
|
package/dist/avatar.d.ts
DELETED
|
@@ -1,17 +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 avatarVariants: (props?: ({
|
|
6
|
-
size?: "xl" | "lg" | "md" | "sm" | "xs" | null | undefined;
|
|
7
|
-
shape?: "circle" | "square" | null | undefined;
|
|
8
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
-
interface AvatarProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof avatarVariants> {
|
|
10
|
-
src?: string;
|
|
11
|
-
alt?: string;
|
|
12
|
-
fallback?: React.ReactNode;
|
|
13
|
-
onImageError?: () => void;
|
|
14
|
-
}
|
|
15
|
-
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
-
|
|
17
|
-
export { Avatar, type AvatarProps, avatarVariants };
|
package/dist/button.d.ts
DELETED
|
@@ -1,17 +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 buttonVariants: (props?: ({
|
|
6
|
-
semantic?: "primary" | "secondary" | "normal" | "danger" | null | undefined;
|
|
7
|
-
variant?: "contained" | "outlined" | "subtle" | "ghost" | null | undefined;
|
|
8
|
-
size?: "xl" | "lg" | "md" | "sm" | null | undefined;
|
|
9
|
-
radius?: "default" | "circle" | null | undefined;
|
|
10
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
|
-
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
12
|
-
asChild?: boolean;
|
|
13
|
-
detectDoubleClick?: boolean;
|
|
14
|
-
}
|
|
15
|
-
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
16
|
-
|
|
17
|
-
export { Button, type ButtonProps, buttonVariants };
|
package/dist/carousel.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import useEmblaCarousel, { UseEmblaCarouselType } from 'embla-carousel-react';
|
|
4
|
-
|
|
5
|
-
type CarouselApi = UseEmblaCarouselType[1];
|
|
6
|
-
interface CarouselProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
7
|
-
opts?: Parameters<typeof useEmblaCarousel>[0];
|
|
8
|
-
plugins?: Parameters<typeof useEmblaCarousel>[1];
|
|
9
|
-
onApiChange?: (api: CarouselApi) => void;
|
|
10
|
-
}
|
|
11
|
-
interface CarouselContextValue {
|
|
12
|
-
api: CarouselApi;
|
|
13
|
-
canScrollPrev: boolean;
|
|
14
|
-
canScrollNext: boolean;
|
|
15
|
-
scrollPrev: () => void;
|
|
16
|
-
scrollNext: () => void;
|
|
17
|
-
selectedIndex: number;
|
|
18
|
-
scrollSnapCount: number;
|
|
19
|
-
}
|
|
20
|
-
declare function useCarousel(): CarouselContextValue;
|
|
21
|
-
declare const Carousel: React.ForwardRefExoticComponent<CarouselProps & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
-
interface CarouselSlideProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
23
|
-
}
|
|
24
|
-
declare const CarouselSlide: React.ForwardRefExoticComponent<CarouselSlideProps & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
-
interface CarouselButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
26
|
-
}
|
|
27
|
-
declare const CarouselPrev: React.ForwardRefExoticComponent<CarouselButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
28
|
-
declare const CarouselNext: React.ForwardRefExoticComponent<CarouselButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
29
|
-
declare function CarouselDots({ className }: {
|
|
30
|
-
className?: string;
|
|
31
|
-
}): react_jsx_runtime.JSX.Element;
|
|
32
|
-
declare namespace CarouselDots {
|
|
33
|
-
var displayName: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export { Carousel, type CarouselApi, CarouselDots, CarouselNext, CarouselPrev, type CarouselProps, CarouselSlide, type CarouselSlideProps, useCarousel };
|
package/dist/checkbox.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 checkBoxVariants: (props?: ({
|
|
6
|
-
size?: "md" | "sm" | null | undefined;
|
|
7
|
-
shape?: "round" | "square" | null | undefined;
|
|
8
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
-
declare const boxVariants: (props?: ({
|
|
10
|
-
size?: "md" | "sm" | null | undefined;
|
|
11
|
-
shape?: "round" | "square" | null | undefined;
|
|
12
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
13
|
-
interface CheckBoxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'>, VariantProps<typeof checkBoxVariants> {
|
|
14
|
-
checked?: boolean;
|
|
15
|
-
indeterminate?: boolean;
|
|
16
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
17
|
-
label?: React.ReactNode;
|
|
18
|
-
}
|
|
19
|
-
declare const CheckBox: React.ForwardRefExoticComponent<CheckBoxProps & React.RefAttributes<HTMLInputElement>>;
|
|
20
|
-
|
|
21
|
-
export { CheckBox, type CheckBoxProps, boxVariants, checkBoxVariants };
|
package/dist/chip.d.ts
DELETED
|
@@ -1,16 +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 chipVariants: (props?: ({
|
|
6
|
-
variant?: "default" | "accent" | "filled" | "outline" | null | undefined;
|
|
7
|
-
size?: "lg" | "md" | "sm" | null | undefined;
|
|
8
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
-
interface ChipProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof chipVariants> {
|
|
10
|
-
asChild?: boolean;
|
|
11
|
-
onClose?: (e: React.MouseEvent) => void;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
}
|
|
14
|
-
declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLElement>>;
|
|
15
|
-
|
|
16
|
-
export { Chip, type ChipProps, chipVariants };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { cn } from './chunk-MCKOWMLS.mjs';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { cva } from 'class-variance-authority';
|
|
4
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
var textAreaVariants = cva("nexus-textarea", {
|
|
7
|
-
variants: {
|
|
8
|
-
state: {
|
|
9
|
-
default: "nexus-textarea--default",
|
|
10
|
-
error: "nexus-textarea--error"
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
defaultVariants: { state: "default" }
|
|
14
|
-
});
|
|
15
|
-
var TextArea = React.forwardRef(
|
|
16
|
-
({ className, error, showCount, maxLength, onValueChange, onChange, ...props }, ref) => {
|
|
17
|
-
const state = error ? "error" : "default";
|
|
18
|
-
const [count, setCount] = React.useState(0);
|
|
19
|
-
const handleChange = React.useCallback(
|
|
20
|
-
(e) => {
|
|
21
|
-
setCount(e.target.value.length);
|
|
22
|
-
onValueChange?.(e.target.value);
|
|
23
|
-
onChange?.(e);
|
|
24
|
-
},
|
|
25
|
-
[onValueChange, onChange]
|
|
26
|
-
);
|
|
27
|
-
return /* @__PURE__ */ jsxs("div", { className: "nexus-textarea-wrap", children: [
|
|
28
|
-
/* @__PURE__ */ jsx(
|
|
29
|
-
"textarea",
|
|
30
|
-
{
|
|
31
|
-
ref,
|
|
32
|
-
className: cn(textAreaVariants({ state }), className),
|
|
33
|
-
maxLength,
|
|
34
|
-
"aria-invalid": error || void 0,
|
|
35
|
-
onChange: handleChange,
|
|
36
|
-
...props
|
|
37
|
-
}
|
|
38
|
-
),
|
|
39
|
-
showCount && maxLength && /* @__PURE__ */ jsxs(
|
|
40
|
-
"p",
|
|
41
|
-
{
|
|
42
|
-
className: "nexus-textarea-count",
|
|
43
|
-
"aria-live": "polite",
|
|
44
|
-
"aria-atomic": "true",
|
|
45
|
-
children: [
|
|
46
|
-
/* @__PURE__ */ jsx("span", { className: "nexus-textarea-count__current", children: count.toLocaleString() }),
|
|
47
|
-
"/",
|
|
48
|
-
maxLength.toLocaleString()
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
)
|
|
52
|
-
] });
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
TextArea.displayName = "TextArea";
|
|
56
|
-
|
|
57
|
-
export { TextArea, textAreaVariants };
|