@aleph-alpha/ui-library 6.5.0 → 6.6.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/system/components/core/toggle/index.d.ts +1 -1
- package/dist/system/lib.js +14623 -14438
- package/dist/system/patterns/UiFloatActions/UiFloatActionItems.vue.d.ts +21 -174
- package/dist/system/patterns/UiFloatActions/core/FloatingButton.vue.d.ts +36 -0
- package/dist/system/patterns/UiFloatActions/core/FloatingInput.vue.d.ts +19 -0
- package/dist/system/patterns/UiFloatActions/floatActionItemContext.d.ts +3 -1
- package/dist/system/patterns/UiFloatActions/types.d.ts +93 -19
- package/dist/system/patterns/UiLayout/layout-shell.d.ts +117 -252
- package/package.json +2 -2
- package/src/components/UiAccordion/UiAccordion.stories.ts +8 -8
- package/src/components/UiAlert/UiAlert.stories.ts +13 -13
- package/src/components/UiAlertDialog/UiAlertDialog.stories.ts +4 -4
- package/src/components/UiAutocomplete/UiAutocomplete.stories.ts +13 -13
- package/src/components/UiAutocomplete/UiAutocomplete.vue +3 -3
- package/src/components/UiBadge/UiBadge.stories.ts +9 -9
- package/src/components/UiBreadcrumb/UiBreadcrumb.stories.ts +14 -14
- package/src/components/UiButton/UiButton.stories.ts +35 -35
- package/src/components/UiButtonGroup/UiButtonGroup.stories.ts +6 -6
- package/src/components/UiCalendar/UiCalendar.stories.ts +6 -6
- package/src/components/UiCard/UiCard.stories.ts +6 -6
- package/src/components/UiCheckbox/UiCheckbox.stories.ts +30 -30
- package/src/components/UiChip/UiChip.stories.ts +14 -14
- package/src/components/UiChip/UiChip.vue +1 -1
- package/src/components/UiDialog/UiDialog.stories.ts +20 -20
- package/src/components/UiDrawer/UiDrawer.stories.ts +29 -29
- package/src/components/UiDropdownMenu/UiDropdownMenu.stories.ts +13 -13
- package/src/components/UiEmpty/UiEmpty.vue +1 -1
- package/src/components/UiFadeMask/UiFadeMask.stories.ts +13 -13
- package/src/components/UiField/UiField.stories.ts +27 -27
- package/src/components/UiFileItem/UiFileItem.vue +4 -4
- package/src/components/UiFileItem/__tests__/UiFileItem.test.ts +2 -2
- package/src/components/UiFileType/UiFileType.stories.ts +10 -10
- package/src/components/UiFileUploadBox/UiFileUploadBox.stories.ts +10 -10
- package/src/components/UiFileUploadBox/UiFileUploadBox.vue +3 -3
- package/src/components/UiIcon/UiIcon.stories.ts +9 -9
- package/src/components/UiInput/UiInput.stories.ts +13 -13
- package/src/components/UiInput/UiInput.vue +1 -1
- package/src/components/UiInputGroup/UiInputGroup.stories.ts +10 -10
- package/src/components/UiItem/UiItem.stories.ts +12 -12
- package/src/components/UiItem/__tests__/UiItem.test.ts +2 -2
- package/src/components/UiKbd/UiKbd.stories.ts +18 -18
- package/src/components/UiKbd/UiKbd.vue +1 -1
- package/src/components/UiLabel/UiLabel.stories.ts +12 -12
- package/src/components/UiLabel/__tests__/UiLabel.test.ts +1 -1
- package/src/components/UiListbox/UiListbox.stories.ts +20 -20
- package/src/components/UiNavigationMenu/UiNavigationMenu.stories.ts +94 -94
- package/src/components/UiPopover/UiPopover.stories.ts +35 -35
- package/src/components/UiRadioGroup/UiRadioGroup.stories.ts +53 -53
- package/src/components/UiRangeCalendar/UiRangeCalendar.stories.ts +6 -6
- package/src/components/UiResizable/UiResizable.stories.ts +40 -40
- package/src/components/UiSelect/UiSelect.stories.ts +14 -14
- package/src/components/UiSeparator/UiSeparator.stories.ts +16 -16
- package/src/components/UiSheet/UiSheet.stories.ts +29 -29
- package/src/components/UiSlider/UiSlider.stories.ts +28 -28
- package/src/components/UiSnackbar/UiSnackbar.stories.ts +6 -6
- package/src/components/UiSnackbar/UiSnackbar.vue +2 -2
- package/src/components/UiSnackbar/UiSnackbarContent.vue +2 -2
- package/src/components/UiSpinner/UiSpinner.stories.ts +8 -8
- package/src/components/UiStepper/UiStepper.stories.ts +6 -6
- package/src/components/UiSwitch/UiSwitch.stories.ts +37 -37
- package/src/components/UiTable/UiTable.stories.ts +4 -4
- package/src/components/UiTabs/UiTabs.stories.ts +64 -64
- package/src/components/UiTagsInput/UiTagsInput.stories.ts +16 -16
- package/src/components/UiTextarea/UiTextarea.stories.ts +20 -20
- package/src/components/UiToggle/UiToggle.stories.ts +26 -26
- package/src/components/UiToggleGroup/UiToggleGroup.stories.ts +31 -31
- package/src/components/UiTooltip/UiTooltip.stories.ts +7 -7
- package/src/components/core/accordion/AccordionContent.vue +1 -1
- package/src/components/core/accordion/AccordionTrigger.vue +1 -1
- package/src/components/core/alert/AlertDescription.vue +1 -1
- package/src/components/core/alert/index.ts +1 -1
- package/src/components/core/alert-dialog/AlertDialogDescription.vue +1 -1
- package/src/components/core/badge/index.ts +2 -2
- package/src/components/core/button/index.ts +3 -3
- package/src/components/core/calendar/Calendar.vue +4 -4
- package/src/components/core/calendar/CalendarCell.vue +1 -1
- package/src/components/core/calendar/CalendarHeading.vue +1 -1
- package/src/components/core/card/CardDescription.vue +1 -1
- package/src/components/core/dialog/DialogDescription.vue +1 -1
- package/src/components/core/drawer/DrawerDescription.vue +1 -1
- package/src/components/core/dropdown-menu/DropdownMenuCheckboxItem.vue +1 -1
- package/src/components/core/dropdown-menu/DropdownMenuLabel.vue +1 -1
- package/src/components/core/dropdown-menu/DropdownMenuRadioItem.vue +1 -1
- package/src/components/core/dropdown-menu/DropdownMenuShortcut.vue +1 -1
- package/src/components/core/dropdown-menu/DropdownMenuSubTrigger.vue +1 -1
- package/src/components/core/field/FieldDescription.vue +1 -1
- package/src/components/core/field/FieldError.vue +1 -1
- package/src/components/core/field/FieldLabel.vue +1 -1
- package/src/components/core/field/FieldLegend.vue +2 -2
- package/src/components/core/field/FieldSeparator.vue +1 -1
- package/src/components/core/field/FieldTitle.vue +1 -1
- package/src/components/core/input/Input.vue +1 -1
- package/src/components/core/input-group/InputGroupText.vue +1 -1
- package/src/components/core/input-group/index.ts +1 -1
- package/src/components/core/item/ItemDescription.vue +1 -1
- package/src/components/core/item/ItemTitle.vue +1 -1
- package/src/components/core/item/index.ts +2 -2
- package/src/components/core/label/Label.vue +1 -1
- package/src/components/core/listbox/ListboxFilter.vue +1 -1
- package/src/components/core/listbox/ListboxGroupLabel.vue +1 -1
- package/src/components/core/listbox/ListboxItem.vue +1 -1
- package/src/components/core/native-select/NativeSelect.vue +1 -1
- package/src/components/core/navigation-menu/NavigationMenuLink.vue +1 -1
- package/src/components/core/navigation-menu/index.ts +1 -1
- package/src/components/core/range-calendar/RangeCalendarCell.vue +1 -1
- package/src/components/core/range-calendar/RangeCalendarHeading.vue +1 -1
- package/src/components/core/select/SelectItem.vue +1 -1
- package/src/components/core/select/SelectLabel.vue +1 -1
- package/src/components/core/select/SelectTrigger.vue +1 -1
- package/src/components/core/sheet/SheetDescription.vue +1 -1
- package/src/components/core/sidebar/SidebarGroupContent.vue +1 -1
- package/src/components/core/sidebar/SidebarGroupLabel.vue +1 -1
- package/src/components/core/sidebar/SidebarMenuBadge.vue +1 -1
- package/src/components/core/sidebar/SidebarMenuSubButton.vue +2 -2
- package/src/components/core/sidebar/index.ts +4 -4
- package/src/components/core/stepper/StepperDescription.vue +1 -1
- package/src/components/core/stepper/StepperTitle.vue +1 -1
- package/src/components/core/table/Table.vue +1 -1
- package/src/components/core/table/TableCaption.vue +1 -1
- package/src/components/core/table/TableEmpty.vue +1 -1
- package/src/components/core/tabs/TabsTrigger.vue +1 -1
- package/src/components/core/tags-input/TagsInput.vue +1 -1
- package/src/components/core/tags-input/TagsInputItem.vue +1 -1
- package/src/components/core/textarea/Textarea.vue +1 -1
- package/src/components/core/toggle/index.ts +1 -1
- package/src/components/core/tooltip/TooltipContent.vue +1 -1
- package/src/directives/vHover.stories.ts +17 -17
- package/src/lib/useDevice.stories.ts +29 -29
- package/src/lib/useDrag.stories.ts +14 -14
- package/src/patterns/UiDataTable/UiDataTable.stories.ts +27 -27
- package/src/patterns/UiDataTable/UiDataTableColumnFilter.vue +2 -2
- package/src/patterns/UiDataTable/UiDataTableFilterMenu.vue +2 -2
- package/src/patterns/UiDataTable/UiDataTablePagination.vue +3 -3
- package/src/patterns/UiDataTable/__tests__/UiDataTableColumnFilter.test.ts +2 -2
- package/src/patterns/UiDatePicker/UiDatePicker.stories.ts +14 -14
- package/src/patterns/UiFileUpload/UiFileItem.stories.ts +14 -14
- package/src/patterns/UiFileUpload/UiFileUpload.stories.ts +6 -6
- package/src/patterns/UiFloatActions/UiFloatActionItems.vue +226 -76
- package/src/patterns/UiFloatActions/UiFloatActions.stories.ts +1136 -116
- package/src/patterns/UiFloatActions/__tests__/UiFloatActionItems.test.ts +187 -1
- package/src/patterns/UiFloatActions/core/FloatingButton.vue +83 -0
- package/src/patterns/UiFloatActions/core/FloatingInput.vue +53 -0
- package/src/patterns/UiFloatActions/floatActionItemContext.ts +3 -1
- package/src/patterns/UiFloatActions/types.ts +106 -19
- package/src/patterns/UiLayout/UiLayoutContent.stories.ts +17 -17
- package/src/patterns/UiLayout/UiLayoutMobile.stories.ts +4 -4
- package/src/patterns/UiLayout/layout-shell.ts +6 -6
- package/src/patterns/UiProfileCard/UiProfileCard.stories.ts +8 -8
- package/src/patterns/UiProfileCard/profile-card.ts +2 -2
- package/src/patterns/UiSidebar/UiSidebar.stories.ts +6 -6
- package/src/patterns/UiSidebar/UiSidebarGroup.stories.ts +1 -1
- package/src/patterns/UiSidebar/UiSidebarGroupLabel.stories.ts +4 -4
- package/src/patterns/UiSidebar/UiSidebarGroupLabel.vue +1 -1
- package/src/patterns/UiSidebar/UiSidebarHeader.vue +1 -1
- package/src/patterns/UiSidebar/UiSidebarMenuButton.stories.ts +7 -7
- package/src/patterns/UiSidebar/UiSidebarMenuButton.vue +4 -4
- package/src/patterns/UiSidebar/UiSidebarMenuItem.stories.ts +4 -4
- package/src/patterns/UiSidebar/UiSidebarMenuSubItem.stories.ts +1 -1
- package/src/patterns/UiSidebar/UiSidebarMenuSubItem.vue +1 -1
- package/src/patterns/UiSidebar/UiSidebarPopoverMenu.vue +1 -1
- package/src/patterns/UiSidebar/UiSidebarPopoverMenuItem.vue +3 -3
- package/src/patterns/UiSidebar/UiSidebarPopoverTrigger.stories.ts +1 -1
- package/src/patterns/UiSidebar/UiSidebarPopoverTrigger.vue +1 -1
- package/src/patterns/UiSidebar/UiSidebarSub.stories.ts +1 -1
- package/src/patterns/UiTopBar/UiTopBar.stories.ts +24 -24
- package/src/theme/Background.stories.ts +62 -62
- package/src/theme/Border.stories.ts +19 -19
- package/src/theme/BorderRadius.stories.ts +14 -14
- package/src/theme/Extended.stories.ts +26 -26
- package/src/theme/Flex.stories.ts +21 -21
- package/src/theme/Grid.stories.ts +19 -19
- package/src/theme/HoverLayer.stories.ts +26 -26
- package/src/theme/Overlay.stories.ts +14 -14
- package/src/theme/Scrollbar.stories.ts +58 -58
- package/src/theme/Shadow.stories.ts +5 -5
- package/src/theme/Theme.stories.ts +38 -38
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { UiFloatActionItemsProps } from './types';
|
|
1
|
+
import { UiFloatActionItemsProps, UiFloatActionItemsValue } from './types';
|
|
3
2
|
declare function __VLS_template(): {
|
|
4
3
|
attrs: Partial<{}>;
|
|
5
4
|
slots: {
|
|
@@ -7,195 +6,43 @@ declare function __VLS_template(): {
|
|
|
7
6
|
default?(_: {}): any;
|
|
8
7
|
default?(_: {}): any;
|
|
9
8
|
default?(_: {}): any;
|
|
9
|
+
default?(_: {}): any;
|
|
10
10
|
};
|
|
11
11
|
refs: {
|
|
12
|
-
itemRef:
|
|
13
|
-
$: import('vue').ComponentInternalInstance;
|
|
14
|
-
$data: {};
|
|
15
|
-
$props: {
|
|
16
|
-
readonly modelValue?: string | undefined;
|
|
17
|
-
readonly name: string;
|
|
18
|
-
readonly type?: import('../..').UiInputType | undefined;
|
|
19
|
-
readonly disabled?: boolean | undefined;
|
|
20
|
-
readonly placeholder?: string | undefined;
|
|
21
|
-
readonly required?: boolean | undefined;
|
|
22
|
-
readonly accept?: string | undefined;
|
|
23
|
-
readonly multiple?: boolean | undefined;
|
|
24
|
-
readonly uploadButtonLabel?: string | undefined;
|
|
25
|
-
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
26
|
-
readonly "onUpdate:files"?: ((files: File[]) => any) | undefined;
|
|
27
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
28
|
-
$attrs: {
|
|
29
|
-
[x: string]: unknown;
|
|
30
|
-
};
|
|
31
|
-
$refs: {
|
|
32
|
-
[x: string]: unknown;
|
|
33
|
-
};
|
|
34
|
-
$slots: Readonly<{
|
|
35
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
36
|
-
}>;
|
|
37
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
38
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
39
|
-
$host: Element | null;
|
|
40
|
-
$emit: ((event: "update:modelValue", value: string) => void) & ((event: "update:files", files: File[]) => void);
|
|
41
|
-
$el: any;
|
|
42
|
-
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
43
|
-
modelValue?: string;
|
|
44
|
-
} & import('../..').UiInputProps> & Readonly<{
|
|
45
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
46
|
-
"onUpdate:files"?: ((files: File[]) => any) | undefined;
|
|
47
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
48
|
-
"update:modelValue": (value: string) => any;
|
|
49
|
-
"update:files": (files: File[]) => any;
|
|
50
|
-
}, string, {
|
|
51
|
-
disabled: boolean;
|
|
52
|
-
type: import('../..').UiInputType;
|
|
53
|
-
multiple: boolean;
|
|
54
|
-
placeholder: string;
|
|
55
|
-
required: boolean;
|
|
56
|
-
accept: string;
|
|
57
|
-
uploadButtonLabel: string;
|
|
58
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
59
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
60
|
-
created?: (() => void) | (() => void)[];
|
|
61
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
62
|
-
mounted?: (() => void) | (() => void)[];
|
|
63
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
64
|
-
updated?: (() => void) | (() => void)[];
|
|
65
|
-
activated?: (() => void) | (() => void)[];
|
|
66
|
-
deactivated?: (() => void) | (() => void)[];
|
|
67
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
68
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
69
|
-
destroyed?: (() => void) | (() => void)[];
|
|
70
|
-
unmounted?: (() => void) | (() => void)[];
|
|
71
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
72
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
73
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
74
|
-
};
|
|
75
|
-
$forceUpdate: () => void;
|
|
76
|
-
$nextTick: typeof nextTick;
|
|
77
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
78
|
-
} & Readonly<{
|
|
79
|
-
disabled: boolean;
|
|
80
|
-
type: import('../..').UiInputType;
|
|
81
|
-
multiple: boolean;
|
|
82
|
-
placeholder: string;
|
|
83
|
-
required: boolean;
|
|
84
|
-
accept: string;
|
|
85
|
-
uploadButtonLabel: string;
|
|
86
|
-
}> & Omit<Readonly<{
|
|
87
|
-
modelValue?: string;
|
|
88
|
-
} & import('../..').UiInputProps> & Readonly<{
|
|
89
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
90
|
-
"onUpdate:files"?: ((files: File[]) => any) | undefined;
|
|
91
|
-
}>, "disabled" | "type" | "multiple" | "placeholder" | "required" | "accept" | "uploadButtonLabel"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
92
|
-
$slots: {
|
|
93
|
-
end?(_: {}): any;
|
|
94
|
-
};
|
|
95
|
-
}) | null;
|
|
12
|
+
itemRef: HTMLDivElement;
|
|
96
13
|
};
|
|
97
14
|
rootEl: any;
|
|
98
15
|
};
|
|
99
16
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
100
17
|
declare const __VLS_component: import('vue').DefineComponent<UiFloatActionItemsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
101
|
-
"update:modelValue": (value:
|
|
18
|
+
"update:modelValue": (value: UiFloatActionItemsValue) => any;
|
|
102
19
|
click: (event: MouseEvent) => any;
|
|
20
|
+
next: (event: MouseEvent) => any;
|
|
21
|
+
previous: (event: MouseEvent) => any;
|
|
103
22
|
}, string, import('vue').PublicProps, Readonly<UiFloatActionItemsProps> & Readonly<{
|
|
104
|
-
"onUpdate:modelValue"?: ((value:
|
|
23
|
+
"onUpdate:modelValue"?: ((value: UiFloatActionItemsValue) => any) | undefined;
|
|
105
24
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
25
|
+
onNext?: ((event: MouseEvent) => any) | undefined;
|
|
26
|
+
onPrevious?: ((event: MouseEvent) => any) | undefined;
|
|
106
27
|
}>, {
|
|
107
28
|
disabled: boolean;
|
|
108
29
|
orientation: import('./types').UiFloatActionItemsOrientation;
|
|
109
30
|
type: import('./types').UiFloatActionItemsType;
|
|
110
|
-
modelValue:
|
|
31
|
+
modelValue: UiFloatActionItemsValue;
|
|
32
|
+
size: import('./types').UiFloatActionItemsSize;
|
|
111
33
|
placeholder: string;
|
|
112
|
-
value:
|
|
34
|
+
value: UiFloatActionItemsValue;
|
|
113
35
|
ariaLabel: string;
|
|
36
|
+
icon: import('./types').UiFloatActionItemsIcon;
|
|
37
|
+
prefixIcon: import('./types').UiFloatActionItemsIcon;
|
|
38
|
+
suffixIcon: import('./types').UiFloatActionItemsIcon;
|
|
39
|
+
previousIcon: import('./types').UiFloatActionItemsIcon;
|
|
40
|
+
nextIcon: import('./types').UiFloatActionItemsIcon;
|
|
41
|
+
previousAriaLabel: string;
|
|
42
|
+
nextAriaLabel: string;
|
|
43
|
+
groupClass: import('vue').HTMLAttributes["class"];
|
|
114
44
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
115
|
-
itemRef:
|
|
116
|
-
$: import('vue').ComponentInternalInstance;
|
|
117
|
-
$data: {};
|
|
118
|
-
$props: {
|
|
119
|
-
readonly modelValue?: string | undefined;
|
|
120
|
-
readonly name: string;
|
|
121
|
-
readonly type?: import('../..').UiInputType | undefined;
|
|
122
|
-
readonly disabled?: boolean | undefined;
|
|
123
|
-
readonly placeholder?: string | undefined;
|
|
124
|
-
readonly required?: boolean | undefined;
|
|
125
|
-
readonly accept?: string | undefined;
|
|
126
|
-
readonly multiple?: boolean | undefined;
|
|
127
|
-
readonly uploadButtonLabel?: string | undefined;
|
|
128
|
-
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
129
|
-
readonly "onUpdate:files"?: ((files: File[]) => any) | undefined;
|
|
130
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
131
|
-
$attrs: {
|
|
132
|
-
[x: string]: unknown;
|
|
133
|
-
};
|
|
134
|
-
$refs: {
|
|
135
|
-
[x: string]: unknown;
|
|
136
|
-
};
|
|
137
|
-
$slots: Readonly<{
|
|
138
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
139
|
-
}>;
|
|
140
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
141
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
142
|
-
$host: Element | null;
|
|
143
|
-
$emit: ((event: "update:modelValue", value: string) => void) & ((event: "update:files", files: File[]) => void);
|
|
144
|
-
$el: any;
|
|
145
|
-
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
146
|
-
modelValue?: string;
|
|
147
|
-
} & import('../..').UiInputProps> & Readonly<{
|
|
148
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
149
|
-
"onUpdate:files"?: ((files: File[]) => any) | undefined;
|
|
150
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
151
|
-
"update:modelValue": (value: string) => any;
|
|
152
|
-
"update:files": (files: File[]) => any;
|
|
153
|
-
}, string, {
|
|
154
|
-
disabled: boolean;
|
|
155
|
-
type: import('../..').UiInputType;
|
|
156
|
-
multiple: boolean;
|
|
157
|
-
placeholder: string;
|
|
158
|
-
required: boolean;
|
|
159
|
-
accept: string;
|
|
160
|
-
uploadButtonLabel: string;
|
|
161
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
162
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
163
|
-
created?: (() => void) | (() => void)[];
|
|
164
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
165
|
-
mounted?: (() => void) | (() => void)[];
|
|
166
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
167
|
-
updated?: (() => void) | (() => void)[];
|
|
168
|
-
activated?: (() => void) | (() => void)[];
|
|
169
|
-
deactivated?: (() => void) | (() => void)[];
|
|
170
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
171
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
172
|
-
destroyed?: (() => void) | (() => void)[];
|
|
173
|
-
unmounted?: (() => void) | (() => void)[];
|
|
174
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
175
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
176
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
177
|
-
};
|
|
178
|
-
$forceUpdate: () => void;
|
|
179
|
-
$nextTick: typeof nextTick;
|
|
180
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
181
|
-
} & Readonly<{
|
|
182
|
-
disabled: boolean;
|
|
183
|
-
type: import('../..').UiInputType;
|
|
184
|
-
multiple: boolean;
|
|
185
|
-
placeholder: string;
|
|
186
|
-
required: boolean;
|
|
187
|
-
accept: string;
|
|
188
|
-
uploadButtonLabel: string;
|
|
189
|
-
}> & Omit<Readonly<{
|
|
190
|
-
modelValue?: string;
|
|
191
|
-
} & import('../..').UiInputProps> & Readonly<{
|
|
192
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
193
|
-
"onUpdate:files"?: ((files: File[]) => any) | undefined;
|
|
194
|
-
}>, "disabled" | "type" | "multiple" | "placeholder" | "required" | "accept" | "uploadButtonLabel"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
195
|
-
$slots: {
|
|
196
|
-
end?(_: {}): any;
|
|
197
|
-
};
|
|
198
|
-
}) | null;
|
|
45
|
+
itemRef: HTMLDivElement;
|
|
199
46
|
}, any>;
|
|
200
47
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
201
48
|
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { UiFloatActionItemsIcon, UiFloatActionItemsSize } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** Control size. */
|
|
4
|
+
size?: UiFloatActionItemsSize;
|
|
5
|
+
/** Visible text. The default slot takes precedence. */
|
|
6
|
+
text?: string;
|
|
7
|
+
/** Icon rendered before the text. */
|
|
8
|
+
prefixIcon?: UiFloatActionItemsIcon;
|
|
9
|
+
/** Icon rendered after the text. */
|
|
10
|
+
suffixIcon?: UiFloatActionItemsIcon;
|
|
11
|
+
/** Renders an icon-only button with this icon. */
|
|
12
|
+
icon?: UiFloatActionItemsIcon;
|
|
13
|
+
};
|
|
14
|
+
declare function __VLS_template(): {
|
|
15
|
+
attrs: Partial<{}>;
|
|
16
|
+
slots: {
|
|
17
|
+
default?(_: {}): any;
|
|
18
|
+
};
|
|
19
|
+
refs: {};
|
|
20
|
+
rootEl: any;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
24
|
+
size: UiFloatActionItemsSize;
|
|
25
|
+
text: string;
|
|
26
|
+
icon: UiFloatActionItemsIcon;
|
|
27
|
+
prefixIcon: UiFloatActionItemsIcon;
|
|
28
|
+
suffixIcon: UiFloatActionItemsIcon;
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
30
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UiFloatActionItemsSize, UiFloatActionItemsValue } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** Field size. */
|
|
4
|
+
size?: UiFloatActionItemsSize;
|
|
5
|
+
/** Accessible name of the field. */
|
|
6
|
+
ariaLabel?: string;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_PublicProps = {
|
|
9
|
+
modelValue?: UiFloatActionItemsValue;
|
|
10
|
+
} & __VLS_Props;
|
|
11
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: UiFloatActionItemsValue) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((value: UiFloatActionItemsValue) => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
size: UiFloatActionItemsSize;
|
|
17
|
+
ariaLabel: string;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InjectionKey, Ref } from 'vue';
|
|
2
|
-
import { UiFloatActionItemsValue } from './types';
|
|
2
|
+
import { UiFloatActionItemsSize, UiFloatActionItemsValue } from './types';
|
|
3
3
|
/** Metadata a child item shares with the toolbar when it registers. */
|
|
4
4
|
export interface FloatActionItemRegistration {
|
|
5
5
|
/** Live getter for the item's root element (used to position the indicator). */
|
|
@@ -19,6 +19,8 @@ export interface FloatActionItemContext {
|
|
|
19
19
|
getTabIndex: (id: symbol) => number;
|
|
20
20
|
/** Keyboard navigation direction for the toolbar. */
|
|
21
21
|
orientation: Ref<'horizontal' | 'vertical'>;
|
|
22
|
+
/** Toolbar size, inherited by items that don't set their own. */
|
|
23
|
+
size: Ref<UiFloatActionItemsSize | undefined>;
|
|
22
24
|
/** Whether the toolbar is a `v-model`-driven single-select control. */
|
|
23
25
|
hasModel: Ref<boolean>;
|
|
24
26
|
/** Currently selected value when the toolbar is `v-model`-driven. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Placement } from '@floating-ui/vue';
|
|
2
|
-
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { Component, HTMLAttributes } from 'vue';
|
|
3
3
|
import { AnchorFloatOffset, AnchorFloatTrigger } from '../../lib/useAnchorFloat';
|
|
4
4
|
export type UiFloatActionsTrigger = AnchorFloatTrigger;
|
|
5
5
|
export type UiFloatActionsPlacement = Placement;
|
|
@@ -77,21 +77,43 @@ export interface UiFloatActionsProps {
|
|
|
77
77
|
*/
|
|
78
78
|
ariaLabel?: string;
|
|
79
79
|
}
|
|
80
|
-
/**
|
|
81
|
-
|
|
80
|
+
/**
|
|
81
|
+
* Item role within a {@link UiFloatActionItems} toolbar.
|
|
82
|
+
*
|
|
83
|
+
* Predefined types follow the Figma "Floating Action" spec and ship their own
|
|
84
|
+
* desktop and mobile styles:
|
|
85
|
+
* - `label` — text with optional prefix / suffix icons
|
|
86
|
+
* - `icon` — icon-only action
|
|
87
|
+
* - `input` — previous button, centered field, next button
|
|
88
|
+
*
|
|
89
|
+
* Composition types let you build any layout yourself:
|
|
90
|
+
* `button`, `text`, `group`, and `separator`.
|
|
91
|
+
*/
|
|
92
|
+
export type UiFloatActionItemsType = 'toolbar' | 'label' | 'icon' | 'input' | 'button' | 'text' | 'group' | 'separator';
|
|
82
93
|
/** Arrow-key navigation direction for toolbar roving focus. */
|
|
83
94
|
export type UiFloatActionItemsOrientation = 'horizontal' | 'vertical';
|
|
84
|
-
/**
|
|
95
|
+
/**
|
|
96
|
+
* Size of floating action items.
|
|
97
|
+
* - `md` — 36px controls (28px on mobile)
|
|
98
|
+
* - `xs` — 24px controls
|
|
99
|
+
*/
|
|
100
|
+
export type UiFloatActionItemsSize = 'xs' | 'md';
|
|
101
|
+
/** Icon accepted by predefined items: a Lucide icon name or a brand icon component. */
|
|
102
|
+
export type UiFloatActionItemsIcon = string | Component;
|
|
103
|
+
/** Value identifying a selectable item, or the text of an `input` item. */
|
|
85
104
|
export type UiFloatActionItemsValue = string | number;
|
|
86
105
|
/**
|
|
87
106
|
* Pill-shaped floating toolbar and its action items.
|
|
88
107
|
*
|
|
89
|
-
* Use the root item (`type="toolbar"`) as the container and nest child items
|
|
90
|
-
*
|
|
91
|
-
*
|
|
108
|
+
* Use the root item (`type="toolbar"`) as the container and nest child items.
|
|
109
|
+
* Pick a predefined type (`label`, `icon`, `input`) to get the design-system
|
|
110
|
+
* look with desktop and mobile styles out of the box, or compose your own
|
|
111
|
+
* layout with `button`, `text`, `group`, and `separator`. Both approaches can
|
|
112
|
+
* be mixed in one toolbar. Implements the WAI-ARIA APG toolbar pattern with
|
|
113
|
+
* roving tabindex.
|
|
92
114
|
* @category Overlays
|
|
93
115
|
* @useCases contextual toolbar, inline actions, pagination controls, filter bar
|
|
94
|
-
* @keywords float, toolbar, pill, actions, keyboard, roving focus
|
|
116
|
+
* @keywords float, toolbar, pill, actions, keyboard, roving focus, label, icon, input
|
|
95
117
|
* @related UiFloatActions, useAnchorFloat
|
|
96
118
|
*/
|
|
97
119
|
export interface UiFloatActionItemsProps {
|
|
@@ -102,12 +124,56 @@ export interface UiFloatActionItemsProps {
|
|
|
102
124
|
*/
|
|
103
125
|
type?: UiFloatActionItemsType;
|
|
104
126
|
/**
|
|
105
|
-
*
|
|
127
|
+
* Item size. Set it on the `toolbar` to size every nested item at once;
|
|
128
|
+
* a size on an individual item overrides the toolbar.
|
|
129
|
+
* @default 'md'
|
|
130
|
+
*/
|
|
131
|
+
size?: UiFloatActionItemsSize;
|
|
132
|
+
/**
|
|
133
|
+
* Icon for `icon` items. Rendered at 20px (`md`) or 16px (`xs`).
|
|
134
|
+
*/
|
|
135
|
+
icon?: UiFloatActionItemsIcon;
|
|
136
|
+
/**
|
|
137
|
+
* Icon rendered before the text of a `label` item (16px).
|
|
138
|
+
*/
|
|
139
|
+
prefixIcon?: UiFloatActionItemsIcon;
|
|
140
|
+
/**
|
|
141
|
+
* Icon rendered after the text of a `label` item (16px).
|
|
142
|
+
*/
|
|
143
|
+
suffixIcon?: UiFloatActionItemsIcon;
|
|
144
|
+
/**
|
|
145
|
+
* Icon of the previous button in an `input` item.
|
|
146
|
+
* Defaults to `chevron-left`, or `chevron-up` in a vertical toolbar.
|
|
147
|
+
*/
|
|
148
|
+
previousIcon?: UiFloatActionItemsIcon;
|
|
149
|
+
/**
|
|
150
|
+
* Icon of the next button in an `input` item.
|
|
151
|
+
* Defaults to `chevron-right`, or `chevron-down` in a vertical toolbar.
|
|
152
|
+
*/
|
|
153
|
+
nextIcon?: UiFloatActionItemsIcon;
|
|
154
|
+
/**
|
|
155
|
+
* Accessible label of the previous button in an `input` item.
|
|
156
|
+
* @default 'Previous'
|
|
157
|
+
*/
|
|
158
|
+
previousAriaLabel?: string;
|
|
159
|
+
/**
|
|
160
|
+
* Accessible label of the next button in an `input` item.
|
|
161
|
+
* @default 'Next'
|
|
162
|
+
*/
|
|
163
|
+
nextAriaLabel?: string;
|
|
164
|
+
/**
|
|
165
|
+
* Classes for the previous / field / next wrapper of an `input` item.
|
|
166
|
+
* `class` on an `input` item styles the text field itself.
|
|
167
|
+
*/
|
|
168
|
+
groupClass?: HTMLAttributes['class'];
|
|
169
|
+
/**
|
|
170
|
+
* Disables interaction for `button`, `label`, `icon`, and `input` items.
|
|
106
171
|
* @default false
|
|
107
172
|
*/
|
|
108
173
|
disabled?: boolean;
|
|
109
174
|
/**
|
|
110
|
-
* Accessible label for `toolbar`, `button`, and `input` items
|
|
175
|
+
* Accessible label for `toolbar`, `button`, `icon`, and `input` items
|
|
176
|
+
* (for `input` it names the text field).
|
|
111
177
|
* **Required** for those types — icon-only buttons have no visible text.
|
|
112
178
|
*/
|
|
113
179
|
ariaLabel?: string;
|
|
@@ -121,21 +187,22 @@ export interface UiFloatActionItemsProps {
|
|
|
121
187
|
*/
|
|
122
188
|
placeholder?: string;
|
|
123
189
|
/**
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
190
|
+
* - On a `toolbar`: the selected item value. Use `v-model` to turn the
|
|
191
|
+
* toolbar into a single-select control: the active `button`, `label`, or
|
|
192
|
+
* `icon` item (the one whose `value` matches) gets a sliding background
|
|
193
|
+
* indicator. Omit for a plain, stateless action bar.
|
|
194
|
+
* - On an `input` item: the text of the field (`v-model`).
|
|
128
195
|
* @example
|
|
129
196
|
* ```vue
|
|
130
197
|
* <UiFloatActionItems v-model="view" aria-label="View">
|
|
131
|
-
* <UiFloatActionItems type="
|
|
132
|
-
* <UiFloatActionItems type="
|
|
198
|
+
* <UiFloatActionItems type="icon" icon="grid" value="grid" aria-label="Grid" />
|
|
199
|
+
* <UiFloatActionItems type="icon" icon="list" value="list" aria-label="List" />
|
|
133
200
|
* </UiFloatActionItems>
|
|
134
201
|
* ```
|
|
135
202
|
*/
|
|
136
203
|
modelValue?: UiFloatActionItemsValue;
|
|
137
204
|
/**
|
|
138
|
-
* Value of a selectable `button` item.
|
|
205
|
+
* Value of a selectable `button`, `label`, or `icon` item.
|
|
139
206
|
* When the parent toolbar uses `v-model`, clicking this item selects its
|
|
140
207
|
* `value` and moves the active indicator onto it.
|
|
141
208
|
*/
|
|
@@ -143,9 +210,16 @@ export interface UiFloatActionItemsProps {
|
|
|
143
210
|
}
|
|
144
211
|
/** Events emitted by {@link UiFloatActionItems}. */
|
|
145
212
|
export interface UiFloatActionItemsEmits {
|
|
146
|
-
/** Emitted when a `button` item is activated. */
|
|
213
|
+
/** Emitted when a `button`, `label`, or `icon` item is activated. */
|
|
147
214
|
click: [event: MouseEvent];
|
|
148
|
-
/** Emitted
|
|
215
|
+
/** Emitted when the previous button of an `input` item is activated. */
|
|
216
|
+
previous: [event: MouseEvent];
|
|
217
|
+
/** Emitted when the next button of an `input` item is activated. */
|
|
218
|
+
next: [event: MouseEvent];
|
|
219
|
+
/**
|
|
220
|
+
* Emitted by a `toolbar` with `v-model` when the selected value changes, or
|
|
221
|
+
* by an `input` item when its text changes.
|
|
222
|
+
*/
|
|
149
223
|
'update:modelValue': [value: UiFloatActionItemsValue];
|
|
150
224
|
}
|
|
151
225
|
export type UiFloatActionItemsClass = HTMLAttributes['class'];
|