@avenirs-esr/avenirs-dsav 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/dist/App.vue.d.ts +2 -0
  2. package/dist/avenirs-dsav.css +1 -1
  3. package/dist/avenirs-dsav.es.js +7375 -15307
  4. package/dist/avenirs-dsav.umd.js +73 -110
  5. package/dist/components/badges/AvBadge/AvBadge.stories.d.ts +44 -0
  6. package/dist/components/badges/AvBadge/AvBadge.stub.d.ts +30 -0
  7. package/dist/components/badges/AvBadge/AvBadge.test.d.ts +1 -0
  8. package/dist/components/badges/AvBadge/AvBadge.vue.d.ts +44 -0
  9. package/dist/components/badges/index.d.ts +1 -0
  10. package/dist/components/base/AvIconText/AvIconText.stories.d.ts +36 -0
  11. package/dist/components/base/AvIconText/AvIconText.test.d.ts +1 -0
  12. package/dist/components/base/AvIconText/AvIconText.vue.d.ts +40 -0
  13. package/dist/components/base/AvNotice/AvNotice.stories.d.ts +63 -0
  14. package/dist/components/base/AvNotice/AvNotice.test.d.ts +1 -0
  15. package/dist/components/base/AvNotice/AvNotice.vue.d.ts +22 -0
  16. package/dist/components/base/AvVIcon/AvVIcon.stories.d.ts +47 -0
  17. package/dist/components/base/AvVIcon/AvVIcon.stub.d.ts +9 -0
  18. package/dist/components/base/AvVIcon/AvVIcon.vue.d.ts +54 -0
  19. package/dist/components/base/index.d.ts +2 -0
  20. package/dist/components/cards/AvCard/AvCard.stories.d.ts +28 -0
  21. package/dist/components/cards/AvCard/AvCard.test.d.ts +1 -0
  22. package/dist/components/cards/AvCard/AvCard.vue.d.ts +58 -0
  23. package/dist/components/cards/index.d.ts +1 -0
  24. package/dist/components/feedback/AvAlert/AvAlert.test.d.ts +1 -0
  25. package/dist/components/feedback/AvAlert/AvAlert.vue.d.ts +77 -0
  26. package/dist/components/feedback/AvToaster/AvToaster.test.d.ts +1 -0
  27. package/dist/components/feedback/AvToaster/AvToaster.vue.d.ts +79 -0
  28. package/dist/components/feedback/index.d.ts +2 -0
  29. package/dist/components/header/AvHeader/AvHeader.test.d.ts +1 -0
  30. package/dist/components/header/AvHeader/AvHeader.vue.d.ts +132 -0
  31. package/dist/components/header/AvHeaderMenuLinks/AvHeaderMenuLinks.test.d.ts +1 -0
  32. package/dist/components/header/AvHeaderMenuLinks/AvHeaderMenuLinks.vue.d.ts +38 -0
  33. package/dist/components/header/AvLogo.vue.d.ts +2 -0
  34. package/dist/components/header/EsupLogo.test.d.ts +1 -0
  35. package/dist/components/header/EsupLogo.vue.d.ts +7 -0
  36. package/dist/components/header/index.d.ts +5 -0
  37. package/dist/components/index.d.ts +8 -0
  38. package/dist/components/interaction/accordions/AvAccordion/AvAccordion.stories.d.ts +30 -0
  39. package/dist/components/interaction/accordions/AvAccordion/AvAccordion.test.d.ts +1 -0
  40. package/dist/components/interaction/accordions/AvAccordion/AvAccordion.vue.d.ts +31 -0
  41. package/dist/components/interaction/accordions/AvAccordionsGroup/AvAccordionsGroup.stories.d.ts +48 -0
  42. package/dist/components/interaction/accordions/AvAccordionsGroup/AvAccordionsGroup.test.d.ts +1 -0
  43. package/dist/components/interaction/accordions/AvAccordionsGroup/AvAccordionsGroup.vue.d.ts +36 -0
  44. package/dist/components/interaction/accordions/index.d.ts +2 -0
  45. package/dist/components/interaction/buttons/AvButton/AvButton.stories.d.ts +75 -0
  46. package/dist/components/interaction/buttons/AvButton/AvButton.stub.d.ts +15 -0
  47. package/dist/components/interaction/buttons/AvButton/AvButton.test.d.ts +1 -0
  48. package/dist/components/interaction/buttons/AvButton/AvButton.vue.d.ts +78 -0
  49. package/dist/components/interaction/buttons/AvRichButton/AvRichButton.stories.d.ts +39 -0
  50. package/dist/components/interaction/buttons/AvRichButton/AvRichButton.test.d.ts +1 -0
  51. package/dist/components/interaction/buttons/AvRichButton/AvRichButton.vue.d.ts +48 -0
  52. package/dist/components/interaction/buttons/index.d.ts +2 -0
  53. package/dist/components/interaction/files/AvFileUpload/AvFileUpload.stories.d.ts +30 -0
  54. package/dist/components/interaction/files/AvFileUpload/AvFileUpload.test.d.ts +1 -0
  55. package/dist/components/interaction/files/AvFileUpload/AvFileUpload.vue.d.ts +131 -0
  56. package/dist/components/interaction/files/AvFileUpload/AvFileUploadAlert.vue.d.ts +19 -0
  57. package/dist/components/interaction/files/index.d.ts +1 -0
  58. package/dist/components/interaction/index.d.ts +10 -0
  59. package/dist/components/interaction/inputs/AvInput/AvInput.stories.d.ts +71 -0
  60. package/dist/components/interaction/inputs/AvInput/AvInput.test.d.ts +1 -0
  61. package/dist/components/interaction/inputs/AvInput/AvInput.vue.d.ts +111 -0
  62. package/dist/components/interaction/inputs/index.d.ts +1 -0
  63. package/dist/components/interaction/lists/AvList/AvList.stories.d.ts +55 -0
  64. package/dist/components/interaction/lists/AvList/AvList.stub.d.ts +5 -0
  65. package/dist/components/interaction/lists/AvList/AvList.test.d.ts +1 -0
  66. package/dist/components/interaction/lists/AvList/AvList.vue.d.ts +74 -0
  67. package/dist/components/interaction/lists/AvListItem/AvListItem.stories.d.ts +59 -0
  68. package/dist/components/interaction/lists/AvListItem/AvListItem.stub.d.ts +19 -0
  69. package/dist/components/interaction/lists/AvListItem/AvListItem.test.d.ts +1 -0
  70. package/dist/components/interaction/lists/AvListItem/AvListItem.vue.d.ts +112 -0
  71. package/dist/components/interaction/lists/index.d.ts +2 -0
  72. package/dist/components/interaction/pickers/AvPageSizePicker/AvPageSizePicker.stories.d.ts +24 -0
  73. package/dist/components/interaction/pickers/AvPageSizePicker/AvPageSizePicker.test.d.ts +1 -0
  74. package/dist/components/interaction/pickers/AvPageSizePicker/AvPageSizePicker.vue.d.ts +23 -0
  75. package/dist/components/interaction/pickers/AvTagPicker/AvTagPicker.stories.d.ts +96 -0
  76. package/dist/components/interaction/pickers/AvTagPicker/AvTagPicker.stub.d.ts +11 -0
  77. package/dist/components/interaction/pickers/AvTagPicker/AvTagPicker.test.d.ts +1 -0
  78. package/dist/components/interaction/pickers/AvTagPicker/AvTagPicker.vue.d.ts +79 -0
  79. package/dist/components/interaction/pickers/index.d.ts +2 -0
  80. package/dist/components/interaction/radios/AvRadioButton/AvRadioButton.stories.d.ts +34 -0
  81. package/dist/components/interaction/radios/AvRadioButton/AvRadioButton.test.d.ts +1 -0
  82. package/dist/components/interaction/radios/AvRadioButton/AvRadioButton.vue.d.ts +38 -0
  83. package/dist/components/interaction/radios/AvRadioButtonSet/AvRadioButtonSet.stories.d.ts +54 -0
  84. package/dist/components/interaction/radios/AvRadioButtonSet/AvRadioButtonSet.test.d.ts +1 -0
  85. package/dist/components/interaction/radios/AvRadioButtonSet/AvRadioButtonSet.vue.d.ts +76 -0
  86. package/dist/components/interaction/radios/index.d.ts +2 -0
  87. package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.stories.d.ts +553 -0
  88. package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.stub.d.ts +28 -0
  89. package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.test.d.ts +1 -0
  90. package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.types.d.ts +101 -0
  91. package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.vue.d.ts +204 -0
  92. package/dist/components/interaction/selects/AvAutocomplete/AvAutocompleteContext.d.ts +14 -0
  93. package/dist/components/interaction/selects/AvAutocomplete/AvAutocompleteDropdown.vue.d.ts +60 -0
  94. package/dist/components/interaction/selects/AvAutocomplete/AvAutocompleteInput.vue.d.ts +309 -0
  95. package/dist/components/interaction/selects/AvAutocomplete/AvAutocompleteSelectedTags.vue.d.ts +42 -0
  96. package/dist/components/interaction/selects/AvSelect/AvSelect.stories.d.ts +103 -0
  97. package/dist/components/interaction/selects/AvSelect/AvSelect.stub.d.ts +15 -0
  98. package/dist/components/interaction/selects/AvSelect/AvSelect.test.d.ts +1 -0
  99. package/dist/components/interaction/selects/AvSelect/AvSelect.vue.d.ts +63 -0
  100. package/dist/components/interaction/selects/index.d.ts +3 -0
  101. package/dist/components/interaction/tabs/AvTab/AvTab.stories.d.ts +34 -0
  102. package/dist/components/interaction/tabs/AvTab/AvTab.test.d.ts +1 -0
  103. package/dist/components/interaction/tabs/AvTab/AvTab.vue.d.ts +31 -0
  104. package/dist/components/interaction/tabs/AvTabs/AvTabs.stories.d.ts +51 -0
  105. package/dist/components/interaction/tabs/AvTabs/AvTabs.test.d.ts +1 -0
  106. package/dist/components/interaction/tabs/AvTabs/AvTabs.vue.d.ts +40 -0
  107. package/dist/components/interaction/tabs/index.d.ts +2 -0
  108. package/dist/components/interaction/toggles/AvToggle/AvToggle.stories.d.ts +21 -0
  109. package/dist/components/interaction/toggles/AvToggle/AvToggle.test.d.ts +1 -0
  110. package/dist/components/interaction/toggles/AvToggle/AvToggle.vue.d.ts +46 -0
  111. package/dist/components/interaction/toggles/index.d.ts +1 -0
  112. package/dist/components/navigation/AvNavigation/AvNavigation.stories.d.ts +34 -0
  113. package/dist/components/navigation/AvNavigation/AvNavigation.test.d.ts +1 -0
  114. package/dist/components/navigation/AvNavigation/AvNavigation.vue.d.ts +16 -0
  115. package/dist/components/navigation/AvNavigation/index.d.ts +1 -0
  116. package/dist/components/navigation/AvPagination/AvPagination.test.d.ts +1 -0
  117. package/dist/components/navigation/AvPagination/AvPagination.vue.d.ts +57 -0
  118. package/dist/components/navigation/AvPagination/utils.d.ts +14 -0
  119. package/dist/components/navigation/AvPagination/utils.test.d.ts +1 -0
  120. package/dist/components/navigation/AvSideMenu/AvSideMenu.stories.d.ts +55 -0
  121. package/dist/components/navigation/AvSideMenu/AvSideMenu.test.d.ts +1 -0
  122. package/dist/components/navigation/AvSideMenu/AvSideMenu.vue.d.ts +61 -0
  123. package/dist/components/navigation/AvSideNavigation/AvSideNavigation.stories.d.ts +58 -0
  124. package/dist/components/navigation/AvSideNavigation/AvSideNavigation.stub.d.ts +16 -0
  125. package/dist/components/navigation/AvSideNavigation/AvSideNavigation.test.d.ts +1 -0
  126. package/dist/components/navigation/AvSideNavigation/AvSideNavigation.vue.d.ts +38 -0
  127. package/dist/components/navigation/index.d.ts +5 -0
  128. package/dist/components/overlay/drawers/AvDrawer/AvDrawer.stories.d.ts +53 -0
  129. package/dist/components/overlay/drawers/AvDrawer/AvDrawer.stub.d.ts +11 -0
  130. package/dist/components/overlay/drawers/AvDrawer/AvDrawer.test.d.ts +1 -0
  131. package/dist/components/overlay/drawers/AvDrawer/AvDrawer.vue.d.ts +60 -0
  132. package/dist/components/overlay/index.d.ts +3 -0
  133. package/dist/components/overlay/modals/AvModal/AvModal.test.d.ts +1 -0
  134. package/dist/components/overlay/modals/AvModal/AvModal.vue.d.ts +74 -0
  135. package/dist/components/overlay/popovers/AvPopover/AvPopover.stories.d.ts +49 -0
  136. package/dist/components/overlay/popovers/AvPopover/AvPopover.test.d.ts +1 -0
  137. package/dist/components/overlay/popovers/AvPopover/AvPopover.vue.d.ts +48 -0
  138. package/dist/components/overlay/popovers/AvPopover/use-popover.d.ts +41 -0
  139. package/dist/components/overlay/popovers/AvPopover/use-popover.test.d.ts +1 -0
  140. package/dist/composables/index.d.ts +1 -0
  141. package/dist/composables/use-focus-trap/use-focus-trap.d.ts +25 -0
  142. package/dist/composables/use-focus-trap/use-focus-trap.test.d.ts +1 -0
  143. package/dist/config/index.d.ts +1 -0
  144. package/dist/config/page-sizes.d.ts +6 -0
  145. package/dist/index.d.ts +5 -0
  146. package/dist/main.d.ts +8 -0
  147. package/dist/stories/foundations/icons.stories.d.ts +6 -0
  148. package/dist/stories/foundations/typography.stories.d.ts +5 -0
  149. package/dist/tests/index.d.ts +2 -0
  150. package/dist/tests/stubs.d.ts +62 -0
  151. package/dist/tests/utils.d.ts +34 -0
  152. package/dist/tokens/icons.d.ts +79 -0
  153. package/dist/tokens/index.d.ts +1 -0
  154. package/dist/utils/array/array.d.ts +8 -0
  155. package/dist/utils/forms/form.test.d.ts +1 -0
  156. package/dist/utils/forms/forms.d.ts +6 -0
  157. package/dist/utils/index.d.ts +3 -0
  158. package/dist/utils/string/string.d.ts +21 -0
  159. package/dist/utils/string/string.test.d.ts +1 -0
  160. package/package.json +4 -3
