@avenirs-esr/avenirs-dsav 0.1.50 → 0.1.52
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/components/badges/AvBadge/AvBadge.stories.d.ts +36 -0
- package/dist/components/badges/AvBadge/AvBadge.stub.d.ts +18 -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 +2 -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 +56 -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 +40 -0
- package/dist/components/base/AvVIcon/AvVIcon.stub.d.ts +5 -0
- package/dist/components/base/AvVIcon/AvVIcon.vue.d.ts +54 -0
- package/dist/components/base/index.d.ts +4 -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 +41 -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 +66 -0
- package/dist/components/interaction/buttons/AvButton/AvButton.stub.d.ts +6 -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/AvCancelConfirmButtons/AvCancelConfirmButtons.stories.d.ts +44 -0
- package/dist/components/interaction/buttons/AvCancelConfirmButtons/AvCancelConfirmButtons.stub.d.ts +6 -0
- package/dist/components/interaction/buttons/AvCancelConfirmButtons/AvCancelConfirmButtons.test.d.ts +1 -0
- package/dist/components/interaction/buttons/AvCancelConfirmButtons/AvCancelConfirmButtons.vue.d.ts +47 -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 +4 -0
- package/dist/components/interaction/files/AvFileUpload/AvFileUpload.stories.d.ts +22 -0
- package/dist/components/interaction/files/AvFileUpload/AvFileUpload.test.d.ts +1 -0
- package/dist/components/interaction/files/AvFileUpload/AvFileUpload.vue.d.ts +121 -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 +61 -0
- package/dist/components/interaction/inputs/AvInput/AvInput.test.d.ts +1 -0
- package/dist/components/interaction/inputs/AvInput/AvInput.vue.d.ts +123 -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 +6 -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 +4 -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 +5 -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 +3 -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 +47 -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 +565 -0
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.stub.d.ts +6 -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 +585 -0
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocompleteSelectedTags.vue.d.ts +42 -0
- package/dist/components/interaction/selects/AvMultiselect/AvMultiselect.stories.d.ts +132 -0
- package/dist/components/interaction/selects/AvMultiselect/AvMultiselect.test.d.ts +1 -0
- package/dist/components/interaction/selects/AvMultiselect/AvMultiselect.vue.d.ts +94 -0
- package/dist/components/interaction/selects/AvSelect/AvSelect.stories.d.ts +96 -0
- package/dist/components/interaction/selects/AvSelect/AvSelect.stub.d.ts +11 -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 +6 -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 +45 -0
- package/dist/components/interaction/tabs/AvTabs/AvTabs.test.d.ts +1 -0
- package/dist/components/interaction/tabs/AvTabs/AvTabs.vue.d.ts +46 -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 +27 -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 +59 -0
- package/dist/components/navigation/AvSideNavigation/AvSideNavigation.stub.d.ts +11 -0
- package/dist/components/navigation/AvSideNavigation/AvSideNavigation.test.d.ts +1 -0
- package/dist/components/navigation/AvSideNavigation/AvSideNavigation.vue.d.ts +42 -0
- package/dist/components/navigation/AvStepper/AvStepper.stories.d.ts +28 -0
- package/dist/components/navigation/AvStepper/AvStepper.stub.d.ts +14 -0
- package/dist/components/navigation/AvStepper/AvStepper.test.d.ts +1 -0
- package/dist/components/navigation/AvStepper/AvStepper.vue.d.ts +19 -0
- package/dist/components/navigation/index.d.ts +8 -0
- package/dist/components/overlay/drawers/AvDrawer/AvDrawer.stories.d.ts +53 -0
- package/dist/components/overlay/drawers/AvDrawer/AvDrawer.stub.d.ts +6 -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 +4 -0
- package/dist/components/overlay/modals/AvModal/AvModal.test.d.ts +1 -0
- package/dist/components/overlay/modals/AvModal/AvModal.vue.d.ts +92 -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 +3 -0
- package/dist/composables/use-breakpoint/use-breakpoint.d.ts +54 -0
- package/dist/composables/use-breakpoint/use-breakpoint.test.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/composables/use-global-background-color/use-global-background-color.d.ts +19 -0
- package/dist/composables/use-global-background-color/use-global-background-color.test.d.ts +1 -0
- package/dist/config/breakpoints.d.ts +10 -0
- package/dist/config/index.d.ts +2 -0
- package/dist/config/page-sizes.d.ts +6 -0
- package/dist/index.d.ts +7 -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 +1 -0
- package/dist/tests/stubs.d.ts +41 -0
- package/dist/tests/utils.d.ts +30 -0
- package/dist/tokens/icons.d.ts +92 -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 +27 -0
- package/dist/utils/string/string.test.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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,41 @@
|
|
|
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 automatically manages the addition of <code>AvAccordion</code>
|
|
9
|
+
* in a group 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
|
+
* <h2 class="n2">🏗️ Structure</h2>
|
|
28
|
+
*
|
|
29
|
+
* <ul class="b2-regular">
|
|
30
|
+
* <li>A header (<code>title</code> prop, type <code>string</code>) — mandatory, represents the section title.</li>
|
|
31
|
+
* <li>A left icon (<code>icon</code> prop, type <code>string</code>) — optional, must follow VICon naming convention.</li>
|
|
32
|
+
* <li>A right icon — <code>v</code> when the panel is closed, <code>^</code> when open.</li>
|
|
33
|
+
* <li>A separator.</li>
|
|
34
|
+
* <li>A content zone — hidden by default and shown when expanded, accepting any content via the default <code>slot</code>.</li>
|
|
35
|
+
* </ul>
|
|
36
|
+
*/
|
|
37
|
+
declare const meta: Meta<AvAccordionsGroupProps>;
|
|
38
|
+
export default meta;
|
|
39
|
+
export declare const Default: StoryFn<AvAccordionsGroupProps>;
|
|
40
|
+
export declare const WithFirstAccordionOpen: StoryFn<AvAccordionsGroupProps>;
|
|
41
|
+
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,66 @@
|
|
|
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 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>AvButton</code> is an elegant, reusable Vue component designed to simplify the creation of custom buttons.
|
|
17
|
+
* It features adjustable sizes, an optional icon and a click manager.
|
|
18
|
+
* It's easy to use, with the flexibility to adapt to different contexts.
|
|
19
|
+
* </span>
|
|
20
|
+
* </p>
|
|
21
|
+
*
|
|
22
|
+
* <p>
|
|
23
|
+
* <span class="b2-regular">
|
|
24
|
+
* The button only allow two variants (<code>DEFAULT</code> without border and <code>OUTLINED</code> with border)
|
|
25
|
+
* and two themes (<code>PRIMARY</code> blue and <code>SECONDARY</code> grey).
|
|
26
|
+
* </span>
|
|
27
|
+
* </p>
|
|
28
|
+
*
|
|
29
|
+
* <h2 class="n2">🏗️ Structure</h2>
|
|
30
|
+
*
|
|
31
|
+
* <p><span class="b2-regular">Buttons consist of :</span></p>
|
|
32
|
+
*
|
|
33
|
+
* <ul>
|
|
34
|
+
* <li>
|
|
35
|
+
* <span class="b2-regular">
|
|
36
|
+
* A label - mandatory, using the <code>label</code> prop, enables label display when <code>iconOnly</code> is <code>false</code>,
|
|
37
|
+
* also enables connection to <code>title</code> and <code>aria-label</code>;
|
|
38
|
+
* </span>
|
|
39
|
+
* </li>
|
|
40
|
+
* <li>
|
|
41
|
+
* <span class="b2-regular">
|
|
42
|
+
* An icon, which can be modified (see available icons) - optional.
|
|
43
|
+
* </span>
|
|
44
|
+
* </li>
|
|
45
|
+
* </ul>
|
|
46
|
+
*/
|
|
47
|
+
declare const meta: Meta<AvButtonProps>;
|
|
48
|
+
export default meta;
|
|
49
|
+
export declare const Default: StoryFn<AvButtonProps>;
|
|
50
|
+
export declare const DefaultIconOnly: StoryFn<AvButtonProps>;
|
|
51
|
+
export declare const DefaultLoading: StoryFn<AvButtonProps>;
|
|
52
|
+
export declare const DefaultDisabled: StoryFn<AvButtonProps>;
|
|
53
|
+
export declare const DefaultNoRadius: StoryFn<AvButtonProps>;
|
|
54
|
+
export declare const DefaultSecondary: StoryFn<AvButtonProps>;
|
|
55
|
+
export declare const Outlined: StoryFn<AvButtonProps>;
|
|
56
|
+
export declare const OutlinedIconOnly: StoryFn<AvButtonProps>;
|
|
57
|
+
export declare const OutlinedLoading: StoryFn<AvButtonProps>;
|
|
58
|
+
export declare const OutlinedDisabled: StoryFn<AvButtonProps>;
|
|
59
|
+
export declare const OutlinedNoRadius: StoryFn<AvButtonProps>;
|
|
60
|
+
export declare const OutlinedSecondary: StoryFn<AvButtonProps>;
|
|
61
|
+
export declare const Flat: StoryFn<AvButtonProps>;
|
|
62
|
+
export declare const FlatIconOnly: StoryFn<AvButtonProps>;
|
|
63
|
+
export declare const FlatLoading: StoryFn<AvButtonProps>;
|
|
64
|
+
export declare const FlatDisabled: StoryFn<AvButtonProps>;
|
|
65
|
+
export declare const FlatNoRadius: StoryFn<AvButtonProps>;
|
|
66
|
+
export declare const FlatSecondary: StoryFn<AvButtonProps>;
|
|
@@ -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,44 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import { type AvCancelConfirmButtonsProps } from '@/components/interaction/buttons/AvCancelConfirmButtons/AvCancelConfirmButtons.vue';
|
|
3
|
+
/**
|
|
4
|
+
* <h2 class="n2">✨ Introduction</h2>
|
|
5
|
+
*
|
|
6
|
+
* <p>
|
|
7
|
+
* <span class="b2-regular">
|
|
8
|
+
* The <code>AvCancelConfirmButtons</code> is an interaction element with an interface enabling the user
|
|
9
|
+
* to perform a cancel and/or a confirm action.
|
|
10
|
+
* </span>
|
|
11
|
+
* </p>
|
|
12
|
+
*
|
|
13
|
+
* <h2 class="n2">🏗️ Structure</h2>
|
|
14
|
+
*
|
|
15
|
+
* <p>
|
|
16
|
+
* <span class="b2-regular">
|
|
17
|
+
* This component consists of two optional buttons:
|
|
18
|
+
* </span>
|
|
19
|
+
* </p>
|
|
20
|
+
*
|
|
21
|
+
* <ul>
|
|
22
|
+
* <li>
|
|
23
|
+
* <span class="b2-regular">
|
|
24
|
+
* A <strong>cancel button</strong>, displayed by passing the <code>cancelLabel</code> prop.
|
|
25
|
+
* </span>
|
|
26
|
+
* </li>
|
|
27
|
+
* <li>
|
|
28
|
+
* <span class="b2-regular">
|
|
29
|
+
* A <strong>confirm button</strong>, displayed by passing the <code>confirmLabel</code> prop.
|
|
30
|
+
* </span>
|
|
31
|
+
* </li>
|
|
32
|
+
* </ul>
|
|
33
|
+
*/
|
|
34
|
+
declare const meta: Meta<AvCancelConfirmButtonsProps>;
|
|
35
|
+
export default meta;
|
|
36
|
+
export declare const Default: StoryFn<AvCancelConfirmButtonsProps>;
|
|
37
|
+
export declare const CancelOnly: StoryFn<AvCancelConfirmButtonsProps>;
|
|
38
|
+
export declare const ConfirmOnly: StoryFn<AvCancelConfirmButtonsProps>;
|
|
39
|
+
export declare const CancelDisabled: StoryFn<AvCancelConfirmButtonsProps>;
|
|
40
|
+
export declare const ConfirmDisabled: StoryFn<AvCancelConfirmButtonsProps>;
|
|
41
|
+
export declare const BothDisabled: StoryFn<AvCancelConfirmButtonsProps>;
|
|
42
|
+
export declare const CancelLoading: StoryFn<AvCancelConfirmButtonsProps>;
|
|
43
|
+
export declare const ConfirmLoading: StoryFn<AvCancelConfirmButtonsProps>;
|
|
44
|
+
export declare const BothLoading: StoryFn<AvCancelConfirmButtonsProps>;
|
package/dist/components/interaction/buttons/AvCancelConfirmButtons/AvCancelConfirmButtons.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/components/interaction/buttons/AvCancelConfirmButtons/AvCancelConfirmButtons.vue.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AvCancelConfirmButtons component props.
|
|
3
|
+
*/
|
|
4
|
+
export interface AvCancelConfirmButtonsProps {
|
|
5
|
+
/**
|
|
6
|
+
* Label and title (for accessibility) of the cancel button.
|
|
7
|
+
*/
|
|
8
|
+
cancelLabel?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Icon name of the cancel button.
|
|
11
|
+
* @default 'mdi:close-circle-outline'
|
|
12
|
+
*/
|
|
13
|
+
cancelIcon?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Adds a disabled state on the cancel button.
|
|
16
|
+
*/
|
|
17
|
+
cancelDisabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Adds a loading state on the cancel button.
|
|
20
|
+
*/
|
|
21
|
+
cancelIsLoading?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Label and title (for accessibility) of the confirm button.
|
|
24
|
+
*/
|
|
25
|
+
confirmLabel?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Icon name of the confirm button.
|
|
28
|
+
* @default 'mdi:check-circle-outline'
|
|
29
|
+
*/
|
|
30
|
+
confirmIcon?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Adds a disabled state on the confirm button.
|
|
33
|
+
*/
|
|
34
|
+
confirmDisabled?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Adds a loading state on the confirm button.
|
|
37
|
+
*/
|
|
38
|
+
confirmIsLoading?: boolean;
|
|
39
|
+
}
|
|
40
|
+
declare const _default: import("vue").DefineComponent<AvCancelConfirmButtonsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
41
|
+
cancel: () => any;
|
|
42
|
+
confirm: () => any;
|
|
43
|
+
}, string, import("vue").PublicProps, Readonly<AvCancelConfirmButtonsProps> & Readonly<{
|
|
44
|
+
onCancel?: (() => any) | undefined;
|
|
45
|
+
onConfirm?: (() => any) | undefined;
|
|
46
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
47
|
+
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>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|