@aleph-alpha/ui-library 5.3.1 → 5.5.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/config.d.ts +38 -3
- package/config.js +103 -6
- package/dist/system/lib.js +8926 -8768
- package/dist/system/patterns/UiDataTable/UiDataTableFilterMenu.vue.d.ts +24 -0
- package/dist/system/patterns/UiDataTable/constants.d.ts +10 -0
- package/dist/system/patterns/UiDataTable/index.d.ts +1 -0
- package/dist/system/patterns/UiDataTable/types.d.ts +23 -1
- package/dist/system/patterns/UiFloatActions/UiFloatActionItems.vue.d.ts +173 -2
- package/dist/system/patterns/UiFloatActions/floatActionItemContext.d.ts +15 -1
- package/dist/system/patterns/UiFloatActions/types.d.ts +25 -1
- package/dist/system/story-sidebar-icons.json +5 -1
- package/docs/public-docs/getting-started-designers.md +3 -1
- package/package.json +5 -3
- package/src/components/UiAutocomplete/UiAutocomplete.stories.ts +2 -1
- package/src/components/UiAutocomplete/UiAutocomplete.vue +5 -5
- package/src/components/UiButton/UiButton.stories.ts +14 -14
- package/src/components/UiCheckbox/UiCheckbox.stories.ts +260 -9
- package/src/components/UiCheckbox/__tests__/UiCheckbox.test.ts +3 -18
- package/src/components/UiChip/UiChip.vue +1 -1
- package/src/components/UiDrawer/UiDrawer.stories.ts +2 -2
- package/src/components/UiDropdownMenu/UiDropdownMenu.stories.ts +4 -4
- package/src/components/UiEmpty/UiEmpty.vue +2 -2
- package/src/components/UiField/UiField.stories.ts +610 -3
- package/src/components/UiField/UiFieldDescription.vue +7 -2
- package/src/components/UiField/UiFieldLabelInfo.vue +1 -1
- package/src/components/UiFileUploadBox/UiFileUploadBox.stories.ts +2 -2
- package/src/components/UiFileUploadBox/UiFileUploadBox.vue +2 -2
- package/src/components/UiInput/UiInput.stories.ts +336 -2
- package/src/components/UiInput/UiInput.vue +3 -3
- package/src/components/UiInput/__tests__/UiInput.test.ts +20 -28
- package/src/components/UiItem/UiItem.stories.ts +236 -1
- package/src/components/UiItem/__tests__/UiItem.test.ts +11 -72
- package/src/components/UiKbd/UiKbd.stories.ts +14 -14
- package/src/components/UiNavigationMenu/UiNavigationMenu.stories.ts +42 -42
- package/src/components/UiPopover/UiPopover.stories.ts +6 -6
- package/src/components/UiRadioGroup/UiRadioGroup.stories.ts +2 -2
- package/src/components/UiResizable/UiResizable.stories.ts +6 -5
- package/src/components/UiSeparator/UiSeparator.stories.ts +6 -6
- package/src/components/UiSheet/UiSheet.stories.ts +2 -2
- package/src/components/UiSlider/UiSlider.stories.ts +8 -8
- package/src/components/UiSnackbar/UiSnackbar.stories.ts +6 -6
- package/src/components/UiSnackbar/UiSnackbar.vue +4 -4
- package/src/components/UiSnackbar/UiSnackbarContent.vue +4 -4
- package/src/components/UiSpinner/UiSpinner.stories.ts +8 -8
- package/src/components/UiSwitch/UiSwitch.stories.ts +2 -2
- package/src/components/UiTabs/UiTabs.stories.ts +30 -30
- package/src/components/UiToggle/__tests__/UiToggle.test.ts +5 -3
- package/src/components/UiToggleGroup/UiToggleGroup.stories.ts +9 -9
- package/src/components/UiTooltip/UiTooltip.stories.ts +3 -3
- package/src/components/core/accordion/AccordionTrigger.vue +2 -2
- package/src/components/core/alert/AlertDescription.vue +1 -1
- package/src/components/core/badge/index.ts +1 -1
- package/src/components/core/button/index.ts +2 -2
- package/src/components/core/calendar/CalendarCellTrigger.vue +2 -2
- package/src/components/core/calendar/CalendarHeadCell.vue +1 -1
- package/src/components/core/card/CardDescription.vue +1 -1
- package/src/components/core/checkbox/Checkbox.vue +1 -2
- package/src/components/core/drawer/DrawerDescription.vue +1 -1
- package/src/components/core/dropdown-menu/DropdownMenuItem.vue +1 -1
- package/src/components/core/dropdown-menu/DropdownMenuShortcut.vue +1 -1
- package/src/components/core/field/FieldDescription.vue +1 -1
- package/src/components/core/field/FieldLabel.vue +1 -1
- package/src/components/core/field/FieldSeparator.vue +1 -1
- package/src/components/core/input/Input.vue +2 -2
- package/src/components/core/item/index.ts +1 -1
- package/src/components/core/kbd/Kbd.vue +1 -1
- package/src/components/core/listbox/ListboxFilter.vue +1 -1
- package/src/components/core/listbox/ListboxGroupLabel.vue +4 -1
- package/src/components/core/listbox/ListboxItem.vue +1 -1
- package/src/components/core/native-select/NativeSelect.vue +3 -3
- package/src/components/core/navigation-menu/NavigationMenuLink.vue +1 -1
- package/src/components/core/navigation-menu/index.ts +1 -1
- package/src/components/core/radio-group/RadioGroupItem.vue +1 -1
- package/src/components/core/range-calendar/RangeCalendarCellTrigger.vue +2 -2
- package/src/components/core/range-calendar/RangeCalendarHeadCell.vue +1 -1
- package/src/components/core/select/SelectItem.vue +1 -1
- package/src/components/core/select/SelectLabel.vue +4 -1
- package/src/components/core/select/SelectTrigger.vue +1 -1
- package/src/components/core/sheet/SheetDescription.vue +3 -1
- package/src/components/core/switch/Switch.vue +1 -1
- package/src/components/core/table/TableCaption.vue +3 -1
- package/src/components/core/tabs/TabsList.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/TagsInputInput.vue +1 -1
- package/src/components/core/tags-input/TagsInputItemDelete.vue +1 -1
- package/src/components/core/textarea/Textarea.vue +1 -1
- package/src/components/core/toggle/index.ts +3 -3
- package/src/components/core/toggle-group/index.ts +2 -2
- package/src/lib/useDrag.stories.ts +8 -8
- package/src/patterns/UiDataTable/UiDataTable.stories.ts +913 -16
- package/src/patterns/UiDataTable/UiDataTableColumnFilter.vue +1 -1
- package/src/patterns/UiDataTable/UiDataTableFilterMenu.vue +91 -0
- package/src/patterns/UiDataTable/UiDataTablePagination.vue +1 -1
- package/src/patterns/UiDataTable/__tests__/UiDataTable.test.ts +7 -184
- package/src/patterns/UiDataTable/constants.ts +12 -0
- package/src/patterns/UiDataTable/index.ts +1 -0
- package/src/patterns/UiDataTable/types.ts +24 -0
- package/src/patterns/UiDatePicker/UiDatePicker.stories.ts +4 -4
- package/src/patterns/UiDatePicker/UiDatePicker.vue +1 -1
- package/src/patterns/UiFloatActions/UiFloatActionItems.vue +140 -12
- package/src/patterns/UiFloatActions/UiFloatActions.stories.ts +1231 -438
- package/src/patterns/UiFloatActions/UiFloatActions.vue +1 -1
- package/src/patterns/UiFloatActions/__tests__/UiFloatActionItems.test.ts +46 -24
- package/src/patterns/UiFloatActions/floatActionItemContext.ts +16 -1
- package/src/patterns/UiFloatActions/types.ts +28 -1
- package/src/patterns/UiSidebar/UiSidebarMenuButton.stories.ts +2 -2
- package/src/components/UiField/__tests__/UiFieldError.test.ts +0 -39
- package/src/patterns/UiFloatActions/__tests__/UiFloatActions.a11y.test.ts +0 -152
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UiDataTableFilterMenuProps } from './types';
|
|
2
|
+
declare const _default: <TData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
|
+
readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
5
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:open"> & ({
|
|
6
|
+
open?: boolean;
|
|
7
|
+
} & UiDataTableFilterMenuProps<TData>) & Partial<{}>> & import('vue').PublicProps;
|
|
8
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
9
|
+
attrs: any;
|
|
10
|
+
slots: Readonly<{
|
|
11
|
+
/** Filter controls, usually a form with inputs and checkbox groups. */
|
|
12
|
+
default(): unknown;
|
|
13
|
+
}> & {
|
|
14
|
+
/** Filter controls, usually a form with inputs and checkbox groups. */
|
|
15
|
+
default(): unknown;
|
|
16
|
+
};
|
|
17
|
+
emit: (evt: "update:open", value: boolean) => void;
|
|
18
|
+
}>) => import('vue').VNode & {
|
|
19
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_PrettifyLocal<T> = {
|
|
23
|
+
[K in keyof T]: T[K];
|
|
24
|
+
} & {};
|
|
@@ -21,6 +21,9 @@ export declare const DATA_TABLE_LABELS: {
|
|
|
21
21
|
readonly goToLastPage: "Go to last page";
|
|
22
22
|
readonly pageOf: (page: number, total: number) => string;
|
|
23
23
|
readonly rowsSelected: (selected: number, total: number) => string;
|
|
24
|
+
/** UiDataTableFilterMenu */
|
|
25
|
+
readonly filters: "Filters";
|
|
26
|
+
readonly toggleFilters: "Toggle Filters";
|
|
24
27
|
/** UiDataTableColumnFilter */
|
|
25
28
|
readonly columns: "Columns";
|
|
26
29
|
readonly toggleColumns: "Toggle columns";
|
|
@@ -66,3 +69,10 @@ export interface ColumnFilterLabels {
|
|
|
66
69
|
/** Dropdown section label. */
|
|
67
70
|
columnVisibility?: string;
|
|
68
71
|
}
|
|
72
|
+
/** Labels for UiDataTableFilterMenu */
|
|
73
|
+
export interface FilterMenuLabels {
|
|
74
|
+
/** Visible label for the trigger button. */
|
|
75
|
+
filters?: string;
|
|
76
|
+
/** Accessible label for the trigger button. */
|
|
77
|
+
toggleFilters?: string;
|
|
78
|
+
}
|
|
@@ -3,6 +3,7 @@ export { default as UiDataTableColumnFilter } from './UiDataTableColumnFilter.vu
|
|
|
3
3
|
export { default as UiDataTableColumnHeader } from './UiDataTableColumnHeader.vue';
|
|
4
4
|
export { default as UiDataTablePagination } from './UiDataTablePagination.vue';
|
|
5
5
|
export { default as UiDataTableToolbar } from './UiDataTableToolbar.vue';
|
|
6
|
+
export { default as UiDataTableFilterMenu } from './UiDataTableFilterMenu.vue';
|
|
6
7
|
export type { Column, ColumnDef, Row, Table } from '@tanstack/vue-table';
|
|
7
8
|
export * from './types';
|
|
8
9
|
export * from './constants';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Column, ColumnDef, Row, Table } from '@tanstack/vue-table';
|
|
2
|
-
import { ColumnHeaderLabels, ColumnFilterLabels, PaginationLabels } from './constants';
|
|
2
|
+
import { ColumnHeaderLabels, ColumnFilterLabels, FilterMenuLabels, PaginationLabels } from './constants';
|
|
3
3
|
/**
|
|
4
4
|
* A feature-rich data table with sorting, filtering, and pagination.
|
|
5
5
|
* Use for displaying and managing large datasets with interactive features.
|
|
@@ -119,3 +119,25 @@ export type UiDataTableColumnFilterProps<TData> = {
|
|
|
119
119
|
*/
|
|
120
120
|
labels?: ColumnFilterLabels;
|
|
121
121
|
};
|
|
122
|
+
/**
|
|
123
|
+
* Props for the UiDataTableFilterMenu component.
|
|
124
|
+
*/
|
|
125
|
+
export type UiDataTableFilterMenuProps<TData> = {
|
|
126
|
+
/**
|
|
127
|
+
* The TanStack Table instance. Optional — the menu only hosts filter controls
|
|
128
|
+
* passed via the default slot and does not read from the table directly.
|
|
129
|
+
* @internal
|
|
130
|
+
*/
|
|
131
|
+
table?: Table<TData>;
|
|
132
|
+
/**
|
|
133
|
+
* Number of filters currently applied. When greater than `0`, a count badge is
|
|
134
|
+
* shown next to the label and the trigger stays visually filled (active).
|
|
135
|
+
* @default 0
|
|
136
|
+
*/
|
|
137
|
+
activeCount?: number;
|
|
138
|
+
/**
|
|
139
|
+
* Custom labels for i18n support.
|
|
140
|
+
* Partial object that merges with defaults.
|
|
141
|
+
*/
|
|
142
|
+
labels?: FilterMenuLabels;
|
|
143
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { nextTick } from 'vue';
|
|
1
2
|
import { UiFloatActionItemsProps } from './types';
|
|
2
3
|
declare function __VLS_template(): {
|
|
3
4
|
attrs: Partial<{}>;
|
|
@@ -8,23 +9,193 @@ declare function __VLS_template(): {
|
|
|
8
9
|
default?(_: {}): any;
|
|
9
10
|
};
|
|
10
11
|
refs: {
|
|
11
|
-
itemRef:
|
|
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
96
|
};
|
|
13
97
|
rootEl: any;
|
|
14
98
|
};
|
|
15
99
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
100
|
declare const __VLS_component: import('vue').DefineComponent<UiFloatActionItemsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
101
|
+
"update:modelValue": (value: import('./types').UiFloatActionItemsValue) => any;
|
|
17
102
|
click: (event: MouseEvent) => any;
|
|
18
103
|
}, string, import('vue').PublicProps, Readonly<UiFloatActionItemsProps> & Readonly<{
|
|
104
|
+
"onUpdate:modelValue"?: ((value: import('./types').UiFloatActionItemsValue) => any) | undefined;
|
|
19
105
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
20
106
|
}>, {
|
|
21
107
|
disabled: boolean;
|
|
22
108
|
orientation: import('./types').UiFloatActionItemsOrientation;
|
|
23
109
|
type: import('./types').UiFloatActionItemsType;
|
|
110
|
+
modelValue: import('./types').UiFloatActionItemsValue;
|
|
24
111
|
placeholder: string;
|
|
112
|
+
value: import('./types').UiFloatActionItemsValue;
|
|
25
113
|
ariaLabel: string;
|
|
26
114
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
27
|
-
itemRef:
|
|
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;
|
|
28
199
|
}, any>;
|
|
29
200
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
30
201
|
export default _default;
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { InjectionKey, Ref } from 'vue';
|
|
2
|
+
import { UiFloatActionItemsValue } from './types';
|
|
3
|
+
/** Metadata a child item shares with the toolbar when it registers. */
|
|
4
|
+
export interface FloatActionItemRegistration {
|
|
5
|
+
/** Live getter for the item's root element (used to position the indicator). */
|
|
6
|
+
el: () => HTMLElement | null;
|
|
7
|
+
/** Live getter for the item's `value`, if it is a selectable item. */
|
|
8
|
+
value: () => UiFloatActionItemsValue | undefined;
|
|
9
|
+
}
|
|
2
10
|
/** Shared toolbar state used to coordinate roving-tabindex focus across items. */
|
|
3
11
|
export interface FloatActionItemContext {
|
|
4
12
|
/** Registers a focusable item so the toolbar can manage roving tabindex. */
|
|
5
|
-
registerItem: (id: symbol) => void;
|
|
13
|
+
registerItem: (id: symbol, registration: FloatActionItemRegistration) => void;
|
|
6
14
|
/** Removes an item from roving-tabindex tracking. */
|
|
7
15
|
unregisterItem: (id: symbol) => void;
|
|
8
16
|
/** Marks an item as the active (tabbable) one when it receives focus. */
|
|
@@ -11,6 +19,12 @@ export interface FloatActionItemContext {
|
|
|
11
19
|
getTabIndex: (id: symbol) => number;
|
|
12
20
|
/** Keyboard navigation direction for the toolbar. */
|
|
13
21
|
orientation: Ref<'horizontal' | 'vertical'>;
|
|
22
|
+
/** Whether the toolbar is a `v-model`-driven single-select control. */
|
|
23
|
+
hasModel: Ref<boolean>;
|
|
24
|
+
/** Currently selected value when the toolbar is `v-model`-driven. */
|
|
25
|
+
modelValue: Ref<UiFloatActionItemsValue | undefined>;
|
|
26
|
+
/** Selects a value, emitting `update:modelValue` from the toolbar. */
|
|
27
|
+
select: (value: UiFloatActionItemsValue) => void;
|
|
14
28
|
}
|
|
15
29
|
export declare const FLOAT_ACTION_ITEM_CONTEXT: InjectionKey<FloatActionItemContext>;
|
|
16
30
|
export declare const FLOAT_ACTION_ITEM_SELECTOR = "[data-slot=\"float-item-action\"]";
|
|
@@ -80,6 +80,8 @@ export interface UiFloatActionsProps {
|
|
|
80
80
|
export type UiFloatActionItemsType = 'toolbar' | 'button' | 'input' | 'text' | 'group' | 'separator';
|
|
81
81
|
/** Arrow-key navigation direction for toolbar roving focus. */
|
|
82
82
|
export type UiFloatActionItemsOrientation = 'horizontal' | 'vertical';
|
|
83
|
+
/** Value identifying a selectable `button` item within a toolbar. */
|
|
84
|
+
export type UiFloatActionItemsValue = string | number;
|
|
83
85
|
/**
|
|
84
86
|
* Pill-shaped floating toolbar and its action items.
|
|
85
87
|
*
|
|
@@ -118,10 +120,32 @@ export interface UiFloatActionItemsProps {
|
|
|
118
120
|
* Placeholder text for `input` items.
|
|
119
121
|
*/
|
|
120
122
|
placeholder?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Selected item value for the `toolbar` container.
|
|
125
|
+
* Use `v-model` to turn the toolbar into a single-select control: the active
|
|
126
|
+
* `button` item (the one whose `value` matches) gets a sliding background
|
|
127
|
+
* indicator. Omit for a plain, stateless action bar.
|
|
128
|
+
* @example
|
|
129
|
+
* ```vue
|
|
130
|
+
* <UiFloatActionItems v-model="view" aria-label="View">
|
|
131
|
+
* <UiFloatActionItems type="button" value="grid" aria-label="Grid" />
|
|
132
|
+
* <UiFloatActionItems type="button" value="list" aria-label="List" />
|
|
133
|
+
* </UiFloatActionItems>
|
|
134
|
+
* ```
|
|
135
|
+
*/
|
|
136
|
+
modelValue?: UiFloatActionItemsValue;
|
|
137
|
+
/**
|
|
138
|
+
* Value of a selectable `button` item.
|
|
139
|
+
* When the parent toolbar uses `v-model`, clicking this item selects its
|
|
140
|
+
* `value` and moves the active indicator onto it.
|
|
141
|
+
*/
|
|
142
|
+
value?: UiFloatActionItemsValue;
|
|
121
143
|
}
|
|
122
|
-
/** Events emitted by {@link UiFloatActionItems}
|
|
144
|
+
/** Events emitted by {@link UiFloatActionItems}. */
|
|
123
145
|
export interface UiFloatActionItemsEmits {
|
|
124
146
|
/** Emitted when a `button` item is activated. */
|
|
125
147
|
click: [event: MouseEvent];
|
|
148
|
+
/** Emitted by a `toolbar` with `v-model` when the selected value changes. */
|
|
149
|
+
'update:modelValue': [value: UiFloatActionItemsValue];
|
|
126
150
|
}
|
|
127
151
|
export type UiFloatActionItemsClass = HTMLAttributes['class'];
|
|
@@ -6,5 +6,9 @@
|
|
|
6
6
|
"components-uifield--design-notes": "palette",
|
|
7
7
|
"components-uifield--accessibility": "accessibility",
|
|
8
8
|
"components-uiitem--design-notes": "palette",
|
|
9
|
-
"components-uiitem--accessibility": "accessibility"
|
|
9
|
+
"components-uiitem--accessibility": "accessibility",
|
|
10
|
+
"components-uiinput--design-notes": "palette",
|
|
11
|
+
"components-uiinput--accessibility": "accessibility",
|
|
12
|
+
"patterns-uifloatactions--accessibility": "accessibility",
|
|
13
|
+
"patterns-uidatatable--accessibility": "accessibility"
|
|
10
14
|
}
|
|
@@ -25,6 +25,8 @@ See Figma documentation for more details on how to manage libraries in [Add or r
|
|
|
25
25
|
|
|
26
26
|
With the library enabled on the file, open the **Style and variables** picker in the **right sidebar** on properties such as fill, stroke, spacing, and typography to apply **variables** and **styles** from the design system.
|
|
27
27
|
|
|
28
|
+
All components come preconfigured with our semantic tokens for color, padding and typography styles. Unless there is a specific need to change the values, please use the default settings. In the event that the spacing values need to be adjusted, please choose from the predefined spacing tokens instead of raw values.
|
|
29
|
+
|
|
28
30
|
## Contribution Model
|
|
29
31
|
|
|
30
|
-
See the [Contribution Model](/contributing-to-platform/) for how design and engineering changes flow into the design system.
|
|
32
|
+
See the [Contribution Model](/contributing-to-platform/) for how design and engineering changes flow into the design system.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aleph-alpha/ui-library",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/system/lib.js",
|
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
"storybook": "Starts interactive Storybook development server on port 6006 for local component development",
|
|
42
42
|
"chromatic": "Runs Chromatic visual regression against the Storybook build (requires CHROMATIC_PROJECT_TOKEN)",
|
|
43
43
|
"test:e2e": "Runs end-to-end integration tests with Playwright",
|
|
44
|
-
"tag-component": "Adds experimental/beta/deprecated lifecycle tags or removes them with stable for a component story and props JSDoc"
|
|
44
|
+
"tag-component": "Adds experimental/beta/deprecated lifecycle tags or removes them with stable for a component story and props JSDoc",
|
|
45
|
+
"report:scenarios-pdf": "Generates a PDF catalogue of the labelled step() test scenarios in every story, as a source of truth for ui-library"
|
|
45
46
|
},
|
|
46
47
|
"homepage": "https://docs.aleph-alpha.com",
|
|
47
48
|
"devDependencies": {
|
|
@@ -83,7 +84,7 @@
|
|
|
83
84
|
"wait-on": "9.0.3",
|
|
84
85
|
"@aleph-alpha/eslint-config-frontend": "0.7.0",
|
|
85
86
|
"@aleph-alpha/prettier-config-frontend": "2.1.0",
|
|
86
|
-
"@aleph-alpha/tsconfig-frontend": "0.7.
|
|
87
|
+
"@aleph-alpha/tsconfig-frontend": "0.7.1"
|
|
87
88
|
},
|
|
88
89
|
"peerDependencies": {
|
|
89
90
|
"@unocss/preset-wind4": ">=66.0.0",
|
|
@@ -145,6 +146,7 @@
|
|
|
145
146
|
"chromatic": "npx chromatic --build-script-name=build-storybook --exit-zero-on-changes",
|
|
146
147
|
"test:e2e": "playwright test",
|
|
147
148
|
"tag-component": "node scripts/tag-component.mjs",
|
|
149
|
+
"report:scenarios-pdf": "node scripts/storybook-scenarios-pdf.mjs",
|
|
148
150
|
"publish:local": "yalc publish && yalc push --sig"
|
|
149
151
|
}
|
|
150
152
|
}
|
|
@@ -175,7 +175,7 @@ export const WithSlots: Story = {
|
|
|
175
175
|
<template #item="{ option, selected }">
|
|
176
176
|
<div class="flex min-w-0 flex-1 items-center justify-between gap-2">
|
|
177
177
|
<span class="truncate">{{ option.label }}</span>
|
|
178
|
-
<span v-if="selected" class="label-12-regular text-muted
|
|
178
|
+
<span v-if="selected" class="label-12-regular text-content-on-surface-muted">Selected</span>
|
|
179
179
|
</div>
|
|
180
180
|
</template>
|
|
181
181
|
</UiAutocomplete>
|
|
@@ -255,6 +255,7 @@ export const WithCheckboxes: Story = {
|
|
|
255
255
|
:model-value="selected"
|
|
256
256
|
class="pointer-events-none"
|
|
257
257
|
tabindex="-1"
|
|
258
|
+
aria-hidden="true"
|
|
258
259
|
/>
|
|
259
260
|
<span class="truncate">{{ option.label }}</span>
|
|
260
261
|
</div>
|
|
@@ -143,7 +143,7 @@ const inputSlotProps = computed(() => ({
|
|
|
143
143
|
|
|
144
144
|
const shellClasses = computed(() =>
|
|
145
145
|
cn(
|
|
146
|
-
'border-input data-[placeholder]:bg-background-input-default [&:not([data-placeholder])]:border-border-surface-focus-ring
|
|
146
|
+
'border-input data-[placeholder]:bg-background-input-default [&:not([data-placeholder])]:border-border-surface-focus-ring ui-focus-ring-within aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex h-9 w-full min-w-0 items-center gap-2 rounded-md border bg-accent px-3 py-2 label-14-regular transition-[color,box-shadow]',
|
|
147
147
|
props.disabled && 'pointer-events-none cursor-not-allowed opacity-50',
|
|
148
148
|
),
|
|
149
149
|
);
|
|
@@ -322,7 +322,7 @@ provideUiAutocompleteContext({
|
|
|
322
322
|
v-if="props.startIcon"
|
|
323
323
|
:name="props.startIcon"
|
|
324
324
|
:size="16"
|
|
325
|
-
class="text-muted
|
|
325
|
+
class="text-content-on-surface-muted shrink-0"
|
|
326
326
|
/>
|
|
327
327
|
|
|
328
328
|
<div class="relative flex min-w-0 flex-1 items-center">
|
|
@@ -346,7 +346,7 @@ provideUiAutocompleteContext({
|
|
|
346
346
|
"
|
|
347
347
|
:disabled="props.disabled"
|
|
348
348
|
:required="props.required && selectedValues.length === 0"
|
|
349
|
-
class="placeholder:text-muted
|
|
349
|
+
class="placeholder:text-content-on-surface-muted min-w-0 bg-transparent outline-none disabled:cursor-not-allowed"
|
|
350
350
|
:class="
|
|
351
351
|
showSelectionDisplay
|
|
352
352
|
? 'absolute inset-0 size-full cursor-text opacity-0'
|
|
@@ -362,7 +362,7 @@ provideUiAutocompleteContext({
|
|
|
362
362
|
|
|
363
363
|
<button
|
|
364
364
|
type="button"
|
|
365
|
-
class="text-muted
|
|
365
|
+
class="text-content-on-surface-muted flex size-5 shrink-0 items-center justify-center rounded-sm outline-none"
|
|
366
366
|
:disabled="props.disabled"
|
|
367
367
|
:aria-expanded="openState"
|
|
368
368
|
aria-haspopup="listbox"
|
|
@@ -453,7 +453,7 @@ provideUiAutocompleteContext({
|
|
|
453
453
|
|
|
454
454
|
<div
|
|
455
455
|
v-if="hasInternalOptions && filteredOptions.length === 0"
|
|
456
|
-
class="text-muted
|
|
456
|
+
class="text-content-on-surface-muted px-2 py-1.5 label-14-regular"
|
|
457
457
|
>
|
|
458
458
|
{{ props.emptyText }}
|
|
459
459
|
</div>
|
|
@@ -345,7 +345,7 @@ export const KeyboardNavigation: Story = {
|
|
|
345
345
|
},
|
|
346
346
|
},
|
|
347
347
|
play: async ({ canvasElement, step }) => {
|
|
348
|
-
// Scenario: a keyboard user tabs to the button and activates it with Enter,
|
|
348
|
+
// Scenario (UiButton): a keyboard user tabs to the button and activates it with Enter,
|
|
349
349
|
// Space, and a pointer click.
|
|
350
350
|
const canvas = within(canvasElement);
|
|
351
351
|
const button = canvas.getByRole('button', { name: 'Submit' });
|
|
@@ -430,7 +430,7 @@ export const KeyboardGroupNavigation: Story = {
|
|
|
430
430
|
`,
|
|
431
431
|
}),
|
|
432
432
|
play: async ({ canvasElement, step }) => {
|
|
433
|
-
// Scenario: a keyboard user tabs across the button group in DOM order and
|
|
433
|
+
// Scenario (UiButton): a keyboard user tabs across the button group in DOM order and
|
|
434
434
|
// activates the focused control with Space.
|
|
435
435
|
onClick.mockClear();
|
|
436
436
|
const canvas = within(canvasElement);
|
|
@@ -504,7 +504,7 @@ export const ZoomMagnification: Story = {
|
|
|
504
504
|
template: `<UiButton @click="onClick">Save changes</UiButton>`,
|
|
505
505
|
}),
|
|
506
506
|
play: async ({ canvasElement, step }) => {
|
|
507
|
-
// Scenario: at 200% page zoom the button stays visible, keeps its
|
|
507
|
+
// Scenario (UiButton): at 200% page zoom the button stays visible, keeps its
|
|
508
508
|
// accessible name, and remains clickable.
|
|
509
509
|
onClick.mockClear();
|
|
510
510
|
const canvas = within(canvasElement);
|
|
@@ -590,7 +590,7 @@ export const ScreenReader: Story = {
|
|
|
590
590
|
`,
|
|
591
591
|
}),
|
|
592
592
|
play: async ({ canvasElement, step }) => {
|
|
593
|
-
// Scenario: assistive tech reads each control's role and name, and hears the
|
|
593
|
+
// Scenario (UiButton): assistive tech reads each control's role and name, and hears the
|
|
594
594
|
// toggle's pressed state change via aria-pressed.
|
|
595
595
|
const canvas = within(canvasElement);
|
|
596
596
|
const toggle = canvas.getByRole('button', { name: 'Mute' });
|
|
@@ -658,7 +658,7 @@ export const MobileBreakpoint: Story = {
|
|
|
658
658
|
template: `<UiButton @click="onClick">Continue</UiButton>`,
|
|
659
659
|
}),
|
|
660
660
|
play: async ({ canvasElement, step }) => {
|
|
661
|
-
// Scenario: at the 320px mobile breakpoint the button stays operable and
|
|
661
|
+
// Scenario (UiButton): at the 320px mobile breakpoint the button stays operable and
|
|
662
662
|
// meets the minimum touch-target size.
|
|
663
663
|
onClick.mockClear();
|
|
664
664
|
const canvas = within(canvasElement);
|
|
@@ -951,7 +951,7 @@ export const IconUsage: Story = {
|
|
|
951
951
|
},
|
|
952
952
|
},
|
|
953
953
|
play: async ({ canvasElement, step }) => {
|
|
954
|
-
// Scenario: an icon-only button exposes an accessible name via aria-label
|
|
954
|
+
// Scenario (UiButton): an icon-only button exposes an accessible name via aria-label
|
|
955
955
|
// and still responds to clicks.
|
|
956
956
|
onClick.mockClear();
|
|
957
957
|
const canvas = within(canvasElement);
|
|
@@ -1003,7 +1003,7 @@ export const Loading: Story = {
|
|
|
1003
1003
|
},
|
|
1004
1004
|
},
|
|
1005
1005
|
play: async ({ canvasElement, step }) => {
|
|
1006
|
-
// Scenario: while loading, the button announces aria-busy, shows a labelled
|
|
1006
|
+
// Scenario (UiButton): while loading, the button announces aria-busy, shows a labelled
|
|
1007
1007
|
// spinner, drops out of the tab order, and ignores forced clicks.
|
|
1008
1008
|
onClick.mockClear();
|
|
1009
1009
|
const canvas = within(canvasElement);
|
|
@@ -1108,7 +1108,7 @@ export const AsChild: Story = {
|
|
|
1108
1108
|
},
|
|
1109
1109
|
},
|
|
1110
1110
|
play: async ({ canvasElement, step }) => {
|
|
1111
|
-
// Scenario: rendered as a link via asChild, it exposes the link role and
|
|
1111
|
+
// Scenario (UiButton): rendered as a link via asChild, it exposes the link role and
|
|
1112
1112
|
// href and does not expose a redundant button role.
|
|
1113
1113
|
const canvas = within(canvasElement);
|
|
1114
1114
|
const link = canvas.getByRole('link', { name: 'Login' });
|
|
@@ -1225,7 +1225,7 @@ export const Disabled: Story = {
|
|
|
1225
1225
|
},
|
|
1226
1226
|
},
|
|
1227
1227
|
play: async ({ canvasElement, step }) => {
|
|
1228
|
-
// Scenario: a disabled button reports its disabled state, is skipped by Tab,
|
|
1228
|
+
// Scenario (UiButton): a disabled button reports its disabled state, is skipped by Tab,
|
|
1229
1229
|
// and ignores forced clicks.
|
|
1230
1230
|
onClick.mockClear();
|
|
1231
1231
|
const canvas = within(canvasElement);
|
|
@@ -1323,15 +1323,15 @@ export const AllVariantsAndSizes: Story = {
|
|
|
1323
1323
|
</colgroup>
|
|
1324
1324
|
<thead>
|
|
1325
1325
|
<tr>
|
|
1326
|
-
<th class="label-12-medium text-muted
|
|
1327
|
-
<th class="label-12-medium text-muted
|
|
1328
|
-
<th class="label-12-medium text-muted
|
|
1329
|
-
<th class="label-12-medium text-muted
|
|
1326
|
+
<th class="label-12-medium text-content-on-surface-muted border border-border-surface-default px-3 py-2 text-center">Size</th>
|
|
1327
|
+
<th class="label-12-medium text-content-on-surface-muted border border-border-surface-default px-3 py-2 text-center">Default</th>
|
|
1328
|
+
<th class="label-12-medium text-content-on-surface-muted border border-border-surface-default px-3 py-2 text-center">Loading</th>
|
|
1329
|
+
<th class="label-12-medium text-content-on-surface-muted border border-border-surface-default px-3 py-2 text-center">Disabled</th>
|
|
1330
1330
|
</tr>
|
|
1331
1331
|
</thead>
|
|
1332
1332
|
<tbody>
|
|
1333
1333
|
<tr v-for="row in rowsFor(variant)" :key="row.size" class="align-middle">
|
|
1334
|
-
<td class="label-12-medium text-muted
|
|
1334
|
+
<td class="label-12-medium text-content-on-surface-muted border border-border-surface-default px-3 py-2 text-center whitespace-nowrap">{{ row.size }}</td>
|
|
1335
1335
|
<td class="border border-border-surface-default px-3 py-2 text-center">
|
|
1336
1336
|
<UiButton :variant="variant" :size="row.size" aria-label="Close">
|
|
1337
1337
|
<template v-if="row.isIcon"><UiIcon name="x" /></template>
|