@avenirs-esr/avenirs-dsav 0.1.47 → 0.1.50
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 +54 -46
- package/dist/avenirs-dsav.umd.js +1 -1
- package/package.json +7 -3
- package/src/styles/main.scss +6 -1
- package/dist/App.vue.d.ts +0 -2
- package/dist/components/badges/AvBadge/AvBadge.stories.d.ts +0 -36
- package/dist/components/badges/AvBadge/AvBadge.stub.d.ts +0 -18
- package/dist/components/badges/AvBadge/AvBadge.test.d.ts +0 -1
- package/dist/components/badges/AvBadge/AvBadge.vue.d.ts +0 -44
- package/dist/components/badges/index.d.ts +0 -2
- package/dist/components/base/AvIconText/AvIconText.stories.d.ts +0 -36
- package/dist/components/base/AvIconText/AvIconText.test.d.ts +0 -1
- package/dist/components/base/AvIconText/AvIconText.vue.d.ts +0 -40
- package/dist/components/base/AvNotice/AvNotice.stories.d.ts +0 -56
- package/dist/components/base/AvNotice/AvNotice.test.d.ts +0 -1
- package/dist/components/base/AvNotice/AvNotice.vue.d.ts +0 -22
- package/dist/components/base/AvVIcon/AvVIcon.stories.d.ts +0 -40
- package/dist/components/base/AvVIcon/AvVIcon.stub.d.ts +0 -5
- package/dist/components/base/AvVIcon/AvVIcon.vue.d.ts +0 -54
- package/dist/components/base/index.d.ts +0 -4
- package/dist/components/cards/AvCard/AvCard.stories.d.ts +0 -28
- package/dist/components/cards/AvCard/AvCard.test.d.ts +0 -1
- package/dist/components/cards/AvCard/AvCard.vue.d.ts +0 -58
- package/dist/components/cards/index.d.ts +0 -1
- package/dist/components/feedback/AvAlert/AvAlert.test.d.ts +0 -1
- package/dist/components/feedback/AvAlert/AvAlert.vue.d.ts +0 -77
- package/dist/components/feedback/AvToaster/AvToaster.test.d.ts +0 -1
- package/dist/components/feedback/AvToaster/AvToaster.vue.d.ts +0 -79
- package/dist/components/feedback/index.d.ts +0 -2
- package/dist/components/header/AvHeader/AvHeader.test.d.ts +0 -1
- package/dist/components/header/AvHeader/AvHeader.vue.d.ts +0 -132
- package/dist/components/header/AvHeaderMenuLinks/AvHeaderMenuLinks.test.d.ts +0 -1
- package/dist/components/header/AvHeaderMenuLinks/AvHeaderMenuLinks.vue.d.ts +0 -38
- package/dist/components/header/AvLogo.vue.d.ts +0 -2
- package/dist/components/header/EsupLogo.test.d.ts +0 -1
- package/dist/components/header/EsupLogo.vue.d.ts +0 -7
- package/dist/components/header/index.d.ts +0 -5
- package/dist/components/index.d.ts +0 -8
- package/dist/components/interaction/accordions/AvAccordion/AvAccordion.stories.d.ts +0 -30
- package/dist/components/interaction/accordions/AvAccordion/AvAccordion.test.d.ts +0 -1
- package/dist/components/interaction/accordions/AvAccordion/AvAccordion.vue.d.ts +0 -31
- package/dist/components/interaction/accordions/AvAccordionsGroup/AvAccordionsGroup.stories.d.ts +0 -41
- package/dist/components/interaction/accordions/AvAccordionsGroup/AvAccordionsGroup.test.d.ts +0 -1
- package/dist/components/interaction/accordions/AvAccordionsGroup/AvAccordionsGroup.vue.d.ts +0 -36
- package/dist/components/interaction/accordions/index.d.ts +0 -2
- package/dist/components/interaction/buttons/AvButton/AvButton.stories.d.ts +0 -66
- package/dist/components/interaction/buttons/AvButton/AvButton.stub.d.ts +0 -6
- package/dist/components/interaction/buttons/AvButton/AvButton.test.d.ts +0 -1
- package/dist/components/interaction/buttons/AvButton/AvButton.vue.d.ts +0 -78
- package/dist/components/interaction/buttons/AvCancelConfirmButtons/AvCancelConfirmButtons.stories.d.ts +0 -44
- package/dist/components/interaction/buttons/AvCancelConfirmButtons/AvCancelConfirmButtons.stub.d.ts +0 -6
- package/dist/components/interaction/buttons/AvCancelConfirmButtons/AvCancelConfirmButtons.test.d.ts +0 -1
- package/dist/components/interaction/buttons/AvCancelConfirmButtons/AvCancelConfirmButtons.vue.d.ts +0 -47
- package/dist/components/interaction/buttons/AvRichButton/AvRichButton.stories.d.ts +0 -39
- package/dist/components/interaction/buttons/AvRichButton/AvRichButton.test.d.ts +0 -1
- package/dist/components/interaction/buttons/AvRichButton/AvRichButton.vue.d.ts +0 -48
- package/dist/components/interaction/buttons/index.d.ts +0 -4
- package/dist/components/interaction/files/AvFileUpload/AvFileUpload.stories.d.ts +0 -22
- package/dist/components/interaction/files/AvFileUpload/AvFileUpload.test.d.ts +0 -1
- package/dist/components/interaction/files/AvFileUpload/AvFileUpload.vue.d.ts +0 -121
- package/dist/components/interaction/files/AvFileUpload/AvFileUploadAlert.vue.d.ts +0 -19
- package/dist/components/interaction/files/index.d.ts +0 -1
- package/dist/components/interaction/index.d.ts +0 -10
- package/dist/components/interaction/inputs/AvInput/AvInput.stories.d.ts +0 -61
- package/dist/components/interaction/inputs/AvInput/AvInput.test.d.ts +0 -1
- package/dist/components/interaction/inputs/AvInput/AvInput.vue.d.ts +0 -123
- package/dist/components/interaction/inputs/index.d.ts +0 -1
- package/dist/components/interaction/lists/AvList/AvList.stories.d.ts +0 -55
- package/dist/components/interaction/lists/AvList/AvList.stub.d.ts +0 -5
- package/dist/components/interaction/lists/AvList/AvList.test.d.ts +0 -1
- package/dist/components/interaction/lists/AvList/AvList.vue.d.ts +0 -74
- package/dist/components/interaction/lists/AvListItem/AvListItem.stories.d.ts +0 -59
- package/dist/components/interaction/lists/AvListItem/AvListItem.stub.d.ts +0 -6
- package/dist/components/interaction/lists/AvListItem/AvListItem.test.d.ts +0 -1
- package/dist/components/interaction/lists/AvListItem/AvListItem.vue.d.ts +0 -112
- package/dist/components/interaction/lists/index.d.ts +0 -4
- package/dist/components/interaction/pickers/AvPageSizePicker/AvPageSizePicker.stories.d.ts +0 -24
- package/dist/components/interaction/pickers/AvPageSizePicker/AvPageSizePicker.test.d.ts +0 -1
- package/dist/components/interaction/pickers/AvPageSizePicker/AvPageSizePicker.vue.d.ts +0 -23
- package/dist/components/interaction/pickers/AvTagPicker/AvTagPicker.stories.d.ts +0 -96
- package/dist/components/interaction/pickers/AvTagPicker/AvTagPicker.stub.d.ts +0 -5
- package/dist/components/interaction/pickers/AvTagPicker/AvTagPicker.test.d.ts +0 -1
- package/dist/components/interaction/pickers/AvTagPicker/AvTagPicker.vue.d.ts +0 -79
- package/dist/components/interaction/pickers/index.d.ts +0 -3
- package/dist/components/interaction/radios/AvRadioButton/AvRadioButton.stories.d.ts +0 -34
- package/dist/components/interaction/radios/AvRadioButton/AvRadioButton.test.d.ts +0 -1
- package/dist/components/interaction/radios/AvRadioButton/AvRadioButton.vue.d.ts +0 -38
- package/dist/components/interaction/radios/AvRadioButtonSet/AvRadioButtonSet.stories.d.ts +0 -47
- package/dist/components/interaction/radios/AvRadioButtonSet/AvRadioButtonSet.test.d.ts +0 -1
- package/dist/components/interaction/radios/AvRadioButtonSet/AvRadioButtonSet.vue.d.ts +0 -76
- package/dist/components/interaction/radios/index.d.ts +0 -2
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.stories.d.ts +0 -565
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.stub.d.ts +0 -6
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.test.d.ts +0 -1
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.types.d.ts +0 -101
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.vue.d.ts +0 -204
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocompleteContext.d.ts +0 -14
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocompleteDropdown.vue.d.ts +0 -60
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocompleteInput.vue.d.ts +0 -585
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocompleteSelectedTags.vue.d.ts +0 -42
- package/dist/components/interaction/selects/AvMultiselect/AvMultiselect.stories.d.ts +0 -132
- package/dist/components/interaction/selects/AvMultiselect/AvMultiselect.test.d.ts +0 -1
- package/dist/components/interaction/selects/AvMultiselect/AvMultiselect.vue.d.ts +0 -94
- package/dist/components/interaction/selects/AvSelect/AvSelect.stories.d.ts +0 -96
- package/dist/components/interaction/selects/AvSelect/AvSelect.stub.d.ts +0 -11
- package/dist/components/interaction/selects/AvSelect/AvSelect.test.d.ts +0 -1
- package/dist/components/interaction/selects/AvSelect/AvSelect.vue.d.ts +0 -63
- package/dist/components/interaction/selects/index.d.ts +0 -6
- package/dist/components/interaction/tabs/AvTab/AvTab.stories.d.ts +0 -34
- package/dist/components/interaction/tabs/AvTab/AvTab.test.d.ts +0 -1
- package/dist/components/interaction/tabs/AvTab/AvTab.vue.d.ts +0 -31
- package/dist/components/interaction/tabs/AvTabs/AvTabs.stories.d.ts +0 -45
- package/dist/components/interaction/tabs/AvTabs/AvTabs.test.d.ts +0 -1
- package/dist/components/interaction/tabs/AvTabs/AvTabs.vue.d.ts +0 -46
- package/dist/components/interaction/tabs/index.d.ts +0 -2
- package/dist/components/interaction/toggles/AvToggle/AvToggle.stories.d.ts +0 -21
- package/dist/components/interaction/toggles/AvToggle/AvToggle.test.d.ts +0 -1
- package/dist/components/interaction/toggles/AvToggle/AvToggle.vue.d.ts +0 -46
- package/dist/components/interaction/toggles/index.d.ts +0 -1
- package/dist/components/navigation/AvNavigation/AvNavigation.stories.d.ts +0 -27
- package/dist/components/navigation/AvNavigation/AvNavigation.test.d.ts +0 -1
- package/dist/components/navigation/AvNavigation/AvNavigation.vue.d.ts +0 -16
- package/dist/components/navigation/AvNavigation/index.d.ts +0 -1
- package/dist/components/navigation/AvPagination/AvPagination.test.d.ts +0 -1
- package/dist/components/navigation/AvPagination/AvPagination.vue.d.ts +0 -57
- package/dist/components/navigation/AvPagination/utils.d.ts +0 -14
- package/dist/components/navigation/AvPagination/utils.test.d.ts +0 -1
- package/dist/components/navigation/AvSideMenu/AvSideMenu.stories.d.ts +0 -55
- package/dist/components/navigation/AvSideMenu/AvSideMenu.test.d.ts +0 -1
- package/dist/components/navigation/AvSideMenu/AvSideMenu.vue.d.ts +0 -61
- package/dist/components/navigation/AvSideNavigation/AvSideNavigation.stories.d.ts +0 -59
- package/dist/components/navigation/AvSideNavigation/AvSideNavigation.stub.d.ts +0 -11
- package/dist/components/navigation/AvSideNavigation/AvSideNavigation.test.d.ts +0 -1
- package/dist/components/navigation/AvSideNavigation/AvSideNavigation.vue.d.ts +0 -42
- package/dist/components/navigation/AvStepper/AvStepper.stories.d.ts +0 -28
- package/dist/components/navigation/AvStepper/AvStepper.stub.d.ts +0 -14
- package/dist/components/navigation/AvStepper/AvStepper.test.d.ts +0 -1
- package/dist/components/navigation/AvStepper/AvStepper.vue.d.ts +0 -19
- package/dist/components/navigation/index.d.ts +0 -8
- package/dist/components/overlay/drawers/AvDrawer/AvDrawer.stories.d.ts +0 -53
- package/dist/components/overlay/drawers/AvDrawer/AvDrawer.stub.d.ts +0 -6
- package/dist/components/overlay/drawers/AvDrawer/AvDrawer.test.d.ts +0 -1
- package/dist/components/overlay/drawers/AvDrawer/AvDrawer.vue.d.ts +0 -60
- package/dist/components/overlay/index.d.ts +0 -4
- package/dist/components/overlay/modals/AvModal/AvModal.test.d.ts +0 -1
- package/dist/components/overlay/modals/AvModal/AvModal.vue.d.ts +0 -92
- package/dist/components/overlay/popovers/AvPopover/AvPopover.stories.d.ts +0 -49
- package/dist/components/overlay/popovers/AvPopover/AvPopover.test.d.ts +0 -1
- package/dist/components/overlay/popovers/AvPopover/AvPopover.vue.d.ts +0 -48
- package/dist/components/overlay/popovers/AvPopover/use-popover.d.ts +0 -41
- package/dist/components/overlay/popovers/AvPopover/use-popover.test.d.ts +0 -1
- package/dist/composables/index.d.ts +0 -2
- package/dist/composables/use-breakpoint/use-breakpoint.d.ts +0 -54
- package/dist/composables/use-breakpoint/use-breakpoint.test.d.ts +0 -1
- package/dist/composables/use-focus-trap/use-focus-trap.d.ts +0 -25
- package/dist/composables/use-focus-trap/use-focus-trap.test.d.ts +0 -1
- package/dist/config/breakpoints.d.ts +0 -10
- package/dist/config/index.d.ts +0 -2
- package/dist/config/page-sizes.d.ts +0 -6
- package/dist/index.d.ts +0 -7
- package/dist/main.d.ts +0 -8
- package/dist/stories/foundations/icons.stories.d.ts +0 -6
- package/dist/stories/foundations/typography.stories.d.ts +0 -5
- package/dist/tests/index.d.ts +0 -1
- package/dist/tests/stubs.d.ts +0 -41
- package/dist/tests/utils.d.ts +0 -30
- package/dist/tokens/icons.d.ts +0 -92
- package/dist/tokens/index.d.ts +0 -1
- package/dist/utils/array/array.d.ts +0 -8
- package/dist/utils/forms/form.test.d.ts +0 -1
- package/dist/utils/forms/forms.d.ts +0 -6
- package/dist/utils/index.d.ts +0 -3
- package/dist/utils/string/string.d.ts +0 -27
- package/dist/utils/string/string.test.d.ts +0 -1
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import type { Slot } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* AvAlert component props.
|
|
4
|
-
*/
|
|
5
|
-
interface AvAlertProps {
|
|
6
|
-
/**
|
|
7
|
-
* If true, the alert is displayed with the `alert` role.
|
|
8
|
-
* @default false
|
|
9
|
-
*/
|
|
10
|
-
alert?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Indicates whether the alert is closed (`true`) or visible (`false`).
|
|
13
|
-
* @default false
|
|
14
|
-
*/
|
|
15
|
-
closed?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Indicates whether the alert can be closed using a button.
|
|
18
|
-
* @default false
|
|
19
|
-
*/
|
|
20
|
-
closeable?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* The alert unique identifier.
|
|
23
|
-
* @default crypto.randomUUID()
|
|
24
|
-
*/
|
|
25
|
-
id?: string;
|
|
26
|
-
/**
|
|
27
|
-
* The alert title.
|
|
28
|
-
* @default ''
|
|
29
|
-
*/
|
|
30
|
-
title?: string;
|
|
31
|
-
/**
|
|
32
|
-
* The alert description text.
|
|
33
|
-
*/
|
|
34
|
-
description?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Indicates whether the alert should be displayed in a small format.
|
|
37
|
-
* @default false
|
|
38
|
-
*/
|
|
39
|
-
small?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* The HTML tag used for the alert title.
|
|
42
|
-
* @default 'h3'
|
|
43
|
-
*/
|
|
44
|
-
titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
45
|
-
/**
|
|
46
|
-
* The alert type. Affects the color and icon.
|
|
47
|
-
* @default 'info'
|
|
48
|
-
*/
|
|
49
|
-
type?: 'info' | 'success' | 'warning' | 'error';
|
|
50
|
-
/**
|
|
51
|
-
* The label and aria-label of the alert close button.
|
|
52
|
-
* @default 'Fermer'
|
|
53
|
-
*/
|
|
54
|
-
closeButtonLabel?: string;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Slots available in the AvAlert component.
|
|
58
|
-
*
|
|
59
|
-
* @slot default - Default slot for global content.
|
|
60
|
-
*/
|
|
61
|
-
type __VLS_Slots = {
|
|
62
|
-
/**
|
|
63
|
-
* Default slot for global content.
|
|
64
|
-
*/
|
|
65
|
-
default?: Slot;
|
|
66
|
-
};
|
|
67
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvAlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
68
|
-
close: () => any;
|
|
69
|
-
}, string, import("vue").PublicProps, Readonly<AvAlertProps> & Readonly<{
|
|
70
|
-
onClose?: (() => any) | undefined;
|
|
71
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
72
|
-
export default _default;
|
|
73
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
74
|
-
new (): {
|
|
75
|
-
$slots: S;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,79 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,132 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
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;
|
|
@@ -1,2 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
|
@@ -1,5 +0,0 @@
|
|
|
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';
|
|
@@ -1,30 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
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>;
|
package/dist/components/interaction/accordions/AvAccordionsGroup/AvAccordionsGroup.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
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>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|