@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,19 +1,15 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
declare
|
|
10
|
-
declare function SheetTrigger(props: React.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
11
|
-
declare function SheetClose(props: React.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
|
|
12
|
-
declare function SheetPortal(props: React.ComponentProps<typeof DialogPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
13
|
-
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
3
|
+
import { type VariantProps } from "class-variance-authority";
|
|
4
|
+
import type { ToneProp, WidthProp } from "../../props/vocabulary";
|
|
5
|
+
export declare function Sheet(props: React.ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function SheetTrigger(props: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function SheetClose(props: React.ComponentProps<typeof DialogPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function SheetPortal(props: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
10
|
declare const sheetVariants: (props?: ({
|
|
15
11
|
side?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
16
|
-
} &
|
|
12
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
17
13
|
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
18
14
|
showCloseButton?: boolean;
|
|
19
15
|
/**
|
|
@@ -23,8 +19,8 @@ interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof Dialog
|
|
|
23
19
|
*/
|
|
24
20
|
width?: WidthProp;
|
|
25
21
|
}
|
|
26
|
-
declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
-
interface SheetHeaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
22
|
+
export declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
export interface SheetHeaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
28
24
|
/** Header title (Ant Drawer-style). Rendered as the Radix-bound SheetTitle (accessible name). */
|
|
29
25
|
title?: React.ReactNode;
|
|
30
26
|
/** Secondary line under the title (rendered as SheetDescription). */
|
|
@@ -34,10 +30,9 @@ interface SheetHeaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "t
|
|
|
34
30
|
/** Soft semantic background band for the header. `default` = no band. */
|
|
35
31
|
tone?: ToneProp;
|
|
36
32
|
}
|
|
37
|
-
declare const SheetHeader: ({ className, title, subtitle, extra, tone, children, ...props }: SheetHeaderProps) =>
|
|
38
|
-
declare const SheetBody: ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) =>
|
|
39
|
-
declare const SheetFooter: ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) =>
|
|
40
|
-
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
41
|
-
declare const SheetDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
42
|
-
|
|
43
|
-
export { Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, type SheetHeaderProps, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger };
|
|
33
|
+
export declare const SheetHeader: ({ className, title, subtitle, extra, tone, children, ...props }: SheetHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export declare const SheetBody: ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export declare const SheetFooter: ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare const SheetTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
37
|
+
export declare const SheetDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
38
|
+
export {};
|
|
@@ -1,3 +1,192 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
|
+
import { X } from "lucide-react";
|
|
6
|
+
import { cn } from "../../lib/utils";
|
|
7
|
+
import { overlayHeaderToneClass } from "./overlay-header-tone";
|
|
8
|
+
const toCssLength = (v) => typeof v === "number" ? `${v}px` : v;
|
|
9
|
+
function Sheet(props) {
|
|
10
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
11
|
+
}
|
|
12
|
+
function SheetTrigger(props) {
|
|
13
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
|
|
14
|
+
}
|
|
15
|
+
function SheetClose(props) {
|
|
16
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Close, { "data-slot": "sheet-close", ...props });
|
|
17
|
+
}
|
|
18
|
+
function SheetPortal(props) {
|
|
19
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
|
|
20
|
+
}
|
|
21
|
+
const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
22
|
+
DialogPrimitive.Overlay,
|
|
23
|
+
{
|
|
24
|
+
ref,
|
|
25
|
+
"data-slot": "sheet-overlay",
|
|
26
|
+
className: cn(
|
|
27
|
+
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
28
|
+
className
|
|
29
|
+
),
|
|
30
|
+
...props
|
|
31
|
+
}
|
|
32
|
+
));
|
|
33
|
+
SheetOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
34
|
+
const sheetVariants = cva(
|
|
35
|
+
"fixed z-50 flex flex-col gap-[var(--space-chrome-gap)] bg-background px-[var(--sheet-pad-x)] py-[var(--sheet-pad-y)] shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500",
|
|
36
|
+
{
|
|
37
|
+
variants: {
|
|
38
|
+
// `side` is a deliberately PHYSICAL API (left/right/top/bottom) — a sheet
|
|
39
|
+
// opens from the edge the consumer names, not a locale-flipped one, matching
|
|
40
|
+
// the Radix/shadcn Sheet convention. The physical classes below are intended.
|
|
41
|
+
side: {
|
|
42
|
+
/* rtl-ignore: named physical side */
|
|
43
|
+
right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-md",
|
|
44
|
+
/* rtl-ignore: named physical side */
|
|
45
|
+
left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-md",
|
|
46
|
+
top: "inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
47
|
+
bottom: "inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
defaultVariants: { side: "right" }
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
const SheetContent = React.forwardRef(
|
|
54
|
+
({ side = "right", className, children, showCloseButton = true, width, style, ...props }, ref) => {
|
|
55
|
+
const horizontal = side === "left" || side === "right";
|
|
56
|
+
const widthSet = width != null && horizontal;
|
|
57
|
+
const mergedStyle = widthSet ? { ...style, ["--sheet-width"]: toCssLength(width) } : style;
|
|
58
|
+
return /* @__PURE__ */ jsxs(SheetPortal, { children: [
|
|
59
|
+
/* @__PURE__ */ jsx(SheetOverlay, {}),
|
|
60
|
+
/* @__PURE__ */ jsxs(
|
|
61
|
+
DialogPrimitive.Content,
|
|
62
|
+
{
|
|
63
|
+
ref,
|
|
64
|
+
"data-slot": "sheet-content",
|
|
65
|
+
style: mergedStyle,
|
|
66
|
+
className: cn(
|
|
67
|
+
sheetVariants({ side }),
|
|
68
|
+
// `width` caps at the viewport: full-width panel on a small screen, capped on a large one.
|
|
69
|
+
widthSet && "w-[min(var(--sheet-width),100%)] max-w-none sm:max-w-none",
|
|
70
|
+
className
|
|
71
|
+
),
|
|
72
|
+
...props,
|
|
73
|
+
children: [
|
|
74
|
+
children,
|
|
75
|
+
showCloseButton ? /* @__PURE__ */ jsxs(
|
|
76
|
+
DialogPrimitive.Close,
|
|
77
|
+
{
|
|
78
|
+
"data-slot": "sheet-close",
|
|
79
|
+
className: "ring-offset-background focus:ring-ring absolute end-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",
|
|
80
|
+
children: [
|
|
81
|
+
/* @__PURE__ */ jsx(X, { className: "size-4", "aria-hidden": "true" }),
|
|
82
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
) : null
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
)
|
|
89
|
+
] });
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
SheetContent.displayName = DialogPrimitive.Content.displayName;
|
|
93
|
+
const SheetHeader = ({
|
|
94
|
+
className,
|
|
95
|
+
title,
|
|
96
|
+
subtitle,
|
|
97
|
+
extra,
|
|
98
|
+
tone = "default",
|
|
99
|
+
children,
|
|
100
|
+
...props
|
|
101
|
+
}) => {
|
|
102
|
+
return /* @__PURE__ */ jsx(
|
|
103
|
+
"div",
|
|
104
|
+
{
|
|
105
|
+
"data-slot": "sheet-header",
|
|
106
|
+
"data-tone": tone,
|
|
107
|
+
className: cn(
|
|
108
|
+
"-mx-[var(--sheet-pad-x)] -mt-[var(--sheet-pad-y)] flex flex-col gap-1.5 px-[var(--sheet-pad-x)] py-[var(--sheet-pad-y)]",
|
|
109
|
+
overlayHeaderToneClass[tone],
|
|
110
|
+
className
|
|
111
|
+
),
|
|
112
|
+
...props,
|
|
113
|
+
children: children ?? // `pe-8` reserves room for the absolute close button (end-4) so title/extra never sit under it.
|
|
114
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-3 pe-8", children: [
|
|
115
|
+
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col gap-1", children: [
|
|
116
|
+
title != null && /* @__PURE__ */ jsx(SheetTitle, { children: title }),
|
|
117
|
+
subtitle != null && /* @__PURE__ */ jsx(SheetDescription, { children: subtitle })
|
|
118
|
+
] }),
|
|
119
|
+
extra != null && /* @__PURE__ */ jsx("div", { className: "flex shrink-0 items-center gap-2 whitespace-nowrap", children: extra })
|
|
120
|
+
] })
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
};
|
|
124
|
+
const SheetBody = ({ className, ...props }) => (
|
|
125
|
+
// Scrollable region between a fixed header and a pinned footer (rule #41). Full-bleed horizontally
|
|
126
|
+
// (`-mx-6 px-6`) so content aligns to the sheet edge while the 3px focus ring of a full-width
|
|
127
|
+
// control keeps 24px of room and never clips against the scroll container's computed
|
|
128
|
+
// `overflow-x`. `py-1`/`scroll-py-1` keep a focused control's ring visible at the scroll edges.
|
|
129
|
+
// Use this instead of a hand-rolled `<div className="overflow-y-auto">` (which clips rings).
|
|
130
|
+
/* @__PURE__ */ jsx(
|
|
131
|
+
"div",
|
|
132
|
+
{
|
|
133
|
+
"data-slot": "sheet-body",
|
|
134
|
+
className: cn(
|
|
135
|
+
"-mx-[var(--sheet-pad-x)] min-h-0 flex-1 scroll-py-1 overflow-y-auto px-[var(--sheet-pad-x)] py-1",
|
|
136
|
+
className
|
|
137
|
+
),
|
|
138
|
+
...props
|
|
139
|
+
}
|
|
140
|
+
)
|
|
141
|
+
);
|
|
142
|
+
const SheetFooter = ({ className, ...props }) => (
|
|
143
|
+
// Pinned action bar (Ant Design Drawer footer): sticks to the bottom, full-bleed top border, actions
|
|
144
|
+
// RIGHT-aligned (primary rightmost). A destructive / clear / reset action goes far-LEFT — give it
|
|
145
|
+
// `className="me-auto"`. See cardinal rule "Drawer & dialog footer layout".
|
|
146
|
+
// Owns its full vertical padding (symmetric 16/16) via `py-4`; `-mb-6` cancels SheetContent's
|
|
147
|
+
// `p-6` bottom so the footer doesn't inherit an asymmetric 16-top / 24-bottom rhythm.
|
|
148
|
+
/* @__PURE__ */ jsx(
|
|
149
|
+
"div",
|
|
150
|
+
{
|
|
151
|
+
"data-slot": "sheet-footer",
|
|
152
|
+
className: cn(
|
|
153
|
+
"-mx-[var(--sheet-pad-x)] mt-auto -mb-[var(--sheet-pad-y)] flex flex-wrap items-center justify-end gap-2 px-[var(--sheet-pad-x)] py-[var(--sheet-pad-y)]",
|
|
154
|
+
className
|
|
155
|
+
),
|
|
156
|
+
...props
|
|
157
|
+
}
|
|
158
|
+
)
|
|
159
|
+
);
|
|
160
|
+
const SheetTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
161
|
+
DialogPrimitive.Title,
|
|
162
|
+
{
|
|
163
|
+
ref,
|
|
164
|
+
"data-slot": "sheet-title",
|
|
165
|
+
className: cn("text-foreground text-lg font-medium", className),
|
|
166
|
+
...props
|
|
167
|
+
}
|
|
168
|
+
));
|
|
169
|
+
SheetTitle.displayName = DialogPrimitive.Title.displayName;
|
|
170
|
+
const SheetDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
171
|
+
DialogPrimitive.Description,
|
|
172
|
+
{
|
|
173
|
+
ref,
|
|
174
|
+
"data-slot": "sheet-description",
|
|
175
|
+
className: cn("text-muted-foreground text-sm", className),
|
|
176
|
+
...props
|
|
177
|
+
}
|
|
178
|
+
));
|
|
179
|
+
SheetDescription.displayName = DialogPrimitive.Description.displayName;
|
|
180
|
+
export {
|
|
181
|
+
Sheet,
|
|
182
|
+
SheetBody,
|
|
183
|
+
SheetClose,
|
|
184
|
+
SheetContent,
|
|
185
|
+
SheetDescription,
|
|
186
|
+
SheetFooter,
|
|
187
|
+
SheetHeader,
|
|
188
|
+
SheetOverlay,
|
|
189
|
+
SheetPortal,
|
|
190
|
+
SheetTitle,
|
|
191
|
+
SheetTrigger
|
|
192
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type SkeletonProps = React.HTMLAttributes<HTMLDivElement>;
|
|
3
|
+
export declare function Skeleton({ className, ...props }: SkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
interface SkeletonRowsProps {
|
|
5
|
+
rows?: number;
|
|
6
|
+
columns?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
/** Skeleton for a flat list of rows (use inside a Card or section). */
|
|
10
|
+
export declare function SkeletonRows({ rows, columns, className }: SkeletonRowsProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
/** Skeleton matching the DataTable layout — header row + N body rows. */
|
|
12
|
+
export declare function SkeletonTable({ rows, columns }: SkeletonRowsProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
/** Skeleton matching a Card detail layout — title + 6 metadata rows. */
|
|
14
|
+
export declare function SkeletonDetail(): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
/** Skeleton matching a stat card / dashboard tile. */
|
|
16
|
+
export declare function SkeletonStat(): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { cn } from
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../lib/utils";
|
|
3
|
+
import { tableCellPaddingClass, tableRowHeightClass } from "../../lib/control-styles";
|
|
5
4
|
function Skeleton({ className, ...props }) {
|
|
6
5
|
return /* @__PURE__ */ jsx(
|
|
7
6
|
"div",
|
|
@@ -52,5 +51,10 @@ function SkeletonStat() {
|
|
|
52
51
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-20" })
|
|
53
52
|
] });
|
|
54
53
|
}
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
export {
|
|
55
|
+
Skeleton,
|
|
56
|
+
SkeletonDetail,
|
|
57
|
+
SkeletonRows,
|
|
58
|
+
SkeletonStat,
|
|
59
|
+
SkeletonTable
|
|
60
|
+
};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare function Toaster({ ...props }: ToasterProps): react_jsx_runtime.JSX.Element;
|
|
5
|
-
|
|
1
|
+
import { type ToasterProps } from "sonner";
|
|
2
|
+
declare function Toaster({ ...props }: ToasterProps): import("react/jsx-runtime").JSX.Element;
|
|
6
3
|
export { Toaster };
|
|
@@ -1 +1,50 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { CheckCircle2, Info, Loader2, OctagonX, TriangleAlert } from "lucide-react";
|
|
4
|
+
import { Toaster as Sonner } from "sonner";
|
|
5
|
+
function useDocumentTheme() {
|
|
6
|
+
return React.useSyncExternalStore(
|
|
7
|
+
(onStoreChange) => {
|
|
8
|
+
if (typeof document === "undefined") return () => void 0;
|
|
9
|
+
const mq = window.matchMedia("(prefers-color-scheme: dark)");
|
|
10
|
+
mq.addEventListener("change", onStoreChange);
|
|
11
|
+
const obs = new MutationObserver(onStoreChange);
|
|
12
|
+
obs.observe(document.documentElement, { attributes: true, attributeFilter: ["class"] });
|
|
13
|
+
return () => {
|
|
14
|
+
mq.removeEventListener("change", onStoreChange);
|
|
15
|
+
obs.disconnect();
|
|
16
|
+
};
|
|
17
|
+
},
|
|
18
|
+
() => document.documentElement.classList.contains("dark") ? "dark" : "light",
|
|
19
|
+
() => "light"
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
function Toaster({ ...props }) {
|
|
23
|
+
const theme = useDocumentTheme();
|
|
24
|
+
return /* @__PURE__ */ jsx(
|
|
25
|
+
Sonner,
|
|
26
|
+
{
|
|
27
|
+
theme,
|
|
28
|
+
className: "toaster group",
|
|
29
|
+
icons: {
|
|
30
|
+
success: /* @__PURE__ */ jsx(CheckCircle2, { className: "size-4", "aria-hidden": "true" }),
|
|
31
|
+
info: /* @__PURE__ */ jsx(Info, { className: "size-4", "aria-hidden": "true" }),
|
|
32
|
+
warning: /* @__PURE__ */ jsx(TriangleAlert, { className: "size-4", "aria-hidden": "true" }),
|
|
33
|
+
error: /* @__PURE__ */ jsx(OctagonX, { className: "size-4", "aria-hidden": "true" }),
|
|
34
|
+
loading: /* @__PURE__ */ jsx(Loader2, { className: "size-4 animate-spin", "aria-hidden": "true" })
|
|
35
|
+
},
|
|
36
|
+
style: {
|
|
37
|
+
"--normal-bg": "var(--popover)",
|
|
38
|
+
"--normal-text": "var(--popover-foreground)",
|
|
39
|
+
"--normal-border": "var(--border)",
|
|
40
|
+
"--border-radius": "var(--radius)"
|
|
41
|
+
},
|
|
42
|
+
position: "bottom-right",
|
|
43
|
+
mobileOffset: { bottom: "16px", right: "16px" },
|
|
44
|
+
...props
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
Toaster
|
|
50
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
3
|
+
/** Opt-in provider for tuning delay across a subtree. Each <Tooltip> already self-provides. */
|
|
4
|
+
export declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
/** Self-contained tooltip — no app-level provider needed. Controllable via `open`/`onOpenChange`. */
|
|
6
|
+
export declare function Tooltip({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Root> & {
|
|
7
|
+
delayDuration?: number;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
export declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as React from
|
|
3
|
-
import * as TooltipPrimitive from
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
6
5
|
function TooltipProvider({
|
|
7
6
|
delayDuration = 200,
|
|
8
7
|
...props
|
|
@@ -15,8 +14,8 @@ function Tooltip({
|
|
|
15
14
|
}) {
|
|
16
15
|
return /* @__PURE__ */ jsx(TooltipPrimitive.Provider, { delayDuration, children: /* @__PURE__ */ jsx(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props }) });
|
|
17
16
|
}
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
const TooltipTrigger = TooltipPrimitive.Trigger;
|
|
18
|
+
const TooltipContent = React.forwardRef(({ className, sideOffset = 6, children, ...props }, ref) => /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
20
19
|
TooltipPrimitive.Content,
|
|
21
20
|
{
|
|
22
21
|
ref,
|
|
@@ -34,5 +33,9 @@ var TooltipContent = React.forwardRef(({ className, sideOffset = 6, children, ..
|
|
|
34
33
|
}
|
|
35
34
|
) }));
|
|
36
35
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
export {
|
|
37
|
+
Tooltip,
|
|
38
|
+
TooltipContent,
|
|
39
|
+
TooltipProvider,
|
|
40
|
+
TooltipTrigger
|
|
41
|
+
};
|
|
@@ -1,27 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { c as ButtonVariantProp, b as ButtonSizeProp, S as ShapeProp } from '../../interaction.prop-DD46aTro.js';
|
|
4
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
-
export { B as ButtonProp, B as ButtonProps } from '../../general.prop-CzlQin6v.js';
|
|
6
|
-
|
|
1
|
+
import * as React from "react";
|
|
7
2
|
declare const buttonVariants: (props?: ({
|
|
8
3
|
variant?: "default" | "ghost" | "destructive" | "outline" | "dashed" | "secondary" | "link" | null | undefined;
|
|
9
4
|
size?: "default" | "xs" | "sm" | "md" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
10
5
|
shape?: "default" | "pill" | "sharp" | null | undefined;
|
|
11
|
-
} &
|
|
12
|
-
|
|
13
|
-
declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
14
|
-
variant?: ButtonVariantProp;
|
|
15
|
-
size?: ButtonSizeProp;
|
|
16
|
-
shape?: ShapeProp;
|
|
17
|
-
asChild?: AsChildProp;
|
|
18
|
-
onClick?: OnClickProp;
|
|
19
|
-
disabled?: DisabledProp;
|
|
20
|
-
loading?: PendingProp;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export type { ButtonProp, ButtonProp as ButtonProps } from "../../props/components/general.prop";
|
|
8
|
+
export declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
9
|
+
variant?: import("../../props").ButtonVariantProp;
|
|
10
|
+
size?: import("../../props").ButtonSizeProp;
|
|
11
|
+
shape?: import("../../props").ShapeProp;
|
|
12
|
+
asChild?: import("../../props").AsChildProp;
|
|
13
|
+
onClick?: import("../../props").OnClickProp;
|
|
14
|
+
disabled?: import("../../props").DisabledProp;
|
|
15
|
+
loading?: import("../../props").PendingProp;
|
|
21
16
|
loadingText?: string;
|
|
22
17
|
count?: number;
|
|
23
18
|
overflowCount?: number;
|
|
24
19
|
showZero?: boolean;
|
|
25
20
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
26
|
-
|
|
27
|
-
export { Button, buttonVariants };
|
|
21
|
+
export { buttonVariants };
|
|
@@ -1,4 +1,118 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
|
+
import { Loader2 } from "lucide-react";
|
|
6
|
+
import { cn } from "../../lib/utils";
|
|
7
|
+
import { useTranslation } from "../../i18n/use-translation";
|
|
8
|
+
const buttonCountClass = {
|
|
9
|
+
default: "bg-primary-foreground/15",
|
|
10
|
+
destructive: "bg-destructive-foreground/15",
|
|
11
|
+
secondary: "bg-secondary-foreground/15",
|
|
12
|
+
outline: "bg-foreground/8 text-muted-foreground",
|
|
13
|
+
dashed: "bg-foreground/8 text-muted-foreground",
|
|
14
|
+
ghost: "bg-foreground/8 text-muted-foreground",
|
|
15
|
+
link: "bg-foreground/8 text-muted-foreground"
|
|
16
|
+
};
|
|
17
|
+
const buttonVariants = cva("ui-button", {
|
|
18
|
+
variants: {
|
|
19
|
+
variant: {
|
|
20
|
+
default: "ui-button--default bg-primary text-primary-foreground hover:bg-primary/90",
|
|
21
|
+
destructive: "ui-button--destructive bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20",
|
|
22
|
+
outline: "ui-button--outline border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",
|
|
23
|
+
dashed: "ui-button--dashed border border-dashed bg-background hover:bg-accent hover:text-accent-foreground",
|
|
24
|
+
secondary: "ui-button--secondary bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
25
|
+
ghost: "ui-button--ghost hover:bg-accent hover:text-accent-foreground",
|
|
26
|
+
link: "ui-button--link text-primary underline-offset-4 hover:underline"
|
|
27
|
+
},
|
|
28
|
+
size: {
|
|
29
|
+
default: "ui-button--default-size py-2 has-[>svg]:px-3",
|
|
30
|
+
md: "ui-button--default-size py-2 has-[>svg]:px-3",
|
|
31
|
+
xs: "h-[calc(var(--control-height)-0.75rem)] gap-1 px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
|
|
32
|
+
sm: "ui-button--sm gap-1.5 has-[>svg]:px-2.5",
|
|
33
|
+
lg: "ui-button--lg has-[>svg]:px-4",
|
|
34
|
+
icon: "ui-button--icon",
|
|
35
|
+
"icon-xs": "size-[calc(var(--control-height)-0.75rem)] [&_svg:not([class*='size-'])]:size-3",
|
|
36
|
+
"icon-sm": "size-[calc(var(--control-height)-0.5rem)]",
|
|
37
|
+
"icon-lg": "size-[calc(var(--control-height)+0.25rem)]"
|
|
38
|
+
},
|
|
39
|
+
// Single source of corner radius (deterministic — no competing rounded-* utility): default uses
|
|
40
|
+
// the control radius token, pill is fully rounded, sharp is square.
|
|
41
|
+
shape: {
|
|
42
|
+
default: "rounded-md",
|
|
43
|
+
pill: "rounded-[var(--radius-pill)]",
|
|
44
|
+
sharp: "rounded-[var(--radius-sharp)]"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
defaultVariants: { variant: "default", size: "default", shape: "default" }
|
|
48
|
+
});
|
|
49
|
+
const Button = React.forwardRef(
|
|
50
|
+
({
|
|
51
|
+
className,
|
|
52
|
+
variant,
|
|
53
|
+
size,
|
|
54
|
+
shape,
|
|
55
|
+
asChild = false,
|
|
56
|
+
loading = false,
|
|
57
|
+
loadingText,
|
|
58
|
+
count,
|
|
59
|
+
overflowCount = 99,
|
|
60
|
+
showZero = true,
|
|
61
|
+
disabled,
|
|
62
|
+
children,
|
|
63
|
+
...props
|
|
64
|
+
}, ref) => {
|
|
65
|
+
const { locale } = useTranslation();
|
|
66
|
+
const Comp = asChild ? Slot : "button";
|
|
67
|
+
const isLoading = !asChild && loading;
|
|
68
|
+
const content = isLoading ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
69
|
+
/* @__PURE__ */ jsx(Loader2, { className: "animate-spin", "aria-hidden": "true" }),
|
|
70
|
+
loadingText ?? children
|
|
71
|
+
] }) : children;
|
|
72
|
+
const showCount = !asChild && count != null && (count !== 0 || showZero);
|
|
73
|
+
const countLabel = showCount && count != null && count > overflowCount ? `${new Intl.NumberFormat(locale).format(overflowCount)}+` : count != null ? new Intl.NumberFormat(locale).format(count) : "";
|
|
74
|
+
const countNode = showCount ? /* @__PURE__ */ jsx(
|
|
75
|
+
"span",
|
|
76
|
+
{
|
|
77
|
+
"data-slot": "button-count",
|
|
78
|
+
className: cn(
|
|
79
|
+
"inline-flex min-w-4 items-center justify-center rounded-[var(--radius-pill)] px-1 text-xs leading-none tabular-nums",
|
|
80
|
+
buttonCountClass[variant ?? "default"]
|
|
81
|
+
),
|
|
82
|
+
children: countLabel
|
|
83
|
+
}
|
|
84
|
+
) : null;
|
|
85
|
+
return /* @__PURE__ */ jsx(
|
|
86
|
+
Comp,
|
|
87
|
+
{
|
|
88
|
+
"data-slot": "button",
|
|
89
|
+
"data-variant": variant ?? "default",
|
|
90
|
+
"data-size": size ?? "default",
|
|
91
|
+
"data-shape": shape ?? "default",
|
|
92
|
+
"data-loading": isLoading ? "" : void 0,
|
|
93
|
+
"aria-busy": isLoading || void 0,
|
|
94
|
+
disabled: isLoading || disabled,
|
|
95
|
+
className: cn(
|
|
96
|
+
"inline-flex shrink-0 items-center justify-center gap-2 text-sm font-medium whitespace-nowrap transition-all outline-none",
|
|
97
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
98
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
99
|
+
"data-[loading]:pointer-events-none",
|
|
100
|
+
"aria-invalid:border-destructive aria-invalid:ring-destructive/20",
|
|
101
|
+
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
102
|
+
buttonVariants({ variant, size, shape, className })
|
|
103
|
+
),
|
|
104
|
+
ref,
|
|
105
|
+
...props,
|
|
106
|
+
children: asChild ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
107
|
+
content,
|
|
108
|
+
countNode
|
|
109
|
+
] })
|
|
110
|
+
}
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
);
|
|
114
|
+
Button.displayName = "Button";
|
|
115
|
+
export {
|
|
116
|
+
Button,
|
|
117
|
+
buttonVariants
|
|
118
|
+
};
|
|
@@ -1,37 +1,4 @@
|
|
|
1
|
-
export { Button, buttonVariants } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
import '../../shared.prop-BvMSLFJ6.js';
|
|
6
|
-
import 'class-variance-authority/types';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Text — the typographic primitive. Use it INSTEAD of a hand-rolled `<span className="text-[13px]
|
|
10
|
-
* font-medium text-muted-foreground">`. `size` only accepts steps of the golden-ratio type scale
|
|
11
|
-
* (never an arbitrary px), `tone` maps to semantic foreground tokens, `weight` respects the system's
|
|
12
|
-
* 2-weight scale. Fully token-driven via `[data-slot="text"]` rules in text-layout.css.
|
|
13
|
-
*/
|
|
14
|
-
declare const Text: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLElement>, "color"> & {
|
|
15
|
-
as?: "span" | "p" | "div" | "label" | "strong" | "em" | "small" | "code" | "kbd" | "dt" | "dd" | "caption" | "abbr";
|
|
16
|
-
size?: TextSizeProp;
|
|
17
|
-
tone?: TextToneProp;
|
|
18
|
-
weight?: FontWeightProp;
|
|
19
|
-
align?: TextAlignProp;
|
|
20
|
-
truncate?: boolean;
|
|
21
|
-
tabular?: boolean;
|
|
22
|
-
mono?: boolean;
|
|
23
|
-
htmlFor?: string;
|
|
24
|
-
} & React.RefAttributes<HTMLElement>>;
|
|
25
|
-
/**
|
|
26
|
-
* Heading — h1..h4 sized from the `--heading-h*` tokens. `level` sets both the size token and the
|
|
27
|
-
* semantic element; override the rendered element with `as` (e.g. a visual h2 that is a real <h1>).
|
|
28
|
-
*/
|
|
29
|
-
declare const Heading: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
|
|
30
|
-
level?: HeadingLevelProp;
|
|
31
|
-
as?: "h1" | "h2" | "h3" | "h4" | "div";
|
|
32
|
-
tone?: TextToneProp;
|
|
33
|
-
align?: TextAlignProp;
|
|
34
|
-
truncate?: boolean;
|
|
35
|
-
} & React.RefAttributes<HTMLHeadingElement>>;
|
|
36
|
-
|
|
37
|
-
export { Heading, Text };
|
|
1
|
+
export { Button, buttonVariants } from "./button";
|
|
2
|
+
export type { ButtonProps } from "./button";
|
|
3
|
+
export { Text, Heading } from "./typography";
|
|
4
|
+
export type { TextProps, HeadingProps, TextProp, HeadingProp } from "./typography";
|