@aleph-alpha/ui-library 5.7.0 → 5.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -7
- package/config.d.ts +5 -1
- package/config.js +18 -1
- package/dist/system/__tests__/test-utils.d.ts +24 -0
- package/dist/system/components/UiAutocomplete/UiAutocomplete.vue.d.ts +8 -4
- package/dist/system/components/UiAutocomplete/types.d.ts +11 -0
- package/dist/system/components/UiBreadcrumb/UiBreadcrumb.vue.d.ts +17 -0
- package/dist/system/components/UiBreadcrumb/UiBreadcrumbEllipsis.vue.d.ts +17 -0
- package/dist/system/components/UiBreadcrumb/UiBreadcrumbItem.vue.d.ts +17 -0
- package/dist/system/components/UiBreadcrumb/UiBreadcrumbLink.vue.d.ts +18 -0
- package/dist/system/components/UiBreadcrumb/UiBreadcrumbList.vue.d.ts +17 -0
- package/dist/system/components/UiBreadcrumb/UiBreadcrumbPage.vue.d.ts +17 -0
- package/dist/system/components/UiBreadcrumb/UiBreadcrumbSeparator.vue.d.ts +17 -0
- package/dist/system/components/UiBreadcrumb/index.d.ts +8 -0
- package/dist/system/components/UiBreadcrumb/types.d.ts +22 -0
- package/dist/system/components/UiFadeMask/UiFadeMask.vue.d.ts +21 -0
- package/dist/system/components/UiFadeMask/index.d.ts +2 -0
- package/dist/system/components/UiFadeMask/types.d.ts +33 -0
- package/dist/system/components/UiListbox/UiListboxVirtualizer.vue.d.ts +21 -0
- package/dist/system/components/UiListbox/index.d.ts +1 -0
- package/dist/system/components/UiListbox/types.d.ts +36 -0
- package/dist/system/components/UiSelect/UiSelectVirtualizer.vue.d.ts +21 -0
- package/dist/system/components/UiSelect/index.d.ts +1 -0
- package/dist/system/components/UiSelect/types.d.ts +36 -0
- package/dist/system/components/UiToggleGroup/types.d.ts +0 -5
- package/dist/system/components/core/breadcrumb/Breadcrumb.vue.d.ts +21 -0
- package/dist/system/components/core/breadcrumb/BreadcrumbEllipsis.vue.d.ts +21 -0
- package/dist/system/components/core/breadcrumb/BreadcrumbItem.vue.d.ts +21 -0
- package/dist/system/components/core/breadcrumb/BreadcrumbLink.vue.d.ts +24 -0
- package/dist/system/components/core/breadcrumb/BreadcrumbList.vue.d.ts +21 -0
- package/dist/system/components/core/breadcrumb/BreadcrumbPage.vue.d.ts +21 -0
- package/dist/system/components/core/breadcrumb/BreadcrumbSeparator.vue.d.ts +21 -0
- package/dist/system/components/core/breadcrumb/index.d.ts +7 -0
- package/dist/system/components/core/listbox/Listbox.vue.d.ts +28 -2
- package/dist/system/components/core/listbox/context.d.ts +21 -0
- package/dist/system/components/core/native-select/NativeSelectOptGroup.vue.d.ts +2 -2
- package/dist/system/components/core/native-select/NativeSelectOption.vue.d.ts +2 -2
- package/dist/system/components/index.d.ts +2 -0
- package/dist/system/lib.js +22570 -21061
- package/dist/system/mobile-device-frame.png +0 -0
- package/dist/system/patterns/UiDatePicker/UiDatePicker.vue.d.ts +1 -1
- package/dist/system/patterns/UiFloatActions/types.d.ts +2 -1
- package/dist/system/patterns/UiProfileCard/index.d.ts +7 -0
- package/dist/system/patterns/UiTopBar/UiTopBar.vue.d.ts +23 -0
- package/dist/system/patterns/UiTopBar/index.d.ts +2 -0
- package/dist/system/patterns/UiTopBar/types.d.ts +28 -0
- package/dist/system/patterns/index.d.ts +2 -0
- package/dist/system/story-sidebar-icons.json +10 -1
- package/package.json +3 -2
- package/src/__tests__/test-utils.ts +74 -0
- package/src/components/UiAutocomplete/UiAutocomplete.stories.ts +94 -0
- package/src/components/UiAutocomplete/UiAutocomplete.vue +164 -44
- package/src/components/UiAutocomplete/__tests__/UiAutocompleteVirtualized.test.ts +107 -0
- package/src/components/UiAutocomplete/types.ts +11 -0
- package/src/components/UiBreadcrumb/UiBreadcrumb.stories.ts +1419 -0
- package/src/components/UiBreadcrumb/UiBreadcrumb.vue +19 -0
- package/src/components/UiBreadcrumb/UiBreadcrumbEllipsis.vue +22 -0
- package/src/components/UiBreadcrumb/UiBreadcrumbItem.vue +19 -0
- package/src/components/UiBreadcrumb/UiBreadcrumbLink.vue +26 -0
- package/src/components/UiBreadcrumb/UiBreadcrumbList.vue +19 -0
- package/src/components/UiBreadcrumb/UiBreadcrumbPage.vue +19 -0
- package/src/components/UiBreadcrumb/UiBreadcrumbSeparator.vue +22 -0
- package/src/components/UiBreadcrumb/index.ts +8 -0
- package/src/components/UiBreadcrumb/types.ts +28 -0
- package/src/components/UiDropdownMenu/UiDropdownMenu.stories.ts +760 -0
- package/src/components/UiDropdownMenu/UiDropdownMenuTrigger.vue +2 -0
- package/src/components/UiFadeMask/UiFadeMask.stories.ts +563 -0
- package/src/components/UiFadeMask/UiFadeMask.vue +86 -0
- package/src/components/UiFadeMask/__tests__/UiFadeMask.test.ts +52 -0
- package/src/components/UiFadeMask/index.ts +6 -0
- package/src/components/UiFadeMask/types.ts +35 -0
- package/src/components/UiListbox/UiListbox.stories.ts +1404 -30
- package/src/components/UiListbox/UiListboxVirtualizer.vue +42 -0
- package/src/components/UiListbox/__tests__/UiListbox.test.ts +70 -35
- package/src/components/UiListbox/__tests__/UiListboxVirtualizer.test.ts +96 -0
- package/src/components/UiListbox/index.ts +1 -0
- package/src/components/UiListbox/types.ts +42 -0
- package/src/components/UiSelect/UiSelect.stories.ts +109 -1
- package/src/components/UiSelect/UiSelectVirtualizer.vue +373 -0
- package/src/components/UiSelect/__tests__/UiSelectVirtualizer.test.ts +185 -0
- package/src/components/UiSelect/index.ts +1 -0
- package/src/components/UiSelect/types.ts +38 -0
- package/src/components/UiSwitch/UiSwitch.stories.ts +706 -9
- package/src/components/UiSwitch/__tests__/UiSwitch.test.ts +2 -6
- package/src/components/UiToggle/UiToggle.stories.ts +961 -130
- package/src/components/UiToggle/UiToggle.vue +8 -1
- package/src/components/UiToggle/__tests__/UiToggle.test.ts +55 -65
- package/src/components/UiToggleGroup/UiToggleGroup.stories.ts +1060 -173
- package/src/components/UiToggleGroup/UiToggleGroup.vue +4 -2
- package/src/components/UiToggleGroup/__tests__/UiToggleGroup.test.ts +117 -325
- package/src/components/UiToggleGroup/types.ts +0 -5
- package/src/components/core/breadcrumb/Breadcrumb.vue +13 -0
- package/src/components/core/breadcrumb/BreadcrumbEllipsis.vue +23 -0
- package/src/components/core/breadcrumb/BreadcrumbItem.vue +17 -0
- package/src/components/core/breadcrumb/BreadcrumbLink.vue +29 -0
- package/src/components/core/breadcrumb/BreadcrumbList.vue +22 -0
- package/src/components/core/breadcrumb/BreadcrumbPage.vue +20 -0
- package/src/components/core/breadcrumb/BreadcrumbSeparator.vue +22 -0
- package/src/components/core/breadcrumb/index.ts +7 -0
- package/src/components/core/dropdown-menu/DropdownMenuCheckboxItem.vue +8 -2
- package/src/components/core/dropdown-menu/DropdownMenuItem.vue +1 -1
- package/src/components/core/dropdown-menu/DropdownMenuRadioItem.vue +8 -2
- package/src/components/core/dropdown-menu/DropdownMenuSubTrigger.vue +1 -1
- package/src/components/core/listbox/Listbox.vue +14 -2
- package/src/components/core/listbox/ListboxContent.vue +61 -3
- package/src/components/core/listbox/ListboxItem.vue +6 -1
- package/src/components/core/listbox/context.ts +34 -0
- package/src/components/core/toggle/Toggle.vue +15 -1
- package/src/components/core/toggle/index.ts +2 -2
- package/src/components/core/toggle-group/ToggleGroup.vue +1 -1
- package/src/components/core/toggle-group/index.ts +5 -2
- package/src/components/index.ts +2 -0
- package/src/patterns/UiFloatActions/UiFloatActions.stories.ts +4 -5
- package/src/patterns/UiFloatActions/UiFloatActions.vue +23 -11
- package/src/patterns/UiFloatActions/__tests__/UiFloatActions.test.ts +23 -0
- package/src/patterns/UiFloatActions/types.ts +2 -1
- package/src/patterns/UiProfileCard/UiProfileCard.stories.ts +1064 -0
- package/src/patterns/UiProfileCard/index.ts +7 -0
- package/src/patterns/UiTopBar/UiTopBar.stories.ts +1121 -0
- package/src/patterns/UiTopBar/UiTopBar.vue +166 -0
- package/src/patterns/UiTopBar/__tests__/UiTopBar.test.ts +245 -0
- package/src/patterns/UiTopBar/index.ts +2 -0
- package/src/patterns/UiTopBar/types.ts +29 -0
- package/src/patterns/index.ts +2 -0
package/README.md
CHANGED
|
@@ -232,7 +232,7 @@ For Cursor, add `--cursor` flag. Then restart your IDE.
|
|
|
232
232
|
- [Architecture](./docs/ARCHITECTURE.md) — Component structure and design decisions
|
|
233
233
|
- [Contribution Guidelines](./docs/CONTRIBUTION_GUIDELINES.md) — Accessibility requirements and patterns
|
|
234
234
|
- [Storybook Guidelines](./docs/STORYBOOK.md) — Story patterns and guidelines
|
|
235
|
-
- [Testing Strategy](./docs/TESTING.md) — What we test and where
|
|
235
|
+
- [Testing Strategy](./docs/TESTING.md) — What we test and where, including the automated tests every component must ship
|
|
236
236
|
|
|
237
237
|
## Getting Started
|
|
238
238
|
|
|
@@ -293,17 +293,22 @@ Example:
|
|
|
293
293
|
pnpm dlx shadcn-vue@latest add tooltip
|
|
294
294
|
```
|
|
295
295
|
|
|
296
|
+
Run the CLI on Node 24 (`nvm use 24`) rather than the pinned 20.19.0, otherwise its dependencies
|
|
297
|
+
abort with `ERR_PNPM_UNSUPPORTED_ENGINE`. Afterwards, repoint any generated `@lucide/vue` icon
|
|
298
|
+
import to `lucide-vue-next`, which is the icon package this library depends on.
|
|
299
|
+
|
|
296
300
|
Please refer to [CONTRIBUTION_GUIDELINES.md](./docs/CONTRIBUTION_GUIDELINES.md) for more details on the "Strict Facade" pattern and accessibility requirements.
|
|
297
301
|
|
|
298
302
|
## Testing
|
|
299
303
|
|
|
300
|
-
| Command
|
|
301
|
-
|
|
|
302
|
-
| `pnpm test`
|
|
303
|
-
| `pnpm test:storybook`
|
|
304
|
-
| `pnpm
|
|
304
|
+
| Command | Purpose |
|
|
305
|
+
| --------------------------- | -------------------------------------------------------------- |
|
|
306
|
+
| `pnpm test` | Run unit tests |
|
|
307
|
+
| `pnpm test:storybook` | Run automated tests (`play` functions + a11y) against a build |
|
|
308
|
+
| `pnpm test:storybook:local` | Build Storybook, then run the automated tests |
|
|
309
|
+
| `pnpm lint` | Run linting including a11y rules |
|
|
305
310
|
|
|
306
|
-
See [Testing Strategy](./docs/TESTING.md)
|
|
311
|
+
Every component must ship both layers: unit tests and automated tests (`play` functions covering interaction, keyboard, zoom, screen reader, and mobile). See [Testing Strategy](./docs/TESTING.md#required-coverage--all-five-categories-every-component).
|
|
307
312
|
|
|
308
313
|
## Pre-commit Workflow
|
|
309
314
|
|
package/config.d.ts
CHANGED
|
@@ -241,17 +241,21 @@ export declare const presetUiLibraryThemeFromTokens: (
|
|
|
241
241
|
* border color to `border/surface/focus-ring` and draws a 2px ring in the
|
|
242
242
|
* focus-ring color at 50% opacity. Give the element a border so the border
|
|
243
243
|
* color can show, e.g. `border border-transparent`.
|
|
244
|
+
* - `ui-focus-ring-inset` — same ring, drawn inside the element's own box.
|
|
245
|
+
* Apply to options that live in a clipping scroll container (listbox options,
|
|
246
|
+
* menu items), where an outset ring would be cut off by the overflow.
|
|
244
247
|
* - `ui-focus-ring-within` — same visual, but triggered on `:focus-within`.
|
|
245
248
|
* Apply to container controls that wrap the real focusable element (text
|
|
246
249
|
* field wrappers, tag inputs, comboboxes).
|
|
247
250
|
*
|
|
248
|
-
*
|
|
251
|
+
* All three are namespaced with the `ui-` prefix on purpose: an unprefixed
|
|
249
252
|
* `focus-ring` would be parsed by UnoCSS as the `focus:` variant of the `ring`
|
|
250
253
|
* utility and emit an unintended `.focus-ring:focus` rule.
|
|
251
254
|
*
|
|
252
255
|
* @example
|
|
253
256
|
* ```html
|
|
254
257
|
* <button class="ui-focus-ring border border-transparent">Save</button>
|
|
258
|
+
* <div role="option" class="ui-focus-ring-inset rounded-sm">Apple</div>
|
|
255
259
|
* <div class="ui-focus-ring-within border border-input"><input /></div>
|
|
256
260
|
* ```
|
|
257
261
|
*/
|
package/config.js
CHANGED
|
@@ -1152,6 +1152,18 @@ const vHoverOverlayCSS = `
|
|
|
1152
1152
|
border-color: oklch(var(--border-surface-focus-ring));
|
|
1153
1153
|
box-shadow: 0 0 0 2px oklch(var(--ring) / 0.5);
|
|
1154
1154
|
}
|
|
1155
|
+
/* Companion for options inside a clipping scroll container (listbox options,
|
|
1156
|
+
menu items). An outset ring would be cut off by the container's overflow, so
|
|
1157
|
+
the same ring is drawn inside the element's own box instead. */
|
|
1158
|
+
.ui-focus-ring-inset {
|
|
1159
|
+
outline: none;
|
|
1160
|
+
transition: box-shadow 0.15s ease;
|
|
1161
|
+
}
|
|
1162
|
+
.ui-focus-ring-inset:focus-visible {
|
|
1163
|
+
outline: none;
|
|
1164
|
+
box-shadow: inset 0 0 0 2px oklch(var(--ring) / 0.5);
|
|
1165
|
+
border-radius: inherit;
|
|
1166
|
+
}
|
|
1155
1167
|
/* Companion for container/wrapper controls (text field wrappers, tag inputs,
|
|
1156
1168
|
comboboxes) that surface the ring when any descendant is focused. Same visual
|
|
1157
1169
|
as "ui-focus-ring", triggered on :focus-within instead of :focus-visible. */
|
|
@@ -1168,6 +1180,7 @@ const vHoverOverlayCSS = `
|
|
|
1168
1180
|
}
|
|
1169
1181
|
@media (prefers-reduced-motion: reduce) {
|
|
1170
1182
|
.ui-focus-ring,
|
|
1183
|
+
.ui-focus-ring-inset,
|
|
1171
1184
|
.ui-focus-ring-within {
|
|
1172
1185
|
transition: none;
|
|
1173
1186
|
}
|
|
@@ -1191,17 +1204,21 @@ const vHoverOverlayCSS = `
|
|
|
1191
1204
|
* border color to `border/surface/focus-ring` and draws a 2px ring in the
|
|
1192
1205
|
* focus-ring color at 50% opacity. Give the element a border so the border
|
|
1193
1206
|
* color can show, e.g. `border border-transparent`.
|
|
1207
|
+
* - `ui-focus-ring-inset` — same ring, drawn inside the element's own box.
|
|
1208
|
+
* Apply to options that live in a clipping scroll container (listbox options,
|
|
1209
|
+
* menu items), where an outset ring would be cut off by the overflow.
|
|
1194
1210
|
* - `ui-focus-ring-within` — same visual, but triggered on `:focus-within`.
|
|
1195
1211
|
* Apply to container controls that wrap the real focusable element (text
|
|
1196
1212
|
* field wrappers, tag inputs, comboboxes).
|
|
1197
1213
|
*
|
|
1198
|
-
*
|
|
1214
|
+
* All three are namespaced with the `ui-` prefix on purpose: an unprefixed
|
|
1199
1215
|
* `focus-ring` would be parsed by UnoCSS as the `focus:` variant of the `ring`
|
|
1200
1216
|
* utility and emit an unintended `.focus-ring:focus` rule.
|
|
1201
1217
|
*
|
|
1202
1218
|
* @example
|
|
1203
1219
|
* ```html
|
|
1204
1220
|
* <button class="ui-focus-ring border border-transparent">Save</button>
|
|
1221
|
+
* <div role="option" class="ui-focus-ring-inset rounded-sm">Apple</div>
|
|
1205
1222
|
* <div class="ui-focus-ring-within border border-input"><input /></div>
|
|
1206
1223
|
* ```
|
|
1207
1224
|
*
|
|
@@ -35,3 +35,27 @@ export declare function createMockIcon(testId?: string): Component;
|
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
37
|
export declare const MockIcon: Component;
|
|
38
|
+
/**
|
|
39
|
+
* Stubs the layout and scrolling that jsdom leaves unimplemented, so that a
|
|
40
|
+
* virtualized list can measure its scroll container and move through it.
|
|
41
|
+
*
|
|
42
|
+
* Heights come from the stub rather than from layout, and the scrolled height
|
|
43
|
+
* is read off the spacer every virtualizer renders as its first child.
|
|
44
|
+
* @param viewportHeight - The visible height every element reports
|
|
45
|
+
* @returns A teardown restoring the stubbed properties
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* import { stubScrollLayout } from '@/__tests__/test-utils';
|
|
49
|
+
*
|
|
50
|
+
* let restoreScrollLayout: () => void;
|
|
51
|
+
*
|
|
52
|
+
* beforeAll(() => {
|
|
53
|
+
* restoreScrollLayout = stubScrollLayout();
|
|
54
|
+
* });
|
|
55
|
+
*
|
|
56
|
+
* afterAll(() => {
|
|
57
|
+
* restoreScrollLayout();
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
export declare function stubScrollLayout(viewportHeight?: number): () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UiAutocompleteProps } from './types';
|
|
1
|
+
import { UiAutocompleteOption, UiAutocompleteProps } from './types';
|
|
2
2
|
declare function setOpen(value: boolean): void;
|
|
3
3
|
declare function setInputValue(value: string): void;
|
|
4
4
|
declare function isSelected(value: string): boolean;
|
|
@@ -11,7 +11,7 @@ declare function __VLS_template(): {
|
|
|
11
11
|
ariaLabel: string;
|
|
12
12
|
disabled: boolean;
|
|
13
13
|
selectedValues: string[];
|
|
14
|
-
selectedOptions:
|
|
14
|
+
selectedOptions: UiAutocompleteOption[];
|
|
15
15
|
displayText: string;
|
|
16
16
|
showSelectionDisplay: boolean;
|
|
17
17
|
open: boolean;
|
|
@@ -19,7 +19,7 @@ declare function __VLS_template(): {
|
|
|
19
19
|
setOpen: typeof setOpen;
|
|
20
20
|
}): any;
|
|
21
21
|
item?(_: {
|
|
22
|
-
option:
|
|
22
|
+
option: UiAutocompleteOption;
|
|
23
23
|
selected: boolean;
|
|
24
24
|
disabled: boolean;
|
|
25
25
|
}): any;
|
|
@@ -27,7 +27,7 @@ declare function __VLS_template(): {
|
|
|
27
27
|
default?(_: {
|
|
28
28
|
inputValue: string;
|
|
29
29
|
selectedValues: string[];
|
|
30
|
-
selectedOptions:
|
|
30
|
+
selectedOptions: UiAutocompleteOption[];
|
|
31
31
|
isSelected: typeof isSelected;
|
|
32
32
|
setOpen: typeof setOpen;
|
|
33
33
|
}): any;
|
|
@@ -35,6 +35,7 @@ declare function __VLS_template(): {
|
|
|
35
35
|
refs: {
|
|
36
36
|
rootEl: HTMLDivElement;
|
|
37
37
|
inputEl: HTMLInputElement;
|
|
38
|
+
listboxEl: HTMLDivElement;
|
|
38
39
|
};
|
|
39
40
|
rootEl: HTMLDivElement;
|
|
40
41
|
};
|
|
@@ -74,9 +75,12 @@ declare const __VLS_component: import('vue').DefineComponent<UiAutocompleteProps
|
|
|
74
75
|
defaultInputValue: string;
|
|
75
76
|
emptyText: string;
|
|
76
77
|
showIndicator: boolean;
|
|
78
|
+
virtualized: boolean;
|
|
79
|
+
estimateSize: number;
|
|
77
80
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
78
81
|
rootEl: HTMLDivElement;
|
|
79
82
|
inputEl: HTMLInputElement;
|
|
83
|
+
listboxEl: HTMLDivElement;
|
|
80
84
|
}, HTMLDivElement>;
|
|
81
85
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
82
86
|
export default _default;
|
|
@@ -53,6 +53,17 @@ export type UiAutocompleteProps = {
|
|
|
53
53
|
startIcon?: UiIconProps['name'];
|
|
54
54
|
/** Whether to show the default right-side selected indicator. */
|
|
55
55
|
showIndicator?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Whether to mount only the options in view, for lists too long to render at
|
|
58
|
+
* once. Applies to `options` only, not to items provided through the slot.
|
|
59
|
+
*/
|
|
60
|
+
virtualized?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* The expected height of an option in pixels while virtualizing, used to size
|
|
63
|
+
* the scrollbar before the options are measured. Raise it for taller custom
|
|
64
|
+
* items.
|
|
65
|
+
*/
|
|
66
|
+
estimateSize?: number;
|
|
56
67
|
};
|
|
57
68
|
export type UiAutocompleteEmits = {
|
|
58
69
|
/** Emitted when the selected value changes. */
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: any;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: any;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: any;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { UiBreadcrumbLinkProps } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: any;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<UiBreadcrumbLinkProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiBreadcrumbLinkProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: any;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: any;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: any;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as UiBreadcrumb } from './UiBreadcrumb.vue';
|
|
2
|
+
export { default as UiBreadcrumbEllipsis } from './UiBreadcrumbEllipsis.vue';
|
|
3
|
+
export { default as UiBreadcrumbItem } from './UiBreadcrumbItem.vue';
|
|
4
|
+
export { default as UiBreadcrumbLink } from './UiBreadcrumbLink.vue';
|
|
5
|
+
export { default as UiBreadcrumbList } from './UiBreadcrumbList.vue';
|
|
6
|
+
export { default as UiBreadcrumbPage } from './UiBreadcrumbPage.vue';
|
|
7
|
+
export { default as UiBreadcrumbSeparator } from './UiBreadcrumbSeparator.vue';
|
|
8
|
+
export type * from './types';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A navigation trail showing the user's location within a site or app hierarchy.
|
|
3
|
+
* Renders as an ordered list inside a labelled `nav` landmark.
|
|
4
|
+
* @category Navigation
|
|
5
|
+
* @useCases page hierarchy, navigation trail, folder path, wizard location, nested resource path
|
|
6
|
+
* @keywords breadcrumb, navigation, trail, path, hierarchy, crumbs
|
|
7
|
+
* @related UiNavigationMenu, UiTabs
|
|
8
|
+
*/
|
|
9
|
+
export type UiBreadcrumbProps = Record<string, never>;
|
|
10
|
+
export type UiBreadcrumbListProps = Record<string, never>;
|
|
11
|
+
export type UiBreadcrumbItemProps = Record<string, never>;
|
|
12
|
+
export type UiBreadcrumbLinkProps = {
|
|
13
|
+
/**
|
|
14
|
+
* Render as child element (merges props into slotted element instead of wrapping).
|
|
15
|
+
* Use when integrating with router-link or NuxtLink.
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
asChild?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type UiBreadcrumbPageProps = Record<string, never>;
|
|
21
|
+
export type UiBreadcrumbSeparatorProps = Record<string, never>;
|
|
22
|
+
export type UiBreadcrumbEllipsisProps = Record<string, never>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UiFadeMaskProps } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: any;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<UiFadeMaskProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiFadeMaskProps> & Readonly<{}>, {
|
|
12
|
+
position: import('./types').UiFadeMaskPosition;
|
|
13
|
+
background: import('./types').UiFadeMaskBackground;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type UiFadeMaskBackground = 'primary' | 'secondary';
|
|
2
|
+
export type UiFadeMaskPosition = 'top' | 'bottom';
|
|
3
|
+
/**
|
|
4
|
+
* Wraps content and lays a gradient band over one of its edges, so scrolling or
|
|
5
|
+
* clipped content dissolves into the surface instead of ending on a hard cut.
|
|
6
|
+
* Put a scroll container in the slot and the band stays pinned to the wrapper's
|
|
7
|
+
* top or bottom edge.
|
|
8
|
+
*
|
|
9
|
+
* The band is decorative and lets pointer events through, so the wrapped
|
|
10
|
+
* content stays scrollable and clickable underneath it. Its height defaults to
|
|
11
|
+
* 4rem on mobile and 6rem from the medium breakpoint up, and can be retuned per
|
|
12
|
+
* usage with the `--ui-fade-mask-height` custom property.
|
|
13
|
+
* @category Layout
|
|
14
|
+
* @useCases scroll fade, overflow hint, clipped text fade, scroll edge indicator, sticky header backdrop
|
|
15
|
+
* @keywords fade, mask, gradient, scrim, overlay, scroll, overflow, edge
|
|
16
|
+
* @related UiSeparator, UiSheet
|
|
17
|
+
*/
|
|
18
|
+
export interface UiFadeMaskProps {
|
|
19
|
+
/**
|
|
20
|
+
* Surface the gradient fades into. Match it to the background the wrapped
|
|
21
|
+
* content sits on, otherwise the fade ends on a visible edge.
|
|
22
|
+
* @default 'secondary'
|
|
23
|
+
*/
|
|
24
|
+
background?: UiFadeMaskBackground;
|
|
25
|
+
/**
|
|
26
|
+
* Edge the band is pinned to. `top` is opaque at the top and fades downwards,
|
|
27
|
+
* `bottom` is opaque at the bottom and fades upwards. The bottom fade ramps
|
|
28
|
+
* across the whole band on desktop and turns opaque near the top edge on
|
|
29
|
+
* mobile, so it reads the same at both band heights.
|
|
30
|
+
* @default 'top'
|
|
31
|
+
*/
|
|
32
|
+
position?: UiFadeMaskPosition;
|
|
33
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AcceptableValue } from 'reka-ui';
|
|
2
|
+
import { UiListboxVirtualizerProps, UiListboxVirtualizerSlotProps } from './types';
|
|
3
|
+
declare const _default: <T extends AcceptableValue>(__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<{
|
|
4
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & UiListboxVirtualizerProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
5
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
6
|
+
attrs: any;
|
|
7
|
+
slots: Readonly<{
|
|
8
|
+
/** A single option, which has to render exactly one `UiListboxItem`. */
|
|
9
|
+
default(props: UiListboxVirtualizerSlotProps<T>): unknown;
|
|
10
|
+
}> & {
|
|
11
|
+
/** A single option, which has to render exactly one `UiListboxItem`. */
|
|
12
|
+
default(props: UiListboxVirtualizerSlotProps<T>): unknown;
|
|
13
|
+
};
|
|
14
|
+
emit: {};
|
|
15
|
+
}>) => import('vue').VNode & {
|
|
16
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_PrettifyLocal<T> = {
|
|
20
|
+
[K in keyof T]: T[K];
|
|
21
|
+
} & {};
|
|
@@ -3,6 +3,7 @@ export { default as UiListboxContent } from './UiListboxContent.vue';
|
|
|
3
3
|
export { default as UiListboxFilter } from './UiListboxFilter.vue';
|
|
4
4
|
export { default as UiListboxItem } from './UiListboxItem.vue';
|
|
5
5
|
export { default as UiListboxItemIndicator } from './UiListboxItemIndicator.vue';
|
|
6
|
+
export { default as UiListboxVirtualizer } from './UiListboxVirtualizer.vue';
|
|
6
7
|
export { default as UiListboxGroup } from './UiListboxGroup.vue';
|
|
7
8
|
export { default as UiListboxGroupLabel } from './UiListboxGroupLabel.vue';
|
|
8
9
|
export type * from './types';
|
|
@@ -85,6 +85,42 @@ export interface UiListboxItemProps {
|
|
|
85
85
|
*/
|
|
86
86
|
disabled?: boolean;
|
|
87
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* Props for the UiListboxVirtualizer component.
|
|
90
|
+
* Renders only the options in view, for lists too long to mount at once.
|
|
91
|
+
*/
|
|
92
|
+
export interface UiListboxVirtualizerProps<T extends AcceptableValue = AcceptableValue> {
|
|
93
|
+
/**
|
|
94
|
+
* The full list of options to virtualize.
|
|
95
|
+
*/
|
|
96
|
+
options: T[];
|
|
97
|
+
/**
|
|
98
|
+
* How many options to render outside the visible area, as a scroll buffer.
|
|
99
|
+
* @default 12
|
|
100
|
+
*/
|
|
101
|
+
overscan?: number;
|
|
102
|
+
/**
|
|
103
|
+
* The expected height of an option in pixels, used to size the scrollbar
|
|
104
|
+
* before the options are measured.
|
|
105
|
+
* @default 28
|
|
106
|
+
*/
|
|
107
|
+
estimateSize?: number | ((index: number) => number);
|
|
108
|
+
/**
|
|
109
|
+
* The text of an option, used for type-ahead. Required for object options,
|
|
110
|
+
* which have no meaningful string form.
|
|
111
|
+
*/
|
|
112
|
+
textContent?: (option: T) => string;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Slot props for the UiListboxVirtualizer default slot.
|
|
116
|
+
* Describes the option to render.
|
|
117
|
+
*/
|
|
118
|
+
export interface UiListboxVirtualizerSlotProps<T extends AcceptableValue = AcceptableValue> {
|
|
119
|
+
/** The option to render. */
|
|
120
|
+
option: T;
|
|
121
|
+
/** The position of the option in the full list, starting at 0. */
|
|
122
|
+
index: number;
|
|
123
|
+
}
|
|
88
124
|
/**
|
|
89
125
|
* Props for the UiListboxItemIndicator component.
|
|
90
126
|
* Displays a visual indicator when the item is selected.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
import { UiSelectVirtualizerProps, UiSelectVirtualizerSlotProps } from './types';
|
|
3
|
+
declare const _default: <T>(__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<{
|
|
4
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & UiSelectVirtualizerProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
5
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
6
|
+
attrs: any;
|
|
7
|
+
slots: Readonly<{
|
|
8
|
+
/** A single option, which has to render exactly one `UiSelectItem`. */
|
|
9
|
+
default(props: UiSelectVirtualizerSlotProps<T>): VNode[];
|
|
10
|
+
}> & {
|
|
11
|
+
/** A single option, which has to render exactly one `UiSelectItem`. */
|
|
12
|
+
default(props: UiSelectVirtualizerSlotProps<T>): VNode[];
|
|
13
|
+
};
|
|
14
|
+
emit: {};
|
|
15
|
+
}>) => import('vue').VNode & {
|
|
16
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_PrettifyLocal<T> = {
|
|
20
|
+
[K in keyof T]: T[K];
|
|
21
|
+
} & {};
|
|
@@ -2,6 +2,7 @@ export { default as UiSelect } from './UiSelect.vue';
|
|
|
2
2
|
export { default as UiSelectTrigger } from './UiSelectTrigger.vue';
|
|
3
3
|
export { default as UiSelectContent } from './UiSelectContent.vue';
|
|
4
4
|
export { default as UiSelectItem } from './UiSelectItem.vue';
|
|
5
|
+
export { default as UiSelectVirtualizer } from './UiSelectVirtualizer.vue';
|
|
5
6
|
export { default as UiSelectValue } from './UiSelectValue.vue';
|
|
6
7
|
export { default as UiSelectLabel } from './UiSelectLabel.vue';
|
|
7
8
|
export { default as UiSelectGroup } from './UiSelectGroup.vue';
|
|
@@ -121,6 +121,42 @@ export type UiSelectItemProps = {
|
|
|
121
121
|
/** Text for typeahead purposes. */
|
|
122
122
|
textValue?: string;
|
|
123
123
|
};
|
|
124
|
+
/**
|
|
125
|
+
* Props for the UiSelectVirtualizer component.
|
|
126
|
+
* Renders only the options in view, for lists too long to mount at once.
|
|
127
|
+
*/
|
|
128
|
+
export type UiSelectVirtualizerProps<T> = {
|
|
129
|
+
/** The full list of options to virtualize. */
|
|
130
|
+
options: T[];
|
|
131
|
+
/**
|
|
132
|
+
* The value of an option, matched against the select's own value to open on
|
|
133
|
+
* the current selection. Defaults to the option itself as a string.
|
|
134
|
+
*/
|
|
135
|
+
optionValue?: (option: T) => string;
|
|
136
|
+
/**
|
|
137
|
+
* The text of an option, used for type-ahead. Required for object options,
|
|
138
|
+
* which have no meaningful string form.
|
|
139
|
+
*/
|
|
140
|
+
textContent?: (option: T) => string;
|
|
141
|
+
/**
|
|
142
|
+
* The expected height of an option in pixels, used to size the scrollbar
|
|
143
|
+
* before the options are measured.
|
|
144
|
+
*/
|
|
145
|
+
estimateSize?: number;
|
|
146
|
+
/** How many options to render outside the visible area, as a scroll buffer. */
|
|
147
|
+
overscan?: number;
|
|
148
|
+
/** Additional classes for the scroll container, such as its height. */
|
|
149
|
+
class?: HTMLAttributes['class'];
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Slot props for the UiSelectVirtualizer default slot.
|
|
153
|
+
*/
|
|
154
|
+
export type UiSelectVirtualizerSlotProps<T> = {
|
|
155
|
+
/** The option to render. */
|
|
156
|
+
option: T;
|
|
157
|
+
/** The position of the option in the full list, starting at 0. */
|
|
158
|
+
index: number;
|
|
159
|
+
};
|
|
124
160
|
/**
|
|
125
161
|
* Props for the UiSelectValue component.
|
|
126
162
|
*/
|
|
@@ -27,11 +27,6 @@ export interface UiToggleGroupBaseProps {
|
|
|
27
27
|
* @default true
|
|
28
28
|
*/
|
|
29
29
|
rovingFocus?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* The orientation of the toggle group for keyboard navigation.
|
|
32
|
-
* @default 'horizontal'
|
|
33
|
-
*/
|
|
34
|
-
orientation?: 'horizontal' | 'vertical';
|
|
35
30
|
}
|
|
36
31
|
/**
|
|
37
32
|
* Props for single selection toggle group.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
class?: HTMLAttributes['class'];
|
|
4
|
+
};
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: HTMLElement;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
class?: HTMLAttributes['class'];
|
|
4
|
+
};
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: HTMLSpanElement;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|