@avenirs-esr/avenirs-dsav 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/avenirs-dsav.css +1 -1
- package/dist/avenirs-dsav.es.js +7375 -15307
- package/dist/avenirs-dsav.umd.js +73 -110
- package/dist/src/App.vue.d.ts +2 -0
- package/dist/src/components/badges/AvBadge/AvBadge.stories.d.ts +44 -0
- package/dist/src/components/badges/AvBadge/AvBadge.stub.d.ts +30 -0
- package/dist/src/components/badges/AvBadge/AvBadge.test.d.ts +1 -0
- package/dist/src/components/badges/AvBadge/AvBadge.vue.d.ts +44 -0
- package/dist/src/components/badges/index.d.ts +1 -0
- package/dist/src/components/base/AvIconText/AvIconText.stories.d.ts +36 -0
- package/dist/src/components/base/AvIconText/AvIconText.test.d.ts +1 -0
- package/dist/src/components/base/AvIconText/AvIconText.vue.d.ts +40 -0
- package/dist/src/components/base/AvNotice/AvNotice.stories.d.ts +63 -0
- package/dist/src/components/base/AvNotice/AvNotice.test.d.ts +1 -0
- package/dist/src/components/base/AvNotice/AvNotice.vue.d.ts +22 -0
- package/dist/src/components/base/AvVIcon/AvVIcon.stories.d.ts +47 -0
- package/dist/src/components/base/AvVIcon/AvVIcon.stub.d.ts +9 -0
- package/dist/src/components/base/AvVIcon/AvVIcon.vue.d.ts +54 -0
- package/dist/src/components/base/index.d.ts +2 -0
- package/dist/src/components/cards/AvCard/AvCard.stories.d.ts +28 -0
- package/dist/src/components/cards/AvCard/AvCard.test.d.ts +1 -0
- package/dist/src/components/cards/AvCard/AvCard.vue.d.ts +58 -0
- package/dist/src/components/cards/index.d.ts +1 -0
- package/dist/src/components/feedback/AvAlert/AvAlert.test.d.ts +1 -0
- package/dist/src/components/feedback/AvAlert/AvAlert.vue.d.ts +77 -0
- package/dist/src/components/feedback/AvToaster/AvToaster.test.d.ts +1 -0
- package/dist/src/components/feedback/AvToaster/AvToaster.vue.d.ts +79 -0
- package/dist/src/components/feedback/index.d.ts +2 -0
- package/dist/src/components/header/AvHeader/AvHeader.test.d.ts +1 -0
- package/dist/src/components/header/AvHeader/AvHeader.vue.d.ts +132 -0
- package/dist/src/components/header/AvHeaderMenuLinks/AvHeaderMenuLinks.test.d.ts +1 -0
- package/dist/src/components/header/AvHeaderMenuLinks/AvHeaderMenuLinks.vue.d.ts +38 -0
- package/dist/src/components/header/AvLogo.vue.d.ts +2 -0
- package/dist/src/components/header/EsupLogo.test.d.ts +1 -0
- package/dist/src/components/header/EsupLogo.vue.d.ts +7 -0
- package/dist/src/components/header/index.d.ts +5 -0
- package/dist/src/components/index.d.ts +8 -0
- package/dist/src/components/interaction/accordions/AvAccordion/AvAccordion.stories.d.ts +30 -0
- package/dist/src/components/interaction/accordions/AvAccordion/AvAccordion.test.d.ts +1 -0
- package/dist/src/components/interaction/accordions/AvAccordion/AvAccordion.vue.d.ts +31 -0
- package/dist/src/components/interaction/accordions/AvAccordionsGroup/AvAccordionsGroup.stories.d.ts +48 -0
- package/dist/src/components/interaction/accordions/AvAccordionsGroup/AvAccordionsGroup.test.d.ts +1 -0
- package/dist/src/components/interaction/accordions/AvAccordionsGroup/AvAccordionsGroup.vue.d.ts +36 -0
- package/dist/src/components/interaction/accordions/index.d.ts +2 -0
- package/dist/src/components/interaction/buttons/AvButton/AvButton.stories.d.ts +75 -0
- package/dist/src/components/interaction/buttons/AvButton/AvButton.stub.d.ts +15 -0
- package/dist/src/components/interaction/buttons/AvButton/AvButton.test.d.ts +1 -0
- package/dist/src/components/interaction/buttons/AvButton/AvButton.vue.d.ts +78 -0
- package/dist/src/components/interaction/buttons/AvRichButton/AvRichButton.stories.d.ts +39 -0
- package/dist/src/components/interaction/buttons/AvRichButton/AvRichButton.test.d.ts +1 -0
- package/dist/src/components/interaction/buttons/AvRichButton/AvRichButton.vue.d.ts +48 -0
- package/dist/src/components/interaction/buttons/index.d.ts +2 -0
- package/dist/src/components/interaction/files/AvFileUpload/AvFileUpload.stories.d.ts +30 -0
- package/dist/src/components/interaction/files/AvFileUpload/AvFileUpload.test.d.ts +1 -0
- package/dist/src/components/interaction/files/AvFileUpload/AvFileUpload.vue.d.ts +131 -0
- package/dist/src/components/interaction/files/AvFileUpload/AvFileUploadAlert.vue.d.ts +19 -0
- package/dist/src/components/interaction/files/index.d.ts +1 -0
- package/dist/src/components/interaction/index.d.ts +10 -0
- package/dist/src/components/interaction/inputs/AvInput/AvInput.stories.d.ts +71 -0
- package/dist/src/components/interaction/inputs/AvInput/AvInput.test.d.ts +1 -0
- package/dist/src/components/interaction/inputs/AvInput/AvInput.vue.d.ts +111 -0
- package/dist/src/components/interaction/inputs/index.d.ts +1 -0
- package/dist/src/components/interaction/lists/AvList/AvList.stories.d.ts +55 -0
- package/dist/src/components/interaction/lists/AvList/AvList.stub.d.ts +5 -0
- package/dist/src/components/interaction/lists/AvList/AvList.test.d.ts +1 -0
- package/dist/src/components/interaction/lists/AvList/AvList.vue.d.ts +74 -0
- package/dist/src/components/interaction/lists/AvListItem/AvListItem.stories.d.ts +59 -0
- package/dist/src/components/interaction/lists/AvListItem/AvListItem.stub.d.ts +19 -0
- package/dist/src/components/interaction/lists/AvListItem/AvListItem.test.d.ts +1 -0
- package/dist/src/components/interaction/lists/AvListItem/AvListItem.vue.d.ts +112 -0
- package/dist/src/components/interaction/lists/index.d.ts +2 -0
- package/dist/src/components/interaction/pickers/AvPageSizePicker/AvPageSizePicker.stories.d.ts +24 -0
- package/dist/src/components/interaction/pickers/AvPageSizePicker/AvPageSizePicker.test.d.ts +1 -0
- package/dist/src/components/interaction/pickers/AvPageSizePicker/AvPageSizePicker.vue.d.ts +23 -0
- package/dist/src/components/interaction/pickers/AvTagPicker/AvTagPicker.stories.d.ts +96 -0
- package/dist/src/components/interaction/pickers/AvTagPicker/AvTagPicker.stub.d.ts +11 -0
- package/dist/src/components/interaction/pickers/AvTagPicker/AvTagPicker.test.d.ts +1 -0
- package/dist/src/components/interaction/pickers/AvTagPicker/AvTagPicker.vue.d.ts +79 -0
- package/dist/src/components/interaction/pickers/index.d.ts +2 -0
- package/dist/src/components/interaction/radios/AvRadioButton/AvRadioButton.stories.d.ts +34 -0
- package/dist/src/components/interaction/radios/AvRadioButton/AvRadioButton.test.d.ts +1 -0
- package/dist/src/components/interaction/radios/AvRadioButton/AvRadioButton.vue.d.ts +38 -0
- package/dist/src/components/interaction/radios/AvRadioButtonSet/AvRadioButtonSet.stories.d.ts +54 -0
- package/dist/src/components/interaction/radios/AvRadioButtonSet/AvRadioButtonSet.test.d.ts +1 -0
- package/dist/src/components/interaction/radios/AvRadioButtonSet/AvRadioButtonSet.vue.d.ts +76 -0
- package/dist/src/components/interaction/radios/index.d.ts +2 -0
- package/dist/src/components/interaction/selects/AvAutocomplete/AvAutocomplete.stories.d.ts +553 -0
- package/dist/src/components/interaction/selects/AvAutocomplete/AvAutocomplete.stub.d.ts +28 -0
- package/dist/src/components/interaction/selects/AvAutocomplete/AvAutocomplete.test.d.ts +1 -0
- package/dist/src/components/interaction/selects/AvAutocomplete/AvAutocomplete.types.d.ts +101 -0
- package/dist/src/components/interaction/selects/AvAutocomplete/AvAutocomplete.vue.d.ts +204 -0
- package/dist/src/components/interaction/selects/AvAutocomplete/AvAutocompleteContext.d.ts +14 -0
- package/dist/src/components/interaction/selects/AvAutocomplete/AvAutocompleteDropdown.vue.d.ts +60 -0
- package/dist/src/components/interaction/selects/AvAutocomplete/AvAutocompleteInput.vue.d.ts +309 -0
- package/dist/src/components/interaction/selects/AvAutocomplete/AvAutocompleteSelectedTags.vue.d.ts +42 -0
- package/dist/src/components/interaction/selects/AvSelect/AvSelect.stories.d.ts +103 -0
- package/dist/src/components/interaction/selects/AvSelect/AvSelect.stub.d.ts +15 -0
- package/dist/src/components/interaction/selects/AvSelect/AvSelect.test.d.ts +1 -0
- package/dist/src/components/interaction/selects/AvSelect/AvSelect.vue.d.ts +63 -0
- package/dist/src/components/interaction/selects/index.d.ts +3 -0
- package/dist/src/components/interaction/tabs/AvTab/AvTab.stories.d.ts +34 -0
- package/dist/src/components/interaction/tabs/AvTab/AvTab.test.d.ts +1 -0
- package/dist/src/components/interaction/tabs/AvTab/AvTab.vue.d.ts +31 -0
- package/dist/src/components/interaction/tabs/AvTabs/AvTabs.stories.d.ts +51 -0
- package/dist/src/components/interaction/tabs/AvTabs/AvTabs.test.d.ts +1 -0
- package/dist/src/components/interaction/tabs/AvTabs/AvTabs.vue.d.ts +40 -0
- package/dist/src/components/interaction/tabs/index.d.ts +2 -0
- package/dist/src/components/interaction/toggles/AvToggle/AvToggle.stories.d.ts +21 -0
- package/dist/src/components/interaction/toggles/AvToggle/AvToggle.test.d.ts +1 -0
- package/dist/src/components/interaction/toggles/AvToggle/AvToggle.vue.d.ts +46 -0
- package/dist/src/components/interaction/toggles/index.d.ts +1 -0
- package/dist/src/components/navigation/AvNavigation/AvNavigation.stories.d.ts +34 -0
- package/dist/src/components/navigation/AvNavigation/AvNavigation.test.d.ts +1 -0
- package/dist/src/components/navigation/AvNavigation/AvNavigation.vue.d.ts +16 -0
- package/dist/src/components/navigation/AvNavigation/index.d.ts +1 -0
- package/dist/src/components/navigation/AvPagination/AvPagination.test.d.ts +1 -0
- package/dist/src/components/navigation/AvPagination/AvPagination.vue.d.ts +57 -0
- package/dist/src/components/navigation/AvPagination/utils.d.ts +14 -0
- package/dist/src/components/navigation/AvPagination/utils.test.d.ts +1 -0
- package/dist/src/components/navigation/AvSideMenu/AvSideMenu.stories.d.ts +55 -0
- package/dist/src/components/navigation/AvSideMenu/AvSideMenu.test.d.ts +1 -0
- package/dist/src/components/navigation/AvSideMenu/AvSideMenu.vue.d.ts +61 -0
- package/dist/src/components/navigation/AvSideNavigation/AvSideNavigation.stories.d.ts +58 -0
- package/dist/src/components/navigation/AvSideNavigation/AvSideNavigation.stub.d.ts +16 -0
- package/dist/src/components/navigation/AvSideNavigation/AvSideNavigation.test.d.ts +1 -0
- package/dist/src/components/navigation/AvSideNavigation/AvSideNavigation.vue.d.ts +38 -0
- package/dist/src/components/navigation/index.d.ts +5 -0
- package/dist/src/components/overlay/drawers/AvDrawer/AvDrawer.stories.d.ts +53 -0
- package/dist/src/components/overlay/drawers/AvDrawer/AvDrawer.stub.d.ts +11 -0
- package/dist/src/components/overlay/drawers/AvDrawer/AvDrawer.test.d.ts +1 -0
- package/dist/src/components/overlay/drawers/AvDrawer/AvDrawer.vue.d.ts +60 -0
- package/dist/src/components/overlay/index.d.ts +3 -0
- package/dist/src/components/overlay/modals/AvModal/AvModal.test.d.ts +1 -0
- package/dist/src/components/overlay/modals/AvModal/AvModal.vue.d.ts +74 -0
- package/dist/src/components/overlay/popovers/AvPopover/AvPopover.stories.d.ts +49 -0
- package/dist/src/components/overlay/popovers/AvPopover/AvPopover.test.d.ts +1 -0
- package/dist/src/components/overlay/popovers/AvPopover/AvPopover.vue.d.ts +48 -0
- package/dist/src/components/overlay/popovers/AvPopover/use-popover.d.ts +41 -0
- package/dist/src/components/overlay/popovers/AvPopover/use-popover.test.d.ts +1 -0
- package/dist/src/composables/index.d.ts +1 -0
- package/dist/src/composables/use-focus-trap/use-focus-trap.d.ts +25 -0
- package/dist/src/composables/use-focus-trap/use-focus-trap.test.d.ts +1 -0
- package/dist/src/config/index.d.ts +1 -0
- package/dist/src/config/page-sizes.d.ts +6 -0
- package/dist/src/index.d.ts +5 -0
- package/dist/src/main.d.ts +8 -0
- package/dist/src/stories/foundations/icons.stories.d.ts +6 -0
- package/dist/src/stories/foundations/typography.stories.d.ts +5 -0
- package/dist/src/tests/index.d.ts +2 -0
- package/dist/src/tests/stubs.d.ts +62 -0
- package/dist/src/tests/utils.d.ts +34 -0
- package/dist/src/tokens/icons.d.ts +79 -0
- package/dist/src/tokens/index.d.ts +1 -0
- package/dist/src/utils/array/array.d.ts +8 -0
- package/dist/src/utils/forms/form.test.d.ts +1 -0
- package/dist/src/utils/forms/forms.d.ts +6 -0
- package/dist/src/utils/index.d.ts +3 -0
- package/dist/src/utils/string/string.d.ts +21 -0
- package/dist/src/utils/string/string.test.d.ts +1 -0
- package/package.json +6 -5
- package/dist/android-chrome-192x192.png +0 -0
- package/dist/android-chrome-512x512.png +0 -0
- package/dist/apple-touch-icon.png +0 -0
- package/dist/browserconfig.xml +0 -2
- package/dist/favicon-16x16.png +0 -0
- package/dist/favicon-32x32.png +0 -0
- package/dist/favicon.ico +0 -0
- package/dist/manifest.json +0 -41
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { Slot } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* AvRichButton component props.
|
|
4
|
+
*/
|
|
5
|
+
export interface AvRichButtonProps {
|
|
6
|
+
/**
|
|
7
|
+
* Button aria label and title for accessibility.
|
|
8
|
+
*/
|
|
9
|
+
label: string;
|
|
10
|
+
/**
|
|
11
|
+
* Icon displayed on the left of the button.
|
|
12
|
+
* Must be an icon name.
|
|
13
|
+
*/
|
|
14
|
+
iconLeft?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Icon displayed on the right of the button.
|
|
17
|
+
* Must be an icon name.
|
|
18
|
+
*/
|
|
19
|
+
iconRight?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Allows you to change the padding of the button.
|
|
22
|
+
* @default '1rem'
|
|
23
|
+
*/
|
|
24
|
+
customPadding?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Function called when button is clicked.
|
|
27
|
+
* @param event The MouseEvent of the click.
|
|
28
|
+
*/
|
|
29
|
+
onClick?: (event: MouseEvent) => void;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Slots available in the AvRichButton component.
|
|
33
|
+
*
|
|
34
|
+
* @slot default - Default slot for rich button content.
|
|
35
|
+
*/
|
|
36
|
+
type __VLS_Slots = {
|
|
37
|
+
/**
|
|
38
|
+
* Default slot for rich button content.
|
|
39
|
+
*/
|
|
40
|
+
default: Slot;
|
|
41
|
+
};
|
|
42
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvRichButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvRichButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import { type AvFileUploadProps } from '@/components/interaction/files/AvFileUpload/AvFileUpload.vue';
|
|
3
|
+
/**
|
|
4
|
+
* <h1 class="n1">File uploader - <code>AvFileUpload</code></h1>
|
|
5
|
+
*
|
|
6
|
+
* <h2 class="n2">🌟 Introduction</h2>
|
|
7
|
+
*
|
|
8
|
+
* <p>
|
|
9
|
+
* <span class="b2-regular">
|
|
10
|
+
* The <code>AvFileUpload</code> component is an adaptation of the <code>DsfrFileUpload</code> code.
|
|
11
|
+
* This component allows you to upload files by clicking on the file upload area
|
|
12
|
+
* or by dragging and dropping a file in the area.
|
|
13
|
+
* </span>
|
|
14
|
+
* </p>
|
|
15
|
+
*
|
|
16
|
+
* <p>
|
|
17
|
+
* <span class="b2-regular">
|
|
18
|
+
* 🏅 Documentation on <code>DsfrFileUpload</code> can be found at
|
|
19
|
+
* <a href="https://vue-ds.fr/composants/DsfrFileUpload" target="_blank" rel="noopener noreferrer">VueDSFR</a>
|
|
20
|
+
* </span>
|
|
21
|
+
* </p>
|
|
22
|
+
*/
|
|
23
|
+
declare const meta: Meta<AvFileUploadProps>;
|
|
24
|
+
export default meta;
|
|
25
|
+
export declare const Default: StoryFn<AvFileUploadProps>;
|
|
26
|
+
export declare const Error: StoryFn<AvFileUploadProps>;
|
|
27
|
+
export declare const Success: StoryFn<AvFileUploadProps>;
|
|
28
|
+
export declare const LeftSlot: StoryFn<AvFileUploadProps & {
|
|
29
|
+
leftImageSrc: string;
|
|
30
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { type Slot } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* AvFileUpload component props.
|
|
4
|
+
*/
|
|
5
|
+
export interface AvFileUploadProps {
|
|
6
|
+
/**
|
|
7
|
+
* Unique identifier for the file download component.
|
|
8
|
+
* If not specified, a random ID is generated.
|
|
9
|
+
*
|
|
10
|
+
* @default () => useRandomId(...)
|
|
11
|
+
*/
|
|
12
|
+
id?: string;
|
|
13
|
+
/**
|
|
14
|
+
* ARIA label for file download button.
|
|
15
|
+
*
|
|
16
|
+
* @default ''
|
|
17
|
+
*/
|
|
18
|
+
ariaLabel?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Accepted file types, specified as a string (like HTML `accept` attribute)
|
|
21
|
+
* or an array of strings (which will be transformed into a string).
|
|
22
|
+
*
|
|
23
|
+
* @default undefined
|
|
24
|
+
*/
|
|
25
|
+
accept?: string | string[];
|
|
26
|
+
/**
|
|
27
|
+
* Error message to be displayed in case of download problem.
|
|
28
|
+
*
|
|
29
|
+
* @default ''
|
|
30
|
+
*/
|
|
31
|
+
error?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Message indicating that the downloaded file is valid.
|
|
34
|
+
*
|
|
35
|
+
* @default ''
|
|
36
|
+
*/
|
|
37
|
+
validMessage?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Whether the file upload input is disabled.
|
|
40
|
+
*
|
|
41
|
+
* @default false
|
|
42
|
+
*/
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Value linked to file upload input template.
|
|
46
|
+
*
|
|
47
|
+
* @default null
|
|
48
|
+
*/
|
|
49
|
+
modelValue?: File | null;
|
|
50
|
+
/**
|
|
51
|
+
* Max width of the component.
|
|
52
|
+
*
|
|
53
|
+
* @default undefined
|
|
54
|
+
*/
|
|
55
|
+
maxWidth?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Title of the file upload section.
|
|
58
|
+
*/
|
|
59
|
+
title: string;
|
|
60
|
+
/**
|
|
61
|
+
* Description of the file upload section.
|
|
62
|
+
* @default undefined
|
|
63
|
+
*/
|
|
64
|
+
description: string;
|
|
65
|
+
/**
|
|
66
|
+
* delete button label
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
deleteButtonLabel: string;
|
|
70
|
+
/**
|
|
71
|
+
* Name of actual file.
|
|
72
|
+
*
|
|
73
|
+
* @default undefined
|
|
74
|
+
*/
|
|
75
|
+
fileName?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Method executed on delete file button click.
|
|
78
|
+
*
|
|
79
|
+
* @default undefined
|
|
80
|
+
*/
|
|
81
|
+
onDeleteFile?: () => void;
|
|
82
|
+
/**
|
|
83
|
+
* Whether the file upload input enable multiple file selection or not.
|
|
84
|
+
*
|
|
85
|
+
* @default false
|
|
86
|
+
*/
|
|
87
|
+
enableMultiple?: boolean;
|
|
88
|
+
}
|
|
89
|
+
type __VLS_Slots = {
|
|
90
|
+
/**
|
|
91
|
+
* Slot for the hint description.
|
|
92
|
+
*/
|
|
93
|
+
hint?: Slot;
|
|
94
|
+
/**
|
|
95
|
+
* Slot for the left content.
|
|
96
|
+
*/
|
|
97
|
+
left?: Slot;
|
|
98
|
+
/**
|
|
99
|
+
* Default slot for global content between the left and right icons.
|
|
100
|
+
*/
|
|
101
|
+
default?: Slot;
|
|
102
|
+
};
|
|
103
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvFileUploadProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
104
|
+
change: (payload: FileList) => any;
|
|
105
|
+
"update:modelValue": (payload: File | null) => any;
|
|
106
|
+
"update:validMessage": (payload: string | null) => any;
|
|
107
|
+
"update:error": (payload: string | null) => any;
|
|
108
|
+
onDropAcceptTypeError: () => any;
|
|
109
|
+
}, string, import("vue").PublicProps, Readonly<AvFileUploadProps> & Readonly<{
|
|
110
|
+
onChange?: ((payload: FileList) => any) | undefined;
|
|
111
|
+
"onUpdate:modelValue"?: ((payload: File | null) => any) | undefined;
|
|
112
|
+
"onUpdate:validMessage"?: ((payload: string | null) => any) | undefined;
|
|
113
|
+
"onUpdate:error"?: ((payload: string | null) => any) | undefined;
|
|
114
|
+
onOnDropAcceptTypeError?: (() => any) | undefined;
|
|
115
|
+
}>, {
|
|
116
|
+
error: string;
|
|
117
|
+
id: string;
|
|
118
|
+
modelValue: File | null;
|
|
119
|
+
disabled: boolean;
|
|
120
|
+
validMessage: string;
|
|
121
|
+
ariaLabel: string;
|
|
122
|
+
accept: string | string[];
|
|
123
|
+
maxWidth: string;
|
|
124
|
+
enableMultiple: boolean;
|
|
125
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
126
|
+
export default _default;
|
|
127
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
128
|
+
new (): {
|
|
129
|
+
$slots: S;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface AvFileUploadAlertProps {
|
|
2
|
+
/**
|
|
3
|
+
* Error message to be displayed in case of upload problem.
|
|
4
|
+
*
|
|
5
|
+
* @default undefined
|
|
6
|
+
*/
|
|
7
|
+
error?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Message indicating that the uploaded file is valid.
|
|
10
|
+
*
|
|
11
|
+
* @default undefined
|
|
12
|
+
*/
|
|
13
|
+
validMessage?: string;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: import("vue").DefineComponent<AvFileUploadAlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvFileUploadAlertProps> & Readonly<{}>, {
|
|
16
|
+
error: string;
|
|
17
|
+
validMessage: string;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AvFileUpload } from './AvFileUpload/AvFileUpload.vue';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './accordions';
|
|
2
|
+
export * from './buttons';
|
|
3
|
+
export * from './files';
|
|
4
|
+
export * from './inputs';
|
|
5
|
+
export * from './lists';
|
|
6
|
+
export * from './pickers';
|
|
7
|
+
export * from './radios';
|
|
8
|
+
export * from './selects';
|
|
9
|
+
export * from './tabs';
|
|
10
|
+
export * from './toggles';
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import { type AvInputProps } from '@/components/interaction/inputs/AvInput/AvInput.vue';
|
|
3
|
+
/**
|
|
4
|
+
* <h1 class="n1">Inputs - <code>AvInput</code></h1>
|
|
5
|
+
*
|
|
6
|
+
* <h2 class="n2">🌟 Introduction</h2>
|
|
7
|
+
*
|
|
8
|
+
* <p>
|
|
9
|
+
* <span class="b2-regular">
|
|
10
|
+
* The input component provides a standardized way to collect user input in forms and interfaces.
|
|
11
|
+
* It supports various input types, validation states, and accessibility features to ensure a consistent user experience.
|
|
12
|
+
* </span>
|
|
13
|
+
* </p>
|
|
14
|
+
*
|
|
15
|
+
* <p>
|
|
16
|
+
* <span class="b2-regular">
|
|
17
|
+
* The <code>AvInput</code> component offers flexible configuration options including text inputs, textareas, validation states,
|
|
18
|
+
* labels, hints, and error messages. It's designed to be fully accessible and follows modern form design patterns.
|
|
19
|
+
* </span>
|
|
20
|
+
* </p>
|
|
21
|
+
*
|
|
22
|
+
* <p>
|
|
23
|
+
* <span class="b2-regular">
|
|
24
|
+
* It features proper focus management, keyboard navigation, and screen reader support while maintaining visual consistency
|
|
25
|
+
* with the design system's styling tokens.
|
|
26
|
+
* </span>
|
|
27
|
+
* </p>
|
|
28
|
+
*
|
|
29
|
+
* <h2 class="n2">📐 Structure</h2>
|
|
30
|
+
*
|
|
31
|
+
* <p><span class="b2-regular">The input component consists of the following elements:</span></p>
|
|
32
|
+
*
|
|
33
|
+
* <ul>
|
|
34
|
+
* <li><span class="b2-regular"><strong>Label:</strong> (optional) Descriptive text that identifies the purpose of the input</span></li>
|
|
35
|
+
* <li><span class="b2-regular"><strong>Hint:</strong> (optional) Additional guidance text displayed below the label</span></li>
|
|
36
|
+
* <li><span class="b2-regular"><strong>Input Field:</strong> The main input element that accepts user input</span></li>
|
|
37
|
+
* <li><span class="b2-regular"><strong>Validation Messages:</strong> (optional) Error or success messages displayed below the input</span></li>
|
|
38
|
+
* </ul>
|
|
39
|
+
*
|
|
40
|
+
* <p><span class="b2-regular">The input integrates:</span></p>
|
|
41
|
+
*
|
|
42
|
+
* <ul>
|
|
43
|
+
* <li><span class="b2-regular">Support for both input and textarea elements</span></li>
|
|
44
|
+
* <li><span class="b2-regular">Validation state styling (valid, invalid, disabled)</span></li>
|
|
45
|
+
* <li><span class="b2-regular">Accessibility attributes and proper labeling</span></li>
|
|
46
|
+
* <li><span class="b2-regular">Responsive design and consistent spacing</span></li>
|
|
47
|
+
* </ul>
|
|
48
|
+
*/
|
|
49
|
+
declare const meta: Meta<AvInputProps>;
|
|
50
|
+
export default meta;
|
|
51
|
+
export declare const Default: StoryFn<AvInputProps>;
|
|
52
|
+
export declare const WithHint: StoryFn<AvInputProps>;
|
|
53
|
+
export declare const Required: StoryFn<AvInputProps>;
|
|
54
|
+
export declare const Valid: StoryFn<AvInputProps>;
|
|
55
|
+
export declare const Disabled: StoryFn<AvInputProps>;
|
|
56
|
+
export declare const Email: StoryFn<AvInputProps>;
|
|
57
|
+
export declare const Password: StoryFn<AvInputProps>;
|
|
58
|
+
export declare const Textarea: StoryFn<AvInputProps>;
|
|
59
|
+
export declare const WithoutLabel: StoryFn<AvInputProps>;
|
|
60
|
+
export declare const WithMaxLength: StoryFn<AvInputProps>;
|
|
61
|
+
export declare const MultipleErrors: StoryFn<AvInputProps>;
|
|
62
|
+
export declare const MultipleValidMessages: StoryFn<AvInputProps>;
|
|
63
|
+
export declare const WithPrefixIcon: StoryFn<AvInputProps>;
|
|
64
|
+
export declare const EmailWithIcon: StoryFn<AvInputProps>;
|
|
65
|
+
export declare const PasswordWithIcon: StoryFn<AvInputProps>;
|
|
66
|
+
export declare const PhoneWithIcon: StoryFn<AvInputProps>;
|
|
67
|
+
export declare const PrefixIconWithValidation: StoryFn<AvInputProps>;
|
|
68
|
+
export declare const PrefixIconDisabled: StoryFn<AvInputProps>;
|
|
69
|
+
export declare const NumberInput: StoryFn<AvInputProps>;
|
|
70
|
+
export declare const SearchInput: StoryFn<AvInputProps>;
|
|
71
|
+
export declare const UrlInput: StoryFn<AvInputProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import type { Slot } from 'vue';
|
|
2
|
+
export interface AvInputProps {
|
|
3
|
+
/**
|
|
4
|
+
* ID of the input element
|
|
5
|
+
*/
|
|
6
|
+
id?: string;
|
|
7
|
+
/**
|
|
8
|
+
* ID of the description element
|
|
9
|
+
*/
|
|
10
|
+
descriptionId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Hint text displayed below the label
|
|
13
|
+
*/
|
|
14
|
+
hint?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Validation state - valid
|
|
17
|
+
*/
|
|
18
|
+
isValid?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Render as textarea instead of input
|
|
21
|
+
*/
|
|
22
|
+
isTextarea?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Whether the label is visible
|
|
25
|
+
*/
|
|
26
|
+
labelVisible?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Label text
|
|
29
|
+
*/
|
|
30
|
+
label?: string;
|
|
31
|
+
/**
|
|
32
|
+
* CSS class for the label
|
|
33
|
+
*/
|
|
34
|
+
labelClass?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Model value for v-model
|
|
37
|
+
*/
|
|
38
|
+
modelValue?: string | number | null;
|
|
39
|
+
/**
|
|
40
|
+
* Placeholder text
|
|
41
|
+
*/
|
|
42
|
+
placeholder?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Input type (text, email, password, etc.)
|
|
45
|
+
*/
|
|
46
|
+
type?: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search';
|
|
47
|
+
/**
|
|
48
|
+
* Whether the input is disabled
|
|
49
|
+
*/
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Whether the input is required
|
|
53
|
+
*/
|
|
54
|
+
required?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Maximum length of input
|
|
57
|
+
*/
|
|
58
|
+
maxlength?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Minimum length of input
|
|
61
|
+
*/
|
|
62
|
+
minlength?: number;
|
|
63
|
+
/**
|
|
64
|
+
* Error message to display
|
|
65
|
+
*/
|
|
66
|
+
errorMessage?: string | string[];
|
|
67
|
+
/**
|
|
68
|
+
* Valid message to display
|
|
69
|
+
*/
|
|
70
|
+
validMessage?: string | string[];
|
|
71
|
+
/**
|
|
72
|
+
* Prefix icon name (optional)
|
|
73
|
+
*/
|
|
74
|
+
prefixIcon?: string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Slots available for the component.
|
|
78
|
+
*
|
|
79
|
+
* @slot requiredTip - Slot for custom required tip content.
|
|
80
|
+
*/
|
|
81
|
+
type __VLS_Slots = {
|
|
82
|
+
/**
|
|
83
|
+
* Slot for custom required tip content
|
|
84
|
+
*/
|
|
85
|
+
requiredTip?: Slot;
|
|
86
|
+
/**
|
|
87
|
+
* Slot for custom captions, such as error or valid messages.
|
|
88
|
+
*/
|
|
89
|
+
customCaptions?: Slot<{
|
|
90
|
+
currentValue?: string | number | null;
|
|
91
|
+
maxlength?: number;
|
|
92
|
+
}>;
|
|
93
|
+
};
|
|
94
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
95
|
+
"update:modelValue": (value: string | number | null) => any;
|
|
96
|
+
}, string, import("vue").PublicProps, Readonly<AvInputProps> & Readonly<{
|
|
97
|
+
"onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
|
|
98
|
+
}>, {
|
|
99
|
+
type: "number" | "text" | "search" | "email" | "password" | "tel" | "url";
|
|
100
|
+
disabled: boolean;
|
|
101
|
+
required: boolean;
|
|
102
|
+
isValid: boolean;
|
|
103
|
+
isTextarea: boolean;
|
|
104
|
+
labelVisible: boolean;
|
|
105
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
106
|
+
export default _default;
|
|
107
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
108
|
+
new (): {
|
|
109
|
+
$slots: S;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AvInput, type AvInputProps } from './AvInput/AvInput.vue';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import { type AvListProps } from './AvList.vue';
|
|
3
|
+
/**
|
|
4
|
+
* <h1 class="n1">Lists - <code>AvList</code></h1>
|
|
5
|
+
*
|
|
6
|
+
* <h2 class="n2">🌟 Introduction</h2>
|
|
7
|
+
*
|
|
8
|
+
* <p>
|
|
9
|
+
* <span class="b2-regular">
|
|
10
|
+
* The AvList component is a flexible and accessible container for displaying collections of items.
|
|
11
|
+
* It provides a structured way to present data in a vertical list format with extensive customization options for styling, sizing, and accessibility.
|
|
12
|
+
* </span>
|
|
13
|
+
* </p>
|
|
14
|
+
*
|
|
15
|
+
* <p>
|
|
16
|
+
* <span class="b2-regular">
|
|
17
|
+
* The <code>AvList</code> component is designed to work seamlessly with <code>AvListItem</code> components, offering consistent spacing, styling, and interaction patterns.
|
|
18
|
+
* It supports various visual configurations including borders, dividers, different sizes, and full accessibility compliance.
|
|
19
|
+
* </span>
|
|
20
|
+
* </p>
|
|
21
|
+
*
|
|
22
|
+
* <p>
|
|
23
|
+
* <span class="b2-regular">
|
|
24
|
+
* It features flexible sizing system for different use cases, optional visual enhancements, and full accessibility support with ARIA attributes
|
|
25
|
+
* while maintaining visual consistency with the design system's styling tokens.
|
|
26
|
+
* </span>
|
|
27
|
+
* </p>
|
|
28
|
+
*
|
|
29
|
+
* <h2 class="n2">📐 Structure</h2>
|
|
30
|
+
*
|
|
31
|
+
* <p><span class="b2-regular">The list component consists of the following elements:</span></p>
|
|
32
|
+
*
|
|
33
|
+
* <ul>
|
|
34
|
+
* <li><span class="b2-regular"><strong>Container:</strong> (mandatory) Main wrapper that contains all list items with proper semantic structure</span></li>
|
|
35
|
+
* <li><span class="b2-regular"><strong>List Items:</strong> (mandatory) Individual items rendered within the list, typically <code>AvListItem</code> components</span></li>
|
|
36
|
+
* </ul>
|
|
37
|
+
*
|
|
38
|
+
* <p><span class="b2-regular">The list integrates:</span></p>
|
|
39
|
+
*
|
|
40
|
+
* <ul>
|
|
41
|
+
* <li><span class="b2-regular">Flexible sizing system for different use cases</span></li>
|
|
42
|
+
* <li><span class="b2-regular">Optional visual enhancements (borders, dividers)</span></li>
|
|
43
|
+
* <li><span class="b2-regular">Full accessibility support with ARIA attributes</span></li>
|
|
44
|
+
* <li><span class="b2-regular">Customizable styling through CSS custom properties</span></li>
|
|
45
|
+
* </ul>
|
|
46
|
+
*/
|
|
47
|
+
declare const meta: Meta<AvListProps>;
|
|
48
|
+
export default meta;
|
|
49
|
+
export declare const Default: StoryFn<AvListProps>;
|
|
50
|
+
export declare const Bordered: StoryFn<AvListProps>;
|
|
51
|
+
export declare const DividedList: StoryFn<AvListProps>;
|
|
52
|
+
export declare const CustomStyling: StoryFn<AvListProps>;
|
|
53
|
+
export declare const SmallSize: StoryFn<AvListProps>;
|
|
54
|
+
export declare const MediumSize: StoryFn<AvListProps>;
|
|
55
|
+
export declare const LargeSize: StoryFn<AvListProps>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const AvListStub: import("vue").DefineComponent<{
|
|
2
|
+
size?: any;
|
|
3
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
4
|
+
size?: any;
|
|
5
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { VNode } from 'vue';
|
|
2
|
+
import type AvListItem from '@/components/interaction/lists/AvListItem/AvListItem.vue';
|
|
3
|
+
/**
|
|
4
|
+
* AvList component props.
|
|
5
|
+
*/
|
|
6
|
+
export interface AvListProps {
|
|
7
|
+
/**
|
|
8
|
+
* The background color of the list.
|
|
9
|
+
* @default 'transparent'
|
|
10
|
+
*/
|
|
11
|
+
backgroundColor?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The border color of the list.
|
|
14
|
+
* @default 'var(--stroke)'
|
|
15
|
+
*/
|
|
16
|
+
borderColor?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The border radius of the list.
|
|
19
|
+
* @default '0'
|
|
20
|
+
*/
|
|
21
|
+
borderRadius?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Whether to show borders between list items.
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
bordered?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Whether to show a divider between list items.
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
divided?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The size variant of the list.
|
|
34
|
+
* @default 'small'
|
|
35
|
+
*/
|
|
36
|
+
size?: 'xsmall' | 'small' | 'medium' | 'large';
|
|
37
|
+
/**
|
|
38
|
+
* Custom padding for the list container.
|
|
39
|
+
*/
|
|
40
|
+
padding?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Accessible label for the list.
|
|
43
|
+
*/
|
|
44
|
+
ariaLabel?: string;
|
|
45
|
+
/**
|
|
46
|
+
* ID of an element that labels the list.
|
|
47
|
+
*/
|
|
48
|
+
ariaLabelledby?: string;
|
|
49
|
+
/**
|
|
50
|
+
* ID of an element that describes the list.
|
|
51
|
+
*/
|
|
52
|
+
ariaDescribedby?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The semantic role of the list.
|
|
55
|
+
* @default 'list'
|
|
56
|
+
*/
|
|
57
|
+
role?: 'list' | 'menu' | 'listbox' | 'group';
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Slots available in the AvList component.
|
|
61
|
+
*/
|
|
62
|
+
type __VLS_Slots = {
|
|
63
|
+
/**
|
|
64
|
+
* Default slot for AvListItem components.
|
|
65
|
+
*/
|
|
66
|
+
default?: () => VNode<typeof AvListItem>[];
|
|
67
|
+
};
|
|
68
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvListProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
69
|
+
export default _default;
|
|
70
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
71
|
+
new (): {
|
|
72
|
+
$slots: S;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import { type AvListItemProps } from './AvListItem.vue';
|
|
3
|
+
/**
|
|
4
|
+
* <h1 class="n1">Lists - <code>AvListItem</code></h1>
|
|
5
|
+
*
|
|
6
|
+
* <h2 class="n2">🌟 Introduction</h2>
|
|
7
|
+
*
|
|
8
|
+
* <p>
|
|
9
|
+
* <span class="b2-regular">
|
|
10
|
+
* The AvListItem component represents an individual item within a list container. It provides a flexible and accessible way to display content with optional icons, titles, descriptions, and interactive capabilities while maintaining consistent styling and behavior patterns.
|
|
11
|
+
* </span>
|
|
12
|
+
* </p>
|
|
13
|
+
*
|
|
14
|
+
* <p>
|
|
15
|
+
* <span class="b2-regular">
|
|
16
|
+
* The <code>AvListItem</code> component is designed to work seamlessly within <code>AvList</code> containers, offering extensive customization for various use cases including navigation menus, content lists, action items, and interactive elements. It supports full accessibility compliance with proper ARIA attributes and keyboard navigation.
|
|
17
|
+
* </span>
|
|
18
|
+
* </p>
|
|
19
|
+
*
|
|
20
|
+
* <p>
|
|
21
|
+
* <span class="b2-regular">
|
|
22
|
+
* It features comprehensive interaction states (hover, focus, active, disabled, selected), flexible content structure with slots, and dynamic tag rendering for different semantic contexts while maintaining visual consistency with the design system.
|
|
23
|
+
* </span>
|
|
24
|
+
* </p>
|
|
25
|
+
*
|
|
26
|
+
* <h2 class="n2">📐 Structure</h2>
|
|
27
|
+
*
|
|
28
|
+
* <p><span class="b2-regular">The list item consists of the following elements:</span></p>
|
|
29
|
+
*
|
|
30
|
+
* <ul>
|
|
31
|
+
* <li><span class="b2-regular"><strong>Container:</strong> (mandatory) Root wrapper element that can be div, button, or anchor based on usage</span></li>
|
|
32
|
+
* <li><span class="b2-regular"><strong>Icon:</strong> (optional) Visual indicator displayed on the left side of the content</span></li>
|
|
33
|
+
* <li><span class="b2-regular"><strong>Content Area:</strong> (mandatory) Contains title, description, and/or custom content</span></li>
|
|
34
|
+
* <li><span class="b2-regular"><strong>Custom Content Slot:</strong> (optional) Allows insertion of any custom elements within the content area</span></li>
|
|
35
|
+
* </ul>
|
|
36
|
+
*
|
|
37
|
+
* <p><span class="b2-regular">The list item integrates:</span></p>
|
|
38
|
+
*
|
|
39
|
+
* <ul>
|
|
40
|
+
* <li><span class="b2-regular">Dynamic tag rendering for semantic correctness (div, button, a)</span></li>
|
|
41
|
+
* <li><span class="b2-regular">Full accessibility support with ARIA attributes and keyboard navigation</span></li>
|
|
42
|
+
* <li><span class="b2-regular">Comprehensive interaction states and visual feedback</span></li>
|
|
43
|
+
* <li><span class="b2-regular">Flexible content structure with icon, title, description, and slot support</span></li>
|
|
44
|
+
* </ul>
|
|
45
|
+
*/
|
|
46
|
+
declare const meta: Meta<AvListItemProps>;
|
|
47
|
+
export default meta;
|
|
48
|
+
export declare const Default: StoryFn<AvListItemProps>;
|
|
49
|
+
export declare const WithIcon: StoryFn<AvListItemProps>;
|
|
50
|
+
export declare const Clickable: StoryFn<AvListItemProps>;
|
|
51
|
+
export declare const Selected: StoryFn<AvListItemProps>;
|
|
52
|
+
export declare const Disabled: StoryFn<AvListItemProps>;
|
|
53
|
+
export declare const TitleOnly: StoryFn<AvListItemProps>;
|
|
54
|
+
export declare const DescriptionOnly: StoryFn<AvListItemProps>;
|
|
55
|
+
export declare const NavigationLink: StoryFn<AvListItemProps>;
|
|
56
|
+
export declare const LargeIcon: StoryFn<AvListItemProps>;
|
|
57
|
+
export declare const CustomColors: StoryFn<AvListItemProps>;
|
|
58
|
+
export declare const WithCustomContent: StoryFn<AvListItemProps>;
|
|
59
|
+
export declare const WithAccessibility: StoryFn<AvListItemProps>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const AvListItemStub: import("vue").DefineComponent<{
|
|
2
|
+
icon?: any;
|
|
3
|
+
selected?: any;
|
|
4
|
+
iconSize?: any;
|
|
5
|
+
iconColor?: any;
|
|
6
|
+
hoverBackgroundColor?: any;
|
|
7
|
+
colorOnHover?: any;
|
|
8
|
+
clickable?: any;
|
|
9
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<{
|
|
10
|
+
icon?: any;
|
|
11
|
+
selected?: any;
|
|
12
|
+
iconSize?: any;
|
|
13
|
+
iconColor?: any;
|
|
14
|
+
hoverBackgroundColor?: any;
|
|
15
|
+
colorOnHover?: any;
|
|
16
|
+
clickable?: any;
|
|
17
|
+
}> & Readonly<{
|
|
18
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|