@avenirs-esr/avenirs-dsav 0.1.49 → 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.
Files changed (173) hide show
  1. package/package.json +3 -3
  2. package/dist/App.vue.d.ts +0 -2
  3. package/dist/components/badges/AvBadge/AvBadge.stories.d.ts +0 -36
  4. package/dist/components/badges/AvBadge/AvBadge.stub.d.ts +0 -18
  5. package/dist/components/badges/AvBadge/AvBadge.test.d.ts +0 -1
  6. package/dist/components/badges/AvBadge/AvBadge.vue.d.ts +0 -44
  7. package/dist/components/badges/index.d.ts +0 -2
  8. package/dist/components/base/AvIconText/AvIconText.stories.d.ts +0 -36
  9. package/dist/components/base/AvIconText/AvIconText.test.d.ts +0 -1
  10. package/dist/components/base/AvIconText/AvIconText.vue.d.ts +0 -40
  11. package/dist/components/base/AvNotice/AvNotice.stories.d.ts +0 -56
  12. package/dist/components/base/AvNotice/AvNotice.test.d.ts +0 -1
  13. package/dist/components/base/AvNotice/AvNotice.vue.d.ts +0 -22
  14. package/dist/components/base/AvVIcon/AvVIcon.stories.d.ts +0 -40
  15. package/dist/components/base/AvVIcon/AvVIcon.stub.d.ts +0 -5
  16. package/dist/components/base/AvVIcon/AvVIcon.vue.d.ts +0 -54
  17. package/dist/components/base/index.d.ts +0 -4
  18. package/dist/components/cards/AvCard/AvCard.stories.d.ts +0 -28
  19. package/dist/components/cards/AvCard/AvCard.test.d.ts +0 -1
  20. package/dist/components/cards/AvCard/AvCard.vue.d.ts +0 -58
  21. package/dist/components/cards/index.d.ts +0 -1
  22. package/dist/components/feedback/AvAlert/AvAlert.test.d.ts +0 -1
  23. package/dist/components/feedback/AvAlert/AvAlert.vue.d.ts +0 -77
  24. package/dist/components/feedback/AvToaster/AvToaster.test.d.ts +0 -1
  25. package/dist/components/feedback/AvToaster/AvToaster.vue.d.ts +0 -79
  26. package/dist/components/feedback/index.d.ts +0 -2
  27. package/dist/components/header/AvHeader/AvHeader.test.d.ts +0 -1
  28. package/dist/components/header/AvHeader/AvHeader.vue.d.ts +0 -132
  29. package/dist/components/header/AvHeaderMenuLinks/AvHeaderMenuLinks.test.d.ts +0 -1
  30. package/dist/components/header/AvHeaderMenuLinks/AvHeaderMenuLinks.vue.d.ts +0 -38
  31. package/dist/components/header/AvLogo.vue.d.ts +0 -2
  32. package/dist/components/header/EsupLogo.test.d.ts +0 -1
  33. package/dist/components/header/EsupLogo.vue.d.ts +0 -7
  34. package/dist/components/header/index.d.ts +0 -5
  35. package/dist/components/index.d.ts +0 -8
  36. package/dist/components/interaction/accordions/AvAccordion/AvAccordion.stories.d.ts +0 -30
  37. package/dist/components/interaction/accordions/AvAccordion/AvAccordion.test.d.ts +0 -1
  38. package/dist/components/interaction/accordions/AvAccordion/AvAccordion.vue.d.ts +0 -31
  39. package/dist/components/interaction/accordions/AvAccordionsGroup/AvAccordionsGroup.stories.d.ts +0 -41
  40. package/dist/components/interaction/accordions/AvAccordionsGroup/AvAccordionsGroup.test.d.ts +0 -1
  41. package/dist/components/interaction/accordions/AvAccordionsGroup/AvAccordionsGroup.vue.d.ts +0 -36
  42. package/dist/components/interaction/accordions/index.d.ts +0 -2
  43. package/dist/components/interaction/buttons/AvButton/AvButton.stories.d.ts +0 -66
  44. package/dist/components/interaction/buttons/AvButton/AvButton.stub.d.ts +0 -6
  45. package/dist/components/interaction/buttons/AvButton/AvButton.test.d.ts +0 -1
  46. package/dist/components/interaction/buttons/AvButton/AvButton.vue.d.ts +0 -78
  47. package/dist/components/interaction/buttons/AvCancelConfirmButtons/AvCancelConfirmButtons.stories.d.ts +0 -44
  48. package/dist/components/interaction/buttons/AvCancelConfirmButtons/AvCancelConfirmButtons.stub.d.ts +0 -6
  49. package/dist/components/interaction/buttons/AvCancelConfirmButtons/AvCancelConfirmButtons.test.d.ts +0 -1
  50. package/dist/components/interaction/buttons/AvCancelConfirmButtons/AvCancelConfirmButtons.vue.d.ts +0 -47
  51. package/dist/components/interaction/buttons/AvRichButton/AvRichButton.stories.d.ts +0 -39
  52. package/dist/components/interaction/buttons/AvRichButton/AvRichButton.test.d.ts +0 -1
  53. package/dist/components/interaction/buttons/AvRichButton/AvRichButton.vue.d.ts +0 -48
  54. package/dist/components/interaction/buttons/index.d.ts +0 -4
  55. package/dist/components/interaction/files/AvFileUpload/AvFileUpload.stories.d.ts +0 -22
  56. package/dist/components/interaction/files/AvFileUpload/AvFileUpload.test.d.ts +0 -1
  57. package/dist/components/interaction/files/AvFileUpload/AvFileUpload.vue.d.ts +0 -121
  58. package/dist/components/interaction/files/AvFileUpload/AvFileUploadAlert.vue.d.ts +0 -19
  59. package/dist/components/interaction/files/index.d.ts +0 -1
  60. package/dist/components/interaction/index.d.ts +0 -10
  61. package/dist/components/interaction/inputs/AvInput/AvInput.stories.d.ts +0 -61
  62. package/dist/components/interaction/inputs/AvInput/AvInput.test.d.ts +0 -1
  63. package/dist/components/interaction/inputs/AvInput/AvInput.vue.d.ts +0 -123
  64. package/dist/components/interaction/inputs/index.d.ts +0 -1
  65. package/dist/components/interaction/lists/AvList/AvList.stories.d.ts +0 -55
  66. package/dist/components/interaction/lists/AvList/AvList.stub.d.ts +0 -5
  67. package/dist/components/interaction/lists/AvList/AvList.test.d.ts +0 -1
  68. package/dist/components/interaction/lists/AvList/AvList.vue.d.ts +0 -74
  69. package/dist/components/interaction/lists/AvListItem/AvListItem.stories.d.ts +0 -59
  70. package/dist/components/interaction/lists/AvListItem/AvListItem.stub.d.ts +0 -6
  71. package/dist/components/interaction/lists/AvListItem/AvListItem.test.d.ts +0 -1
  72. package/dist/components/interaction/lists/AvListItem/AvListItem.vue.d.ts +0 -112
  73. package/dist/components/interaction/lists/index.d.ts +0 -4
  74. package/dist/components/interaction/pickers/AvPageSizePicker/AvPageSizePicker.stories.d.ts +0 -24
  75. package/dist/components/interaction/pickers/AvPageSizePicker/AvPageSizePicker.test.d.ts +0 -1
  76. package/dist/components/interaction/pickers/AvPageSizePicker/AvPageSizePicker.vue.d.ts +0 -23
  77. package/dist/components/interaction/pickers/AvTagPicker/AvTagPicker.stories.d.ts +0 -96
  78. package/dist/components/interaction/pickers/AvTagPicker/AvTagPicker.stub.d.ts +0 -5
  79. package/dist/components/interaction/pickers/AvTagPicker/AvTagPicker.test.d.ts +0 -1
  80. package/dist/components/interaction/pickers/AvTagPicker/AvTagPicker.vue.d.ts +0 -79
  81. package/dist/components/interaction/pickers/index.d.ts +0 -3
  82. package/dist/components/interaction/radios/AvRadioButton/AvRadioButton.stories.d.ts +0 -34
  83. package/dist/components/interaction/radios/AvRadioButton/AvRadioButton.test.d.ts +0 -1
  84. package/dist/components/interaction/radios/AvRadioButton/AvRadioButton.vue.d.ts +0 -38
  85. package/dist/components/interaction/radios/AvRadioButtonSet/AvRadioButtonSet.stories.d.ts +0 -47
  86. package/dist/components/interaction/radios/AvRadioButtonSet/AvRadioButtonSet.test.d.ts +0 -1
  87. package/dist/components/interaction/radios/AvRadioButtonSet/AvRadioButtonSet.vue.d.ts +0 -76
  88. package/dist/components/interaction/radios/index.d.ts +0 -2
  89. package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.stories.d.ts +0 -565
  90. package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.stub.d.ts +0 -6
  91. package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.test.d.ts +0 -1
  92. package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.types.d.ts +0 -101
  93. package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.vue.d.ts +0 -204
  94. package/dist/components/interaction/selects/AvAutocomplete/AvAutocompleteContext.d.ts +0 -14
  95. package/dist/components/interaction/selects/AvAutocomplete/AvAutocompleteDropdown.vue.d.ts +0 -60
  96. package/dist/components/interaction/selects/AvAutocomplete/AvAutocompleteInput.vue.d.ts +0 -585
  97. package/dist/components/interaction/selects/AvAutocomplete/AvAutocompleteSelectedTags.vue.d.ts +0 -42
  98. package/dist/components/interaction/selects/AvMultiselect/AvMultiselect.stories.d.ts +0 -132
  99. package/dist/components/interaction/selects/AvMultiselect/AvMultiselect.test.d.ts +0 -1
  100. package/dist/components/interaction/selects/AvMultiselect/AvMultiselect.vue.d.ts +0 -94
  101. package/dist/components/interaction/selects/AvSelect/AvSelect.stories.d.ts +0 -96
  102. package/dist/components/interaction/selects/AvSelect/AvSelect.stub.d.ts +0 -11
  103. package/dist/components/interaction/selects/AvSelect/AvSelect.test.d.ts +0 -1
  104. package/dist/components/interaction/selects/AvSelect/AvSelect.vue.d.ts +0 -63
  105. package/dist/components/interaction/selects/index.d.ts +0 -6
  106. package/dist/components/interaction/tabs/AvTab/AvTab.stories.d.ts +0 -34
  107. package/dist/components/interaction/tabs/AvTab/AvTab.test.d.ts +0 -1
  108. package/dist/components/interaction/tabs/AvTab/AvTab.vue.d.ts +0 -31
  109. package/dist/components/interaction/tabs/AvTabs/AvTabs.stories.d.ts +0 -45
  110. package/dist/components/interaction/tabs/AvTabs/AvTabs.test.d.ts +0 -1
  111. package/dist/components/interaction/tabs/AvTabs/AvTabs.vue.d.ts +0 -46
  112. package/dist/components/interaction/tabs/index.d.ts +0 -2
  113. package/dist/components/interaction/toggles/AvToggle/AvToggle.stories.d.ts +0 -21
  114. package/dist/components/interaction/toggles/AvToggle/AvToggle.test.d.ts +0 -1
  115. package/dist/components/interaction/toggles/AvToggle/AvToggle.vue.d.ts +0 -46
  116. package/dist/components/interaction/toggles/index.d.ts +0 -1
  117. package/dist/components/navigation/AvNavigation/AvNavigation.stories.d.ts +0 -27
  118. package/dist/components/navigation/AvNavigation/AvNavigation.test.d.ts +0 -1
  119. package/dist/components/navigation/AvNavigation/AvNavigation.vue.d.ts +0 -16
  120. package/dist/components/navigation/AvNavigation/index.d.ts +0 -1
  121. package/dist/components/navigation/AvPagination/AvPagination.test.d.ts +0 -1
  122. package/dist/components/navigation/AvPagination/AvPagination.vue.d.ts +0 -57
  123. package/dist/components/navigation/AvPagination/utils.d.ts +0 -14
  124. package/dist/components/navigation/AvPagination/utils.test.d.ts +0 -1
  125. package/dist/components/navigation/AvSideMenu/AvSideMenu.stories.d.ts +0 -55
  126. package/dist/components/navigation/AvSideMenu/AvSideMenu.test.d.ts +0 -1
  127. package/dist/components/navigation/AvSideMenu/AvSideMenu.vue.d.ts +0 -61
  128. package/dist/components/navigation/AvSideNavigation/AvSideNavigation.stories.d.ts +0 -59
  129. package/dist/components/navigation/AvSideNavigation/AvSideNavigation.stub.d.ts +0 -11
  130. package/dist/components/navigation/AvSideNavigation/AvSideNavigation.test.d.ts +0 -1
  131. package/dist/components/navigation/AvSideNavigation/AvSideNavigation.vue.d.ts +0 -42
  132. package/dist/components/navigation/AvStepper/AvStepper.stories.d.ts +0 -28
  133. package/dist/components/navigation/AvStepper/AvStepper.stub.d.ts +0 -14
  134. package/dist/components/navigation/AvStepper/AvStepper.test.d.ts +0 -1
  135. package/dist/components/navigation/AvStepper/AvStepper.vue.d.ts +0 -19
  136. package/dist/components/navigation/index.d.ts +0 -8
  137. package/dist/components/overlay/drawers/AvDrawer/AvDrawer.stories.d.ts +0 -53
  138. package/dist/components/overlay/drawers/AvDrawer/AvDrawer.stub.d.ts +0 -6
  139. package/dist/components/overlay/drawers/AvDrawer/AvDrawer.test.d.ts +0 -1
  140. package/dist/components/overlay/drawers/AvDrawer/AvDrawer.vue.d.ts +0 -60
  141. package/dist/components/overlay/index.d.ts +0 -4
  142. package/dist/components/overlay/modals/AvModal/AvModal.test.d.ts +0 -1
  143. package/dist/components/overlay/modals/AvModal/AvModal.vue.d.ts +0 -92
  144. package/dist/components/overlay/popovers/AvPopover/AvPopover.stories.d.ts +0 -49
  145. package/dist/components/overlay/popovers/AvPopover/AvPopover.test.d.ts +0 -1
  146. package/dist/components/overlay/popovers/AvPopover/AvPopover.vue.d.ts +0 -48
  147. package/dist/components/overlay/popovers/AvPopover/use-popover.d.ts +0 -41
  148. package/dist/components/overlay/popovers/AvPopover/use-popover.test.d.ts +0 -1
  149. package/dist/composables/index.d.ts +0 -3
  150. package/dist/composables/use-breakpoint/use-breakpoint.d.ts +0 -54
  151. package/dist/composables/use-breakpoint/use-breakpoint.test.d.ts +0 -1
  152. package/dist/composables/use-focus-trap/use-focus-trap.d.ts +0 -25
  153. package/dist/composables/use-focus-trap/use-focus-trap.test.d.ts +0 -1
  154. package/dist/composables/use-global-background-color/use-global-background-color.d.ts +0 -19
  155. package/dist/composables/use-global-background-color/use-global-background-color.test.d.ts +0 -1
  156. package/dist/config/breakpoints.d.ts +0 -10
  157. package/dist/config/index.d.ts +0 -2
  158. package/dist/config/page-sizes.d.ts +0 -6
  159. package/dist/index.d.ts +0 -7
  160. package/dist/main.d.ts +0 -8
  161. package/dist/stories/foundations/icons.stories.d.ts +0 -6
  162. package/dist/stories/foundations/typography.stories.d.ts +0 -5
  163. package/dist/tests/index.d.ts +0 -1
  164. package/dist/tests/stubs.d.ts +0 -41
  165. package/dist/tests/utils.d.ts +0 -30
  166. package/dist/tokens/icons.d.ts +0 -92
  167. package/dist/tokens/index.d.ts +0 -1
  168. package/dist/utils/array/array.d.ts +0 -8
  169. package/dist/utils/forms/form.test.d.ts +0 -1
  170. package/dist/utils/forms/forms.d.ts +0 -6
  171. package/dist/utils/index.d.ts +0 -3
  172. package/dist/utils/string/string.d.ts +0 -27
  173. package/dist/utils/string/string.test.d.ts +0 -1
