@aleph-alpha/ui-library 3.0.0 → 3.2.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 +41 -32
- package/config.js +9 -10
- package/dist/system/components/UiSnackbar/UiSnackbar.vue.d.ts +1 -0
- package/dist/system/components/UiSnackbar/UiSnackbarContent.vue.d.ts +29 -0
- package/dist/system/components/UiSnackbar/UiSnackbarIcon.vue.d.ts +3 -0
- package/dist/system/components/UiSnackbar/index.d.ts +3 -0
- package/dist/system/components/UiSnackbar/showSnackbar.d.ts +55 -0
- package/dist/system/components/UiSnackbar/types.d.ts +76 -17
- package/dist/system/components/core/sidebar/SidebarProvider.vue.d.ts +2 -0
- package/dist/system/components/core/sidebar/utils.d.ts +1 -1
- package/dist/system/index.d.ts +1 -0
- package/dist/system/lib/useDevice.d.ts +59 -0
- package/dist/system/lib.js +14655 -14319
- package/dist/system/patterns/UiSidebar/UiSidebarProvider.vue.d.ts +10 -1
- package/dist/system/patterns/UiSidebar/__tests__/sidebar-test-helpers.d.ts +55 -6
- package/dist/system/patterns/UiSidebar/index.d.ts +1 -1
- package/dist/system/patterns/UiSidebar/types.d.ts +26 -2
- package/package.json +4 -4
- package/src/@types/shims-vue.d.ts +5 -0
- package/src/components/UiButton/UiButton.stories.ts +4 -20
- package/src/components/UiCheckbox/UiCheckbox.stories.ts +4 -20
- package/src/components/UiField/UiField.stories.ts +4 -19
- package/src/components/UiIcon/UiIcon.stories.ts +2 -0
- package/src/components/UiItem/UiItem.stories.ts +4 -19
- package/src/components/UiSnackbar/UiSnackbar.stories.ts +281 -255
- package/src/components/UiSnackbar/UiSnackbar.vue +71 -241
- package/src/components/UiSnackbar/UiSnackbarContent.vue +114 -0
- package/src/components/UiSnackbar/UiSnackbarIcon.vue +78 -0
- package/src/components/UiSnackbar/__tests__/UiSnackbar.test.ts +154 -1
- package/src/components/UiSnackbar/__tests__/showSnackbar.test.ts +258 -0
- package/src/components/UiSnackbar/assets/error.svg +3 -0
- package/src/components/UiSnackbar/assets/info.svg +3 -0
- package/src/components/UiSnackbar/assets/loading.svg +14 -0
- package/src/components/UiSnackbar/assets/success.svg +5 -0
- package/src/components/UiSnackbar/assets/warning.svg +3 -0
- package/src/components/UiSnackbar/index.ts +3 -0
- package/src/components/UiSnackbar/showSnackbar.ts +174 -0
- package/src/components/UiSnackbar/types.ts +90 -17
- package/src/components/core/sidebar/Sidebar.vue +25 -27
- package/src/components/core/sidebar/SidebarInset.vue +13 -1
- package/src/components/core/sidebar/SidebarProvider.vue +22 -2
- package/src/components/core/sidebar/SidebarTrigger.vue +2 -2
- package/src/components/core/sidebar/utils.ts +1 -1
- package/src/components/core/sonner/Sonner.vue +3 -20
- package/src/directives/vHover.stories.ts +4 -0
- package/src/index.ts +1 -0
- package/src/lib/useDevice.stories.ts +408 -0
- package/src/lib/useDevice.test.ts +129 -0
- package/src/lib/useDevice.ts +199 -0
- package/src/lib/useDrag.stories.ts +5 -1
- package/src/patterns/UiSidebar/UiSidebar.stories.ts +14 -1
- package/src/patterns/UiSidebar/UiSidebarProvider.vue +21 -1
- package/src/patterns/UiSidebar/UiSidebarTrigger.vue +39 -5
- package/src/patterns/UiSidebar/__tests__/UiSidebar.test.ts +66 -1
- package/src/patterns/UiSidebar/__tests__/UiSidebarHeader.test.ts +1 -1
- package/src/patterns/UiSidebar/__tests__/UiSidebarTrigger.test.ts +1 -1
- package/src/patterns/UiSidebar/__tests__/sidebar-test-helpers.ts +21 -0
- package/src/patterns/UiSidebar/index.ts +1 -0
- package/src/patterns/UiSidebar/types.ts +29 -2
- package/src/theme/Background.stories.ts +2 -0
- package/src/theme/Border.stories.ts +2 -0
- package/src/theme/BorderRadius.stories.ts +2 -0
- package/src/theme/Extended.stories.ts +2 -0
- package/src/theme/Flex.stories.ts +2 -0
- package/src/theme/Grid.stories.ts +2 -0
- package/src/theme/HoverLayer.stories.ts +2 -0
- package/src/theme/Overlay.stories.ts +2 -0
- package/src/theme/Shadow.stories.ts +2 -0
- package/src/theme/Theme.stories.ts +2 -0
- package/src/theme/Typography.stories.ts +2 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { UiSidebarProviderProps } from './types';
|
|
1
2
|
declare function __VLS_template(): {
|
|
2
3
|
attrs: Partial<{}>;
|
|
3
4
|
slots: {
|
|
@@ -7,7 +8,15 @@ declare function __VLS_template(): {
|
|
|
7
8
|
rootEl: any;
|
|
8
9
|
};
|
|
9
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<UiSidebarProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"update:open": (open: boolean) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<UiSidebarProviderProps> & Readonly<{
|
|
14
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
open: boolean;
|
|
17
|
+
defaultOpen: boolean;
|
|
18
|
+
mobileTransitionDuration: string;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
20
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
21
|
export default _default;
|
|
13
22
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
* Call from `beforeEach`; pair with `vi.restoreAllMocks()` in `afterEach`.
|
|
4
4
|
*/
|
|
5
5
|
export declare function mockMatchMediaDesktop(): void;
|
|
6
|
+
/**
|
|
7
|
+
* Mobile viewport for `useMediaQuery('(max-width: 768px)')` in `SidebarProvider` / `Sidebar`.
|
|
8
|
+
* Call from a test before rendering; pair with `vi.restoreAllMocks()` in `afterEach`.
|
|
9
|
+
*/
|
|
10
|
+
export declare function mockMatchMediaMobile(): void;
|
|
6
11
|
/**
|
|
7
12
|
* Provider + non-collapsing sidebar + content region (typical pattern shell).
|
|
8
13
|
* @param innerTemplate
|
|
@@ -11,18 +16,40 @@ export declare function mockMatchMediaDesktop(): void;
|
|
|
11
16
|
export declare function createSidebarShell(innerTemplate: string, extraComponents?: Record<string, unknown>): {
|
|
12
17
|
components: {
|
|
13
18
|
UiSidebarProvider: {
|
|
14
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<
|
|
19
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('..').UiSidebarProviderProps> & Readonly<{
|
|
20
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
+
"update:open": (open: boolean) => any;
|
|
23
|
+
}, import('vue').PublicProps, {
|
|
24
|
+
open: boolean;
|
|
25
|
+
defaultOpen: boolean;
|
|
26
|
+
mobileTransitionDuration: string;
|
|
27
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
15
28
|
P: {};
|
|
16
29
|
B: {};
|
|
17
30
|
D: {};
|
|
18
31
|
C: {};
|
|
19
32
|
M: {};
|
|
20
33
|
Defaults: {};
|
|
21
|
-
}, Readonly<
|
|
34
|
+
}, Readonly<import('..').UiSidebarProviderProps> & Readonly<{
|
|
35
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
36
|
+
}>, {}, {}, {}, {}, {
|
|
37
|
+
open: boolean;
|
|
38
|
+
defaultOpen: boolean;
|
|
39
|
+
mobileTransitionDuration: string;
|
|
40
|
+
}>;
|
|
22
41
|
__isFragment?: never;
|
|
23
42
|
__isTeleport?: never;
|
|
24
43
|
__isSuspense?: never;
|
|
25
|
-
} & import('vue').ComponentOptionsBase<Readonly<
|
|
44
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('..').UiSidebarProviderProps> & Readonly<{
|
|
45
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
46
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
47
|
+
"update:open": (open: boolean) => any;
|
|
48
|
+
}, string, {
|
|
49
|
+
open: boolean;
|
|
50
|
+
defaultOpen: boolean;
|
|
51
|
+
mobileTransitionDuration: string;
|
|
52
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
26
53
|
$slots: {
|
|
27
54
|
default?(_: {}): any;
|
|
28
55
|
};
|
|
@@ -87,18 +114,40 @@ export declare function createSidebarShell(innerTemplate: string, extraComponent
|
|
|
87
114
|
export declare function createOffcanvasSidebar(innerTemplate: string, extraComponents?: Record<string, unknown>): {
|
|
88
115
|
components: {
|
|
89
116
|
UiSidebarProvider: {
|
|
90
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<
|
|
117
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('..').UiSidebarProviderProps> & Readonly<{
|
|
118
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
119
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
120
|
+
"update:open": (open: boolean) => any;
|
|
121
|
+
}, import('vue').PublicProps, {
|
|
122
|
+
open: boolean;
|
|
123
|
+
defaultOpen: boolean;
|
|
124
|
+
mobileTransitionDuration: string;
|
|
125
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
91
126
|
P: {};
|
|
92
127
|
B: {};
|
|
93
128
|
D: {};
|
|
94
129
|
C: {};
|
|
95
130
|
M: {};
|
|
96
131
|
Defaults: {};
|
|
97
|
-
}, Readonly<
|
|
132
|
+
}, Readonly<import('..').UiSidebarProviderProps> & Readonly<{
|
|
133
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
134
|
+
}>, {}, {}, {}, {}, {
|
|
135
|
+
open: boolean;
|
|
136
|
+
defaultOpen: boolean;
|
|
137
|
+
mobileTransitionDuration: string;
|
|
138
|
+
}>;
|
|
98
139
|
__isFragment?: never;
|
|
99
140
|
__isTeleport?: never;
|
|
100
141
|
__isSuspense?: never;
|
|
101
|
-
} & import('vue').ComponentOptionsBase<Readonly<
|
|
142
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('..').UiSidebarProviderProps> & Readonly<{
|
|
143
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
144
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
145
|
+
"update:open": (open: boolean) => any;
|
|
146
|
+
}, string, {
|
|
147
|
+
open: boolean;
|
|
148
|
+
defaultOpen: boolean;
|
|
149
|
+
mobileTransitionDuration: string;
|
|
150
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
102
151
|
$slots: {
|
|
103
152
|
default?(_: {}): any;
|
|
104
153
|
};
|
|
@@ -19,4 +19,4 @@ export { default as UiSidebarSub } from './UiSidebarSub.vue';
|
|
|
19
19
|
export { default as UiSidebarProvider } from './UiSidebarProvider.vue';
|
|
20
20
|
export { default as UiSidebarRail } from './UiSidebarRail.vue';
|
|
21
21
|
export { default as UiSidebarTrigger } from './UiSidebarTrigger.vue';
|
|
22
|
-
export type { UiSidebarContentProps, UiSidebarFooterProps, UiSidebarGroupContentProps, UiSidebarGroupLabelEmits, UiSidebarGroupLabelProps, UiSidebarGroupProps, UiSidebarHeaderProps, UiSidebarInsetProps, UiSidebarMenuButtonEmits, UiSidebarMenuButtonProps, UiSidebarMenuItemProps, UiSidebarMenuProps, UiSidebarMenuSubItemProps, UiSidebarMenuSubProps, UiSidebarSubProps, UiSidebarPopoverMenuItemEmits, UiSidebarPopoverMenuItemProps, UiSidebarPopoverMenuProps, UiSidebarPopoverProps, UiSidebarPopoverTriggerProps, UiSidebarProviderProps, UiSidebarProps, UiSidebarRailProps, UiSidebarTriggerProps, } from './types';
|
|
22
|
+
export type { UiSidebarContentProps, UiSidebarFooterProps, UiSidebarGroupContentProps, UiSidebarGroupLabelEmits, UiSidebarGroupLabelProps, UiSidebarGroupProps, UiSidebarHeaderProps, UiSidebarInsetProps, UiSidebarMenuButtonEmits, UiSidebarMenuButtonProps, UiSidebarMenuItemProps, UiSidebarMenuProps, UiSidebarMenuSubItemProps, UiSidebarMenuSubProps, UiSidebarSubProps, UiSidebarPopoverMenuItemEmits, UiSidebarPopoverMenuItemProps, UiSidebarPopoverMenuProps, UiSidebarPopoverProps, UiSidebarPopoverTriggerProps, UiSidebarProviderEmits, UiSidebarProviderProps, UiSidebarProps, UiSidebarRailProps, UiSidebarTriggerProps, } from './types';
|
|
@@ -302,9 +302,33 @@ export type UiSidebarMenuProps = Record<string, never>;
|
|
|
302
302
|
*/
|
|
303
303
|
export type UiSidebarMenuItemProps = Record<string, never>;
|
|
304
304
|
/**
|
|
305
|
-
*
|
|
305
|
+
* Provider props for the sidebar open state.
|
|
306
|
+
*/
|
|
307
|
+
export interface UiSidebarProviderProps {
|
|
308
|
+
/**
|
|
309
|
+
* Initial expanded state for uncontrolled desktop sidebars.
|
|
310
|
+
* Mobile sidebars remain collapsed by default unless `open` is controlled.
|
|
311
|
+
*/
|
|
312
|
+
defaultOpen?: boolean;
|
|
313
|
+
/**
|
|
314
|
+
* CSS duration used for the mobile sidebar and content slide animation.
|
|
315
|
+
* @default '20ms'
|
|
316
|
+
*/
|
|
317
|
+
mobileTransitionDuration?: string;
|
|
318
|
+
/**
|
|
319
|
+
* Controlled open state. On mobile this controls the sheet visibility.
|
|
320
|
+
*/
|
|
321
|
+
open?: boolean;
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Emitted events for `UiSidebarProvider`.
|
|
306
325
|
*/
|
|
307
|
-
export
|
|
326
|
+
export interface UiSidebarProviderEmits {
|
|
327
|
+
/**
|
|
328
|
+
* Fired when desktop collapse state or mobile sheet visibility changes.
|
|
329
|
+
*/
|
|
330
|
+
'update:open': [open: boolean];
|
|
331
|
+
}
|
|
308
332
|
/**
|
|
309
333
|
* @see UiSidebarContentProps
|
|
310
334
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aleph-alpha/ui-library",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/system/lib.js",
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
"vite-plugin-checker": "0.11.0",
|
|
78
78
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
79
79
|
"vite-plugin-dts": "^4.0.0",
|
|
80
|
-
"vitest": "^3.
|
|
80
|
+
"vitest": "^3.2.6",
|
|
81
81
|
"vue-router": "4.6.4",
|
|
82
82
|
"vue-tsc": "^2.2.12",
|
|
83
83
|
"wait-on": "9.0.3",
|
|
84
|
-
"@aleph-alpha/eslint-config-frontend": "0.
|
|
84
|
+
"@aleph-alpha/eslint-config-frontend": "0.7.0",
|
|
85
85
|
"@aleph-alpha/prettier-config-frontend": "2.1.0",
|
|
86
86
|
"@aleph-alpha/tsconfig-frontend": "0.7.0"
|
|
87
87
|
},
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"shiki": "^3.0.0",
|
|
117
117
|
"tailwind-merge": "^3.4.0",
|
|
118
118
|
"vue-sonner": "^2.0.9",
|
|
119
|
-
"@aleph-alpha/config-
|
|
119
|
+
"@aleph-alpha/config-unocss": "0.2.0"
|
|
120
120
|
},
|
|
121
121
|
"scripts": {
|
|
122
122
|
"build": "node scripts/prepare-build.cjs && vite build",
|
|
@@ -17,10 +17,6 @@ const MailIcon = {
|
|
|
17
17
|
template: '<UiIcon name="mail" :size="16" />',
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
const designStoryLink = '/?path=/docs/components-uibutton--design-notes';
|
|
21
|
-
const accessibilityStoryLink =
|
|
22
|
-
'/?path=/docs/components-uibutton--accessibility';
|
|
23
|
-
|
|
24
20
|
/**
|
|
25
21
|
* Buttons are used to initiate actions within an application. Their labels clearly describe the action they trigger.
|
|
26
22
|
*/
|
|
@@ -79,22 +75,6 @@ const meta: Meta<typeof UiButton> = {
|
|
|
79
75
|
disabled: false,
|
|
80
76
|
loading: false,
|
|
81
77
|
},
|
|
82
|
-
parameters: {
|
|
83
|
-
docs: {
|
|
84
|
-
links: [
|
|
85
|
-
{
|
|
86
|
-
label: 'Designer docs',
|
|
87
|
-
href: designStoryLink,
|
|
88
|
-
icon: 'palette',
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
label: 'Accessibility',
|
|
92
|
-
href: accessibilityStoryLink,
|
|
93
|
-
icon: 'accessibility',
|
|
94
|
-
},
|
|
95
|
-
],
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
78
|
};
|
|
99
79
|
|
|
100
80
|
export default meta;
|
|
@@ -199,7 +179,9 @@ export const DesignNotes: Story = {
|
|
|
199
179
|
</section>
|
|
200
180
|
`,
|
|
201
181
|
}),
|
|
182
|
+
tags: ['!autodocs'],
|
|
202
183
|
parameters: {
|
|
184
|
+
a11y: { test: 'off' },
|
|
203
185
|
chromatic: {
|
|
204
186
|
disableSnapshot: true,
|
|
205
187
|
},
|
|
@@ -295,7 +277,9 @@ export const Accessibility: Story = {
|
|
|
295
277
|
</section>
|
|
296
278
|
`,
|
|
297
279
|
}),
|
|
280
|
+
tags: ['!autodocs'],
|
|
298
281
|
parameters: {
|
|
282
|
+
a11y: { test: 'off' },
|
|
299
283
|
chromatic: {
|
|
300
284
|
disableSnapshot: true,
|
|
301
285
|
},
|
|
@@ -2,10 +2,6 @@ import type { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
|
2
2
|
import UiCheckbox from './UiCheckbox.vue';
|
|
3
3
|
import { ref } from 'vue';
|
|
4
4
|
|
|
5
|
-
const designStoryLink = '/?path=/docs/components-uicheckbox--design-notes';
|
|
6
|
-
const accessibilityStoryLink =
|
|
7
|
-
'/?path=/docs/components-uicheckbox--accessibility';
|
|
8
|
-
|
|
9
5
|
/**
|
|
10
6
|
* A control that allows the user to toggle between checked and not checked.
|
|
11
7
|
*/
|
|
@@ -28,22 +24,6 @@ const meta: Meta<typeof UiCheckbox> = {
|
|
|
28
24
|
disabled: false,
|
|
29
25
|
required: false,
|
|
30
26
|
},
|
|
31
|
-
parameters: {
|
|
32
|
-
docs: {
|
|
33
|
-
links: [
|
|
34
|
-
{
|
|
35
|
-
label: 'Designer docs',
|
|
36
|
-
href: designStoryLink,
|
|
37
|
-
icon: 'palette',
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
label: 'Accessibility',
|
|
41
|
-
href: accessibilityStoryLink,
|
|
42
|
-
icon: 'accessibility',
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
27
|
};
|
|
48
28
|
|
|
49
29
|
export default meta;
|
|
@@ -129,7 +109,9 @@ export const DesignNotes: Story = {
|
|
|
129
109
|
</section>
|
|
130
110
|
`,
|
|
131
111
|
}),
|
|
112
|
+
tags: ['!autodocs'],
|
|
132
113
|
parameters: {
|
|
114
|
+
a11y: { test: 'off' },
|
|
133
115
|
chromatic: {
|
|
134
116
|
disableSnapshot: true,
|
|
135
117
|
},
|
|
@@ -235,7 +217,9 @@ export const Accessibility: Story = {
|
|
|
235
217
|
</section>
|
|
236
218
|
`,
|
|
237
219
|
}),
|
|
220
|
+
tags: ['!autodocs'],
|
|
238
221
|
parameters: {
|
|
222
|
+
a11y: { test: 'off' },
|
|
239
223
|
chromatic: {
|
|
240
224
|
disableSnapshot: true,
|
|
241
225
|
},
|
|
@@ -29,9 +29,6 @@ import { UiTextarea } from '../UiTextarea';
|
|
|
29
29
|
import { UiButton } from '../UiButton';
|
|
30
30
|
import { ref } from 'vue';
|
|
31
31
|
|
|
32
|
-
const designStoryLink = '/?path=/docs/components-uifield--design-notes';
|
|
33
|
-
const accessibilityStoryLink = '/?path=/docs/components-uifield--accessibility';
|
|
34
|
-
|
|
35
32
|
/**
|
|
36
33
|
* Field composes label, description, and error messaging into a consistent form-field layout. Use it to keep spacing, typography, and validation feedback consistent across inputs.
|
|
37
34
|
*/
|
|
@@ -63,22 +60,6 @@ const meta: Meta<typeof UiField> = {
|
|
|
63
60
|
descriptionPlacement: 'under-input',
|
|
64
61
|
descriptionCheckbox: false,
|
|
65
62
|
},
|
|
66
|
-
parameters: {
|
|
67
|
-
docs: {
|
|
68
|
-
links: [
|
|
69
|
-
{
|
|
70
|
-
label: 'Designer docs',
|
|
71
|
-
href: designStoryLink,
|
|
72
|
-
icon: 'palette',
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
label: 'Accessibility',
|
|
76
|
-
href: accessibilityStoryLink,
|
|
77
|
-
icon: 'accessibility',
|
|
78
|
-
},
|
|
79
|
-
],
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
63
|
};
|
|
83
64
|
|
|
84
65
|
export default meta;
|
|
@@ -242,7 +223,9 @@ export const DesignNotes: Story = {
|
|
|
242
223
|
</section>
|
|
243
224
|
`,
|
|
244
225
|
}),
|
|
226
|
+
tags: ['!autodocs'],
|
|
245
227
|
parameters: {
|
|
228
|
+
a11y: { test: 'off' },
|
|
246
229
|
chromatic: {
|
|
247
230
|
disableSnapshot: true,
|
|
248
231
|
},
|
|
@@ -381,7 +364,9 @@ export const Accessibility: Story = {
|
|
|
381
364
|
</section>
|
|
382
365
|
`,
|
|
383
366
|
}),
|
|
367
|
+
tags: ['!autodocs'],
|
|
384
368
|
parameters: {
|
|
369
|
+
a11y: { test: 'off' },
|
|
385
370
|
chromatic: {
|
|
386
371
|
disableSnapshot: true,
|
|
387
372
|
},
|
|
@@ -20,9 +20,6 @@ import {
|
|
|
20
20
|
UiAvatarImage,
|
|
21
21
|
} from '../UiAvatar';
|
|
22
22
|
|
|
23
|
-
const designStoryLink = '/?path=/docs/components-uiitem--design-notes';
|
|
24
|
-
const accessibilityStoryLink = '/?path=/docs/components-uiitem--accessibility';
|
|
25
|
-
|
|
26
23
|
/**
|
|
27
24
|
* A versatile component that you can use to display any content.
|
|
28
25
|
*/
|
|
@@ -84,22 +81,6 @@ const meta: Meta<typeof UiItem> = {
|
|
|
84
81
|
asChild: false,
|
|
85
82
|
withListSemantics: false,
|
|
86
83
|
},
|
|
87
|
-
parameters: {
|
|
88
|
-
docs: {
|
|
89
|
-
links: [
|
|
90
|
-
{
|
|
91
|
-
label: 'Designer docs',
|
|
92
|
-
href: designStoryLink,
|
|
93
|
-
icon: 'palette',
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
label: 'Accessibility',
|
|
97
|
-
href: accessibilityStoryLink,
|
|
98
|
-
icon: 'accessibility',
|
|
99
|
-
},
|
|
100
|
-
],
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
84
|
};
|
|
104
85
|
|
|
105
86
|
export default meta;
|
|
@@ -491,7 +472,9 @@ export const DesignNotes: Story = {
|
|
|
491
472
|
</section>
|
|
492
473
|
`,
|
|
493
474
|
}),
|
|
475
|
+
tags: ['!autodocs'],
|
|
494
476
|
parameters: {
|
|
477
|
+
a11y: { test: 'off' },
|
|
495
478
|
chromatic: {
|
|
496
479
|
disableSnapshot: true,
|
|
497
480
|
},
|
|
@@ -558,7 +541,9 @@ export const Accessibility: Story = {
|
|
|
558
541
|
</section>
|
|
559
542
|
`,
|
|
560
543
|
}),
|
|
544
|
+
tags: ['!autodocs'],
|
|
561
545
|
parameters: {
|
|
546
|
+
a11y: { test: 'off' },
|
|
562
547
|
chromatic: {
|
|
563
548
|
disableSnapshot: true,
|
|
564
549
|
},
|