@soybeanjs/headless 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/_icon/types.d.ts +9 -0
- package/dist/components/accordion/types.d.ts +87 -0
- package/dist/components/affix/types.d.ts +39 -0
- package/dist/components/alert/types.d.ts +78 -0
- package/dist/components/anchor/anchor-compact.js +1 -1
- package/dist/components/anchor/{anchor-compact-item.js → anchor-item-compact.js} +1 -1
- package/dist/components/anchor/anchor-item-compact.vue.d.ts +8 -0
- package/dist/components/anchor/anchor-link.js +1 -1
- package/dist/components/anchor/anchor-root.vue.d.ts +1 -1
- package/dist/components/anchor/index.d.ts +5 -4
- package/dist/components/anchor/index.js +1 -1
- package/dist/components/anchor/types.d.ts +122 -10
- package/dist/components/arrow/types.d.ts +3 -0
- package/dist/components/aspect-ratio/types.d.ts +3 -0
- package/dist/components/autocomplete/autocomplete-compact.vue.d.ts +2 -2
- package/dist/components/autocomplete/autocomplete-root.vue.d.ts +3 -3
- package/dist/components/autocomplete/types.d.ts +141 -0
- package/dist/components/avatar/types.d.ts +18 -0
- package/dist/components/backtop/backtop.vue.d.ts +9 -3
- package/dist/components/backtop/index.d.ts +2 -2
- package/dist/components/backtop/types.d.ts +19 -12
- package/dist/components/badge/types.d.ts +21 -0
- package/dist/components/bottom-sheet/bottom-sheet-compact.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-root-nested.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-root-nested.vue.d.ts +2 -2
- package/dist/components/bottom-sheet/bottom-sheet-root.js +1 -1
- package/dist/components/bottom-sheet/types.d.ts +99 -0
- package/dist/components/breadcrumb/index.d.ts +2 -2
- package/dist/components/breadcrumb/types.d.ts +103 -1
- package/dist/components/button/types.d.ts +16 -1
- package/dist/components/calendar/calendar-root.js +1 -1
- package/dist/components/calendar/types.d.ts +363 -0
- package/dist/components/card/types.d.ts +90 -0
- package/dist/components/carousel/types.d.ts +42 -0
- package/dist/components/checkbox/types.d.ts +111 -0
- package/dist/components/clipboard/types.d.ts +42 -0
- package/dist/components/collapsible/types.d.ts +18 -0
- package/dist/components/color-area/color-area-root.vue.d.ts +1 -1
- package/dist/components/color-area/types.d.ts +60 -0
- package/dist/components/color-field/color-field-root.vue.d.ts +2 -2
- package/dist/components/color-field/types.d.ts +51 -0
- package/dist/components/color-picker/color-picker-root.vue.d.ts +1 -1
- package/dist/components/color-picker/types.d.ts +39 -0
- package/dist/components/color-slider/color-slider-root.vue.d.ts +1 -1
- package/dist/components/color-slider/types.d.ts +60 -0
- package/dist/components/color-swatch/types.d.ts +9 -0
- package/dist/components/color-swatch-picker/types.d.ts +27 -0
- package/dist/components/combobox/combobox-compact.vue.d.ts +2 -2
- package/dist/components/combobox/combobox-root.vue.d.ts +2 -2
- package/dist/components/combobox/types.d.ts +237 -0
- package/dist/components/command/types.d.ts +147 -0
- package/dist/components/config-provider/config-provider.vue.d.ts +1 -1
- package/dist/components/config-provider/types.d.ts +3 -0
- package/dist/components/context-menu/context-menu-checkbox-compact.js +1 -1
- package/dist/components/context-menu/context-menu-compact.js +1 -1
- package/dist/components/context-menu/context-menu-radio-compact.js +1 -1
- package/dist/components/context-menu/context-menu-root.js +1 -1
- package/dist/components/context-menu/context-menu-wrapper-compact.js +1 -1
- package/dist/components/context-menu/types.d.ts +78 -0
- package/dist/components/date-field/date-field-root.vue.d.ts +2 -2
- package/dist/components/date-field/types.d.ts +147 -0
- package/dist/components/date-picker/context.js +1 -1
- package/dist/components/date-picker/date-picker-compact.js +1 -0
- package/dist/components/date-picker/date-picker-compact.vue.d.ts +27 -0
- package/dist/components/date-picker/date-picker-content.js +1 -0
- package/dist/components/date-picker/date-picker-content.vue.d.ts +33 -0
- package/dist/components/date-picker/date-picker-root.js +1 -1
- package/dist/components/date-picker/date-picker-root.vue.d.ts +9 -14
- package/dist/components/date-picker/index.d.ts +8 -5
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-picker/types.d.ts +236 -10
- package/dist/components/date-range-field/date-range-field-root.vue.d.ts +2 -2
- package/dist/components/date-range-field/types.d.ts +192 -0
- package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +2 -2
- package/dist/components/date-range-picker/date-range-picker-root.vue.d.ts +7 -7
- package/dist/components/date-range-picker/types.d.ts +189 -0
- package/dist/components/dialog/dialog-compact.js +1 -1
- package/dist/components/dialog/dialog-compact.vue.d.ts +5 -5
- package/dist/components/dialog/dialog-root.js +1 -1
- package/dist/components/dialog/types.d.ts +196 -2
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-root.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.js +1 -1
- package/dist/components/dropdown-menu/types.d.ts +84 -0
- package/dist/components/editable/types.d.ts +123 -0
- package/dist/components/empty/types.d.ts +24 -0
- package/dist/components/form/core/types.d.ts +396 -13
- package/dist/components/form/types.d.ts +27 -0
- package/dist/components/hover-card/hover-card-positioner-impl.js +1 -1
- package/dist/components/hover-card/types.d.ts +57 -0
- package/dist/components/input/types.d.ts +21 -0
- package/dist/components/input-number/types.d.ts +30 -0
- package/dist/components/input-otp/index.d.ts +1 -2
- package/dist/components/input-otp/index.js +1 -1
- package/dist/components/input-otp/input-otp-compact.vue.d.ts +4 -4
- package/dist/components/input-otp/input-otp-root.vue.d.ts +5 -5
- package/dist/components/input-otp/types.d.ts +186 -0
- package/dist/components/kbd/types.d.ts +6 -0
- package/dist/components/label/types.d.ts +3 -0
- package/dist/components/layout/layout-root.vue.d.ts +1 -1
- package/dist/components/layout/types.d.ts +124 -10
- package/dist/components/link/types.d.ts +12 -0
- package/dist/components/list/types.d.ts +21 -0
- package/dist/components/listbox/types.d.ts +66 -0
- package/dist/components/menu/menu-option-compact.js +1 -1
- package/dist/components/menu/menu-options-compact.js +1 -1
- package/dist/components/menu/menu-root.js +1 -1
- package/dist/components/menu/types.d.ts +266 -2
- package/dist/components/menubar/menubar-compact.js +1 -1
- package/dist/components/menubar/types.d.ts +72 -0
- package/dist/components/month-picker/month-picker-root.vue.d.ts +4 -4
- package/dist/components/month-picker/types.d.ts +141 -0
- package/dist/components/month-range-picker/month-range-picker-root.vue.d.ts +4 -4
- package/dist/components/month-range-picker/types.d.ts +165 -0
- package/dist/components/navigation-menu/types.d.ts +87 -0
- package/dist/components/page-tabs/types.d.ts +24 -0
- package/dist/components/pagination/types.d.ts +96 -0
- package/dist/components/popover/context.d.ts +9 -0
- package/dist/components/popover/context.js +1 -1
- package/dist/components/popover/index.d.ts +6 -6
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover-compact.js +1 -1
- package/dist/components/popover/popover-root.js +1 -1
- package/dist/components/popover/popover-root.vue.d.ts +0 -2
- package/dist/components/popover/popover-trigger.js +1 -1
- package/dist/components/popover/types.d.ts +94 -6
- package/dist/components/popper/popper-positioner.vue.d.ts +2 -2
- package/dist/components/popper/types.d.ts +21 -0
- package/dist/components/portal/types.d.ts +3 -0
- package/dist/components/primitive/types.d.ts +6 -0
- package/dist/components/progress/types.d.ts +81 -0
- package/dist/components/radio-group/types.d.ts +66 -0
- package/dist/components/range-calendar/range-calendar-root.vue.d.ts +2 -2
- package/dist/components/range-calendar/types.d.ts +330 -0
- package/dist/components/roving-focus/roving-focus-group.vue.d.ts +1 -1
- package/dist/components/roving-focus/types.d.ts +18 -0
- package/dist/components/scroll-area/types.d.ts +33 -0
- package/dist/components/segment/types.d.ts +36 -0
- package/dist/components/select/select-content.vue.d.ts +1 -1
- package/dist/components/select/types.d.ts +240 -0
- package/dist/components/separator/types.d.ts +12 -0
- package/dist/components/skeleton/types.d.ts +3 -0
- package/dist/components/slider/slider-root.vue.d.ts +1 -1
- package/dist/components/slider/types.d.ts +90 -0
- package/dist/components/splitter/splitter-panel.vue.d.ts +2 -2
- package/dist/components/splitter/types.d.ts +114 -0
- package/dist/components/stepper/stepper-root.vue.d.ts +1 -1
- package/dist/components/stepper/types.d.ts +96 -0
- package/dist/components/switch/types.d.ts +21 -0
- package/dist/components/table/types.d.ts +819 -0
- package/dist/components/tabs/tabs-root.vue.d.ts +1 -1
- package/dist/components/tabs/types.d.ts +75 -0
- package/dist/components/tag/types.d.ts +12 -0
- package/dist/components/tags-input/tags-input-root.vue.d.ts +2 -2
- package/dist/components/tags-input/types.d.ts +63 -0
- package/dist/components/textarea/types.d.ts +27 -0
- package/dist/components/time-field/time-field-root.vue.d.ts +1 -1
- package/dist/components/time-field/types.d.ts +138 -0
- package/dist/components/time-picker/time-picker-root.vue.d.ts +6 -6
- package/dist/components/time-picker/types.d.ts +156 -0
- package/dist/components/time-range-field/time-range-field-root.vue.d.ts +2 -2
- package/dist/components/time-range-field/types.d.ts +192 -0
- package/dist/components/time-range-picker/time-range-picker-compact.vue.d.ts +2 -2
- package/dist/components/time-range-picker/time-range-picker-root.vue.d.ts +6 -6
- package/dist/components/time-range-picker/types.d.ts +201 -0
- package/dist/components/toast/toaster.vue.d.ts +2 -2
- package/dist/components/toast/types.d.ts +224 -4
- package/dist/components/toggle/toggle.vue.d.ts +1 -1
- package/dist/components/toggle/types.d.ts +9 -0
- package/dist/components/toggle-group/types.d.ts +15 -0
- package/dist/components/toolbar/types.d.ts +48 -0
- package/dist/components/tooltip/types.d.ts +27 -0
- package/dist/components/tree/types.d.ts +75 -0
- package/dist/components/tree-menu/tree-menu-root.vue.d.ts +1 -1
- package/dist/components/tree-menu/types.d.ts +60 -0
- package/dist/components/virtualizer/types.d.ts +33 -0
- package/dist/components/visually-hidden/types.d.ts +30 -0
- package/dist/components/year-picker/types.d.ts +144 -0
- package/dist/components/year-picker/year-picker-root.vue.d.ts +4 -4
- package/dist/components/year-range-picker/types.d.ts +168 -0
- package/dist/components/year-range-picker/year-range-picker-root.vue.d.ts +4 -4
- package/dist/composables/use-collection.js +1 -1
- package/dist/constants/components.d.ts +5 -5
- package/dist/constants/components.js +1 -1
- package/dist/constants/index.d.ts +2 -1
- package/dist/constants/index.js +1 -1
- package/dist/{components/input-otp → constants}/regexp.d.ts +1 -1
- package/dist/date/parts.d.ts +1 -1
- package/dist/index.d.ts +418 -417
- package/dist/index.js +1 -1
- package/dist/namespaced/index.d.ts +877 -872
- package/dist/namespaced/index.js +1 -1
- package/dist/node_modules/.pnpm/@soybeanjs_utils@0.1.1/node_modules/@soybeanjs/utils/dist/index.js +1 -1
- package/dist/resolver/index.js +1 -1
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/shared/string.d.ts +1 -34
- package/dist/shared/string.js +1 -1
- package/dist/types/common.d.ts +9 -1
- package/dist/types/dom.d.ts +3 -1
- package/dist/types/event.d.ts +10 -1
- package/dist/types/index.d.ts +5 -4
- package/dist/types/index.js +0 -0
- package/dist/types/vue.d.ts +4 -1
- package/package.json +6 -1
- package/dist/components/date-picker/date-picker-popup.js +0 -1
- package/dist/components/date-picker/date-picker-popup.vue.d.ts +0 -21
- package/dist/components/date-picker/date-picker-trigger.js +0 -1
- package/dist/components/date-picker/date-picker-trigger.vue.d.ts +0 -21
- /package/dist/{components/input-otp → constants}/regexp.js +0 -0
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { Component, VNode } from "vue";
|
|
2
2
|
|
|
3
3
|
//#region src/components/_icon/types.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Type information for the icon value component.
|
|
6
|
+
*/
|
|
4
7
|
type IconValue = VNode | Component | string | null | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Props for the icon component.
|
|
10
|
+
*/
|
|
5
11
|
interface IconProps {
|
|
12
|
+
/**
|
|
13
|
+
* Icon rendered by the component.
|
|
14
|
+
*/
|
|
6
15
|
icon: IconValue;
|
|
7
16
|
}
|
|
8
17
|
//#endregion
|
|
@@ -4,6 +4,9 @@ import { CollapsibleContentProps, CollapsibleRootProps, CollapsibleTriggerProps
|
|
|
4
4
|
import { ComputedRef, HTMLAttributes, ShallowRef } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/accordion/types.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Props for the accordion root component.
|
|
9
|
+
*/
|
|
7
10
|
interface AccordionRootProps<M extends boolean = false> extends SelectionProps<M>, /** @vue-ignore */HTMLAttributes {
|
|
8
11
|
/**
|
|
9
12
|
* When type is "single", allows closing content when clicking trigger for an open item.
|
|
@@ -38,15 +41,36 @@ interface AccordionRootProps<M extends boolean = false> extends SelectionProps<M
|
|
|
38
41
|
*/
|
|
39
42
|
unmountOnHide?: boolean;
|
|
40
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* Emits for the accordion root component.
|
|
46
|
+
*/
|
|
41
47
|
type AccordionRootEmits<M extends boolean = false> = SelectionEmits<M>;
|
|
48
|
+
/**
|
|
49
|
+
* Props for the accordion item component.
|
|
50
|
+
*/
|
|
42
51
|
interface AccordionItemProps extends Omit<CollapsibleRootProps, 'open' | 'defaultOpen' | 'onOpenChange'> {
|
|
43
52
|
/** Value of the accordion item. All items within an accordion should use a unique value. */
|
|
44
53
|
value: string;
|
|
45
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* Props for the accordion header component.
|
|
57
|
+
*/
|
|
46
58
|
interface AccordionHeaderProps extends /** @vue-ignore */HTMLAttributes {}
|
|
59
|
+
/**
|
|
60
|
+
* Props for the accordion trigger component.
|
|
61
|
+
*/
|
|
47
62
|
interface AccordionTriggerProps extends CollapsibleTriggerProps {}
|
|
63
|
+
/**
|
|
64
|
+
* Props for the accordion content component.
|
|
65
|
+
*/
|
|
48
66
|
interface AccordionContentProps extends CollapsibleContentProps {}
|
|
67
|
+
/**
|
|
68
|
+
* Props for the accordion description component.
|
|
69
|
+
*/
|
|
49
70
|
interface AccordionDescriptionProps extends /** @vue-ignore */HTMLAttributes {}
|
|
71
|
+
/**
|
|
72
|
+
* Option data for the accordion component.
|
|
73
|
+
*/
|
|
50
74
|
interface AccordionOptionData extends Pick<AccordionItemProps, 'value' | 'disabled'> {
|
|
51
75
|
/** The title of the accordion item. */
|
|
52
76
|
title?: string;
|
|
@@ -57,29 +81,92 @@ interface AccordionOptionData extends Pick<AccordionItemProps, 'value' | 'disabl
|
|
|
57
81
|
*/
|
|
58
82
|
icon?: IconValue;
|
|
59
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Props for the accordion compact component.
|
|
86
|
+
*/
|
|
60
87
|
interface AccordionCompactProps<T extends AccordionOptionData = AccordionOptionData, M extends boolean = false> extends AccordionRootProps<M> {
|
|
88
|
+
/**
|
|
89
|
+
* Items rendered by the component.
|
|
90
|
+
*/
|
|
61
91
|
items: T[];
|
|
92
|
+
/**
|
|
93
|
+
* Props forwarded to the item element.
|
|
94
|
+
*/
|
|
62
95
|
itemProps?: AccordionItemProps;
|
|
96
|
+
/**
|
|
97
|
+
* Props forwarded to the header element.
|
|
98
|
+
*/
|
|
63
99
|
headerProps?: AccordionHeaderProps;
|
|
100
|
+
/**
|
|
101
|
+
* Props forwarded to the trigger element.
|
|
102
|
+
*/
|
|
64
103
|
triggerProps?: AccordionTriggerProps;
|
|
104
|
+
/**
|
|
105
|
+
* Props forwarded to the content element.
|
|
106
|
+
*/
|
|
65
107
|
contentProps?: AccordionContentProps;
|
|
108
|
+
/**
|
|
109
|
+
* Props forwarded to the description element.
|
|
110
|
+
*/
|
|
66
111
|
descriptionProps?: AccordionDescriptionProps;
|
|
67
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* Emits for the accordion compact component.
|
|
115
|
+
*/
|
|
68
116
|
type AccordionCompactEmits<M extends boolean = false> = AccordionRootEmits<M>;
|
|
117
|
+
/**
|
|
118
|
+
* Slot props for the accordion compact component.
|
|
119
|
+
*/
|
|
69
120
|
interface AccordionCompactSlotProps<T extends AccordionOptionData = AccordionOptionData, M extends boolean = false> {
|
|
121
|
+
/**
|
|
122
|
+
* Current item data.
|
|
123
|
+
*/
|
|
70
124
|
item: T;
|
|
125
|
+
/**
|
|
126
|
+
* Index of the current item.
|
|
127
|
+
*/
|
|
71
128
|
index: number;
|
|
129
|
+
/**
|
|
130
|
+
* Current model value.
|
|
131
|
+
*/
|
|
72
132
|
modelValue: (M extends true ? string[] : string) | undefined;
|
|
133
|
+
/**
|
|
134
|
+
* Whether the component is open.
|
|
135
|
+
*/
|
|
73
136
|
open: boolean;
|
|
74
137
|
}
|
|
138
|
+
/**
|
|
139
|
+
* Slots for the accordion compact component.
|
|
140
|
+
*/
|
|
75
141
|
type AccordionCompactSlots<T extends AccordionOptionData = AccordionOptionData, M extends boolean = false> = {
|
|
142
|
+
/**
|
|
143
|
+
* Custom content for the item slot.
|
|
144
|
+
*/
|
|
76
145
|
item?: (props: AccordionCompactSlotProps<T, M>) => any;
|
|
146
|
+
/**
|
|
147
|
+
* Custom content for the leading slot.
|
|
148
|
+
*/
|
|
77
149
|
leading?: (props: AccordionCompactSlotProps<T, M>) => any;
|
|
150
|
+
/**
|
|
151
|
+
* Custom content for the title slot.
|
|
152
|
+
*/
|
|
78
153
|
title?: (props: AccordionCompactSlotProps<T, M>) => any;
|
|
154
|
+
/**
|
|
155
|
+
* Custom content for the trigger icon slot.
|
|
156
|
+
*/
|
|
79
157
|
'trigger-icon'?: (props: AccordionCompactSlotProps<T, M>) => any;
|
|
158
|
+
/**
|
|
159
|
+
* Custom content for the content slot.
|
|
160
|
+
*/
|
|
80
161
|
content?: (props: AccordionCompactSlotProps<T, M>) => any;
|
|
81
162
|
};
|
|
163
|
+
/**
|
|
164
|
+
* Available UI slots for the accordion component.
|
|
165
|
+
*/
|
|
82
166
|
type AccordionUiSlot = 'root' | 'item' | 'header' | 'trigger' | 'content' | 'description' | 'triggerLeadingIcon' | 'triggerIcon';
|
|
167
|
+
/**
|
|
168
|
+
* UI class overrides for the accordion component.
|
|
169
|
+
*/
|
|
83
170
|
type AccordionUi = UiClass<AccordionUiSlot>;
|
|
84
171
|
//#endregion
|
|
85
172
|
export { AccordionCompactEmits, AccordionCompactProps, AccordionCompactSlotProps, AccordionCompactSlots, AccordionContentProps, AccordionDescriptionProps, AccordionHeaderProps, AccordionItemProps, AccordionOptionData, AccordionRootEmits, AccordionRootProps, AccordionTriggerProps, AccordionUi, AccordionUiSlot };
|
|
@@ -2,8 +2,17 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { ComputedRef, HTMLAttributes, ShallowRef } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/affix/types.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Type information for the affix target component.
|
|
7
|
+
*/
|
|
5
8
|
type AffixTarget = string | Window | HTMLElement | (() => HTMLElement);
|
|
9
|
+
/**
|
|
10
|
+
* State values for the affix component.
|
|
11
|
+
*/
|
|
6
12
|
type AffixState = 'fixed' | 'static';
|
|
13
|
+
/**
|
|
14
|
+
* Props for the affix root component.
|
|
15
|
+
*/
|
|
7
16
|
interface AffixRootProps extends /** @vue-ignore */Omit<HTMLAttributes, 'onChange'> {
|
|
8
17
|
/**
|
|
9
18
|
* The offset from the top of the target container when the element becomes affixed.
|
|
@@ -22,17 +31,47 @@ interface AffixRootProps extends /** @vue-ignore */Omit<HTMLAttributes, 'onChang
|
|
|
22
31
|
*/
|
|
23
32
|
target?: AffixTarget | null;
|
|
24
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Emits for the affix root component.
|
|
36
|
+
*/
|
|
25
37
|
type AffixRootEmits = {
|
|
38
|
+
/**
|
|
39
|
+
* Emitted when change occurs.
|
|
40
|
+
*/
|
|
26
41
|
change: [affixed: boolean];
|
|
27
42
|
};
|
|
43
|
+
/**
|
|
44
|
+
* Props for the affix placeholder component.
|
|
45
|
+
*/
|
|
28
46
|
interface AffixPlaceholderProps extends /** @vue-ignore */HTMLAttributes {}
|
|
47
|
+
/**
|
|
48
|
+
* Props for the affix content component.
|
|
49
|
+
*/
|
|
29
50
|
interface AffixContentProps extends /** @vue-ignore */HTMLAttributes {}
|
|
51
|
+
/**
|
|
52
|
+
* Props for the affix compact component.
|
|
53
|
+
*/
|
|
30
54
|
interface AffixCompactProps extends AffixRootProps {
|
|
55
|
+
/**
|
|
56
|
+
* Props forwarded to the placeholder element.
|
|
57
|
+
*/
|
|
31
58
|
placeholderProps?: AffixPlaceholderProps;
|
|
59
|
+
/**
|
|
60
|
+
* Props forwarded to the content element.
|
|
61
|
+
*/
|
|
32
62
|
contentProps?: AffixContentProps;
|
|
33
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Emits for the affix compact component.
|
|
66
|
+
*/
|
|
34
67
|
type AffixCompactEmits = AffixRootEmits;
|
|
68
|
+
/**
|
|
69
|
+
* Available UI slots for the affix component.
|
|
70
|
+
*/
|
|
35
71
|
type AffixUiSlot = 'root' | 'placeholder' | 'content';
|
|
72
|
+
/**
|
|
73
|
+
* UI class overrides for the affix component.
|
|
74
|
+
*/
|
|
36
75
|
type AffixUi = UiClass<AffixUiSlot>;
|
|
37
76
|
//#endregion
|
|
38
77
|
export { AffixCompactEmits, AffixCompactProps, AffixContentProps, AffixPlaceholderProps, AffixRootEmits, AffixRootProps, AffixState, AffixTarget, AffixUi, AffixUiSlot };
|
|
@@ -4,6 +4,9 @@ import { PrimitiveProps } from "../primitive/types.js";
|
|
|
4
4
|
import { ButtonHTMLAttributes, HTMLAttributes, ShallowRef } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/alert/types.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Props for the alert root component.
|
|
9
|
+
*/
|
|
7
10
|
interface AlertRootProps extends /** @vue-ignore */HTMLAttributes {
|
|
8
11
|
/**
|
|
9
12
|
* The controlled open state of the alert. Can be bound with `v-model:open`.
|
|
@@ -12,33 +15,108 @@ interface AlertRootProps extends /** @vue-ignore */HTMLAttributes {
|
|
|
12
15
|
*/
|
|
13
16
|
open?: boolean;
|
|
14
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Emits for the alert root component.
|
|
20
|
+
*/
|
|
15
21
|
type AlertRootEmits = {
|
|
22
|
+
/**
|
|
23
|
+
* Emitted when the open changes.
|
|
24
|
+
*/
|
|
16
25
|
'update:open': [open: boolean];
|
|
17
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* Props for the alert content component.
|
|
29
|
+
*/
|
|
18
30
|
interface AlertContentProps extends /** @vue-ignore */HTMLAttributes {}
|
|
31
|
+
/**
|
|
32
|
+
* Props for the alert title component.
|
|
33
|
+
*/
|
|
19
34
|
interface AlertTitleProps extends /** @vue-ignore */HTMLAttributes {}
|
|
35
|
+
/**
|
|
36
|
+
* Props for the alert description component.
|
|
37
|
+
*/
|
|
20
38
|
interface AlertDescriptionProps extends /** @vue-ignore */HTMLAttributes {}
|
|
39
|
+
/**
|
|
40
|
+
* Props for the alert close component.
|
|
41
|
+
*/
|
|
21
42
|
interface AlertCloseProps extends PrimitiveProps, /** @vue-ignore */ButtonHTMLAttributes {}
|
|
43
|
+
/**
|
|
44
|
+
* Props for the alert compact component.
|
|
45
|
+
*/
|
|
22
46
|
interface AlertCompactProps extends AlertRootProps {
|
|
47
|
+
/**
|
|
48
|
+
* Title text rendered by the component.
|
|
49
|
+
*/
|
|
23
50
|
title?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Description text rendered by the component.
|
|
53
|
+
*/
|
|
24
54
|
description?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Icon rendered by the component.
|
|
57
|
+
*/
|
|
25
58
|
icon?: IconValue;
|
|
59
|
+
/**
|
|
60
|
+
* Whether the component can be closed.
|
|
61
|
+
*/
|
|
26
62
|
closable?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Props forwarded to the content element.
|
|
65
|
+
*/
|
|
27
66
|
contentProps?: AlertContentProps;
|
|
67
|
+
/**
|
|
68
|
+
* Props forwarded to the title element.
|
|
69
|
+
*/
|
|
28
70
|
titleProps?: AlertTitleProps;
|
|
71
|
+
/**
|
|
72
|
+
* Props forwarded to the description element.
|
|
73
|
+
*/
|
|
29
74
|
descriptionProps?: AlertDescriptionProps;
|
|
75
|
+
/**
|
|
76
|
+
* Props forwarded to the close element.
|
|
77
|
+
*/
|
|
30
78
|
closeProps?: AlertCloseProps;
|
|
31
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* Emits for the alert compact component.
|
|
82
|
+
*/
|
|
32
83
|
type AlertCompactEmits = AlertRootEmits;
|
|
84
|
+
/**
|
|
85
|
+
* Slots for the alert compact component.
|
|
86
|
+
*/
|
|
33
87
|
type AlertCompactSlots = {
|
|
88
|
+
/**
|
|
89
|
+
* Custom content for the default slot.
|
|
90
|
+
*/
|
|
34
91
|
default?: () => any;
|
|
92
|
+
/**
|
|
93
|
+
* Custom content for the leading slot.
|
|
94
|
+
*/
|
|
35
95
|
leading?: () => any;
|
|
96
|
+
/**
|
|
97
|
+
* Custom content for the title slot.
|
|
98
|
+
*/
|
|
36
99
|
title?: () => any;
|
|
100
|
+
/**
|
|
101
|
+
* Custom content for the description slot.
|
|
102
|
+
*/
|
|
37
103
|
description?: () => any;
|
|
104
|
+
/**
|
|
105
|
+
* Custom content for the trailing slot.
|
|
106
|
+
*/
|
|
38
107
|
trailing?: () => any;
|
|
108
|
+
/**
|
|
109
|
+
* Custom content for the close slot.
|
|
110
|
+
*/
|
|
39
111
|
close?: () => any;
|
|
40
112
|
};
|
|
113
|
+
/**
|
|
114
|
+
* Available UI slots for the alert component.
|
|
115
|
+
*/
|
|
41
116
|
type AlertUiSlot = 'root' | 'icon' | 'title' | 'description' | 'content' | 'close';
|
|
117
|
+
/**
|
|
118
|
+
* UI class overrides for the alert component.
|
|
119
|
+
*/
|
|
42
120
|
type AlertUi = UiClass<AlertUiSlot>;
|
|
43
121
|
//#endregion
|
|
44
122
|
export { AlertCloseProps, AlertCompactEmits, AlertCompactProps, AlertCompactSlots, AlertContentProps, AlertDescriptionProps, AlertRootEmits, AlertRootProps, AlertTitleProps, AlertUi, AlertUiSlot };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"./anchor-compact
|
|
1
|
+
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"./anchor-item-compact.js";import n from"./anchor-root.js";import{Fragment as r,createBlock as i,createElementBlock as a,defineComponent as o,mergeProps as s,openBlock as c,renderList as l,unref as u,withCtx as d}from"vue";const f=o({name:`AnchorCompact`,__name:`anchor-compact`,props:{items:{},linkProps:{},indicatorProps:{},titleProps:{},subProps:{},bounds:{},dir:{},getContainer:{type:Function},getCurrentAnchor:{type:Function},modelValue:{},offsetTop:{},orientation:{},replace:{type:Boolean},targetOffset:{},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`activeChange`,`itemSelect`],setup(o,{emit:f}){let p=o,m=f,h=e(p,[`items`,`linkProps`,`indicatorProps`,`titleProps`,`subProps`]),g=e=>{m(`update:modelValue`,e)},_=e=>{m(`activeChange`,e)},v=(e,t)=>{m(`itemSelect`,e,t)};return(e,f)=>(c(),i(n,s(u(h),{onActiveChange:_,onItemSelect:v,"onUpdate:modelValue":g}),{default:d(({modelValue:e})=>[(c(!0),a(r,null,l(o.items,n=>(c(),i(t,{key:n.href,item:n,"model-value":e,"link-props":o.linkProps,"indicator-props":o.indicatorProps,"title-props":o.titleProps,"sub-props":o.subProps},null,8,[`item`,`model-value`,`link-props`,`indicator-props`,`title-props`,`sub-props`]))),128))]),_:1},16))}});export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useAnchorUi as e}from"./context.js";import t from"./anchor-link.js";import{Fragment as n,computed as r,createBlock as i,createCommentVNode as a,createElementBlock as o,createElementVNode as s,createVNode as c,defineComponent as l,mergeProps as u,normalizeClass as d,openBlock as f,renderList as p,resolveComponent as m,toDisplayString as h,unref as g,withCtx as _}from"vue";const v=[`data-state`],y=l({name:`
|
|
1
|
+
import{useAnchorUi as e}from"./context.js";import t from"./anchor-link.js";import{Fragment as n,computed as r,createBlock as i,createCommentVNode as a,createElementBlock as o,createElementVNode as s,createVNode as c,defineComponent as l,mergeProps as u,normalizeClass as d,openBlock as f,renderList as p,resolveComponent as m,toDisplayString as h,unref as g,withCtx as _}from"vue";const v=[`data-state`],y=l({name:`AnchorItemCompact`,__name:`anchor-item-compact`,props:{modelValue:{},item:{},linkProps:{},indicatorProps:{},titleProps:{},subProps:{}},setup(l){let y=l,b=e();function x(e,t){return e.href===t?!0:e.children?.some(e=>x(e,t))??!1}let S=r(()=>x(y.item,y.modelValue??``)?`active`:`inactive`);return(e,r)=>{let y=m(`AnchorItemCompact`,!0);return f(),o(`div`,{class:d(g(b).item),"data-state":S.value},[c(t,u(l.linkProps,{href:l.item.href,target:l.item.target,disabled:l.item.disabled}),{default:_(()=>[s(`span`,u(l.indicatorProps,{class:g(b).indicator,"aria-hidden":`true`}),null,16),s(`span`,u(l.titleProps,{class:g(b).title}),h(l.item.title||l.item.href),17)]),_:1},16,[`href`,`target`,`disabled`]),l.item.children?.length?(f(),o(`div`,u({key:0},l.subProps,{class:g(b).sub}),[(f(!0),o(n,null,p(l.item.children,e=>(f(),i(y,{key:e.href,"model-value":l.modelValue,item:e,"link-props":l.linkProps,"indicator-props":l.indicatorProps,"title-props":l.titleProps,"sub-props":l.subProps},null,8,[`model-value`,`item`,`link-props`,`indicator-props`,`title-props`,`sub-props`]))),128))],16)):a(`v-if`,!0)],10,v)}}});export{y as default};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AnchorItemCompactProps } from "./types.js";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/anchor/anchor-item-compact.vue.d.ts
|
|
5
|
+
declare const __VLS_export: _$vue.DefineComponent<AnchorItemCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<AnchorItemCompactProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { _default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useAnchorRootContext as t,useAnchorUi as n}from"./context.js";import{computed as r,createBlock as i,defineComponent as a,normalizeClass as o,onWatcherCleanup as s,openBlock as c,renderSlot as l,unref as u,watch as d,withCtx as f}from"vue";const p=a({name:`AnchorLink`,__name:`anchor-link`,props:{href:{},asChild:{type:Boolean},as:{default:`a`},
|
|
1
|
+
import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useAnchorRootContext as t,useAnchorUi as n}from"./context.js";import{computed as r,createBlock as i,defineComponent as a,normalizeClass as o,onWatcherCleanup as s,openBlock as c,renderSlot as l,unref as u,watch as d,withCtx as f}from"vue";const p=a({name:`AnchorLink`,__name:`anchor-link`,props:{href:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{default:`a`},to:{},external:{type:Boolean},target:{}},setup(a){let p=a,m=n(`link`),{activeHref:h,onLinkClick:g,registerLink:_,scrollTo:v,unregisterLink:y}=t(`AnchorLink`),b=r(()=>h.value===p.href),x=r(()=>p.disabled?``:void 0),S=r(()=>b.value?`active`:`inactive`),C=e=>{if(g(e,{href:p.href}),p.disabled){e.preventDefault(),e.stopPropagation();return}!p.href.startsWith(`#`)||e.defaultPrevented||(e.preventDefault(),v(p.href))};return d(()=>p.href,e=>{_(e),s(()=>{y(e)})},{immediate:!0}),(t,n)=>(c(),i(u(e),{as:a.as,"as-child":a.asChild,href:a.href,class:o(u(m)),target:a.target,"aria-current":b.value?`location`:void 0,"aria-disabled":a.disabled?`true`:void 0,"data-disabled":x.value,"data-state":S.value,tabindex:a.disabled?-1:void 0,onClick:C},{default:f(()=>[l(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`href`,`class`,`target`,`aria-current`,`aria-disabled`,`data-disabled`,`data-state`,`tabindex`]))}});export{p as default};
|
|
@@ -24,8 +24,8 @@ declare const __VLS_base: _$vue.DefineComponent<AnchorRootProps, {}, {}, {}, {},
|
|
|
24
24
|
}>, {
|
|
25
25
|
orientation: DataOrientation;
|
|
26
26
|
modelValue: string;
|
|
27
|
-
offsetTop: number;
|
|
28
27
|
bounds: number;
|
|
28
|
+
offsetTop: number;
|
|
29
29
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
30
30
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
31
31
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { AnchorCompactEmits,
|
|
1
|
+
import { AnchorCompactEmits, AnchorCompactProps, AnchorContainer, AnchorItemCompactProps, AnchorLinkProps, AnchorOptionData, AnchorRootEmits, AnchorRootProps, AnchorUi, AnchorUiSlot } from "./types.js";
|
|
2
2
|
import { _default } from "./anchor-compact.vue.js";
|
|
3
|
-
import { _default as _default$1 } from "./anchor-
|
|
4
|
-
import { _default as _default$2 } from "./anchor-
|
|
3
|
+
import { _default as _default$1 } from "./anchor-item-compact.vue.js";
|
|
4
|
+
import { _default as _default$2 } from "./anchor-link.vue.js";
|
|
5
|
+
import { _default as _default$3 } from "./anchor-root.vue.js";
|
|
5
6
|
import { provideAnchorUi } from "./context.js";
|
|
6
|
-
export { _default as AnchorCompact, type AnchorCompactEmits, type
|
|
7
|
+
export { _default as AnchorCompact, type AnchorCompactEmits, type AnchorCompactProps, type AnchorContainer, _default$1 as AnchorItemCompact, type AnchorItemCompactProps, _default$2 as AnchorLink, type AnchorLinkProps, type AnchorOptionData, _default$3 as AnchorRoot, type AnchorRootEmits, type AnchorRootProps, type AnchorUi, type AnchorUiSlot, provideAnchorUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{provideAnchorUi as e}from"./context.js";import t from"./anchor-link.js";import n from"./anchor-
|
|
1
|
+
import{provideAnchorUi as e}from"./context.js";import t from"./anchor-link.js";import n from"./anchor-item-compact.js";import r from"./anchor-root.js";import i from"./anchor-compact.js";export{i as AnchorCompact,n as AnchorItemCompact,t as AnchorLink,r as AnchorRoot,e as provideAnchorUi};
|
|
@@ -1,52 +1,164 @@
|
|
|
1
1
|
import { DataOrientation, Direction, UiClass } from "../../types/common.js";
|
|
2
2
|
import { PrimitiveProps } from "../primitive/types.js";
|
|
3
|
-
import {
|
|
3
|
+
import { LinkBaseProps } from "../link/types.js";
|
|
4
4
|
import { HTMLAttributes, ShallowRef } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/anchor/types.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Type information for the anchor container component.
|
|
9
|
+
*/
|
|
7
10
|
type AnchorContainer = HTMLElement | Window;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
11
|
+
/**
|
|
12
|
+
* Props for the anchor root component.
|
|
13
|
+
*/
|
|
12
14
|
interface AnchorRootProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
|
|
15
|
+
/**
|
|
16
|
+
* Bounds.
|
|
17
|
+
*/
|
|
13
18
|
bounds?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Reading direction of the component.
|
|
21
|
+
*/
|
|
14
22
|
dir?: Direction;
|
|
23
|
+
/**
|
|
24
|
+
* Get container.
|
|
25
|
+
*/
|
|
15
26
|
getContainer?: () => AnchorContainer | null;
|
|
27
|
+
/**
|
|
28
|
+
* Get current anchor.
|
|
29
|
+
*/
|
|
16
30
|
getCurrentAnchor?: (activeHref: string) => string;
|
|
31
|
+
/**
|
|
32
|
+
* Current model value.
|
|
33
|
+
*/
|
|
17
34
|
modelValue?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Offset top.
|
|
37
|
+
*/
|
|
18
38
|
offsetTop?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Orientation of the component.
|
|
41
|
+
*/
|
|
19
42
|
orientation?: DataOrientation;
|
|
43
|
+
/**
|
|
44
|
+
* Whether replace.
|
|
45
|
+
*/
|
|
20
46
|
replace?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Target offset.
|
|
49
|
+
*/
|
|
21
50
|
targetOffset?: number;
|
|
22
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Emits for the anchor root component.
|
|
54
|
+
*/
|
|
23
55
|
type AnchorRootEmits = {
|
|
56
|
+
/**
|
|
57
|
+
* Emitted when the model value changes.
|
|
58
|
+
*/
|
|
24
59
|
'update:modelValue': [value: string];
|
|
60
|
+
/**
|
|
61
|
+
* Emitted when active change occurs.
|
|
62
|
+
*/
|
|
25
63
|
activeChange: [value: string];
|
|
64
|
+
/**
|
|
65
|
+
* Emitted when item select occurs.
|
|
66
|
+
*/
|
|
26
67
|
itemSelect: [event: MouseEvent, payload: {
|
|
27
68
|
href: string;
|
|
28
69
|
}];
|
|
29
70
|
};
|
|
30
|
-
|
|
71
|
+
/**
|
|
72
|
+
* Props for the anchor link component.
|
|
73
|
+
*/
|
|
74
|
+
interface AnchorLinkProps extends PrimitiveProps, LinkBaseProps, /** @vue-ignore */HTMLAttributes {
|
|
75
|
+
/**
|
|
76
|
+
* Href.
|
|
77
|
+
*/
|
|
31
78
|
href: string;
|
|
79
|
+
/**
|
|
80
|
+
* Whether the component is disabled.
|
|
81
|
+
*/
|
|
82
|
+
disabled?: boolean;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Option data for the anchor component.
|
|
86
|
+
*/
|
|
87
|
+
interface AnchorOptionData extends Pick<AnchorLinkProps, 'disabled' | 'href' | 'target'> {
|
|
88
|
+
/**
|
|
89
|
+
* Nested child items.
|
|
90
|
+
*/
|
|
91
|
+
children?: AnchorOptionData[];
|
|
92
|
+
/**
|
|
93
|
+
* Title text rendered by the component.
|
|
94
|
+
*/
|
|
95
|
+
title?: string;
|
|
32
96
|
}
|
|
33
|
-
|
|
97
|
+
/**
|
|
98
|
+
* Props for the anchor item compact component.
|
|
99
|
+
*/
|
|
100
|
+
interface AnchorItemCompactProps extends /** @vue-ignore */HTMLAttributes {
|
|
101
|
+
/**
|
|
102
|
+
* Current model value.
|
|
103
|
+
*/
|
|
34
104
|
modelValue?: string;
|
|
35
|
-
|
|
105
|
+
/**
|
|
106
|
+
* Current item data.
|
|
107
|
+
*/
|
|
108
|
+
item: AnchorOptionData;
|
|
109
|
+
/**
|
|
110
|
+
* Props forwarded to the link element.
|
|
111
|
+
*/
|
|
36
112
|
linkProps?: AnchorLinkProps;
|
|
113
|
+
/**
|
|
114
|
+
* Props forwarded to the indicator element.
|
|
115
|
+
*/
|
|
37
116
|
indicatorProps?: HTMLAttributes;
|
|
117
|
+
/**
|
|
118
|
+
* Props forwarded to the title element.
|
|
119
|
+
*/
|
|
38
120
|
titleProps?: HTMLAttributes;
|
|
121
|
+
/**
|
|
122
|
+
* Props forwarded to the sub element.
|
|
123
|
+
*/
|
|
39
124
|
subProps?: HTMLAttributes;
|
|
40
125
|
}
|
|
126
|
+
/**
|
|
127
|
+
* Props for the anchor compact component.
|
|
128
|
+
*/
|
|
41
129
|
interface AnchorCompactProps extends AnchorRootProps {
|
|
42
|
-
|
|
130
|
+
/**
|
|
131
|
+
* Items rendered by the component.
|
|
132
|
+
*/
|
|
133
|
+
items: AnchorOptionData[];
|
|
134
|
+
/**
|
|
135
|
+
* Props forwarded to the link element.
|
|
136
|
+
*/
|
|
43
137
|
linkProps?: AnchorLinkProps;
|
|
138
|
+
/**
|
|
139
|
+
* Props forwarded to the indicator element.
|
|
140
|
+
*/
|
|
44
141
|
indicatorProps?: HTMLAttributes;
|
|
142
|
+
/**
|
|
143
|
+
* Props forwarded to the title element.
|
|
144
|
+
*/
|
|
45
145
|
titleProps?: HTMLAttributes;
|
|
146
|
+
/**
|
|
147
|
+
* Props forwarded to the sub element.
|
|
148
|
+
*/
|
|
46
149
|
subProps?: HTMLAttributes;
|
|
47
150
|
}
|
|
151
|
+
/**
|
|
152
|
+
* Emits for the anchor compact component.
|
|
153
|
+
*/
|
|
48
154
|
type AnchorCompactEmits = AnchorRootEmits;
|
|
155
|
+
/**
|
|
156
|
+
* Available UI slots for the anchor component.
|
|
157
|
+
*/
|
|
49
158
|
type AnchorUiSlot = 'root' | 'link' | 'sub' | 'item' | 'indicator' | 'title';
|
|
159
|
+
/**
|
|
160
|
+
* UI class overrides for the anchor component.
|
|
161
|
+
*/
|
|
50
162
|
type AnchorUi = UiClass<AnchorUiSlot>;
|
|
51
163
|
//#endregion
|
|
52
|
-
export { AnchorCompactEmits,
|
|
164
|
+
export { AnchorCompactEmits, AnchorCompactProps, AnchorContainer, AnchorItemCompactProps, AnchorLinkProps, AnchorOptionData, AnchorRootEmits, AnchorRootProps, AnchorUi, AnchorUiSlot };
|
|
@@ -2,6 +2,9 @@ import { PrimitiveProps } from "../primitive/types.js";
|
|
|
2
2
|
import { HTMLAttributes } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/aspect-ratio/types.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Props for the aspect ratio component.
|
|
7
|
+
*/
|
|
5
8
|
interface AspectRatioProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
|
|
6
9
|
/**
|
|
7
10
|
* The desired ratio. Eg: 16/9
|
|
@@ -6,15 +6,15 @@ declare const __VLS_export: <T extends AutocompleteSingleOptionData = Autocomple
|
|
|
6
6
|
props: _$vue.PublicProps & __VLS_PrettifyLocal<AutocompleteCompactProps<T> & {
|
|
7
7
|
onSelect?: ((item: T) => any) | undefined;
|
|
8
8
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
9
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
9
|
onHighlight?: ((payload?: AutocompleteHighlightPayload | undefined) => any) | undefined;
|
|
10
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
11
11
|
}> & (typeof globalThis extends {
|
|
12
12
|
__VLS_PROPS_FALLBACK: infer P;
|
|
13
13
|
} ? P : {});
|
|
14
14
|
expose: (exposed: {}) => void;
|
|
15
15
|
attrs: any;
|
|
16
16
|
slots: AutocompleteCompactSlots<T>;
|
|
17
|
-
emit: ((evt: "select", item: T) => void) & ((evt: "update:modelValue", value: string) => void) & ((evt: "
|
|
17
|
+
emit: ((evt: "select", item: T) => void) & ((evt: "update:modelValue", value: string) => void) & ((evt: "highlight", payload?: AutocompleteHighlightPayload | undefined) => void) & ((evt: "update:open", value: boolean) => void);
|
|
18
18
|
}>) => _$vue.VNode & {
|
|
19
19
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
20
20
|
};
|
|
@@ -20,17 +20,17 @@ declare const __VLS_base: _$vue.DefineComponent<AutocompleteRootProps, {
|
|
|
20
20
|
highlightSelected: (event?: Event) => Promise<void> | undefined;
|
|
21
21
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
22
22
|
"update:modelValue": (value: string) => any;
|
|
23
|
-
"update:open": (value: boolean) => any;
|
|
24
23
|
highlight: (payload?: AutocompleteHighlightPayload | undefined) => any;
|
|
24
|
+
"update:open": (value: boolean) => any;
|
|
25
25
|
}, string, _$vue.PublicProps, Readonly<AutocompleteRootProps> & Readonly<{
|
|
26
26
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
27
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
28
27
|
onHighlight?: ((payload?: AutocompleteHighlightPayload | undefined) => any) | undefined;
|
|
28
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
29
29
|
}>, {
|
|
30
30
|
modelValue: string;
|
|
31
|
+
highlightOnHover: boolean;
|
|
31
32
|
open: boolean;
|
|
32
33
|
defaultOpen: boolean;
|
|
33
|
-
highlightOnHover: boolean;
|
|
34
34
|
openOnFocus: boolean;
|
|
35
35
|
openOnClick: boolean;
|
|
36
36
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|