@@ -1,47 +0,0 @@
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;
@@ -1,39 +0,0 @@
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>;
@@ -1,48 +0,0 @@
1
- import type { Slot } from 'vue';
2
- /**
3
- * AvRichButton component props.
4
- */
5
- export interface AvRichButtonProps {
6
- /**
7
- * Button aria label and title for accessibility.
8
- */
9
- label: string;
10
- /**
11
- * Icon displayed on the left of the button.
12
- * Must be an icon name.
13
- */
14
- iconLeft?: string;
15
- /**
16
- * Icon displayed on the right of the button.
17
- * Must be an icon name.
18
- */
19
- iconRight?: string;
20
- /**
21
- * Allows you to change the padding of the button.
22
- * @default '1rem'
23
- */
24
- customPadding?: string;
25
- /**
26
- * Function called when button is clicked.
27
- * @param event The MouseEvent of the click.
28
- */
29
- onClick?: (event: MouseEvent) => void;
30
- }
31
- /**
32
- * Slots available in the AvRichButton component.
33
- *
34
- * @slot default - Default slot for rich button content.
35
- */
36
- type __VLS_Slots = {
37
- /**
38
- * Default slot for rich button content.
39
- */
40
- default: Slot;
41
- };
42
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvRichButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvRichButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
43
- export default _default;
44
- type __VLS_WithSlots<T, S> = T & {
45
- new (): {
46
- $slots: S;
47
- };
48
- };
@@ -1,4 +0,0 @@
1
- export { AvButtonStub } from './AvButton/AvButton.stub';
2
- export { default as AvButton, type AvButtonProps } from './AvButton/AvButton.vue';
3
- export { default as AvCancelConfirmButtons } from './AvCancelConfirmButtons/AvCancelConfirmButtons.vue';
4
- export { default as AvRichButton } from './AvRichButton/AvRichButton.vue';
@@ -1,22 +0,0 @@
1
- import type { Meta, StoryFn } from '@storybook/vue3';
2
- import { type AvFileUploadProps } from '@/components/interaction/files/AvFileUpload/AvFileUpload.vue';
3
- /**
4
- * <h1 class="n1">File uploader - <code>AvFileUpload</code></h1>
5
- *
6
- * <h2 class="n2">✨ Introduction</h2>
7
- *
8
- * <p>
9
- * <span class="b2-regular">
10
- * The <code>AvFileUpload</code> component allows you to upload files by clicking on the file upload area
11
- * or by dragging and dropping a file in the area.
12
- * </span>
13
- * </p>
14
- */
15
- declare const meta: Meta<AvFileUploadProps>;
16
- export default meta;
17
- export declare const Default: StoryFn<AvFileUploadProps>;
18
- export declare const Error: StoryFn<AvFileUploadProps>;
19
- export declare const Success: StoryFn<AvFileUploadProps>;
20
- export declare const LeftSlot: StoryFn<AvFileUploadProps & {
21
- leftImageSrc: string;
22
- }>;
@@ -1,121 +0,0 @@
1
- import { type Slot } from 'vue';
2
- /**
3
- * AvFileUpload component props.
4
- */
5
- export interface AvFileUploadProps {
6
- /**
7
- * Unique identifier for the file download component.
8
- * If not specified, a random ID is generated.
9
- *
10
- * @default () => useRandomId(...)
11
- */
12
- id?: string;
13
- /**
14
- * ARIA label for file download button.
15
- *
16
- * @default ''
17
- */
18
- ariaLabel?: string;
19
- /**
20
- * Accepted file types, specified as a string (like HTML `accept` attribute)
21
- * or an array of strings (which will be transformed into a string).
22
- *
23
- * @default undefined
24
- */
25
- accept?: string | string[];
26
- /**
27
- * Error message to be displayed in case of download problem.
28
- *
29
- * @default ''
30
- */
31
- error?: string;
32
- /**
33
- * Message indicating that the downloaded file is valid.
34
- *
35
- * @default ''
36
- */
37
- validMessage?: string;
38
- /**
39
- * Whether the file upload input is disabled.
40
- *
41
- * @default false
42
- */
43
- disabled?: boolean;
44
- /**
45
- * Value linked to file upload input template.
46
- *
47
- * @default null
48
- */
49
- modelValue?: File | null;
50
- /**
51
- * Max width of the component.
52
- *
53
- * @default undefined
54
- */
55
- maxWidth?: string;
56
- /**
57
- * Title of the file upload section.
58
- */
59
- title: string;
60
- /**
61
- * Description of the file upload section.
62
- * @default undefined
63
- */
64
- description: string;
65
- /**
66
- * delete button label
67
- *
68
- */
69
- deleteButtonLabel?: string;
70
- /**
71
- * Name of actual file.
72
- *
73
- * @default undefined
74
- */
75
- fileName?: string;
76
- /**
77
- * Method executed on delete file button click.
78
- *
79
- * @default undefined
80
- */
81
- onDeleteFile?: () => void;
82
- /**
83
- * Whether the file upload input enable multiple file selection or not.
84
- *
85
- * @default false
86
- */
87
- enableMultiple?: boolean;
88
- }
89
- type __VLS_Slots = {
90
- /**
91
- * Slot for the hint description.
92
- */
93
- hint?: Slot;
94
- /**
95
- * Slot for the left content.
96
- */
97
- left?: Slot;
98
- /**
99
- * Default slot for global content between the left and right icons.
100
- */
101
- default?: Slot;
102
- };
103
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvFileUploadProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
104
- change: (payload: FileList) => any;
105
- "update:modelValue": (payload: File | null) => any;
106
- "update:validMessage": (payload: string | null) => any;
107
- "update:error": (payload: string | null) => any;
108
- onDropAcceptTypeError: () => any;
109
- }, string, import("vue").PublicProps, Readonly<AvFileUploadProps> & Readonly<{
110
- onChange?: ((payload: FileList) => any) | undefined;
111
- "onUpdate:modelValue"?: ((payload: File | null) => any) | undefined;
112
- "onUpdate:validMessage"?: ((payload: string | null) => any) | undefined;
113
- "onUpdate:error"?: ((payload: string | null) => any) | undefined;
114
- onOnDropAcceptTypeError?: (() => any) | undefined;
115
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
116
- export default _default;
117
- type __VLS_WithSlots<T, S> = T & {
118
- new (): {
119
- $slots: S;
120
- };
121
- };
@@ -1,19 +0,0 @@
1
- export interface AvFileUploadAlertProps {
2
- /**
3
- * Error message to be displayed in case of upload problem.
4
- *
5
- * @default undefined
6
- */
7
- error?: string;
8
- /**
9
- * Message indicating that the uploaded file is valid.
10
- *
11
- * @default undefined
12
- */
13
- validMessage?: string;
14
- }
15
- declare const _default: import("vue").DefineComponent<AvFileUploadAlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvFileUploadAlertProps> & Readonly<{}>, {
16
- error: string;
17
- validMessage: string;
18
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
- export default _default;
@@ -1 +0,0 @@
1
- export { default as AvFileUpload, type AvFileUploadProps } from './AvFileUpload/AvFileUpload.vue';
@@ -1,10 +0,0 @@
1
- export * from './accordions';
2
- export * from './buttons';
3
- export * from './files';
4
- export * from './inputs';
5
- export * from './lists';
6
- export * from './pickers';
7
- export * from './radios';
8
- export * from './selects';
9
- export * from './tabs';
10
- export * from './toggles';
@@ -1,61 +0,0 @@
1
- import type { Meta, StoryFn } from '@storybook/vue3';
2
- import { type AvInputProps } from '@/components/interaction/inputs/AvInput/AvInput.vue';
3
- /**
4
- * <h2 class="n2">✨ Introduction</h2>
5
- *
6
- * <p>
7
- * <span class="b2-regular">
8
- * The <code>AvInput</code> component is a flexible and accessible input component that provides a standardized way to collect user input in forms and interfaces.
9
- * It supports various input types, validation states, and accessibility features to ensure a consistent user experience.
10
- * </span>
11
- * </p>
12
- *
13
- * <p>
14
- * <span class="b2-regular">
15
- * It adds prefix icon support, enhanced validation messaging, and custom styling while maintaining full compatibility with the French government's design system standards.
16
- * </span>
17
- * </p>
18
- *
19
- * <h2 class="n2">🏗️ Structure</h2>
20
- *
21
- * <p><span class="b2-regular">The input component consists of the following elements:</span></p>
22
- * <ul>
23
- * <li><span class="b2-regular"><strong>Wrapper</strong>: Container that manages the overall layout and positioning</span></li>
24
- * <li><span class="b2-regular"><strong>Prefix Icon</strong> (optional): Visual icon positioned at the beginning of the input field</span></li>
25
- * <li><span class="b2-regular"><strong>Input Field</strong>: The main input element (can be rendered as input or textarea)</span></li>
26
- * <li><span class="b2-regular"><strong>Label</strong>: Descriptive text for the input field</span></li>
27
- * <li><span class="b2-regular"><strong>Hint</strong>: Optional helper text displayed below the label</span></li>
28
- * <li><span class="b2-regular"><strong>Error Messages</strong>: Validation error messages displayed when validation fails</span></li>
29
- * <li><span class="b2-regular"><strong>Success Messages</strong>: Validation success messages displayed when validation passes</span></li>
30
- * </ul>
31
- *
32
- * <p>
33
- * <span class="b2-regular">
34
- * The component integrates focus management, proper ARIA attributes, and responsive design patterns.
35
- * </span>
36
- * </p>
37
- */
38
- declare const meta: Meta<AvInputProps>;
39
- export default meta;
40
- export declare const Default: StoryFn<AvInputProps>;
41
- export declare const WithHint: StoryFn<AvInputProps>;
42
- export declare const Required: StoryFn<AvInputProps>;
43
- export declare const Valid: StoryFn<AvInputProps>;
44
- export declare const Disabled: StoryFn<AvInputProps>;
45
- export declare const Email: StoryFn<AvInputProps>;
46
- export declare const Password: StoryFn<AvInputProps>;
47
- export declare const DateInput: StoryFn<AvInputProps>;
48
- export declare const Textarea: StoryFn<AvInputProps>;
49
- export declare const WithoutLabel: StoryFn<AvInputProps>;
50
- export declare const WithMaxLength: StoryFn<AvInputProps>;
51
- export declare const MultipleErrors: StoryFn<AvInputProps>;
52
- export declare const MultipleValidMessages: StoryFn<AvInputProps>;
53
- export declare const WithPrefixIcon: StoryFn<AvInputProps>;
54
- export declare const EmailWithIcon: StoryFn<AvInputProps>;
55
- export declare const PasswordWithIcon: StoryFn<AvInputProps>;
56
- export declare const PhoneWithIcon: StoryFn<AvInputProps>;
57
- export declare const PrefixIconWithValidation: StoryFn<AvInputProps>;
58
- export declare const PrefixIconDisabled: StoryFn<AvInputProps>;
59
- export declare const NumberInput: StoryFn<AvInputProps>;
60
- export declare const SearchInput: StoryFn<AvInputProps>;
61
- export declare const UrlInput: StoryFn<AvInputProps>;
@@ -1,123 +0,0 @@
1
- import type { Slot } from 'vue';
2
- export interface AvInputProps {
3
- /**
4
- * ID of the input element
5
- */
6
- id?: string;
7
- /**
8
- * ID of the description element
9
- */
10
- descriptionId?: string;
11
- /**
12
- * Hint text displayed below the label
13
- */
14
- hint?: string;
15
- /**
16
- * Validation state - valid
17
- */
18
- isValid?: boolean;
19
- /**
20
- * Render as textarea instead of input
21
- */
22
- isTextarea?: boolean;
23
- /**
24
- * Whether the label is visible
25
- */
26
- labelVisible?: boolean;
27
- /**
28
- * Label text
29
- */
30
- label?: string;
31
- /**
32
- * CSS class for the label
33
- */
34
- labelClass?: string;
35
- /**
36
- * Model value for v-model
37
- */
38
- modelValue?: string | number | null;
39
- /**
40
- * Placeholder text
41
- */
42
- placeholder?: string;
43
- /**
44
- * Input type (text, email, password, etc.)
45
- */
46
- type?: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search' | 'date' | 'datetime-local' | 'month' | 'time' | 'week' | 'color' | 'file' | 'hidden' | 'range';
47
- /**
48
- * Minimum date for date inputs
49
- */
50
- minDate?: Date;
51
- /**
52
- * Max date for date inputs
53
- */
54
- maxDate?: Date;
55
- /**
56
- * Whether the input is disabled
57
- */
58
- disabled?: boolean;
59
- /**
60
- * Whether the input is required
61
- */
62
- required?: boolean;
63
- /**
64
- * Maximum length of input
65
- */
66
- maxlength?: number;
67
- /**
68
- * Minimum length of input
69
- */
70
- minlength?: number;
71
- /**
72
- * Error message to display
73
- */
74
- errorMessage?: string | string[];
75
- /**
76
- * Valid message to display
77
- */
78
- validMessage?: string | string[];
79
- /**
80
- * Prefix icon name (optional)
81
- */
82
- prefixIcon?: string;
83
- /**
84
- * Width of the input
85
- */
86
- width?: string;
87
- }
88
- /**
89
- * Slots available for the component.
90
- *
91
- * @slot requiredTip - Slot for custom required tip content.
92
- */
93
- type __VLS_Slots = {
94
- /**
95
- * Slot for custom required tip content
96
- */
97
- requiredTip?: Slot;
98
- /**
99
- * Slot for custom captions, such as error or valid messages.
100
- */
101
- customCaptions?: Slot<{
102
- currentValue?: string | number | null;
103
- maxlength?: number;
104
- }>;
105
- };
106
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
107
- "update:modelValue": (value: string | number | null) => any;
108
- }, string, import("vue").PublicProps, Readonly<AvInputProps> & Readonly<{
109
- "onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
110
- }>, {
111
- type: "number" | "time" | "text" | "color" | "search" | "file" | "date" | "datetime-local" | "email" | "hidden" | "month" | "password" | "range" | "tel" | "url" | "week";
112
- disabled: boolean;
113
- required: boolean;
114
- isValid: boolean;
115
- isTextarea: boolean;
116
- labelVisible: boolean;
117
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
118
- export default _default;
119
- type __VLS_WithSlots<T, S> = T & {
120
- new (): {
121
- $slots: S;
122
- };
123
- };
@@ -1 +0,0 @@
1
- export { default as AvInput, type AvInputProps } from './AvInput/AvInput.vue';
@@ -1,55 +0,0 @@
1
- import type { Meta, StoryFn } from '@storybook/vue3';
2
- import { type AvListProps } from './AvList.vue';
3
- /**
4
- * <h1 class="n1">Lists - <code>AvList</code></h1>
5
- *
6
- * <h2 class="n2">✨ Introduction</h2>
7
- *
8
- * <p>
9
- * <span class="b2-regular">
10
- * The AvList component is a flexible and accessible container for displaying collections of items.
11
- * It provides a structured way to present data in a vertical list format with extensive customization options for styling, sizing, and accessibility.
12
- * </span>
13
- * </p>
14
- *
15
- * <p>
16
- * <span class="b2-regular">
17
- * The <code>AvList</code> component is designed to work seamlessly with <code>AvListItem</code> components, offering consistent spacing, styling, and interaction patterns.
18
- * It supports various visual configurations including borders, dividers, different sizes, and full accessibility compliance.
19
- * </span>
20
- * </p>
21
- *
22
- * <p>
23
- * <span class="b2-regular">
24
- * It features flexible sizing system for different use cases, optional visual enhancements, and full accessibility support with ARIA attributes
25
- * while maintaining visual consistency with the design system's styling tokens.
26
- * </span>
27
- * </p>
28
- *
29
- * <h2 class="n2">🏗️ Structure</h2>
30
- *
31
- * <p><span class="b2-regular">The list component consists of the following elements:</span></p>
32
- *
33
- * <ul>
34
- * <li><span class="b2-regular"><strong>Container:</strong> (mandatory) Main wrapper that contains all list items with proper semantic structure</span></li>
35
- * <li><span class="b2-regular"><strong>List Items:</strong> (mandatory) Individual items rendered within the list, typically <code>AvListItem</code> components</span></li>
36
- * </ul>
37
- *
38
- * <p><span class="b2-regular">The list integrates:</span></p>
39
- *
40
- * <ul>
41
- * <li><span class="b2-regular">Flexible sizing system for different use cases</span></li>
42
- * <li><span class="b2-regular">Optional visual enhancements (borders, dividers)</span></li>
43
- * <li><span class="b2-regular">Full accessibility support with ARIA attributes</span></li>
44
- * <li><span class="b2-regular">Customizable styling through CSS custom properties</span></li>
45
- * </ul>
46
- */
47
- declare const meta: Meta<AvListProps>;
48
- export default meta;
49
- export declare const Default: StoryFn<AvListProps>;
50
- export declare const Bordered: StoryFn<AvListProps>;
51
- export declare const DividedList: StoryFn<AvListProps>;
52
- export declare const CustomStyling: StoryFn<AvListProps>;
53
- export declare const SmallSize: StoryFn<AvListProps>;
54
- export declare const MediumSize: StoryFn<AvListProps>;
55
- export declare const LargeSize: StoryFn<AvListProps>;
@@ -1,5 +0,0 @@
1
- export declare const AvListStub: {
2
- name: string;
3
- props: string[];
4
- template: string;
5
- };
@@ -1,74 +0,0 @@
1
- import type { VNode } from 'vue';
2
- import type AvListItem from '@/components/interaction/lists/AvListItem/AvListItem.vue';
3
- /**
4
- * AvList component props.
5
- */
6
- export interface AvListProps {
7
- /**
8
- * The background color of the list.
9
- * @default 'transparent'
10
- */
11
- backgroundColor?: string;
12
- /**
13
- * The border color of the list.
14
- * @default 'var(--stroke)'
15
- */
16
- borderColor?: string;
17
- /**
18
- * The border radius of the list.
19
- * @default '0'
20
- */
21
- borderRadius?: string;
22
- /**
23
- * Whether to show borders between list items.
24
- * @default false
25
- */
26
- bordered?: boolean;
27
- /**
28
- * Whether to show a divider between list items.
29
- * @default false
30
- */
31
- divided?: boolean;
32
- /**
33
- * The size variant of the list.
34
- * @default 'small'
35
- */
36
- size?: 'xsmall' | 'small' | 'medium' | 'large';
37
- /**
38
- * Custom padding for the list container.
39
- */
40
- padding?: string;
41
- /**
42
- * Accessible label for the list.
43
- */
44
- ariaLabel?: string;
45
- /**
46
- * ID of an element that labels the list.
47
- */
48
- ariaLabelledby?: string;
49
- /**
50
- * ID of an element that describes the list.
51
- */
52
- ariaDescribedby?: string;
53
- /**
54
- * The semantic role of the list.
55
- * @default 'list'
56
- */
57
- role?: 'list' | 'menu' | 'listbox' | 'group';
58
- }
59
- /**
60
- * Slots available in the AvList component.
61
- */
62
- type __VLS_Slots = {
63
- /**
64
- * Default slot for AvListItem components.
65
- */
66
- default?: () => VNode<typeof AvListItem>[];
67
- };
68
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvListProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
69
- export default _default;
70
- type __VLS_WithSlots<T, S> = T & {
71
- new (): {
72
- $slots: S;
73
- };
74
- };