@godxjp/ui 13.9.3 → 13.11.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/components/data-display/data-table.js +424 -0
- 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 +45 -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/dist/styles/table-layout.css +38 -0
- package/dist/tokens/components/table.css +2 -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-NVTZ2EDW.js +0 -389
- 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,49 +1,96 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
import
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
import
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
1
|
+
import { PageContainer } from "../layout/page-container";
|
|
2
|
+
import { Flex } from "../layout";
|
|
3
|
+
import { EmptyState } from "../data-display/empty-state";
|
|
4
|
+
import { Badge } from "../data-display/badge";
|
|
5
|
+
import { FormField } from "../data-entry/form-field";
|
|
6
|
+
import { Field } from "../data-entry/field";
|
|
7
|
+
import { Descriptions } from "../data-display/descriptions";
|
|
8
|
+
import { SkeletonRows, SkeletonTable, SkeletonDetail, SkeletonStat } from "../feedback/skeleton";
|
|
9
|
+
import {
|
|
10
|
+
Alert,
|
|
11
|
+
AlertTitle,
|
|
12
|
+
AlertContent,
|
|
13
|
+
AlertDescription,
|
|
14
|
+
AlertActions,
|
|
15
|
+
AlertQueryError
|
|
16
|
+
} from "../feedback/alert";
|
|
17
|
+
import { SearchInput } from "../data-entry/search-input";
|
|
18
|
+
import {
|
|
19
|
+
Upload,
|
|
20
|
+
collectUploadCommitActions,
|
|
21
|
+
createUploadItem,
|
|
22
|
+
useUploadDraft
|
|
23
|
+
} from "../data-entry/upload";
|
|
24
|
+
import { Cascader } from "../data-entry/cascader";
|
|
25
|
+
import { TreeSelect } from "../data-entry/tree-select";
|
|
26
|
+
import { Transfer } from "../data-entry/transfer";
|
|
27
|
+
import { Pagination, Steps, Tabs, TabsContent, TabsList, TabsTrigger } from "../navigation";
|
|
28
|
+
import { Toolbar, ToolbarGroup } from "../navigation/filter-bar";
|
|
29
|
+
import {
|
|
30
|
+
Dialog,
|
|
31
|
+
DialogTrigger,
|
|
32
|
+
DialogContent,
|
|
33
|
+
DialogHeader,
|
|
34
|
+
DialogFooter,
|
|
35
|
+
DialogTitle,
|
|
36
|
+
DialogDescription,
|
|
37
|
+
AlertDialog
|
|
38
|
+
} from "../feedback/dialog";
|
|
39
|
+
import { DataTable } from "../data-display/data-table";
|
|
40
|
+
import { Toaster } from "../feedback/sonner";
|
|
41
|
+
import { toast } from "../feedback/use-toast";
|
|
42
|
+
import { useDebouncedValue, useTimeoutFlag } from "../../lib/hooks";
|
|
43
|
+
import { formatDate, formatBytes, formatCurrency, shortId, humanError } from "../../lib/format";
|
|
44
|
+
export {
|
|
45
|
+
Alert,
|
|
46
|
+
AlertActions,
|
|
47
|
+
AlertContent,
|
|
48
|
+
AlertDescription,
|
|
49
|
+
AlertDialog,
|
|
50
|
+
AlertQueryError,
|
|
51
|
+
AlertTitle,
|
|
52
|
+
Badge,
|
|
53
|
+
Cascader,
|
|
54
|
+
DataTable,
|
|
55
|
+
Descriptions,
|
|
56
|
+
Dialog,
|
|
57
|
+
DialogContent,
|
|
58
|
+
DialogDescription,
|
|
59
|
+
DialogFooter,
|
|
60
|
+
DialogHeader,
|
|
61
|
+
DialogTitle,
|
|
62
|
+
DialogTrigger,
|
|
63
|
+
EmptyState,
|
|
64
|
+
Field,
|
|
65
|
+
Flex,
|
|
66
|
+
FormField,
|
|
67
|
+
PageContainer,
|
|
68
|
+
Pagination,
|
|
69
|
+
SearchInput,
|
|
70
|
+
SkeletonDetail,
|
|
71
|
+
SkeletonRows,
|
|
72
|
+
SkeletonStat,
|
|
73
|
+
SkeletonTable,
|
|
74
|
+
Steps,
|
|
75
|
+
Tabs,
|
|
76
|
+
TabsContent,
|
|
77
|
+
TabsList,
|
|
78
|
+
TabsTrigger,
|
|
79
|
+
Toaster,
|
|
80
|
+
Toolbar,
|
|
81
|
+
ToolbarGroup,
|
|
82
|
+
Transfer,
|
|
83
|
+
TreeSelect,
|
|
84
|
+
Upload,
|
|
85
|
+
collectUploadCommitActions,
|
|
86
|
+
createUploadItem,
|
|
87
|
+
formatBytes,
|
|
88
|
+
formatCurrency,
|
|
89
|
+
formatDate,
|
|
90
|
+
humanError,
|
|
91
|
+
shortId,
|
|
92
|
+
toast,
|
|
93
|
+
useDebouncedValue,
|
|
94
|
+
useTimeoutFlag,
|
|
95
|
+
useUploadDraft
|
|
96
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from "../ui/accordion";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Avatar, AvatarImage, AvatarFallback } from "../ui/avatar";
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
type BadgeVariant = "default" | "secondary" | "outline" | "dashed";
|
|
8
|
-
type BadgeTone = ToneProp;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
import type { ShapeProp, ToneProp } from "../../props/vocabulary";
|
|
4
|
+
export type BadgeVariant = "default" | "secondary" | "outline" | "dashed";
|
|
5
|
+
export type BadgeTone = ToneProp;
|
|
9
6
|
declare const badgeVariants: (props?: ({
|
|
10
7
|
variant?: "default" | "outline" | "dashed" | "secondary" | null | undefined;
|
|
11
8
|
shape?: "default" | "pill" | "sharp" | null | undefined;
|
|
12
|
-
} &
|
|
13
|
-
interface BadgeProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children">, Omit<VariantProps<typeof badgeVariants>, "variant" | "shape"> {
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
|
+
export interface BadgeProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children">, Omit<VariantProps<typeof badgeVariants>, "variant" | "shape"> {
|
|
14
11
|
variant?: BadgeVariant | null;
|
|
15
12
|
/** Corner shape — `default` (badge radius) · `pill` (fully rounded) · `sharp` (square). */
|
|
16
13
|
shape?: ShapeProp | null;
|
|
@@ -21,6 +18,5 @@ interface BadgeProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "childre
|
|
|
21
18
|
status?: string;
|
|
22
19
|
children?: React.ReactNode;
|
|
23
20
|
}
|
|
24
|
-
declare function Badge({ className, variant, shape, tone, icon, status, children, ...props }: BadgeProps):
|
|
25
|
-
|
|
26
|
-
export { Badge, type BadgeProps, type BadgeTone, type BadgeVariant };
|
|
21
|
+
export declare function Badge({ className, variant, shape, tone, icon, status, children, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -1,5 +1,111 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import {
|
|
4
|
+
AlertCircle,
|
|
5
|
+
CheckCircle2,
|
|
6
|
+
Circle,
|
|
7
|
+
Clock,
|
|
8
|
+
Pause,
|
|
9
|
+
Play,
|
|
10
|
+
Trash2,
|
|
11
|
+
XCircle
|
|
12
|
+
} from "lucide-react";
|
|
13
|
+
import { useTranslation } from "../../i18n/use-translation";
|
|
14
|
+
import { cn } from "../../lib/utils";
|
|
15
|
+
import {
|
|
16
|
+
toneDestructiveClass,
|
|
17
|
+
toneInfoClass,
|
|
18
|
+
toneMutedClass,
|
|
19
|
+
toneNeutralClass,
|
|
20
|
+
toneSuccessClass,
|
|
21
|
+
toneWarningClass
|
|
22
|
+
} from "../../lib/control-styles";
|
|
23
|
+
const STATUS_MAP = {
|
|
24
|
+
active: { tone: "success", icon: CheckCircle2 },
|
|
25
|
+
completed: { tone: "success", icon: CheckCircle2 },
|
|
26
|
+
delivered: { tone: "success", icon: CheckCircle2 },
|
|
27
|
+
done: { tone: "success", icon: CheckCircle2 },
|
|
28
|
+
permanent: { tone: "success", icon: CheckCircle2 },
|
|
29
|
+
succeeded: { tone: "success", icon: CheckCircle2 },
|
|
30
|
+
draft: { tone: "neutral", icon: Circle },
|
|
31
|
+
pending: { tone: "warning", icon: Clock },
|
|
32
|
+
scheduled: { tone: "info", icon: Clock },
|
|
33
|
+
sending: { tone: "info", icon: Play },
|
|
34
|
+
temporary: { tone: "warning", icon: Clock },
|
|
35
|
+
bounced: { tone: "destructive", icon: AlertCircle },
|
|
36
|
+
cancelled: { tone: "neutral", icon: Pause },
|
|
37
|
+
deleted: { tone: "destructive", icon: Trash2 },
|
|
38
|
+
failed: { tone: "destructive", icon: XCircle },
|
|
39
|
+
private: { tone: "neutral", icon: Circle },
|
|
40
|
+
internal: { tone: "info", icon: Circle },
|
|
41
|
+
public: { tone: "info", icon: Circle },
|
|
42
|
+
ASSIGNMENT_STATUS_ACTIVE: { tone: "success", icon: CheckCircle2 },
|
|
43
|
+
ASSIGNMENT_STATUS_SUSPENDED: { tone: "warning", icon: Pause },
|
|
44
|
+
ASSIGNMENT_STATUS_TERMINATED: { tone: "destructive", icon: XCircle }
|
|
45
|
+
};
|
|
46
|
+
const badgeVariants = cva(
|
|
47
|
+
"inline-flex items-center border text-xs font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring",
|
|
48
|
+
{
|
|
49
|
+
variants: {
|
|
50
|
+
variant: {
|
|
51
|
+
default: "border-transparent bg-primary text-primary-foreground",
|
|
52
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground",
|
|
53
|
+
outline: "text-foreground",
|
|
54
|
+
dashed: "border-dashed text-foreground"
|
|
55
|
+
},
|
|
56
|
+
// Corner shape — default inherits the badge radius token; pill/sharp override via the tokens.
|
|
57
|
+
shape: {
|
|
58
|
+
default: "",
|
|
59
|
+
pill: "rounded-[var(--radius-pill)]",
|
|
60
|
+
sharp: "rounded-[var(--radius-sharp)]"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
defaultVariants: { variant: "default", shape: "default" }
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
const badgeToneClass = {
|
|
67
|
+
default: void 0,
|
|
68
|
+
success: cn("border-transparent", toneSuccessClass),
|
|
69
|
+
warning: cn("border-transparent", toneWarningClass),
|
|
70
|
+
destructive: cn("border-transparent", toneDestructiveClass),
|
|
71
|
+
info: cn("border-transparent", toneInfoClass),
|
|
72
|
+
muted: cn("border-transparent", toneMutedClass),
|
|
73
|
+
neutral: cn("border-transparent", toneNeutralClass)
|
|
74
|
+
};
|
|
75
|
+
function Badge({
|
|
76
|
+
className,
|
|
77
|
+
variant,
|
|
78
|
+
shape,
|
|
79
|
+
tone,
|
|
80
|
+
icon,
|
|
81
|
+
status,
|
|
82
|
+
children,
|
|
83
|
+
...props
|
|
84
|
+
}) {
|
|
85
|
+
const { t } = useTranslation();
|
|
86
|
+
const statusDef = status ? STATUS_MAP[status] ?? { tone: "neutral", icon: Circle } : null;
|
|
87
|
+
const resolvedTone = tone ?? statusDef?.tone ?? "default";
|
|
88
|
+
const ResolvedIcon = icon === void 0 ? statusDef?.icon : icon;
|
|
89
|
+
const resolvedChildren = children ?? (status ? status in STATUS_MAP ? t(`status.${status}`) : status : void 0);
|
|
90
|
+
return /* @__PURE__ */ jsxs(
|
|
91
|
+
"div",
|
|
92
|
+
{
|
|
93
|
+
"data-slot": "badge",
|
|
94
|
+
"data-tone": resolvedTone,
|
|
95
|
+
"data-shape": shape ?? "default",
|
|
96
|
+
className: cn(
|
|
97
|
+
badgeVariants({ variant: variant ?? "default", shape: shape ?? "default" }),
|
|
98
|
+
badgeToneClass[resolvedTone],
|
|
99
|
+
className
|
|
100
|
+
),
|
|
101
|
+
...props,
|
|
102
|
+
children: [
|
|
103
|
+
ResolvedIcon ? /* @__PURE__ */ jsx(ResolvedIcon, { "data-slot": "badge-icon", "aria-hidden": "true" }) : null,
|
|
104
|
+
resolvedChildren
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
export {
|
|
110
|
+
Badge
|
|
111
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { VariantProps } from 'class-variance-authority';
|
|
5
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
6
3
|
type CardSize = "md" | "compact";
|
|
7
4
|
/** Semantic 3px leading-edge accent stripe (border-inline-start). */
|
|
8
5
|
type CardAccent = "primary" | "success" | "warning" | "info" | "attention" | "destructive";
|
|
@@ -11,36 +8,36 @@ type CardVariant = "default" | "muted" | "outline" | "featured";
|
|
|
11
8
|
/** Padding density — base 16px · tight 12px · cozy 20px. */
|
|
12
9
|
type CardDensity = "tight" | "cozy";
|
|
13
10
|
declare const cardVariants: (props?: ({
|
|
14
|
-
size?: "
|
|
15
|
-
} &
|
|
16
|
-
type CardProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof cardVariants> & {
|
|
11
|
+
size?: "compact" | "md" | null | undefined;
|
|
12
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
|
+
export type CardProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof cardVariants> & {
|
|
17
14
|
size?: CardSize;
|
|
18
15
|
accent?: CardAccent;
|
|
19
16
|
variant?: CardVariant;
|
|
20
17
|
density?: CardDensity;
|
|
21
18
|
};
|
|
22
|
-
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
23
|
-
size?: "
|
|
24
|
-
} &
|
|
19
|
+
export declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
20
|
+
size?: "compact" | "md" | null | undefined;
|
|
21
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
25
22
|
size?: CardSize;
|
|
26
23
|
accent?: CardAccent;
|
|
27
24
|
variant?: CardVariant;
|
|
28
25
|
density?: CardDensity;
|
|
29
26
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
30
27
|
/** Full-bleed cover media — first child; header below uses section top (φ⁰), not shell. */
|
|
31
|
-
type CardCoverProps = React.HTMLAttributes<HTMLDivElement>;
|
|
32
|
-
declare const CardCover: React.ForwardRefExoticComponent<CardCoverProps & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
-
type CardHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
28
|
+
export type CardCoverProps = React.HTMLAttributes<HTMLDivElement>;
|
|
29
|
+
export declare const CardCover: React.ForwardRefExoticComponent<CardCoverProps & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
export type CardHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
34
31
|
/** Muted background + border-bottom — section band (mirror footer `separated`). */
|
|
35
32
|
banded?: boolean;
|
|
36
33
|
};
|
|
37
|
-
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
34
|
+
export declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
38
35
|
/** Muted background + border-bottom — section band (mirror footer `separated`). */
|
|
39
36
|
banded?: boolean;
|
|
40
37
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
-
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
42
|
-
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
43
|
-
type CardContentProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
38
|
+
export declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
39
|
+
export declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
40
|
+
export type CardContentProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
44
41
|
/** Edge-to-edge body (tables, tabs list). Horizontal padding removed. */
|
|
45
42
|
flush?: boolean;
|
|
46
43
|
/** No gap after header — pair with tabs / flush toolbar. */
|
|
@@ -48,7 +45,7 @@ type CardContentProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
48
45
|
/** No header above — top padding matches card shell. */
|
|
49
46
|
solo?: boolean;
|
|
50
47
|
};
|
|
51
|
-
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
48
|
+
export declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
52
49
|
/** Edge-to-edge body (tables, tabs list). Horizontal padding removed. */
|
|
53
50
|
flush?: boolean;
|
|
54
51
|
/** No gap after header — pair with tabs / flush toolbar. */
|
|
@@ -56,19 +53,19 @@ declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<
|
|
|
56
53
|
/** No header above — top padding matches card shell. */
|
|
57
54
|
solo?: boolean;
|
|
58
55
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
59
|
-
type CardFooterProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
56
|
+
export type CardFooterProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
60
57
|
/** Top border + symmetric action band — form Save/Cancel, table summary. */
|
|
61
58
|
separated?: boolean;
|
|
62
59
|
/** Full-bleed footer (Ant Design `actions` bar). */
|
|
63
60
|
flush?: boolean;
|
|
64
61
|
};
|
|
65
|
-
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
62
|
+
export declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
66
63
|
/** Top border + symmetric action band — form Save/Cancel, table summary. */
|
|
67
64
|
separated?: boolean;
|
|
68
65
|
/** Full-bleed footer (Ant Design `actions` bar). */
|
|
69
66
|
flush?: boolean;
|
|
70
67
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
71
|
-
type StatCardProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof cardVariants> & {
|
|
68
|
+
export type StatCardProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof cardVariants> & {
|
|
72
69
|
label: React.ReactNode;
|
|
73
70
|
value: React.ReactNode;
|
|
74
71
|
hint?: React.ReactNode;
|
|
@@ -84,8 +81,7 @@ type StatCardProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof
|
|
|
84
81
|
accent?: CardAccent;
|
|
85
82
|
};
|
|
86
83
|
/** KPI / stat tile — token-driven layout aligned to dashboard KPI cards. */
|
|
87
|
-
declare function StatCard({ label, value, hint, delta, layout, align, inverse, accent, className, size, ...props }: StatCardProps):
|
|
84
|
+
export declare function StatCard({ label, value, hint, delta, layout, align, inverse, accent, className, size, ...props }: StatCardProps): import("react/jsx-runtime").JSX.Element;
|
|
88
85
|
/** Header actions slot — pair with `CardHeader className="flex flex-row …"`. */
|
|
89
|
-
declare const CardAction: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
90
|
-
|
|
91
|
-
export { Card, CardAction, CardContent, type CardContentProps, CardCover, type CardCoverProps, CardDescription, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, StatCard, type StatCardProps };
|
|
86
|
+
export declare const CardAction: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
87
|
+
export {};
|
|
@@ -1,2 +1,153 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
5
|
+
const cardVariants = cva("group/card border", {
|
|
6
|
+
variants: {
|
|
7
|
+
size: {
|
|
8
|
+
md: "",
|
|
9
|
+
compact: ""
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
defaultVariants: { size: "md" }
|
|
13
|
+
});
|
|
14
|
+
const Card = React.forwardRef(
|
|
15
|
+
({ className, size = "md", accent, variant, density, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
16
|
+
"div",
|
|
17
|
+
{
|
|
18
|
+
ref,
|
|
19
|
+
className: cn(cardVariants({ size }), className),
|
|
20
|
+
"data-slot": "card",
|
|
21
|
+
"data-size": size === "compact" ? "compact" : void 0,
|
|
22
|
+
"data-accent": accent,
|
|
23
|
+
"data-variant": variant && variant !== "default" ? variant : void 0,
|
|
24
|
+
"data-density": density,
|
|
25
|
+
...props
|
|
26
|
+
}
|
|
27
|
+
)
|
|
28
|
+
);
|
|
29
|
+
Card.displayName = "Card";
|
|
30
|
+
const CardCover = React.forwardRef(
|
|
31
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, "data-slot": "card-cover", className: cn("ui-card-cover", className), ...props })
|
|
32
|
+
);
|
|
33
|
+
CardCover.displayName = "CardCover";
|
|
34
|
+
const CardHeader = React.forwardRef(
|
|
35
|
+
({ className, banded, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
36
|
+
"div",
|
|
37
|
+
{
|
|
38
|
+
ref,
|
|
39
|
+
"data-slot": "card-header",
|
|
40
|
+
"data-banded": banded ? "" : void 0,
|
|
41
|
+
className: cn(banded && "ui-card-header--banded", className),
|
|
42
|
+
...props
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
);
|
|
46
|
+
CardHeader.displayName = "CardHeader";
|
|
47
|
+
const CardTitle = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx("h3", { ref, "data-slot": "card-title", className, ...props, children }));
|
|
48
|
+
CardTitle.displayName = "CardTitle";
|
|
49
|
+
const CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("p", { ref, "data-slot": "card-description", className, ...props }));
|
|
50
|
+
CardDescription.displayName = "CardDescription";
|
|
51
|
+
const CardContent = React.forwardRef(
|
|
52
|
+
({ className, flush, tight, solo, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
53
|
+
"div",
|
|
54
|
+
{
|
|
55
|
+
ref,
|
|
56
|
+
"data-slot": "card-content",
|
|
57
|
+
"data-flush": flush ? "" : void 0,
|
|
58
|
+
"data-tight": tight ? "" : void 0,
|
|
59
|
+
"data-solo": solo ? "" : void 0,
|
|
60
|
+
className,
|
|
61
|
+
...props
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
);
|
|
65
|
+
CardContent.displayName = "CardContent";
|
|
66
|
+
const CardFooter = React.forwardRef(
|
|
67
|
+
({ className, separated, flush, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
68
|
+
"div",
|
|
69
|
+
{
|
|
70
|
+
ref,
|
|
71
|
+
"data-slot": "card-footer",
|
|
72
|
+
"data-separated": separated ? "" : void 0,
|
|
73
|
+
"data-flush": flush ? "" : void 0,
|
|
74
|
+
className,
|
|
75
|
+
...props
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
);
|
|
79
|
+
CardFooter.displayName = "CardFooter";
|
|
80
|
+
function getDeltaTone(delta, inverse) {
|
|
81
|
+
const text = typeof delta === "string" || typeof delta === "number" ? String(delta).trim() : "";
|
|
82
|
+
const sign = text.match(/^[+\-−]/)?.[0];
|
|
83
|
+
if (!sign) return void 0;
|
|
84
|
+
const isPositive = sign === "+";
|
|
85
|
+
const semanticPositive = inverse ? !isPositive : isPositive;
|
|
86
|
+
return semanticPositive ? "positive" : "negative";
|
|
87
|
+
}
|
|
88
|
+
function StatCard({
|
|
89
|
+
label,
|
|
90
|
+
value,
|
|
91
|
+
hint,
|
|
92
|
+
delta,
|
|
93
|
+
layout = "stacked",
|
|
94
|
+
align = "start",
|
|
95
|
+
inverse = false,
|
|
96
|
+
accent,
|
|
97
|
+
className,
|
|
98
|
+
size = "compact",
|
|
99
|
+
...props
|
|
100
|
+
}) {
|
|
101
|
+
const deltaTone = getDeltaTone(delta, inverse);
|
|
102
|
+
return /* @__PURE__ */ jsxs(
|
|
103
|
+
Card,
|
|
104
|
+
{
|
|
105
|
+
size: size ?? "compact",
|
|
106
|
+
accent,
|
|
107
|
+
className: cn("ui-stat-card", className),
|
|
108
|
+
"data-stat-card": "",
|
|
109
|
+
"data-stat-layout": layout,
|
|
110
|
+
"data-stat-align": align,
|
|
111
|
+
...props,
|
|
112
|
+
children: [
|
|
113
|
+
/* @__PURE__ */ jsxs("div", { "data-slot": "stat-card-body", children: [
|
|
114
|
+
/* @__PURE__ */ jsx("div", { "data-slot": "stat-card-label", children: label }),
|
|
115
|
+
hint && layout === "inline" ? /* @__PURE__ */ jsx("div", { "data-slot": "stat-card-hint", children: hint }) : null
|
|
116
|
+
] }),
|
|
117
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
118
|
+
/* @__PURE__ */ jsxs("div", { "data-slot": "stat-card-value-row", children: [
|
|
119
|
+
/* @__PURE__ */ jsx("span", { "data-slot": "stat-card-value", children: value }),
|
|
120
|
+
delta ? /* @__PURE__ */ jsx(
|
|
121
|
+
"span",
|
|
122
|
+
{
|
|
123
|
+
"data-slot": "stat-card-delta",
|
|
124
|
+
"data-delta-tone": deltaTone,
|
|
125
|
+
className: cn(
|
|
126
|
+
deltaTone === "positive" && "text-success",
|
|
127
|
+
deltaTone === "negative" && "text-destructive"
|
|
128
|
+
),
|
|
129
|
+
children: delta
|
|
130
|
+
}
|
|
131
|
+
) : null
|
|
132
|
+
] }),
|
|
133
|
+
hint && layout !== "inline" ? /* @__PURE__ */ jsx("div", { "data-slot": "stat-card-hint", children: hint }) : null
|
|
134
|
+
] })
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
const CardAction = React.forwardRef(
|
|
140
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, "data-slot": "card-action", className, ...props })
|
|
141
|
+
);
|
|
142
|
+
CardAction.displayName = "CardAction";
|
|
143
|
+
export {
|
|
144
|
+
Card,
|
|
145
|
+
CardAction,
|
|
146
|
+
CardContent,
|
|
147
|
+
CardCover,
|
|
148
|
+
CardDescription,
|
|
149
|
+
CardFooter,
|
|
150
|
+
CardHeader,
|
|
151
|
+
CardTitle,
|
|
152
|
+
StatCard
|
|
153
|
+
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import useEmblaCarousel from
|
|
3
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import useEmblaCarousel from "embla-carousel-react";
|
|
4
3
|
type UseEmblaReturn = ReturnType<typeof useEmblaCarousel>;
|
|
5
|
-
type CarouselApi = UseEmblaReturn[1];
|
|
4
|
+
export type CarouselApi = UseEmblaReturn[1];
|
|
6
5
|
type CarouselContextValue = {
|
|
7
6
|
canScrollPrev: boolean;
|
|
8
7
|
canScrollNext: boolean;
|
|
@@ -15,22 +14,21 @@ type CarouselContextValue = {
|
|
|
15
14
|
scrollNext: () => void;
|
|
16
15
|
scrollTo: (index: number) => void;
|
|
17
16
|
};
|
|
18
|
-
declare const useCarousel: () => CarouselContextValue;
|
|
19
|
-
declare const Carousel: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
17
|
+
export declare const useCarousel: () => CarouselContextValue;
|
|
18
|
+
export declare const Carousel: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
20
19
|
opts?: Parameters<typeof useEmblaCarousel>[0];
|
|
21
20
|
plugins?: Parameters<typeof useEmblaCarousel>[1];
|
|
22
21
|
setApi?: (api: CarouselApi) => void;
|
|
23
22
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
-
declare const CarouselContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
-
declare const CarouselItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
-
declare const CarouselPrevious: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
27
|
-
declare const CarouselNext: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
23
|
+
export declare const CarouselContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
export declare const CarouselItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
export declare const CarouselPrevious: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
26
|
+
export declare const CarouselNext: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
28
27
|
/**
|
|
29
28
|
* Dot indicators — one round dot per scroll snap, the active one widened + filled. Reads the Embla
|
|
30
29
|
* api from context (no `setApi` plumbing needed); each dot is a real `<button>` with an i18n
|
|
31
30
|
* accessible name and `aria-current` on the active slide, calling `scrollTo(i)`. Drop it inside
|
|
32
31
|
* `<Carousel>` after the track: `<CarouselContent/> … <CarouselDots/>`.
|
|
33
32
|
*/
|
|
34
|
-
declare const CarouselDots: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
-
|
|
36
|
-
export { Carousel, type CarouselApi, CarouselContent, CarouselDots, CarouselItem, CarouselNext, CarouselPrevious, useCarousel };
|
|
33
|
+
export declare const CarouselDots: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
export {};
|