@godxjp/ui 13.9.3 → 13.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/app-provider.d.ts +30 -0
- package/dist/app/app-provider.js +244 -0
- package/dist/app/date-format-labels.d.ts +8 -0
- package/dist/app/date-format-labels.js +16 -0
- package/dist/app/date-formats.d.ts +10 -0
- package/dist/app/date-formats.js +27 -0
- package/dist/app/index.d.ts +13 -136
- package/dist/app/index.js +65 -38
- package/dist/app/locales.d.ts +12 -0
- package/dist/app/locales.js +26 -0
- package/dist/app/request-headers.d.ts +7 -0
- package/dist/app/request-headers.js +27 -0
- package/dist/app/storage.d.ts +11 -0
- package/dist/app/storage.js +32 -0
- package/dist/app/time-format-labels.d.ts +8 -0
- package/dist/app/time-format-labels.js +14 -0
- package/dist/app/time-formats.d.ts +7 -0
- package/dist/app/time-formats.js +14 -0
- package/dist/app/timezones.d.ts +31 -0
- package/dist/app/timezones.js +161 -0
- package/dist/app/types.d.ts +21 -0
- package/dist/app/types.js +30 -0
- package/dist/app/use-formatting.d.ts +19 -0
- package/dist/app/use-formatting.js +37 -0
- package/dist/components/admin/index.d.ts +26 -66
- package/dist/components/admin/index.js +96 -49
- package/dist/components/data-display/accordion.d.ts +1 -0
- package/dist/components/data-display/accordion.js +7 -0
- package/dist/components/data-display/avatar.d.ts +1 -0
- package/dist/components/data-display/avatar.js +6 -0
- package/dist/components/data-display/badge.d.ts +9 -13
- package/dist/components/data-display/badge.js +111 -5
- package/dist/components/data-display/card.d.ts +22 -26
- package/dist/components/data-display/card.js +153 -2
- package/dist/components/data-display/carousel.d.ts +11 -13
- package/dist/components/data-display/carousel.js +220 -4
- package/dist/components/data-display/collapsible.d.ts +4 -0
- package/dist/components/data-display/collapsible.js +9 -0
- package/dist/components/data-display/data-table.d.ts +53 -0
- package/dist/{chunk-NVTZ2EDW.js → components/data-display/data-table.js} +28 -36
- package/dist/components/data-display/descriptions.d.ts +19 -0
- package/dist/components/data-display/descriptions.js +25 -0
- package/dist/components/data-display/empty-state.d.ts +3 -0
- package/dist/{chunk-YD7V2HGZ.js → components/data-display/empty-state.js} +5 -5
- package/dist/components/data-display/hover-card.d.ts +1 -0
- package/dist/components/data-display/hover-card.js +6 -0
- package/dist/components/data-display/index.d.ts +24 -79
- package/dist/components/data-display/index.js +95 -176
- package/dist/components/data-display/popover.d.ts +9 -13
- package/dist/components/data-display/popover.js +61 -2
- package/dist/components/data-display/progress.d.ts +7 -0
- package/dist/components/data-display/progress.js +27 -0
- package/dist/components/data-display/scroll-area.d.ts +4 -7
- package/dist/components/data-display/scroll-area.js +38 -2
- package/dist/components/data-display/table.d.ts +7 -10
- package/dist/components/data-display/table.js +36 -3
- package/dist/components/data-display/timeline.d.ts +12 -0
- package/dist/components/data-display/timeline.js +35 -0
- package/dist/components/data-display/tree-list.d.ts +13 -0
- package/dist/components/data-display/tree-list.js +30 -0
- package/dist/components/data-entry/calendar.d.ts +3 -19
- package/dist/components/data-entry/calendar.js +96 -6
- package/dist/components/data-entry/cascader.d.ts +4 -35
- package/dist/components/data-entry/cascader.js +327 -10
- package/dist/components/data-entry/checkbox-group.d.ts +3 -0
- package/dist/{chunk-BE6GJGKJ.js → components/data-entry/checkbox-group.js} +9 -26
- package/dist/components/data-entry/checkbox.d.ts +7 -16
- package/dist/components/data-entry/checkbox.js +26 -4
- package/dist/components/data-entry/choice-option.d.ts +10 -0
- package/dist/components/data-entry/choice-option.js +7 -0
- package/dist/components/data-entry/color-picker.d.ts +3 -19
- package/dist/components/data-entry/color-picker.js +75 -6
- package/dist/components/data-entry/command.d.ts +7 -10
- package/dist/components/data-entry/command.js +51 -3
- package/dist/components/data-entry/date-picker.d.ts +3 -19
- package/dist/components/data-entry/date-picker.js +153 -9
- package/dist/components/data-entry/date-range-picker.d.ts +3 -19
- package/dist/components/data-entry/date-range-picker.js +191 -8
- package/dist/components/data-entry/field.d.ts +4 -0
- package/dist/{chunk-44YRPSZ7.js → components/data-entry/field.js} +6 -11
- package/dist/components/data-entry/form-field.d.ts +3 -0
- package/dist/{chunk-LBYSX3VM.js → components/data-entry/form-field.js} +14 -47
- package/dist/components/data-entry/form.d.ts +29 -0
- package/dist/components/data-entry/form.js +41 -0
- package/dist/components/data-entry/index.d.ts +61 -164
- package/dist/components/data-entry/index.js +117 -37
- package/dist/components/data-entry/input-otp.d.ts +1 -0
- package/dist/components/data-entry/input-otp.js +7 -0
- package/dist/components/data-entry/input.d.ts +3 -6
- package/dist/components/data-entry/input.js +98 -4
- package/dist/components/data-entry/label.d.ts +4 -8
- package/dist/components/data-entry/label.js +25 -2
- package/dist/components/data-entry/month-picker.d.ts +9 -0
- package/dist/components/data-entry/month-picker.js +188 -0
- package/dist/components/data-entry/month-range-picker.d.ts +11 -0
- package/dist/components/data-entry/month-range-picker.js +245 -0
- package/dist/components/data-entry/number-input.d.ts +12 -0
- package/dist/components/data-entry/number-input.js +219 -0
- package/dist/components/data-entry/password-input.d.ts +2 -0
- package/dist/components/data-entry/password-input.js +4 -0
- package/dist/components/data-entry/password-strength.d.ts +20 -0
- package/dist/{chunk-VSUYVT2Q.js → components/data-entry/password-strength.js} +8 -62
- package/dist/components/data-entry/radio.d.ts +7 -20
- package/dist/components/data-entry/radio.js +93 -4
- package/dist/components/data-entry/rating.d.ts +2 -0
- package/dist/components/data-entry/rating.js +4 -0
- package/dist/components/data-entry/search-input.d.ts +18 -0
- package/dist/{chunk-LVLPNKJP.js → components/data-entry/search-input.js} +11 -11
- package/dist/components/data-entry/search-select.d.ts +11 -0
- package/dist/{chunk-6S2ZU26B.js → components/data-entry/search-select.js} +14 -239
- package/dist/components/data-entry/select.d.ts +14 -30
- package/dist/components/data-entry/select.js +243 -9
- package/dist/components/data-entry/slider.d.ts +4 -18
- package/dist/components/data-entry/slider.js +52 -2
- package/dist/components/data-entry/switch.d.ts +4 -18
- package/dist/components/data-entry/switch.js +40 -2
- package/dist/components/data-entry/tag-input.d.ts +2 -0
- package/dist/components/data-entry/tag-input.js +4 -0
- package/dist/components/data-entry/textarea.d.ts +3 -6
- package/dist/components/data-entry/textarea.js +86 -5
- package/dist/components/data-entry/time-input.d.ts +3 -6
- package/dist/components/data-entry/time-input.js +137 -3
- package/dist/components/data-entry/time-picker.d.ts +3 -19
- package/dist/components/data-entry/time-picker.js +329 -7
- package/dist/components/data-entry/toggle-group.d.ts +1 -0
- package/dist/components/data-entry/toggle-group.js +5 -0
- package/dist/components/data-entry/toggle.d.ts +2 -0
- package/dist/components/data-entry/toggle.js +4 -0
- package/dist/components/data-entry/transfer.d.ts +3 -20
- package/dist/components/data-entry/transfer.js +193 -13
- package/dist/components/data-entry/tree-select-strategy.d.ts +5 -0
- package/dist/components/data-entry/tree-select-strategy.js +8 -0
- package/dist/components/data-entry/tree-select.d.ts +5 -25
- package/dist/components/data-entry/tree-select.js +299 -13
- package/dist/components/data-entry/tree-utils.d.ts +48 -0
- package/dist/{chunk-SMLKNECP.js → components/data-entry/tree-utils.js} +33 -5
- package/dist/components/data-entry/upload-crop-dialog.d.ts +9 -0
- package/dist/components/data-entry/upload-crop-dialog.js +102 -0
- package/dist/components/data-entry/upload-types.d.ts +39 -0
- package/dist/components/data-entry/upload-types.js +41 -0
- package/dist/components/data-entry/upload.d.ts +6 -45
- package/dist/components/data-entry/upload.js +417 -12
- package/dist/components/data-entry/use-upload-draft.d.ts +25 -0
- package/dist/components/data-entry/use-upload-draft.js +64 -0
- package/dist/components/data-grid/data-grid.d.ts +67 -0
- package/dist/components/data-grid/data-grid.js +402 -0
- package/dist/components/data-grid/index.d.ts +2 -71
- package/dist/components/data-grid/index.js +3 -371
- package/dist/components/feedback/alert.d.ts +37 -42
- package/dist/components/feedback/alert.js +127 -7
- package/dist/components/feedback/dialog.d.ts +21 -25
- package/dist/components/feedback/dialog.js +356 -8
- package/dist/components/feedback/index.d.ts +10 -28
- package/dist/components/feedback/index.js +105 -18
- package/dist/components/feedback/overlay-header-tone.d.ts +7 -0
- package/dist/{chunk-VU4GFGDG.js → components/feedback/overlay-header-tone.js} +4 -4
- package/dist/components/feedback/sheet.d.ts +18 -23
- package/dist/components/feedback/sheet.js +192 -3
- package/dist/components/feedback/skeleton.d.ts +17 -0
- package/dist/{chunk-2BR7KFCP.js → components/feedback/skeleton.js} +10 -6
- package/dist/components/feedback/sonner.d.ts +2 -5
- package/dist/components/feedback/sonner.js +50 -1
- package/dist/components/feedback/tooltip.d.ts +10 -0
- package/dist/{chunk-32WO3YLB.js → components/feedback/tooltip.js} +12 -9
- package/dist/components/feedback/use-toast.d.ts +3 -0
- package/dist/components/feedback/use-toast.js +5 -0
- package/dist/components/general/button.d.ts +12 -18
- package/dist/components/general/button.js +118 -4
- package/dist/components/general/index.d.ts +4 -37
- package/dist/components/general/index.js +8 -48
- package/dist/components/general/typography.d.ts +30 -0
- package/dist/components/general/typography.js +46 -0
- package/dist/components/layout/app-shell.d.ts +3 -0
- package/dist/components/layout/app-shell.js +33 -0
- package/dist/components/layout/aspect-ratio.d.ts +1 -0
- package/dist/components/layout/aspect-ratio.js +4 -0
- package/dist/components/layout/breadcrumb.d.ts +7 -0
- package/dist/components/layout/breadcrumb.js +16 -0
- package/dist/components/layout/flex.d.ts +3 -0
- package/dist/components/layout/flex.js +29 -0
- package/dist/components/layout/index.d.ts +19 -60
- package/dist/components/layout/index.js +29 -12
- package/dist/components/layout/page-container.d.ts +8 -0
- package/dist/components/layout/page-container.js +77 -0
- package/dist/components/layout/resizable.d.ts +8 -12
- package/dist/components/layout/resizable.js +44 -2
- package/dist/components/layout/responsive-grid.d.ts +7 -0
- package/dist/{chunk-C3PKEV6S.js → components/layout/responsive-grid.js} +4 -5
- package/dist/components/layout/separator.d.ts +1 -0
- package/dist/components/layout/separator.js +4 -0
- package/dist/components/layout/sidebar.d.ts +21 -0
- package/dist/components/layout/sidebar.js +254 -0
- package/dist/components/layout/split-pane.d.ts +7 -0
- package/dist/components/layout/split-pane.js +10 -0
- package/dist/components/layout/topbar.d.ts +3 -0
- package/dist/components/layout/topbar.js +133 -0
- package/dist/components/navigation/app-setting-picker.d.ts +9 -0
- package/dist/{chunk-RHPFCKB2.js → components/navigation/app-setting-picker.js} +24 -49
- package/dist/components/navigation/context-menu.d.ts +16 -20
- package/dist/components/navigation/context-menu.js +144 -2
- package/dist/components/navigation/dropdown-menu.d.ts +17 -21
- package/dist/components/navigation/dropdown-menu.js +164 -2
- package/dist/components/navigation/filter-bar.d.ts +4 -0
- package/dist/components/navigation/filter-bar.js +43 -0
- package/dist/components/navigation/index.d.ts +12 -36
- package/dist/components/navigation/index.js +140 -17
- package/dist/components/navigation/menubar.d.ts +18 -23
- package/dist/components/navigation/menubar.js +135 -2
- package/dist/components/navigation/navigation-menu.d.ts +10 -13
- package/dist/components/navigation/navigation-menu.js +90 -2
- package/dist/components/navigation/pagination-utils.d.ts +2 -0
- package/dist/components/navigation/pagination-utils.js +25 -0
- package/dist/components/navigation/pagination.d.ts +6 -12
- package/dist/components/navigation/pagination.js +222 -10
- package/dist/components/navigation/steps.d.ts +3 -12
- package/dist/components/navigation/steps.js +150 -5
- package/dist/components/navigation/tabs.d.ts +8 -12
- package/dist/components/navigation/tabs.js +109 -2
- package/dist/components/query/data-state.d.ts +7 -0
- package/dist/components/query/data-state.js +44 -0
- package/dist/components/query/index.d.ts +10 -43
- package/dist/components/query/index.js +13 -195
- package/dist/components/query/infinite-query-state.d.ts +13 -0
- package/dist/components/query/infinite-query-state.js +70 -0
- package/dist/components/query/mutation-feedback.d.ts +7 -0
- package/dist/components/query/mutation-feedback.js +23 -0
- package/dist/components/query/prefetch-link.d.ts +7 -0
- package/dist/components/query/prefetch-link.js +36 -0
- package/dist/components/query/query-refetch-button.d.ts +4 -0
- package/dist/components/query/query-refetch-button.js +40 -0
- package/dist/components/ui/accordion.d.ts +6 -0
- package/dist/components/ui/accordion.js +47 -0
- package/dist/components/ui/alert-dialog.d.ts +1 -0
- package/dist/components/ui/alert-dialog.js +1 -0
- package/dist/components/ui/alert.d.ts +1 -0
- package/dist/components/ui/alert.js +1 -0
- package/dist/components/ui/aspect-ratio.d.ts +3 -0
- package/dist/components/ui/aspect-ratio.js +18 -0
- package/dist/components/ui/avatar.d.ts +5 -0
- package/dist/{chunk-QTUJSRDH.js → components/ui/avatar.js} +12 -10
- package/dist/components/ui/badge.d.ts +1 -0
- package/dist/components/ui/badge.js +1 -0
- package/dist/components/ui/button.d.ts +1 -0
- package/dist/components/ui/button.js +1 -0
- package/dist/components/ui/calendar.d.ts +1 -0
- package/dist/components/ui/calendar.js +1 -0
- package/dist/components/ui/card.d.ts +1 -0
- package/dist/components/ui/card.js +1 -0
- package/dist/components/ui/carousel.d.ts +1 -0
- package/dist/components/ui/carousel.js +1 -0
- package/dist/components/ui/checkbox.d.ts +1 -0
- package/dist/components/ui/checkbox.js +1 -0
- package/dist/components/ui/color-picker.d.ts +1 -0
- package/dist/components/ui/color-picker.js +1 -0
- package/dist/components/ui/command.d.ts +1 -0
- package/dist/components/ui/command.js +1 -0
- package/dist/components/ui/context-menu.d.ts +1 -0
- package/dist/components/ui/context-menu.js +1 -0
- package/dist/components/ui/date-picker.d.ts +1 -0
- package/dist/components/ui/date-picker.js +1 -0
- package/dist/components/ui/date-range-picker.d.ts +1 -0
- package/dist/components/ui/date-range-picker.js +1 -0
- package/dist/components/ui/dialog.d.ts +1 -0
- package/dist/components/ui/dialog.js +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +1 -0
- package/dist/components/ui/dropdown-menu.js +1 -0
- package/dist/components/ui/hover-card.d.ts +10 -0
- package/dist/components/ui/hover-card.js +45 -0
- package/dist/components/ui/index.d.ts +43 -80
- package/dist/components/ui/index.js +50 -47
- package/dist/components/ui/input-otp.d.ts +33 -0
- package/dist/components/ui/input-otp.js +55 -0
- package/dist/components/ui/input.d.ts +1 -0
- package/dist/components/ui/input.js +1 -0
- package/dist/components/ui/label.d.ts +1 -0
- package/dist/components/ui/label.js +1 -0
- package/dist/components/ui/menubar.d.ts +1 -0
- package/dist/components/ui/menubar.js +1 -0
- package/dist/components/ui/navigation-menu.d.ts +1 -0
- package/dist/components/ui/navigation-menu.js +1 -0
- package/dist/components/ui/pagination.d.ts +1 -0
- package/dist/components/ui/pagination.js +1 -0
- package/dist/components/ui/password-input.d.ts +4 -0
- package/dist/components/ui/password-input.js +38 -0
- package/dist/components/ui/password-strength.d.ts +1 -0
- package/dist/components/ui/password-strength.js +1 -0
- package/dist/components/ui/popover.d.ts +1 -0
- package/dist/components/ui/popover.js +1 -0
- package/dist/components/ui/radio.d.ts +1 -0
- package/dist/components/ui/radio.js +1 -0
- package/dist/components/ui/rating.d.ts +13 -0
- package/dist/components/ui/rating.js +90 -0
- package/dist/components/ui/resizable.d.ts +1 -0
- package/dist/components/ui/resizable.js +1 -0
- package/dist/components/ui/scroll-area.d.ts +1 -0
- package/dist/components/ui/scroll-area.js +1 -0
- package/dist/components/ui/select.d.ts +1 -0
- package/dist/components/ui/select.js +1 -0
- package/dist/components/ui/separator.d.ts +3 -0
- package/dist/components/ui/separator.js +20 -0
- package/dist/components/ui/sheet.d.ts +1 -0
- package/dist/components/ui/sheet.js +1 -0
- package/dist/components/ui/skeleton.d.ts +1 -0
- package/dist/components/ui/skeleton.js +4 -0
- package/dist/components/ui/slider.d.ts +1 -0
- package/dist/components/ui/slider.js +1 -0
- package/dist/components/ui/sonner.d.ts +1 -0
- package/dist/components/ui/sonner.js +1 -0
- package/dist/components/ui/switch.d.ts +1 -0
- package/dist/components/ui/switch.js +1 -0
- package/dist/components/ui/table.d.ts +1 -0
- package/dist/components/ui/table.js +1 -0
- package/dist/components/ui/tabs.d.ts +1 -0
- package/dist/components/ui/tabs.js +1 -0
- package/dist/components/ui/tag-input.d.ts +13 -0
- package/dist/components/ui/tag-input.js +100 -0
- package/dist/components/ui/textarea.d.ts +1 -0
- package/dist/components/ui/textarea.js +1 -0
- package/dist/components/ui/time-input.d.ts +1 -0
- package/dist/components/ui/time-input.js +1 -0
- package/dist/components/ui/time-picker.d.ts +1 -0
- package/dist/components/ui/time-picker.js +1 -0
- package/dist/components/ui/toggle-group.d.ts +11 -0
- package/dist/components/ui/toggle-group.js +32 -0
- package/dist/components/ui/toggle.d.ts +13 -0
- package/dist/components/ui/toggle.js +36 -0
- package/dist/components/ui/upload.d.ts +1 -0
- package/dist/components/ui/upload.js +1 -0
- package/dist/form/form-field-control.d.ts +4 -0
- package/dist/form/form-field-control.js +42 -0
- package/dist/form/form-root.d.ts +4 -0
- package/dist/form/form-root.js +26 -0
- package/dist/form/index.d.ts +7 -21
- package/dist/form/index.js +8 -73
- package/dist/form/use-zod-form.d.ts +10 -0
- package/dist/form/use-zod-form.js +14 -0
- package/dist/i18n/index.d.ts +3 -326
- package/dist/i18n/index.js +17 -2
- package/dist/i18n/messages/en.json +279 -0
- package/dist/i18n/messages/ja.json +276 -0
- package/dist/i18n/messages/vi.json +276 -0
- package/dist/i18n/translate.d.ts +15 -0
- package/dist/i18n/translate.js +82 -0
- package/dist/i18n/use-translation.d.ts +19 -0
- package/dist/i18n/use-translation.js +46 -0
- package/dist/index.d.ts +11 -47
- package/dist/index.js +16 -62
- package/dist/lib/control-styles.d.ts +26 -0
- package/dist/lib/control-styles.js +34 -0
- package/dist/lib/datetime/detect.d.ts +4 -0
- package/dist/lib/datetime/detect.js +16 -0
- package/dist/lib/datetime/format-date.d.ts +22 -0
- package/dist/lib/datetime/format-date.js +73 -0
- package/dist/lib/datetime/format.d.ts +23 -0
- package/dist/lib/datetime/format.js +94 -0
- package/dist/lib/datetime/index.d.ts +5 -35
- package/dist/lib/datetime/index.js +50 -1
- package/dist/lib/datetime/parse.d.ts +12 -0
- package/dist/lib/datetime/parse.js +56 -0
- package/dist/lib/datetime/sync.d.ts +19 -0
- package/dist/lib/datetime/sync.js +45 -0
- package/dist/lib/format.d.ts +21 -0
- package/dist/{chunk-X6AJ5HEI.js → lib/format.js} +35 -5
- package/dist/lib/hooks.d.ts +4 -6
- package/dist/lib/hooks.js +70 -1
- package/dist/lib/utils.d.ts +2 -5
- package/dist/lib/utils.js +8 -1
- package/dist/lib/variants.d.ts +12 -0
- package/dist/lib/variants.js +38 -0
- package/dist/{app.prop-CVY8V4ss.d.ts → props/components/app.prop.d.ts} +8 -12
- package/dist/props/components/app.prop.js +0 -0
- package/dist/{data-display.prop-CT0nVMdp.d.ts → props/components/data-display.prop.d.ts} +7 -15
- package/dist/props/components/data-display.prop.js +0 -0
- package/dist/{data-entry.prop-BSUaseKh.d.ts → props/components/data-entry.prop.d.ts} +46 -91
- package/dist/props/components/data-entry.prop.js +0 -0
- package/dist/{feedback.prop-CHlHDYZK.d.ts → props/components/feedback.prop.d.ts} +10 -16
- package/dist/props/components/feedback.prop.js +0 -0
- package/dist/{form.prop-5cyL3bvT.d.ts → props/components/form.prop.d.ts} +10 -14
- package/dist/props/components/form.prop.js +0 -0
- package/dist/{general.prop-CzlQin6v.d.ts → props/components/general.prop.d.ts} +5 -10
- package/dist/props/components/general.prop.js +0 -0
- package/dist/props/components/index.d.ts +9 -27
- package/dist/props/components/index.js +0 -1
- package/dist/{layout.prop-fCz-Vlie.d.ts → props/components/layout.prop.d.ts} +19 -26
- package/dist/props/components/layout.prop.js +0 -0
- package/dist/{navigation.prop-FCsOVGrP.d.ts → props/components/navigation.prop.d.ts} +10 -15
- package/dist/props/components/navigation.prop.js +0 -0
- package/dist/{query.prop-CT2gFtr4.d.ts → props/components/query.prop.d.ts} +12 -15
- package/dist/props/components/query.prop.js +0 -0
- package/dist/props/index.d.ts +7 -28
- package/dist/props/index.js +12 -3
- package/dist/props/registry.d.ts +5 -7
- package/dist/props/registry.js +998 -1
- package/dist/{content.prop-DrV_zDy-.d.ts → props/vocabulary/content.prop.d.ts} +12 -16
- package/dist/props/vocabulary/content.prop.js +0 -0
- package/dist/props/vocabulary/data.prop.d.ts +38 -0
- package/dist/props/vocabulary/data.prop.js +0 -0
- package/dist/props/vocabulary/index.d.ts +7 -7
- package/dist/props/vocabulary/index.js +0 -1
- package/dist/props/vocabulary/interaction.prop.d.ts +45 -0
- package/dist/props/vocabulary/interaction.prop.js +0 -0
- package/dist/props/vocabulary/layout.prop.d.ts +14 -0
- package/dist/props/vocabulary/layout.prop.js +0 -0
- package/dist/{navigation.prop-CXDaVNaR.d.ts → props/vocabulary/navigation.prop.d.ts} +3 -7
- package/dist/props/vocabulary/navigation.prop.js +0 -0
- package/dist/{shared.prop-BvMSLFJ6.d.ts → props/vocabulary/shared.prop.d.ts} +23 -27
- package/dist/props/vocabulary/shared.prop.js +0 -0
- package/package.json +2 -2
- package/dist/aspect-ratio-CZZJd9Km.d.ts +0 -9
- package/dist/avatar-D9MdXzfF.d.ts +0 -8
- package/dist/checkbox-bBfLARyF.d.ts +0 -13
- package/dist/chunk-2H65B4JA.js +0 -1
- package/dist/chunk-2RGPEFAW.js +0 -46
- package/dist/chunk-3JORZPS7.js +0 -232
- package/dist/chunk-3VFNWVR7.js +0 -153
- package/dist/chunk-4FGE5XVC.js +0 -996
- package/dist/chunk-5732TWQF.js +0 -1206
- package/dist/chunk-57VDEN64.js +0 -881
- package/dist/chunk-5LTW2LWF.js +0 -182
- package/dist/chunk-65RWSIZF.js +0 -327
- package/dist/chunk-7PWBC4BY.js +0 -25
- package/dist/chunk-B4K4BXEF.js +0 -18
- package/dist/chunk-B6S6LTWT.js +0 -464
- package/dist/chunk-B73NA66T.js +0 -122
- package/dist/chunk-B775Y6BE.js +0 -1
- package/dist/chunk-D4JX6O2W.js +0 -114
- package/dist/chunk-DV52WNXO.js +0 -8
- package/dist/chunk-DY5C44UP.js +0 -55
- package/dist/chunk-EG3RDM6F.js +0 -288
- package/dist/chunk-ES4Q3KGL.js +0 -1
- package/dist/chunk-FQGGF7GQ.js +0 -320
- package/dist/chunk-GJXOBDER.js +0 -1
- package/dist/chunk-HIEGUYPP.js +0 -95
- package/dist/chunk-HL3G4SVG.js +0 -131
- package/dist/chunk-I6G4IO7V.js +0 -485
- package/dist/chunk-I7NQ2LIL.js +0 -40
- package/dist/chunk-IJ5ALJGA.js +0 -31
- package/dist/chunk-INIIF7F7.js +0 -47
- package/dist/chunk-ION2KFXK.js +0 -75
- package/dist/chunk-J2DEWIYY.js +0 -37
- package/dist/chunk-K24AQV4R.js +0 -98
- package/dist/chunk-LFW37FGG.js +0 -68
- package/dist/chunk-LMKUKCTN.js +0 -150
- package/dist/chunk-NU2SOVTU.js +0 -96
- package/dist/chunk-NZBAFFWP.js +0 -214
- package/dist/chunk-OO5DZH45.js +0 -587
- package/dist/chunk-Q3KUZG4P.js +0 -86
- package/dist/chunk-QROC2RMH.js +0 -150
- package/dist/chunk-QVBOICFU.js +0 -145
- package/dist/chunk-R2TXLS7S.js +0 -137
- package/dist/chunk-RZ32HY5E.js +0 -331
- package/dist/chunk-S2IJKT3D.js +0 -89
- package/dist/chunk-TBJBVEIP.js +0 -52
- package/dist/chunk-TO7URV7U.js +0 -51
- package/dist/chunk-U7N2A7A3.js +0 -9
- package/dist/chunk-V3N266PT.js +0 -106
- package/dist/chunk-W4REF4TD.js +0 -42
- package/dist/chunk-WGWI7EGL.js +0 -83
- package/dist/chunk-WY3VYUMX.js +0 -193
- package/dist/chunk-XBFUROAY.js +0 -117
- package/dist/chunk-XK3M3VRR.js +0 -32
- package/dist/chunk-YXVJFYQE.js +0 -191
- package/dist/chunk-ZT5UEUBO.js +0 -1
- package/dist/data-table-DRr70ULe.d.ts +0 -80
- package/dist/data.prop-D0UEEczj.d.ts +0 -42
- package/dist/filter-bar-DoDtwYrr.d.ts +0 -7
- package/dist/flex-1Cy46L0M.d.ts +0 -12
- package/dist/format-date-ByyZoqI5.d.ts +0 -51
- package/dist/interaction.prop-DD46aTro.d.ts +0 -47
- package/dist/layout.prop-CXvl2rVR.d.ts +0 -16
- package/dist/password-strength-DVRvXEOK.d.ts +0 -47
- package/dist/search-input-D4v1JGOA.d.ts +0 -27
- package/dist/skeleton-cj9kh5wo.d.ts +0 -20
- package/dist/types-mvzYGrma.d.ts +0 -37
|
@@ -1,33 +1,29 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* Content-slot prop types — titles, descriptions, actions.
|
|
5
3
|
* @see docs/PROPS-VOCABULARY.md#content-slots
|
|
6
4
|
*/
|
|
7
|
-
|
|
5
|
+
import type * as React from "react";
|
|
8
6
|
/** Primary heading text — page title, dialog title, empty state title. */
|
|
9
|
-
type TitleProp = React.ReactNode;
|
|
7
|
+
export type TitleProp = React.ReactNode;
|
|
10
8
|
/** Secondary text below a title — page subtitle, card description. */
|
|
11
|
-
type SubtitleProp = React.ReactNode;
|
|
9
|
+
export type SubtitleProp = React.ReactNode;
|
|
12
10
|
/** Longer explanatory copy — dialog body, empty state body. */
|
|
13
|
-
type DescriptionProp = React.ReactNode;
|
|
11
|
+
export type DescriptionProp = React.ReactNode;
|
|
14
12
|
/** Top-right action slot on pages (Ant Design `extra`). */
|
|
15
|
-
type ExtraProp = React.ReactNode;
|
|
13
|
+
export type ExtraProp = React.ReactNode;
|
|
16
14
|
/** Bottom action bar on pages — save/cancel, pagination controls. */
|
|
17
|
-
type FooterProp = React.ReactNode;
|
|
15
|
+
export type FooterProp = React.ReactNode;
|
|
18
16
|
/** Primary CTA in empty states or inline prompts. */
|
|
19
|
-
type ActionProp = React.ReactNode;
|
|
17
|
+
export type ActionProp = React.ReactNode;
|
|
20
18
|
/** Optional icon in empty states and status views (Lucide or compatible). */
|
|
21
|
-
type IconProp = React.ComponentType<{
|
|
19
|
+
export type IconProp = React.ComponentType<{
|
|
22
20
|
className?: string;
|
|
23
21
|
}>;
|
|
24
22
|
/** Confirm / submit button label in dialogs. */
|
|
25
|
-
type ConfirmLabelProp = React.ReactNode;
|
|
23
|
+
export type ConfirmLabelProp = React.ReactNode;
|
|
26
24
|
/** Cancel / dismiss button label in dialogs. */
|
|
27
|
-
type CancelLabelProp = React.ReactNode;
|
|
25
|
+
export type CancelLabelProp = React.ReactNode;
|
|
28
26
|
/** Toolbar actions slot in tables and filter rows. */
|
|
29
|
-
type ActionsProp = React.ReactNode;
|
|
27
|
+
export type ActionsProp = React.ReactNode;
|
|
30
28
|
/** "No results / no data" message in lists, selects, and empty states. */
|
|
31
|
-
type EmptyMessageProp = string;
|
|
32
|
-
|
|
33
|
-
export type { ActionProp as A, CancelLabelProp as C, DescriptionProp as D, EmptyMessageProp as E, FooterProp as F, IconProp as I, SubtitleProp as S, TitleProp as T, ActionsProp as a, ConfirmLabelProp as b, ExtraProp as c };
|
|
29
|
+
export type EmptyMessageProp = string;
|
|
File without changes
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Data & collection prop types.
|
|
3
|
+
* @see docs/PROPS-VOCABULARY.md#data-collections
|
|
4
|
+
*/
|
|
5
|
+
import type * as React from "react";
|
|
6
|
+
import type { ColumnAlignProp, SortDirectionProp } from "./interaction.prop";
|
|
7
|
+
import type { TableDensityProp } from "./layout.prop";
|
|
8
|
+
/** Generic row identifier extractor for tables with selection. */
|
|
9
|
+
export type GetRowIdProp<T> = (row: T) => string;
|
|
10
|
+
/** Row click navigation handler. */
|
|
11
|
+
export type OnRowClickProp<T> = (row: T) => void;
|
|
12
|
+
/** Column definition for DataTable. */
|
|
13
|
+
export type ColumnDefProp<T> = {
|
|
14
|
+
key: string;
|
|
15
|
+
header: React.ReactNode;
|
|
16
|
+
render?: (row: T) => React.ReactNode;
|
|
17
|
+
sortable?: boolean;
|
|
18
|
+
width?: string;
|
|
19
|
+
align?: ColumnAlignProp;
|
|
20
|
+
hiddenOnMobile?: boolean;
|
|
21
|
+
};
|
|
22
|
+
/** Set of selected row IDs. */
|
|
23
|
+
export type SelectedIdsProp = Set<string>;
|
|
24
|
+
/** Selection change callback. */
|
|
25
|
+
export type OnSelectChangeProp = (next: Set<string>) => void;
|
|
26
|
+
/** Table density change callback. */
|
|
27
|
+
export type OnTableDensityChangeProp = (density: TableDensityProp) => void;
|
|
28
|
+
/** Sort change callback — undefined clears sort. */
|
|
29
|
+
export type OnSortChangeProp = (sort: {
|
|
30
|
+
key: string;
|
|
31
|
+
direction: SortDirectionProp;
|
|
32
|
+
} | undefined) => void;
|
|
33
|
+
/** Search debounce callback. */
|
|
34
|
+
export type OnSearchChangeProp = (query: string) => void;
|
|
35
|
+
/** Filter bar reset handler. */
|
|
36
|
+
export type OnClearFiltersProp = () => void;
|
|
37
|
+
/** Whether any filter is active — shows "Clear all". */
|
|
38
|
+
export type HasActiveFiltersProp = boolean;
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
|
|
1
|
+
/** Barrel — all vocabulary prop types. */
|
|
2
|
+
export type { ClassNameProp, ChildrenProp, IdProp, OpenProp, DefaultOpenProp, OnOpenChangeProp, HandlerProp, PendingProp, RequiredProp, DisabledProp, LabelProp, HelperProp, ErrorProp, PlaceholderProp, NameProp, ValueProp, DefaultValueProp, OnValueChangeProp, OnChangeProp, OnClickProp, AsChildProp, WidthProp, } from "./shared.prop";
|
|
3
|
+
export type { TitleProp, SubtitleProp, DescriptionProp, ExtraProp, FooterProp, ActionProp, IconProp, ConfirmLabelProp, CancelLabelProp, ActionsProp, EmptyMessageProp, } from "./content.prop";
|
|
4
|
+
export type { PageDensityProp, PageContainerVariantProp, TableDensityProp, DensityProp, GapProp, } from "./layout.prop";
|
|
5
|
+
export type { ButtonVariantProp, ButtonSizeProp, BadgeVariantProp, ShapeProp, TextSizeProp, TextToneProp, FontWeightProp, HeadingLevelProp, TextAlignProp, SizeProp, FormLayoutProp, BreakpointProp, ConfirmVariantProp, ToneProp, AlertVariantProp, SortDirectionProp, ColumnAlignProp, SortStateProp, } from "./interaction.prop";
|
|
6
|
+
export type { BreadcrumbItemProp, BreadcrumbProp } from "./navigation.prop";
|
|
7
|
+
export type { GetRowIdProp, OnRowClickProp, ColumnDefProp, SelectedIdsProp, OnSelectChangeProp, OnTableDensityChangeProp, OnSortChangeProp, OnSearchChangeProp, OnClearFiltersProp, HasActiveFiltersProp, } from "./data.prop";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../chunk-ZT5UEUBO.js';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interaction & visual variant prop types.
|
|
3
|
+
* @see docs/PROPS-VOCABULARY.md#interaction-variants
|
|
4
|
+
*/
|
|
5
|
+
/** Button visual style. */
|
|
6
|
+
export type ButtonVariantProp = "default" | "destructive" | "outline" | "dashed" | "secondary" | "ghost" | "link";
|
|
7
|
+
/** Corner shape — maps to the radius tokens (default = control/component radius). Shared by
|
|
8
|
+
* Button + Badge. `pill` = fully rounded (`--radius-pill`), `sharp` = square (`--radius-sharp`). */
|
|
9
|
+
export type ShapeProp = "default" | "pill" | "sharp";
|
|
10
|
+
/** Text size — steps of the golden-ratio type scale (NEVER an arbitrary px). `sm` = base. */
|
|
11
|
+
export type TextSizeProp = "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
12
|
+
/** Text colour intent — maps to semantic foreground tokens (no raw palette). */
|
|
13
|
+
export type TextToneProp = "default" | "muted" | "primary" | "success" | "warning" | "destructive" | "info";
|
|
14
|
+
/** Font weight — the dxs-kintai canon is THREE weights only: `regular` (400 body), `medium` (500
|
|
15
|
+
* heading/label), `bold` (700 emphasis). 600/`semibold` is forbidden. */
|
|
16
|
+
export type FontWeightProp = "regular" | "medium" | "bold";
|
|
17
|
+
/** Heading level — drives both the `--heading-h*` size token and the semantic `<h1..h4>` element. */
|
|
18
|
+
export type HeadingLevelProp = 1 | 2 | 3 | 4;
|
|
19
|
+
/** Inline text alignment (logical, RTL-safe). */
|
|
20
|
+
export type TextAlignProp = "start" | "center" | "end";
|
|
21
|
+
/** Badge visual style. */
|
|
22
|
+
export type BadgeVariantProp = "default" | "secondary" | "outline" | "dashed";
|
|
23
|
+
/** Button size preset. */
|
|
24
|
+
export type SizeProp = "xs" | "sm" | "md" | "lg";
|
|
25
|
+
/** Button size preset; icon-only sizes are a documented Button subset. */
|
|
26
|
+
export type ButtonSizeProp = SizeProp | "default" | "icon" | "icon-xs" | "icon-sm" | "icon-lg";
|
|
27
|
+
/** Form layout — label position relative to its control (Ant-style). */
|
|
28
|
+
export type FormLayoutProp = "vertical" | "horizontal" | "inline";
|
|
29
|
+
/** Responsive breakpoint name (mobile-first); used by `collapseBelow` etc. */
|
|
30
|
+
export type BreakpointProp = "sm" | "md" | "lg" | "xl";
|
|
31
|
+
/** Dialog confirm button emphasis. */
|
|
32
|
+
export type ConfirmVariantProp = "default" | "destructive";
|
|
33
|
+
/** Semantic color/status intent. */
|
|
34
|
+
export type ToneProp = "default" | "success" | "warning" | "destructive" | "info" | "muted" | "neutral";
|
|
35
|
+
/** Inline Alert visual treatment. */
|
|
36
|
+
export type AlertVariantProp = "default";
|
|
37
|
+
/** Sort direction for table columns. */
|
|
38
|
+
export type SortDirectionProp = "asc" | "desc";
|
|
39
|
+
/** Table column text alignment. */
|
|
40
|
+
export type ColumnAlignProp = "left" | "center" | "right";
|
|
41
|
+
/** Active sort state on DataTable. */
|
|
42
|
+
export type SortStateProp = {
|
|
43
|
+
key: string;
|
|
44
|
+
direction: SortDirectionProp;
|
|
45
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Layout & spacing prop types.
|
|
3
|
+
* @see docs/PROPS-VOCABULARY.md#layout--density
|
|
4
|
+
*/
|
|
5
|
+
/** Page-level density — affects padding, control heights across PageContainer subtree. */
|
|
6
|
+
export type PageDensityProp = "compact" | "default" | "comfortable";
|
|
7
|
+
/** Shared page/subtree density vocabulary. */
|
|
8
|
+
export type DensityProp = "compact" | "default" | "comfortable";
|
|
9
|
+
/** Page shell layout — orthogonal to PageDensityProp. */
|
|
10
|
+
export type PageContainerVariantProp = "default" | "narrow" | "flush" | "ghost";
|
|
11
|
+
/** Shared gap between layout children; components may document subsets. */
|
|
12
|
+
export type GapProp = "xs" | "sm" | "md" | "lg" | "xl";
|
|
13
|
+
/** DataTable row density subset. */
|
|
14
|
+
export type TableDensityProp = Exclude<DensityProp, "default">;
|
|
File without changes
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import { L as LabelProp } from './shared.prop-BvMSLFJ6.js';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* Navigation & wayfinding prop types.
|
|
5
3
|
* @see docs/PROPS-VOCABULARY.md#navigation
|
|
6
4
|
*/
|
|
7
|
-
|
|
5
|
+
import type { LabelProp } from "./shared.prop";
|
|
8
6
|
/** Single breadcrumb segment. */
|
|
9
|
-
type BreadcrumbItemProp = {
|
|
7
|
+
export type BreadcrumbItemProp = {
|
|
10
8
|
label: LabelProp;
|
|
11
9
|
/** Router path — omit on current (last) segment. */
|
|
12
10
|
to?: string;
|
|
13
11
|
};
|
|
14
12
|
/** Ordered breadcrumb trail above page title. */
|
|
15
|
-
type BreadcrumbProp = BreadcrumbItemProp[];
|
|
16
|
-
|
|
17
|
-
export type { BreadcrumbItemProp as B, BreadcrumbProp as a };
|
|
13
|
+
export type BreadcrumbProp = BreadcrumbItemProp[];
|
|
File without changes
|
|
@@ -1,57 +1,53 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* Shared atomic prop types used across multiple components.
|
|
5
3
|
* @see docs/PROPS-VOCABULARY.md
|
|
6
4
|
*/
|
|
7
|
-
|
|
5
|
+
import type * as React from "react";
|
|
8
6
|
/** Extra CSS class names on a component root. */
|
|
9
|
-
type ClassNameProp = string;
|
|
7
|
+
export type ClassNameProp = string;
|
|
10
8
|
/** Child nodes slot. */
|
|
11
|
-
type ChildrenProp = React.ReactNode;
|
|
9
|
+
export type ChildrenProp = React.ReactNode;
|
|
12
10
|
/** Stable DOM / form identifier. */
|
|
13
|
-
type IdProp = string;
|
|
11
|
+
export type IdProp = string;
|
|
14
12
|
/** Controlled open state for panels (Dialog, Sheet, Popover). */
|
|
15
|
-
type OpenProp = boolean;
|
|
13
|
+
export type OpenProp = boolean;
|
|
16
14
|
/** Uncontrolled initial open state for panels (Dialog, Sheet, Popover). */
|
|
17
|
-
type DefaultOpenProp = boolean;
|
|
15
|
+
export type DefaultOpenProp = boolean;
|
|
18
16
|
/** Callback when open state changes. */
|
|
19
|
-
type OnOpenChangeProp = (open: boolean) => void;
|
|
17
|
+
export type OnOpenChangeProp = (open: boolean) => void;
|
|
20
18
|
/** Async or sync handler — no return value expected. */
|
|
21
|
-
type HandlerProp = () => void | Promise<void>;
|
|
19
|
+
export type HandlerProp = () => void | Promise<void>;
|
|
22
20
|
/** Loading / pending state — disables actions and shows spinners. */
|
|
23
|
-
type PendingProp = boolean;
|
|
21
|
+
export type PendingProp = boolean;
|
|
24
22
|
/** Field or control is required. */
|
|
25
|
-
type RequiredProp = boolean;
|
|
23
|
+
export type RequiredProp = boolean;
|
|
26
24
|
/** Disable user interaction. */
|
|
27
|
-
type DisabledProp = boolean;
|
|
25
|
+
export type DisabledProp = boolean;
|
|
28
26
|
/** Generic label text (filters, form fields, nav groups). */
|
|
29
|
-
type LabelProp = React.ReactNode;
|
|
27
|
+
export type LabelProp = React.ReactNode;
|
|
30
28
|
/** Helper / hint text below inputs. */
|
|
31
|
-
type HelperProp = React.ReactNode;
|
|
29
|
+
export type HelperProp = React.ReactNode;
|
|
32
30
|
/** Validation error message. */
|
|
33
|
-
type ErrorProp = React.ReactNode;
|
|
31
|
+
export type ErrorProp = React.ReactNode;
|
|
34
32
|
/** Placeholder text for inputs. */
|
|
35
|
-
type PlaceholderProp = string;
|
|
33
|
+
export type PlaceholderProp = string;
|
|
36
34
|
/** HTML input `name` attribute. */
|
|
37
|
-
type NameProp = string;
|
|
35
|
+
export type NameProp = string;
|
|
38
36
|
/** Abstract controlled value. */
|
|
39
|
-
type ValueProp<T = string> = T;
|
|
37
|
+
export type ValueProp<T = string> = T;
|
|
40
38
|
/** Abstract uncontrolled initial value. */
|
|
41
|
-
type DefaultValueProp<T = string> = T;
|
|
39
|
+
export type DefaultValueProp<T = string> = T;
|
|
42
40
|
/** Callback when an abstract value changes. */
|
|
43
|
-
type OnValueChangeProp<T = string> = (value: T) => void;
|
|
41
|
+
export type OnValueChangeProp<T = string> = (value: T) => void;
|
|
44
42
|
/** Change handler for text inputs. */
|
|
45
|
-
type OnChangeProp = React.ChangeEventHandler<HTMLInputElement>;
|
|
43
|
+
export type OnChangeProp = React.ChangeEventHandler<HTMLInputElement>;
|
|
46
44
|
/** Click handler for buttons and interactive elements. */
|
|
47
|
-
type OnClickProp = React.MouseEventHandler<HTMLButtonElement>;
|
|
45
|
+
export type OnClickProp = React.MouseEventHandler<HTMLButtonElement>;
|
|
48
46
|
/** Radix/shadcn `asChild` polymorphism — render as child element. */
|
|
49
|
-
type AsChildProp = boolean;
|
|
47
|
+
export type AsChildProp = boolean;
|
|
50
48
|
/**
|
|
51
49
|
* An explicit layout dimension (NOT the `SizeProp` control-height tier). A `number` is treated as
|
|
52
50
|
* px; a `string` is any CSS length (`"32rem"`, `"90vw"`, `"50%"`). Used for Sheet `width`, Form
|
|
53
51
|
* `labelWidth`/`controlWidth` — values that are freeform lengths, not the xs|sm|md|lg tier.
|
|
54
52
|
*/
|
|
55
|
-
type WidthProp = number | string;
|
|
56
|
-
|
|
57
|
-
export type { AsChildProp as A, ChildrenProp as C, DefaultOpenProp as D, ErrorProp as E, HandlerProp as H, IdProp as I, LabelProp as L, NameProp as N, OnChangeProp as O, PendingProp as P, RequiredProp as R, ValueProp as V, WidthProp as W, ClassNameProp as a, DefaultValueProp as b, DisabledProp as c, HelperProp as d, OnClickProp as e, OnOpenChangeProp as f, OnValueChangeProp as g, OpenProp as h, PlaceholderProp as i };
|
|
53
|
+
export type WidthProp = number | string;
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@godxjp/ui",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.10.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"packageManager": "pnpm@10.29.1",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
"preview:build": "vite build --config preview/vite.config.ts",
|
|
285
285
|
"docs:sync-primitives": "node preview/scripts/sync-primitive-docs.mjs && prettier --write \"docs/primitives/**/*.tsx\"",
|
|
286
286
|
"audit": "node scripts/ui-audit.mjs",
|
|
287
|
-
"build": "tsup && node scripts/copy-styles.mjs",
|
|
287
|
+
"build": "tsup && tsc -p tsconfig.build.json && node scripts/copy-styles.mjs",
|
|
288
288
|
"dev": "node scripts/dev.mjs",
|
|
289
289
|
"prepublishOnly": "pnpm run build"
|
|
290
290
|
},
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
3
|
-
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
4
|
-
|
|
5
|
-
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
|
|
7
|
-
declare const AspectRatio: React.ForwardRefExoticComponent<Omit<AspectRatioPrimitive.AspectRatioProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
|
|
9
|
-
export { AspectRatio as A, Separator as S };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
3
|
-
|
|
4
|
-
declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
5
|
-
declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
6
|
-
declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
7
|
-
|
|
8
|
-
export { Avatar as A, AvatarFallback as a, AvatarImage as b };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
3
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import { b as CheckboxGroupProp } from './data-entry.prop-BSUaseKh.js';
|
|
5
|
-
|
|
6
|
-
declare function CheckboxGroup({ value: controlledValue, defaultValue, onValueChange, options, orientation, disabled, name, className, children, }: CheckboxGroupProp): react_jsx_runtime.JSX.Element;
|
|
7
|
-
|
|
8
|
-
/** Checkbox — dùng standalone hoặc `Checkbox.Group` với `options` (Ant Design style). */
|
|
9
|
-
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>> & {
|
|
10
|
-
Group: typeof CheckboxGroup;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export { Checkbox as C, CheckboxGroup as a };
|
package/dist/chunk-2H65B4JA.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/chunk-2RGPEFAW.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { controlIconLeadingClass } from './chunk-B4K4BXEF.js';
|
|
2
|
-
import { cn } from './chunk-U7N2A7A3.js';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { Command as Command$1 } from 'cmdk';
|
|
5
|
-
import { Search } from 'lucide-react';
|
|
6
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
|
-
|
|
8
|
-
var Command = React.forwardRef(({ className, ...props }, ref) => {
|
|
9
|
-
const rootRef = React.useRef(null);
|
|
10
|
-
const setRefs = (node) => {
|
|
11
|
-
rootRef.current = node;
|
|
12
|
-
if (typeof ref === "function") ref(node);
|
|
13
|
-
else if (ref) ref.current = node;
|
|
14
|
-
};
|
|
15
|
-
React.useEffect(() => {
|
|
16
|
-
const root = rootRef.current;
|
|
17
|
-
if (!root) return;
|
|
18
|
-
const label = root.querySelector(":scope > label[cmdk-label]");
|
|
19
|
-
if (!label || root.querySelector("[cmdk-input]")) return;
|
|
20
|
-
const expectedId = label.getAttribute("for");
|
|
21
|
-
const input = root.querySelector('input:not([type="hidden"])');
|
|
22
|
-
if (input && expectedId && !input.id) input.id = expectedId;
|
|
23
|
-
else if (!input || input.id !== expectedId) label.removeAttribute("for");
|
|
24
|
-
});
|
|
25
|
-
return /* @__PURE__ */ jsx(Command$1, { ref: setRefs, className: cn("ui-command", className), ...props });
|
|
26
|
-
});
|
|
27
|
-
Command.displayName = Command$1.displayName;
|
|
28
|
-
var CommandInput = React.forwardRef(({ className, ...props }, ref) => (
|
|
29
|
-
// cmdk uses this non-standard attribute for input wrapper styling
|
|
30
|
-
// eslint-disable-next-line react/no-unknown-property -- cmdk convention
|
|
31
|
-
/* @__PURE__ */ jsxs("div", { className: "ui-command-input-wrapper", "cmdk-input-wrapper": "", children: [
|
|
32
|
-
/* @__PURE__ */ jsx(Search, { className: cn(controlIconLeadingClass, "ui-command-search-icon"), "aria-hidden": "true" }),
|
|
33
|
-
/* @__PURE__ */ jsx(Command$1.Input, { ref, className: cn("ui-command-input", className), ...props })
|
|
34
|
-
] })
|
|
35
|
-
));
|
|
36
|
-
CommandInput.displayName = Command$1.Input.displayName;
|
|
37
|
-
var CommandList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Command$1.List, { ref, className: cn("ui-command-list", className), ...props }));
|
|
38
|
-
CommandList.displayName = Command$1.List.displayName;
|
|
39
|
-
var CommandEmpty = React.forwardRef((props, ref) => /* @__PURE__ */ jsx(Command$1.Empty, { ref, className: "ui-command-empty", ...props }));
|
|
40
|
-
CommandEmpty.displayName = Command$1.Empty.displayName;
|
|
41
|
-
var CommandGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Command$1.Group, { ref, className: cn("ui-command-group", className), ...props }));
|
|
42
|
-
CommandGroup.displayName = Command$1.Group.displayName;
|
|
43
|
-
var CommandItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Command$1.Item, { ref, className: cn("ui-command-item", className), ...props }));
|
|
44
|
-
CommandItem.displayName = Command$1.Item.displayName;
|
|
45
|
-
|
|
46
|
-
export { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList };
|
package/dist/chunk-3JORZPS7.js
DELETED
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from './chunk-6S2ZU26B.js';
|
|
2
|
-
import { Button } from './chunk-XBFUROAY.js';
|
|
3
|
-
import { useTranslation } from './chunk-B6S6LTWT.js';
|
|
4
|
-
import { cn } from './chunk-U7N2A7A3.js';
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { MoreHorizontal, ChevronLeft, ChevronRight } from 'lucide-react';
|
|
7
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
8
|
-
|
|
9
|
-
// src/components/navigation/pagination-utils.ts
|
|
10
|
-
function buildPageRange(current, totalPages, siblingCount = 1) {
|
|
11
|
-
if (totalPages <= 1) return totalPages === 1 ? [1] : [];
|
|
12
|
-
const totalNumbers = siblingCount * 2 + 5;
|
|
13
|
-
if (totalPages <= totalNumbers) {
|
|
14
|
-
return Array.from({ length: totalPages }, (_, i) => i + 1);
|
|
15
|
-
}
|
|
16
|
-
const left = Math.max(current - siblingCount, 1);
|
|
17
|
-
const right = Math.min(current + siblingCount, totalPages);
|
|
18
|
-
const showLeftEllipsis = left > 2;
|
|
19
|
-
const showRightEllipsis = right < totalPages - 1;
|
|
20
|
-
const range = [];
|
|
21
|
-
range.push(1);
|
|
22
|
-
if (showLeftEllipsis) range.push("ellipsis");
|
|
23
|
-
else for (let i = 2; i < left; i++) range.push(i);
|
|
24
|
-
for (let i = left; i <= right; i++) {
|
|
25
|
-
if (i !== 1 && i !== totalPages) range.push(i);
|
|
26
|
-
}
|
|
27
|
-
if (showRightEllipsis) range.push("ellipsis");
|
|
28
|
-
else for (let i = right + 1; i < totalPages; i++) range.push(i);
|
|
29
|
-
if (totalPages > 1) range.push(totalPages);
|
|
30
|
-
return range;
|
|
31
|
-
}
|
|
32
|
-
var PaginationContent = React.forwardRef(({ className, ...props }, ref) => {
|
|
33
|
-
return /* @__PURE__ */ jsx("ul", { ref, className: cn("ui-pagination-list", className), role: "list", ...props });
|
|
34
|
-
});
|
|
35
|
-
PaginationContent.displayName = "PaginationContent";
|
|
36
|
-
var PaginationItem = React.forwardRef(
|
|
37
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cn("ui-pagination-item", className), ...props })
|
|
38
|
-
);
|
|
39
|
-
PaginationItem.displayName = "PaginationItem";
|
|
40
|
-
var PaginationLink = React.forwardRef(
|
|
41
|
-
({ className, isActive, disabled, children, onClick, href: _href, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
42
|
-
"button",
|
|
43
|
-
{
|
|
44
|
-
ref,
|
|
45
|
-
type: "button",
|
|
46
|
-
"data-active": isActive || void 0,
|
|
47
|
-
"aria-current": isActive ? "page" : void 0,
|
|
48
|
-
disabled: disabled || void 0,
|
|
49
|
-
"data-state": disabled ? "disabled" : void 0,
|
|
50
|
-
className: cn(
|
|
51
|
-
"ui-pagination-link ui-pagination-page",
|
|
52
|
-
isActive ? "ui-pagination-link-active" : void 0,
|
|
53
|
-
disabled ? "ui-pagination-link-disabled" : void 0,
|
|
54
|
-
className
|
|
55
|
-
),
|
|
56
|
-
onClick,
|
|
57
|
-
...props,
|
|
58
|
-
children
|
|
59
|
-
}
|
|
60
|
-
)
|
|
61
|
-
);
|
|
62
|
-
PaginationLink.displayName = "PaginationLink";
|
|
63
|
-
var PaginationEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
64
|
-
"span",
|
|
65
|
-
{
|
|
66
|
-
className: cn("ui-pagination-ellipsis", className),
|
|
67
|
-
"aria-hidden": "true",
|
|
68
|
-
role: "presentation",
|
|
69
|
-
...props,
|
|
70
|
-
children: /* @__PURE__ */ jsx(MoreHorizontal, {})
|
|
71
|
-
}
|
|
72
|
-
);
|
|
73
|
-
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
74
|
-
var PaginationPrevious = React.forwardRef(
|
|
75
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
76
|
-
PaginationLink,
|
|
77
|
-
{
|
|
78
|
-
ref,
|
|
79
|
-
className: cn("ui-pagination-prev", className),
|
|
80
|
-
disabled: props.disabled,
|
|
81
|
-
...props,
|
|
82
|
-
children
|
|
83
|
-
}
|
|
84
|
-
)
|
|
85
|
-
);
|
|
86
|
-
PaginationPrevious.displayName = "PaginationPrevious";
|
|
87
|
-
var PaginationNext = React.forwardRef(
|
|
88
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
89
|
-
PaginationLink,
|
|
90
|
-
{
|
|
91
|
-
ref,
|
|
92
|
-
className: cn("ui-pagination-next", className),
|
|
93
|
-
disabled: props.disabled,
|
|
94
|
-
...props,
|
|
95
|
-
children
|
|
96
|
-
}
|
|
97
|
-
)
|
|
98
|
-
);
|
|
99
|
-
PaginationNext.displayName = "PaginationNext";
|
|
100
|
-
function Pagination({
|
|
101
|
-
value = 1,
|
|
102
|
-
total = 0,
|
|
103
|
-
pageSize = 10,
|
|
104
|
-
pageSizeOptions = [10, 20, 50, 100],
|
|
105
|
-
showSizeChanger,
|
|
106
|
-
showTotal,
|
|
107
|
-
simple,
|
|
108
|
-
disabled,
|
|
109
|
-
className,
|
|
110
|
-
onValueChange
|
|
111
|
-
}) {
|
|
112
|
-
const { t } = useTranslation();
|
|
113
|
-
const totalPages = Math.max(1, Math.ceil(total / pageSize));
|
|
114
|
-
const safeCurrent = Math.min(Math.max(1, value), totalPages);
|
|
115
|
-
const pages = buildPageRange(safeCurrent, totalPages);
|
|
116
|
-
const go = (page, size = pageSize) => {
|
|
117
|
-
if (disabled) return;
|
|
118
|
-
const nextPage = Math.min(Math.max(1, page), Math.max(1, Math.ceil(total / size)));
|
|
119
|
-
onValueChange?.(nextPage, size);
|
|
120
|
-
};
|
|
121
|
-
const totalLabel = typeof showTotal === "function" ? showTotal(total, [
|
|
122
|
-
(safeCurrent - 1) * pageSize + 1,
|
|
123
|
-
Math.min(safeCurrent * pageSize, total)
|
|
124
|
-
]) : showTotal ? t("navigation.pagination.total", { total }) : null;
|
|
125
|
-
if (simple) {
|
|
126
|
-
return /* @__PURE__ */ jsxs(
|
|
127
|
-
"nav",
|
|
128
|
-
{
|
|
129
|
-
"aria-label": t("navigation.pagination.ariaLabel"),
|
|
130
|
-
"data-simple": "true",
|
|
131
|
-
className: cn("ui-pagination", className),
|
|
132
|
-
children: [
|
|
133
|
-
totalLabel && /* @__PURE__ */ jsx("span", { className: "ui-pagination-total", children: totalLabel }),
|
|
134
|
-
/* @__PURE__ */ jsx(
|
|
135
|
-
Button,
|
|
136
|
-
{
|
|
137
|
-
type: "button",
|
|
138
|
-
variant: "outline",
|
|
139
|
-
size: "sm",
|
|
140
|
-
disabled: Boolean(disabled) || safeCurrent <= 1,
|
|
141
|
-
"aria-label": t("navigation.pagination.prev"),
|
|
142
|
-
onClick: () => go(safeCurrent - 1),
|
|
143
|
-
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "size-4", "aria-hidden": "true" })
|
|
144
|
-
}
|
|
145
|
-
),
|
|
146
|
-
/* @__PURE__ */ jsxs("span", { className: "ui-pagination-count", children: [
|
|
147
|
-
safeCurrent,
|
|
148
|
-
" / ",
|
|
149
|
-
totalPages
|
|
150
|
-
] }),
|
|
151
|
-
/* @__PURE__ */ jsx(
|
|
152
|
-
Button,
|
|
153
|
-
{
|
|
154
|
-
type: "button",
|
|
155
|
-
variant: "outline",
|
|
156
|
-
size: "sm",
|
|
157
|
-
disabled: Boolean(disabled) || safeCurrent >= totalPages,
|
|
158
|
-
"aria-label": t("navigation.pagination.next"),
|
|
159
|
-
onClick: () => go(safeCurrent + 1),
|
|
160
|
-
children: /* @__PURE__ */ jsx(ChevronRight, { className: "size-4", "aria-hidden": "true" })
|
|
161
|
-
}
|
|
162
|
-
)
|
|
163
|
-
]
|
|
164
|
-
}
|
|
165
|
-
);
|
|
166
|
-
}
|
|
167
|
-
return /* @__PURE__ */ jsxs(
|
|
168
|
-
"nav",
|
|
169
|
-
{
|
|
170
|
-
"aria-label": t("navigation.pagination.ariaLabel"),
|
|
171
|
-
className: cn("ui-pagination", className),
|
|
172
|
-
children: [
|
|
173
|
-
totalLabel && /* @__PURE__ */ jsx("span", { className: "ui-pagination-total", children: totalLabel }),
|
|
174
|
-
showSizeChanger && /* @__PURE__ */ jsxs(
|
|
175
|
-
Select,
|
|
176
|
-
{
|
|
177
|
-
value: String(pageSize),
|
|
178
|
-
onValueChange: (v) => go(1, Number(v)),
|
|
179
|
-
disabled,
|
|
180
|
-
children: [
|
|
181
|
-
/* @__PURE__ */ jsx(
|
|
182
|
-
SelectTrigger,
|
|
183
|
-
{
|
|
184
|
-
className: "ui-pagination-size-trigger",
|
|
185
|
-
"aria-label": t("navigation.pagination.pageSize"),
|
|
186
|
-
children: /* @__PURE__ */ jsx(SelectValue, {})
|
|
187
|
-
}
|
|
188
|
-
),
|
|
189
|
-
/* @__PURE__ */ jsx(SelectContent, { children: pageSizeOptions.map((size) => /* @__PURE__ */ jsx(SelectItem, { value: String(size), children: t("navigation.pagination.pageSizeOption", { size }) }, size)) })
|
|
190
|
-
]
|
|
191
|
-
}
|
|
192
|
-
),
|
|
193
|
-
/* @__PURE__ */ jsxs(PaginationContent, { children: [
|
|
194
|
-
/* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(
|
|
195
|
-
PaginationPrevious,
|
|
196
|
-
{
|
|
197
|
-
"aria-label": t("navigation.pagination.prev"),
|
|
198
|
-
onClick: () => go(safeCurrent - 1),
|
|
199
|
-
disabled: Boolean(disabled) || safeCurrent <= 1,
|
|
200
|
-
children: /* @__PURE__ */ jsx(ChevronLeft, { "aria-hidden": "true" })
|
|
201
|
-
}
|
|
202
|
-
) }),
|
|
203
|
-
pages.map(
|
|
204
|
-
(page, index) => page === "ellipsis" ? /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationEllipsis, {}) }, `e-${index}`) : /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(
|
|
205
|
-
PaginationLink,
|
|
206
|
-
{
|
|
207
|
-
isActive: page === safeCurrent,
|
|
208
|
-
"aria-label": t("navigation.pagination.page", { page }),
|
|
209
|
-
onClick: () => {
|
|
210
|
-
if (!disabled) go(page);
|
|
211
|
-
},
|
|
212
|
-
disabled,
|
|
213
|
-
children: page
|
|
214
|
-
}
|
|
215
|
-
) }, page)
|
|
216
|
-
),
|
|
217
|
-
/* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(
|
|
218
|
-
PaginationNext,
|
|
219
|
-
{
|
|
220
|
-
"aria-label": t("navigation.pagination.next"),
|
|
221
|
-
onClick: () => go(safeCurrent + 1),
|
|
222
|
-
disabled: Boolean(disabled) || safeCurrent >= totalPages,
|
|
223
|
-
children: /* @__PURE__ */ jsx(ChevronRight, { "aria-hidden": "true" })
|
|
224
|
-
}
|
|
225
|
-
) })
|
|
226
|
-
] })
|
|
227
|
-
]
|
|
228
|
-
}
|
|
229
|
-
);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
|