@avenirs-esr/avenirs-dsav 0.1.1 → 0.1.3
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/App.vue.d.ts +2 -0
- 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/components/badges/AvBadge/AvBadge.stories.d.ts +44 -0
- package/dist/components/badges/AvBadge/AvBadge.stub.d.ts +30 -0
- package/dist/components/badges/AvBadge/AvBadge.test.d.ts +1 -0
- package/dist/components/badges/AvBadge/AvBadge.vue.d.ts +44 -0
- package/dist/components/badges/index.d.ts +1 -0
- package/dist/components/base/AvIconText/AvIconText.stories.d.ts +36 -0
- package/dist/components/base/AvIconText/AvIconText.test.d.ts +1 -0
- package/dist/components/base/AvIconText/AvIconText.vue.d.ts +40 -0
- package/dist/components/base/AvNotice/AvNotice.stories.d.ts +63 -0
- package/dist/components/base/AvNotice/AvNotice.test.d.ts +1 -0
- package/dist/components/base/AvNotice/AvNotice.vue.d.ts +22 -0
- package/dist/components/base/AvVIcon/AvVIcon.stories.d.ts +47 -0
- package/dist/components/base/AvVIcon/AvVIcon.stub.d.ts +9 -0
- package/dist/components/base/AvVIcon/AvVIcon.vue.d.ts +54 -0
- package/dist/components/base/index.d.ts +2 -0
- package/dist/components/cards/AvCard/AvCard.stories.d.ts +28 -0
- package/dist/components/cards/AvCard/AvCard.test.d.ts +1 -0
- package/dist/components/cards/AvCard/AvCard.vue.d.ts +58 -0
- package/dist/components/cards/index.d.ts +1 -0
- package/dist/components/feedback/AvAlert/AvAlert.test.d.ts +1 -0
- package/dist/components/feedback/AvAlert/AvAlert.vue.d.ts +77 -0
- package/dist/components/feedback/AvToaster/AvToaster.test.d.ts +1 -0
- package/dist/components/feedback/AvToaster/AvToaster.vue.d.ts +79 -0
- package/dist/components/feedback/index.d.ts +2 -0
- package/dist/components/header/AvHeader/AvHeader.test.d.ts +1 -0
- package/dist/components/header/AvHeader/AvHeader.vue.d.ts +132 -0
- package/dist/components/header/AvHeaderMenuLinks/AvHeaderMenuLinks.test.d.ts +1 -0
- package/dist/components/header/AvHeaderMenuLinks/AvHeaderMenuLinks.vue.d.ts +38 -0
- package/dist/components/header/AvLogo.vue.d.ts +2 -0
- package/dist/components/header/EsupLogo.test.d.ts +1 -0
- package/dist/components/header/EsupLogo.vue.d.ts +7 -0
- package/dist/components/header/index.d.ts +5 -0
- package/dist/components/index.d.ts +8 -0
- package/dist/components/interaction/accordions/AvAccordion/AvAccordion.stories.d.ts +30 -0
- package/dist/components/interaction/accordions/AvAccordion/AvAccordion.test.d.ts +1 -0
- package/dist/components/interaction/accordions/AvAccordion/AvAccordion.vue.d.ts +31 -0
- package/dist/components/interaction/accordions/AvAccordionsGroup/AvAccordionsGroup.stories.d.ts +48 -0
- package/dist/components/interaction/accordions/AvAccordionsGroup/AvAccordionsGroup.test.d.ts +1 -0
- package/dist/components/interaction/accordions/AvAccordionsGroup/AvAccordionsGroup.vue.d.ts +36 -0
- package/dist/components/interaction/accordions/index.d.ts +2 -0
- package/dist/components/interaction/buttons/AvButton/AvButton.stories.d.ts +75 -0
- package/dist/components/interaction/buttons/AvButton/AvButton.stub.d.ts +15 -0
- package/dist/components/interaction/buttons/AvButton/AvButton.test.d.ts +1 -0
- package/dist/components/interaction/buttons/AvButton/AvButton.vue.d.ts +78 -0
- package/dist/components/interaction/buttons/AvRichButton/AvRichButton.stories.d.ts +39 -0
- package/dist/components/interaction/buttons/AvRichButton/AvRichButton.test.d.ts +1 -0
- package/dist/components/interaction/buttons/AvRichButton/AvRichButton.vue.d.ts +48 -0
- package/dist/components/interaction/buttons/index.d.ts +2 -0
- package/dist/components/interaction/files/AvFileUpload/AvFileUpload.stories.d.ts +30 -0
- package/dist/components/interaction/files/AvFileUpload/AvFileUpload.test.d.ts +1 -0
- package/dist/components/interaction/files/AvFileUpload/AvFileUpload.vue.d.ts +131 -0
- package/dist/components/interaction/files/AvFileUpload/AvFileUploadAlert.vue.d.ts +19 -0
- package/dist/components/interaction/files/index.d.ts +1 -0
- package/dist/components/interaction/index.d.ts +10 -0
- package/dist/components/interaction/inputs/AvInput/AvInput.stories.d.ts +71 -0
- package/dist/components/interaction/inputs/AvInput/AvInput.test.d.ts +1 -0
- package/dist/components/interaction/inputs/AvInput/AvInput.vue.d.ts +111 -0
- package/dist/components/interaction/inputs/index.d.ts +1 -0
- package/dist/components/interaction/lists/AvList/AvList.stories.d.ts +55 -0
- package/dist/components/interaction/lists/AvList/AvList.stub.d.ts +5 -0
- package/dist/components/interaction/lists/AvList/AvList.test.d.ts +1 -0
- package/dist/components/interaction/lists/AvList/AvList.vue.d.ts +74 -0
- package/dist/components/interaction/lists/AvListItem/AvListItem.stories.d.ts +59 -0
- package/dist/components/interaction/lists/AvListItem/AvListItem.stub.d.ts +19 -0
- package/dist/components/interaction/lists/AvListItem/AvListItem.test.d.ts +1 -0
- package/dist/components/interaction/lists/AvListItem/AvListItem.vue.d.ts +112 -0
- package/dist/components/interaction/lists/index.d.ts +2 -0
- package/dist/components/interaction/pickers/AvPageSizePicker/AvPageSizePicker.stories.d.ts +24 -0
- package/dist/components/interaction/pickers/AvPageSizePicker/AvPageSizePicker.test.d.ts +1 -0
- package/dist/components/interaction/pickers/AvPageSizePicker/AvPageSizePicker.vue.d.ts +23 -0
- package/dist/components/interaction/pickers/AvTagPicker/AvTagPicker.stories.d.ts +96 -0
- package/dist/components/interaction/pickers/AvTagPicker/AvTagPicker.stub.d.ts +11 -0
- package/dist/components/interaction/pickers/AvTagPicker/AvTagPicker.test.d.ts +1 -0
- package/dist/components/interaction/pickers/AvTagPicker/AvTagPicker.vue.d.ts +79 -0
- package/dist/components/interaction/pickers/index.d.ts +2 -0
- package/dist/components/interaction/radios/AvRadioButton/AvRadioButton.stories.d.ts +34 -0
- package/dist/components/interaction/radios/AvRadioButton/AvRadioButton.test.d.ts +1 -0
- package/dist/components/interaction/radios/AvRadioButton/AvRadioButton.vue.d.ts +38 -0
- package/dist/components/interaction/radios/AvRadioButtonSet/AvRadioButtonSet.stories.d.ts +54 -0
- package/dist/components/interaction/radios/AvRadioButtonSet/AvRadioButtonSet.test.d.ts +1 -0
- package/dist/components/interaction/radios/AvRadioButtonSet/AvRadioButtonSet.vue.d.ts +76 -0
- package/dist/components/interaction/radios/index.d.ts +2 -0
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.stories.d.ts +553 -0
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.stub.d.ts +28 -0
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.test.d.ts +1 -0
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.types.d.ts +101 -0
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.vue.d.ts +204 -0
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocompleteContext.d.ts +14 -0
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocompleteDropdown.vue.d.ts +60 -0
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocompleteInput.vue.d.ts +309 -0
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocompleteSelectedTags.vue.d.ts +42 -0
- package/dist/components/interaction/selects/AvSelect/AvSelect.stories.d.ts +103 -0
- package/dist/components/interaction/selects/AvSelect/AvSelect.stub.d.ts +15 -0
- package/dist/components/interaction/selects/AvSelect/AvSelect.test.d.ts +1 -0
- package/dist/components/interaction/selects/AvSelect/AvSelect.vue.d.ts +63 -0
- package/dist/components/interaction/selects/index.d.ts +3 -0
- package/dist/components/interaction/tabs/AvTab/AvTab.stories.d.ts +34 -0
- package/dist/components/interaction/tabs/AvTab/AvTab.test.d.ts +1 -0
- package/dist/components/interaction/tabs/AvTab/AvTab.vue.d.ts +31 -0
- package/dist/components/interaction/tabs/AvTabs/AvTabs.stories.d.ts +51 -0
- package/dist/components/interaction/tabs/AvTabs/AvTabs.test.d.ts +1 -0
- package/dist/components/interaction/tabs/AvTabs/AvTabs.vue.d.ts +40 -0
- package/dist/components/interaction/tabs/index.d.ts +2 -0
- package/dist/components/interaction/toggles/AvToggle/AvToggle.stories.d.ts +21 -0
- package/dist/components/interaction/toggles/AvToggle/AvToggle.test.d.ts +1 -0
- package/dist/components/interaction/toggles/AvToggle/AvToggle.vue.d.ts +46 -0
- package/dist/components/interaction/toggles/index.d.ts +1 -0
- package/dist/components/navigation/AvNavigation/AvNavigation.stories.d.ts +34 -0
- package/dist/components/navigation/AvNavigation/AvNavigation.test.d.ts +1 -0
- package/dist/components/navigation/AvNavigation/AvNavigation.vue.d.ts +16 -0
- package/dist/components/navigation/AvNavigation/index.d.ts +1 -0
- package/dist/components/navigation/AvPagination/AvPagination.test.d.ts +1 -0
- package/dist/components/navigation/AvPagination/AvPagination.vue.d.ts +57 -0
- package/dist/components/navigation/AvPagination/utils.d.ts +14 -0
- package/dist/components/navigation/AvPagination/utils.test.d.ts +1 -0
- package/dist/components/navigation/AvSideMenu/AvSideMenu.stories.d.ts +55 -0
- package/dist/components/navigation/AvSideMenu/AvSideMenu.test.d.ts +1 -0
- package/dist/components/navigation/AvSideMenu/AvSideMenu.vue.d.ts +61 -0
- package/dist/components/navigation/AvSideNavigation/AvSideNavigation.stories.d.ts +58 -0
- package/dist/components/navigation/AvSideNavigation/AvSideNavigation.stub.d.ts +16 -0
- package/dist/components/navigation/AvSideNavigation/AvSideNavigation.test.d.ts +1 -0
- package/dist/components/navigation/AvSideNavigation/AvSideNavigation.vue.d.ts +38 -0
- package/dist/components/navigation/index.d.ts +5 -0
- package/dist/components/overlay/drawers/AvDrawer/AvDrawer.stories.d.ts +53 -0
- package/dist/components/overlay/drawers/AvDrawer/AvDrawer.stub.d.ts +11 -0
- package/dist/components/overlay/drawers/AvDrawer/AvDrawer.test.d.ts +1 -0
- package/dist/components/overlay/drawers/AvDrawer/AvDrawer.vue.d.ts +60 -0
- package/dist/components/overlay/index.d.ts +3 -0
- package/dist/components/overlay/modals/AvModal/AvModal.test.d.ts +1 -0
- package/dist/components/overlay/modals/AvModal/AvModal.vue.d.ts +74 -0
- package/dist/components/overlay/popovers/AvPopover/AvPopover.stories.d.ts +49 -0
- package/dist/components/overlay/popovers/AvPopover/AvPopover.test.d.ts +1 -0
- package/dist/components/overlay/popovers/AvPopover/AvPopover.vue.d.ts +48 -0
- package/dist/components/overlay/popovers/AvPopover/use-popover.d.ts +41 -0
- package/dist/components/overlay/popovers/AvPopover/use-popover.test.d.ts +1 -0
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/use-focus-trap/use-focus-trap.d.ts +25 -0
- package/dist/composables/use-focus-trap/use-focus-trap.test.d.ts +1 -0
- package/dist/config/index.d.ts +1 -0
- package/dist/config/page-sizes.d.ts +6 -0
- package/dist/index.d.ts +5 -0
- package/dist/main.d.ts +8 -0
- package/dist/stories/foundations/icons.stories.d.ts +6 -0
- package/dist/stories/foundations/typography.stories.d.ts +5 -0
- package/dist/tests/index.d.ts +2 -0
- package/dist/tests/stubs.d.ts +62 -0
- package/dist/tests/utils.d.ts +34 -0
- package/dist/tokens/icons.d.ts +79 -0
- package/dist/tokens/index.d.ts +1 -0
- package/dist/utils/array/array.d.ts +8 -0
- package/dist/utils/forms/form.test.d.ts +1 -0
- package/dist/utils/forms/forms.d.ts +6 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/string/string.d.ts +21 -0
- package/dist/utils/string/string.test.d.ts +1 -0
- package/package.json +4 -3
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a message displayed in the notification system (toaster).
|
|
3
|
+
*/
|
|
4
|
+
export interface Message {
|
|
5
|
+
/**
|
|
6
|
+
* Unique identifier for the message.
|
|
7
|
+
* Can be used to track or delete the message.
|
|
8
|
+
*/
|
|
9
|
+
id?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Message title.
|
|
12
|
+
* Optional, displayed in the message header.
|
|
13
|
+
*/
|
|
14
|
+
title?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Detailed description of the message.
|
|
17
|
+
* This field is required and contains the main text to be displayed.
|
|
18
|
+
*/
|
|
19
|
+
description: string;
|
|
20
|
+
/**
|
|
21
|
+
* Type of message to display.
|
|
22
|
+
* Defines the style and icon associated with the message.
|
|
23
|
+
*
|
|
24
|
+
* Possible values are:
|
|
25
|
+
* - 'info': General information
|
|
26
|
+
* - 'success': Success message
|
|
27
|
+
* - 'warning': Warning message
|
|
28
|
+
* - 'error': Error message
|
|
29
|
+
*
|
|
30
|
+
* @default 'info'
|
|
31
|
+
*/
|
|
32
|
+
type?: 'info' | 'success' | 'warning' | 'error';
|
|
33
|
+
/**
|
|
34
|
+
* Indicates whether the message can be manually closed by the user.
|
|
35
|
+
*/
|
|
36
|
+
closeable?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* HTML tag used for the message title.
|
|
39
|
+
* Can be used to adjust the semantic hierarchy of the title.
|
|
40
|
+
*
|
|
41
|
+
* Possible values are: 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'.
|
|
42
|
+
*/
|
|
43
|
+
titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
44
|
+
/**
|
|
45
|
+
* Time to display the message in milliseconds before automatically closing.
|
|
46
|
+
* If not set, the message will remain displayed until manually closed or another action.
|
|
47
|
+
*/
|
|
48
|
+
timeout?: number;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* AvToaster component props.
|
|
52
|
+
*/
|
|
53
|
+
interface AvToasterProps {
|
|
54
|
+
/**
|
|
55
|
+
* List of messages to display in the toaster.
|
|
56
|
+
*
|
|
57
|
+
* Each message must follow the structure defined by the Message interface.
|
|
58
|
+
* - `id?: string`: Unique identifier for the message
|
|
59
|
+
* - `title?: string`: Message title
|
|
60
|
+
* - `description: string`: Detailed description of the message
|
|
61
|
+
* - `type?: 'info' \| 'success' \| 'warning' \| 'error'`: Type of message to display (@default 'info')
|
|
62
|
+
* - `closeable?: boolean`: Indicates whether the message can be manually closed by the user
|
|
63
|
+
* - `titleTag?: 'h1' \| 'h2' \| 'h3' \| 'h4' \| 'h5' \| 'h6'`: HTML tag used for the message title
|
|
64
|
+
* - `timeout?: number`: Time to display the message in milliseconds before automatically closing (if not set, the message will remain displayed until manually closed or another action)
|
|
65
|
+
*/
|
|
66
|
+
messages: Message[];
|
|
67
|
+
/**
|
|
68
|
+
* Base path to get access to public icons.
|
|
69
|
+
* @example import.meta.env.BASE_URL
|
|
70
|
+
*/
|
|
71
|
+
basePath: string;
|
|
72
|
+
/**
|
|
73
|
+
* Function called to remove a message from the toaster.
|
|
74
|
+
* @param id The ID of the message to remove.
|
|
75
|
+
*/
|
|
76
|
+
onRemoveMessage: (id: string) => void;
|
|
77
|
+
}
|
|
78
|
+
declare const _default: import("vue").DefineComponent<AvToasterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvToasterProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
79
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import type { Slot } from 'vue';
|
|
2
|
+
import type { RouteLocationRaw } from 'vue-router';
|
|
3
|
+
import { type DsfrHeaderMenuLinkProps, type DsfrLanguageSelectorElement, type DsfrLanguageSelectorProps } from '@gouvminint/vue-dsfr';
|
|
4
|
+
/**
|
|
5
|
+
* AvHeader component props.
|
|
6
|
+
*/
|
|
7
|
+
export interface AvHeaderProps {
|
|
8
|
+
/**
|
|
9
|
+
* Value of the `id` attribute of the search bar input.
|
|
10
|
+
* @default 'searchbar-header'
|
|
11
|
+
*/
|
|
12
|
+
searchbarId?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Title of the service displayed in the header.
|
|
15
|
+
*/
|
|
16
|
+
serviceTitle?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Homepage link.
|
|
19
|
+
* @default '/'
|
|
20
|
+
*/
|
|
21
|
+
homeTo?: string | RouteLocationRaw;
|
|
22
|
+
/**
|
|
23
|
+
* Value related to the search bar (controlled template).
|
|
24
|
+
* @default ''
|
|
25
|
+
*/
|
|
26
|
+
modelValue?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Placeholder for the search bar.
|
|
29
|
+
* @default 'Rechercher...'
|
|
30
|
+
*/
|
|
31
|
+
placeholder?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Quick links to display in the header.
|
|
34
|
+
* @default () => []
|
|
35
|
+
*/
|
|
36
|
+
quickLinks?: DsfrHeaderMenuLinkProps[];
|
|
37
|
+
/**
|
|
38
|
+
* Language selector properties.
|
|
39
|
+
*/
|
|
40
|
+
languageSelector?: DsfrLanguageSelectorProps;
|
|
41
|
+
/**
|
|
42
|
+
* Label for the search bar.
|
|
43
|
+
* @default 'Recherche'
|
|
44
|
+
*/
|
|
45
|
+
searchLabel?: string;
|
|
46
|
+
/**
|
|
47
|
+
* ARIA label for quick links.
|
|
48
|
+
* @default 'Menu secondaire'
|
|
49
|
+
*/
|
|
50
|
+
quickLinksAriaLabel?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Whether to display the search bar. * @default false
|
|
53
|
+
*/
|
|
54
|
+
showSearch?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Label of the button to display the search bar.
|
|
57
|
+
* @default 'Recherche'
|
|
58
|
+
*/
|
|
59
|
+
showSearchLabel?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Label of the main menu.
|
|
62
|
+
* @default 'Menu'
|
|
63
|
+
*/
|
|
64
|
+
menuLabel?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Label of the menu in modal mode.
|
|
67
|
+
* @default 'Menu'
|
|
68
|
+
*/
|
|
69
|
+
menuModalLabel?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Label of the button to close the modal menu.
|
|
72
|
+
* @default 'Fermer'
|
|
73
|
+
*/
|
|
74
|
+
closeMenuModalLabel?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Label of the link to the home page (present in the service title).
|
|
77
|
+
* @default 'Accueil'
|
|
78
|
+
*/
|
|
79
|
+
homeLabel?: string;
|
|
80
|
+
}
|
|
81
|
+
type __VLS_Slots = {
|
|
82
|
+
/**
|
|
83
|
+
* Slot pour ajouter du contenu avant les liens rapides.
|
|
84
|
+
*/
|
|
85
|
+
'before-quick-links'?: Slot;
|
|
86
|
+
/**
|
|
87
|
+
* Slot pour ajouter du contenu après les liens rapides.
|
|
88
|
+
*/
|
|
89
|
+
'after-quick-links'?: Slot;
|
|
90
|
+
/**
|
|
91
|
+
* Slot affiché à côté / en dessous du serviceTitle.
|
|
92
|
+
*/
|
|
93
|
+
'serviceDescription'?: Slot;
|
|
94
|
+
/**
|
|
95
|
+
* Slot pour le menu de navigation principal.
|
|
96
|
+
*/
|
|
97
|
+
'mainnav'?: Slot;
|
|
98
|
+
/**
|
|
99
|
+
* Slot par défaut pour le contenu supplémentaire dans l'en-tête.
|
|
100
|
+
*/
|
|
101
|
+
'default'?: Slot;
|
|
102
|
+
};
|
|
103
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvHeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
104
|
+
search: (payload: string) => any;
|
|
105
|
+
"update:modelValue": (payload: string) => any;
|
|
106
|
+
languageSelect: (payload: DsfrLanguageSelectorElement) => any;
|
|
107
|
+
}, string, import("vue").PublicProps, Readonly<AvHeaderProps> & Readonly<{
|
|
108
|
+
onSearch?: ((payload: string) => any) | undefined;
|
|
109
|
+
"onUpdate:modelValue"?: ((payload: string) => any) | undefined;
|
|
110
|
+
onLanguageSelect?: ((payload: DsfrLanguageSelectorElement) => any) | undefined;
|
|
111
|
+
}>, {
|
|
112
|
+
modelValue: string;
|
|
113
|
+
placeholder: string;
|
|
114
|
+
searchbarId: string;
|
|
115
|
+
serviceTitle: string;
|
|
116
|
+
homeTo: string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric;
|
|
117
|
+
quickLinks: DsfrHeaderMenuLinkProps[];
|
|
118
|
+
languageSelector: DsfrLanguageSelectorProps;
|
|
119
|
+
searchLabel: string;
|
|
120
|
+
quickLinksAriaLabel: string;
|
|
121
|
+
showSearchLabel: string;
|
|
122
|
+
menuLabel: string;
|
|
123
|
+
menuModalLabel: string;
|
|
124
|
+
closeMenuModalLabel: string;
|
|
125
|
+
homeLabel: string;
|
|
126
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
127
|
+
export default _default;
|
|
128
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
129
|
+
new (): {
|
|
130
|
+
$slots: S;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { VIcon } from '@gouvminint/vue-dsfr';
|
|
2
|
+
/**
|
|
3
|
+
* AvHeaderMenuLinks component props.
|
|
4
|
+
*/
|
|
5
|
+
interface AvHeaderMenuLinksProps {
|
|
6
|
+
/**
|
|
7
|
+
* An array of objects representing quick links.
|
|
8
|
+
* Each link can have an icon, a label, and an onClick function.
|
|
9
|
+
*/
|
|
10
|
+
links?: {
|
|
11
|
+
/**
|
|
12
|
+
* Icon name (string) or props object for a VIcon component.
|
|
13
|
+
*/
|
|
14
|
+
icon?: string | InstanceType<typeof VIcon>['$props'];
|
|
15
|
+
/**
|
|
16
|
+
* Link label.
|
|
17
|
+
*/
|
|
18
|
+
label?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Function called when the link is clicked.
|
|
21
|
+
* @param event The MouseEvent of the click.
|
|
22
|
+
*/
|
|
23
|
+
onClick?: ($event: MouseEvent) => void;
|
|
24
|
+
}[];
|
|
25
|
+
/**
|
|
26
|
+
* ARIA label for navigation, useful for accessibility.
|
|
27
|
+
* @default 'Menu secondaire'
|
|
28
|
+
*/
|
|
29
|
+
navAriaLabel?: string;
|
|
30
|
+
}
|
|
31
|
+
declare const _default: import("vue").DefineComponent<AvHeaderMenuLinksProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
|
+
linkClick: (event: MouseEvent) => any;
|
|
33
|
+
}, string, import("vue").PublicProps, Readonly<AvHeaderMenuLinksProps> & Readonly<{
|
|
34
|
+
onLinkClick?: ((event: MouseEvent) => any) | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
navAriaLabel: string;
|
|
37
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
width?: string;
|
|
3
|
+
height?: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as AvHeader } from './AvHeader/AvHeader.vue';
|
|
2
|
+
export { default as AvHeaderMenuLinks } from './AvHeaderMenuLinks/AvHeaderMenuLinks.vue';
|
|
3
|
+
export { default as AvLogo } from './AvLogo.vue';
|
|
4
|
+
export { default as EsupLogo } from './EsupLogo.vue';
|
|
5
|
+
export { registerNavigationLinkKey } from '@gouvminint/vue-dsfr';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
/**
|
|
3
|
+
* <h1 class="n1">Accordions - <code>AvAccordions</code></h1>
|
|
4
|
+
*
|
|
5
|
+
* <h2 class="n2">🌟 Introduction</h2>
|
|
6
|
+
*
|
|
7
|
+
* <p>
|
|
8
|
+
* <span class="b2-regular">
|
|
9
|
+
* The <code>AvAccordion</code> is a declarative component used exclusively in the <code>default</code> slot of
|
|
10
|
+
* <code>AvAccordionsGroup</code>.
|
|
11
|
+
* <code>AvAccordion</code> allows you to configure an accordion by passing its props (such as <code>title</code> and <code>icon</code>)
|
|
12
|
+
* to the <code>AvAccordionsGroup</code> component without rendering.
|
|
13
|
+
* </span>
|
|
14
|
+
* </p>
|
|
15
|
+
*
|
|
16
|
+
* <p>
|
|
17
|
+
* <span class="b2-regular">
|
|
18
|
+
* It acts as a proxy component: it exposes information (props) used by <code>AvAccordionsGroup</code> to generate the interface.
|
|
19
|
+
* </span>
|
|
20
|
+
* </p>
|
|
21
|
+
*
|
|
22
|
+
* <p>
|
|
23
|
+
* <span class="b2-regular">
|
|
24
|
+
* 🚫 This component does not display anything by itself and should not be used outside <code>AvAccordion</code>.
|
|
25
|
+
* </span>
|
|
26
|
+
* </p>
|
|
27
|
+
*/
|
|
28
|
+
declare const meta: Meta;
|
|
29
|
+
export default meta;
|
|
30
|
+
export declare const Default: StoryFn;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Slot } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* AvAccordion component props.
|
|
4
|
+
*/
|
|
5
|
+
export interface AvAccordionProps {
|
|
6
|
+
/**
|
|
7
|
+
* Title of the accordion.
|
|
8
|
+
*/
|
|
9
|
+
title: string;
|
|
10
|
+
/**
|
|
11
|
+
* Accordion icon
|
|
12
|
+
*/
|
|
13
|
+
icon?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Slots available in the AvAccordion component.
|
|
17
|
+
* The default slot contains the content of the accordion.
|
|
18
|
+
*/
|
|
19
|
+
type __VLS_Slots = {
|
|
20
|
+
/**
|
|
21
|
+
* Default slot for accordion content.
|
|
22
|
+
*/
|
|
23
|
+
default?: Slot;
|
|
24
|
+
};
|
|
25
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvAccordionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvAccordionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
package/dist/components/interaction/accordions/AvAccordionsGroup/AvAccordionsGroup.stories.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import { type AvAccordionsGroupProps } from '@/components/interaction/accordions/AvAccordionsGroup/AvAccordionsGroup.vue';
|
|
3
|
+
/**
|
|
4
|
+
* <h2 class="n2">🌟 Introduction</h2>
|
|
5
|
+
*
|
|
6
|
+
* <p>
|
|
7
|
+
* <span class="b2-regular">
|
|
8
|
+
* The <code>AvAccordionsGroup</code> component implements VueDSFR <code>DsfrAccordionsGroup</code> while automatically managing
|
|
9
|
+
* the addition of <code>DsfrAccordion</code> according to the <code>AvAccordion</code> present in the <code>default</code> slot.
|
|
10
|
+
* </span>
|
|
11
|
+
* </p>
|
|
12
|
+
*
|
|
13
|
+
* <p>
|
|
14
|
+
* <span class="b2-regular">
|
|
15
|
+
* Accordions allow users to show and hide sections of content presented on a page.
|
|
16
|
+
* </span>
|
|
17
|
+
* </p>
|
|
18
|
+
*
|
|
19
|
+
* <p>
|
|
20
|
+
* <span class="b2-regular">
|
|
21
|
+
* The accordions group lets you group several accordions into a single coherent unit. It manages active selection logic between
|
|
22
|
+
* child accordions, allowing you to open one accordion while closing the others. This component is essential for organizing
|
|
23
|
+
* interactively linked accordion sets.
|
|
24
|
+
* </span>
|
|
25
|
+
* </p>
|
|
26
|
+
*
|
|
27
|
+
* <p>
|
|
28
|
+
* <span class="b2-regular">
|
|
29
|
+
* 🏅 Documentation on <code>DsfrAccordionsGroup</code> can be found at
|
|
30
|
+
* <a href="https://vue-ds.fr/composants/DsfrAccordionsGroup" target="_blank">VueDSFR</a>
|
|
31
|
+
* </span>
|
|
32
|
+
* </p>
|
|
33
|
+
*
|
|
34
|
+
* <h2 class="n2">📐 Structure</h2>
|
|
35
|
+
*
|
|
36
|
+
* <ul class="b2-regular">
|
|
37
|
+
* <li>A header (<code>title</code> prop, type <code>string</code>) — mandatory, represents the section title.</li>
|
|
38
|
+
* <li>A left icon (<code>icon</code> prop, type <code>string</code>) — optional, must follow VICon naming convention.</li>
|
|
39
|
+
* <li>A right icon — <code>v</code> when the panel is closed, <code>^</code> when open.</li>
|
|
40
|
+
* <li>A separator.</li>
|
|
41
|
+
* <li>A content zone — hidden by default and shown when expanded, accepting any content via the default <code>slot</code>.</li>
|
|
42
|
+
* </ul>
|
|
43
|
+
*/
|
|
44
|
+
declare const meta: Meta<AvAccordionsGroupProps>;
|
|
45
|
+
export default meta;
|
|
46
|
+
export declare const Default: StoryFn<AvAccordionsGroupProps>;
|
|
47
|
+
export declare const WithFirstAccordionOpen: StoryFn<AvAccordionsGroupProps>;
|
|
48
|
+
export declare const WithSecondAccordionOpen: StoryFn<AvAccordionsGroupProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type AvAccordion from '@/components/interaction/accordions/AvAccordion/AvAccordion.vue';
|
|
2
|
+
import { type VNode } from 'vue';
|
|
3
|
+
/**
|
|
4
|
+
* AvAccordionsGroup component props.
|
|
5
|
+
*/
|
|
6
|
+
export interface AvAccordionsGroupProps {
|
|
7
|
+
/**
|
|
8
|
+
* Index of the currently active accordion.
|
|
9
|
+
*/
|
|
10
|
+
activeAccordion?: number;
|
|
11
|
+
}
|
|
12
|
+
type __VLS_Props = AvAccordionsGroupProps;
|
|
13
|
+
/**
|
|
14
|
+
* Slots available in AvAccordions component.
|
|
15
|
+
* Used to inject accordions via `AvAccordion` components.
|
|
16
|
+
*/
|
|
17
|
+
type __VLS_Slots = {
|
|
18
|
+
/**
|
|
19
|
+
* Default slot for passing `AvAccordion` components.
|
|
20
|
+
*/
|
|
21
|
+
default?: () => VNode<typeof AvAccordion>[];
|
|
22
|
+
};
|
|
23
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
24
|
+
'activeAccordion'?: number;
|
|
25
|
+
};
|
|
26
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
|
+
"update:activeAccordion": (...args: unknown[]) => any;
|
|
28
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
29
|
+
"onUpdate:activeAccordion"?: ((...args: unknown[]) => any) | undefined;
|
|
30
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import { type AvButtonProps } from '@/components/interaction/buttons/AvButton/AvButton.vue';
|
|
3
|
+
/**
|
|
4
|
+
* <h1 class="n1">Buttons - <code>AvButton</code></h1>
|
|
5
|
+
*
|
|
6
|
+
* <h2 class="n2">🌟 Introduction</h2>
|
|
7
|
+
*
|
|
8
|
+
* <p>
|
|
9
|
+
* <span class="b2-regular">
|
|
10
|
+
* The <code>AvButton</code> is a component implementing the VueDSFR <code>DsfrButton</code>.
|
|
11
|
+
* The button is an interaction element with an interface enabling the user to perform an action.
|
|
12
|
+
* </span>
|
|
13
|
+
* </p>
|
|
14
|
+
*
|
|
15
|
+
* <p>
|
|
16
|
+
* <span class="b2-regular">
|
|
17
|
+
* The <code>AvButton</code> is an elegant, reusable Vue component designed to simplify the creation of custom buttons.
|
|
18
|
+
* It features adjustable sizes, an optional icon and a click manager, all in keeping with the <code>DSFR</code> style.
|
|
19
|
+
* It's easy to use, with the flexibility to adapt to different contexts.
|
|
20
|
+
* </span>
|
|
21
|
+
* </p>
|
|
22
|
+
*
|
|
23
|
+
* <p>
|
|
24
|
+
* <span class="b2-regular">
|
|
25
|
+
* For <code>AVENIR(s) ESR</code>, the button has been simplified to allow only two variants
|
|
26
|
+
* (<code>DEFAULT</code> without border and <code>OUTLINED</code> with border)
|
|
27
|
+
* and two themes (<code>PRIMARY</code> blue and <code>SECONDARY</code> grey).
|
|
28
|
+
* </span>
|
|
29
|
+
* </p>
|
|
30
|
+
*
|
|
31
|
+
* <p>
|
|
32
|
+
* <span class="b2-regular">
|
|
33
|
+
* 🏅 Documentation on the <code>DsfrButton</code> can be found at
|
|
34
|
+
* <a href="https://vue-ds.fr/composants/DsfrButton" target="_blank" rel="noopener noreferrer">VueDSFR</a>
|
|
35
|
+
* </span>
|
|
36
|
+
* </p>
|
|
37
|
+
*
|
|
38
|
+
* <h2 class="n2">📐 Structure</h2>
|
|
39
|
+
*
|
|
40
|
+
* <p><span class="b2-regular">Buttons consist of :</span></p>
|
|
41
|
+
*
|
|
42
|
+
* <ul>
|
|
43
|
+
* <li>
|
|
44
|
+
* <span class="b2-regular">
|
|
45
|
+
* A label – mandatory, using the <code>label</code> prop, enables label display when <code>iconOnly</code> is <code>false</code>,
|
|
46
|
+
* also enables connection to <code>title</code> and <code>aria-label</code>;
|
|
47
|
+
* </span>
|
|
48
|
+
* </li>
|
|
49
|
+
* <li>
|
|
50
|
+
* <span class="b2-regular">
|
|
51
|
+
* An icon, which can be modified (see available icons) – optional.
|
|
52
|
+
* </span>
|
|
53
|
+
* </li>
|
|
54
|
+
* </ul>
|
|
55
|
+
*/
|
|
56
|
+
declare const meta: Meta<AvButtonProps>;
|
|
57
|
+
export default meta;
|
|
58
|
+
export declare const Default: StoryFn<AvButtonProps>;
|
|
59
|
+
export declare const DefaultIconOnly: StoryFn<AvButtonProps>;
|
|
60
|
+
export declare const DefaultLoading: StoryFn<AvButtonProps>;
|
|
61
|
+
export declare const DefaultDisabled: StoryFn<AvButtonProps>;
|
|
62
|
+
export declare const DefaultNoRadius: StoryFn<AvButtonProps>;
|
|
63
|
+
export declare const DefaultSecondary: StoryFn<AvButtonProps>;
|
|
64
|
+
export declare const Outlined: StoryFn<AvButtonProps>;
|
|
65
|
+
export declare const OutlinedIconOnly: StoryFn<AvButtonProps>;
|
|
66
|
+
export declare const OutlinedLoading: StoryFn<AvButtonProps>;
|
|
67
|
+
export declare const OutlinedDisabled: StoryFn<AvButtonProps>;
|
|
68
|
+
export declare const OutlinedNoRadius: StoryFn<AvButtonProps>;
|
|
69
|
+
export declare const OutlinedSecondary: StoryFn<AvButtonProps>;
|
|
70
|
+
export declare const Flat: StoryFn<AvButtonProps>;
|
|
71
|
+
export declare const FlatIconOnly: StoryFn<AvButtonProps>;
|
|
72
|
+
export declare const FlatLoading: StoryFn<AvButtonProps>;
|
|
73
|
+
export declare const FlatDisabled: StoryFn<AvButtonProps>;
|
|
74
|
+
export declare const FlatNoRadius: StoryFn<AvButtonProps>;
|
|
75
|
+
export declare const FlatSecondary: StoryFn<AvButtonProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const AvButtonStub: import("vue").DefineComponent<{
|
|
2
|
+
label?: any;
|
|
3
|
+
type?: any;
|
|
4
|
+
variant?: any;
|
|
5
|
+
isLoading?: any;
|
|
6
|
+
disabled?: any;
|
|
7
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<{
|
|
8
|
+
label?: any;
|
|
9
|
+
type?: any;
|
|
10
|
+
variant?: any;
|
|
11
|
+
isLoading?: any;
|
|
12
|
+
disabled?: any;
|
|
13
|
+
}> & Readonly<{
|
|
14
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { VIcon } from '@gouvminint/vue-dsfr';
|
|
2
|
+
/**
|
|
3
|
+
* AvButton component props.
|
|
4
|
+
*/
|
|
5
|
+
export interface AvButtonProps {
|
|
6
|
+
/**
|
|
7
|
+
* Button variant: borderless (`DEFAULT`) or with border (`OUTLINED`).
|
|
8
|
+
* @default 'DEFAULT'
|
|
9
|
+
*/
|
|
10
|
+
variant?: 'DEFAULT' | 'OUTLINED' | 'FLAT';
|
|
11
|
+
/**
|
|
12
|
+
* Button theme: blue (`PRIMARY`) or gray (`SECONDARY`).
|
|
13
|
+
* @default 'PRIMARY'
|
|
14
|
+
*/
|
|
15
|
+
theme?: 'PRIMARY' | 'SECONDARY';
|
|
16
|
+
/**
|
|
17
|
+
* Indicates button loading status.
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
isLoading?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Manually change icon size.
|
|
23
|
+
* If not defined, the size is automatically calculated.
|
|
24
|
+
*/
|
|
25
|
+
iconScale?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Removes radii from the button border.
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
noRadius?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Indicates if the button is disabled.
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Button text label.
|
|
38
|
+
*/
|
|
39
|
+
label: string;
|
|
40
|
+
/**
|
|
41
|
+
* Indicates icon position:
|
|
42
|
+
* left (`false`) or right (`true`).
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
iconRight?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Hide label text (`true`) or show it (`false`).
|
|
48
|
+
* @default false
|
|
49
|
+
*/
|
|
50
|
+
iconOnly?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Button size: 'sm', 'small', 'md', 'medium', 'lg', 'large' or ''.
|
|
53
|
+
* @default 'md'
|
|
54
|
+
*/
|
|
55
|
+
size?: 'sm' | 'small' | 'lg' | 'large' | 'md' | 'medium' | '' | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Icon to be displayed in the button. Can be a name or an icon configuration (eg: `{"name": "mdi:stars"}`).
|
|
58
|
+
*/
|
|
59
|
+
icon?: string | InstanceType<typeof VIcon>['$props'];
|
|
60
|
+
/**
|
|
61
|
+
* Function called when button is clicked.
|
|
62
|
+
* @param event The click MouseEvent
|
|
63
|
+
*/
|
|
64
|
+
onClick?: ($event: MouseEvent) => void;
|
|
65
|
+
}
|
|
66
|
+
declare const _default: import("vue").DefineComponent<AvButtonProps, {
|
|
67
|
+
computedSvgScale: import("vue").ComputedRef<number>;
|
|
68
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvButtonProps> & Readonly<{}>, {
|
|
69
|
+
size: "" | "small" | "sm" | "lg" | "large" | "md" | "medium";
|
|
70
|
+
variant: "DEFAULT" | "OUTLINED" | "FLAT";
|
|
71
|
+
theme: "PRIMARY" | "SECONDARY";
|
|
72
|
+
isLoading: boolean;
|
|
73
|
+
noRadius: boolean;
|
|
74
|
+
disabled: boolean;
|
|
75
|
+
iconRight: boolean;
|
|
76
|
+
iconOnly: boolean;
|
|
77
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
78
|
+
export default _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import { type AvRichButtonProps } from '@/components/interaction/buttons/AvRichButton/AvRichButton.vue';
|
|
3
|
+
/**
|
|
4
|
+
* <h1 class="n1">Rich buttons - <code>AvRichButton</code></h1>
|
|
5
|
+
*
|
|
6
|
+
* <h2 class="n2">🌟 Introduction</h2>
|
|
7
|
+
*
|
|
8
|
+
* <p>
|
|
9
|
+
* <span class="b2-regular">
|
|
10
|
+
* The rich button is an interaction element with an interface enabling the user to perform an action.
|
|
11
|
+
* </span>
|
|
12
|
+
* </p>
|
|
13
|
+
*
|
|
14
|
+
* <p>
|
|
15
|
+
* <span class="b2-regular">
|
|
16
|
+
* The <code>AvRichButton</code> is an elegant, reusable Vue component designed to simplify the creation of custom rich buttons.
|
|
17
|
+
* It features optional icons and a click manager. It is easy to use, with the flexibility to adapt to different contexts.
|
|
18
|
+
* </span>
|
|
19
|
+
* </p>
|
|
20
|
+
*
|
|
21
|
+
* <p>
|
|
22
|
+
* <span class="b2-regular">
|
|
23
|
+
* With a default slot, button content is highly customizable. The <code>label</code> property lets you assign the button <code>title</code> and <code>aria-label</code>.
|
|
24
|
+
* </span>
|
|
25
|
+
* </p>
|
|
26
|
+
*
|
|
27
|
+
* <h2 class="n2">📐 Structure</h2>
|
|
28
|
+
*
|
|
29
|
+
* <p><span class="b2-regular">Rich buttons consist of a button composed of :</span></p>
|
|
30
|
+
*
|
|
31
|
+
* <ul>
|
|
32
|
+
* <li><span class="b2-regular">an optional left icon</span></li>
|
|
33
|
+
* <li><span class="b2-regular">a default slot for button content</span></li>
|
|
34
|
+
* <li><span class="b2-regular">an optional right icon</span></li>
|
|
35
|
+
* </ul>
|
|
36
|
+
*/
|
|
37
|
+
declare const meta: Meta<AvRichButtonProps>;
|
|
38
|
+
export default meta;
|
|
39
|
+
export declare const Default: StoryFn<AvRichButtonProps>;
|