@soybeanjs/ui 0.18.0 → 0.20.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 +2 -1
- package/README.zh-CN.md +2 -1
- package/dist/components/accordion/accordion.js +1 -1
- package/dist/components/accordion/variants.js +1 -1
- package/dist/components/affix/affix.js +1 -1
- package/dist/components/alert/alert.js +1 -1
- package/dist/components/alert/alert.vue.d.ts +2 -0
- package/dist/components/alert/variants.js +1 -1
- package/dist/components/anchor/anchor.js +1 -1
- package/dist/components/autocomplete/autocomplete.js +1 -1
- package/dist/components/autocomplete/variants.js +1 -1
- package/dist/components/avatar/avatar.js +1 -1
- package/dist/components/backtop/backtop.js +1 -1
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/components/button/button-group.js +1 -1
- package/dist/components/button/button-group.vue.d.ts +0 -1
- package/dist/components/button/types.d.ts +1 -1
- package/dist/components/button/variants.js +1 -1
- package/dist/components/calendar/calendar.js +1 -1
- package/dist/components/calendar/variants.js +1 -1
- 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/carousel/carousel.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/collapsible/collapsible.js +1 -1
- package/dist/components/collapsible/collapsible.vue.d.ts +1 -1
- 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 +3 -11
- 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 +3 -7
- 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 +6 -118
- 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 +3 -11
- 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 +9 -13
- 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 +3 -19
- 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/command/command.js +1 -1
- package/dist/components/command/command.vue.d.ts +1 -1
- package/dist/components/command/variants.js +1 -1
- package/dist/components/config-provider/config-provider.js +1 -1
- package/dist/components/config-provider/types.d.ts +2 -4
- package/dist/components/context-menu/context-menu-checkbox.vue.d.ts +1 -1
- package/dist/components/context-menu/context-menu-radio.vue.d.ts +3 -3
- package/dist/components/context-menu/context-menu.vue.d.ts +1 -1
- 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/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 +7 -6
- 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 +5 -49
- 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 +7 -39
- 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/variants.js +1 -1
- package/dist/components/drawer/drawer.js +1 -1
- package/dist/components/drawer/drawer.vue.d.ts +2 -0
- package/dist/components/drawer/variants.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-checkbox.vue.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-radio.vue.d.ts +3 -3
- package/dist/components/dropdown-menu/dropdown-menu.vue.d.ts +1 -1
- package/dist/components/editable/editable.js +1 -1
- package/dist/components/editable/editable.vue.d.ts +2 -63
- package/dist/components/editable/index.d.ts +1 -1
- package/dist/components/editable/types.d.ts +10 -38
- package/dist/components/empty/empty.js +1 -1
- package/dist/components/empty/variants.js +1 -1
- package/dist/components/form/form-field-array.js +1 -1
- package/dist/components/form/form-field-base.js +1 -1
- package/dist/components/form/form-field.js +1 -1
- package/dist/components/form/form.js +1 -1
- package/dist/components/hover-card/hover-card.js +1 -1
- package/dist/components/hover-card/hover-card.vue.d.ts +2 -8
- package/dist/components/hover-card/index.d.ts +1 -1
- package/dist/components/hover-card/types.d.ts +9 -33
- package/dist/components/icon/types.d.ts +1 -1
- package/dist/components/input/input.js +1 -1
- 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 +8 -24
- 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/layout/layout-classic.js +1 -1
- package/dist/components/layout/layout.js +1 -1
- package/dist/components/layout/variants.js +1 -1
- package/dist/components/link/index.d.ts +2 -2
- package/dist/components/list/list.js +1 -1
- package/dist/components/menu/context.js +1 -1
- package/dist/components/menu/index.d.ts +1 -8
- package/dist/components/menu/variants.js +1 -1
- package/dist/components/menubar/menubar.js +1 -1
- package/dist/components/menubar/menubar.vue.d.ts +1 -1
- package/dist/components/navigation-menu/index.d.ts +1 -1
- package/dist/components/navigation-menu/navigation-menu.js +1 -1
- package/dist/components/navigation-menu/navigation-menu.vue.d.ts +2 -23
- package/dist/components/navigation-menu/types.d.ts +10 -115
- package/dist/components/navigation-menu/variants.js +1 -1
- 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 +6 -4
- package/dist/components/page-tabs/types.d.ts +10 -117
- package/dist/components/page-tabs/variants.js +1 -1
- package/dist/components/pagination/index.d.ts +1 -1
- package/dist/components/pagination/pagination.js +1 -1
- package/dist/components/pagination/pagination.vue.d.ts +2 -17
- package/dist/components/pagination/types.d.ts +8 -20
- package/dist/components/pagination/variants.js +1 -1
- 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 +8 -25
- 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 +8 -209
- 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 +9 -37
- 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 +16 -16
- package/dist/components/progress/variants.js +1 -1
- package/dist/components/radio-group/index.d.ts +2 -4
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radio-group/radio-group-card.js +1 -0
- package/dist/components/radio-group/radio-group-card.vue.d.ts +22 -0
- package/dist/components/radio-group/radio-group.js +1 -1
- package/dist/components/radio-group/radio-group.vue.d.ts +6 -6
- package/dist/components/radio-group/types.d.ts +24 -67
- package/dist/components/radio-group/variants.js +1 -1
- 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 +3 -23
- package/dist/components/scroll-area/variants.js +1 -1
- package/dist/components/segment/segment.js +1 -1
- package/dist/components/segment/segment.vue.d.ts +2 -2
- package/dist/components/select/select.js +1 -1
- package/dist/components/select/select.vue.d.ts +1 -1
- package/dist/components/select/variants.js +1 -1
- 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 +2 -10
- package/dist/components/separator/variants.js +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 +3 -15
- package/dist/components/splitter/splitter-group.js +1 -1
- package/dist/components/splitter/splitter-panel.js +1 -1
- package/dist/components/splitter/splitter-panel.vue.d.ts +2 -2
- package/dist/components/splitter/splitter-resize-handle.js +1 -1
- package/dist/components/splitter/variants.js +1 -1
- package/dist/components/stepper/index.d.ts +1 -1
- package/dist/components/stepper/stepper.js +1 -1
- package/dist/components/stepper/stepper.vue.d.ts +2 -104
- package/dist/components/stepper/types.d.ts +10 -55
- package/dist/components/stepper/variants.js +1 -1
- 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 +8 -12
- package/dist/components/switch/variants.d.ts +5 -5
- 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/variants.js +1 -1
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/tabs/tabs.vue.d.ts +2 -2
- package/dist/components/tabs/variants.js +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 +8 -4
- 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 +9 -28
- 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 +4 -37
- 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 +5 -49
- package/dist/components/toast/styles.js +36 -36
- package/dist/components/toast/toast-provider.js +1 -1
- package/dist/components/toast/variants.js +1 -1
- package/dist/components/toggle/toggle.js +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/variants.js +1 -1
- package/dist/components/toolbar/toolbar.js +1 -1
- package/dist/components/toolbar/types.d.ts +5 -0
- package/dist/components/toolbar/variants.js +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 +9 -37
- package/dist/components/tooltip/variants.js +1 -1
- package/dist/components/tree/tree-virtualizer.vue.d.ts +1 -1
- package/dist/components/tree/tree.vue.d.ts +2 -2
- 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 +12 -204
- package/dist/components/tree-menu/variants.js +1 -1
- package/dist/constants/components.d.ts +1 -7
- package/dist/constants/components.js +1 -1
- package/dist/index.d.ts +139 -158
- package/dist/index.js +1 -1
- package/dist/styles.css +250 -218
- package/dist/theme/shared.js +1 -1
- package/package.json +14 -14
- package/dist/components/color-picker/shared.js +0 -1
- package/dist/components/date-range-picker/variants.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/navigation-menu/context.js +0 -1
- package/dist/components/navigation-menu/navigation-menu-item-slot.js +0 -1
- package/dist/components/navigation-menu/navigation-menu-option.js +0 -1
- package/dist/components/navigation-menu/navigation-menu-sub-option.js +0 -1
- package/dist/components/navigation-menu/shared.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/radio-group/radio-card-group.js +0 -1
- package/dist/components/radio-group/radio-card-group.vue.d.ts +0 -22
- package/dist/components/radio-group/radio-card.js +0 -1
- package/dist/components/radio-group/radio-card.vue.d.ts +0 -22
- package/dist/components/radio-group/radio.js +0 -1
- package/dist/components/radio-group/radio.vue.d.ts +0 -18
- 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
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
import { PaginationProps } from "./types.js";
|
|
1
|
+
import { PaginationProps, PaginationSlots } from "./types.js";
|
|
2
2
|
import * as _$vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/pagination/pagination.vue.d.ts
|
|
5
|
-
|
|
6
|
-
type __VLS_Slots = {} & {
|
|
7
|
-
leading?: (props: typeof __VLS_11) => any;
|
|
8
|
-
} & {
|
|
9
|
-
first?: (props: typeof __VLS_25) => any;
|
|
10
|
-
} & {
|
|
11
|
-
prev?: (props: typeof __VLS_38) => any;
|
|
12
|
-
} & {
|
|
13
|
-
ellipsis?: (props: typeof __VLS_56) => any;
|
|
14
|
-
} & {
|
|
15
|
-
next?: (props: typeof __VLS_69) => any;
|
|
16
|
-
} & {
|
|
17
|
-
last?: (props: typeof __VLS_82) => any;
|
|
18
|
-
} & {
|
|
19
|
-
trailing?: (props: typeof __VLS_89) => any;
|
|
20
|
-
};
|
|
5
|
+
type __VLS_Slots = PaginationSlots;
|
|
21
6
|
declare const __VLS_base: _$vue.DefineComponent<PaginationProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
22
7
|
"update:page": (value: number) => any;
|
|
23
8
|
"update:pageSize": (value: number) => any;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ThemeSize } from "../../theme/types.js";
|
|
2
2
|
import { PaginationShape, PaginationVariant } from "./variants.js";
|
|
3
|
-
import {
|
|
3
|
+
import { PaginationCompactEmits, PaginationCompactProps, PaginationCompactSlots, PaginationUi } from "@soybeanjs/headless/pagination";
|
|
4
4
|
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
|
-
interface PaginationProps extends
|
|
10
|
+
interface PaginationProps extends PaginationCompactProps {
|
|
11
11
|
/**
|
|
12
12
|
* Additional class names applied to the root element.
|
|
13
13
|
*/
|
|
@@ -22,26 +22,14 @@ interface PaginationProps extends PaginationRootProps {
|
|
|
22
22
|
shape?: PaginationShape;
|
|
23
23
|
/** Whether to apply the selected state to the action button */
|
|
24
24
|
actionAsSelected?: boolean;
|
|
25
|
-
/** Whether to show the first and last buttons */
|
|
26
|
-
showFirstOrLast?: boolean;
|
|
27
|
-
/** The properties for the list component */
|
|
28
|
-
listProps?: PaginationListProps;
|
|
29
|
-
/** The properties for the list item component */
|
|
30
|
-
listItemProps?: PaginationListItemProps;
|
|
31
|
-
/** The properties for the ellipsis component */
|
|
32
|
-
ellipsisProps?: PaginationEllipsisProps;
|
|
33
|
-
/** The properties for the first button component */
|
|
34
|
-
firstProps?: PaginationButtonProps;
|
|
35
|
-
/** The properties for the previous button component */
|
|
36
|
-
prevProps?: PaginationButtonProps;
|
|
37
|
-
/** The properties for the next button component */
|
|
38
|
-
nextProps?: PaginationButtonProps;
|
|
39
|
-
/** The properties for the last button component */
|
|
40
|
-
lastProps?: PaginationButtonProps;
|
|
41
25
|
}
|
|
42
26
|
/**
|
|
43
27
|
* Events for the Pagination component.
|
|
44
28
|
*/
|
|
45
|
-
type PaginationEmits =
|
|
29
|
+
type PaginationEmits = PaginationCompactEmits;
|
|
30
|
+
/**
|
|
31
|
+
* Slots for the Pagination component.
|
|
32
|
+
*/
|
|
33
|
+
type PaginationSlots = PaginationCompactSlots;
|
|
46
34
|
//#endregion
|
|
47
|
-
export { PaginationEmits, PaginationProps };
|
|
35
|
+
export { PaginationEmits, PaginationProps, PaginationSlots };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{tv as e}from"tailwind-variants";const t=e({slots:{root:``,list:`flex items-center`,ellipsis:`flex justify-center items-center`,button:[`inline-flex items-center justify-center flex-shrink-0 font-medium transition-all-150`,`hover:bg-accent hover:text-accent-foreground`,`outline-none focus-visible:ring-3 focus-visible:ring-offset-background focus-visible:ring-primary/30`,`disabled:cursor-not-allowed disabled:opacity-50`],navigationButton:[`inline-flex items-center justify-center flex-shrink-0 font-medium transition-all-150`,`hover:bg-accent hover:text-accent-foreground`,`outline-none focus-visible:ring-3 focus-visible:ring-offset-background focus-visible:ring-primary/30`,`disabled:cursor-not-allowed disabled:opacity-50`]},variants:{size:{xs:{list:`gap-0.75 text-2xs`,ellipsis:`size-6`,button:`size-6`,navigationButton:`h-6 px-1 gap-0.75`},sm:{list:`gap-1 text-xs`,ellipsis:`size-7`,button:`size-7`,navigationButton:`h-7 px-1.5 gap-1`},md:{list:`gap-1.25 text-sm`,ellipsis:`size-8`,button:`size-8`,navigationButton:`h-8 px-1.875 gap-1.5`},lg:{list:`gap-1.5 text-base`,ellipsis:`size-9`,button:`size-9`,navigationButton:`h-9 px-2 gap-2`},xl:{list:`gap-1.75 text-lg`,ellipsis:`size-10`,button:`size-10`,navigationButton:`h-10 px-2.25 gap-2.5`},"2xl":{list:`gap-2 text-xl`,ellipsis:`size-12`,button:`size-12`,navigationButton:`h-12 px-2.875 gap-3`}},variant:{pure:{button:`data-[selected]:border data-[selected]:border-border data-[selected]:bg-background data-[selected]:text-accent-foreground data-[selected]:hover:bg-accent/60 data-[selected]:active:bg-accent`},solid:{button:`data-[selected]:border-transparent data-[selected]:bg-primary data-[selected]:text-primary-foreground data-[selected]:hover:bg-primary/80 data-[selected]:hover:text-primary-foreground data-[selected]:active:bg-primary-600`},outline:{button:`data-[selected]:border data-[selected]:border-primary data-[selected]:bg-background data-[selected]:text-primary data-[selected]:hover:bg-transparent`},soft:{button:`data-[selected]:bg-primary/10 data-[selected]:hover:bg-primary/10 data-[selected]:active:bg-primary/20`}},shape:{rounded:{button:`rounded-full`,navigationButton:`rounded-full`},square:{button:`rounded-md`,navigationButton:`rounded-md`}},actionAsSelected:{true:{navigationButton:``}}},compoundVariants:[{variant:`pure`,actionAsSelected:!0,class:{navigationButton:`data-[
|
|
1
|
+
import{tv as e}from"tailwind-variants";const t=e({slots:{root:``,list:`flex items-center`,ellipsis:`flex justify-center items-center`,button:[`inline-flex items-center justify-center flex-shrink-0 font-medium transition-all-150`,`hover:bg-accent hover:text-accent-foreground`,`outline-none focus-visible:ring-3 focus-visible:ring-offset-background focus-visible:ring-primary/30`,`disabled:cursor-not-allowed disabled:opacity-50`],navigationButton:[`inline-flex items-center justify-center flex-shrink-0 font-medium transition-all-150 rtl:[&>svg]:rotate-180`,`hover:bg-accent hover:text-accent-foreground`,`outline-none focus-visible:ring-3 focus-visible:ring-offset-background focus-visible:ring-primary/30`,`disabled:cursor-not-allowed disabled:opacity-50`]},variants:{size:{xs:{list:`gap-0.75 text-2xs`,ellipsis:`size-6`,button:`size-6`,navigationButton:`h-6 px-1 gap-0.75`},sm:{list:`gap-1 text-xs`,ellipsis:`size-7`,button:`size-7`,navigationButton:`h-7 px-1.5 gap-1`},md:{list:`gap-1.25 text-sm`,ellipsis:`size-8`,button:`size-8`,navigationButton:`h-8 px-1.875 gap-1.5`},lg:{list:`gap-1.5 text-base`,ellipsis:`size-9`,button:`size-9`,navigationButton:`h-9 px-2 gap-2`},xl:{list:`gap-1.75 text-lg`,ellipsis:`size-10`,button:`size-10`,navigationButton:`h-10 px-2.25 gap-2.5`},"2xl":{list:`gap-2 text-xl`,ellipsis:`size-12`,button:`size-12`,navigationButton:`h-12 px-2.875 gap-3`}},variant:{pure:{button:`data-[selected]:border data-[selected]:border-border data-[selected]:bg-background data-[selected]:text-accent-foreground data-[selected]:hover:bg-accent/60 data-[selected]:active:bg-accent`},solid:{button:`data-[selected]:border-transparent data-[selected]:bg-primary data-[selected]:text-primary-foreground data-[selected]:hover:bg-primary/80 data-[selected]:hover:text-primary-foreground data-[selected]:active:bg-primary-600`},outline:{button:`data-[selected]:border data-[selected]:border-primary data-[selected]:bg-background data-[selected]:text-primary data-[selected]:hover:bg-transparent`},soft:{button:`data-[selected]:bg-primary/10 data-[selected]:hover:bg-primary/10 data-[selected]:active:bg-primary/20`}},shape:{rounded:{button:`rounded-full`,navigationButton:`rounded-full`},square:{button:`rounded-md`,navigationButton:`rounded-md`}},actionAsSelected:{true:{navigationButton:``}}},compoundVariants:[{variant:`pure`,actionAsSelected:!0,class:{navigationButton:`data-[soybean-pagination-action]:border data-[soybean-pagination-action]:border-border data-[soybean-pagination-action]:bg-background data-[soybean-pagination-action]:text-accent-foreground data-[soybean-pagination-action]:hover:bg-accent/60 data-[soybean-pagination-action]:active:bg-accent`}},{variant:`solid`,actionAsSelected:!0,class:{navigationButton:`data-[soybean-pagination-action]:border-transparent data-[soybean-pagination-action]:bg-primary data-[soybean-pagination-action]:text-primary-foreground data-[soybean-pagination-action]:hover:bg-primary/80 data-[soybean-pagination-action]:hover:text-primary-foreground data-[soybean-pagination-action]:active:bg-primary-600`}},{variant:`outline`,actionAsSelected:!0,class:{navigationButton:`data-[soybean-pagination-action]:border data-[soybean-pagination-action]:border-primary data-[soybean-pagination-action]:bg-background data-[soybean-pagination-action]:text-primary data-[soybean-pagination-action]:hover:bg-transparent`}},{variant:`soft`,actionAsSelected:!0,class:{navigationButton:`data-[soybean-pagination-action]:bg-primary/10 data-[soybean-pagination-action]:hover:bg-primary/10 data-[soybean-pagination-action]:active:bg-primary/20`}}],defaultVariants:{size:`md`,variant:`pure`,shape:`square`,actionAsSelected:!1}});export{t as paginationVariants};
|
|
@@ -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>;
|
|
@@ -1,89 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { PopoverArrowProps, PopoverCloseProps, PopoverPopupProps, PopoverPortalProps, PopoverPositionerEmits, PopoverPositionerProps, PopoverRootEmits, PopoverRootProps, PopoverTriggerProps, PopoverUiSlot } from "@soybeanjs/headless/popover";
|
|
5
|
-
import { ClassValue, MaybePromise, Placement, PropsToContext, UiClass } from "@soybeanjs/headless/types";
|
|
1
|
+
import { ThemeSize } from "../../theme/types.js";
|
|
2
|
+
import { PopconfirmCompactEmits, PopconfirmCompactProps, PopconfirmCompactSlots, PopconfirmUi } from "@soybeanjs/headless/popconfirm";
|
|
3
|
+
import { ClassValue } from "@soybeanjs/headless/types";
|
|
6
4
|
|
|
7
5
|
//#region src/components/popconfirm/types.d.ts
|
|
8
|
-
/**
|
|
9
|
-
* Properties for the PopconfirmConfirm component.
|
|
10
|
-
*/
|
|
11
|
-
interface PopconfirmConfirmProps extends ButtonProps {
|
|
12
|
-
/**
|
|
13
|
-
* Text.
|
|
14
|
-
*/
|
|
15
|
-
text?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Called before the dialog is closed. Can be used to prevent the dialog from closing.
|
|
18
|
-
* @returns A boolean or a promise that resolves to a boolean. if returns `false`, the dialog will not close.
|
|
19
|
-
*/
|
|
20
|
-
beforeClose?: () => MaybePromise<boolean | void>;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Events for the PopconfirmConfirm component.
|
|
24
|
-
*/
|
|
25
|
-
type PopconfirmConfirmEmits = {
|
|
26
|
-
/**
|
|
27
|
-
* Emitted when close occurs.
|
|
28
|
-
*/
|
|
29
|
-
close: [];
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Properties for the PopconfirmCancel component.
|
|
33
|
-
*/
|
|
34
|
-
interface PopconfirmCancelProps extends ButtonProps {
|
|
35
|
-
/**
|
|
36
|
-
* Text.
|
|
37
|
-
*/
|
|
38
|
-
text?: string;
|
|
39
|
-
/**
|
|
40
|
-
* Called before the dialog is closed. Can be used to prevent the dialog from closing.
|
|
41
|
-
* @returns A boolean or a promise that resolves to a boolean. if returns `false`, the dialog will not close.
|
|
42
|
-
*/
|
|
43
|
-
beforeClose?: () => MaybePromise<boolean | void>;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Events for the PopconfirmCancel component.
|
|
47
|
-
*/
|
|
48
|
-
type PopconfirmCancelEmits = {
|
|
49
|
-
/**
|
|
50
|
-
* Emitted when close occurs.
|
|
51
|
-
*/
|
|
52
|
-
close: [];
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Properties for the PopconfirmHeader component.
|
|
56
|
-
*/
|
|
57
|
-
interface PopconfirmHeaderProps extends /** @vue-ignore */HTMLAttributes {}
|
|
58
|
-
/**
|
|
59
|
-
* Properties for the PopconfirmTitle component.
|
|
60
|
-
*/
|
|
61
|
-
interface PopconfirmTitleProps extends /** @vue-ignore */HTMLAttributes {}
|
|
62
|
-
/**
|
|
63
|
-
* Properties for the PopconfirmDescription component.
|
|
64
|
-
*/
|
|
65
|
-
interface PopconfirmDescriptionProps extends /** @vue-ignore */HTMLAttributes {}
|
|
66
|
-
/**
|
|
67
|
-
* Properties for the PopconfirmContent component.
|
|
68
|
-
*/
|
|
69
|
-
interface PopconfirmContentProps extends /** @vue-ignore */HTMLAttributes {}
|
|
70
|
-
/**
|
|
71
|
-
* Properties for the PopconfirmFooter component.
|
|
72
|
-
*/
|
|
73
|
-
interface PopconfirmFooterProps extends /** @vue-ignore */HTMLAttributes {}
|
|
74
|
-
/**
|
|
75
|
-
* Supported popconfirm values.
|
|
76
|
-
*/
|
|
77
|
-
type PopconfirmType = Extract<ThemeColor, 'destructive' | 'success' | 'warning' | 'info'>;
|
|
78
|
-
type PopconfirmUiSlot = PopoverUiSlot | 'header' | 'icon' | 'header' | 'title' | 'description' | 'content' | 'footer';
|
|
79
|
-
/**
|
|
80
|
-
* UI class overrides for the Popconfirm component.
|
|
81
|
-
*/
|
|
82
|
-
type PopconfirmUi = UiClass<PopconfirmUiSlot>;
|
|
83
6
|
/**
|
|
84
7
|
* Properties for the Popconfirm component.
|
|
85
8
|
*/
|
|
86
|
-
interface PopconfirmProps extends
|
|
9
|
+
interface PopconfirmProps extends PopconfirmCompactProps {
|
|
87
10
|
/**
|
|
88
11
|
* class of popup
|
|
89
12
|
*/
|
|
@@ -96,138 +19,14 @@ interface PopconfirmProps extends PopoverRootProps {
|
|
|
96
19
|
* Per-slot class overrides for the component.
|
|
97
20
|
*/
|
|
98
21
|
ui?: Partial<PopconfirmUi>;
|
|
99
|
-
/**
|
|
100
|
-
* Type.
|
|
101
|
-
*/
|
|
102
|
-
type?: PopconfirmType;
|
|
103
|
-
/**
|
|
104
|
-
* Placement.
|
|
105
|
-
*/
|
|
106
|
-
placement?: Placement;
|
|
107
|
-
/**
|
|
108
|
-
* Title text rendered by the component.
|
|
109
|
-
*/
|
|
110
|
-
title?: string;
|
|
111
|
-
/**
|
|
112
|
-
* Description text rendered by the component.
|
|
113
|
-
*/
|
|
114
|
-
description?: string;
|
|
115
|
-
/**
|
|
116
|
-
* Content.
|
|
117
|
-
*/
|
|
118
|
-
content?: string;
|
|
119
|
-
/**
|
|
120
|
-
* Whether to show an arrow.
|
|
121
|
-
*/
|
|
122
|
-
showArrow?: boolean;
|
|
123
|
-
/**
|
|
124
|
-
* Whether to show an icon.
|
|
125
|
-
*/
|
|
126
|
-
showIcon?: boolean;
|
|
127
|
-
/**
|
|
128
|
-
* The text of the confirm button.
|
|
129
|
-
*
|
|
130
|
-
* @defaultValue 'Confirm'
|
|
131
|
-
*/
|
|
132
|
-
confirmText?: string;
|
|
133
|
-
/**
|
|
134
|
-
* The text of the cancel button.
|
|
135
|
-
*
|
|
136
|
-
* @defaultValue 'Cancel'
|
|
137
|
-
*/
|
|
138
|
-
cancelText?: string;
|
|
139
|
-
/**
|
|
140
|
-
* Determines whether the cancel button is shown.
|
|
141
|
-
*
|
|
142
|
-
* @default 'onlyWarning'
|
|
143
|
-
*/
|
|
144
|
-
showCancel?: 'onlyWarning' | boolean;
|
|
145
|
-
/**
|
|
146
|
-
* Before cancel.
|
|
147
|
-
*/
|
|
148
|
-
beforeCancel?: () => MaybePromise<boolean | void>;
|
|
149
|
-
/**
|
|
150
|
-
* Before confirm.
|
|
151
|
-
*/
|
|
152
|
-
beforeConfirm?: () => MaybePromise<boolean | void>;
|
|
153
|
-
/**
|
|
154
|
-
* Properties forwarded to the confirm element.
|
|
155
|
-
*/
|
|
156
|
-
confirmProps?: PopconfirmConfirmProps;
|
|
157
|
-
/**
|
|
158
|
-
* Properties forwarded to the cancel element.
|
|
159
|
-
*/
|
|
160
|
-
cancelProps?: PopconfirmCancelProps;
|
|
161
|
-
/**
|
|
162
|
-
* Properties forwarded to the positioner element.
|
|
163
|
-
*/
|
|
164
|
-
positionerProps?: PopoverPositionerProps;
|
|
165
|
-
/**
|
|
166
|
-
* Properties forwarded to the popup element.
|
|
167
|
-
*/
|
|
168
|
-
popupProps?: PopoverPopupProps;
|
|
169
|
-
/**
|
|
170
|
-
* Properties forwarded to the trigger element.
|
|
171
|
-
*/
|
|
172
|
-
triggerProps?: PopoverTriggerProps;
|
|
173
|
-
/**
|
|
174
|
-
* Properties forwarded to the close element.
|
|
175
|
-
*/
|
|
176
|
-
closeProps?: PopoverCloseProps;
|
|
177
|
-
/**
|
|
178
|
-
* Properties forwarded to the portal element.
|
|
179
|
-
*/
|
|
180
|
-
portalProps?: PopoverPortalProps;
|
|
181
|
-
/**
|
|
182
|
-
* Properties forwarded to the arrow element.
|
|
183
|
-
*/
|
|
184
|
-
arrowProps?: PopoverArrowProps;
|
|
185
|
-
/**
|
|
186
|
-
* Properties forwarded to the header element.
|
|
187
|
-
*/
|
|
188
|
-
headerProps?: PopconfirmHeaderProps;
|
|
189
|
-
/**
|
|
190
|
-
* Properties forwarded to the title element.
|
|
191
|
-
*/
|
|
192
|
-
titleProps?: PopconfirmTitleProps;
|
|
193
|
-
/**
|
|
194
|
-
* Properties forwarded to the description element.
|
|
195
|
-
*/
|
|
196
|
-
descriptionProps?: PopconfirmDescriptionProps;
|
|
197
|
-
/**
|
|
198
|
-
* Properties forwarded to the content element.
|
|
199
|
-
*/
|
|
200
|
-
contentProps?: PopconfirmContentProps;
|
|
201
|
-
/**
|
|
202
|
-
* Properties forwarded to the footer element.
|
|
203
|
-
*/
|
|
204
|
-
footerProps?: PopconfirmFooterProps;
|
|
205
22
|
}
|
|
206
23
|
/**
|
|
207
24
|
* Events for the Popconfirm component.
|
|
208
25
|
*/
|
|
209
|
-
type PopconfirmEmits =
|
|
210
|
-
/**
|
|
211
|
-
* Emitted when close occurs.
|
|
212
|
-
*/
|
|
213
|
-
close: [];
|
|
214
|
-
};
|
|
26
|
+
type PopconfirmEmits = PopconfirmCompactEmits;
|
|
215
27
|
/**
|
|
216
|
-
*
|
|
28
|
+
* Slots for the Popconfirm component.
|
|
217
29
|
*/
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* Before confirm used by the component context.
|
|
221
|
-
*/
|
|
222
|
-
beforeConfirm?: () => MaybePromise<boolean | void>;
|
|
223
|
-
/**
|
|
224
|
-
* Before cancel used by the component context.
|
|
225
|
-
*/
|
|
226
|
-
beforeCancel?: () => MaybePromise<boolean | void>;
|
|
227
|
-
/**
|
|
228
|
-
* Callback invoked when the close event fires.
|
|
229
|
-
*/
|
|
230
|
-
onClose: () => void;
|
|
231
|
-
}
|
|
30
|
+
type PopconfirmSlots = PopconfirmCompactSlots;
|
|
232
31
|
//#endregion
|
|
233
|
-
export {
|
|
32
|
+
export { PopconfirmEmits, PopconfirmProps, PopconfirmSlots };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{tv as e}from"tailwind-variants";const t=e({slots:{positioner:`w-max`,popup:[`flex flex-col w-auto rounded-md border bg-popover text-popover-foreground shadow-md outline-none z-50 will-change-transform`,`data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,`data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95`,`data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`],arrow:`w-1em h-0.5em fill-popover stroke-border`,header:`flex flex-col text-center sm:text-
|
|
1
|
+
import{tv as e}from"tailwind-variants";const t=e({slots:{positioner:`w-max`,popup:[`flex flex-col w-auto rounded-md border bg-popover text-popover-foreground shadow-md outline-none z-50 will-change-transform`,`data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,`data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95`,`data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`],arrow:`w-1em h-0.5em fill-popover stroke-border`,header:`flex flex-col text-center sm:text-start`,icon:`shrink-0`,title:`flex items-center font-semibold leading-none tracking-tight m-0`,description:`text-muted-foreground m-0`,content:``,footer:`flex flex-col-reverse sm:flex-row sm:justify-end`,cancel:``,confirm:``,close:`absolute`},variants:{size:{xs:{popup:`gap-y-2 p-2 text-2xs`,arrow:`text-3xs`,close:`top-1 end-1`,header:`gap-y-1.5`,icon:`text-3xs`,title:`gap-x-1.5`,footer:`gap-1.5`},sm:{popup:`gap-y-2.5 p-2.5 text-xs`,arrow:`text-2xs`,close:`top-1.25 end-1.25`,header:`gap-y-1.75`,icon:`text-2xs`,title:`gap-x-1.75`,footer:`gap-1.75`},md:{popup:`gap-y-3 p-3 text-sm`,arrow:`text-xs`,close:`top-1.5 end-1.5`,header:`gap-y-2`,icon:`text-sm`,title:`gap-x-2`,footer:`gap-2`},lg:{popup:`gap-y-3.5 p-3.5 text-base`,arrow:`text-sm`,close:`top-1.75 end-1.75`,header:`gap-y-2.5`,icon:`text-base`,title:`gap-x-2.5`,footer:`gap-2.5`},xl:{popup:`gap-y-4 p-4 text-lg`,arrow:`text-base`,close:`top-2 end-2`,header:`gap-y-3`,icon:`text-lg`,title:`gap-x-3`,footer:`gap-3`},"2xl":{popup:`gap-y-4.5 p-4.5 text-xl`,arrow:`text-lg`,close:`top-2.5 end-2.5`,header:`gap-y-3.5`,icon:`text-xl`,title:`gap-x-3.5`,footer:`gap-3.5`}},type:{error:{icon:`text-destructive`},success:{icon:`text-success`},warning:{icon:`text-warning`},info:{icon:`text-info`}}},defaultVariants:{size:`md`}});export{t as popconfirmVariants};
|
|
@@ -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{popoverVariants as r}from"./variants.js";import{computed as i,createBlock as a,createCommentVNode 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{PopoverCompact as S,providePopoverUi as C}from"@soybeanjs/headless/popover";const w=c({name:`SPopover`,__name:`popover`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},placement:{},showArrow:{type:Boolean,default:!0},triggerProps:{},portalProps:{},positionerProps:{},popupProps:{},arrowProps:{},closeProps:{},disabled:{type:Boolean},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean}},emits:[`update:open`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(c,{emit:w}){let T=c,E=w,D=_(),O=b(T,[`class`,`ui`,`size`]),k=y(E),A=i(()=>x(D));return C(i(()=>{let i=t[T.size??`md`];return e(Object.assign(r({size:T.size}),{$base:{close:n({size:i})}}),T.ui,{popup:T.class})})),(e,t)=>(f(),a(g(S),u(g(O),h(g(k))),s({_:2},[p(A.value,t=>({name:t,fn:v(n=>[o(` @vue-expect-error ignore slot type error `),m(e.$slots,t,d(l(n)))])}))]),1040))}});export{w as default};
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
import { PopoverProps } from "./types.js";
|
|
1
|
+
import { PopoverProps, PopoverSlots } 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/popover/popover.vue.d.ts
|
|
6
|
-
|
|
7
|
-
type __VLS_Slots = {} & {
|
|
8
|
-
trigger?: (props: typeof __VLS_16) => any;
|
|
9
|
-
} & {
|
|
10
|
-
default?: (props: typeof __VLS_36) => any;
|
|
11
|
-
} & {
|
|
12
|
-
close?: (props: typeof __VLS_49) => any;
|
|
13
|
-
};
|
|
6
|
+
type __VLS_Slots = PopoverSlots;
|
|
14
7
|
declare const __VLS_base: _$vue.DefineComponent<PopoverProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
15
8
|
"update:open": (value: boolean) => any;
|
|
16
9
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ThemeSize } from "../../theme/types.js";
|
|
2
|
-
import {
|
|
3
|
-
import { ClassValue
|
|
2
|
+
import { PopoverCompactEmits, PopoverCompactProps, PopoverCompactSlots, PopoverUi } from "@soybeanjs/headless/popover";
|
|
3
|
+
import { ClassValue } from "@soybeanjs/headless/types";
|
|
4
4
|
|
|
5
5
|
//#region src/components/popover/types.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* Properties for the Popover component.
|
|
8
8
|
*/
|
|
9
|
-
interface PopoverProps extends
|
|
9
|
+
interface PopoverProps extends PopoverCompactProps {
|
|
10
10
|
/**
|
|
11
11
|
* class of popup
|
|
12
12
|
*/
|
|
@@ -19,42 +19,14 @@ interface PopoverProps extends PopoverRootProps {
|
|
|
19
19
|
* Per-slot class overrides for the component.
|
|
20
20
|
*/
|
|
21
21
|
ui?: Partial<PopoverUi>;
|
|
22
|
-
/**
|
|
23
|
-
* Placement.
|
|
24
|
-
*/
|
|
25
|
-
placement?: Placement;
|
|
26
|
-
/**
|
|
27
|
-
* Whether to show an arrow.
|
|
28
|
-
*/
|
|
29
|
-
showArrow?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Properties forwarded to the positioner element.
|
|
32
|
-
*/
|
|
33
|
-
positionerProps?: PopoverPositionerProps;
|
|
34
|
-
/**
|
|
35
|
-
* Properties forwarded to the popup element.
|
|
36
|
-
*/
|
|
37
|
-
popupProps?: PopoverPopupProps;
|
|
38
|
-
/**
|
|
39
|
-
* Properties forwarded to the trigger element.
|
|
40
|
-
*/
|
|
41
|
-
triggerProps?: PopoverTriggerProps;
|
|
42
|
-
/**
|
|
43
|
-
* Properties forwarded to the close element.
|
|
44
|
-
*/
|
|
45
|
-
closeProps?: PopoverCloseProps;
|
|
46
|
-
/**
|
|
47
|
-
* Properties forwarded to the portal element.
|
|
48
|
-
*/
|
|
49
|
-
portalProps?: PopoverPortalProps;
|
|
50
|
-
/**
|
|
51
|
-
* Properties forwarded to the arrow element.
|
|
52
|
-
*/
|
|
53
|
-
arrowProps?: PopoverArrowProps;
|
|
54
22
|
}
|
|
55
23
|
/**
|
|
56
24
|
* Events for the Popover component.
|
|
57
25
|
*/
|
|
58
|
-
type PopoverEmits =
|
|
26
|
+
type PopoverEmits = PopoverCompactEmits;
|
|
27
|
+
/**
|
|
28
|
+
* Slots for the Popover component.
|
|
29
|
+
*/
|
|
30
|
+
type PopoverSlots = PopoverCompactSlots;
|
|
59
31
|
//#endregion
|
|
60
|
-
export { PopoverEmits, PopoverProps };
|
|
32
|
+
export { PopoverEmits, PopoverProps, PopoverSlots };
|