@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
package/dist/chunk-J2DEWIYY.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { cn } from './chunk-U7N2A7A3.js';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
4
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
var ScrollArea = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
7
|
-
ScrollAreaPrimitive.Root,
|
|
8
|
-
{
|
|
9
|
-
ref,
|
|
10
|
-
className: cn("relative overflow-hidden", className),
|
|
11
|
-
...props,
|
|
12
|
-
children: [
|
|
13
|
-
/* @__PURE__ */ jsx(ScrollAreaPrimitive.Viewport, { className: "size-full rounded-[inherit]", children }),
|
|
14
|
-
/* @__PURE__ */ jsx(ScrollBar, {}),
|
|
15
|
-
/* @__PURE__ */ jsx(ScrollAreaPrimitive.Corner, {})
|
|
16
|
-
]
|
|
17
|
-
}
|
|
18
|
-
));
|
|
19
|
-
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
20
|
-
var ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
21
|
-
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
22
|
-
{
|
|
23
|
-
ref,
|
|
24
|
-
orientation,
|
|
25
|
-
className: cn(
|
|
26
|
-
"flex touch-none transition-colors select-none",
|
|
27
|
-
orientation === "vertical" && "h-full w-2.5 border-s border-s-transparent p-px",
|
|
28
|
-
orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-px",
|
|
29
|
-
className
|
|
30
|
-
),
|
|
31
|
-
...props,
|
|
32
|
-
children: /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaThumb, { className: "bg-border relative flex-1 rounded-full" })
|
|
33
|
-
}
|
|
34
|
-
));
|
|
35
|
-
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
36
|
-
|
|
37
|
-
export { ScrollArea, ScrollBar };
|
package/dist/chunk-K24AQV4R.js
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { useTranslation } from './chunk-B6S6LTWT.js';
|
|
2
|
-
import { cn } from './chunk-U7N2A7A3.js';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { X } from 'lucide-react';
|
|
5
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
var inputBaseClass = [
|
|
8
|
-
"ui-control border-input bg-background w-full min-w-0 rounded-md border px-3 py-1 text-sm shadow-xs transition-[color,box-shadow] outline-none",
|
|
9
|
-
"selection:bg-primary selection:text-primary-foreground",
|
|
10
|
-
"file:text-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium",
|
|
11
|
-
"placeholder:text-muted-foreground",
|
|
12
|
-
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
13
|
-
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
14
|
-
"aria-invalid:border-destructive aria-invalid:ring-destructive/20"
|
|
15
|
-
];
|
|
16
|
-
var Input = React.forwardRef(
|
|
17
|
-
({ className, type, allowClear = false, onClear, value, defaultValue, onChange, ...props }, ref) => {
|
|
18
|
-
const { t } = useTranslation();
|
|
19
|
-
const innerRef = React.useRef(null);
|
|
20
|
-
const setRefs = React.useCallback(
|
|
21
|
-
(node) => {
|
|
22
|
-
innerRef.current = node;
|
|
23
|
-
if (typeof ref === "function") ref(node);
|
|
24
|
-
else if (ref) ref.current = node;
|
|
25
|
-
},
|
|
26
|
-
[ref]
|
|
27
|
-
);
|
|
28
|
-
const [hasText, setHasText] = React.useState(
|
|
29
|
-
() => String(value ?? defaultValue ?? "").length > 0
|
|
30
|
-
);
|
|
31
|
-
React.useEffect(() => {
|
|
32
|
-
if (value !== void 0) setHasText(String(value).length > 0);
|
|
33
|
-
}, [value]);
|
|
34
|
-
const handleChange = (event) => {
|
|
35
|
-
if (value === void 0) setHasText(event.target.value.length > 0);
|
|
36
|
-
onChange?.(event);
|
|
37
|
-
};
|
|
38
|
-
const clear = () => {
|
|
39
|
-
const el = innerRef.current;
|
|
40
|
-
if (el) {
|
|
41
|
-
const setter = Object.getOwnPropertyDescriptor(
|
|
42
|
-
window.HTMLInputElement.prototype,
|
|
43
|
-
"value"
|
|
44
|
-
)?.set;
|
|
45
|
-
setter?.call(el, "");
|
|
46
|
-
el.dispatchEvent(new Event("input", { bubbles: true }));
|
|
47
|
-
el.focus();
|
|
48
|
-
}
|
|
49
|
-
setHasText(false);
|
|
50
|
-
onClear?.();
|
|
51
|
-
};
|
|
52
|
-
if (!allowClear) {
|
|
53
|
-
return /* @__PURE__ */ jsx(
|
|
54
|
-
"input",
|
|
55
|
-
{
|
|
56
|
-
type,
|
|
57
|
-
"data-slot": "input",
|
|
58
|
-
ref: setRefs,
|
|
59
|
-
value,
|
|
60
|
-
defaultValue,
|
|
61
|
-
onChange,
|
|
62
|
-
className: cn(inputBaseClass, className),
|
|
63
|
-
...props
|
|
64
|
-
}
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
const showClear = hasText && !props.disabled && !props.readOnly;
|
|
68
|
-
return /* @__PURE__ */ jsxs("span", { "data-slot": "input-affix-wrapper", className: "relative inline-flex w-full items-center", children: [
|
|
69
|
-
/* @__PURE__ */ jsx(
|
|
70
|
-
"input",
|
|
71
|
-
{
|
|
72
|
-
type,
|
|
73
|
-
"data-slot": "input",
|
|
74
|
-
ref: setRefs,
|
|
75
|
-
value,
|
|
76
|
-
defaultValue,
|
|
77
|
-
onChange: handleChange,
|
|
78
|
-
className: cn(inputBaseClass, showClear && "pe-9", className),
|
|
79
|
-
...props
|
|
80
|
-
}
|
|
81
|
-
),
|
|
82
|
-
showClear ? /* @__PURE__ */ jsx(
|
|
83
|
-
"button",
|
|
84
|
-
{
|
|
85
|
-
type: "button",
|
|
86
|
-
tabIndex: -1,
|
|
87
|
-
"aria-label": t("common.clear") ?? "Clear",
|
|
88
|
-
onClick: clear,
|
|
89
|
-
className: "text-muted-foreground hover:text-foreground absolute end-2 inline-flex size-5 items-center justify-center rounded-sm opacity-70 transition-opacity hover:opacity-100 focus-visible:opacity-100",
|
|
90
|
-
children: /* @__PURE__ */ jsx(X, { className: "size-4", "aria-hidden": "true" })
|
|
91
|
-
}
|
|
92
|
-
) : null
|
|
93
|
-
] });
|
|
94
|
-
}
|
|
95
|
-
);
|
|
96
|
-
Input.displayName = "Input";
|
|
97
|
-
|
|
98
|
-
export { Input };
|
package/dist/chunk-LFW37FGG.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { useState, useEffect } from 'react';
|
|
2
|
-
|
|
3
|
-
// src/lib/hooks.ts
|
|
4
|
-
function useDebouncedValue(value, delay = 250) {
|
|
5
|
-
const [debounced, setDebounced] = useState(value);
|
|
6
|
-
useEffect(() => {
|
|
7
|
-
const t = setTimeout(() => {
|
|
8
|
-
setDebounced(value);
|
|
9
|
-
}, delay);
|
|
10
|
-
return () => {
|
|
11
|
-
clearTimeout(t);
|
|
12
|
-
};
|
|
13
|
-
}, [value, delay]);
|
|
14
|
-
return debounced;
|
|
15
|
-
}
|
|
16
|
-
function useTimeoutFlag(signal, ms = 2e3) {
|
|
17
|
-
const [active, setActive] = useState(false);
|
|
18
|
-
useEffect(() => {
|
|
19
|
-
if (!signal) {
|
|
20
|
-
const id = window.setTimeout(() => {
|
|
21
|
-
setActive(false);
|
|
22
|
-
}, 0);
|
|
23
|
-
return () => {
|
|
24
|
-
clearTimeout(id);
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
const showId = window.setTimeout(() => {
|
|
28
|
-
setActive(true);
|
|
29
|
-
}, 0);
|
|
30
|
-
const hideId = window.setTimeout(() => {
|
|
31
|
-
setActive(false);
|
|
32
|
-
}, ms);
|
|
33
|
-
return () => {
|
|
34
|
-
clearTimeout(showId);
|
|
35
|
-
clearTimeout(hideId);
|
|
36
|
-
};
|
|
37
|
-
}, [signal, ms]);
|
|
38
|
-
return Boolean(signal) && active;
|
|
39
|
-
}
|
|
40
|
-
function useMediaQuery(query) {
|
|
41
|
-
const isBrowser = typeof window !== "undefined";
|
|
42
|
-
const getMatch = () => isBrowser ? window.matchMedia(query).matches : false;
|
|
43
|
-
const [matches, setMatches] = useState(getMatch());
|
|
44
|
-
useEffect(() => {
|
|
45
|
-
if (!isBrowser) return void 0;
|
|
46
|
-
const mediaQuery = window.matchMedia(query);
|
|
47
|
-
const updateMatch = () => {
|
|
48
|
-
setMatches(mediaQuery.matches);
|
|
49
|
-
};
|
|
50
|
-
updateMatch();
|
|
51
|
-
if (typeof mediaQuery.addEventListener === "function") {
|
|
52
|
-
mediaQuery.addEventListener("change", updateMatch);
|
|
53
|
-
return () => {
|
|
54
|
-
mediaQuery.removeEventListener("change", updateMatch);
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
mediaQuery.addListener(updateMatch);
|
|
58
|
-
return () => {
|
|
59
|
-
mediaQuery.removeListener(updateMatch);
|
|
60
|
-
};
|
|
61
|
-
}, [isBrowser, query]);
|
|
62
|
-
return matches;
|
|
63
|
-
}
|
|
64
|
-
function useIsMobile() {
|
|
65
|
-
return useMediaQuery("(max-width: 767px)");
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export { useDebouncedValue, useIsMobile, useMediaQuery, useTimeoutFlag };
|
package/dist/chunk-LMKUKCTN.js
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { cn } from './chunk-U7N2A7A3.js';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
4
|
-
import { Check, ChevronRight } from 'lucide-react';
|
|
5
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
function DropdownMenu(props) {
|
|
8
|
-
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
|
|
9
|
-
}
|
|
10
|
-
function DropdownMenuTrigger(props) {
|
|
11
|
-
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
|
|
12
|
-
}
|
|
13
|
-
function DropdownMenuPortal(props) {
|
|
14
|
-
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { "data-slot": "dropdown-menu-portal", ...props });
|
|
15
|
-
}
|
|
16
|
-
function DropdownMenuGroup(props) {
|
|
17
|
-
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Group, { "data-slot": "dropdown-menu-group", ...props });
|
|
18
|
-
}
|
|
19
|
-
function DropdownMenuRadioGroup(props) {
|
|
20
|
-
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.RadioGroup, { "data-slot": "dropdown-menu-radio-group", ...props });
|
|
21
|
-
}
|
|
22
|
-
function DropdownMenuSub(props) {
|
|
23
|
-
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
|
|
24
|
-
}
|
|
25
|
-
var DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPortal, { children: /* @__PURE__ */ jsx(
|
|
26
|
-
DropdownMenuPrimitive.Content,
|
|
27
|
-
{
|
|
28
|
-
ref,
|
|
29
|
-
"data-slot": "dropdown-menu-content",
|
|
30
|
-
sideOffset,
|
|
31
|
-
className: cn(
|
|
32
|
-
"bg-popover text-popover-foreground data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-32 origin-[var(--radix-dropdown-menu-content-transform-origin)] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
33
|
-
className
|
|
34
|
-
),
|
|
35
|
-
...props
|
|
36
|
-
}
|
|
37
|
-
) }));
|
|
38
|
-
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
39
|
-
var DropdownMenuItem = React.forwardRef(({ className, inset, variant = "default", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
40
|
-
DropdownMenuPrimitive.Item,
|
|
41
|
-
{
|
|
42
|
-
ref,
|
|
43
|
-
"data-slot": "dropdown-menu-item",
|
|
44
|
-
"data-inset": inset,
|
|
45
|
-
"data-variant": variant,
|
|
46
|
-
className: cn(
|
|
47
|
-
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset=true]:ps-8 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
48
|
-
className
|
|
49
|
-
),
|
|
50
|
-
...props
|
|
51
|
-
}
|
|
52
|
-
));
|
|
53
|
-
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
54
|
-
var DropdownMenuLabel = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
55
|
-
DropdownMenuPrimitive.Label,
|
|
56
|
-
{
|
|
57
|
-
ref,
|
|
58
|
-
"data-slot": "dropdown-menu-label",
|
|
59
|
-
"data-inset": inset,
|
|
60
|
-
className: cn("px-2 py-1.5 text-sm font-medium data-[inset=true]:ps-8", className),
|
|
61
|
-
...props
|
|
62
|
-
}
|
|
63
|
-
));
|
|
64
|
-
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
65
|
-
var DropdownMenuSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
66
|
-
DropdownMenuPrimitive.Separator,
|
|
67
|
-
{
|
|
68
|
-
ref,
|
|
69
|
-
"data-slot": "dropdown-menu-separator",
|
|
70
|
-
className: cn("bg-border -mx-1 my-1 h-px", className),
|
|
71
|
-
...props
|
|
72
|
-
}
|
|
73
|
-
));
|
|
74
|
-
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
75
|
-
var DropdownMenuCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
76
|
-
DropdownMenuPrimitive.CheckboxItem,
|
|
77
|
-
{
|
|
78
|
-
ref,
|
|
79
|
-
"data-slot": "dropdown-menu-checkbox-item",
|
|
80
|
-
className: cn(
|
|
81
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 ps-8 pe-2 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
82
|
-
className
|
|
83
|
-
),
|
|
84
|
-
checked,
|
|
85
|
-
...props,
|
|
86
|
-
children: [
|
|
87
|
-
/* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute start-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "size-4", "aria-hidden": "true" }) }) }),
|
|
88
|
-
children
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
|
-
));
|
|
92
|
-
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
93
|
-
var DropdownMenuRadioItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
94
|
-
DropdownMenuPrimitive.RadioItem,
|
|
95
|
-
{
|
|
96
|
-
ref,
|
|
97
|
-
"data-slot": "dropdown-menu-radio-item",
|
|
98
|
-
className: cn(
|
|
99
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=checked]:bg-primary/10 data-[state=checked]:text-primary relative flex cursor-default items-center gap-2 rounded-sm px-2.5 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[state=checked]:font-medium [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
100
|
-
className
|
|
101
|
-
),
|
|
102
|
-
...props,
|
|
103
|
-
children
|
|
104
|
-
}
|
|
105
|
-
));
|
|
106
|
-
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
107
|
-
var DropdownMenuSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
108
|
-
DropdownMenuPrimitive.SubTrigger,
|
|
109
|
-
{
|
|
110
|
-
ref,
|
|
111
|
-
"data-slot": "dropdown-menu-sub-trigger",
|
|
112
|
-
"data-inset": inset,
|
|
113
|
-
className: cn(
|
|
114
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[inset=true]:ps-8 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
115
|
-
className
|
|
116
|
-
),
|
|
117
|
-
...props,
|
|
118
|
-
children: [
|
|
119
|
-
children,
|
|
120
|
-
/* @__PURE__ */ jsx(ChevronRight, { className: "ms-auto size-4", "aria-hidden": "true" })
|
|
121
|
-
]
|
|
122
|
-
}
|
|
123
|
-
));
|
|
124
|
-
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
125
|
-
var DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
126
|
-
DropdownMenuPrimitive.SubContent,
|
|
127
|
-
{
|
|
128
|
-
ref,
|
|
129
|
-
"data-slot": "dropdown-menu-sub-content",
|
|
130
|
-
className: cn(
|
|
131
|
-
"bg-popover text-popover-foreground data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 min-w-32 origin-[var(--radix-dropdown-menu-content-transform-origin)] overflow-hidden rounded-md border p-1 shadow-lg",
|
|
132
|
-
className
|
|
133
|
-
),
|
|
134
|
-
...props
|
|
135
|
-
}
|
|
136
|
-
));
|
|
137
|
-
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
138
|
-
var DropdownMenuShortcut = ({
|
|
139
|
-
className,
|
|
140
|
-
...props
|
|
141
|
-
}) => /* @__PURE__ */ jsx(
|
|
142
|
-
"span",
|
|
143
|
-
{
|
|
144
|
-
"data-slot": "dropdown-menu-shortcut",
|
|
145
|
-
className: cn("text-muted-foreground ms-auto text-xs tracking-widest", className),
|
|
146
|
-
...props
|
|
147
|
-
}
|
|
148
|
-
);
|
|
149
|
-
|
|
150
|
-
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
package/dist/chunk-NU2SOVTU.js
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { buttonVariants } from './chunk-XBFUROAY.js';
|
|
2
|
-
import { controlIconSmClass } from './chunk-B4K4BXEF.js';
|
|
3
|
-
import { cn } from './chunk-U7N2A7A3.js';
|
|
4
|
-
import { ChevronLeft, ChevronRight } from 'lucide-react';
|
|
5
|
-
import { DayPicker } from 'react-day-picker';
|
|
6
|
-
import { jsx } from 'react/jsx-runtime';
|
|
7
|
-
|
|
8
|
-
function Calendar({
|
|
9
|
-
className,
|
|
10
|
-
classNames,
|
|
11
|
-
showOutsideDays = true,
|
|
12
|
-
...props
|
|
13
|
-
}) {
|
|
14
|
-
const rangeDefaults = props.mode === "range" ? { resetOnSelect: props.resetOnSelect ?? true } : null;
|
|
15
|
-
return /* @__PURE__ */ jsx(
|
|
16
|
-
DayPicker,
|
|
17
|
-
{
|
|
18
|
-
showOutsideDays,
|
|
19
|
-
className: cn("relative w-fit p-3", className),
|
|
20
|
-
classNames: {
|
|
21
|
-
months: cn("flex flex-col gap-4 sm:flex-row", classNames?.months),
|
|
22
|
-
month: cn("relative flex flex-col gap-4", classNames?.month),
|
|
23
|
-
month_caption: cn(
|
|
24
|
-
"flex h-[length:var(--control-height)] w-full items-center justify-center px-8",
|
|
25
|
-
classNames?.month_caption
|
|
26
|
-
),
|
|
27
|
-
caption_label: cn("text-sm font-medium", classNames?.caption_label),
|
|
28
|
-
// z-10 is load-bearing: `month` below is position:relative and later in the DOM, so
|
|
29
|
-
// without a z-index it paints OVER these buttons — they render but never receive the
|
|
30
|
-
// click (the month caption swallows it) and the calendar looks frozen.
|
|
31
|
-
nav: cn(
|
|
32
|
-
"absolute inset-x-0 top-3 z-10 flex items-center justify-between px-1",
|
|
33
|
-
classNames?.nav
|
|
34
|
-
),
|
|
35
|
-
button_previous: cn(
|
|
36
|
-
buttonVariants({ variant: "outline" }),
|
|
37
|
-
controlIconSmClass,
|
|
38
|
-
"bg-transparent p-0 opacity-70 hover:opacity-100",
|
|
39
|
-
classNames?.button_previous
|
|
40
|
-
),
|
|
41
|
-
button_next: cn(
|
|
42
|
-
buttonVariants({ variant: "outline" }),
|
|
43
|
-
controlIconSmClass,
|
|
44
|
-
"bg-transparent p-0 opacity-70 hover:opacity-100",
|
|
45
|
-
classNames?.button_next
|
|
46
|
-
),
|
|
47
|
-
month_grid: cn("mt-4 w-full border-collapse", classNames?.month_grid),
|
|
48
|
-
weekdays: cn("flex", classNames?.weekdays),
|
|
49
|
-
weekday: cn(
|
|
50
|
-
"w-[length:var(--control-height)] rounded-md text-xs font-normal text-muted-foreground",
|
|
51
|
-
classNames?.weekday
|
|
52
|
-
),
|
|
53
|
-
week: cn("mt-2 flex w-full", classNames?.week),
|
|
54
|
-
day: cn(
|
|
55
|
-
"relative p-0 text-center text-sm focus-within:relative focus-within:z-20",
|
|
56
|
-
"[&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50",
|
|
57
|
-
"[&:has([aria-selected].day-range-end)]:rounded-e-md",
|
|
58
|
-
classNames?.day
|
|
59
|
-
),
|
|
60
|
-
day_button: cn(
|
|
61
|
-
buttonVariants({ variant: "ghost" }),
|
|
62
|
-
"size-[length:var(--control-height)] p-0 font-normal aria-selected:opacity-100",
|
|
63
|
-
classNames?.day_button
|
|
64
|
-
),
|
|
65
|
-
range_start: cn("day-range-start rounded-s-md", classNames?.range_start),
|
|
66
|
-
range_end: cn("day-range-end rounded-e-md", classNames?.range_end),
|
|
67
|
-
range_middle: cn(
|
|
68
|
-
"aria-selected:bg-accent aria-selected:text-accent-foreground",
|
|
69
|
-
classNames?.range_middle
|
|
70
|
-
),
|
|
71
|
-
selected: cn(
|
|
72
|
-
"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
|
|
73
|
-
classNames?.selected
|
|
74
|
-
),
|
|
75
|
-
today: cn("bg-accent text-accent-foreground", classNames?.today),
|
|
76
|
-
outside: cn(
|
|
77
|
-
"day-outside text-muted-foreground aria-selected:text-muted-foreground",
|
|
78
|
-
classNames?.outside
|
|
79
|
-
),
|
|
80
|
-
disabled: cn("text-muted-foreground opacity-50", classNames?.disabled),
|
|
81
|
-
hidden: cn("invisible", classNames?.hidden),
|
|
82
|
-
...classNames
|
|
83
|
-
},
|
|
84
|
-
components: {
|
|
85
|
-
Chevron: ({ orientation, className: chevronClassName }) => {
|
|
86
|
-
const Icon = orientation === "left" ? ChevronLeft : ChevronRight;
|
|
87
|
-
return /* @__PURE__ */ jsx(Icon, { className: cn("size-4", chevronClassName), "aria-hidden": "true" });
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
...props,
|
|
91
|
-
...rangeDefaults
|
|
92
|
-
}
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export { Calendar };
|
package/dist/chunk-NZBAFFWP.js
DELETED
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
import { useTranslation } from './chunk-B6S6LTWT.js';
|
|
2
|
-
import { cn } from './chunk-U7N2A7A3.js';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import useEmblaCarousel from 'embla-carousel-react';
|
|
5
|
-
import { ChevronLeft, ChevronRight } from 'lucide-react';
|
|
6
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
|
-
|
|
8
|
-
var CarouselContext = React.createContext(null);
|
|
9
|
-
var useCarousel = () => {
|
|
10
|
-
const context = React.useContext(CarouselContext);
|
|
11
|
-
if (!context) {
|
|
12
|
-
throw new Error("useCarousel must be used within a Carousel component");
|
|
13
|
-
}
|
|
14
|
-
return context;
|
|
15
|
-
};
|
|
16
|
-
var Carousel = React.forwardRef(({ className, opts, plugins, setApi, children, ...props }, ref) => {
|
|
17
|
-
const { t } = useTranslation();
|
|
18
|
-
const [emblaRef, api] = useEmblaCarousel(opts, plugins);
|
|
19
|
-
const [canScrollPrev, setCanScrollPrev] = React.useState(false);
|
|
20
|
-
const [canScrollNext, setCanScrollNext] = React.useState(false);
|
|
21
|
-
const [selectedIndex, setSelectedIndex] = React.useState(0);
|
|
22
|
-
const [scrollSnaps, setScrollSnaps] = React.useState([]);
|
|
23
|
-
const onSelect = React.useCallback(() => {
|
|
24
|
-
if (!api) return;
|
|
25
|
-
setCanScrollPrev(api.canScrollPrev());
|
|
26
|
-
setCanScrollNext(api.canScrollNext());
|
|
27
|
-
setSelectedIndex(api.selectedScrollSnap());
|
|
28
|
-
}, [api]);
|
|
29
|
-
React.useEffect(() => {
|
|
30
|
-
if (!api) return void 0;
|
|
31
|
-
onSelect();
|
|
32
|
-
setScrollSnaps(api.scrollSnapList());
|
|
33
|
-
setApi?.(api);
|
|
34
|
-
api.on("reInit", onSelect);
|
|
35
|
-
api.on("reInit", () => setScrollSnaps(api.scrollSnapList()));
|
|
36
|
-
api.on("select", onSelect);
|
|
37
|
-
return () => {
|
|
38
|
-
api.off("reInit", onSelect);
|
|
39
|
-
api.off("select", onSelect);
|
|
40
|
-
};
|
|
41
|
-
}, [api, onSelect, setApi]);
|
|
42
|
-
const scrollPrev = React.useCallback(() => {
|
|
43
|
-
api?.scrollPrev();
|
|
44
|
-
}, [api]);
|
|
45
|
-
const scrollNext = React.useCallback(() => {
|
|
46
|
-
api?.scrollNext();
|
|
47
|
-
}, [api]);
|
|
48
|
-
const scrollTo = React.useCallback(
|
|
49
|
-
(index) => {
|
|
50
|
-
api?.scrollTo(index);
|
|
51
|
-
},
|
|
52
|
-
[api]
|
|
53
|
-
);
|
|
54
|
-
const contextValue = React.useMemo(
|
|
55
|
-
() => ({
|
|
56
|
-
canScrollPrev,
|
|
57
|
-
canScrollNext,
|
|
58
|
-
selectedIndex,
|
|
59
|
-
scrollSnaps,
|
|
60
|
-
api,
|
|
61
|
-
scrollPrev,
|
|
62
|
-
scrollNext,
|
|
63
|
-
scrollTo
|
|
64
|
-
}),
|
|
65
|
-
[
|
|
66
|
-
canScrollPrev,
|
|
67
|
-
canScrollNext,
|
|
68
|
-
selectedIndex,
|
|
69
|
-
scrollSnaps,
|
|
70
|
-
api,
|
|
71
|
-
scrollPrev,
|
|
72
|
-
scrollNext,
|
|
73
|
-
scrollTo
|
|
74
|
-
]
|
|
75
|
-
);
|
|
76
|
-
return /* @__PURE__ */ jsx(CarouselContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
|
|
77
|
-
"div",
|
|
78
|
-
{
|
|
79
|
-
ref,
|
|
80
|
-
"data-slot": "carousel",
|
|
81
|
-
className: cn("ui-carousel", className),
|
|
82
|
-
"data-orientation": opts?.axis === "y" ? "vertical" : "horizontal",
|
|
83
|
-
role: "region",
|
|
84
|
-
"aria-roledescription": t("dataDisplay.carousel.roleDescription"),
|
|
85
|
-
"aria-label": t("dataDisplay.carousel.ariaLabel"),
|
|
86
|
-
...props,
|
|
87
|
-
children: /* @__PURE__ */ jsx("div", { className: "ui-carousel-viewport", ref: emblaRef, children })
|
|
88
|
-
}
|
|
89
|
-
) });
|
|
90
|
-
});
|
|
91
|
-
Carousel.displayName = "Carousel";
|
|
92
|
-
var CarouselContent = React.forwardRef(({ className, children, ...props }, ref) => {
|
|
93
|
-
const { t } = useTranslation();
|
|
94
|
-
const total = React.Children.toArray(children).filter(React.isValidElement).length;
|
|
95
|
-
let slideIndex = 0;
|
|
96
|
-
const decorated = React.Children.map(children, (child) => {
|
|
97
|
-
if (!React.isValidElement(child)) return child;
|
|
98
|
-
const index = slideIndex++;
|
|
99
|
-
const childProps = child.props;
|
|
100
|
-
if (childProps["aria-label"] != null) return child;
|
|
101
|
-
return React.cloneElement(child, {
|
|
102
|
-
"aria-label": t("dataDisplay.carousel.slideLabel", {
|
|
103
|
-
index: index + 1,
|
|
104
|
-
total
|
|
105
|
-
})
|
|
106
|
-
});
|
|
107
|
-
});
|
|
108
|
-
return /* @__PURE__ */ jsx(
|
|
109
|
-
"div",
|
|
110
|
-
{
|
|
111
|
-
ref,
|
|
112
|
-
"data-slot": "carousel-content",
|
|
113
|
-
className: cn("ui-carousel-content", className),
|
|
114
|
-
...props,
|
|
115
|
-
children: decorated
|
|
116
|
-
}
|
|
117
|
-
);
|
|
118
|
-
});
|
|
119
|
-
CarouselContent.displayName = "CarouselContent";
|
|
120
|
-
var CarouselItem = React.forwardRef(
|
|
121
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
122
|
-
"div",
|
|
123
|
-
{
|
|
124
|
-
ref,
|
|
125
|
-
"data-slot": "carousel-item",
|
|
126
|
-
role: "group",
|
|
127
|
-
"aria-roledescription": "slide",
|
|
128
|
-
className: cn("ui-carousel-item", className),
|
|
129
|
-
...props
|
|
130
|
-
}
|
|
131
|
-
)
|
|
132
|
-
);
|
|
133
|
-
CarouselItem.displayName = "CarouselItem";
|
|
134
|
-
var CarouselPrevious = React.forwardRef(({ className, ...props }, ref) => {
|
|
135
|
-
const { t } = useTranslation();
|
|
136
|
-
const { canScrollPrev, scrollPrev } = useCarousel();
|
|
137
|
-
return /* @__PURE__ */ jsxs(
|
|
138
|
-
"button",
|
|
139
|
-
{
|
|
140
|
-
ref,
|
|
141
|
-
type: "button",
|
|
142
|
-
"data-slot": "carousel-previous",
|
|
143
|
-
disabled: !canScrollPrev,
|
|
144
|
-
className: cn("ui-carousel-previous", className),
|
|
145
|
-
onClick: scrollPrev,
|
|
146
|
-
...props,
|
|
147
|
-
children: [
|
|
148
|
-
/* @__PURE__ */ jsx(ChevronLeft, { className: "ui-carousel-arrow", "aria-hidden": "true" }),
|
|
149
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: t("dataDisplay.carousel.previous") })
|
|
150
|
-
]
|
|
151
|
-
}
|
|
152
|
-
);
|
|
153
|
-
});
|
|
154
|
-
CarouselPrevious.displayName = "CarouselPrevious";
|
|
155
|
-
var CarouselNext = React.forwardRef(({ className, ...props }, ref) => {
|
|
156
|
-
const { t } = useTranslation();
|
|
157
|
-
const { canScrollNext, scrollNext } = useCarousel();
|
|
158
|
-
return /* @__PURE__ */ jsxs(
|
|
159
|
-
"button",
|
|
160
|
-
{
|
|
161
|
-
ref,
|
|
162
|
-
type: "button",
|
|
163
|
-
"data-slot": "carousel-next",
|
|
164
|
-
disabled: !canScrollNext,
|
|
165
|
-
className: cn("ui-carousel-next", className),
|
|
166
|
-
onClick: scrollNext,
|
|
167
|
-
...props,
|
|
168
|
-
children: [
|
|
169
|
-
/* @__PURE__ */ jsx(ChevronRight, { className: "ui-carousel-arrow", "aria-hidden": "true" }),
|
|
170
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: t("dataDisplay.carousel.next") })
|
|
171
|
-
]
|
|
172
|
-
}
|
|
173
|
-
);
|
|
174
|
-
});
|
|
175
|
-
CarouselNext.displayName = "CarouselNext";
|
|
176
|
-
var CarouselDots = React.forwardRef(
|
|
177
|
-
({ className, ...props }, ref) => {
|
|
178
|
-
const { t } = useTranslation();
|
|
179
|
-
const { scrollSnaps, selectedIndex, scrollTo } = useCarousel();
|
|
180
|
-
if (scrollSnaps.length <= 1) return null;
|
|
181
|
-
return /* @__PURE__ */ jsx(
|
|
182
|
-
"div",
|
|
183
|
-
{
|
|
184
|
-
ref,
|
|
185
|
-
"data-slot": "carousel-dots",
|
|
186
|
-
className: cn("ui-carousel-dots", className),
|
|
187
|
-
role: "tablist",
|
|
188
|
-
"aria-label": t("dataDisplay.carousel.dotsLabel"),
|
|
189
|
-
...props,
|
|
190
|
-
children: scrollSnaps.map((_, index) => {
|
|
191
|
-
const active = index === selectedIndex;
|
|
192
|
-
return /* @__PURE__ */ jsx(
|
|
193
|
-
"button",
|
|
194
|
-
{
|
|
195
|
-
type: "button",
|
|
196
|
-
role: "tab",
|
|
197
|
-
"data-slot": "carousel-dot",
|
|
198
|
-
"data-active": active ? "" : void 0,
|
|
199
|
-
className: "ui-carousel-dot",
|
|
200
|
-
"aria-selected": active,
|
|
201
|
-
"aria-current": active ? "true" : void 0,
|
|
202
|
-
"aria-label": t("dataDisplay.carousel.goToSlide", { index: index + 1 }),
|
|
203
|
-
onClick: () => scrollTo(index)
|
|
204
|
-
},
|
|
205
|
-
index
|
|
206
|
-
);
|
|
207
|
-
})
|
|
208
|
-
}
|
|
209
|
-
);
|
|
210
|
-
}
|
|
211
|
-
);
|
|
212
|
-
CarouselDots.displayName = "CarouselDots";
|
|
213
|
-
|
|
214
|
-
export { Carousel, CarouselContent, CarouselDots, CarouselItem, CarouselNext, CarouselPrevious, useCarousel };
|