@@ -0,0 +1,62 @@
1
+ export declare const DsfrBadgeStub: import("vue").DefineComponent<{
2
+ label?: any;
3
+ small?: any;
4
+ type?: any;
5
+ ellipsis?: any;
6
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
7
+ label?: any;
8
+ small?: any;
9
+ type?: any;
10
+ ellipsis?: any;
11
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
12
+ export declare const DsfrModalStub: import("vue").DefineComponent<{
13
+ title?: any;
14
+ opened?: any;
15
+ }, {}, {}, {}, {
16
+ triggerEscape(): void;
17
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "keydown"[], "keydown", import("vue").PublicProps, Readonly<{
18
+ title?: any;
19
+ opened?: any;
20
+ }> & Readonly<{
21
+ onKeydown?: ((...args: any[]) => any) | undefined;
22
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
23
+ export declare const DsfrNavigationStub: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
24
+ navItems: {
25
+ (arrayLength: number): (import("@gouvminint/vue-dsfr").DsfrNavigationMenuLinkProps | import("@gouvminint/vue-dsfr").DsfrNavigationMenuProps | import("@gouvminint/vue-dsfr").DsfrNavigationMegaMenuProps)[][];
26
+ (...items: (import("@gouvminint/vue-dsfr").DsfrNavigationMenuLinkProps | import("@gouvminint/vue-dsfr").DsfrNavigationMenuProps | import("@gouvminint/vue-dsfr").DsfrNavigationMegaMenuProps)[][]): (import("@gouvminint/vue-dsfr").DsfrNavigationMenuLinkProps | import("@gouvminint/vue-dsfr").DsfrNavigationMenuProps | import("@gouvminint/vue-dsfr").DsfrNavigationMegaMenuProps)[][];
27
+ new (arrayLength: number): (import("@gouvminint/vue-dsfr").DsfrNavigationMenuLinkProps | import("@gouvminint/vue-dsfr").DsfrNavigationMenuProps | import("@gouvminint/vue-dsfr").DsfrNavigationMegaMenuProps)[][];
28
+ new (...items: (import("@gouvminint/vue-dsfr").DsfrNavigationMenuLinkProps | import("@gouvminint/vue-dsfr").DsfrNavigationMenuProps | import("@gouvminint/vue-dsfr").DsfrNavigationMegaMenuProps)[][]): (import("@gouvminint/vue-dsfr").DsfrNavigationMenuLinkProps | import("@gouvminint/vue-dsfr").DsfrNavigationMenuProps | import("@gouvminint/vue-dsfr").DsfrNavigationMegaMenuProps)[][];
29
+ isArray(arg: any): arg is any[];
30
+ readonly prototype: any[];
31
+ from<T>(arrayLike: ArrayLike<T>): T[];
32
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
33
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
34
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
35
+ of<T_4>(...items: T_4[]): T_4[];
36
+ readonly [Symbol.species]: ArrayConstructor;
37
+ };
38
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
39
+ navItems: {
40
+ (arrayLength: number): (import("@gouvminint/vue-dsfr").DsfrNavigationMenuLinkProps | import("@gouvminint/vue-dsfr").DsfrNavigationMenuProps | import("@gouvminint/vue-dsfr").DsfrNavigationMegaMenuProps)[][];
41
+ (...items: (import("@gouvminint/vue-dsfr").DsfrNavigationMenuLinkProps | import("@gouvminint/vue-dsfr").DsfrNavigationMenuProps | import("@gouvminint/vue-dsfr").DsfrNavigationMegaMenuProps)[][]): (import("@gouvminint/vue-dsfr").DsfrNavigationMenuLinkProps | import("@gouvminint/vue-dsfr").DsfrNavigationMenuProps | import("@gouvminint/vue-dsfr").DsfrNavigationMegaMenuProps)[][];
42
+ new (arrayLength: number): (import("@gouvminint/vue-dsfr").DsfrNavigationMenuLinkProps | import("@gouvminint/vue-dsfr").DsfrNavigationMenuProps | import("@gouvminint/vue-dsfr").DsfrNavigationMegaMenuProps)[][];
43
+ new (...items: (import("@gouvminint/vue-dsfr").DsfrNavigationMenuLinkProps | import("@gouvminint/vue-dsfr").DsfrNavigationMenuProps | import("@gouvminint/vue-dsfr").DsfrNavigationMegaMenuProps)[][]): (import("@gouvminint/vue-dsfr").DsfrNavigationMenuLinkProps | import("@gouvminint/vue-dsfr").DsfrNavigationMenuProps | import("@gouvminint/vue-dsfr").DsfrNavigationMegaMenuProps)[][];
44
+ isArray(arg: any): arg is any[];
45
+ readonly prototype: any[];
46
+ from<T>(arrayLike: ArrayLike<T>): T[];
47
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
48
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
49
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
50
+ of<T_4>(...items: T_4[]): T_4[];
51
+ readonly [Symbol.species]: ArrayConstructor;
52
+ };
53
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
54
+ export declare const VIconStub: import("vue").DefineComponent<{
55
+ size?: any;
56
+ name?: any;
57
+ color?: any;
58
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
59
+ size?: any;
60
+ name?: any;
61
+ color?: any;
62
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,34 @@
1
+ import { type ComponentMountingOptions } from '@vue/test-utils';
2
+ import { type Component } from 'vue';
3
+ /**
4
+ * Function allowing developpers to use a common BDD format for tests
5
+ * @returns given (describe), when (describe) and then (it)
6
+ */
7
+ export declare function BddTest(): {
8
+ given(description: string, fn: () => void): any;
9
+ when(description: string, fn: () => void): any;
10
+ and(description: string, fn: () => void): any;
11
+ then(description: string, fn: () => void): any;
12
+ };
13
+ declare function mountComposable<T>(fn: () => T): {
14
+ result: T;
15
+ unmount: () => void;
16
+ };
17
+ /**
18
+ * Mounts a Vue component with a mock router for testing.
19
+ *
20
+ * This function uses Vue Test Utils to mount the component by injecting
21
+ * stubs for `RouterLink` and `RouterView` to simulate the router behavior
22
+ * without launching a real instance.
23
+ *
24
+ * @template T
25
+ * @param {Component} component - Vue component to mount.
26
+ * @param {ComponentMountingOptions<T>} [options] - Additional options for mounting the component.
27
+ * @returns {Promise<ReturnType<typeof mount>>} The mounted component wrapper, after the next tick.
28
+ */
29
+ declare function mountWithRouter<T>(component: Component, options?: ComponentMountingOptions<T>): Promise<import("@vue/test-utils").VueWrapper<import("vue-component-type-helpers").ComponentProps<T> & (T extends {
30
+ data?(...args: any): infer D;
31
+ } ? D : {}) & import("vue-component-type-helpers").ComponentExposed<T>, import("vue").ComponentPublicInstance<import("vue-component-type-helpers").ComponentProps<T>, (T extends {
32
+ data?(...args: any): infer D;
33
+ } ? D : {}) & import("vue-component-type-helpers").ComponentExposed<T> & Omit<import("vue-component-type-helpers").ComponentProps<T>, keyof import("vue-component-type-helpers").ComponentProps<T>>>>>;
34
+ export { mountComposable, mountWithRouter, };
@@ -0,0 +1,79 @@
1
+ export declare const MDI_ICONS: {
2
+ ACCOUNT_CIRCLE_OUTLINE: string;
3
+ ACCOUNT_STUDENT_OUTLINE: string;
4
+ ALERT_CIRCLE_OUTLINE: string;
5
+ ARROW_DECISION: string;
6
+ ARROW_LEFT_THIN: string;
7
+ ARROW_RIGHT: string;
8
+ ARROW_RIGHT_THIN: string;
9
+ ARROW_TOP_RIGHT_THICK: string;
10
+ ATTACH_FILE: string;
11
+ ATTACHMENT_PLUS: string;
12
+ BELL_NOTIFICATION: string;
13
+ BOOK_LOCATION_OUTLINE: string;
14
+ BRIEFCASE_VARIANT_OUTLINE: string;
15
+ CALENDAR_MONTH_OUTLINE: string;
16
+ CHAT_BUBBLE_OUTLINE: string;
17
+ CHECK: string;
18
+ CHECK_CIRCLE: string;
19
+ CHECK_CIRCLE_OUTLINE: string;
20
+ CHEVRON_DOUBLE_LEFT: string;
21
+ CHEVRON_DOUBLE_RIGHT: string;
22
+ CLOSE_CIRCLE_OUTLINE: string;
23
+ CONTENT_SAVE_OUTLINE: string;
24
+ DOTS_VERTICAL: string;
25
+ ELECTRON_FRAMEWORK: string;
26
+ FAMILY: string;
27
+ FILE_ACCOUNT_OUTLINE: string;
28
+ FILE_DOCUMENT_BOX_MULTIPLE_OUTLINE: string;
29
+ FILE_DOCUMENT_EDIT_OUTLINE: string;
30
+ FILE_DOCUMENT_MULTIPLE_OUTLINE: string;
31
+ FLAG_VARIANT: string;
32
+ FORMAT_LIST_BULLETED: string;
33
+ HOME_VARIANT_OUTLINE: string;
34
+ HOURGLASS: string;
35
+ IMAGE_FILTER_CENTER_FOCUS_WEAK: string;
36
+ IMAGE_OUTLINE: string;
37
+ INFORMATION_OUTLINE: string;
38
+ LOADING_OUTLINE: string;
39
+ LOGOUT: string;
40
+ NAVIGATE_BEFORE: string;
41
+ NAVIGATE_NEXT: string;
42
+ NOTIFICATIONS_NONE: string;
43
+ PAGE_FIRST: string;
44
+ PAGE_LAST: string;
45
+ PENCIL_OUTLINE: string;
46
+ PLUS_CIRCLE_OUTLINE: string;
47
+ POST_IT_NOTES_OUTLINE: string;
48
+ SCHOOL_OUTLINE: string;
49
+ SHARE_VARIANT_OUTLINE: string;
50
+ STAR_CHECK_OUTLINE: string;
51
+ STAR_SHOOTING_OUTLINE: string;
52
+ STARS: string;
53
+ SWAP_HORIZONTAL: string;
54
+ SWAP_VERTICAL_VARIANT: string;
55
+ TARGET_ARROW: string;
56
+ TEST_TUBE_EMPTY: string;
57
+ TRASH_CAN_OUTLINE: string;
58
+ TRAY_UPLOAD: string;
59
+ VECTOR_POLYGON_VARIANT: string;
60
+ WARNING_OUTLINE: string;
61
+ };
62
+ export declare const RI_ICONS: {
63
+ DICE_1_LINE: string;
64
+ DICE_4_LINE: string;
65
+ };
66
+ /**
67
+ * contains icon as base64 to be used in img src or also for components that need iconPath
68
+ * Useful for icons that are in MDI but we cannot use them using icon name, so we can use them
69
+ * without creating svg files in assets/icons, also simple to use (no need for basePath ...)
70
+ * e.g. using mdi icons with AvBadge
71
+ */
72
+ export declare const ICONS_DATA_URL: {
73
+ CLOCK_ALMOST_CHECK: string;
74
+ CLOCK_HALF_PLUS_CHECK: string;
75
+ CLOCK_QUARTER_CHECK: string;
76
+ CLOCK_THIRD_CHECK: string;
77
+ FILE_DOCUMENT_MULTIPLE_OUTLINE: string;
78
+ MDI_CHECK_CIRCLE: string;
79
+ };
@@ -0,0 +1 @@
1
+ export * from './icons';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Removes duplicates from an array and returns a new array containing only unique elements.
3
+ *
4
+ * @template T - The type of the elements in the array.
5
+ * @param {T[]} array - The array that can contain duplicates.
6
+ * @returns {T[]} A new array containing only the unique elements of the original array, in the order they appear.
7
+ */
8
+ export declare function removeDuplicates<T>(array: T[]): T[];
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Returns the email validation status
3
+ * @param email
4
+ * @returns email is valid (true) or invalid (false)
5
+ */
6
+ export declare function isValidEmail(email: string): boolean;
@@ -0,0 +1,3 @@
1
+ export * from './array/array';
2
+ export * from './forms/forms';
3
+ export * from './string/string';
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Formats a string by applying structured HTML transformations based on specific patterns:
3
+ *
4
+ * - Text between `**...**` is underlined using a `<span class="text-underline">`.
5
+ * - Text between `##...##` is colored and bold using a `<strong style="color: ...">`.
6
+ * - Text within `(-...)` is converted to `<li>` items with an indentation class.
7
+ * - Line breaks (`\n`, `\r`, `\\n`, etc.) are converted to `<div class="line-break"></div>`
8
+ * for visual spacing (e.g., adjustable height via CSS).
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * formatTextToHtml('(-##Important## and **underlined**)\nNext line')
13
+ * // Returns:
14
+ * // '<li class="indented-list"><strong style="color: var(--dark-background-primary1)">Important</strong> and <span class="text-underline">underlined</span></li><div class="line-break"></div>Next line'
15
+ * ```
16
+ *
17
+ * @param {string} text - The raw input string that may contain styling markers like `**`, `##`, or `(-...)`.
18
+ * @param {string} color - The color applied to text wrapped in `**` and '###'. Defaults to 'var(--dark-background-primary1)'.
19
+ * @returns {string} A string of HTML with appropriate tags for styling and structure.
20
+ */
21
+ export declare function formatTextToHtml(text: string, color?: string): string;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@avenirs-esr/avenirs-dsav",
3
3
  "type": "module",
4
- "version": "0.1.1",
4
+ "version": "0.1.3",
5
5
  "main": "dist/avenirs-dsav.umd.js",
6
6
  "module": "dist/avenirs-dsav.es.js",
7
7
  "types": "dist/index.d.ts",
@@ -14,8 +14,8 @@
14
14
  "build-only": "vite build",
15
15
  "build-only:development": "vite build -m development",
16
16
  "dev": "vite",
17
- "build": "run-p type-check \"build-only {@}\" --",
18
- "build:development": "run-p type-check \"build-only:development {@}\" --",
17
+ "build": "run-p type-check type-gen \"build-only {@}\" --",
18
+ "build:development": "run-p type-check type-gen \"build-only:development {@}\" --",
19
19
  "format": "eslint . --fix",
20
20
  "lint": "eslint .",
21
21
  "preview": "vite preview",
@@ -28,6 +28,7 @@
28
28
  "test:a11y:cleanup": "rimraf a11y/.output",
29
29
  "test:watch": "vitest",
30
30
  "type-check": "vue-tsc --build --force",
31
+ "type-gen": "vue-tsc -p tsconfig.app.json",
31
32
  "prepare": "husky || true",
32
33
  "commitlint": "commitlint --edit",
33
34
  "lint-staged": "lint-staged",