@soybeanjs/ui 0.17.0 → 0.19.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/README.md +27 -5
- package/README.zh-CN.md +27 -5
- package/dist/components/accordion/accordion.js +1 -1
- package/dist/components/accordion/types.d.ts +3 -3
- package/dist/components/affix/affix.js +1 -1
- package/dist/components/affix/types.d.ts +2 -2
- package/dist/components/alert/alert.js +1 -1
- package/dist/components/alert/alert.vue.d.ts +2 -0
- package/dist/components/alert/types.d.ts +4 -4
- package/dist/components/anchor/anchor.js +1 -1
- package/dist/components/anchor/types.d.ts +3 -3
- package/dist/components/autocomplete/autocomplete.js +1 -1
- package/dist/components/autocomplete/types.d.ts +3 -3
- package/dist/components/avatar/avatar.js +1 -1
- package/dist/components/avatar/avatar.vue.d.ts +2 -8
- package/dist/components/avatar/types.d.ts +4 -24
- package/dist/components/backtop/backtop.js +1 -1
- package/dist/components/backtop/backtop.vue.d.ts +2 -2
- package/dist/components/backtop/types.d.ts +2 -2
- package/dist/components/backtop/variants.js +1 -1
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/badge/badge.vue.d.ts +2 -6
- package/dist/components/badge/types.d.ts +4 -12
- package/dist/components/badge/variants.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet.js +1 -1
- package/dist/components/bottom-sheet/types.d.ts +3 -3
- package/dist/components/bottom-sheet/variants.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/components/breadcrumb/types.d.ts +3 -3
- package/dist/components/button/button-group.js +1 -1
- package/dist/components/button/button-icon.js +1 -1
- package/dist/components/button/button-link.js +1 -1
- package/dist/components/button/button-link.vue.d.ts +1 -1
- package/dist/components/button/button-loading.js +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/button.vue.d.ts +2 -2
- package/dist/components/button/types.d.ts +6 -6
- package/dist/components/button/variants.js +1 -1
- package/dist/components/calendar/calendar.js +1 -1
- package/dist/components/calendar/types.d.ts +3 -3
- package/dist/components/calendar-range/calendar-range.js +1 -0
- package/dist/components/{range-calendar/range-calendar.vue.d.ts → calendar-range/calendar-range.vue.d.ts} +5 -5
- package/dist/components/calendar-range/index.d.ts +3 -0
- package/dist/components/calendar-range/index.js +1 -0
- package/dist/components/calendar-range/types.d.ts +32 -0
- package/dist/components/calendar-range/variants.js +1 -0
- package/dist/components/card/card-collapsible-trigger.js +1 -1
- package/dist/components/card/card.js +1 -1
- package/dist/components/card/types.d.ts +1 -1
- package/dist/components/carousel/carousel.js +1 -1
- package/dist/components/carousel/carousel.vue.d.ts +16 -19
- package/dist/components/carousel/index.d.ts +1 -5
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/carousel/types.d.ts +22 -7
- package/dist/components/carousel/variants.js +1 -1
- package/dist/components/checkbox/checkbox-card-group.js +1 -1
- package/dist/components/checkbox/checkbox-card.js +1 -1
- package/dist/components/checkbox/checkbox-group.js +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/checkbox/types.d.ts +8 -8
- package/dist/components/clipboard/clipboard.js +1 -1
- package/dist/components/clipboard/clipboard.vue.d.ts +2 -2
- package/dist/components/clipboard/types.d.ts +1 -1
- package/dist/components/collapsible/collapsible.js +1 -1
- package/dist/components/collapsible/collapsible.vue.d.ts +1 -1
- package/dist/components/collapsible/types.d.ts +2 -2
- package/dist/components/color-area/color-area.js +1 -1
- package/dist/components/color-area/color-area.vue.d.ts +5 -5
- package/dist/components/color-area/types.d.ts +5 -13
- package/dist/components/color-field/color-field.js +1 -1
- package/dist/components/color-field/color-field.vue.d.ts +3 -3
- package/dist/components/color-field/types.d.ts +5 -9
- package/dist/components/color-field/variants.js +1 -1
- package/dist/components/color-picker/color-picker.js +1 -1
- package/dist/components/color-picker/color-picker.vue.d.ts +21 -36
- package/dist/components/color-picker/index.d.ts +1 -1
- package/dist/components/color-picker/types.d.ts +8 -120
- package/dist/components/color-picker/variants.js +1 -1
- package/dist/components/color-slider/color-slider.js +1 -1
- package/dist/components/color-slider/color-slider.vue.d.ts +5 -5
- package/dist/components/color-slider/types.d.ts +5 -13
- package/dist/components/color-swatch/color-swatch.js +1 -1
- package/dist/components/color-swatch/color-swatch.vue.d.ts +2 -5
- package/dist/components/color-swatch/index.d.ts +3 -2
- package/dist/components/color-swatch/types.d.ts +10 -14
- package/dist/components/color-swatch-picker/color-swatch-picker.js +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker.vue.d.ts +6 -6
- package/dist/components/color-swatch-picker/types.d.ts +6 -22
- package/dist/components/color-swatch-picker/variants.d.ts +9 -9
- package/dist/components/color-swatch-picker/variants.js +1 -1
- package/dist/components/combobox/combobox.js +1 -1
- package/dist/components/combobox/types.d.ts +3 -3
- package/dist/components/command/command.js +1 -1
- package/dist/components/command/command.vue.d.ts +1 -1
- package/dist/components/command/types.d.ts +3 -3
- package/dist/components/config-provider/config-provider.js +1 -1
- package/dist/components/config-provider/config-provider.vue.d.ts +1 -1
- package/dist/components/config-provider/types.d.ts +3 -5
- package/dist/components/context-menu/context-menu-checkbox.js +1 -1
- package/dist/components/context-menu/context-menu-checkbox.vue.d.ts +1 -1
- package/dist/components/context-menu/context-menu-radio.js +1 -1
- package/dist/components/context-menu/context-menu-radio.vue.d.ts +3 -3
- package/dist/components/context-menu/context-menu-wrapper.js +1 -1
- package/dist/components/context-menu/context-menu.js +1 -1
- package/dist/components/context-menu/context-menu.vue.d.ts +1 -1
- package/dist/components/context-menu/index.d.ts +4 -4
- package/dist/components/context-menu/index.js +1 -1
- package/dist/components/context-menu/types.d.ts +11 -11
- package/dist/components/date-field/date-field.js +1 -1
- package/dist/components/date-field/date-field.vue.d.ts +4 -4
- package/dist/components/date-field/types.d.ts +2 -2
- package/dist/components/date-field/variants.js +1 -1
- package/dist/components/date-picker/date-picker.js +1 -1
- package/dist/components/date-picker/date-picker.vue.d.ts +17 -11
- package/dist/components/date-picker/index.d.ts +1 -1
- package/dist/components/date-picker/types.d.ts +9 -8
- package/dist/components/date-picker/variants.js +1 -1
- package/dist/components/date-range-field/date-range-field.js +1 -1
- package/dist/components/date-range-field/date-range-field.vue.d.ts +1 -3
- package/dist/components/date-range-field/index.d.ts +1 -1
- package/dist/components/date-range-field/types.d.ts +8 -52
- package/dist/components/date-range-field/variants.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.vue.d.ts +20 -14
- package/dist/components/date-range-picker/index.d.ts +1 -1
- package/dist/components/date-range-picker/types.d.ts +9 -41
- package/dist/components/dialog/dialog-provider.js +1 -1
- package/dist/components/dialog/dialog.js +1 -1
- package/dist/components/dialog/dialog.vue.d.ts +2 -0
- package/dist/components/dialog/types.d.ts +3 -3
- package/dist/components/drawer/drawer.js +1 -1
- package/dist/components/drawer/drawer.vue.d.ts +2 -0
- package/dist/components/drawer/types.d.ts +3 -3
- package/dist/components/dropdown-menu/dropdown-menu-checkbox.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-checkbox.vue.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-radio.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-radio.vue.d.ts +3 -3
- package/dist/components/dropdown-menu/dropdown-menu-wrapper.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.vue.d.ts +1 -1
- package/dist/components/dropdown-menu/types.d.ts +11 -11
- package/dist/components/editable/editable.js +1 -1
- package/dist/components/editable/editable.vue.d.ts +6 -6
- package/dist/components/editable/types.d.ts +9 -9
- package/dist/components/empty/empty.js +1 -1
- package/dist/components/empty/empty.vue.d.ts +2 -8
- package/dist/components/empty/index.d.ts +1 -2
- package/dist/components/empty/types.d.ts +11 -40
- package/dist/components/empty/variants.js +1 -1
- package/dist/components/form/form-field-array.js +1 -0
- package/dist/components/form/form-field-base.js +1 -1
- package/dist/components/form/form-field-base.vue.d.ts +3 -16
- package/dist/components/form/form-field.js +1 -0
- package/dist/components/form/form.js +1 -1
- package/dist/components/form/form.vue.d.ts +2 -2
- package/dist/components/form/index.d.ts +1 -1
- package/dist/components/form/types.d.ts +20 -123
- package/dist/components/form/use-form.d.ts +3 -41
- package/dist/components/form/use-form.js +1 -1
- package/dist/components/form/variants.js +1 -1
- package/dist/components/hover-card/hover-card.js +1 -1
- package/dist/components/hover-card/types.d.ts +7 -7
- package/dist/components/icon/types.d.ts +2 -2
- package/dist/components/input/index.d.ts +4 -2
- package/dist/components/input/index.js +1 -1
- package/dist/components/input/input.js +1 -1
- package/dist/components/input/input.vue.d.ts +2 -7
- package/dist/components/input/types.d.ts +10 -20
- package/dist/components/input/variants.js +1 -1
- package/dist/components/input-number/index.d.ts +1 -1
- package/dist/components/input-number/input-number.js +1 -1
- package/dist/components/input-number/input-number.vue.d.ts +6 -13
- package/dist/components/input-number/types.d.ts +10 -26
- package/dist/components/input-number/variants.js +1 -1
- package/dist/components/input-otp/input-otp.js +1 -1
- package/dist/components/input-otp/input-otp.vue.d.ts +2 -2
- package/dist/components/input-otp/types.d.ts +3 -3
- package/dist/components/kbd/kbd.js +1 -1
- package/dist/components/kbd/types.d.ts +1 -1
- package/dist/components/label/label.js +1 -1
- package/dist/components/label/types.d.ts +1 -1
- package/dist/components/layout/layout-classic.js +1 -1
- package/dist/components/layout/layout.js +1 -1
- package/dist/components/layout/types.d.ts +6 -6
- package/dist/components/link/link.js +1 -1
- package/dist/components/link/types.d.ts +1 -1
- package/dist/components/list/list.js +1 -1
- package/dist/components/list/types.d.ts +5 -5
- package/dist/components/menu/context.js +1 -1
- package/dist/components/menu/index.d.ts +1 -8
- package/dist/components/menu/types.d.ts +1 -1
- package/dist/components/menubar/menubar.js +1 -1
- package/dist/components/menubar/menubar.vue.d.ts +1 -1
- package/dist/components/menubar/types.d.ts +3 -3
- package/dist/components/navigation-menu/navigation-menu.js +1 -1
- package/dist/components/navigation-menu/types.d.ts +20 -20
- package/dist/components/page-tabs/index.d.ts +1 -1
- package/dist/components/page-tabs/page-tabs.js +1 -1
- package/dist/components/page-tabs/page-tabs.vue.d.ts +7 -5
- package/dist/components/page-tabs/types.d.ts +12 -119
- package/dist/components/page-tabs/variants.js +1 -1
- package/dist/components/pagination/pagination.js +1 -1
- package/dist/components/pagination/types.d.ts +9 -9
- package/dist/components/password/index.d.ts +3 -2
- package/dist/components/password/password.js +1 -1
- package/dist/components/password/password.vue.d.ts +2 -12
- package/dist/components/password/types.d.ts +10 -27
- package/dist/components/popconfirm/index.d.ts +3 -5
- package/dist/components/popconfirm/index.js +1 -1
- package/dist/components/popconfirm/popconfirm.js +1 -1
- package/dist/components/popconfirm/popconfirm.vue.d.ts +6 -27
- package/dist/components/popconfirm/types.d.ts +10 -211
- package/dist/components/popconfirm/variants.js +1 -1
- package/dist/components/popover/index.d.ts +1 -1
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/popover/popover.vue.d.ts +2 -9
- package/dist/components/popover/types.d.ts +11 -39
- package/dist/components/popover/variants.js +1 -1
- package/dist/components/progress/index.d.ts +11 -3
- package/dist/components/progress/progress-circle.js +1 -1
- package/dist/components/progress/progress-circle.vue.d.ts +2 -10
- package/dist/components/progress/progress-provider.js +1 -1
- package/dist/components/progress/progress-provider.vue.d.ts +1 -1
- package/dist/components/progress/progress.js +1 -1
- package/dist/components/progress/progress.vue.d.ts +2 -11
- package/dist/components/progress/types.d.ts +18 -18
- package/dist/components/progress/variants.js +1 -1
- package/dist/components/radio-group/radio-card-group.js +1 -1
- package/dist/components/radio-group/radio-card-group.vue.d.ts +3 -2
- package/dist/components/radio-group/radio-card.js +1 -1
- package/dist/components/radio-group/radio-group.js +1 -1
- package/dist/components/radio-group/radio-group.vue.d.ts +2 -2
- package/dist/components/radio-group/types.d.ts +12 -12
- package/dist/components/scroll-area/scroll-area.js +1 -1
- package/dist/components/scroll-area/scroll-area.vue.d.ts +2 -2
- package/dist/components/scroll-area/types.d.ts +5 -25
- package/dist/components/segment/segment.js +1 -1
- package/dist/components/segment/segment.vue.d.ts +2 -2
- package/dist/components/segment/types.d.ts +3 -3
- package/dist/components/select/select.js +1 -1
- package/dist/components/select/select.vue.d.ts +1 -1
- package/dist/components/select/types.d.ts +3 -3
- package/dist/components/separator/separator.js +1 -1
- package/dist/components/separator/separator.vue.d.ts +11 -1
- package/dist/components/separator/types.d.ts +3 -11
- package/dist/components/separator/variants.js +1 -1
- package/dist/components/skeleton/skeleton.js +1 -1
- package/dist/components/skeleton/types.d.ts +1 -1
- package/dist/components/slider/slider.js +1 -1
- package/dist/components/slider/slider.vue.d.ts +6 -7
- package/dist/components/slider/types.d.ts +5 -17
- package/dist/components/spinner/spinner.js +1 -1
- package/dist/components/spinner/types.d.ts +2 -2
- package/dist/components/splitter/splitter-group.js +1 -1
- package/dist/components/splitter/splitter-panel.js +1 -1
- package/dist/components/splitter/splitter-resize-handle.js +1 -1
- package/dist/components/splitter/splitter-resize-handle.vue.d.ts +2 -2
- package/dist/components/splitter/types.d.ts +6 -6
- package/dist/components/stepper/stepper.js +1 -1
- package/dist/components/stepper/stepper.vue.d.ts +5 -5
- package/dist/components/stepper/types.d.ts +10 -10
- package/dist/components/switch/index.d.ts +1 -1
- package/dist/components/switch/switch.js +1 -1
- package/dist/components/switch/switch.vue.d.ts +2 -638
- package/dist/components/switch/types.d.ts +10 -14
- package/dist/components/switch/variants.d.ts +2 -2
- package/dist/components/switch/variants.js +1 -1
- package/dist/components/table/hooks.d.ts +3 -3
- package/dist/components/table/table-filter-popover.js +1 -1
- package/dist/components/table/table.js +1 -1
- package/dist/components/table/table.vue.d.ts +2 -2
- package/dist/components/table/types.d.ts +8 -8
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/tabs/tabs.vue.d.ts +2 -2
- package/dist/components/tabs/types.d.ts +3 -3
- package/dist/components/tag/tag.js +1 -1
- package/dist/components/tag/types.d.ts +1 -1
- package/dist/components/tags-input/index.d.ts +3 -4
- package/dist/components/tags-input/index.js +1 -1
- package/dist/components/tags-input/tags-input.js +1 -1
- package/dist/components/tags-input/tags-input.vue.d.ts +18 -22
- package/dist/components/tags-input/types.d.ts +10 -6
- package/dist/components/tags-input/variants.js +1 -1
- package/dist/components/textarea/index.d.ts +4 -2
- package/dist/components/textarea/index.js +1 -1
- package/dist/components/textarea/textarea.js +1 -1
- package/dist/components/textarea/textarea.vue.d.ts +4 -10
- package/dist/components/textarea/types.d.ts +11 -30
- package/dist/components/textarea/variants.d.ts +21 -21
- package/dist/components/textarea/variants.js +1 -1
- package/dist/components/time-field/index.d.ts +1 -1
- package/dist/components/time-field/time-field.js +1 -1
- package/dist/components/time-field/time-field.vue.d.ts +2 -9
- package/dist/components/time-field/types.d.ts +6 -39
- package/dist/components/time-range-field/index.d.ts +1 -1
- package/dist/components/time-range-field/time-range-field.js +1 -1
- package/dist/components/time-range-field/time-range-field.vue.d.ts +1 -3
- package/dist/components/time-range-field/types.d.ts +8 -52
- package/dist/components/toast/styles.js +36 -36
- package/dist/components/toast/toast-provider.js +1 -1
- package/dist/components/toast/types.d.ts +1 -1
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle/types.d.ts +1 -1
- package/dist/components/toggle-group/index.d.ts +3 -2
- package/dist/components/toggle-group/index.js +1 -1
- package/dist/components/toggle-group/toggle-group.js +1 -1
- package/dist/components/toggle-group/types.d.ts +2 -2
- package/dist/components/toolbar/toolbar.js +1 -1
- package/dist/components/toolbar/types.d.ts +1 -1
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/components/tooltip/tooltip.vue.d.ts +2 -7
- package/dist/components/tooltip/types.d.ts +11 -39
- package/dist/components/tree/tree-virtualizer.vue.d.ts +1 -1
- package/dist/components/tree/tree.js +1 -1
- package/dist/components/tree/tree.vue.d.ts +2 -2
- package/dist/components/tree/types.d.ts +4 -4
- package/dist/components/tree-menu/index.d.ts +1 -1
- package/dist/components/tree-menu/tree-menu-styled-item.js +1 -1
- package/dist/components/tree-menu/tree-menu.js +1 -1
- package/dist/components/tree-menu/tree-menu.vue.d.ts +3 -17
- package/dist/components/tree-menu/types.d.ts +15 -207
- package/dist/components/tree-menu/variants.js +1 -1
- package/dist/components/virtualizer/types.d.ts +3 -3
- package/dist/constants/components.d.ts +12 -18
- package/dist/constants/components.js +1 -1
- package/dist/index.d.ts +140 -161
- package/dist/index.js +1 -1
- package/dist/styles.css +112 -95
- package/dist/theme/shared.js +1 -1
- package/package.json +16 -12
- package/dist/components/carousel/carousel-content.js +0 -1
- package/dist/components/carousel/carousel-content.vue.d.ts +0 -18
- package/dist/components/carousel/carousel-item.js +0 -1
- package/dist/components/carousel/carousel-item.vue.d.ts +0 -18
- package/dist/components/carousel/carousel-next.js +0 -1
- package/dist/components/carousel/carousel-next.vue.d.ts +0 -23
- package/dist/components/carousel/carousel-previous.js +0 -1
- package/dist/components/carousel/carousel-previous.vue.d.ts +0 -23
- package/dist/components/color-picker/shared.js +0 -1
- package/dist/components/date-range-picker/variants.js +0 -1
- package/dist/components/empty/variants.d.ts +0 -57
- package/dist/components/form/context.js +0 -1
- package/dist/components/month-picker/index.d.ts +0 -3
- package/dist/components/month-picker/index.js +0 -1
- package/dist/components/month-picker/month-picker.js +0 -1
- package/dist/components/month-picker/month-picker.vue.d.ts +0 -24
- package/dist/components/month-picker/types.d.ts +0 -86
- package/dist/components/month-picker/variants.js +0 -1
- package/dist/components/month-range-picker/index.d.ts +0 -3
- package/dist/components/month-range-picker/index.js +0 -1
- package/dist/components/month-range-picker/month-range-picker.js +0 -1
- package/dist/components/month-range-picker/month-range-picker.vue.d.ts +0 -29
- package/dist/components/month-range-picker/types.d.ts +0 -89
- package/dist/components/month-range-picker/variants.js +0 -1
- package/dist/components/page-tabs/hooks.js +0 -1
- package/dist/components/popconfirm/context.js +0 -1
- package/dist/components/popconfirm/popconfirm-cancel.js +0 -1
- package/dist/components/popconfirm/popconfirm-cancel.vue.d.ts +0 -25
- package/dist/components/popconfirm/popconfirm-confirm.js +0 -1
- package/dist/components/popconfirm/popconfirm-confirm.vue.d.ts +0 -22
- package/dist/components/range-calendar/index.d.ts +0 -3
- package/dist/components/range-calendar/index.js +0 -1
- package/dist/components/range-calendar/range-calendar.js +0 -1
- package/dist/components/range-calendar/types.d.ts +0 -188
- package/dist/components/range-calendar/variants.js +0 -1
- package/dist/components/tags-input/tags-input-item-delete.js +0 -1
- package/dist/components/tags-input/tags-input-item-delete.vue.d.ts +0 -18
- package/dist/components/time-field/variants.js +0 -1
- package/dist/components/time-picker/index.d.ts +0 -3
- package/dist/components/time-picker/index.js +0 -1
- package/dist/components/time-picker/time-picker.js +0 -1
- package/dist/components/time-picker/time-picker.vue.d.ts +0 -24
- package/dist/components/time-picker/types.d.ts +0 -68
- package/dist/components/time-picker/variants.js +0 -1
- package/dist/components/time-range-field/variants.js +0 -1
- package/dist/components/time-range-picker/index.d.ts +0 -3
- package/dist/components/time-range-picker/index.js +0 -1
- package/dist/components/time-range-picker/time-range-picker.js +0 -1
- package/dist/components/time-range-picker/time-range-picker.vue.d.ts +0 -28
- package/dist/components/time-range-picker/types.d.ts +0 -71
- package/dist/components/time-range-picker/variants.js +0 -1
- package/dist/components/toggle-group/toggle-group-item.js +0 -1
- package/dist/components/toggle-group/toggle-group-item.vue.d.ts +0 -22
- package/dist/components/tree-menu/context.js +0 -1
- package/dist/components/tree-menu/shared.js +0 -1
- package/dist/components/tree-menu/tree-menu-option-slot.js +0 -1
- package/dist/components/tree-menu/tree-menu-option.js +0 -1
- package/dist/components/tree-menu/tree-menu-options.js +0 -1
- package/dist/components/year-picker/index.d.ts +0 -3
- package/dist/components/year-picker/index.js +0 -1
- package/dist/components/year-picker/types.d.ts +0 -86
- package/dist/components/year-picker/variants.js +0 -1
- package/dist/components/year-picker/year-picker.js +0 -1
- package/dist/components/year-picker/year-picker.vue.d.ts +0 -24
- package/dist/components/year-range-picker/index.d.ts +0 -3
- package/dist/components/year-range-picker/index.js +0 -1
- package/dist/components/year-range-picker/types.d.ts +0 -90
- package/dist/components/year-range-picker/variants.js +0 -1
- package/dist/components/year-range-picker/year-range-picker.js +0 -1
- package/dist/components/year-range-picker/year-range-picker.vue.d.ts +0 -29
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Alignment.d.ts +0 -4
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Animations.d.ts +0 -11
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Axis.d.ts +0 -16
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Counter.d.ts +0 -9
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/DragHandler.d.ts +0 -13
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/DragTracker.d.ts +0 -4
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EmblaCarousel.d.ts +0 -31
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Engine.d.ts +0 -67
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EventHandler.d.ts +0 -29
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EventStore.d.ts +0 -10
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Limit.d.ts +0 -13
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/NodeRects.d.ts +0 -11
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Options.d.ts +0 -43
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/OptionsHandler.d.ts +0 -11
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/PercentOfView.d.ts +0 -6
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Plugins.d.ts +0 -20
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ResizeHandler.d.ts +0 -11
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollBody.d.ts +0 -14
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollBounds.d.ts +0 -8
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollContain.d.ts +0 -4
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollLooper.d.ts +0 -6
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollProgress.d.ts +0 -6
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollTarget.d.ts +0 -12
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollTo.d.ts +0 -7
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideFocus.d.ts +0 -10
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideLooper.d.ts +0 -19
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideRegistry.d.ts +0 -6
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesHandler.d.ts +0 -11
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesInView.d.ts +0 -9
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesToScroll.d.ts +0 -7
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Translate.d.ts +0 -8
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Vector1d.d.ts +0 -9
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/utils.d.ts +0 -4
package/dist/theme/shared.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cn as e}from"./merge.js";function
|
|
1
|
+
import{cn as e}from"./merge.js";import{entriesOf as t}from"@soybeanjs/utils";function n(n,...r){return t(o(n).reduce((e,t)=>(l(e,t.targetKey,t.classes,t.prepend),e),{})).reduce((t,[n,i])=>(t[n]=e(...i,...r.filter(Boolean).map(e=>e?.[n]).filter(Boolean)),t),{})}function r(e){return Array.isArray(e)}function i(e){return Array.isArray(e)}function a(e){return e?r(e)?Array.from(e):[e]:[]}function o(e){let{$alias:n,$base:r,...i}=e,o=t(i).map(([e,t])=>({targetKey:e,classes:[c(r?.[e]),t()??``]}));for(let e of a(n)){let{$base:t,...n}=e.variants;for(let[r,i]of s(e.map)){let a=n[r];a&&o.push({targetKey:i,classes:[c(t?.[r]),a()??``],prepend:e.base??!0})}}return o}function s(e){return i(e)?Array.from(e):t(e).reduce((e,[t,n])=>n?[...e,[t,n]]:e,[])}function c(e){return typeof e==`function`?e():e}function l(e,t,n,r=!1){let i=n.filter(Boolean);i.length!==0&&(e[t]||(e[t]=[]),e[t]=r?[...i,...e[t]]:[...e[t],...i])}export{n as mergeVariants};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soybeanjs/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "SoybeanUI is built on top of SoybeanHeadless, providing a collection of styled components for Vue 3.",
|
|
5
5
|
"homepage": "https://github.com/soybeanjs/soybean-ui",
|
|
6
6
|
"bugs": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@formkit/auto-animate": "^0.9.0",
|
|
48
|
-
"@iconify/vue": "^5.0.
|
|
48
|
+
"@iconify/vue": "^5.0.1",
|
|
49
49
|
"@soybeanjs/colord": "^0.5.0",
|
|
50
50
|
"@soybeanjs/hooks": "^0.2.0",
|
|
51
51
|
"@soybeanjs/shadcn-theme": "^0.3.1",
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"fuse.js": "^7.3.0",
|
|
56
56
|
"tailwind-merge": "^3.5.0",
|
|
57
57
|
"tailwind-variants": "^3.2.2",
|
|
58
|
-
"valibot": "^1.
|
|
59
|
-
"zod": "^4.4.
|
|
60
|
-
"@soybeanjs/headless": "^0.
|
|
58
|
+
"valibot": "^1.4.0",
|
|
59
|
+
"zod": "^4.4.3",
|
|
60
|
+
"@soybeanjs/headless": "^0.19.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@soybeanjs/cli": "^1.7.2",
|
|
@@ -66,14 +66,16 @@
|
|
|
66
66
|
"@soybeanjs/unocss-shadcn": "^0.4.0",
|
|
67
67
|
"@types/node": "^25.6.0",
|
|
68
68
|
"@unocss/cli": "^66.6.8",
|
|
69
|
+
"@vitejs/plugin-vue": "^6.0.6",
|
|
70
|
+
"@vitejs/plugin-vue-jsx": "^5.1.5",
|
|
69
71
|
"@vitest/coverage-v8": "^4.1.5",
|
|
70
72
|
"@vue/test-utils": "^2.4.10",
|
|
71
73
|
"axe-core": "^4.11.4",
|
|
72
74
|
"eslint": "^10.3.0",
|
|
73
75
|
"happy-dom": "^20.9.0",
|
|
74
|
-
"lint-staged": "^
|
|
75
|
-
"oxfmt": "^0.
|
|
76
|
-
"oxlint": "^1.
|
|
76
|
+
"lint-staged": "^17.0.2",
|
|
77
|
+
"oxfmt": "^0.48.0",
|
|
78
|
+
"oxlint": "^1.63.0",
|
|
77
79
|
"simple-git-hooks": "^2.13.1",
|
|
78
80
|
"tsdown": "0.21.10",
|
|
79
81
|
"tsx": "^4.21.0",
|
|
@@ -82,16 +84,16 @@
|
|
|
82
84
|
"unocss": "^66.6.8",
|
|
83
85
|
"unocss-preset-animations": "^1.3.0",
|
|
84
86
|
"unplugin-auto-import": "^21.0.0",
|
|
85
|
-
"unplugin-vue": "
|
|
87
|
+
"unplugin-vue": "7.2.0",
|
|
86
88
|
"unplugin-vue-components": "^32.0.0",
|
|
87
|
-
"unplugin-vue-jsx": "
|
|
89
|
+
"unplugin-vue-jsx": "0.8.1",
|
|
88
90
|
"vite": "^8.0.10",
|
|
89
91
|
"vite-plugin-vue-devtools": "^8.1.1",
|
|
90
92
|
"vite-plugin-vue-meta-layouts": "^0.6.1",
|
|
91
93
|
"vitest": "^4.1.5",
|
|
92
|
-
"vue": "^3.5.
|
|
94
|
+
"vue": "^3.5.34",
|
|
93
95
|
"vue-router": "^5.0.6",
|
|
94
|
-
"vue-tsc": "^3.2.
|
|
96
|
+
"vue-tsc": "^3.2.8"
|
|
95
97
|
},
|
|
96
98
|
"simple-git-hooks": {
|
|
97
99
|
"commit-msg": "pnpm soy git-commit-verify",
|
|
@@ -115,7 +117,9 @@
|
|
|
115
117
|
"fmt": "oxfmt",
|
|
116
118
|
"gen:api": "tsx scripts/api.ts && tsx scripts/api-i18n.ts && oxfmt docs/src/generated/api/",
|
|
117
119
|
"gen:api:i18n": "tsx scripts/api-i18n.ts",
|
|
120
|
+
"gen:changelog": "tsx scripts/changelog.ts && tsx scripts/changelog-i18n.ts && oxfmt docs/src/generated/changelog/ docs/src/generated/changelog-locales/",
|
|
118
121
|
"translate:api:i18n": "tsx scripts/api-i18n-translate.ts",
|
|
122
|
+
"translate:changelog:i18n": "tsx scripts/changelog-i18n-translate.ts",
|
|
119
123
|
"gen:headless": "tsx scripts/headless.ts && oxfmt headless/src/constants/components.ts headless/src/namespaced/index.ts",
|
|
120
124
|
"gen:ui": "tsx scripts/ui.ts && oxfmt src/constants/components.ts",
|
|
121
125
|
"preview": "vite preview",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{createBlock as e,defineComponent as t,guardReactiveProps as n,normalizeProps as r,openBlock as i,renderSlot as a,unref as o,withCtx as s}from"vue";import{CarouselContent as c}from"@soybeanjs/headless/carousel";const l=t({name:`SCarouselContent`,__name:`carousel-content`,setup(t){return(t,l)=>(i(),e(o(c),r(n(t.$props)),{default:s(()=>[a(t.$slots,`default`)]),_:3},16))}});export{l as default};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as _$vue from "vue";
|
|
2
|
-
import { CarouselContentProps } from "@soybeanjs/headless/carousel";
|
|
3
|
-
|
|
4
|
-
//#region src/components/carousel/carousel-content.vue.d.ts
|
|
5
|
-
declare var __VLS_8: {};
|
|
6
|
-
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof __VLS_8) => any;
|
|
8
|
-
};
|
|
9
|
-
declare const __VLS_base: _$vue.DefineComponent<CarouselContentProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<CarouselContentProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
-
declare const _default: typeof __VLS_export;
|
|
12
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
-
new (): {
|
|
14
|
-
$slots: S;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
//#endregion
|
|
18
|
-
export { _default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{createBlock as e,defineComponent as t,guardReactiveProps as n,normalizeProps as r,openBlock as i,renderSlot as a,unref as o,withCtx as s}from"vue";import{CarouselItem as c}from"@soybeanjs/headless/carousel";const l=t({name:`SCarouselItem`,__name:`carousel-item`,setup(t){return(t,l)=>(i(),e(o(c),r(n(t.$props)),{default:s(()=>[a(t.$slots,`default`)]),_:3},16))}});export{l as default};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as _$vue from "vue";
|
|
2
|
-
import { CarouselItemProps } from "@soybeanjs/headless/carousel";
|
|
3
|
-
|
|
4
|
-
//#region src/components/carousel/carousel-item.vue.d.ts
|
|
5
|
-
declare var __VLS_8: {};
|
|
6
|
-
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof __VLS_8) => any;
|
|
8
|
-
};
|
|
9
|
-
declare const __VLS_base: _$vue.DefineComponent<CarouselItemProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<CarouselItemProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
-
declare const _default: typeof __VLS_export;
|
|
12
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
-
new (): {
|
|
14
|
-
$slots: S;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
//#endregion
|
|
18
|
-
export { _default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"../icon/icon.js";import{createBlock as t,createElementVNode as n,createVNode as r,defineComponent as i,guardReactiveProps as a,normalizeProps as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";import{CarouselNext as d}from"@soybeanjs/headless/carousel";const f=i({name:`SCarouselNext`,__name:`carousel-next`,props:{type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(i){function f(e,t){return e===`vertical`?`lucide:arrow-down`:t===`rtl`?`lucide:arrow-left`:`lucide:arrow-right`}return(i,p)=>(s(),t(l(d),o(a(i.$props)),{default:u(({dir:t,disabled:a,orientation:o})=>[c(i.$slots,`default`,{dir:t,disabled:a,orientation:o},()=>[r(e,{icon:f(o,t),"aria-hidden":!0},null,8,[`icon`]),p[0]||=n(`span`,{class:`sr-only`},`Next slide`,-1)])]),_:3},16))}});export{f as default};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as _$vue from "vue";
|
|
2
|
-
import { CarouselNextProps } from "@soybeanjs/headless/carousel";
|
|
3
|
-
import { DataOrientation, Direction } from "@soybeanjs/headless/types";
|
|
4
|
-
|
|
5
|
-
//#region src/components/carousel/carousel-next.vue.d.ts
|
|
6
|
-
declare var __VLS_8: {
|
|
7
|
-
dir: Direction;
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
orientation: DataOrientation;
|
|
10
|
-
};
|
|
11
|
-
type __VLS_Slots = {} & {
|
|
12
|
-
default?: (props: typeof __VLS_8) => any;
|
|
13
|
-
};
|
|
14
|
-
declare const __VLS_base: _$vue.DefineComponent<CarouselNextProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<CarouselNextProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
15
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
-
declare const _default: typeof __VLS_export;
|
|
17
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
-
new (): {
|
|
19
|
-
$slots: S;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
//#endregion
|
|
23
|
-
export { _default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"../icon/icon.js";import{createBlock as t,createElementVNode as n,createVNode as r,defineComponent as i,guardReactiveProps as a,normalizeProps as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";import{CarouselPrevious as d}from"@soybeanjs/headless/carousel";const f=i({name:`SCarouselPrevious`,__name:`carousel-previous`,props:{type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(i){function f(e,t){return e===`vertical`?`lucide:arrow-up`:t===`rtl`?`lucide:arrow-right`:`lucide:arrow-left`}return(i,p)=>(s(),t(l(d),o(a(i.$props)),{default:u(({dir:t,disabled:a,orientation:o})=>[c(i.$slots,`default`,{dir:t,disabled:a,orientation:o},()=>[r(e,{icon:f(o,t),"aria-hidden":!0},null,8,[`icon`]),p[0]||=n(`span`,{class:`sr-only`},`Previous slide`,-1)])]),_:3},16))}});export{f as default};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as _$vue from "vue";
|
|
2
|
-
import { CarouselPreviousProps } from "@soybeanjs/headless/carousel";
|
|
3
|
-
import { DataOrientation, Direction } from "@soybeanjs/headless/types";
|
|
4
|
-
|
|
5
|
-
//#region src/components/carousel/carousel-previous.vue.d.ts
|
|
6
|
-
declare var __VLS_8: {
|
|
7
|
-
dir: Direction;
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
orientation: DataOrientation;
|
|
10
|
-
};
|
|
11
|
-
type __VLS_Slots = {} & {
|
|
12
|
-
default?: (props: typeof __VLS_8) => any;
|
|
13
|
-
};
|
|
14
|
-
declare const __VLS_base: _$vue.DefineComponent<CarouselPreviousProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<CarouselPreviousProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
15
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
-
declare const _default: typeof __VLS_export;
|
|
17
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
-
new (): {
|
|
19
|
-
$slots: S;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
//#endregion
|
|
23
|
-
export { _default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{resolveColorFormat as e}from"@soybeanjs/headless/shared";const t=[`#ef4444`,`#f97316`,`#eab308`,`#22c55e`,`#06b6d4`,`#3b82f6`,`#8b5cf6`],n=[`hex`,`rgb`,`hsl`,`oklch`];function r(t,n){return t||e(n,`hex`)}export{n as COLOR_PICKER_FORMATS,t as DEFAULT_COLOR_PICKER_SWATCHES,r as resolveColorPickerFormat};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{tv as e}from"tailwind-variants";const t=e({slots:{root:`inline-flex w-full flex-col gap-2`,trigger:[`inline-flex w-full items-center justify-start gap-2 rounded-md border border-input bg-background px-3 py-0 text-start font-normal shadow-xs transition-[background-color,color,box-shadow]`,`hover:bg-accent/50 hover:text-accent-foreground`,`focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-offset-background focus-visible:ring-primary/30`,`data-[disabled]:opacity-60 data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none`,`data-[state=open]:bg-accent/50 data-[state=open]:text-accent-foreground`],popup:[`z-50 overflow-hidden rounded-lg border border-border bg-popover p-0 text-popover-foreground shadow-md`,`data-[state=open]:animate-in data-[state=closed]:animate-out`,`data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,`data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95`],input:[`inline-flex min-w-5 items-center justify-center rounded-sm px-0.5 text-center outline-none`,`tabular-nums leading-none`,`data-[segment=literal]:min-w-0 data-[segment=literal]:px-0 data-[segment=literal]:text-muted-foreground`,`data-[segment=timeZoneName]:min-w-fit data-[segment=timeZoneName]:px-1 data-[segment=timeZoneName]:text-muted-foreground`,`data-[placeholder]:text-muted-foreground`,`focus-visible:bg-accent focus-visible:text-accent-foreground focus-visible:ring-2 focus-visible:ring-primary/20`,`data-[disabled]:cursor-not-allowed data-[readonly]:cursor-default`],calendar:``},variants:{size:{xs:{root:`text-2xs`,trigger:`h-6 px-2 text-2xs`,input:`min-h-4.5 min-w-4.5`},sm:{root:`text-xs`,trigger:`h-7 px-2.5 text-xs`,input:`min-h-5 min-w-5`},md:{root:`text-sm`,trigger:`h-8 px-3 text-sm`,input:`min-h-5.5 min-w-5.5`},lg:{root:`text-base`,trigger:`h-9 px-3.5 text-base`,input:`min-h-6 min-w-6`},xl:{root:`text-lg`,trigger:`h-10 px-4 text-lg`,input:`min-h-6.5 min-w-6.5`},"2xl":{root:`text-xl`,trigger:`h-12 px-5 text-xl`,input:`min-h-8 min-w-8`}}},defaultVariants:{size:`md`}});export{t as dateRangePickerVariants};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import * as _$tailwind_variants0 from "tailwind-variants";
|
|
2
|
-
import { VariantProps } from "tailwind-variants";
|
|
3
|
-
|
|
4
|
-
//#region src/components/empty/variants.d.ts
|
|
5
|
-
declare const emptyVariants: _$tailwind_variants0.TVReturnType<{
|
|
6
|
-
mediaVariant: {
|
|
7
|
-
default: {
|
|
8
|
-
media: string;
|
|
9
|
-
};
|
|
10
|
-
icon: {
|
|
11
|
-
media: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
}, {
|
|
15
|
-
root: string;
|
|
16
|
-
header: string;
|
|
17
|
-
media: string;
|
|
18
|
-
content: string;
|
|
19
|
-
title: string;
|
|
20
|
-
description: string;
|
|
21
|
-
}, undefined, {
|
|
22
|
-
mediaVariant: {
|
|
23
|
-
default: {
|
|
24
|
-
media: string;
|
|
25
|
-
};
|
|
26
|
-
icon: {
|
|
27
|
-
media: string;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
}, {
|
|
31
|
-
root: string;
|
|
32
|
-
header: string;
|
|
33
|
-
media: string;
|
|
34
|
-
content: string;
|
|
35
|
-
title: string;
|
|
36
|
-
description: string;
|
|
37
|
-
}, _$tailwind_variants0.TVReturnType<{
|
|
38
|
-
mediaVariant: {
|
|
39
|
-
default: {
|
|
40
|
-
media: string;
|
|
41
|
-
};
|
|
42
|
-
icon: {
|
|
43
|
-
media: string;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
}, {
|
|
47
|
-
root: string;
|
|
48
|
-
header: string;
|
|
49
|
-
media: string;
|
|
50
|
-
content: string;
|
|
51
|
-
title: string;
|
|
52
|
-
description: string;
|
|
53
|
-
}, undefined, unknown, unknown, undefined>>;
|
|
54
|
-
type EmptyVariants = VariantProps<typeof emptyVariants>;
|
|
55
|
-
type EmptyMediaVariant = NonNullable<EmptyVariants['mediaVariant']>;
|
|
56
|
-
//#endregion
|
|
57
|
-
export { EmptyMediaVariant };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useContext as e}from"@soybeanjs/headless/composables";const[t,n]=e(`Form`);export{t as provideFormContext,n as useFormContext};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./month-picker.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{mergeSlotVariants as e}from"../../theme/shared.js";import"../../theme/index.js";import t from"../icon/icon.js";import{monthPickerVariants as n}from"./variants.js";import{computed as r,createBlock as i,createElementBlock as a,createTextVNode as o,createVNode as s,defineComponent as c,guardReactiveProps as l,mergeProps as u,normalizeProps as d,openBlock as f,renderSlot as p,toDisplayString as m,toHandlers as h,unref as g,withCtx as _}from"vue";import{useForwardListeners as v,useOmitProps as y}from"@soybeanjs/headless/composables";import{MonthPickerPopup as b,MonthPickerRoot as x,MonthPickerTrigger as S,provideMonthPickerUi as C}from"@soybeanjs/headless/month-picker";const w={key:0},T={key:1,class:`text-muted-foreground`},E=c({name:`SMonthPicker`,__name:`month-picker`,props:{class:{},size:{},ui:{},triggerProps:{},popupProps:{}},emits:[`update:modelValue`,`update:placeholder`,`update:open`],setup(c,{emit:E}){let D=c,O=v(E),k=y(D,[`class`,`size`,`ui`,`triggerProps`,`popupProps`]);return C(r(()=>e(n({size:D.size}),D.ui,{root:D.class}))),(e,n)=>(f(),i(g(x),u(g(k),h(g(O))),{default:_(n=>[s(g(S),d(l(c.triggerProps)),{default:_(()=>[p(e.$slots,`trigger`,{displayValue:n.displayValue,modelValue:n.modelValue,open:n.open},()=>[s(t,{class:`size-4`,icon:`lucide:calendar-range`}),n.displayValue?(f(),a(`span`,w,m(n.displayValue),1)):(f(),a(`span`,T,`Pick a month`))])]),_:2},1040),s(g(b),d(l(c.popupProps)),{heading:_(t=>[p(e.$slots,`heading`,d(l(t)),()=>[o(m(t.headingValue),1)])]),prev:_(n=>[p(e.$slots,`prev`,d(l(n)),()=>[s(t,{class:`size-4 rtl:rotate-180`,icon:`lucide:chevron-left`})])]),next:_(n=>[p(e.$slots,`next`,d(l(n)),()=>[s(t,{class:`size-4 rtl:rotate-180`,icon:`lucide:chevron-right`})])]),month:_(t=>[p(e.$slots,`month`,d(l(t)),()=>[o(m(t.label),1)])]),_:3},16),p(e.$slots,`default`,d(l(n)))]),_:3},16))}});export{E as default};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { MonthPickerProps, MonthPickerSlots } from "./types.js";
|
|
2
|
-
import * as _$vue from "vue";
|
|
3
|
-
import * as _$_internationalized_date0 from "@internationalized/date";
|
|
4
|
-
|
|
5
|
-
//#region src/components/month-picker/month-picker.vue.d.ts
|
|
6
|
-
type __VLS_Slots = MonthPickerSlots;
|
|
7
|
-
declare const __VLS_base: _$vue.DefineComponent<MonthPickerProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
8
|
-
"update:open": (open: boolean) => any;
|
|
9
|
-
"update:modelValue": (date: _$_internationalized_date0.DateValue | undefined) => any;
|
|
10
|
-
"update:placeholder": (date: _$_internationalized_date0.DateValue) => any;
|
|
11
|
-
}, string, _$vue.PublicProps, Readonly<MonthPickerProps> & Readonly<{
|
|
12
|
-
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
13
|
-
"onUpdate:modelValue"?: ((date: _$_internationalized_date0.DateValue | undefined) => any) | undefined;
|
|
14
|
-
"onUpdate:placeholder"?: ((date: _$_internationalized_date0.DateValue) => any) | undefined;
|
|
15
|
-
}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
16
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
-
declare const _default: typeof __VLS_export;
|
|
18
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
-
new (): {
|
|
20
|
-
$slots: S;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
//#endregion
|
|
24
|
-
export { _default };
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { ThemeSize } from "../../theme/types.js";
|
|
2
|
-
import { MonthPickerPopupProps, MonthPickerRootEmits, MonthPickerRootProps, MonthPickerTriggerProps, MonthPickerUi } from "@soybeanjs/headless/month-picker";
|
|
3
|
-
import { ClassValue } from "@soybeanjs/headless/types";
|
|
4
|
-
import { DateValue } from "@internationalized/date";
|
|
5
|
-
|
|
6
|
-
//#region src/components/month-picker/types.d.ts
|
|
7
|
-
/**
|
|
8
|
-
* Props for the month picker component.
|
|
9
|
-
*/
|
|
10
|
-
interface MonthPickerProps extends /** @vue-ignore */MonthPickerRootProps {
|
|
11
|
-
/**
|
|
12
|
-
* Additional class names applied to the root element.
|
|
13
|
-
*/
|
|
14
|
-
class?: ClassValue;
|
|
15
|
-
/**
|
|
16
|
-
* Visual size of the component.
|
|
17
|
-
*/
|
|
18
|
-
size?: ThemeSize;
|
|
19
|
-
/**
|
|
20
|
-
* Per-slot class overrides for the component.
|
|
21
|
-
*/
|
|
22
|
-
ui?: Partial<MonthPickerUi>;
|
|
23
|
-
/**
|
|
24
|
-
* Props forwarded to the trigger element.
|
|
25
|
-
*/
|
|
26
|
-
triggerProps?: MonthPickerTriggerProps;
|
|
27
|
-
/**
|
|
28
|
-
* Props forwarded to the popup element.
|
|
29
|
-
*/
|
|
30
|
-
popupProps?: MonthPickerPopupProps;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Emits for the month picker component.
|
|
34
|
-
*/
|
|
35
|
-
type MonthPickerEmits = MonthPickerRootEmits;
|
|
36
|
-
/**
|
|
37
|
-
* Slots for the month picker component.
|
|
38
|
-
*/
|
|
39
|
-
interface MonthPickerSlots {
|
|
40
|
-
/**
|
|
41
|
-
* Custom content for the trigger slot.
|
|
42
|
-
*/
|
|
43
|
-
trigger?: (props: {
|
|
44
|
-
displayValue: string;
|
|
45
|
-
modelValue: DateValue | undefined;
|
|
46
|
-
open: boolean;
|
|
47
|
-
}) => any;
|
|
48
|
-
/**
|
|
49
|
-
* Custom content for the heading slot.
|
|
50
|
-
*/
|
|
51
|
-
heading?: (props: {
|
|
52
|
-
headingValue: string;
|
|
53
|
-
}) => any;
|
|
54
|
-
/**
|
|
55
|
-
* Custom content for the prev slot.
|
|
56
|
-
*/
|
|
57
|
-
prev?: (props: {
|
|
58
|
-
disabled: boolean;
|
|
59
|
-
}) => any;
|
|
60
|
-
/**
|
|
61
|
-
* Custom content for the next slot.
|
|
62
|
-
*/
|
|
63
|
-
next?: (props: {
|
|
64
|
-
disabled: boolean;
|
|
65
|
-
}) => any;
|
|
66
|
-
/**
|
|
67
|
-
* Custom content for the month slot.
|
|
68
|
-
*/
|
|
69
|
-
month?: (props: {
|
|
70
|
-
date: DateValue;
|
|
71
|
-
label: string;
|
|
72
|
-
disabled: boolean;
|
|
73
|
-
focused: boolean;
|
|
74
|
-
selected: boolean;
|
|
75
|
-
}) => any;
|
|
76
|
-
/**
|
|
77
|
-
* Custom content for the default slot.
|
|
78
|
-
*/
|
|
79
|
-
default?: (props: {
|
|
80
|
-
displayValue: string;
|
|
81
|
-
modelValue: DateValue | undefined;
|
|
82
|
-
open: boolean;
|
|
83
|
-
}) => any;
|
|
84
|
-
}
|
|
85
|
-
//#endregion
|
|
86
|
-
export { MonthPickerEmits, MonthPickerProps, MonthPickerSlots };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{tv as e}from"tailwind-variants";const t=e({slots:{root:`inline-flex w-full flex-col gap-2`,trigger:[`inline-flex w-full items-center justify-start gap-2 rounded-md border border-input bg-background px-3 py-0 text-start font-normal shadow-xs transition-[background-color,color,box-shadow]`,`hover:bg-accent/50 hover:text-accent-foreground`,`focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-offset-background focus-visible:ring-primary/30`,`data-[disabled]:opacity-60 data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none`,`data-[state=open]:bg-accent/50 data-[state=open]:text-accent-foreground`],popup:[`z-50 overflow-hidden rounded-lg border border-border bg-popover p-3 text-popover-foreground shadow-md`,`data-[state=open]:animate-in data-[state=closed]:animate-out`,`data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,`data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95`],header:`mb-3 grid grid-cols-[auto_1fr_auto] items-center gap-1`,heading:`font-medium text-foreground text-center`,prev:[`inline-flex size-8 items-center justify-center rounded-md border border-transparent bg-transparent transition-colors`,`hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30`,`data-[disabled]:pointer-events-none data-[disabled]:opacity-50`],next:[`inline-flex size-8 items-center justify-center rounded-md border border-transparent bg-transparent transition-colors`,`hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30`,`data-[disabled]:pointer-events-none data-[disabled]:opacity-50`],grid:`grid grid-cols-3 gap-1`,cellTrigger:[`inline-flex h-9 cursor-pointer items-center justify-center rounded-md border border-transparent bg-transparent px-3 text-sm font-normal transition-colors`,`hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30`,`data-[selected]:bg-primary data-[selected]:text-primary-foreground`,`data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,`data-[focused]:ring-2 data-[focused]:ring-primary/20`]},variants:{size:{xs:{root:`text-2xs`,trigger:`h-6 px-2 text-2xs`,prev:`size-6 text-2xs`,next:`size-6 text-2xs`,cellTrigger:`h-7 px-2 text-2xs`},sm:{root:`text-xs`,trigger:`h-7 px-2.5 text-xs`,prev:`size-7 text-xs`,next:`size-7 text-xs`,cellTrigger:`h-8 px-2.5 text-xs`},md:{root:`text-sm`,trigger:`h-8 px-3 text-sm`,prev:`size-8 text-sm`,next:`size-8 text-sm`,cellTrigger:`h-9 px-3 text-sm`},lg:{root:`text-base`,trigger:`h-9 px-3.5 text-base`,prev:`size-9 text-base`,next:`size-9 text-base`,cellTrigger:`h-10 px-3.5 text-base`},xl:{root:`text-lg`,trigger:`h-10 px-4 text-lg`,prev:`size-10 text-lg`,next:`size-10 text-lg`,cellTrigger:`h-11 px-4 text-lg`},"2xl":{root:`text-xl`,trigger:`h-12 px-5 text-xl`,prev:`size-12 text-xl`,next:`size-12 text-xl`,cellTrigger:`h-12 px-5 text-xl`}}},defaultVariants:{size:`md`}});export{t as monthPickerVariants};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./month-range-picker.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{mergeSlotVariants as e}from"../../theme/shared.js";import"../../theme/index.js";import t from"../icon/icon.js";import{monthRangePickerVariants as n}from"./variants.js";import{computed as r,createBlock as i,createElementBlock as a,createTextVNode as o,createVNode as s,defineComponent as c,guardReactiveProps as l,mergeProps as u,normalizeProps as d,openBlock as f,renderSlot as p,toDisplayString as m,toHandlers as h,unref as g,withCtx as _}from"vue";import{useForwardListeners as v,useOmitProps as y}from"@soybeanjs/headless/composables";import{MonthRangePickerPopup as b,MonthRangePickerRoot as x,MonthRangePickerTrigger as S,provideMonthRangePickerUi as C}from"@soybeanjs/headless/month-range-picker";const w={key:0},T={key:1,class:`text-muted-foreground`},E=c({name:`SMonthRangePicker`,__name:`month-range-picker`,props:{class:{},size:{},ui:{},triggerProps:{},popupProps:{}},emits:[`update:modelValue`,`update:placeholder`,`update:startValue`,`update:endValue`,`update:open`],setup(c,{emit:E}){let D=c,O=v(E),k=y(D,[`class`,`size`,`ui`,`triggerProps`,`popupProps`]);return C(r(()=>e(n({size:D.size}),D.ui,{root:D.class}))),(e,n)=>(f(),i(g(x),u(g(k),h(g(O))),{default:_(n=>[s(g(S),d(l(c.triggerProps)),{default:_(()=>[p(e.$slots,`trigger`,{displayValue:n.displayValue,modelValue:n.modelValue,open:n.open},()=>[s(t,{class:`size-4`,icon:`lucide:calendar-range`}),n.displayValue?(f(),a(`span`,w,m(n.displayValue),1)):(f(),a(`span`,T,`Pick a month range`))])]),_:2},1040),s(g(b),d(l(c.popupProps)),{heading:_(t=>[p(e.$slots,`heading`,d(l(t)),()=>[o(m(t.headingValue),1)])]),prev:_(n=>[p(e.$slots,`prev`,d(l(n)),()=>[s(t,{class:`size-4 rtl:rotate-180`,icon:`lucide:chevron-left`})])]),next:_(n=>[p(e.$slots,`next`,d(l(n)),()=>[s(t,{class:`size-4 rtl:rotate-180`,icon:`lucide:chevron-right`})])]),month:_(t=>[p(e.$slots,`month`,d(l(t)),()=>[o(m(t.label),1)])]),_:3},16),p(e.$slots,`default`,d(l(n)))]),_:3},16))}});export{E as default};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { MonthRangePickerProps, MonthRangePickerSlots } from "./types.js";
|
|
2
|
-
import * as _$vue from "vue";
|
|
3
|
-
import * as _$_internationalized_date0 from "@internationalized/date";
|
|
4
|
-
import * as _$_soybeanjs_headless_date0 from "@soybeanjs/headless/date";
|
|
5
|
-
|
|
6
|
-
//#region src/components/month-range-picker/month-range-picker.vue.d.ts
|
|
7
|
-
type __VLS_Slots = MonthRangePickerSlots;
|
|
8
|
-
declare const __VLS_base: _$vue.DefineComponent<MonthRangePickerProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
9
|
-
"update:open": (open: boolean) => any;
|
|
10
|
-
"update:modelValue": (range: _$_soybeanjs_headless_date0.DateRange) => any;
|
|
11
|
-
"update:placeholder": (date: _$_internationalized_date0.DateValue) => any;
|
|
12
|
-
"update:startValue": (date: _$_internationalized_date0.DateValue | undefined) => any;
|
|
13
|
-
"update:endValue": (date: _$_internationalized_date0.DateValue | undefined) => any;
|
|
14
|
-
}, string, _$vue.PublicProps, Readonly<MonthRangePickerProps> & Readonly<{
|
|
15
|
-
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
16
|
-
"onUpdate:modelValue"?: ((range: _$_soybeanjs_headless_date0.DateRange) => any) | undefined;
|
|
17
|
-
"onUpdate:placeholder"?: ((date: _$_internationalized_date0.DateValue) => any) | undefined;
|
|
18
|
-
"onUpdate:startValue"?: ((date: _$_internationalized_date0.DateValue | undefined) => any) | undefined;
|
|
19
|
-
"onUpdate:endValue"?: ((date: _$_internationalized_date0.DateValue | undefined) => any) | undefined;
|
|
20
|
-
}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
21
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
-
declare const _default: typeof __VLS_export;
|
|
23
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
-
new (): {
|
|
25
|
-
$slots: S;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
//#endregion
|
|
29
|
-
export { _default };
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { ThemeSize } from "../../theme/types.js";
|
|
2
|
-
import { MonthRangePickerPopupProps, MonthRangePickerRootEmits, MonthRangePickerRootProps, MonthRangePickerTriggerProps, MonthRangePickerUi } from "@soybeanjs/headless/month-range-picker";
|
|
3
|
-
import { ClassValue } from "@soybeanjs/headless/types";
|
|
4
|
-
import { DateRange, DateValue } from "@soybeanjs/headless/date";
|
|
5
|
-
|
|
6
|
-
//#region src/components/month-range-picker/types.d.ts
|
|
7
|
-
/**
|
|
8
|
-
* Props for the month range picker component.
|
|
9
|
-
*/
|
|
10
|
-
interface MonthRangePickerProps extends /** @vue-ignore */MonthRangePickerRootProps {
|
|
11
|
-
/**
|
|
12
|
-
* Additional class names applied to the root element.
|
|
13
|
-
*/
|
|
14
|
-
class?: ClassValue;
|
|
15
|
-
/**
|
|
16
|
-
* Visual size of the component.
|
|
17
|
-
*/
|
|
18
|
-
size?: ThemeSize;
|
|
19
|
-
/**
|
|
20
|
-
* Per-slot class overrides for the component.
|
|
21
|
-
*/
|
|
22
|
-
ui?: Partial<MonthRangePickerUi>;
|
|
23
|
-
/**
|
|
24
|
-
* Props forwarded to the trigger element.
|
|
25
|
-
*/
|
|
26
|
-
triggerProps?: MonthRangePickerTriggerProps;
|
|
27
|
-
/**
|
|
28
|
-
* Props forwarded to the popup element.
|
|
29
|
-
*/
|
|
30
|
-
popupProps?: MonthRangePickerPopupProps;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Emits for the month range picker component.
|
|
34
|
-
*/
|
|
35
|
-
type MonthRangePickerEmits = MonthRangePickerRootEmits;
|
|
36
|
-
/**
|
|
37
|
-
* Slots for the month range picker component.
|
|
38
|
-
*/
|
|
39
|
-
interface MonthRangePickerSlots {
|
|
40
|
-
/**
|
|
41
|
-
* Custom content for the trigger slot.
|
|
42
|
-
*/
|
|
43
|
-
trigger?: (props: {
|
|
44
|
-
displayValue: string;
|
|
45
|
-
modelValue: DateRange;
|
|
46
|
-
open: boolean;
|
|
47
|
-
}) => any;
|
|
48
|
-
/**
|
|
49
|
-
* Custom content for the heading slot.
|
|
50
|
-
*/
|
|
51
|
-
heading?: (props: {
|
|
52
|
-
headingValue: string;
|
|
53
|
-
}) => any;
|
|
54
|
-
/**
|
|
55
|
-
* Custom content for the prev slot.
|
|
56
|
-
*/
|
|
57
|
-
prev?: (props: {
|
|
58
|
-
disabled: boolean;
|
|
59
|
-
}) => any;
|
|
60
|
-
/**
|
|
61
|
-
* Custom content for the next slot.
|
|
62
|
-
*/
|
|
63
|
-
next?: (props: {
|
|
64
|
-
disabled: boolean;
|
|
65
|
-
}) => any;
|
|
66
|
-
/**
|
|
67
|
-
* Custom content for the month slot.
|
|
68
|
-
*/
|
|
69
|
-
month?: (props: {
|
|
70
|
-
date: DateValue;
|
|
71
|
-
label: string;
|
|
72
|
-
disabled: boolean;
|
|
73
|
-
focused: boolean;
|
|
74
|
-
highlighted: boolean;
|
|
75
|
-
rangeEnd: boolean;
|
|
76
|
-
rangeStart: boolean;
|
|
77
|
-
selected: boolean;
|
|
78
|
-
}) => any;
|
|
79
|
-
/**
|
|
80
|
-
* Custom content for the default slot.
|
|
81
|
-
*/
|
|
82
|
-
default?: (props: {
|
|
83
|
-
displayValue: string;
|
|
84
|
-
modelValue: DateRange;
|
|
85
|
-
open: boolean;
|
|
86
|
-
}) => any;
|
|
87
|
-
}
|
|
88
|
-
//#endregion
|
|
89
|
-
export { MonthRangePickerEmits, MonthRangePickerProps, MonthRangePickerSlots };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{tv as e}from"tailwind-variants";const t=e({slots:{root:`inline-flex w-full flex-col gap-2`,trigger:[`inline-flex w-full items-center justify-start gap-2 rounded-md border border-input bg-background px-3 py-0 text-start font-normal shadow-xs transition-[background-color,color,box-shadow]`,`hover:bg-accent/50 hover:text-accent-foreground`,`focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-offset-background focus-visible:ring-primary/30`,`data-[disabled]:opacity-60 data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none`,`data-[state=open]:bg-accent/50 data-[state=open]:text-accent-foreground`],popup:[`z-50 overflow-hidden rounded-lg border border-border bg-popover p-3 text-popover-foreground shadow-md`,`data-[state=open]:animate-in data-[state=closed]:animate-out`,`data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,`data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95`],header:`mb-3 grid grid-cols-[auto_1fr_auto] items-center gap-1`,heading:`font-medium text-foreground text-center`,prev:[`inline-flex size-8 items-center justify-center rounded-md border border-transparent bg-transparent transition-colors`,`hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30`,`data-[disabled]:pointer-events-none data-[disabled]:opacity-50`],next:[`inline-flex size-8 items-center justify-center rounded-md border border-transparent bg-transparent transition-colors`,`hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30`,`data-[disabled]:pointer-events-none data-[disabled]:opacity-50`],grid:`grid grid-cols-3 gap-1`,cellTrigger:[`inline-flex h-9 cursor-pointer items-center justify-center rounded-md border border-transparent bg-transparent px-3 text-sm font-normal transition-colors`,`hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30`,`data-[selected]:bg-accent data-[selected]:text-foreground`,`data-[range-start]:bg-primary data-[range-start]:text-primary-foreground`,`data-[range-end]:bg-primary data-[range-end]:text-primary-foreground`,`data-[highlighted]:bg-accent/80 data-[highlighted]:text-foreground`,`data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,`data-[focused]:ring-2 data-[focused]:ring-primary/20`]},variants:{size:{xs:{root:`text-2xs`,trigger:`h-6 px-2 text-2xs`,prev:`size-6 text-2xs`,next:`size-6 text-2xs`,cellTrigger:`h-7 px-2 text-2xs`},sm:{root:`text-xs`,trigger:`h-7 px-2.5 text-xs`,prev:`size-7 text-xs`,next:`size-7 text-xs`,cellTrigger:`h-8 px-2.5 text-xs`},md:{root:`text-sm`,trigger:`h-8 px-3 text-sm`,prev:`size-8 text-sm`,next:`size-8 text-sm`,cellTrigger:`h-9 px-3 text-sm`},lg:{root:`text-base`,trigger:`h-9 px-3.5 text-base`,prev:`size-9 text-base`,next:`size-9 text-base`,cellTrigger:`h-10 px-3.5 text-base`},xl:{root:`text-lg`,trigger:`h-10 px-4 text-lg`,prev:`size-10 text-lg`,next:`size-10 text-lg`,cellTrigger:`h-11 px-4 text-lg`},"2xl":{root:`text-xl`,trigger:`h-12 px-5 text-xl`,prev:`size-12 text-xl`,next:`size-12 text-xl`,cellTrigger:`h-12 px-5 text-xl`}}},defaultVariants:{size:`md`}});export{t as monthRangePickerVariants};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{computed as e}from"vue";function t(t){let{items:n,modelValue:r}=t,i=e(()=>n.value.map(e=>e.value)),a=(e,t)=>{e.pinned=t},o=e=>{let t=i.value.indexOf(e);t!==-1&&n.value.splice(t,1)},s=e=>!n.value.find(t=>t.value===e)?.pinned,c=async(e,a)=>{if(!s(e)||await t.beforeClose(e)===!1)return;let c=r.value===e,l;if(c){let t=i.value.indexOf(e);l=(n.value[t+1]??n.value[t-1]??void 0)?.value}o(e),c&&(r.value=l??``),a?.()},l=e=>{if(e.length===0)return;let t=n.value.filter(t=>!e.includes(t.value)),i=e.includes(r.value),a;i&&(a=t[t.length-1]?.value),n.value=t,i&&(r.value=a??``)},u=e=>{let t=i.value.indexOf(e);return t<=0?[]:n.value.slice(0,t).filter(e=>!e.pinned).map(e=>e.value)},d=e=>u(e).length>0,f=e=>{d(e)&&l(u(e))},p=e=>{let t=i.value.indexOf(e);return t===-1||t>=i.value.length-1?[]:n.value.slice(t+1).filter(e=>!e.pinned).map(e=>e.value)},m=e=>p(e).length>0,h=e=>{m(e)&&l(p(e))},g=e=>n.value.filter(t=>t.value!==e&&!t.pinned).map(e=>e.value),_=e=>g(e).length>0,v=e=>{_(e)&&l(g(e))},y=()=>n.value.filter(e=>!e.pinned).map(e=>e.value),b=()=>y().length>0,x=()=>{b()&&l(y())},S=()=>{let e=[],t=[],r=[];n.value.forEach(n=>{n.pinned?n.hidePinnedIcon?e.push(n):t.push(n):r.push(n)});let i=[...e,...t,...r];i.some((e,t)=>e.value!==n.value[t].value)&&(n.value=i)};return{closeTab:c,pinTab:a,sortTabs:S,getState:e=>{let t=e.value;return{pin:()=>{e.pinned=!0,S()},unpin:()=>{e.pinned=!1,S()},closable:s(t),close:async()=>{c(t)},leftClosable:d(t),closeLeft:()=>{f(t)},rightClosable:m(t),closeRight:()=>{h(t)},otherClosable:_(t),closeOther:()=>{v(t)},allClosable:b(),closeAll:()=>{x()}}}}}export{t as usePageTabsState};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useContext as e}from"@soybeanjs/headless/composables";const[t,n]=e(`Popconfirm`);export{t as providePopconfirmContext,n as usePopconfirmContext};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{miniSizeMap as e}from"../../theme/config.js";import"../../theme/index.js";import t from"../button/button.js";import{usePopconfirmContext as n}from"./context.js";import{computed as r,createBlock as i,createTextVNode as a,createVNode as o,defineComponent as s,mergeProps as c,openBlock as l,renderSlot as u,toDisplayString as d,unref as f,withCtx as p}from"vue";import{useOmitProps as m}from"@soybeanjs/headless/composables";import{PopoverClose as h}from"@soybeanjs/headless/popover";const g=s({name:`SPopconfirmCancel`,__name:`popconfirm-cancel`,props:{text:{},beforeClose:{},class:{},color:{},size:{},variant:{default:`pure`},shape:{},shadow:{},fitContent:{type:Boolean},type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`close`],setup(s,{emit:g}){let _=s,v=g,y=m(_,[`text`,`beforeClose`]),{size:b,cancelText:x,cancelProps:S,beforeCancel:C,onClose:w}=n(`PopconfirmCancel`),T=r(()=>({...S.value,...y.value})),E=r(()=>_.text??x.value??`Cancel`),D=r(()=>_.size??e[b.value??`md`]),O=()=>{v(`close`),w()};return(e,n)=>(l(),i(f(h),{"as-child":``,"before-close":s.beforeClose??f(C),onClose:O},{default:p(()=>[o(t,c(T.value,{size:D.value}),{default:p(()=>[u(e.$slots,`default`,{},()=>[a(d(E.value),1)])]),_:3},16,[`size`])]),_:3},8,[`before-close`]))}});export{g as default};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ButtonVariant } from "../button/variants.js";
|
|
2
|
-
import { PopconfirmCancelProps } from "./types.js";
|
|
3
|
-
import * as _$vue from "vue";
|
|
4
|
-
|
|
5
|
-
//#region src/components/popconfirm/popconfirm-cancel.vue.d.ts
|
|
6
|
-
declare var __VLS_16: {};
|
|
7
|
-
type __VLS_Slots = {} & {
|
|
8
|
-
default?: (props: typeof __VLS_16) => any;
|
|
9
|
-
};
|
|
10
|
-
declare const __VLS_base: _$vue.DefineComponent<PopconfirmCancelProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
11
|
-
close: () => any;
|
|
12
|
-
}, string, _$vue.PublicProps, Readonly<PopconfirmCancelProps> & Readonly<{
|
|
13
|
-
onClose?: (() => any) | undefined;
|
|
14
|
-
}>, {
|
|
15
|
-
variant: ButtonVariant;
|
|
16
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
17
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
-
declare const _default: typeof __VLS_export;
|
|
19
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
-
new (): {
|
|
21
|
-
$slots: S;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
//#endregion
|
|
25
|
-
export { _default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{miniSizeMap as e}from"../../theme/config.js";import"../../theme/index.js";import t from"../button/button.js";import{usePopconfirmContext as n}from"./context.js";import{computed as r,createBlock as i,createTextVNode as a,createVNode as o,defineComponent as s,mergeProps as c,openBlock as l,renderSlot as u,toDisplayString as d,unref as f,withCtx as p}from"vue";import{useOmitProps as m}from"@soybeanjs/headless/composables";import{PopoverClose as h}from"@soybeanjs/headless/popover";const g=s({name:`SPopconfirmConfirm`,__name:`popconfirm-confirm`,props:{text:{},beforeClose:{type:Function},class:{},color:{},size:{},variant:{},shape:{},shadow:{},fitContent:{type:Boolean},type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`close`],setup(s,{emit:g}){let _=s,v=g,y=m(_,[`text`,`beforeClose`]),{size:b,confirmText:x,confirmProps:S,beforeConfirm:C,onClose:w}=n(`PopconfirmConfirm`),T=r(()=>({...S.value,...y.value})),E=r(()=>_.text??x.value??`Confirm`),D=r(()=>_.size??e[b.value??`md`]),O=()=>{v(`close`),w()};return(e,n)=>(l(),i(f(h),{"as-child":``,"before-close":s.beforeClose??f(C),onClose:O},{default:p(()=>[o(t,c(T.value,{size:D.value}),{default:p(()=>[u(e.$slots,`default`,{},()=>[a(d(E.value),1)])]),_:3},16,[`size`])]),_:3},8,[`before-close`]))}});export{g as default};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { PopconfirmConfirmProps } from "./types.js";
|
|
2
|
-
import * as _$vue from "vue";
|
|
3
|
-
|
|
4
|
-
//#region src/components/popconfirm/popconfirm-confirm.vue.d.ts
|
|
5
|
-
declare var __VLS_16: {};
|
|
6
|
-
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof __VLS_16) => any;
|
|
8
|
-
};
|
|
9
|
-
declare const __VLS_base: _$vue.DefineComponent<PopconfirmConfirmProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
10
|
-
close: () => any;
|
|
11
|
-
}, string, _$vue.PublicProps, Readonly<PopconfirmConfirmProps> & Readonly<{
|
|
12
|
-
onClose?: (() => any) | undefined;
|
|
13
|
-
}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
14
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
-
declare const _default: typeof __VLS_export;
|
|
16
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
-
new (): {
|
|
18
|
-
$slots: S;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
//#endregion
|
|
22
|
-
export { _default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./range-calendar.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{mergeSlotVariants as e}from"../../theme/shared.js";import"../../theme/index.js";import t from"../icon/icon.js";import{rangeCalendarVariants as n}from"./variants.js";import{computed as r,createBlock as i,createTextVNode as a,createVNode as o,defineComponent as s,guardReactiveProps as c,mergeProps as l,normalizeProps as u,openBlock as d,renderSlot as f,toDisplayString as p,toHandlers as m,unref as h,withCtx as g}from"vue";import{useForwardListeners as _,useOmitProps as v}from"@soybeanjs/headless/composables";import{RangeCalendarCompact as y,provideRangeCalendarUi as b}from"@soybeanjs/headless/range-calendar";const x=s({name:`SRangeCalendar`,__name:`range-calendar`,props:{class:{},size:{},ui:{},headerProps:{},headingProps:{},prevProps:{},nextProps:{},gridProps:{},gridHeadProps:{},gridBodyProps:{},gridRowProps:{},headCellProps:{},cellProps:{},cellTriggerProps:{},defaultValue:{},defaultPlaceholder:{},placeholder:{},modelValue:{},allowNonContiguousRanges:{type:Boolean},pagedNavigation:{type:Boolean},preventDeselect:{type:Boolean},maximumDays:{},weekStartsOn:{},weekdayFormat:{},calendarLabel:{},fixedWeeks:{type:Boolean},maxValue:{},minValue:{},locale:{},numberOfMonths:{},disabled:{type:Boolean},readonly:{type:Boolean},initialFocus:{type:Boolean},isDateDisabled:{type:Function},isDateUnavailable:{type:Function},isDateHighlightable:{type:Function},dir:{},nextPage:{type:Function},prevPage:{type:Function},disableDaysOutsideCurrentView:{type:Boolean},fixedDate:{},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`update:placeholder`,`update:startValue`],setup(s,{emit:x}){let S=s,C=x,w=v(S,[`cellProps`,`cellTriggerProps`,`class`,`gridBodyProps`,`gridHeadProps`,`gridProps`,`gridRowProps`,`headCellProps`,`headerProps`,`headingProps`,`nextProps`,`prevProps`,`size`,`ui`]),T=_(C);return b(r(()=>e(n({size:S.size}),S.ui,{root:S.class}))),(e,n)=>(d(),i(h(y),l({...h(w),cellProps:s.cellProps,cellTriggerProps:s.cellTriggerProps,gridBodyProps:s.gridBodyProps,gridHeadProps:s.gridHeadProps,gridProps:s.gridProps,gridRowProps:s.gridRowProps,headCellProps:s.headCellProps,headerProps:s.headerProps,headingProps:s.headingProps,nextProps:s.nextProps,prevProps:s.prevProps},m(h(T))),{prev:g(n=>[f(e.$slots,`prev`,u(c(n)),()=>[o(t,{class:`size-4 rtl:rotate-180`,icon:`lucide:chevron-left`})])]),heading:g(t=>[f(e.$slots,`heading`,u(c(t)),()=>[a(p(t.headingValue),1)])]),next:g(n=>[f(e.$slots,`next`,u(c(n)),()=>[o(t,{class:`size-4 rtl:rotate-180`,icon:`lucide:chevron-right`})])]),"head-cell":g(t=>[f(e.$slots,`head-cell`,u(c(t)),()=>[a(p(t.label),1)])]),day:g(t=>[f(e.$slots,`day`,u(c(t)),()=>[a(p(t.dayValue),1)])]),default:g(t=>[f(e.$slots,`default`,u(c(t)))]),_:3},16))}});export{x as default};
|