@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
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ThemeColor, ThemeSize } from "../../theme/types.js";
|
|
2
2
|
import { SwitchShape } from "./variants.js";
|
|
3
|
-
import {
|
|
3
|
+
import { SwitchCompactEmits, SwitchCompactProps, SwitchCompactSlots, SwitchUi } from "@soybeanjs/headless/switch";
|
|
4
4
|
import { AcceptableBooleanValue, ClassValue } from "@soybeanjs/headless/types";
|
|
5
5
|
|
|
6
6
|
//#region src/components/switch/types.d.ts
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Properties for the Switch component.
|
|
9
9
|
*/
|
|
10
|
-
interface SwitchProps<T extends AcceptableBooleanValue = boolean> extends
|
|
10
|
+
interface SwitchProps<T extends AcceptableBooleanValue = boolean> extends SwitchCompactProps<T> {
|
|
11
11
|
/**
|
|
12
12
|
* Additional class names applied to the root element.
|
|
13
13
|
*/
|
|
@@ -28,18 +28,14 @@ interface SwitchProps<T extends AcceptableBooleanValue = boolean> extends Switch
|
|
|
28
28
|
* Shape of the component.
|
|
29
29
|
*/
|
|
30
30
|
shape?: SwitchShape;
|
|
31
|
-
/**
|
|
32
|
-
* Props forwarded to the control element.
|
|
33
|
-
*/
|
|
34
|
-
controlProps?: SwitchControlProps;
|
|
35
|
-
/**
|
|
36
|
-
* Props forwarded to the thumb element.
|
|
37
|
-
*/
|
|
38
|
-
thumbProps?: SwitchThumbProps;
|
|
39
31
|
}
|
|
40
32
|
/**
|
|
41
|
-
*
|
|
33
|
+
* Events for the Switch component.
|
|
34
|
+
*/
|
|
35
|
+
type SwitchEmits<T extends AcceptableBooleanValue = boolean> = SwitchCompactEmits<T>;
|
|
36
|
+
/**
|
|
37
|
+
* Slots for the Switch component.
|
|
42
38
|
*/
|
|
43
|
-
type
|
|
39
|
+
type SwitchSlots<T extends AcceptableBooleanValue = boolean> = SwitchCompactSlots<T>;
|
|
44
40
|
//#endregion
|
|
45
|
-
export { SwitchEmits, SwitchProps };
|
|
41
|
+
export { SwitchEmits, SwitchProps, SwitchSlots };
|
|
@@ -69,7 +69,7 @@ declare const switchVariants: _$tailwind_variants0.TVReturnType<{
|
|
|
69
69
|
root: string;
|
|
70
70
|
control: string[];
|
|
71
71
|
thumb: string;
|
|
72
|
-
},
|
|
72
|
+
}, undefined, {
|
|
73
73
|
color: {
|
|
74
74
|
primary: {
|
|
75
75
|
control: string;
|
|
@@ -203,7 +203,7 @@ declare const switchVariants: _$tailwind_variants0.TVReturnType<{
|
|
|
203
203
|
root: string;
|
|
204
204
|
control: string[];
|
|
205
205
|
thumb: string;
|
|
206
|
-
},
|
|
206
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
207
207
|
type SwitchVariants = VariantProps<typeof switchVariants>;
|
|
208
208
|
type SwitchShape = NonNullable<SwitchVariants['shape']>;
|
|
209
209
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{tv as e}from"tailwind-variants";const t=e({
|
|
1
|
+
import{tv as e}from"tailwind-variants";const t=e({slots:{root:`inline-flex`,control:[`peer shrink-0 inline-flex items-center rounded-full border-0 shadow-sm transition-colors-200`,`outline-none focus-visible:ring-3 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=unchecked]:bg-input`],thumb:`flex justify-center items-center rounded-full shadow-lg transition-transform-200 bg-background pointer-events-none data-[state=unchecked]:translate-x-0.5`},variants:{color:{primary:{control:`data-[state=checked]:bg-primary focus-visible:ring-primary/30`},destructive:{control:`data-[state=checked]:bg-destructive focus-visible:ring-destructive/30`},success:{control:`data-[state=checked]:bg-success focus-visible:ring-success/30`},warning:{control:`data-[state=checked]:bg-warning focus-visible:ring-warning/30`},info:{control:`data-[state=checked]:bg-info focus-visible:ring-info/30`},carbon:{control:`data-[state=checked]:bg-carbon focus-visible:ring-carbon/30`},secondary:{control:`data-[state=checked]:bg-secondary-foreground/20 focus-visible:ring-secondary-foreground/20`},accent:{control:`data-[state=checked]:bg-accent-foreground/20 focus-visible:ring-accent-foreground/20`}},size:{xs:{control:`h-4 w-7`,thumb:`size-3 data-[state=checked]:translate-x-3.5`},sm:{control:`h-4.5 w-8`,thumb:`size-3.5 data-[state=checked]:translate-x-4`},md:{control:`h-5 w-9`,thumb:`size-4 data-[state=checked]:translate-x-4.5`},lg:{control:`h-5.5 w-10`,thumb:`size-4.5 data-[state=checked]:translate-x-5`},xl:{control:`h-6 w-11`,thumb:`size-5 data-[state=checked]:translate-x-5.5`},"2xl":{control:`h-7 w-13`,thumb:`size-6 data-[state=checked]:translate-x-6.5`}},shape:{rounded:{control:`rounded-full`,thumb:`rounded-full`},square:{control:`rounded-md`,thumb:`rounded-sm`}}},defaultVariants:{color:`primary`,size:`md`,shape:`rounded`}});export{t as switchVariants};
|
|
@@ -17,11 +17,11 @@ type UsePaginatedTableOptions<ResponseData, ApiData extends TableBaseData> = Use
|
|
|
17
17
|
page?: number;
|
|
18
18
|
pageSize?: number;
|
|
19
19
|
/**
|
|
20
|
-
* Whether to fetch data when page or pageSize changes.
|
|
20
|
+
* Whether to fetch data when page or pageSize changes.
|
|
21
21
|
*
|
|
22
|
-
* Set this to `false` if you want to handle pagination change manually, such as fetching data in a parent component.
|
|
22
|
+
* Set this to `false` if you want to handle pagination change manually, such as fetching data in a parent component.
|
|
23
23
|
*
|
|
24
|
-
* In this case, you can listen to `update:page` and `update:pageSize` events to get the current page and page size.
|
|
24
|
+
* In this case, you can listen to `update:page` and `update:pageSize` events to get the current page and page size.
|
|
25
25
|
*
|
|
26
26
|
* @default true
|
|
27
27
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{miniSizeMap as e}from"../../theme/config.js";import"../../theme/index.js";import t from"../button/button.js";import n from"../button/button-icon.js";import r from"../checkbox/checkbox.js";import i from"../
|
|
1
|
+
import{miniSizeMap as e}from"../../theme/config.js";import"../../theme/index.js";import t from"../button/button.js";import n from"../button/button-icon.js";import r from"../checkbox/checkbox.js";import i from"../input/input.js";import a from"../popover/popover.js";import{Fragment as o,computed as s,createBlock as c,createCommentVNode as l,createElementBlock as u,createElementVNode as d,createTextVNode as f,createVNode as p,defineComponent as m,normalizeClass as h,openBlock as g,renderList as _,toDisplayString as v,withCtx as y}from"vue";const b=m({name:`STableFilterPopover`,__name:`table-filter-popover`,props:{size:{},ui:{},column:{},filterValue:{},filterValues:{},filterState:{},filtered:{type:Boolean},filterOptions:{},setFilterValue:{type:Function},setFilterValues:{type:Function},setFilterState:{type:Function},toggleFilterOption:{type:Function},isFilterOptionSelected:{type:Function},clearFilter:{type:Function}},setup(m){let b=m,x=s(()=>b.column.title??b.column.key??b.column.dataIndex??`column`),S=s(()=>{let e=b.filterValue.trim().toLowerCase();return e?b.filterOptions.filter(t=>t.label.toLowerCase().includes(e)||t.value.toLowerCase().includes(e)):b.filterOptions}),C=s(()=>S.value.length>0),w=s(()=>b.filterValues.length>0?`${b.filterValues.length} selected`:b.filterValue.trim().length>0?`Keyword active`:b.filterOptions.length>0?`${b.filterOptions.length} options`:`No filter options`),T=s(()=>b.filtered?`Edit filter for ${x.value}`:`Filter ${x.value}`),E=s(()=>`Search filter options for ${x.value}`),D=s(()=>e[b.size??`md`]);function O(e){b.setFilterValue(String(e??``))}return(e,s)=>(g(),c(a,{class:h(m.ui.filterPopup),size:m.size,placement:`bottom-end`,"show-arrow":!1},{trigger:y(()=>[p(n,{icon:`lucide:funnel`,"data-filtered":b.filtered?``:void 0,class:h(m.ui.filterTrigger),size:D.value,"aria-label":T.value,"aria-pressed":m.filtered||void 0},null,8,[`data-filtered`,`class`,`size`,`aria-label`,`aria-pressed`])]),default:y(()=>[p(i,{class:h(m.ui.filterSearch),size:D.value,"model-value":m.filterValue,"control-props":{"aria-label":E.value,placeholder:`Search ${x.value}`},"onUpdate:modelValue":O},null,8,[`class`,`size`,`model-value`,`control-props`]),m.filterOptions.length>0?(g(),u(`div`,{key:0,class:h(m.ui.filterOptions)},[(g(!0),u(o,null,_(S.value,e=>(g(),c(r,{key:e.value,class:h(m.ui.filterOption),size:D.value,disabled:e.disabled,"model-value":m.isFilterOptionSelected(e.value),label:e.label,ui:{label:m.ui.filterOptionLabel},"control-props":{"aria-label":`Select ${e.label}`},"onUpdate:modelValue":t=>m.toggleFilterOption(e.value)},null,8,[`class`,`size`,`disabled`,`model-value`,`label`,`ui`,`control-props`,`onUpdate:modelValue`]))),128)),C.value?l(`v-if`,!0):(g(),u(`div`,{key:0,class:h(m.ui.filterEmpty)},`No matching options`,2))],2)):l(`v-if`,!0),d(`div`,{class:h(m.ui.filterFooter)},[d(`span`,{class:h(m.ui.filterCount)},v(w.value),3),m.filtered?(g(),c(t,{key:0,variant:`ghost`,color:`accent`,"fit-content":``,size:D.value,class:h(m.ui.filterAction),onClick:m.clearFilter},{default:y(()=>[...s[0]||=[f(` Clear `,-1)]]),_:1},8,[`size`,`class`,`onClick`])):l(`v-if`,!0)],2)]),_:1},8,[`class`,`size`]))}});export{b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{mergeVariants as e}from"../../theme/shared.js";import{miniSizeMap as t}from"../../theme/config.js";import"../../theme/index.js";import n from"../button/button-icon.js";import r from"../checkbox/checkbox.js";import i from"../empty/empty.js";import a from"./table-filter-popover.js";import{tableVariants as o}from"./variants.js";import s from"./table-radio.js";import{computed as c,createBlock as l,createCommentVNode as u,createElementVNode as d,createSlots as f,createVNode as p,defineComponent as m,guardReactiveProps as h,mergeProps as g,normalizeClass as _,normalizeProps as v,openBlock as y,renderList as b,renderSlot as x,toHandlers as S,unref as C,useSlots as w,withCtx as T}from"vue";import{useForwardListeners as E,useOmitProps as D}from"@soybeanjs/headless/composables";import{useLocaleMessages as O}from"@soybeanjs/headless";import{TableCompact as k,provideTableUi as A}from"@soybeanjs/headless/table";const j=[`aria-label`,`aria-pressed`,`data-resizing`,`onPointerdown`,`onKeydown`],M=m({name:`STable`,__name:`table`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},variant:{},bordered:{type:Boolean},rounded:{type:Boolean,default:!0},striped:{type:Boolean},columns:{},data:{},rowKey:{},defaultSortState:{},sortState:{},defaultFilterState:{},filterState:{},defaultColumnWidths:{},columnWidths:{},getChildren:{},indent:{},virtual:{type:Boolean},height:{},estimateSize:{},virtualizerOptions:{},defaultExpanded:{},expanded:{},defaultExpandAll:{type:Boolean},contentProps:{},headerProps:{},bodyProps:{},footerProps:{},headProps:{},rowProps:{},cellProps:{},dir:{},defaultSelected:{},selected:{},multiple:{default:!0}},emits:[`update:sortState`,`update:filterState`,`update:columnWidths`,`update:expanded`,`update:selected`],setup(m,{emit:M}){let N=m,P=M,F=w(),I=D(N,[`class`,`ui`,`size`,`variant`,`bordered`,`rounded`,`striped`]),L=E(P),R=c(()=>Object.keys(F)),z=c(()=>e(o({size:N.size,variant:N.variant,bordered:N.bordered,rounded:N.rounded,striped:N.striped}),N.ui,{root:N.class})),B=c(()=>t[N.size??`md`]),V=O(),H=e=>e===`asc`?`lucide:arrow-up`:e===`desc`?`lucide:arrow-down`:`lucide:arrow-up-down`;return A(z),(e,t)=>(y(),l(C(k),g(C(I),S(C(L))),f({_:2},[b(R.value,t=>({name:t,fn:T(n=>[x(e.$slots,t,v(h(n)))])})),F[`header-selection`]?void 0:{name:`header-selection`,fn:T(({checked:e,disabled:t,multiple:n,ariaLabel:i,updateChecked:a})=>[n?(y(),l(r,{key:0,disabled:t,"model-value":e,class:_(z.value.selection),"control-props":{"aria-label":i},"onUpdate:modelValue":a},null,8,[`disabled`,`model-value`,`class`,`control-props`,`onUpdate:modelValue`])):u(`v-if`,!0)]),key:`0`},F.selection?void 0:{name:`selection`,fn:T(({checked:e,multiple:t,ariaLabel:n,toggleSelect:i})=>[t?(y(),l(r,{key:0,class:_(z.value.selection),"model-value":e,"control-props":{"aria-label":n},"onUpdate:modelValue":e=>i()},null,8,[`class`,`model-value`,`control-props`,`onUpdate:modelValue`])):(y(),l(s,{key:1,size:m.size,checked:e,"aria-label":n,onClick:e=>i()},null,8,[`size`,`checked`,`aria-label`,`onClick`]))]),key:`1`},F[`header-sort`]?void 0:{name:`header-sort`,fn:T(({sortOrder:e,ariaLabel:t,toggleSort:r})=>[p(n,{icon:H(e),class:_(z.value.sortTrigger),size:B.value,"aria-label":t,"data-sorted":e?``:void 0,onClick:e=>r()},null,8,[`icon`,`class`,`size`,`aria-label`,`data-sorted`,`onClick`])]),key:`2`},F[`header-filter`]?void 0:{name:`header-filter`,fn:T(e=>[p(a,g(e,{ui:z.value,size:m.size}),null,16,[`ui`,`size`])]),key:`3`},F[`header-resize`]?void 0:{name:`header-resize`,fn:T(({resizing:e,ariaLabel:t,onPointerdown:n,onKeydown:r})=>[d(`button`,{type:`button`,class:_(z.value.resizeHandle),"aria-label":t,"aria-pressed":e,"data-resizing":e||void 0,onPointerdown:n,onKeydown:r},null,42,j)]),key:`4`},F[`tree-toggle`]?void 0:{name:`tree-toggle`,fn:T(({expanded:e,ariaLabel:t,toggleExpand:r})=>[p(n,{class:_(z.value.treeToggle),size:B.value,"aria-expanded":e,"aria-label":t,icon:e?`lucide:chevron-down`:`lucide:chevron-right`,onClick:e=>r()},null,8,[`class`,`size`,`aria-expanded`,`aria-label`,`icon`,`onClick`])]),key:`5`},F.expand?void 0:{name:`expand`,fn:T(({expanded:e,ariaLabel:t,hasChildren:r,toggleExpand:i})=>[r||F[`expanded-row`]?(y(),l(n,{key:0,icon:e?`lucide:chevron-down`:`lucide:chevron-right`,class:_(z.value.treeToggle),size:B.value,"aria-expanded":e,"aria-label":t,"data-expanded":e?``:void 0,onClick:e=>i()},null,8,[`icon`,`class`,`size`,`aria-expanded`,`aria-label`,`data-expanded`,`onClick`])):u(`v-if`,!0)]),key:`6`},F.empty?void 0:{name:`empty`,fn:T(()=>[p(i,{title:C(V).table.emptyTitle,description:C(V).table.emptyDescription,icon:`lucide:inbox`,"media-variant":`icon`},null,8,[`title`,`description`])]),key:`7`}]),1040))}});export{M as default};
|
|
@@ -5,10 +5,10 @@ import * as _$_soybeanjs_headless0 from "@soybeanjs/headless";
|
|
|
5
5
|
//#region src/components/table/table.vue.d.ts
|
|
6
6
|
declare const __VLS_export: <T extends TableBaseData = TableBaseData, R extends string | number = string | number, M extends boolean = boolean>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: _$vue.PublicProps & __VLS_PrettifyLocal<TableProps<T, R, M> & {
|
|
8
|
-
"onUpdate:expanded"?: ((expanded: R[]) => any) | undefined;
|
|
9
8
|
"onUpdate:sortState"?: ((state: _$_soybeanjs_headless0.TableSortState | undefined) => any) | undefined;
|
|
10
9
|
"onUpdate:filterState"?: ((state: _$_soybeanjs_headless0.TableFilterState) => any) | undefined;
|
|
11
10
|
"onUpdate:columnWidths"?: ((state: _$_soybeanjs_headless0.TableColumnWidthState) => any) | undefined;
|
|
11
|
+
"onUpdate:expanded"?: ((expanded: R[]) => any) | undefined;
|
|
12
12
|
"onUpdate:selected"?: ((selected: M extends true ? R[] : R | undefined) => any) | undefined;
|
|
13
13
|
}> & (typeof globalThis extends {
|
|
14
14
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -16,7 +16,7 @@ declare const __VLS_export: <T extends TableBaseData = TableBaseData, R extends
|
|
|
16
16
|
expose: (exposed: {}) => void;
|
|
17
17
|
attrs: any;
|
|
18
18
|
slots: TableSlots<T>;
|
|
19
|
-
emit: ((evt: "update:
|
|
19
|
+
emit: ((evt: "update:sortState", state: _$_soybeanjs_headless0.TableSortState | undefined) => void) & ((evt: "update:filterState", state: _$_soybeanjs_headless0.TableFilterState) => void) & ((evt: "update:columnWidths", state: _$_soybeanjs_headless0.TableColumnWidthState) => void) & ((evt: "update:expanded", expanded: R[]) => void) & ((evt: "update:selected", selected: M extends true ? R[] : R | undefined) => void);
|
|
20
20
|
}>) => _$vue.VNode & {
|
|
21
21
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
22
22
|
};
|
|
@@ -9,11 +9,11 @@ import { ClassValue, UiClass } from "@soybeanjs/headless/types";
|
|
|
9
9
|
*/
|
|
10
10
|
type TableExtraUiSlot = 'selection' | 'filterTrigger' | 'filterPopup' | 'filterSearch' | 'filterOptions' | 'filterOption' | 'filterOptionLabel' | 'filterFooter' | 'filterCount' | 'filterAction' | 'filterEmpty';
|
|
11
11
|
/**
|
|
12
|
-
* Extended UI class overrides for the
|
|
12
|
+
* Extended UI class overrides for the Table component.
|
|
13
13
|
*/
|
|
14
14
|
type TableExtendedUi = UiClass<TableUiSlot | TableExtraUiSlot>;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Properties for the Table component.
|
|
17
17
|
*/
|
|
18
18
|
interface TableProps<T extends TableBaseData = TableBaseData, R extends string | number = string | number, M extends boolean = false> extends TableCompactProps<T, R, M> {
|
|
19
19
|
/**
|
|
@@ -46,15 +46,15 @@ interface TableProps<T extends TableBaseData = TableBaseData, R extends string |
|
|
|
46
46
|
striped?: boolean;
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Events for the Table component.
|
|
50
50
|
*/
|
|
51
51
|
type TableEmits<R extends TableUnifiedKey = TableUnifiedKey, M extends boolean = false> = TableCompactEmits<R, M>;
|
|
52
52
|
/**
|
|
53
|
-
* Slots for the
|
|
53
|
+
* Slots for the Table component.
|
|
54
54
|
*/
|
|
55
55
|
type TableSlots<T extends TableBaseData = TableBaseData> = TableCompactSlots<T>;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* Properties for the TableRadio component.
|
|
58
58
|
*/
|
|
59
59
|
interface TableRadioProps {
|
|
60
60
|
/**
|
|
@@ -67,7 +67,7 @@ interface TableRadioProps {
|
|
|
67
67
|
checked?: boolean;
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
|
-
* Type information for
|
|
70
|
+
* Type information for TableFilterPopoverColumnMeta.
|
|
71
71
|
*/
|
|
72
72
|
interface TableFilterPopoverColumnMeta {
|
|
73
73
|
/**
|
|
@@ -84,7 +84,7 @@ interface TableFilterPopoverColumnMeta {
|
|
|
84
84
|
dataIndex?: string;
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
87
|
-
* Type information for
|
|
87
|
+
* Type information for TableFilterPopoverOption.
|
|
88
88
|
*/
|
|
89
89
|
interface TableFilterPopoverOption {
|
|
90
90
|
/**
|
|
@@ -101,7 +101,7 @@ interface TableFilterPopoverOption {
|
|
|
101
101
|
disabled?: boolean;
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* Properties for the TableFilterPopover component.
|
|
105
105
|
*/
|
|
106
106
|
interface TableFilterPopoverProps<T extends TableBaseData = TableBaseData> extends TableHeaderFilterSlotProps<T> {
|
|
107
107
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{mergeVariants as e}from"../../theme/shared.js";import"../../theme/index.js";import{tabsVariants as t}from"./variants.js";import{computed as n,createBlock as r,createCommentVNode as i,createSlots as a,defineComponent as o,guardReactiveProps as s,mergeProps as c,normalizeProps as l,openBlock as u,renderList as d,renderSlot as f,toHandlers as p,unref as m,useSlots as h,withCtx as g}from"vue";import{useForwardListeners as _,useOmitProps as v}from"@soybeanjs/headless/composables";import{keysOf as y}from"@soybeanjs/utils";import{TabsCompact as b,provideTabsUi as x}from"@soybeanjs/headless/tabs";const S=o({name:`STabs`,__name:`tabs`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},fill:{default:`full`},items:{},enableIndicator:{type:Boolean,default:!0},listProps:{},triggerProps:{},contentProps:{},indicatorProps:{},modelValue:{default:void 0},defaultValue:{},activationMode:{},unmountOnHide:{type:Boolean,default:!0},orientation:{},dir:{},loop:{type:Boolean,default:!0}},emits:[`update:modelValue`],setup(o,{emit:S}){let C=o,w=S,T=h(),E=v(C,[`class`,`size`,`ui`,`fill`]),D=_(w),O=n(()=>y(T));return x(n(()=>e(t({size:C.size,orientation:C.orientation,fill:C.fill,enableIndicator:C.enableIndicator}),C.ui,{root:C.class}))),(e,t)=>(u(),r(m(b),c(m(E),{items:o.items},p(m(D))),a({_:2},[d(O.value,t=>({name:t,fn:g(n=>[i(` @vue-ignore ignore vue slot props type `),f(e.$slots,t,l(s(n)))])}))]),1040,[`items`]))}});export{S as default};
|
|
@@ -4,14 +4,14 @@ import * as _$vue from "vue";
|
|
|
4
4
|
//#region src/components/tabs/tabs.vue.d.ts
|
|
5
5
|
declare const __VLS_export: <T extends TabsOptionData = TabsOptionData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: _$vue.PublicProps & __VLS_PrettifyLocal<TabsProps<T> & {
|
|
7
|
-
"onUpdate:modelValue"?: ((payload: T["value"]) => any) | undefined;
|
|
7
|
+
"onUpdate:modelValue"?: ((payload: Exclude<T["value"], undefined>) => any) | undefined;
|
|
8
8
|
}> & (typeof globalThis extends {
|
|
9
9
|
__VLS_PROPS_FALLBACK: infer P;
|
|
10
10
|
} ? P : {});
|
|
11
11
|
expose: (exposed: {}) => void;
|
|
12
12
|
attrs: any;
|
|
13
13
|
slots: TabsSlots<T>;
|
|
14
|
-
emit: (evt: "update:modelValue", payload: T["value"]) => void;
|
|
14
|
+
emit: (evt: "update:modelValue", payload: Exclude<T["value"], undefined>) => void;
|
|
15
15
|
}>) => _$vue.VNode & {
|
|
16
16
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
17
17
|
};
|
|
@@ -5,7 +5,7 @@ import { AcceptableValue, ClassValue } from "@soybeanjs/headless/types";
|
|
|
5
5
|
|
|
6
6
|
//#region src/components/tabs/types.d.ts
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Properties for the Tabs component.
|
|
9
9
|
*/
|
|
10
10
|
interface TabsProps<T extends TabsOptionData = TabsOptionData> extends TabsCompactProps<T> {
|
|
11
11
|
/**
|
|
@@ -24,11 +24,11 @@ interface TabsProps<T extends TabsOptionData = TabsOptionData> extends TabsCompa
|
|
|
24
24
|
fill?: TabsFill;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Events for the Tabs component.
|
|
28
28
|
*/
|
|
29
29
|
type TabsEmits<T extends AcceptableValue = AcceptableValue> = TabsCompactEmits<T>;
|
|
30
30
|
/**
|
|
31
|
-
* Slots for the
|
|
31
|
+
* Slots for the Tabs component.
|
|
32
32
|
*/
|
|
33
33
|
type TabsSlots<T extends TabsOptionData = TabsOptionData> = TabsCompactSlots<T>;
|
|
34
34
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cn as e}from"../../theme/merge.js";import"../../theme/index.js";import t from"../icon/icon.js";import{tagVariants as n}from"./variants.js";import{computed as r,createBlock as i,createCommentVNode as a,createTextVNode as o,createVNode as s,defineComponent as c,normalizeClass as l,openBlock as u,renderSlot as d,toDisplayString as f,unref as p,withCtx as m}from"vue";import{Tag as h}from"@soybeanjs/headless/tag";const g=c({name:`STag`,__name:`tag`,props:{class:{},color:{},size:{},variant:{},shape:{},content:{},closable:{type:Boolean},open:{type:Boolean,default:void 0}},emits:[`update:open`],setup(c,{emit:g}){let _=c,v=g,y=r(()=>e(n({color:_.color,size:_.size,variant:_.variant,shape:_.shape}),_.class));return(e,n)=>(u(),i(p(h),{open:c.open,class:l(y.value),"onUpdate:open":n[0]||=e=>v(`update:open`,e)},{default:m(({close:n})=>[d(e.$slots,`leading`),d(e.$slots,`default`,{},()=>[o(f(c.content),1)]),d(e.$slots,`trailing`),c.closable?d(e.$slots,`close`,{key:0,close:n},()=>[s(t,{icon:`lucide:x`,style:{"flex-shrink":`0`,cursor:`pointer`},onClick:n},null,8,[`onClick`])]):a(`v-if`,!0)]),_:3},8,[`open`,`class`]))}});export{g as default};
|
|
1
|
+
import{cn as e}from"../../theme/merge.js";import"../../theme/index.js";import t from"../icon/icon.js";import{tagVariants as n}from"./variants.js";import{computed as r,createBlock as i,createCommentVNode as a,createTextVNode as o,createVNode as s,defineComponent as c,normalizeClass as l,openBlock as u,renderSlot as d,toDisplayString as f,unref as p,withCtx as m}from"vue";import{Tag as h}from"@soybeanjs/headless/tag";const g=c({name:`STag`,__name:`tag`,props:{class:{type:[Boolean,null,String,Object,Array]},color:{},size:{},variant:{},shape:{},content:{},closable:{type:Boolean},open:{type:Boolean,default:void 0}},emits:[`update:open`],setup(c,{emit:g}){let _=c,v=g,y=r(()=>e(n({color:_.color,size:_.size,variant:_.variant,shape:_.shape}),_.class));return(e,n)=>(u(),i(p(h),{open:c.open,class:l(y.value),"onUpdate:open":n[0]||=e=>v(`update:open`,e)},{default:m(({close:n})=>[d(e.$slots,`leading`),d(e.$slots,`default`,{},()=>[o(f(c.content),1)]),d(e.$slots,`trailing`),c.closable?d(e.$slots,`close`,{key:0,close:n},()=>[s(t,{icon:`lucide:x`,style:{"flex-shrink":`0`,cursor:`pointer`},onClick:n},null,8,[`onClick`])]):a(`v-if`,!0)]),_:3},8,[`open`,`class`]))}});export{g as default};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { TagsInputEmits, TagsInputProps } from "./types.js";
|
|
1
|
+
import { TagsInputEmits, TagsInputProps, TagsInputSlots } from "./types.js";
|
|
2
2
|
import { _default } from "./tags-input.vue.js";
|
|
3
|
-
import {
|
|
4
|
-
import { TagsInputClear as STagsInputClear, TagsInputInput as STagsInputInput, TagsInputItem as STagsInputItem, TagsInputItemText as STagsInputItemText } from "@soybeanjs/headless/tags-input";
|
|
3
|
+
import { TagsInputItemDelete as STagsInputItemDelete, TagsInputItemText as STagsInputItemText } from "@soybeanjs/headless/tags-input";
|
|
5
4
|
export * from "@soybeanjs/headless/tags-input";
|
|
6
|
-
export {
|
|
5
|
+
export { STagsInputItemDelete, STagsInputItemText };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./tags-input.js";import
|
|
1
|
+
import"./tags-input.js";import{TagsInputItemDelete as e,TagsInputItemText as t}from"@soybeanjs/headless/tags-input";export{e as STagsInputItemDelete,t as STagsInputItemText};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{mergeVariants as e}from"../../theme/shared.js";import{miniSizeMap as t}from"../../theme/config.js";import"../../theme/index.js";import{buttonIconVariants as n}from"../button/variants.js";import{tagsInputVariants as r}from"./variants.js";import{computed as i,createBlock as a,createSlots as o,defineComponent as s,guardReactiveProps as c,mergeProps as l,normalizeProps as u,openBlock as d,renderSlot as f,toHandlers as p,unref as m,useSlots as h,withCtx as g}from"vue";import{useForwardListeners as _,useOmitProps as v}from"@soybeanjs/headless/composables";import{TagsInputCompact as y,provideTagsInputUi as b}from"@soybeanjs/headless/tags-input";const x=s({name:`STagsInput`,__name:`tags-input`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},clearable:{type:Boolean},controlProps:{},clearProps:{},itemProps:{},itemTextProps:{},itemDeleteProps:{},dir:{},modelValue:{},defaultValue:{},addOnPaste:{type:Boolean},addOnTab:{type:Boolean},addOnBlur:{type:Boolean},duplicate:{type:Boolean},delimiter:{},max:{},displayValue:{type:Function},id:{},autofocus:{type:Boolean},disabled:{type:Boolean},maxlength:{},minlength:{},pattern:{},placeholder:{},readonly:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`invalid`,`addTag`,`removeTag`],setup(s,{emit:x}){let S=s,C=x,w=h(),T=v(S,[`class`,`size`,`ui`]),E=_(C);return b(i(()=>{let i=t[S.size||`md`];return e(Object.assign(r({size:S.size}),{$base:{itemDelete:n({size:i,shape:`circle`}),clear:n({size:S.size})}}),S.ui,{root:S.class})})),(e,t)=>(d(),a(m(y),l(m(T),p(m(E))),o({_:2},[w.item?{name:`item`,fn:g(t=>[f(e.$slots,`item`,u(c(t)))]),key:`0`}:void 0]),1040))}});export{x as default};
|
|
@@ -1,29 +1,25 @@
|
|
|
1
|
-
import { TagsInputProps } from "./types.js";
|
|
1
|
+
import { TagsInputProps, TagsInputSlots } from "./types.js";
|
|
2
2
|
import * as _$vue from "vue";
|
|
3
|
-
import { TagsInputAcceptableValue } from "@soybeanjs/headless/tags-input";
|
|
4
3
|
|
|
5
4
|
//#region src/components/tags-input/tags-input.vue.d.ts
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
5
|
+
type __VLS_Slots = TagsInputSlots;
|
|
6
|
+
declare const __VLS_base: _$vue.DefineComponent<TagsInputProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
7
|
+
invalid: (value: string) => any;
|
|
8
|
+
"update:modelValue": (value: string[]) => any;
|
|
9
|
+
addTag: (value: string) => any;
|
|
10
|
+
removeTag: (value: string) => any;
|
|
11
|
+
}, string, _$vue.PublicProps, Readonly<TagsInputProps> & Readonly<{
|
|
12
|
+
onInvalid?: ((value: string) => any) | undefined;
|
|
13
|
+
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
14
|
+
onAddTag?: ((value: string) => any) | undefined;
|
|
15
|
+
onRemoveTag?: ((value: string) => any) | undefined;
|
|
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;
|
|
21
22
|
};
|
|
22
|
-
emit: ((evt: "update:modelValue", value: T[]) => void) & ((evt: "invalid", value: T) => void) & ((evt: "addTag", value: T) => void) & ((evt: "removeTag", value: T) => void);
|
|
23
|
-
}>) => _$vue.VNode & {
|
|
24
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
25
23
|
};
|
|
26
|
-
declare const _default: typeof __VLS_export;
|
|
27
|
-
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
28
24
|
//#endregion
|
|
29
25
|
export { _default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ThemeSize } from "../../theme/types.js";
|
|
2
|
-
import {
|
|
2
|
+
import { TagsInputCompactEmits, TagsInputCompactProps, TagsInputCompactSlots, TagsInputUi } from "@soybeanjs/headless/tags-input";
|
|
3
3
|
import { ClassValue } from "@soybeanjs/headless/types";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tags-input/types.d.ts
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Properties for the TagsInput component.
|
|
8
8
|
*/
|
|
9
|
-
interface TagsInputProps
|
|
9
|
+
interface TagsInputProps extends TagsInputCompactProps {
|
|
10
10
|
/**
|
|
11
11
|
* Additional class names applied to the root element.
|
|
12
12
|
*/
|
|
@@ -21,8 +21,12 @@ interface TagsInputProps<T = string> extends TagsInputRootProps<T> {
|
|
|
21
21
|
ui?: Partial<TagsInputUi>;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Events for the TagsInput component.
|
|
25
25
|
*/
|
|
26
|
-
type TagsInputEmits
|
|
26
|
+
type TagsInputEmits = TagsInputCompactEmits;
|
|
27
|
+
/**
|
|
28
|
+
* Slots for the TagsInput component.
|
|
29
|
+
*/
|
|
30
|
+
type TagsInputSlots = TagsInputCompactSlots;
|
|
27
31
|
//#endregion
|
|
28
|
-
export { TagsInputEmits, TagsInputProps };
|
|
32
|
+
export { TagsInputEmits, TagsInputProps, TagsInputSlots };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{tv as e}from"tailwind-variants";const t=e({slots:{root:[`flex w-full flex-wrap items-center rounded-md border border-input bg-background shadow-
|
|
1
|
+
import{tv as e}from"tailwind-variants";const t=e({slots:{root:[`group relative flex w-full flex-wrap items-center rounded-md border border-input bg-background shadow-sm transition-all-150`,`outline-none focus-within:ring-3 focus-within:ring-offset-background focus-within:ring-primary/30`,`data-[invalid]:focus-within:ring-destructive/30`,`data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`],item:[`inline-flex items-center rounded-md bg-accent ring-offset-background transition-[box-shadow,background-color]`,`data-[state=active]:ring-2 data-[state=active]:ring-primary/30 data-[state=active]:ring-offset-2`,`data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`],itemText:`rounded bg-transparent`,itemDelete:``,control:[`grow min-w-0 bg-transparent text-foreground outline-none`,`placeholder:text-muted-foreground disabled:cursor-not-allowed`],clear:`absolute opacity-0 transition-opacity group-data-[has-value]:opacity-100`},variants:{size:{xs:{root:`gap-1 px-1.5 py-1 text-2xs`,item:`min-h-4 gap-0.5`,itemText:`px-1.5 py-0.5`,itemDelete:`me-0.5`,input:`min-h-5 px-0.5`,clear:`end-0.5 top-0.5`},sm:{root:`gap-1.5 px-2 py-1 text-xs`,item:`min-h-4.5 gap-0.75`,itemText:`px-1.5 py-0.5`,itemDelete:`me-0.5`,input:`min-h-5 px-0.75`,clear:`end-0.75 top-0.75`},md:{root:`gap-2 px-2 py-1 text-sm`,item:`min-h-5 gap-1`,itemText:`px-2 py-0.5`,itemDelete:`me-1`,input:`min-h-5 px-1`,clear:`end-1 top-1`},lg:{root:`gap-2 px-2.5 py-1.5 text-base`,item:`min-h-6 gap-1`,itemText:`px-2 py-0.5`,itemDelete:`me-1`,input:`min-h-6 px-1.25`,clear:`end-1.25 top-1.25`},xl:{root:`gap-2.5 px-3 py-2 text-lg`,item:`min-h-7 gap-1.5`,itemText:`px-2.5 py-1`,itemDelete:`me-1`,input:`min-h-7 px-1.5`,clear:`end-1.5 top-1.5`},"2xl":{root:`gap-3 px-3.5 py-2.5 text-xl`,item:`min-h-8 gap-1.5`,itemText:`px-3 py-1`,itemDelete:`me-1.5`,input:`min-h-8 px-2`,clear:`end-2 top-2`}}},defaultVariants:{size:`md`}});export{t as tagsInputVariants};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { TextareaResize } from "./variants.js";
|
|
2
|
-
import { TextareaEmits,
|
|
2
|
+
import { TextareaEmits, TextareaProps, TextareaSlots } from "./types.js";
|
|
3
3
|
import { _default } from "./textarea.vue.js";
|
|
4
|
-
|
|
4
|
+
import { TextareaClear as STextareaClear } from "@soybeanjs/headless/textarea";
|
|
5
|
+
export * from "@soybeanjs/headless/textarea";
|
|
6
|
+
export { STextareaClear };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./textarea.js";
|
|
1
|
+
import"./textarea.js";import{TextareaClear as e}from"@soybeanjs/headless/textarea";export{e as STextareaClear};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{mergeVariants as e}from"../../theme/shared.js";import{miniSizeMap as t}from"../../theme/config.js";import"../../theme/index.js";import{buttonIconVariants as n}from"../button/variants.js";import{textareaVariants as r}from"./variants.js";import{computed as i,createBlock as a,createSlots as o,defineComponent as s,guardReactiveProps as c,mergeProps as l,normalizeProps as u,openBlock as d,renderList as f,renderSlot as p,unref as m,useSlots as h,withCtx as g}from"vue";import{useOmitProps as _}from"@soybeanjs/headless/composables";import{keysOf as v}from"@soybeanjs/utils";import{TextareaCompact as y,provideTextareaUi as b}from"@soybeanjs/headless/textarea";const x=s({name:`STextarea`,__name:`textarea`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},resize:{},textareaRef:{type:Function},clearable:{type:Boolean},showCounter:{type:Boolean},controlProps:{},clearProps:{},counterProps:{},defaultValue:{},modelValue:{},autosize:{type:[Boolean,Object]},id:{},autofocus:{type:Boolean},disabled:{type:Boolean},maxlength:{},minlength:{},placeholder:{},readonly:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`clear`],setup(s,{emit:x}){let S=s,C=x,w=_(S,[`class`,`size`,`ui`,`resize`]),T=h(),E=i(()=>v(T));return b(i(()=>{let i=t[S.size??`md`];return e(Object.assign(r({size:S.size,resize:S.autosize?!1:S.resize}),{$base:{clear:n({size:i,shape:`circle`})}}),S.ui,{root:S.class})})),(e,t)=>(d(),a(m(y),l(m(w),{"onUpdate:modelValue":t[0]||=e=>C(`update:modelValue`,e)}),o({_:2},[f(E.value,t=>({name:t,fn:g(n=>[p(e.$slots,t,u(c(n)))])}))]),1040))}});export{x as default};
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
import { TextareaProps } from "./types.js";
|
|
1
|
+
import { TextareaProps, TextareaSlots } from "./types.js";
|
|
2
2
|
import * as _$vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/textarea/textarea.vue.d.ts
|
|
5
|
-
|
|
6
|
-
count: number;
|
|
7
|
-
maxlength: number | undefined;
|
|
8
|
-
}, __VLS_30: {};
|
|
9
|
-
type __VLS_Slots = {} & {
|
|
10
|
-
counter?: (props: typeof __VLS_28) => any;
|
|
11
|
-
} & {
|
|
12
|
-
footer?: (props: typeof __VLS_30) => any;
|
|
13
|
-
};
|
|
5
|
+
type __VLS_Slots = TextareaSlots;
|
|
14
6
|
declare const __VLS_base: _$vue.DefineComponent<TextareaProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
7
|
+
clear: (event: PointerEvent) => any;
|
|
15
8
|
"update:modelValue": (value: string) => any;
|
|
16
9
|
}, string, _$vue.PublicProps, Readonly<TextareaProps> & Readonly<{
|
|
10
|
+
onClear?: ((event: PointerEvent) => any) | undefined;
|
|
17
11
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
18
12
|
}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
19
13
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import { ThemeSize } from "../../theme/types.js";
|
|
2
2
|
import { TextareaResize } from "./variants.js";
|
|
3
|
-
import {
|
|
3
|
+
import { TextareaCompactEmits, TextareaCompactProps, TextareaCompactSlots, TextareaUi } from "@soybeanjs/headless/textarea";
|
|
4
4
|
import { ClassValue } from "@soybeanjs/headless/types";
|
|
5
5
|
|
|
6
6
|
//#region src/components/textarea/types.d.ts
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Properties for the Textarea component.
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
|
-
type TextareaExtendedUi = TextareaUi & Record<TextareaExtraUiSlot, ClassValue>;
|
|
12
|
-
/**
|
|
13
|
-
* Props for the textarea component.
|
|
14
|
-
*/
|
|
15
|
-
interface TextareaProps extends TextareaRootProps {
|
|
10
|
+
interface TextareaProps extends TextareaCompactProps {
|
|
16
11
|
/**
|
|
17
12
|
* Additional class names applied to the root element.
|
|
18
13
|
*/
|
|
@@ -24,35 +19,21 @@ interface TextareaProps extends TextareaRootProps {
|
|
|
24
19
|
/**
|
|
25
20
|
* Per-slot class overrides for the component.
|
|
26
21
|
*/
|
|
27
|
-
ui?: Partial<
|
|
22
|
+
ui?: Partial<TextareaUi>;
|
|
28
23
|
/**
|
|
29
24
|
* The resize of the textarea
|
|
30
25
|
*
|
|
31
26
|
* if autosize is true, the resize will be ignored
|
|
32
27
|
*/
|
|
33
28
|
resize?: TextareaResize;
|
|
34
|
-
/** Whether to show the clear icon */
|
|
35
|
-
clearable?: boolean;
|
|
36
|
-
/** Whether to show the counter */
|
|
37
|
-
showCounter?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* The function to set the textarea element.
|
|
40
|
-
*
|
|
41
|
-
* @param el - The textarea element.
|
|
42
|
-
*/
|
|
43
|
-
textareaRef?: (el: HTMLTextAreaElement) => void;
|
|
44
|
-
/**
|
|
45
|
-
* The props of the textarea extra props.
|
|
46
|
-
*/
|
|
47
|
-
controlProps?: TextareaControlProps;
|
|
48
|
-
/**
|
|
49
|
-
* Props forwarded to the counter element.
|
|
50
|
-
*/
|
|
51
|
-
counterProps?: TextareaCounterProps;
|
|
52
29
|
}
|
|
53
30
|
/**
|
|
54
|
-
*
|
|
31
|
+
* Events for the Textarea component.
|
|
32
|
+
*/
|
|
33
|
+
type TextareaEmits = TextareaCompactEmits;
|
|
34
|
+
/**
|
|
35
|
+
* Slots for the Textarea component.
|
|
55
36
|
*/
|
|
56
|
-
type
|
|
37
|
+
type TextareaSlots = TextareaCompactSlots;
|
|
57
38
|
//#endregion
|
|
58
|
-
export { TextareaEmits,
|
|
39
|
+
export { TextareaEmits, TextareaProps, TextareaSlots };
|