@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 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{mergeVariants as e}from"../../theme/shared.js";import"../../theme/index.js";import{provideMenuUi as t}from"../menu/context.js";import{pageTabsVariants as n}from"./variants.js";import{Fragment as r,computed as i,createBlock as a,createCommentVNode as o,createElementBlock as s,createElementVNode as c,createSlots as l,defineComponent as u,guardReactiveProps as d,mergeProps as f,normalizeClass as p,normalizeProps as m,openBlock as h,renderList as g,renderSlot as _,toHandlers as v,unref as y,useSlots as b,withCtx as x}from"vue";import{useForwardListeners as S,useOmitProps as C}from"@soybeanjs/headless/composables";import{keysOf as w}from"@soybeanjs/utils";import{PageTabsCompact as T,providePageTabsUi as E}from"@soybeanjs/headless/page-tabs";const D=u({name:`SPageTabs`,__name:`page-tabs`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},variant:{default:`chrome`},ui:{},items:{},menuFactory:{},beforeClose:{},itemProps:{},pinProps:{},closeProps:{},contextMenuProps:{},modelValue:{},middleClickClose:{type:Boolean},dir:{},loop:{type:Boolean,default:!0},currentTabStopId:{},defaultCurrentTabStopId:{},preventScrollOnEntryFocus:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`update:items`,`click`,`close`,`pin`,`contextmenu`,`selectContextMenu`],setup(u,{emit:D}){let O=u,k=D,A=b(),j=C(O,[`class`,`size`,`ui`,`onClick`,`onContextmenu`]),M=S(k),N=i(()=>w(A).filter(e=>e!==`indicator`)),P=i(()=>e(n({size:O.size,variant:O.variant}),O.ui,{root:O.class}));return t(()=>({size:O.size})),E(P),(e,t)=>(h(),a(y(T),f(y(j),v(y(M))),l({indicator:x(()=>[u.variant===`chrome`?(h(),s(r,{key:0},[(h(),s(`svg`,{height:`100%`,width:`100%`,viewBox:`0 0 8 8`,class:p(P.value.chromeBgLeft)},[...t[0]||=[c(`path`,{d:`M 0 8 A 8 8 0 0 0 8 0 L 8 8 Z`},null,-1)]],2)),(h(),s(`svg`,{height:`100%`,width:`100%`,viewBox:`0 0 8 8`,class:p(P.value.chromeBgRight)},[...t[1]||=[c(`path`,{d:`M 0 0 A 8 8 0 0 0 8 8 L 0 8 Z`},null,-1)]],2))],64)):o(`v-if`,!0),u.variant===`slider`?(h(),s(`div`,{key:1,class:p(P.value.sliderIndicator)},null,2)):o(`v-if`,!0)]),_:2},[g(N.value,t=>({name:t,fn:x(n=>[o(` @vue-expect-error ignore slot type `),_(e.$slots,t,m(d(n)))])}))]),1040))}});export{D as default};
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PageTabsEmits, PageTabsProps, PageTabsSlots } from "./types.js";
|
|
2
2
|
import * as _$vue from "vue";
|
|
3
|
+
import * as _$_soybeanjs_headless0 from "@soybeanjs/headless";
|
|
4
|
+
import { PageTabsOptionData } from "@soybeanjs/headless/page-tabs";
|
|
3
5
|
|
|
4
6
|
//#region src/components/page-tabs/page-tabs.vue.d.ts
|
|
5
|
-
declare const __VLS_export: <T extends PageTabsOptionData>(__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
|
+
declare const __VLS_export: <T extends PageTabsOptionData = PageTabsOptionData>(__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
8
|
props: _$vue.PublicProps & __VLS_PrettifyLocal<PageTabsProps<T> & {
|
|
7
|
-
onContextmenu?: ((tab: T) => any) | undefined;
|
|
8
9
|
onClick?: ((tab: T) => any) | undefined;
|
|
10
|
+
onContextmenu?: ((tab: T) => any) | undefined;
|
|
9
11
|
onClose?: ((tab: T) => any) | undefined;
|
|
10
12
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
13
|
"onUpdate:items"?: ((items: T[]) => any) | undefined;
|
|
12
14
|
onPin?: ((tab: T) => any) | undefined;
|
|
13
|
-
onSelectContextMenu?: ((menu: PageTabsContextMenuOptionData, tab: T) => any) | undefined;
|
|
15
|
+
onSelectContextMenu?: ((menu: _$_soybeanjs_headless0.PageTabsContextMenuOptionData, tab: T) => any) | undefined;
|
|
14
16
|
}> & (typeof globalThis extends {
|
|
15
17
|
__VLS_PROPS_FALLBACK: infer P;
|
|
16
18
|
} ? P : {});
|
|
17
19
|
expose: (exposed: {}) => void;
|
|
18
20
|
attrs: any;
|
|
19
|
-
slots:
|
|
21
|
+
slots: PageTabsSlots<T>;
|
|
20
22
|
emit: PageTabsEmits<T>;
|
|
21
23
|
}>) => _$vue.VNode & {
|
|
22
24
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
@@ -1,102 +1,13 @@
|
|
|
1
1
|
import { ThemeSize } from "../../theme/types.js";
|
|
2
|
-
import { IconValue } from "../icon/types.js";
|
|
3
|
-
import { index_d_exports } from "../menu/index.js";
|
|
4
2
|
import { PageTabsVariant } from "./variants.js";
|
|
5
|
-
import {
|
|
6
|
-
import { ClassValue
|
|
3
|
+
import { PageTabsCompactEmits, PageTabsCompactProps, PageTabsCompactSlots, PageTabsOptionData, PageTabsUi } from "@soybeanjs/headless/page-tabs";
|
|
4
|
+
import { ClassValue } from "@soybeanjs/headless/types";
|
|
7
5
|
|
|
8
6
|
//#region src/components/page-tabs/types.d.ts
|
|
9
7
|
/**
|
|
10
|
-
*
|
|
8
|
+
* Properties for the PageTabs component.
|
|
11
9
|
*/
|
|
12
|
-
interface PageTabsOptionData extends
|
|
13
|
-
/**
|
|
14
|
-
* Label text rendered by the component.
|
|
15
|
-
*/
|
|
16
|
-
label: string;
|
|
17
|
-
/**
|
|
18
|
-
* Icon rendered by the component.
|
|
19
|
-
*/
|
|
20
|
-
icon?: IconValue;
|
|
21
|
-
/**
|
|
22
|
-
* Whether to hide the pinned icon on the tab
|
|
23
|
-
*/
|
|
24
|
-
hidePinnedIcon?: boolean;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Additional UI slots for the page tabs component.
|
|
28
|
-
*/
|
|
29
|
-
type PageTabsExtraUiSlot = 'itemText' | 'chromeBgLeft' | 'chromeBgRight' | 'sliderIndicator';
|
|
30
|
-
/**
|
|
31
|
-
* Extended UI class overrides for the page tabs component.
|
|
32
|
-
*/
|
|
33
|
-
type PageTabsExtendedUi = Record<PageTabsUiSlot | PageTabsExtraUiSlot, ClassValue>;
|
|
34
|
-
/**
|
|
35
|
-
* State values for the page tabs component.
|
|
36
|
-
*/
|
|
37
|
-
interface PageTabsState {
|
|
38
|
-
/**
|
|
39
|
-
* Pin.
|
|
40
|
-
*/
|
|
41
|
-
pin: () => void;
|
|
42
|
-
/**
|
|
43
|
-
* Unpin.
|
|
44
|
-
*/
|
|
45
|
-
unpin: () => void;
|
|
46
|
-
/**
|
|
47
|
-
* Whether the component can be closed.
|
|
48
|
-
*/
|
|
49
|
-
closable: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Close.
|
|
52
|
-
*/
|
|
53
|
-
close: () => Promise<void>;
|
|
54
|
-
/**
|
|
55
|
-
* Whether left closable.
|
|
56
|
-
*/
|
|
57
|
-
leftClosable: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Close left.
|
|
60
|
-
*/
|
|
61
|
-
closeLeft: () => void;
|
|
62
|
-
/**
|
|
63
|
-
* Whether right closable.
|
|
64
|
-
*/
|
|
65
|
-
rightClosable: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Close right.
|
|
68
|
-
*/
|
|
69
|
-
closeRight: () => void;
|
|
70
|
-
/**
|
|
71
|
-
* Whether other closable.
|
|
72
|
-
*/
|
|
73
|
-
otherClosable: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Close other.
|
|
76
|
-
*/
|
|
77
|
-
closeOther: () => void;
|
|
78
|
-
/**
|
|
79
|
-
* Whether all closable.
|
|
80
|
-
*/
|
|
81
|
-
allClosable: boolean;
|
|
82
|
-
/**
|
|
83
|
-
* Close all.
|
|
84
|
-
*/
|
|
85
|
-
closeAll: () => void;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Option data for the page tabs context menu component.
|
|
89
|
-
*/
|
|
90
|
-
interface PageTabsContextMenuOptionData extends index_d_exports.MenuOptionData<string> {
|
|
91
|
-
/**
|
|
92
|
-
* Action to perform when the menu item is selected.
|
|
93
|
-
*/
|
|
94
|
-
action?: () => MaybePromise<void>;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Props for the page tabs component.
|
|
98
|
-
*/
|
|
99
|
-
interface PageTabsProps<T extends PageTabsOptionData> extends PageTabsRootProps {
|
|
10
|
+
interface PageTabsProps<T extends PageTabsOptionData = PageTabsOptionData> extends PageTabsCompactProps<T> {
|
|
100
11
|
/**
|
|
101
12
|
* root element class
|
|
102
13
|
*/
|
|
@@ -112,33 +23,15 @@ interface PageTabsProps<T extends PageTabsOptionData> extends PageTabsRootProps
|
|
|
112
23
|
/**
|
|
113
24
|
* Per-slot class overrides for the component.
|
|
114
25
|
*/
|
|
115
|
-
ui?: Partial<
|
|
116
|
-
/**
|
|
117
|
-
* Items rendered by the component.
|
|
118
|
-
*/
|
|
119
|
-
items: T[];
|
|
120
|
-
/**
|
|
121
|
-
* A factory function to generate context menu options for each tab.
|
|
122
|
-
* @param tab The tab data
|
|
123
|
-
* @param state The current state and operations for the tab
|
|
124
|
-
*/
|
|
125
|
-
menuFactory?: (tab: T, state: PageTabsState) => PageTabsContextMenuOptionData[];
|
|
126
|
-
/**
|
|
127
|
-
* Callback invoked before closing the tab. Return `false` or a promise that resolves to `false` to prevent closing.
|
|
128
|
-
* @param value
|
|
129
|
-
*/
|
|
130
|
-
beforeClose?: (value: string) => MaybePromise<boolean | void>;
|
|
26
|
+
ui?: Partial<PageTabsUi>;
|
|
131
27
|
}
|
|
132
28
|
/**
|
|
133
|
-
*
|
|
29
|
+
* Events for the PageTabs component.
|
|
30
|
+
*/
|
|
31
|
+
type PageTabsEmits<T extends PageTabsOptionData = PageTabsOptionData> = PageTabsCompactEmits<T>;
|
|
32
|
+
/**
|
|
33
|
+
* Slots for the PageTabs component.
|
|
134
34
|
*/
|
|
135
|
-
type
|
|
136
|
-
(e: 'update:items', items: T[]): void;
|
|
137
|
-
(e: 'click', tab: T): void;
|
|
138
|
-
(e: 'close', tab: T): void;
|
|
139
|
-
(e: 'pin', tab: T): void;
|
|
140
|
-
(e: 'contextmenu', tab: T): void;
|
|
141
|
-
(e: 'selectContextMenu', menu: PageTabsContextMenuOptionData, tab: T): void;
|
|
142
|
-
};
|
|
35
|
+
type PageTabsSlots<T extends PageTabsOptionData = PageTabsOptionData> = PageTabsCompactSlots<T>;
|
|
143
36
|
//#endregion
|
|
144
|
-
export {
|
|
37
|
+
export { PageTabsEmits, PageTabsProps, PageTabsSlots };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{tv as e}from"tailwind-variants";const t=e({slots:{root:`flex`,item:[`group/item relative flex items-center cursor-pointer select-none outline-none`,`data-[active=true]:bg-primary-50 data-[active=true]:text-primary data-[active=true]:z-2`,`data-[active=false]:hover:bg-accent data-[active=false]:focus:bg-accent`,`dark:data-[active=true]:bg-accent dark:data-[active=true]:text-foreground`],itemText:`grow truncate`,close:[`rounded-full hover:text-muted group-data-[active=true]/item:hover:bg-primary/50`,`group-data-[active=false]/item:hover:bg-accent-foreground/20`,`dark:hover:text-foreground dark:group-data-[active=true]/item:hover:bg-accent-foreground/20`],pin
|
|
1
|
+
import{tv as e}from"tailwind-variants";const t=e({slots:{root:`flex`,item:[`group/item relative flex items-center cursor-pointer select-none outline-none`,`data-[active=true]:bg-primary-50 data-[active=true]:text-primary data-[active=true]:z-2`,`data-[active=false]:hover:bg-accent data-[active=false]:focus:bg-accent`,`dark:data-[active=true]:bg-accent dark:data-[active=true]:text-foreground`],itemText:`grow truncate`,close:[`outline-none rounded-full hover:text-muted group-data-[active=true]/item:hover:bg-primary/50`,`group-data-[active=false]/item:hover:bg-accent-foreground/20`,`dark:hover:text-foreground dark:group-data-[active=true]/item:hover:bg-accent-foreground/20`],pin:`outline-none`,chromeBgLeft:[`absolute right-full bottom-0 fill-transparent`,`group-hover/item:fill-accent group-data-[active=true]/item:fill-primary-50 dark:group-data-[active=true]/item:fill-accent group-data-[active=true]/item:z-2`],chromeBgRight:[`absolute left-full bottom-0 fill-transparent`,`group-hover/item:fill-accent group-data-[active=true]/item:fill-primary-50 dark:group-data-[active=true]/item:fill-accent group-data-[active=true]/item:z-2`],sliderIndicator:`absolute bottom-0 left-0 w-full h-0.5 group-data-[active=true]/item:bg-primary`},variants:{size:{xs:{root:`text-2xs`,item:`gap-2 px-1 py-1`,itemText:`max-w-50`},sm:{root:`text-xs`,item:`gap-2.5 px-1.5 py-1`,itemText:`max-w-55`},md:{root:`text-sm`,item:`gap-3 px-2 py-1.5`,itemText:`max-w-60`,chromeBgLeft:`w-2 h-2`,chromeBgRight:`w-2 h-2`},lg:{root:`text-base`,item:`gap-3.5 px-2.5 py-1.5`,itemText:`max-w-65`},xl:{root:`text-lg`,item:`gap-4 px-3 py-2`,itemText:`max-w-70`},"2xl":{root:`text-xl`,item:`gap-4.5 px-3.5 py-2.5`,itemText:`max-w-75`}},variant:{chrome:{root:`items-end`,item:`rounded-t-md`},card:{root:`items-center gap-2`,item:`rounded-md shadow-sm border border-border`},slider:{root:`items-end`,item:`rounded-t-md`}}},defaultVariants:{size:`md`,variant:`chrome`}});export{t as pageTabsVariants};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{mergeVariants as e}from"../../theme/shared.js";import"../../theme/index.js";import t from"../icon/icon.js";import{paginationVariants as n}from"./variants.js";import{Fragment as r,computed as i,createBlock as a,createCommentVNode as o,createElementBlock as s,createVNode as c,defineComponent as l,guardReactiveProps as u,mergeProps as d,normalizeProps as f,openBlock as p,renderList as m,renderSlot as h,unref as g,withCtx as _}from"vue";import{useOmitProps as v}from"@soybeanjs/headless/composables";import{PaginationEllipsis as y,PaginationFirst as b,PaginationLast as x,PaginationList as S,PaginationListItem as C,PaginationNext as w,PaginationPrev as T,PaginationRoot as E,providePaginationUi as D}from"@soybeanjs/headless/pagination";const O=l({name:`SPagination`,__name:`pagination`,props:{class:{type:[Boolean,null,String,Object,Array]},ui:{},size:{},variant:{},shape:{},actionAsSelected:{type:Boolean},showFirstOrLast:{type:Boolean,default:!0},listProps:{},listItemProps:{},ellipsisProps:{},firstProps:{},prevProps:{},nextProps:{},lastProps:{},page:{},defaultPage:{},pageSize:{},defaultPageSize:{},total:{},siblingCount:{},disabled:{type:Boolean},showEdges:{type:Boolean}},emits:[`update:page`,`update:pageSize`],setup(l,{emit:O}){let k=l,A=O,j=v(k,[`class`,`ui`,`size`,`variant`,`shape`,`actionAsSelected`,`showFirstOrLast`,`listProps`,`listItemProps`,`ellipsisProps`,`firstProps`,`prevProps`,`nextProps`,`lastProps`]),M=i(()=>k.actionAsSelected?``:void 0);return D(i(()=>{let t=n({size:k.size,variant:k.variant,shape:k.shape,actionAsSelected:k.actionAsSelected}),{button:r,navigationButton:i}=t;return e({...t,listItem:r,first:i,prev:i,next:i,last:i},k.ui,{root:k.class})})),(e,n)=>(p(),a(g(E),d(g(j),{"onUpdate:page":n[0]||=e=>A(`update:page`,e),"onUpdate:pageSize":n[1]||=e=>A(`update:pageSize`,e)}),{default:_(()=>[h(e.$slots,`leading`),c(g(S),f(u(l.listProps)),{default:_(({items:n})=>[l.showFirstOrLast?(p(),a(g(b),d({key:0},l.firstProps,{"data-selected":M.value}),{default:_(()=>[h(e.$slots,`first`,{},()=>[c(t,{icon:`lucide:chevrons-left`})])]),_:3},16,[`data-selected`])):o(`v-if`,!0),c(g(T),d(l.prevProps,{"data-selected":M.value}),{default:_(()=>[h(e.$slots,`prev`,{},()=>[c(t,{icon:`lucide:chevron-left`})])]),_:3},16,[`data-selected`]),(p(!0),s(r,null,m(n,n=>(p(),s(r,{key:n},[n.type===`page`?(p(),a(g(C),d({key:0,ref_for:!0},l.listItemProps,{value:n.value}),null,16,[`value`])):n.type===`ellipsis`?(p(),a(g(y),d({key:1,ref_for:!0},l.ellipsisProps),{default:_(()=>[h(e.$slots,`ellipsis`,{},()=>[c(t,{icon:`lucide:ellipsis`})])]),_:3},16)):o(`v-if`,!0)],64))),128)),c(g(w),d(l.nextProps,{"data-selected":M.value}),{default:_(()=>[h(e.$slots,`next`,{},()=>[c(t,{icon:`lucide:chevron-right`})])]),_:3},16,[`data-selected`]),l.showFirstOrLast?(p(),a(g(x),d({key:1},l.lastProps,{"data-selected":M.value}),{default:_(()=>[h(e.$slots,`last`,{},()=>[c(t,{icon:`lucide:chevrons-right`})])]),_:3},16,[`data-selected`])):o(`v-if`,!0)]),_:3},16),h(e.$slots,`trailing`)]),_:3},16))}});export{O as default};
|
|
@@ -5,7 +5,7 @@ import { ClassValue } from "@soybeanjs/headless/types";
|
|
|
5
5
|
|
|
6
6
|
//#region src/components/pagination/types.d.ts
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Properties for the Pagination component.
|
|
9
9
|
*/
|
|
10
10
|
interface PaginationProps extends PaginationRootProps {
|
|
11
11
|
/**
|
|
@@ -24,23 +24,23 @@ interface PaginationProps extends PaginationRootProps {
|
|
|
24
24
|
actionAsSelected?: boolean;
|
|
25
25
|
/** Whether to show the first and last buttons */
|
|
26
26
|
showFirstOrLast?: boolean;
|
|
27
|
-
/** The
|
|
27
|
+
/** The properties for the list component */
|
|
28
28
|
listProps?: PaginationListProps;
|
|
29
|
-
/** The
|
|
29
|
+
/** The properties for the list item component */
|
|
30
30
|
listItemProps?: PaginationListItemProps;
|
|
31
|
-
/** The
|
|
31
|
+
/** The properties for the ellipsis component */
|
|
32
32
|
ellipsisProps?: PaginationEllipsisProps;
|
|
33
|
-
/** The
|
|
33
|
+
/** The properties for the first button component */
|
|
34
34
|
firstProps?: PaginationButtonProps;
|
|
35
|
-
/** The
|
|
35
|
+
/** The properties for the previous button component */
|
|
36
36
|
prevProps?: PaginationButtonProps;
|
|
37
|
-
/** The
|
|
37
|
+
/** The properties for the next button component */
|
|
38
38
|
nextProps?: PaginationButtonProps;
|
|
39
|
-
/** The
|
|
39
|
+
/** The properties for the last button component */
|
|
40
40
|
lastProps?: PaginationButtonProps;
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Events for the Pagination component.
|
|
44
44
|
*/
|
|
45
45
|
type PaginationEmits = PaginationRootEmits;
|
|
46
46
|
//#endregion
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { PasswordEmits, PasswordProps } from "./types.js";
|
|
2
|
-
import { _default } from "./password.vue.js";
|
|
1
|
+
import { PasswordEmits, PasswordProps, PasswordSlots } from "./types.js";
|
|
2
|
+
import { _default } from "./password.vue.js";
|
|
3
|
+
export * from "@soybeanjs/headless/password";
|
|
@@ -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{inputVariants as r}from"../input/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{PasswordCompact as y,providePasswordUi as b}from"@soybeanjs/headless/password";const x=s({name:`SPassword`,__name:`password`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},clearable:{type:Boolean},visible:{type:Boolean,default:void 0},inputRef:{},controlProps:{},clearProps:{},visibleProps:{},defaultValue:{},modelValue:{},id:{},autofocus:{type:Boolean},disabled:{type:Boolean},maxlength:{},minlength:{},pattern:{},placeholder:{},readonly:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`update:visible`],setup(s,{emit:x}){let S=s,C=x,w=_(S,[`class`,`size`,`ui`]),T=h(),E=i(()=>v(T));return b(i(()=>{let i=t[S.size??`md`];return e(Object.assign(r({size:S.size}),{$base:{clear:n({size:i,shape:`circle`}),visible:n({size:i})}}),S.ui,{root:S.class})})),(e,t)=>(d(),a(m(y),l(m(w),{"onUpdate:modelValue":t[0]||=e=>C(`update:modelValue`,e),"onUpdate:visible":t[1]||=e=>C(`update:visible`,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,18 +1,8 @@
|
|
|
1
|
-
import { PasswordProps } from "./types.js";
|
|
1
|
+
import { PasswordProps, PasswordSlots } from "./types.js";
|
|
2
2
|
import * as _$vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/password/password.vue.d.ts
|
|
5
|
-
|
|
6
|
-
visible: boolean | undefined;
|
|
7
|
-
toggle: () => void;
|
|
8
|
-
};
|
|
9
|
-
type __VLS_Slots = {} & {
|
|
10
|
-
leading?: (props: typeof __VLS_10) => any;
|
|
11
|
-
} & {
|
|
12
|
-
trailing?: (props: typeof __VLS_24) => any;
|
|
13
|
-
} & {
|
|
14
|
-
visible?: (props: typeof __VLS_26) => any;
|
|
15
|
-
};
|
|
5
|
+
type __VLS_Slots = PasswordSlots;
|
|
16
6
|
declare const __VLS_base: _$vue.DefineComponent<PasswordProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
17
7
|
"update:modelValue": (value: string) => any;
|
|
18
8
|
"update:visible": (visible: boolean) => any;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { ThemeSize } from "../../theme/types.js";
|
|
2
|
-
import {
|
|
2
|
+
import { PasswordCompactEmits, PasswordCompactProps, PasswordCompactSlots, PasswordUi } from "@soybeanjs/headless/password";
|
|
3
3
|
import { ClassValue } from "@soybeanjs/headless/types";
|
|
4
4
|
|
|
5
5
|
//#region src/components/password/types.d.ts
|
|
6
|
-
type PasswordUiSlot = 'clearable' | 'visible';
|
|
7
|
-
type PasswordUi = InputUi & Record<PasswordUiSlot, ClassValue>;
|
|
8
6
|
/**
|
|
9
|
-
*
|
|
7
|
+
* Properties for the Password component.
|
|
10
8
|
*/
|
|
11
|
-
interface PasswordProps extends
|
|
9
|
+
interface PasswordProps extends PasswordCompactProps {
|
|
12
10
|
/**
|
|
13
11
|
* Additional class names applied to the root element.
|
|
14
12
|
*/
|
|
@@ -21,29 +19,14 @@ interface PasswordProps extends InputRootProps {
|
|
|
21
19
|
* Per-slot class overrides for the component.
|
|
22
20
|
*/
|
|
23
21
|
ui?: Partial<PasswordUi>;
|
|
24
|
-
/** Whether to show the password */
|
|
25
|
-
visible?: boolean;
|
|
26
|
-
/** Whether to show the clear icon */
|
|
27
|
-
clearable?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* The function to set the input element.
|
|
30
|
-
*
|
|
31
|
-
* @param el - The input element.
|
|
32
|
-
*/
|
|
33
|
-
inputRef?: (el: HTMLInputElement) => void;
|
|
34
|
-
/**
|
|
35
|
-
* The props of the input extra props.
|
|
36
|
-
*/
|
|
37
|
-
controlProps?: InputControlProps;
|
|
38
22
|
}
|
|
39
23
|
/**
|
|
40
|
-
*
|
|
24
|
+
* Events for the Password component.
|
|
41
25
|
*/
|
|
42
|
-
type PasswordEmits =
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
};
|
|
26
|
+
type PasswordEmits = PasswordCompactEmits;
|
|
27
|
+
/**
|
|
28
|
+
* Slots for the Password component.
|
|
29
|
+
*/
|
|
30
|
+
type PasswordSlots = PasswordCompactSlots;
|
|
48
31
|
//#endregion
|
|
49
|
-
export { PasswordEmits, PasswordProps };
|
|
32
|
+
export { PasswordEmits, PasswordProps, PasswordSlots };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PopconfirmEmits, PopconfirmProps, PopconfirmSlots } from "./types.js";
|
|
2
2
|
import { _default } from "./popconfirm.vue.js";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { PopoverAnchorProps as PopconfirmAnchorProps, PopoverArrowProps as PopconfirmArrowProps, PopoverCloseProps as PopconfirmCloseProps, PopoverPopupProps as PopconfirmPopupProps, PopoverPortalProps as PopconfirmPortalProps, PopoverPositionerEmits as PopconfirmPositionerEmits, PopoverPositionerProps as PopconfirmPositionerProps, PopoverRootEmits as PopconfirmRootEmits, PopoverRootProps as PopconfirmRootProps, PopoverTriggerProps as PopconfirmTriggerProps } from "@soybeanjs/headless/popover";
|
|
6
|
-
export { type PopconfirmAnchorProps, type PopconfirmArrowProps, type PopconfirmCloseProps, type PopconfirmPopupProps, type PopconfirmPortalProps, type PopconfirmPositionerEmits, type PopconfirmPositionerProps, type PopconfirmRootEmits, type PopconfirmRootProps, type PopconfirmTriggerProps };
|
|
3
|
+
import { PopconfirmAnchorProps, PopconfirmArrowProps, PopconfirmCancel as SPopconfirmCancel, PopconfirmCloseProps, PopconfirmConfirm as SPopconfirmConfirm, PopconfirmPopupProps, PopconfirmPortalProps, PopconfirmPositionerEmits, PopconfirmPositionerProps, PopconfirmRootEmits, PopconfirmRootProps, PopconfirmTriggerProps } from "@soybeanjs/headless/popconfirm";
|
|
4
|
+
export { type PopconfirmAnchorProps, type PopconfirmArrowProps, type PopconfirmCloseProps, type PopconfirmPopupProps, type PopconfirmPortalProps, type PopconfirmPositionerEmits, type PopconfirmPositionerProps, type PopconfirmRootEmits, type PopconfirmRootProps, type PopconfirmTriggerProps, SPopconfirmCancel, SPopconfirmConfirm };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./popconfirm
|
|
1
|
+
import"./popconfirm.js";import{PopconfirmCancel as e,PopconfirmConfirm as t}from"@soybeanjs/headless/popconfirm";export{e as SPopconfirmCancel,t as SPopconfirmConfirm};
|
|
@@ -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,buttonVariants as r}from"../button/variants.js";import{popconfirmVariants as i}from"./variants.js";import{computed as a,createBlock as o,createSlots as s,defineComponent as c,guardReactiveProps as l,mergeProps as u,normalizeProps as d,openBlock as f,renderList as p,renderSlot as m,toHandlers as h,unref as g,useSlots as _,withCtx as v}from"vue";import{useForwardListeners as y,useOmitProps as b}from"@soybeanjs/headless/composables";import{keysOf as x}from"@soybeanjs/utils";import{PopconfirmCompact as S,providePopconfirmUi as C}from"@soybeanjs/headless/popconfirm";const w=c({name:`SPopconfirm`,__name:`popconfirm`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},type:{},placement:{},title:{},description:{},content:{},showArrow:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},confirmText:{},cancelText:{},showCancel:{type:[String,Boolean],default:`onlyWarning`},triggerProps:{},portalProps:{},positionerProps:{},popupProps:{},arrowProps:{},closeProps:{},headerProps:{},titleProps:{},descriptionProps:{},contentProps:{},footerProps:{},confirmProps:{},cancelProps:{},disabled:{type:Boolean},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:[`update:open`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`,`confirm`,`cancel`],setup(c,{emit:w}){let T=c,E=w,D=_(),O=b(T,[`class`,`size`,`ui`]),k=y(E),A=x(D);return C(a(()=>{let a=t[T.size??`md`];return e(Object.assign(i({size:T.size,type:T.type}),{$base:{cancel:r({variant:`pure`,size:a}),confirm:r({variant:`solid`,size:a}),close:n({size:a})}}),T.ui,{popup:T.class})})),(e,t)=>(f(),o(g(S),u(g(O),{"cancel-props":c.cancelProps,"confirm-props":c.confirmProps},h(g(k))),s({_:2},[p(g(A),t=>({name:t,fn:v(n=>[m(e.$slots,t,d(l(n)))])}))]),1040,[`cancel-props`,`confirm-props`]))}});export{w as default};
|
|
@@ -1,32 +1,12 @@
|
|
|
1
|
-
import { PopconfirmProps } from "./types.js";
|
|
1
|
+
import { PopconfirmProps, PopconfirmSlots } from "./types.js";
|
|
2
2
|
import * as _$vue from "vue";
|
|
3
3
|
import * as _$_soybeanjs_headless0 from "@soybeanjs/headless";
|
|
4
4
|
|
|
5
5
|
//#region src/components/popconfirm/popconfirm.vue.d.ts
|
|
6
|
-
|
|
7
|
-
close: () => void;
|
|
8
|
-
}, __VLS_43: {
|
|
9
|
-
close: () => void;
|
|
10
|
-
}, __VLS_45: {
|
|
11
|
-
close: () => void;
|
|
12
|
-
}, __VLS_47: {
|
|
13
|
-
close: () => void;
|
|
14
|
-
}, __VLS_70: {};
|
|
15
|
-
type __VLS_Slots = {} & {
|
|
16
|
-
trigger?: (props: typeof __VLS_16) => any;
|
|
17
|
-
} & {
|
|
18
|
-
title?: (props: typeof __VLS_41) => any;
|
|
19
|
-
} & {
|
|
20
|
-
description?: (props: typeof __VLS_43) => any;
|
|
21
|
-
} & {
|
|
22
|
-
default?: (props: typeof __VLS_45) => any;
|
|
23
|
-
} & {
|
|
24
|
-
footer?: (props: typeof __VLS_47) => any;
|
|
25
|
-
} & {
|
|
26
|
-
close?: (props: typeof __VLS_70) => any;
|
|
27
|
-
};
|
|
6
|
+
type __VLS_Slots = PopconfirmSlots;
|
|
28
7
|
declare const __VLS_base: _$vue.DefineComponent<PopconfirmProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
29
|
-
|
|
8
|
+
cancel: (event: PointerEvent) => any;
|
|
9
|
+
confirm: (event: PointerEvent) => any;
|
|
30
10
|
"update:open": (value: boolean) => any;
|
|
31
11
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
32
12
|
pointerDownOutside: (event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => any;
|
|
@@ -35,7 +15,8 @@ declare const __VLS_base: _$vue.DefineComponent<PopconfirmProps, {}, {}, {}, {},
|
|
|
35
15
|
openAutoFocus: (event: Event) => any;
|
|
36
16
|
closeAutoFocus: (event: Event) => any;
|
|
37
17
|
}, string, _$vue.PublicProps, Readonly<PopconfirmProps> & Readonly<{
|
|
38
|
-
|
|
18
|
+
onCancel?: ((event: PointerEvent) => any) | undefined;
|
|
19
|
+
onConfirm?: ((event: PointerEvent) => any) | undefined;
|
|
39
20
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
40
21
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
41
22
|
onPointerDownOutside?: ((event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => any) | undefined;
|
|
@@ -46,8 +27,6 @@ declare const __VLS_base: _$vue.DefineComponent<PopconfirmProps, {}, {}, {}, {},
|
|
|
46
27
|
}>, {
|
|
47
28
|
showCancel: "onlyWarning" | boolean;
|
|
48
29
|
open: boolean;
|
|
49
|
-
defaultOpen: boolean;
|
|
50
|
-
modal: boolean;
|
|
51
30
|
showArrow: boolean;
|
|
52
31
|
showIcon: boolean;
|
|
53
32
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|