@cnamts/synapse 1.0.25 → 1.0.27

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 (393) hide show
  1. package/dist/{AutocompleteFilter-D7qBuCAP.js → AutocompleteFilter-C9eLKyW8.js} +3 -3
  2. package/dist/{DateFilter-BitMWrMU.js → DateFilter-y-GLkAkn.js} +9 -9
  3. package/dist/{NumberFilter-BTLUxw0a.js → NumberFilter-DN6hIBS7.js} +1 -1
  4. package/dist/{PeriodFilter-B5rUIPAC.js → PeriodFilter-MoUUp9qS.js} +1 -1
  5. package/dist/{SelectFilter-l4QnRcuk.js → SelectFilter-bCbrdLmu.js} +1 -1
  6. package/dist/{TextFilter-C9hj6Qrp.js → TextFilter-CvjgEaoM.js} +4 -4
  7. package/dist/apLightTheme2026-ug4Y23ns.js +611 -0
  8. package/dist/components/Customs/Selects/SyAutocomplete/SyAutocomplete.d.ts +2369 -351
  9. package/dist/components/Customs/Selects/SyAutocomplete/composables/useSyAutocompleteValidation.d.ts +18 -0
  10. package/dist/components/Customs/Selects/SyAutocomplete/utils/ariaManager.d.ts +1 -1
  11. package/dist/components/Customs/Selects/SyAutocomplete/utils/useKeyboardHandler.d.ts +3 -1
  12. package/dist/components/Customs/Selects/SySelect/SySelect.d.ts +58 -288
  13. package/dist/components/Customs/Selects/SySelect/composables/useSySelectKeyboard.d.ts +1 -0
  14. package/dist/components/Customs/Selects/SySelect/composables/useSySelectValidation.d.ts +15 -0
  15. package/dist/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.d.ts +4 -3
  16. package/dist/components/Customs/SyCheckbox/SyCheckbox.d.ts +4 -3
  17. package/dist/components/Customs/SyIconButton/SyIconButton.d.ts +18 -0
  18. package/dist/components/Customs/SyRadioGroup/SyRadioGroup.d.ts +20 -37
  19. package/dist/components/Customs/SyRadioGroup/composables/useSyRadioGroupValidation.d.ts +50 -0
  20. package/dist/components/Customs/SyTextField/SyTextField.d.ts +8 -10
  21. package/dist/components/DatePicker/CalendarMode/DatePicker.d.ts +197 -185
  22. package/dist/components/DatePicker/ComplexDatePicker/ComplexDatePicker.d.ts +91 -82
  23. package/dist/components/DatePicker/DateTextInput/DateTextInput.d.ts +35 -32
  24. package/dist/components/DatePicker/composables/index.d.ts +1 -0
  25. package/dist/components/DatePicker/composables/useDatePickerState.d.ts +3 -3
  26. package/dist/components/DatePicker/composables/useDatePickerValidationBridge.d.ts +51 -0
  27. package/dist/components/DatePicker/composables/useDateTextField.d.ts +2 -2
  28. package/dist/components/DatePicker/composables/useInputBlurHandler.d.ts +2 -2
  29. package/dist/components/DatePicker/types.d.ts +1 -2
  30. package/dist/components/LunarCalendar/useLunarCalendarValidation.d.ts +1 -0
  31. package/dist/components/MonthPicker/MonthPicker.d.ts +24 -24
  32. package/dist/components/MonthPicker/MonthPickerText/MonthPickerInput.d.ts +24 -24
  33. package/dist/components/NirField/NirField.d.ts +64 -60
  34. package/dist/components/NirField/useNirValidation.d.ts +6 -2
  35. package/dist/components/PasswordField/PasswordField.d.ts +3 -3
  36. package/dist/components/PeriodField/PeriodField.d.ts +338 -314
  37. package/dist/components/PhoneField/PhoneField.d.ts +34 -24
  38. package/dist/components/RangeField/RangeSlider/RangeSlider.d.ts +0 -3
  39. package/dist/components/RatingPicker/EmotionPicker/EmotionPicker.d.ts +3 -1
  40. package/dist/components/RatingPicker/NumberPicker/NumberPicker.d.ts +4 -3
  41. package/dist/components/RatingPicker/RatingPicker.d.ts +18 -5
  42. package/dist/components/RatingPicker/StarsPicker/StarsPicker.d.ts +3 -1
  43. package/dist/components/RatingPicker/useRatingFocus.d.ts +18 -0
  44. package/dist/components/SyTextArea/SyTextArea.d.ts +25 -15
  45. package/dist/components/SyTextArea/composables/useSyTextAreaValidation.d.ts +20 -0
  46. package/dist/components/SyTextArea/locales.d.ts +1 -0
  47. package/dist/components/Tables/SyServerTable/SyServerTable.d.ts +5 -4
  48. package/dist/components/Tables/SyTable/SyTable.d.ts +5 -4
  49. package/dist/components/Tables/common/SyTablePagination.d.ts +152 -364
  50. package/dist/components/Tables/common/TableHeader.d.ts +1 -1
  51. package/dist/components/Tables/common/filters/DateFilter.d.ts +4 -4
  52. package/dist/components/Tables/common/types.d.ts +2 -0
  53. package/dist/components/index.d.ts +1 -0
  54. package/dist/composables/date/useDateInitializationDayjs.d.ts +3 -1
  55. package/dist/composables/unifyValidation/documentationValidationProps.d.ts +160 -160
  56. package/dist/composables/unifyValidation/useCustomValidation.d.ts +3 -1
  57. package/dist/composables/unifyValidation/useValidation.d.ts +27 -19
  58. package/dist/composables/unifyValidation/useVuetifyValidation.d.ts +1 -1
  59. package/dist/composables/validation/useValidation.d.ts +1 -0
  60. package/dist/design-system-v3.js +81 -80
  61. package/dist/designTokens/tokens/amelipro/apContextual.d.ts +6 -6
  62. package/dist/designTokens/tokens/amelipro/apDarkTheme.d.ts +3 -1
  63. package/dist/designTokens/tokens/amelipro/apLightTheme.d.ts +53 -98
  64. package/dist/designTokens/tokens/baseContextualTokens.d.ts +0 -6
  65. package/dist/designTokens/tokens/baseTokens.d.ts +232 -0
  66. package/dist/designTokens/tokens/cnam/cnamContextual.d.ts +6 -6
  67. package/dist/designTokens/tokens/cnam/cnamDarkTheme.d.ts +1 -1
  68. package/dist/designTokens/tokens/cnam/cnamLightTheme.d.ts +57 -99
  69. package/dist/designTokens/tokens/pa/paContextual.d.ts +0 -6
  70. package/dist/designTokens/tokens/pa/paDarkTheme.d.ts +1 -1
  71. package/dist/designTokens/tokens/pa/paLightTheme.d.ts +53 -97
  72. package/dist/designTokens/tokens/pa/paSemantic.d.ts +1 -0
  73. package/dist/designTokens/tokens/semanticTokens.d.ts +112 -0
  74. package/dist/{main-Cpx8Co6H.js → main-CI6Q9nmO.js} +13843 -13478
  75. package/dist/synapse.css +1 -1
  76. package/dist/vuetifyConfig.js +208 -72
  77. package/package.json +10 -7
  78. package/src/assets/overrides/_icons.scss +5 -17
  79. package/src/assets/overrides/_otp.scss +4 -5
  80. package/src/assets/overrides/_typography.scss +2 -1
  81. package/src/assets/overrides/_utilities.scss +1 -42
  82. package/src/components/Accordion/Accordion.vue +2 -0
  83. package/src/components/ChipList/ChipList.vue +30 -18
  84. package/src/components/ChipList/tests/chipList.spec.ts +4 -4
  85. package/src/components/CookiesSelection/CookiesInformation/CookiesInformation.vue +2 -1
  86. package/src/components/CookiesSelection/CookiesSelection.vue +2 -1
  87. package/src/components/CopyBtn/CopyBtn.vue +9 -0
  88. package/src/components/Customs/Selects/SelectBtnField/SelectBtnField.stories.ts +4 -0
  89. package/src/components/Customs/Selects/SelectBtnField/SelectBtnField.vue +7 -6
  90. package/src/components/Customs/Selects/SelectBtnField/tests/SelectBtnField.spec.ts +223 -0
  91. package/src/components/Customs/Selects/SyAutocomplete/SyAutocomplete.stories.ts +283 -351
  92. package/src/components/Customs/Selects/SyAutocomplete/SyAutocomplete.vue +183 -219
  93. package/src/components/Customs/Selects/SyAutocomplete/composables/useSyAutocompleteValidation.ts +101 -0
  94. package/src/components/Customs/Selects/SyAutocomplete/tests/SyAutocomplete.spec.ts +761 -1
  95. package/src/components/Customs/Selects/SyAutocomplete/utils/ariaManager.ts +3 -1
  96. package/src/components/Customs/Selects/SyAutocomplete/utils/useKeyboardHandler.ts +79 -5
  97. package/src/components/Customs/Selects/SyAutocomplete/validation/Validation.stories.ts +1029 -0
  98. package/src/components/Customs/Selects/SySelect/SySelect.stories.ts +52 -217
  99. package/src/components/Customs/Selects/SySelect/SySelect.vue +248 -236
  100. package/src/components/Customs/Selects/SySelect/composables/useSySelectKeyboard.ts +3 -0
  101. package/src/components/Customs/Selects/SySelect/composables/useSySelectValidation.ts +64 -0
  102. package/src/components/Customs/Selects/SySelect/tests/SySelect.spec.ts +440 -5
  103. package/src/components/Customs/Selects/SySelect/validation/Validation.stories.ts +1026 -0
  104. package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.stories.ts +18 -7
  105. package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.vue +5 -5
  106. package/src/components/Customs/SyCheckbox/SyCheckbox.stories.ts +8 -8
  107. package/src/components/Customs/SyCheckbox/SyCheckbox.vue +27 -6
  108. package/src/components/Customs/SyCheckbox/tests/SyCheckbox.spec.ts +1 -1
  109. package/src/components/Customs/SyIcon/accessibilite/Accessibility.mdx +0 -6
  110. package/src/components/Customs/SyIcon/utils/tests/iconUtils.spec.ts +107 -0
  111. package/src/components/Customs/SyRadioGroup/SyRadioGroup.mdx +2 -2
  112. package/src/components/Customs/SyRadioGroup/SyRadioGroup.stories.ts +395 -200
  113. package/src/components/Customs/SyRadioGroup/SyRadioGroup.vue +100 -127
  114. package/src/components/Customs/SyRadioGroup/composables/useSyRadioGroupValidation.ts +127 -0
  115. package/src/components/Customs/SyRadioGroup/tests/SyRadioGroup.a11y.spec.ts +93 -1
  116. package/src/components/Customs/SyRadioGroup/tests/SyRadioGroup.spec.ts +146 -9
  117. package/src/components/Customs/SyRadioGroup/tests/SyRadioGroup.visual.cy.ts +165 -0
  118. package/src/components/Customs/SyRadioGroup/validation/Validation.stories.ts +773 -0
  119. package/src/components/Customs/SyTabs/SyTabs.stories.ts +5 -5
  120. package/src/components/Customs/SyTabs/config.ts +3 -3
  121. package/src/components/Customs/SyTabs/tests/SyTabs.spec.ts +265 -0
  122. package/src/components/Customs/SyTabs/tests/useTabTransition.spec.ts +188 -0
  123. package/src/components/Customs/SyTextField/SyTextField.stories.ts +10 -29
  124. package/src/components/Customs/SyTextField/SyTextField.vue +52 -17
  125. package/src/components/DataList/DataList.stories.ts +1 -1
  126. package/src/components/DataListItem/tests/DataListItem.spec.ts +3 -1
  127. package/src/components/DatePicker/CalendarMode/DatePicker.stories.ts +1 -1
  128. package/src/components/DatePicker/CalendarMode/DatePicker.vue +52 -154
  129. package/src/components/DatePicker/CalendarMode/tests/DatePicker.coverage.spec.ts +156 -0
  130. package/src/components/DatePicker/CalendarMode/tests/DatePicker.spec.ts +495 -4
  131. package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.stories.ts +1 -1
  132. package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.vue +55 -73
  133. package/src/components/DatePicker/ComplexDatePicker/tests/ComplexDatePicker.spec.ts +207 -1
  134. package/src/components/DatePicker/ComplexDatePicker/tests/bridge-integration.regression.spec.ts +210 -0
  135. package/src/components/DatePicker/ComplexDatePicker/tests/calendar-navigation.regression.spec.ts +214 -0
  136. package/src/components/DatePicker/ComplexDatePicker/tests/validation-cross.regression.spec.ts +194 -0
  137. package/src/components/DatePicker/ComplexDatePicker/tests/validation-success-messages.regression.spec.ts +83 -0
  138. package/src/components/DatePicker/DatePickerValidationExample/DatePickerValidation.stories.ts +1 -1
  139. package/src/components/DatePicker/DateTextInput/DateTextInput.vue +169 -60
  140. package/src/components/DatePicker/DateTextInput/NoCalendar.stories.ts +1 -1
  141. package/src/components/DatePicker/DateTextInput/tests/DateTextInput.spec.ts +320 -0
  142. package/src/components/DatePicker/composables/index.ts +1 -0
  143. package/src/components/DatePicker/composables/tests/useCalendarKeyboardNavigation.spec.ts +360 -0
  144. package/src/components/DatePicker/composables/tests/useDatePickerValidationBridge.spec.ts +129 -0
  145. package/src/components/DatePicker/composables/useDatePickerState.ts +33 -14
  146. package/src/components/DatePicker/composables/useDatePickerValidationBridge.ts +205 -0
  147. package/src/components/DatePicker/composables/useDateRangeInput.ts +2 -1
  148. package/src/components/DatePicker/composables/useDateSelection.ts +2 -1
  149. package/src/components/DatePicker/composables/useDateTextField.ts +2 -2
  150. package/src/components/DatePicker/composables/useInputBlurHandler.ts +2 -2
  151. package/src/components/DatePicker/docExamples/BidirectionalComplexValidation.vue +1 -1
  152. package/src/components/DatePicker/docExamples/DatePickerBidirectionalValidation.vue +1 -1
  153. package/src/components/DatePicker/tests/exposed-methods.coverage.spec.ts +75 -0
  154. package/src/components/DatePicker/types.ts +1 -2
  155. package/src/components/DialogBox/DialogBox.stories.ts +8 -8
  156. package/src/components/DialogBox/DialogBox.vue +1 -1
  157. package/src/components/DialogBox/accessibilite/Accessibility.mdx +86 -22
  158. package/src/components/FileList/UploadItem/UploadItem.vue +4 -4
  159. package/src/components/FileUpload/FileUpload.vue +2 -2
  160. package/src/components/FileUpload/FileUploadContent.vue +1 -1
  161. package/src/components/FilterInline/FilterInline.mdx +2 -2
  162. package/src/components/FilterSideBar/FilterSideBar.stories.ts +1 -1
  163. package/src/components/FilterSideBar/FilterSideBar.vue +4 -3
  164. package/src/components/FooterBar/FooterBar.vue +7 -7
  165. package/src/components/FranceConnectBtn/FranceConnectBtn.vue +1 -1
  166. package/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuItem/HeaderMenuItem.vue +2 -2
  167. package/src/components/HeaderBar/HeaderBurgerMenu/HeaderSubMenu/HeaderSubMenu.vue +7 -7
  168. package/src/components/HeaderBar/HeaderMenuBtn/HeaderMenuBtn.vue +2 -2
  169. package/src/components/HeaderLoading/tests/HeaderLoading.spec.ts +87 -8
  170. package/src/components/HeaderNavigationBar/HorizontalNavbar/HorizontalNavbar.vue +3 -3
  171. package/src/components/HeaderNavigationBar/HorizontalNavbar/tests/HorizontalNavbar.spec.ts +589 -0
  172. package/src/components/HeaderToolbar/tests/HeaderToolBar.spec.ts +153 -1
  173. package/src/components/HeaderToolbar/tests/useMobileRightMenu.spec.ts +258 -0
  174. package/src/components/LangBtn/LangBtn.vue +2 -1
  175. package/src/components/LogoBrandSection/tests/LogoBrandSection.spec.ts +2 -2
  176. package/src/components/LogoBrandSection/tests/__snapshots__/LogoBrandSection.spec.ts.snap +1 -1
  177. package/src/components/LunarCalendar/tests/useLunarCalendarRules.spec.ts +184 -0
  178. package/src/components/MonthPicker/MonthPickerVisual/MonthSelector.vue +3 -3
  179. package/src/components/MonthPicker/MonthPickerVisual/VisualPickerFooter.vue +1 -1
  180. package/src/components/MonthPicker/MonthPickerVisual/VisualPickerHeader.vue +2 -2
  181. package/src/components/MonthPicker/MonthPickerVisual/YearSelector.vue +1 -1
  182. package/src/components/NirField/NirField.vue +3 -3
  183. package/src/components/NotificationBar/Notification/Notification.vue +12 -12
  184. package/src/components/NotificationBar/NotificationBar.stories.ts +8 -8
  185. package/src/components/PaginatedTable/PaginatedTable.vue +1 -1
  186. package/src/components/PaginatedTable/Pagination.vue +3 -3
  187. package/src/components/PasswordField/PasswordField.vue +15 -11
  188. package/src/components/PasswordField/tests/PasswordField.spec.ts +3 -3
  189. package/src/components/PhoneField/PhoneField.vue +4 -2
  190. package/src/components/RangeField/RangeSlider/RangeSlider.vue +11 -18
  191. package/src/components/RangeField/RangeSlider/Tooltip/Tooltip.vue +1 -1
  192. package/src/components/RatingPicker/EmotionPicker/EmotionPicker.vue +32 -48
  193. package/src/components/RatingPicker/EmotionPicker/tests/__snapshots__/EmotionPicker.spec.ts.snap +5 -0
  194. package/src/components/RatingPicker/NumberPicker/NumberPicker.vue +48 -53
  195. package/src/components/RatingPicker/NumberPicker/tests/NumberPicker.spec.ts +2 -1
  196. package/src/components/RatingPicker/NumberPicker/tests/__snapshots__/NumberPicker.spec.ts.snap +40 -13
  197. package/src/components/RatingPicker/RatingPicker.stories.ts +65 -88
  198. package/src/components/RatingPicker/RatingPicker.vue +71 -15
  199. package/src/components/RatingPicker/StarsPicker/StarsPicker.vue +28 -37
  200. package/src/components/RatingPicker/StarsPicker/tests/StarsPicker.spec.ts +1 -1
  201. package/src/components/RatingPicker/StarsPicker/tests/__snapshots__/StarsPicker.spec.ts.snap +5 -0
  202. package/src/components/RatingPicker/accessibilite/Accessibility.mdx +137 -9
  203. package/src/components/RatingPicker/tests/RatingPicker.a11y.spec.ts +123 -0
  204. package/src/components/RatingPicker/tests/RatingPicker.spec.ts +3 -2
  205. package/src/components/RatingPicker/tests/__snapshots__/RatingPicker.spec.ts.snap +40 -11
  206. package/src/components/RatingPicker/useRatingFocus.ts +97 -0
  207. package/src/components/StatusPage/tests/StatusPage.spec.ts +149 -0
  208. package/src/components/SubHeader/SubHeader.vue +1 -1
  209. package/src/components/SyAlert/SyAlert.vue +23 -23
  210. package/src/components/SyTextArea/SyTextArea.stories.ts +177 -131
  211. package/src/components/SyTextArea/SyTextArea.vue +257 -74
  212. package/src/components/SyTextArea/composables/useSyTextAreaValidation.ts +81 -0
  213. package/src/components/SyTextArea/locales.ts +1 -0
  214. package/src/components/SyTextArea/tests/SyTextArea.spec.ts +449 -1
  215. package/src/components/SyTextArea/useDefaultValidationRules.ts +2 -7
  216. package/src/components/SyTextArea/validation/Validation.stories.ts +856 -0
  217. package/src/components/TableToolbar/TableToolbar.vue +6 -6
  218. package/src/components/TableToolbar/accessibilite/Accessibility.mdx +81 -7
  219. package/src/components/Tables/SyServerTable/SyServerTable.stories.ts +163 -0
  220. package/src/components/Tables/SyServerTable/SyServerTable.vue +3 -2
  221. package/src/components/Tables/SyServerTable/tests/SyServerTable.spec.ts +67 -0
  222. package/src/components/Tables/SyTable/SyTable.stories.ts +94 -0
  223. package/src/components/Tables/SyTable/SyTable.vue +3 -2
  224. package/src/components/Tables/SyTable/tests/SyTable.spec.ts +64 -0
  225. package/src/components/Tables/common/SyTableFilter.vue +4 -4
  226. package/src/components/Tables/common/SyTablePagination.vue +1 -0
  227. package/src/components/Tables/common/TableHeader.vue +3 -3
  228. package/src/components/Tables/common/filters/DateFilter.vue +2 -2
  229. package/src/components/Tables/common/filters/logics/tests/NumberFilterLogic.spec.ts +176 -0
  230. package/src/components/Tables/common/filters/logics/tests/SelectFilterLogic.spec.ts +111 -0
  231. package/src/components/Tables/common/tableStyles.scss +6 -6
  232. package/src/components/Tables/common/types.ts +2 -0
  233. package/src/components/UploadWorkflow/tests/UploadWorkflow.spec.ts +2 -0
  234. package/src/components/index.ts +1 -0
  235. package/src/composables/date/tests/useDateFormatDayjs.spec.ts +112 -0
  236. package/src/composables/date/tests/{useDateInitialization.spec.ts → useDateInitializationDayjs.spec.ts} +39 -3
  237. package/src/composables/date/tests/useHolidayDay.spec.ts +109 -0
  238. package/src/composables/date/useDateInitializationDayjs.ts +4 -1
  239. package/src/composables/rules/tests/useFieldValidation.spec.ts +374 -0
  240. package/src/composables/tests/useError.spec.ts +30 -0
  241. package/src/composables/tests/useFormFieldErrorHandling.spec.ts +234 -0
  242. package/src/composables/unifyValidation/documentationValidationProps.ts +12 -12
  243. package/src/composables/unifyValidation/tests/documentationValidationProps.spec.ts +177 -0
  244. package/src/composables/unifyValidation/tests/useCustomValidation.spec.ts +32 -1
  245. package/src/composables/unifyValidation/tests/useValidation.spec.ts +28 -2
  246. package/src/composables/unifyValidation/useCustomValidation.ts +34 -12
  247. package/src/composables/unifyValidation/useValidation.ts +55 -27
  248. package/src/composables/unifyValidation/useVuetifyValidation.ts +2 -2
  249. package/src/composables/useFilterable/useFilterable.spec.ts +42 -0
  250. package/src/composables/useFilterable/useFilterable.ts +11 -7
  251. package/src/composables/useFormFieldErrorHandling.ts +6 -3
  252. package/src/composables/validation/tests/useValidation.spec.ts +2 -2
  253. package/src/composables/validation/useValidation.ts +15 -3
  254. package/src/composantsVuetify/VBtn/VBtn.mdx +9 -39
  255. package/src/composantsVuetify/VBtn/v-btn.stories.ts +26 -86
  256. package/src/composantsVuetify/VCard/VCard.mdx +59 -0
  257. package/src/composantsVuetify/VCard/v-card.stories.ts +279 -0
  258. package/src/designTokens/tokens/amelipro/apColors2026.ts +1 -1
  259. package/src/designTokens/tokens/amelipro/apContextual.ts +6 -0
  260. package/src/designTokens/tokens/amelipro/apDarkTheme.ts +2 -2
  261. package/src/designTokens/tokens/amelipro/apLightTheme.ts +72 -100
  262. package/src/designTokens/tokens/amelipro/apSemantic.ts +1 -1
  263. package/src/designTokens/tokens/baseContextualTokens.ts +1 -6
  264. package/src/designTokens/tokens/baseTokens.ts +232 -0
  265. package/src/designTokens/tokens/cnam/cnamContextual.ts +6 -0
  266. package/src/designTokens/tokens/cnam/cnamDarkTheme.ts +2 -2
  267. package/src/designTokens/tokens/cnam/cnamLightTheme.ts +76 -101
  268. package/src/designTokens/tokens/pa/paDarkTheme.ts +2 -2
  269. package/src/designTokens/tokens/pa/paLightTheme.ts +73 -99
  270. package/src/designTokens/tokens/pa/paSemantic.ts +2 -0
  271. package/src/designTokens/tokens/semanticTokens.ts +114 -0
  272. package/src/stories/Accessibilite/Aculturation/SensibilisationAccessibilite.mdx +61 -91
  273. package/src/stories/Accessibilite/AuditDesignSystem.mdx +5 -8
  274. package/src/stories/Accessibilite/AuditEtContreAudit/Exemptions-derogations.mdx +1 -1
  275. package/src/stories/Accessibilite/AuditEtContreAudit/Introduction.mdx +11 -8
  276. package/src/stories/Accessibilite/AuditEtContreAudit/RGAA.mdx +6 -7
  277. package/src/stories/Accessibilite/Introduction.mdx +30 -30
  278. package/src/stories/Accessibilite/KitDePreAudit/Echantillonnage.mdx +168 -78
  279. package/src/stories/Accessibilite/KitDePreAudit/Introduction.mdx +13 -6
  280. package/src/stories/Accessibilite/KitDePreAudit/Outils/Introduction.mdx +66 -45
  281. package/src/stories/Accessibilite/KitDePreAudit/Outils/LecteursDEcran.mdx +23 -49
  282. package/src/stories/Accessibilite/KitDePreAudit/Outils/Tanaguru/FauxPositifs.stories.ts +6 -0
  283. package/src/stories/Accessibilite/KitDePreAudit/Outils/Tanaguru/Utilisation.mdx +7 -19
  284. package/src/stories/Accessibilite/KitDePreAudit/Preaudit.mdx +18 -20
  285. package/src/stories/Components/Components.stories.ts +59 -6
  286. package/src/stories/DesignTokens/ColorIntegrationExample.vue +2 -3
  287. package/src/stories/DesignTokens/Colors.mdx +6 -8
  288. package/src/stories/DesignTokens/colors.stories.ts +244 -1081
  289. package/src/utils/amelipro/toKebabCase/tests/toKebabCase.spec.ts +52 -0
  290. package/src/utils/formatNir/tests/formatNir.spec.ts +34 -0
  291. package/src/utils/tests/insertAt.spec.ts +44 -0
  292. package/dist/AutocompleteFilter-Df9i5mAl.cjs +0 -1
  293. package/dist/DateFilter-BJD6FMev.cjs +0 -1
  294. package/dist/NumberFilter-DGCzCXzI.cjs +0 -1
  295. package/dist/PeriodFilter-DO_ecTZW.cjs +0 -1
  296. package/dist/SelectFilter-CGwcKWLm.cjs +0 -1
  297. package/dist/TextFilter-B8nf7xoK.cjs +0 -1
  298. package/dist/apLightTheme-CEK4iY3f.cjs +0 -1
  299. package/dist/apLightTheme-DnIM24Lv.js +0 -950
  300. package/dist/composables/date/useDateFormat.d.ts +0 -26
  301. package/dist/composables/date/useDateInitialization.d.ts +0 -18
  302. package/dist/design-system-v3.umd.cjs +0 -1
  303. package/dist/main-ByDPHpae.cjs +0 -1067
  304. package/dist/tooth-11-D3sLWv2n.cjs +0 -1
  305. package/dist/tooth-12-CXrLuH03.cjs +0 -1
  306. package/dist/tooth-13-BSfo5fpT.cjs +0 -1
  307. package/dist/tooth-14-DMzulx0h.cjs +0 -1
  308. package/dist/tooth-15-BKRFVi-9.cjs +0 -1
  309. package/dist/tooth-16-CpuxAbuM.cjs +0 -1
  310. package/dist/tooth-17-BPoahUdg.cjs +0 -1
  311. package/dist/tooth-18-DhHJz8sy.cjs +0 -1
  312. package/dist/tooth-21-Dgd5hn_X.cjs +0 -1
  313. package/dist/tooth-22-C2Tn19sB.cjs +0 -1
  314. package/dist/tooth-23-C9uaaSGb.cjs +0 -1
  315. package/dist/tooth-24-BrK9UGpf.cjs +0 -1
  316. package/dist/tooth-25-CE_EfGNp.cjs +0 -1
  317. package/dist/tooth-26-Ctv4i9Fy.cjs +0 -1
  318. package/dist/tooth-27-C5J7JkWM.cjs +0 -1
  319. package/dist/tooth-28-Z9oWqjo0.cjs +0 -1
  320. package/dist/tooth-31-BrYqmkTi.cjs +0 -1
  321. package/dist/tooth-32-BNNR0oCZ.cjs +0 -1
  322. package/dist/tooth-33-DuxvqO2J.cjs +0 -1
  323. package/dist/tooth-34-BCSCXMB6.cjs +0 -1
  324. package/dist/tooth-35-BLUXkX88.cjs +0 -1
  325. package/dist/tooth-36-IrKHYqlA.cjs +0 -1
  326. package/dist/tooth-37-BYqpdMwo.cjs +0 -1
  327. package/dist/tooth-38-B_eNXXdu.cjs +0 -1
  328. package/dist/tooth-41-Ddva4Ot8.cjs +0 -1
  329. package/dist/tooth-42-szcDqlM0.cjs +0 -1
  330. package/dist/tooth-43-B3ka6rQm.cjs +0 -1
  331. package/dist/tooth-44-CazyQucj.cjs +0 -1
  332. package/dist/tooth-45-B4HQtc8n.cjs +0 -1
  333. package/dist/tooth-46-BPM40gbG.cjs +0 -1
  334. package/dist/tooth-47-Dvr20dlh.cjs +0 -1
  335. package/dist/tooth-48-Bd8ljGsF.cjs +0 -1
  336. package/dist/tooth-51-OBpwCOF3.cjs +0 -1
  337. package/dist/tooth-52-aKxyHcmq.cjs +0 -1
  338. package/dist/tooth-53-vCwJjTOc.cjs +0 -1
  339. package/dist/tooth-54-DsWu2iFy.cjs +0 -1
  340. package/dist/tooth-55-BxC1X2Dn.cjs +0 -1
  341. package/dist/tooth-61-BbLvxMQi.cjs +0 -1
  342. package/dist/tooth-62-CmTkWczP.cjs +0 -1
  343. package/dist/tooth-63-DI7l_2qI.cjs +0 -1
  344. package/dist/tooth-64-B21sOsJh.cjs +0 -1
  345. package/dist/tooth-65-D2ZC2VEr.cjs +0 -1
  346. package/dist/tooth-71-D473PPO5.cjs +0 -1
  347. package/dist/tooth-72-Drh1wnNu.cjs +0 -1
  348. package/dist/tooth-73-DzlwYI23.cjs +0 -1
  349. package/dist/tooth-74-8aGvcZPg.cjs +0 -1
  350. package/dist/tooth-75-BFK7At_r.cjs +0 -1
  351. package/dist/tooth-81-BZmR-I0M.cjs +0 -1
  352. package/dist/tooth-82-euVfUUZV.cjs +0 -1
  353. package/dist/tooth-83-KV010j64.cjs +0 -1
  354. package/dist/tooth-84-BBg1RjhZ.cjs +0 -1
  355. package/dist/tooth-85-Cr-kc1wM.cjs +0 -1
  356. package/dist/vuetifyConfig.umd.cjs +0 -1
  357. package/src/components/BackBtn/tests/__snapshots__/back-btn-custom-bg.snap.png +0 -0
  358. package/src/components/BackBtn/tests/__snapshots__/back-btn-dark-mode.snap.png +0 -0
  359. package/src/components/BackBtn/tests/__snapshots__/back-btn-default.snap.png +0 -0
  360. package/src/components/BackBtn/tests/__snapshots__/back-btn-no-icon.snap.png +0 -0
  361. package/src/components/DatePicker/CalendarMode/tests/DatePicker.events.spec.ts +0 -178
  362. package/src/components/DialogBox/tests/__snapshots__/dialog-box-custom-texts.snap.png +0 -0
  363. package/src/components/DialogBox/tests/__snapshots__/dialog-box-default.snap.png +0 -0
  364. package/src/components/DialogBox/tests/__snapshots__/dialog-box-no-actions.snap.png +0 -0
  365. package/src/components/HeaderBar/HeaderBurgerMenu/tests/__snapshots__/header-burger-menu-generated-submenu-open.snap.png +0 -0
  366. package/src/components/HeaderBar/HeaderBurgerMenu/tests/__snapshots__/header-burger-menu-generated.snap.png +0 -0
  367. package/src/components/HeaderBar/tests/__snapshots__/header-bar-custom-width.snap.png +0 -0
  368. package/src/components/HeaderBar/tests/__snapshots__/header-bar-default.snap.png +0 -0
  369. package/src/components/HeaderBar/tests/__snapshots__/header-bar-no-sticky.snap.png +0 -0
  370. package/src/components/HeaderBar/tests/__snapshots__/header-bar-with-prepend.snap.png +0 -0
  371. package/src/components/HeaderBar/tests/__snapshots__/header-bar-with-side.snap.png +0 -0
  372. package/src/components/HeaderBar/tests/__snapshots__/header-bar-with-subtitle.snap.png +0 -0
  373. package/src/components/Logo/tests/__snapshots__/logo-avatar.snap.png +0 -0
  374. package/src/components/Logo/tests/__snapshots__/logo-dark.snap.png +0 -0
  375. package/src/components/Logo/tests/__snapshots__/logo-default.snap.png +0 -0
  376. package/src/components/Logo/tests/__snapshots__/logo-no-organism.snap.png +0 -0
  377. package/src/components/Logo/tests/__snapshots__/logo-no-signature.snap.png +0 -0
  378. package/src/components/Logo/tests/__snapshots__/logo-risque-pro.snap.png +0 -0
  379. package/src/components/RangeField/tests/__snapshots__/range-field-custom-bg.snap.png +0 -0
  380. package/src/components/RangeField/tests/__snapshots__/range-field-custom-range.snap.png +0 -0
  381. package/src/components/RangeField/tests/__snapshots__/range-field-default.snap.png +0 -0
  382. package/src/components/RangeField/tests/__snapshots__/range-field-step.snap.png +0 -0
  383. package/src/components/RangeField/tests/__snapshots__/range-field-with-label.snap.png +0 -0
  384. package/src/components/SyAlert/tests/__snapshots__/sy-alert-closable.snap.png +0 -0
  385. package/src/components/SyAlert/tests/__snapshots__/sy-alert-error.snap.png +0 -0
  386. package/src/components/SyAlert/tests/__snapshots__/sy-alert-info.snap.png +0 -0
  387. package/src/components/SyAlert/tests/__snapshots__/sy-alert-success.snap.png +0 -0
  388. package/src/components/SyAlert/tests/__snapshots__/sy-alert-variant-outlined.snap.png +0 -0
  389. package/src/components/SyAlert/tests/__snapshots__/sy-alert-variant-tonal.snap.png +0 -0
  390. package/src/components/SyAlert/tests/__snapshots__/sy-alert-warning.snap.png +0 -0
  391. package/src/composables/date/tests/useDateFormat.spec.ts +0 -67
  392. package/src/composables/date/useDateFormat.ts +0 -110
  393. package/src/composables/date/useDateInitialization.ts +0 -92
@@ -99,29 +99,26 @@ export const ColorIntegration: StoryObj = {
99
99
  tags: ['!dev'],
100
100
  }
101
101
 
102
- export const ColorBase: StoryObj = {
102
+ export const mainColors: StoryObj = {
103
103
  render: () => {
104
104
  return {
105
105
  components: { ColorDisplay },
106
106
  setup() {
107
- const colorTitle = ''
107
+ const colorTitle = 'Couleurs Principales'
108
108
  const colorTitleLevel = 3
109
+ const colorDescription = 'Fond et texte (sous condition de contraste) un texte pourrait être en : On-surface ou On-surface variant ...'
109
110
  const cnamColors = {
110
111
  'primary': cnamLightTheme.primary,
112
+ 'primary-variant': cnamLightTheme.primaryVariant,
111
113
  'secondary': cnamLightTheme.secondary,
112
- 'error': cnamLightTheme.error,
113
- 'info': cnamLightTheme.info,
114
- 'success': cnamLightTheme.success,
115
- 'warning': cnamLightTheme.warning,
114
+ 'secondary-variant': cnamLightTheme.secondaryVariant,
116
115
  'risque-pro': cnamLightTheme.risquePro,
117
116
  }
118
117
  const paColors = {
119
- primary: paLightTheme.primary,
120
- secondary: paLightTheme.secondary,
121
- error: paLightTheme.error,
122
- info: paLightTheme.info,
123
- success: paLightTheme.success,
124
- warning: paLightTheme.warning,
118
+ 'primary': paLightTheme.primary,
119
+ 'primary-variant': paLightTheme.primaryVariant,
120
+ 'secondary': paLightTheme.secondary,
121
+ 'secondary-variant': paLightTheme.secondaryVariant,
125
122
  }
126
123
  const apColors2026 = {
127
124
  primary: apLightTheme2026.primary,
@@ -132,12 +129,10 @@ export const ColorBase: StoryObj = {
132
129
  warning: apLightTheme2026.warning,
133
130
  }
134
131
  const apColors = {
135
- primary: apLightTheme.primary,
136
- secondary: apLightTheme.secondary,
137
- error: apLightTheme.error,
138
- info: apLightTheme.info,
139
- success: apLightTheme.success,
140
- warning: apLightTheme.warning,
132
+ 'primary': apLightTheme.primary,
133
+ 'primary-variant': apLightTheme.primaryVariant,
134
+ 'secondary': apLightTheme.secondary,
135
+ 'secondary-variant': apLightTheme.secondaryVariant,
141
136
  }
142
137
  return {
143
138
  cnamColors,
@@ -146,18 +141,20 @@ export const ColorBase: StoryObj = {
146
141
  apColors,
147
142
  colorTitle,
148
143
  colorTitleLevel,
144
+ colorDescription,
149
145
  }
150
146
  },
151
147
  template: `
152
148
  <ColorDisplay
153
149
  displayEmptyColors
154
- colorCategory="base"
150
+ colorCategory="mainColors"
155
151
  :cnamColors="cnamColors"
156
152
  :paColors="paColors"
157
153
  :apColors="apColors"
158
154
  :apColors2026="apColors2026"
159
155
  :colorTitle="colorTitle"
160
156
  :colorTitleLevel="colorTitleLevel"
157
+ :colorDescription="colorDescription"
161
158
  />
162
159
  `,
163
160
  }
@@ -165,28 +162,31 @@ export const ColorBase: StoryObj = {
165
162
  tags: ['!dev'],
166
163
  }
167
164
 
168
- export const ColorPrimary: StoryObj = {
165
+ export const ColorOn: StoryObj = {
169
166
  render: () => {
170
167
  return {
171
168
  components: { ColorDisplay },
172
169
  setup() {
173
- const colorTitle = 'Accent Primary'
170
+ const colorTitle = 'On-Couleurs'
174
171
  const colorTitleLevel = 3
175
- const colorDescription = 'Ces couleurs sont à utiliser pour mettre en avant des containers de manière marquée.'
172
+ const colorDescription = 'Texte/icône sur fond'
176
173
  const cnamColors = {
177
- 'accent-primary-light': cnamLightTheme.accentPrimaryLight,
178
- 'accent-primary': cnamLightTheme.accentPrimary,
179
- 'accent-primary-contrasted': cnamLightTheme.accentPrimaryContrasted,
174
+ 'on-primary': cnamLightTheme.onPrimary,
175
+ 'on-primary-variant': cnamLightTheme.onPrimaryVariant,
176
+ 'on-secondary': cnamLightTheme.onSecondary,
177
+ 'on-secondary-variant': cnamLightTheme.onSecondaryVariant,
180
178
  }
181
179
  const paColors = {
182
- 'accent-primary-light': paLightTheme.accentPrimaryLight,
183
- 'accent-primary': paLightTheme.accentPrimary,
184
- 'accent-primary-contrasted': paLightTheme.accentPrimaryContrasted,
180
+ 'on-primary': paLightTheme.onPrimary,
181
+ 'on-primary-variant': paLightTheme.onPrimaryVariant,
182
+ 'on-secondary': paLightTheme.onSecondary,
183
+ 'on-secondary-variant': paLightTheme.onSecondaryVariant,
185
184
  }
186
185
  const apColors = {
187
- 'accent-primary-light': apLightTheme.accentPrimaryLight,
188
- 'accent-primary': apLightTheme.accentPrimary,
189
- 'accent-primary-contrasted': apLightTheme.accentPrimaryContrasted,
186
+ 'on-primary': apLightTheme.onPrimary,
187
+ 'on-primary-variant': apLightTheme.onPrimaryVariant,
188
+ 'on-secondary': apLightTheme.onSecondary,
189
+ 'on-secondary-variant': apLightTheme.onSecondaryVariant,
190
190
  }
191
191
  const apColors2026 = {}
192
192
  return {
@@ -202,8 +202,8 @@ export const ColorPrimary: StoryObj = {
202
202
  template: `
203
203
  <ColorDisplay
204
204
  displayEmptyColors
205
- colorCategory="base"
206
- :cnamColors="cnamColors"
205
+ colorCategory="on-couleurs"
206
+ :cnamColors="cnamColors"
207
207
  :paColors="paColors"
208
208
  :apColors="apColors"
209
209
  :apColors2026="apColors2026"
@@ -217,74 +217,50 @@ export const ColorPrimary: StoryObj = {
217
217
  tags: ['!dev'],
218
218
  }
219
219
 
220
- export const ColorSecondary: StoryObj = {
221
- render: () => {
222
- return {
223
- components: { ColorDisplay },
224
- setup() {
225
- const colorTitle = 'Accent Secondary'
226
- const colorTitleLevel = 3
227
- const colorDescription = 'Ces couleurs sont à utiliser pour mettre en avant des containers de manière marquée.'
228
- const cnamColors = {
229
- 'accent-secondary-light': cnamLightTheme.accentSecondaryLight,
230
- 'accent-secondary': cnamLightTheme.accentSecondary,
231
- 'accent-secondarys-contrasted': cnamLightTheme.accentSecondaryContrasted,
232
- }
233
- const paColors = {
234
- 'accent-secondary-light': paLightTheme.accentSecondaryLight,
235
- 'accent-secondary': paLightTheme.accentSecondary,
236
- 'accent-secondarys-contrasted': paLightTheme.accentSecondaryContrasted,
237
- }
238
- const apColors = {
239
- 'accent-secondary-light': apLightTheme.accentSecondaryLight,
240
- 'accent-secondary': apLightTheme.accentSecondary,
241
- 'accent-secondarys-contrasted': apLightTheme.accentSecondaryContrasted,
242
- }
243
- const apColors2026 = {}
244
- return {
245
- cnamColors,
246
- paColors,
247
- apColors,
248
- apColors2026,
249
- colorTitle,
250
- colorDescription,
251
- colorTitleLevel,
252
- }
253
- },
254
- template: `
255
- <ColorDisplay
256
- displayEmptyColors
257
- colorCategory="base"
258
- :cnamColors="cnamColors"
259
- :paColors="paColors"
260
- :apColors="apColors"
261
- :apColors2026="apColors2026"
262
- :colorTitle="colorTitle"
263
- :colorDescription="colorDescription"
264
- :colorTitleLevel="colorTitleLevel"
265
- />
266
- `,
267
- }
268
- },
269
- tags: ['!dev'],
270
- }
271
-
272
- export const ColorAlternatives: StoryObj = {
220
+ export const Interaction: StoryObj = {
273
221
  render: () => {
274
222
  return {
275
223
  components: { ColorDisplay },
276
224
  setup() {
277
- const colorTitle = 'Accent Alternatives'
225
+ const colorTitle = ''
226
+ const colorDescription = 'Ces couleurs sont à utiliser pour les fonds des éléments interactifs de sélection (item de liste sélectionnable, carte sélectionnable,...)'
227
+ const displayEmptyColors = false
278
228
  const colorTitleLevel = 3
279
- const colorDescription = 'Cette couleur est à utiliser pour mettre en avant des containers de manière marquée.'
280
229
  const cnamColors = {
281
- 'accent-alt': cnamLightTheme.accentAlt,
230
+ 'interaction-lighten-enabled': cnamLightTheme.interactionLightenEnabled,
231
+ 'interactiion-lighten-hover': cnamLightTheme.interactionLightenHover,
232
+ 'interaction-lighten-selected': cnamLightTheme.interactionLightenSelected,
233
+ 'interaction-lighten-pressed': cnamLightTheme.interactionLightenPressed,
234
+ 'interaction-darke-hover': cnamLightTheme.interactionDarkEnabled,
235
+ 'interaction-dark-hover': cnamLightTheme.interactionDarkHover,
236
+ 'interaction-dark-pressed': cnamLightTheme.interactionDarkPressed,
237
+ 'interaction-darken-enabled': cnamLightTheme.interactionDarkenEnabled,
238
+ 'interaction-darken-hover': cnamLightTheme.interactionDarkenHover,
239
+ 'interaction-darken-pressed': cnamLightTheme.interactionDarkenPressed,
282
240
  }
283
241
  const paColors = {
284
- 'accent-alt': paLightTheme.accentAlt,
242
+ 'interaction-lighten-enabled': paLightTheme.interactionLightenEnabled,
243
+ 'interactiion-lighten-hover': paLightTheme.interactionLightenHover,
244
+ 'interaction-lighten-selected': paLightTheme.interactionLightenSelected,
245
+ 'interaction-lighten-pressed': paLightTheme.interactionLightenPressed,
246
+ 'interaction-darke-hover': paLightTheme.interactionDarkEnabled,
247
+ 'interaction-dark-hover': paLightTheme.interactionDarkHover,
248
+ 'interaction-dark-pressed': paLightTheme.interactionDarkPressed,
249
+ 'interaction-darken-enabled': paLightTheme.interactionDarkenEnabled,
250
+ 'interaction-darken-hover': paLightTheme.interactionDarkenHover,
251
+ 'interaction-darken-pressed': paLightTheme.interactionDarkenPressed,
285
252
  }
286
253
  const apColors = {
287
- 'accent-alt': apLightTheme.accentAlt,
254
+ 'interaction-lighten-enabled': apLightTheme.interactionLightenEnabled,
255
+ 'interactiion-lighten-hover': apLightTheme.interactionLightenHover,
256
+ 'interaction-lighten-selected': apLightTheme.interactionLightenSelected,
257
+ 'interaction-lighten-pressed': apLightTheme.interactionLightenPressed,
258
+ 'interaction-darke-hover': apLightTheme.interactionDarkEnabled,
259
+ 'interaction-dark-hover': apLightTheme.interactionDarkHover,
260
+ 'interaction-dark-pressed': apLightTheme.interactionDarkPressed,
261
+ 'interaction-darken-enabled': apLightTheme.interactionDarkenEnabled,
262
+ 'interaction-darken-hover': apLightTheme.interactionDarkenHover,
263
+ 'interaction-darken-pressed': apLightTheme.interactionDarkenPressed,
288
264
  }
289
265
  const apColors2026 = {}
290
266
  return {
@@ -295,12 +271,13 @@ export const ColorAlternatives: StoryObj = {
295
271
  colorTitle,
296
272
  colorDescription,
297
273
  colorTitleLevel,
274
+ displayEmptyColors,
298
275
  }
299
276
  },
300
277
  template: `
301
278
  <ColorDisplay
302
- displayEmptyColors
303
- colorCategory="base"
279
+ :displayEmptyColors="displayEmptyColors"
280
+ colorCategory="interaction"
304
281
  :cnamColors="cnamColors"
305
282
  :paColors="paColors"
306
283
  :apColors="apColors"
@@ -314,45 +291,23 @@ export const ColorAlternatives: StoryObj = {
314
291
  },
315
292
  tags: ['!dev'],
316
293
  }
317
-
318
- export const Interactive: StoryObj = {
294
+ export const Disabled: StoryObj = {
319
295
  render: () => {
320
296
  return {
321
297
  components: { ColorDisplay },
322
298
  setup() {
323
- const colorTitle = ''
324
- const colorDescription = 'Ces couleurs sont à utiliser pour les fonds des éléments interactifs de sélection (item de liste sélectionnable, carte sélectionnable,...)'
299
+ const colorTitle = 'Disabled'
300
+ const colorDescription = 'Fond et container des éléments désactivés'
325
301
  const displayEmptyColors = false
326
302
  const colorTitleLevel = 3
327
303
  const cnamColors = {
328
- 'interactive-selection-enabled': cnamLightTheme.interactiveSelectionEnabled,
329
- 'interactive-selection-hover': cnamLightTheme.interactiveSelectionHover,
330
- 'interactive-selection-pressed': cnamLightTheme.interactiveSelectionPressed,
331
- 'interactive-selection-selected': cnamLightTheme.interactiveSelectionSelected,
332
- 'interactive-selection-hover-on-selected': cnamLightTheme.interactiveSelectionHoverOnSelected,
333
- 'interactive-selection-selected-accent': cnamLightTheme.interactiveSelectionSelectedAccent,
334
- 'interactive-selection-hover-on-selected-accent': cnamLightTheme.interactiveSelectionHoverOnSelectedAccent,
335
- 'interactive-selection-disabled': cnamLightTheme.interactiveSelectionDisabled,
304
+ disabled: cnamLightTheme.disabled,
336
305
  }
337
306
  const paColors = {
338
- 'interactive-selection-enabled': paLightTheme.interactiveSelectionEnabled,
339
- 'interactive-selection-hover': paLightTheme.interactiveSelectionHover,
340
- 'interactive-selection-pressed': paLightTheme.interactiveSelectionPressed,
341
- 'interactive-selection-selected': paLightTheme.interactiveSelectionSelected,
342
- 'interactive-selection-hover-on-selected': paLightTheme.interactiveSelectionHoverOnSelected,
343
- 'interactive-selection-selected-accent': paLightTheme.interactiveSelectionSelectedAccent,
344
- 'interactive-selection-hover-on-selected-accent': paLightTheme.interactiveSelectionHoverOnSelectedAccent,
345
- 'interactive-selection-disabled': paLightTheme.interactiveSelectionDisabled,
307
+ disabled: paLightTheme.disabled,
346
308
  }
347
309
  const apColors = {
348
- 'interactive-selection-enabled': apLightTheme.interactiveSelectionEnabled,
349
- 'interactive-selection-hover': apLightTheme.interactiveSelectionHover,
350
- 'interactive-selection-pressed': apLightTheme.interactiveSelectionPressed,
351
- 'interactive-selection-selected': apLightTheme.interactiveSelectionSelected,
352
- 'interactive-selection-hover-on-selected': apLightTheme.interactiveSelectionHoverOnSelected,
353
- 'interactive-selection-selected-accent': apLightTheme.interactiveSelectionSelectedAccent,
354
- 'interactive-selection-hover-on-selected-accent': apLightTheme.interactiveSelectionHoverOnSelectedAccent,
355
- 'interactive-selection-disabled': apLightTheme.interactiveSelectionDisabled,
310
+ disabled: apLightTheme.disabled,
356
311
  }
357
312
  const apColors2026 = {}
358
313
  return {
@@ -369,7 +324,7 @@ export const Interactive: StoryObj = {
369
324
  template: `
370
325
  <ColorDisplay
371
326
  :displayEmptyColors="displayEmptyColors"
372
- colorCategory="interactive"
327
+ colorCategory="disabled"
373
328
  :cnamColors="cnamColors"
374
329
  :paColors="paColors"
375
330
  :apColors="apColors"
@@ -384,62 +339,35 @@ export const Interactive: StoryObj = {
384
339
  tags: ['!dev'],
385
340
  }
386
341
 
387
- export const ColorBaseSection = {
342
+ export const mainSection = {
388
343
  render() {
389
344
  return h(createSection('Couleurs de base', [
390
- ColorBase,
345
+ mainColors,
346
+ ColorOn,
391
347
  ]))
392
348
  },
393
349
  }
394
-
395
- export const AccentSection = {
396
- render() {
397
- return h(createSection('Accent', [
398
- ColorPrimary,
399
- ColorSecondary,
400
- ColorAlternatives,
401
- ], 'ap2026'))
402
- },
403
- }
404
- export const InteractiveSection = {
405
- render() {
406
- return h(createSection('Interactive', [
407
- Interactive,
408
- ], 'ap2026'))
409
- },
410
- }
411
-
412
- export const BorderBase: StoryObj = {
350
+ export const Backgrounds: StoryObj = {
413
351
  render: () => {
414
352
  return {
415
353
  components: { ColorDisplay },
416
354
  setup() {
417
- const colorTitle = 'Base'
355
+ const colorTitle = 'Backgrounds'
356
+ const colorDescription = 'backgrounds principaux de la plateforme'
418
357
  const colorTitleLevel = 3
419
- const colorDescription = 'Ce sont les couleurs les plus courantes à utiliser pour les contours de tous les éléments d’interface (quand nécessaire)'
420
358
  const cnamColors = {
421
- 'border-base': cnamLightTheme.borderBase,
422
- 'border-darker': cnamLightTheme.borderDarker,
423
- 'border-subdued': cnamLightTheme.borderSubdued,
424
- 'border-disabled': cnamLightTheme.borderDisabled,
425
- 'border-disabled-on-dark': cnamLightTheme.borderDisabledOnDark,
359
+ 'background': cnamLightTheme.background,
360
+ 'background-variant': cnamLightTheme.backgroundVariant,
426
361
  }
427
362
  const paColors = {
428
- 'border-base': paLightTheme.borderBase,
429
- 'border-darker': paLightTheme.borderDarker,
430
- 'border-subdued': paLightTheme.borderSubdued,
431
- 'border-disabled': paLightTheme.borderDisabled,
432
- 'border-disabled-on-dark': paLightTheme.borderDisabledOnDark,
363
+ 'background': paLightTheme.background,
364
+ 'background-variant': paLightTheme.backgroundVariant,
433
365
  }
434
366
  const apColors = {
435
- 'border-base': apLightTheme.borderBase,
436
- 'border-darker': apLightTheme.borderDarker,
437
- 'border-subdued': apLightTheme.borderSubdued,
438
- 'border-disabled': apLightTheme.borderDisabled,
439
- 'border-disabled-on-dark': apLightTheme.borderDisabledOnDark,
440
-
367
+ 'background': apLightTheme.background,
368
+ 'background-variant': apLightTheme.backgroundVariant,
441
369
  }
442
- const apColors2026 = {}
370
+ const apColors2026 = { 'ap-grey-lighten-6': apColorsTokens2026.apGrey.lighten6 }
443
371
  return {
444
372
  cnamColors,
445
373
  paColors,
@@ -453,7 +381,7 @@ export const BorderBase: StoryObj = {
453
381
  template: `
454
382
  <ColorDisplay
455
383
  displayEmptyColors
456
- colorCategory="border"
384
+ colorCategory="backgrounds"
457
385
  :cnamColors="cnamColors"
458
386
  :paColors="paColors"
459
387
  :apColors="apColors"
@@ -467,29 +395,25 @@ export const BorderBase: StoryObj = {
467
395
  },
468
396
  tags: ['!dev'],
469
397
  }
470
-
471
- export const BorderPrimary: StoryObj = {
398
+ export const OnBackgrounds: StoryObj = {
472
399
  render: () => {
473
400
  return {
474
401
  components: { ColorDisplay },
475
402
  setup() {
476
- const colorTitle = 'Accent Primary'
477
- const colorDescription = 'Ce sont les couleurs à utiliser pour mettre en exergue des éléments par leur contour.'
403
+ const colorTitle = 'On-Backgrounds'
404
+ const colorDescription = 'Texte/icône sur fond'
478
405
  const colorTitleLevel = 3
479
406
  const cnamColors = {
480
- 'border-accent-primary': cnamLightTheme.borderAccentPrimary,
481
- 'border-accent-primary-contrasted': cnamLightTheme.borderAccentPrimaryContrasted,
482
- 'border-accent-primary-on-dark': cnamLightTheme.borderAccentPrimaryOnDark,
407
+ 'on-background': cnamLightTheme.onBackground,
408
+ 'on-background-variant': cnamLightTheme.onBackgroundVariant,
483
409
  }
484
410
  const paColors = {
485
- 'border-accent-primary': paLightTheme.borderAccentPrimary,
486
- 'border-accent-primary-contrasted': paLightTheme.borderAccentPrimaryContrasted,
487
- 'border-accent-primary-on-dark': paLightTheme.borderAccentPrimaryOnDark,
411
+ 'on-background': paLightTheme.onBackground,
412
+ 'on-background-variant': paLightTheme.onBackgroundVariant,
488
413
  }
489
414
  const apColors = {
490
- 'border-accent-primary': apLightTheme.borderAccentPrimary,
491
- 'border-accent-primary-contrasted': apLightTheme.borderAccentPrimaryContrasted,
492
- 'border-accent-primary-on-dark': apLightTheme.borderAccentPrimaryOnDark,
415
+ 'on-background': apLightTheme.onBackground,
416
+ 'on-background-variant': apLightTheme.onBackgroundVariant,
493
417
  }
494
418
  const apColors2026 = {}
495
419
  return {
@@ -505,7 +429,7 @@ export const BorderPrimary: StoryObj = {
505
429
  template: `
506
430
  <ColorDisplay
507
431
  displayEmptyColors
508
- colorCategory="border"
432
+ colorCategory="OnBackgrounds"
509
433
  :cnamColors="cnamColors"
510
434
  :paColors="paColors"
511
435
  :apColors="apColors"
@@ -519,26 +443,31 @@ export const BorderPrimary: StoryObj = {
519
443
  },
520
444
  tags: ['!dev'],
521
445
  }
522
-
523
- export const BorderSecondary: StoryObj = {
446
+ export const Surfaces: StoryObj = {
524
447
  render: () => {
525
448
  return {
526
449
  components: { ColorDisplay },
527
450
  setup() {
528
- const colorTitle = 'Accent Secondary'
529
- const colorDescription = 'Ce sont les couleurs à utiliser pour mettre en exergue des éléments par leur contour.'
451
+ const colorTitle = 'Surfaces'
452
+ const colorDescription = ' Surface en superposition du background principal.'
530
453
  const colorTitleLevel = 3
531
454
  const cnamColors = {
532
- 'border-accent-secondary': cnamLightTheme.borderAccentSecondary,
533
- 'border-accent-secondary-contrasted': cnamLightTheme.borderAccentSecondaryContrasted,
455
+ 'surface': cnamLightTheme.surface,
456
+ 'surface-dim': cnamLightTheme.surfaceDim,
457
+ 'surface-bright': cnamLightTheme.surfaceBright,
458
+ 'inverse-surface': cnamLightTheme.inverseSurface,
534
459
  }
535
460
  const paColors = {
536
- 'border-accent-secondary': paLightTheme.borderAccentSecondary,
537
- 'border-accent-secondary-contrasted': paLightTheme.borderAccentSecondaryContrasted,
461
+ 'surface': paLightTheme.surface,
462
+ 'surface-dim': paLightTheme.surfaceDim,
463
+ 'surface-bright': paLightTheme.surfaceBright,
464
+ 'inverse-surface': paLightTheme.inverseSurface,
538
465
  }
539
466
  const apColors = {
540
- 'border-accent-secondary': apLightTheme.borderAccentSecondary,
541
- 'border-accent-secondary-contrasted': apLightTheme.borderAccentSecondaryContrasted,
467
+ 'surface': apLightTheme.surface,
468
+ 'surface-dim': apLightTheme.surfaceDim,
469
+ 'surface-bright': apLightTheme.surfaceBright,
470
+ 'inverse-surface': apLightTheme.inverseSurface,
542
471
  }
543
472
  const apColors2026 = {}
544
473
  return {
@@ -554,7 +483,7 @@ export const BorderSecondary: StoryObj = {
554
483
  template: `
555
484
  <ColorDisplay
556
485
  displayEmptyColors
557
- colorCategory="border"
486
+ colorCategory="surfaces"
558
487
  :cnamColors="cnamColors"
559
488
  :paColors="paColors"
560
489
  :apColors="apColors"
@@ -568,32 +497,25 @@ export const BorderSecondary: StoryObj = {
568
497
  },
569
498
  tags: ['!dev'],
570
499
  }
571
-
572
- export const BorderStates: StoryObj = {
500
+ export const OnSurfaces: StoryObj = {
573
501
  render: () => {
574
502
  return {
575
503
  components: { ColorDisplay },
576
504
  setup() {
577
- const colorTitle = 'States'
578
- const colorDescription = 'Ces couleurs sont à utiliser pour les contours d’éléments d’interface présentant un message d’information, de succès, d’attention ou de danger.'
505
+ const colorTitle = 'On-Surfaces'
506
+ const colorDescription = 'Texte/icône sur une surface '
579
507
  const colorTitleLevel = 3
580
508
  const cnamColors = {
581
- 'border-info': cnamLightTheme.borderInfo,
582
- 'border-success': cnamLightTheme.borderSuccess,
583
- 'border-warning': cnamLightTheme.borderWarning,
584
- 'border-error': cnamLightTheme.borderError,
509
+ 'on-surface': cnamLightTheme.onSurface,
510
+ 'on-surface-variant': cnamLightTheme.onSurfaceVariant,
585
511
  }
586
512
  const paColors = {
587
- 'border-info': paLightTheme.borderInfo,
588
- 'border-success': paLightTheme.borderSuccess,
589
- 'border-warning': paLightTheme.borderWarning,
590
- 'border-error': paLightTheme.borderError,
513
+ 'on-surface': paLightTheme.onSurface,
514
+ 'on-surface-variant': paLightTheme.onSurfaceVariant,
591
515
  }
592
516
  const apColors = {
593
- 'border-info': apLightTheme.borderInfo,
594
- 'border-success': apLightTheme.borderSuccess,
595
- 'border-warning': apLightTheme.borderWarning,
596
- 'border-error': apLightTheme.borderError,
517
+ 'on-surface': apLightTheme.onSurface,
518
+ 'on-surface-variant': apLightTheme.onSurfaceVariant,
597
519
  }
598
520
  const apColors2026 = {}
599
521
  return {
@@ -609,7 +531,7 @@ export const BorderStates: StoryObj = {
609
531
  template: `
610
532
  <ColorDisplay
611
533
  displayEmptyColors
612
- colorCategory="border"
534
+ colorCategory="onsurfaces"
613
535
  :cnamColors="cnamColors"
614
536
  :paColors="paColors"
615
537
  :apColors="apColors"
@@ -623,48 +545,21 @@ export const BorderStates: StoryObj = {
623
545
  },
624
546
  tags: ['!dev'],
625
547
  }
626
-
627
- export const BorderSection = {
628
- render() {
629
- return h(createSection('Border', [
630
- BorderBase,
631
- BorderPrimary,
632
- BorderSecondary,
633
- BorderStates,
634
- ], 'ap2026'))
635
- },
636
- }
637
- export const TextBase: StoryObj = {
548
+ export const Overlay: StoryObj = {
638
549
  render: () => {
639
550
  return {
640
551
  components: { ColorDisplay },
641
552
  setup() {
642
- const colorTitle = 'Base'
553
+ const colorTitle = 'Overlay'
643
554
  const colorTitleLevel = 3
644
- const colorDescription = 'Ce sont les couleurs les plus courantes à utiliser pour les textes.'
645
555
  const cnamColors = {
646
- 'text-base': cnamLightTheme.textBase,
647
- 'text-subdued': cnamLightTheme.textSubdued,
648
- 'text-disabled': cnamLightTheme.textDisabled,
649
- 'text-on-dark': cnamLightTheme.textOnDark,
650
- 'text-subdued-on-dark': cnamLightTheme.textSubduedOnDark,
651
- 'text-disabled-on-dark': cnamLightTheme.textDisabledOnDark,
556
+ overlay: cnamLightTheme.overlay,
652
557
  }
653
558
  const paColors = {
654
- 'text-base': paLightTheme.textBase,
655
- 'text-subdued': paLightTheme.textSubdued,
656
- 'text-disabled': paLightTheme.textDisabled,
657
- 'text-on-dark': paLightTheme.textOnDark,
658
- 'text-subdued-on-dark': paLightTheme.textSubduedOnDark,
659
- 'text-disabled-on-dark': paLightTheme.textDisabledOnDark,
559
+ overlay: paLightTheme.overlay,
660
560
  }
661
561
  const apColors = {
662
- 'text-base': apLightTheme.textBase,
663
- 'text-subdued': apLightTheme.textSubdued,
664
- 'text-disabled': apLightTheme.textDisabled,
665
- 'text-on-dark': apLightTheme.textOnDark,
666
- 'text-subdued-on-dark': apLightTheme.textSubduedOnDark,
667
- 'text-disabled-on-dark': apLightTheme.textDisabledOnDark,
562
+ overlay: apLightTheme.overlay,
668
563
  }
669
564
  const apColors2026 = {}
670
565
  return {
@@ -673,47 +568,50 @@ export const TextBase: StoryObj = {
673
568
  apColors,
674
569
  apColors2026,
675
570
  colorTitle,
676
- colorDescription,
677
571
  colorTitleLevel,
678
572
  }
679
573
  },
680
574
  template: `
681
575
  <ColorDisplay
682
576
  displayEmptyColors
683
- colorCategory="text"
577
+ colorCategory="overlay"
684
578
  :cnamColors="cnamColors"
685
579
  :paColors="paColors"
686
580
  :apColors="apColors"
687
581
  :apColors2026="apColors2026"
688
582
  :colorTitle="colorTitle"
689
- :colorDescription="colorDescription"
690
583
  :colorTitleLevel="colorTitleLevel"
691
- />`,
584
+ />
585
+ `,
692
586
  }
693
587
  },
694
588
  tags: ['!dev'],
695
589
  }
696
-
697
- export const TextPrimary: StoryObj = {
590
+ export const Borders: StoryObj = {
698
591
  render: () => {
699
592
  return {
700
593
  components: { ColorDisplay },
701
594
  setup() {
702
- const colorTitle = 'Accent Primary'
703
- const colorDescription = 'Ce sont les couleurs les plus courantes à utiliser pour les textes.'
595
+ const colorTitle = 'Borders'
704
596
  const colorTitleLevel = 3
597
+ const colorDescription = 'Ce sont les couleurs à utiliser pour les contours de tous les éléments d’interface (quand nécessaire)'
705
598
  const cnamColors = {
706
- 'text-accent-primary': cnamLightTheme.textAccentPrimary,
707
- 'text-accent-primary-contrasted': cnamLightTheme.textAccentPrimaryContrasted,
599
+ 'border': cnamLightTheme.border,
600
+ 'border-variant': cnamLightTheme.borderVariant,
601
+ 'border-bright': cnamLightTheme.borderBright,
602
+ 'border-dim': cnamLightTheme.borderDim,
708
603
  }
709
604
  const paColors = {
710
- 'text-accent-primary': paLightTheme.textAccentPrimary,
711
- 'text-accent-primary-contrasted': paLightTheme.textAccentPrimaryContrasted,
605
+ 'border': paLightTheme.border,
606
+ 'border-variant': paLightTheme.borderVariant,
607
+ 'border-bright': paLightTheme.borderBright,
608
+ 'border-dim': paLightTheme.borderDim,
712
609
  }
713
610
  const apColors = {
714
- 'text-accent-primary': apLightTheme.textAccentPrimary,
715
- 'text-accent-primarycontrasted': apLightTheme.textAccentPrimaryContrasted,
716
-
611
+ 'border': apLightTheme.border,
612
+ 'border-variant': apLightTheme.borderVariant,
613
+ 'border-bright': apLightTheme.borderBright,
614
+ 'border-dim': apLightTheme.borderDim,
717
615
  }
718
616
  const apColors2026 = {}
719
617
  return {
@@ -729,7 +627,7 @@ export const TextPrimary: StoryObj = {
729
627
  template: `
730
628
  <ColorDisplay
731
629
  displayEmptyColors
732
- colorCategory="text"
630
+ colorCategory="borders"
733
631
  :cnamColors="cnamColors"
734
632
  :paColors="paColors"
735
633
  :apColors="apColors"
@@ -737,248 +635,92 @@ export const TextPrimary: StoryObj = {
737
635
  :colorTitle="colorTitle"
738
636
  :colorDescription="colorDescription"
739
637
  :colorTitleLevel="colorTitleLevel"
740
- />`,
638
+ />
639
+ `,
741
640
  }
742
641
  },
743
642
  tags: ['!dev'],
744
643
  }
745
644
 
746
- export const TextSecondary: StoryObj = {
747
- render: () => {
748
- return {
749
- components: { ColorDisplay },
750
- setup() {
751
- const colorTitle = 'Accent Secondary'
752
- const colorDescription = 'Ce sont les couleurs à utiliser pour mettre en exergue des textes.'
753
- const colorTitleLevel = 3
754
- const cnamColors = {
755
- 'text-accent-secondary': cnamLightTheme.textAccentSecondary,
756
- }
757
- const paColors = {
758
- 'text-accent-secondary': paLightTheme.textAccentSecondary,
759
-
760
- }
761
- const apColors = {
762
- 'text-accent-secondary': apLightTheme.textAccentSecondary,
763
-
764
- }
765
- const apColors2026 = {}
766
- return {
767
- cnamColors,
768
- paColors,
769
- apColors,
770
- apColors2026,
771
- colorTitle,
772
- colorDescription,
773
- colorTitleLevel,
774
- }
775
- },
776
- template: `
777
- <ColorDisplay
778
- displayEmptyColors
779
- colorCategory="text"
780
- :cnamColors="cnamColors"
781
- :paColors="paColors"
782
- :apColors="apColors"
783
- :apColors2026="apColors2026"
784
- :colorTitle="colorTitle"
785
- :colorDescription="colorDescription"
786
- :colorTitleLevel="colorTitleLevel"
787
- />`,
788
- }
645
+ export const BorderSection = {
646
+ render() {
647
+ return h(createSection('Borders', [
648
+ Borders,
649
+ ], 'ap2026'))
789
650
  },
790
- tags: ['!dev'],
791
651
  }
792
652
 
793
- export const TextState: StoryObj = {
794
- render: () => {
795
- return {
796
- components: { ColorDisplay },
797
- setup() {
798
- const colorTitle = 'State'
799
- const colorDescription = 'Ces couleurs sont à utiliser pour les textes présentant un message d’information, de succès, d’attention ou de danger.'
800
- const colorTitleLevel = 3
801
- const cnamColors = {
802
- 'text-info': cnamLightTheme.textInfo,
803
- 'text-success': cnamLightTheme.textSuccess,
804
- 'text-warning': cnamLightTheme.textWarning,
805
- 'text-error': cnamLightTheme.textError,
806
- }
807
- const paColors = {
808
- 'text-info': paLightTheme.textInfo,
809
- 'text-success': paLightTheme.textSuccess,
810
- 'text-warning': paLightTheme.textWarning,
811
- 'text-error': paLightTheme.textError,
812
- }
813
- const apColors = {
814
- 'text-info': apLightTheme.textInfo,
815
- 'text-success': apLightTheme.textSuccess,
816
- 'text-warning': apLightTheme.textWarning,
817
- 'text-error': apLightTheme.textError,
818
- }
819
- const apColors2026 = {}
820
- return {
821
- cnamColors,
822
- paColors,
823
- apColors,
824
- apColors2026,
825
- colorTitle,
826
- colorDescription,
827
- colorTitleLevel,
828
- }
829
- },
830
- template: `
831
- <ColorDisplay
832
- displayEmptyColors
833
- colorCategory="text"
834
- :cnamColors="cnamColors"
835
- :paColors="paColors"
836
- :apColors="apColors"
837
- :apColors2026="apColors2026"
838
- :colorTitle="colorTitle"
839
- :colorDescription="colorDescription"
840
- :colorTitleLevel="colorTitleLevel"
841
- />`,
842
- }
653
+ export const BackgroundSection = {
654
+ render() {
655
+ return h(createSection('Fonds et surfaces', [
656
+ Backgrounds,
657
+ OnBackgrounds,
658
+ Surfaces,
659
+ OnSurfaces,
660
+ ]))
843
661
  },
844
- tags: ['!dev'],
845
662
  }
846
-
847
- export const TextSection = {
663
+ export const OverlaySection = {
848
664
  render() {
849
- return h(createSection('Text', [
850
- TextBase,
851
- TextPrimary,
852
- TextSecondary,
853
- TextState,
854
- ], 'ap2026'))
665
+ return h(createSection('Fonds et surfaces', [
666
+ Overlay,
667
+ ]))
855
668
  },
856
669
  }
857
670
 
858
- export const IconBase: StoryObj = {
859
- render: () => {
860
- return {
861
- components: { ColorDisplay },
862
- setup() {
863
- const colorTitle = 'Base'
864
- const colorDescription = 'Ce sont les couleurs les plus courantes à utiliser pour les icônes dont la seule vocation est informative ou décorative.'
865
- const colorTitleLevel = 3
866
- const cnamColors = {
867
- 'icon-base': cnamLightTheme.iconBase,
868
- 'icon-subdued': cnamLightTheme.iconSubdued,
869
- 'icon-subdued-on-dark': cnamLightTheme.iconSubduedOnDark,
870
- 'icon-on-dark': cnamLightTheme.iconOnDark,
871
- 'icon-disabled': cnamLightTheme.iconDisabled,
872
- 'icon-disabled-on-dark': cnamLightTheme.iconDisabledOnDark,
873
- }
874
- const paColors = {
875
- 'icon-base': paLightTheme.iconBase,
876
- 'icon-subdued': paLightTheme.iconSubdued,
877
- 'icon-subdued-on-dark': paLightTheme.iconSubduedOnDark,
878
- 'icon-on-dark': paLightTheme.iconOnDark,
879
- 'icon-disabled': paLightTheme.iconDisabled,
880
- 'icon-disabled-on-dark': paLightTheme.iconDisabledOnDark,
881
- }
882
- const apColors = {
883
- 'icon-base': apLightTheme.iconBase,
884
- 'icon-subdued': apLightTheme.iconSubdued,
885
- 'icon-subdued-on-dark': apLightTheme.iconSubduedOnDark,
886
- 'icon-on-dark': apLightTheme.iconOnDark,
887
- 'icon-disabled': apLightTheme.iconDisabled,
888
- 'icon-disabled-on-dark': apLightTheme.iconDisabledOnDark,
889
- }
890
- const apColors2026 = {}
891
- return {
892
- cnamColors,
893
- paColors,
894
- apColors,
895
- apColors2026,
896
- colorTitle,
897
- colorDescription,
898
- colorTitleLevel,
899
- }
900
- },
901
- template: `
902
- <ColorDisplay
903
- displayEmptyColors
904
- colorCategory="icons"
905
- :cnamColors="cnamColors"
906
- :paColors="paColors"
907
- :apColors="apColors"
908
- :apColors2026="apColors2026"
909
- :colorTitle="colorTitle"
910
- :colorDescription="colorDescription"
911
- :colorTitleLevel="colorTitleLevel"
912
- />
913
- `,
914
- }
671
+ export const InteractionSection = {
672
+ render() {
673
+ return h(createSection('Interaction', [
674
+ Interaction,
675
+ ], 'ap2026'))
915
676
  },
916
- tags: ['!dev'],
917
677
  }
918
- export const IconPrimary: StoryObj = {
919
- render: () => {
920
- return {
921
- components: { ColorDisplay },
922
- setup() {
923
- const colorTitle = 'Accent Primary'
924
- const colorDescription = 'Ce sont les couleurs à utiliser dès qu’un icône symbolise une action.'
925
- const colorTitleLevel = 3
926
- const cnamColors = {
927
- 'icon-accent-primary': cnamLightTheme.iconAccentPrimary,
928
- 'icon-accent-primary-contrasted': cnamLightTheme.iconAccentPrimaryContrasted,
929
- }
930
- const paColors = {
931
- 'icon-accent-primary': paLightTheme.iconAccentPrimary,
932
- 'icon-accent-primary-contrasted': paLightTheme.iconAccentPrimaryContrasted,
933
- }
934
- const apColors = {
935
- 'icon-accent-primary': apLightTheme.iconAccentPrimary,
936
- 'icon-accent-primary-contrasted': apLightTheme.iconAccentPrimaryContrasted,
937
- }
938
- const apColors2026 = {}
939
- return {
940
- cnamColors,
941
- paColors,
942
- apColors,
943
- apColors2026,
944
- colorTitle,
945
- colorDescription,
946
- colorTitleLevel,
947
- }
948
- },
949
- template: `
950
- <ColorDisplay
951
- displayEmptyColors
952
- colorCategory="icons"
953
- :cnamColors="cnamColors"
954
- :paColors="paColors"
955
- :apColors="apColors"
956
- :apColors2026="apColors2026"
957
- :colorTitle="colorTitle"
958
- :colorDescription="colorDescription"
959
- :colorTitleLevel="colorTitleLevel"
960
- />
961
- `,
962
- }
678
+
679
+ export const DisabledSection = {
680
+ render() {
681
+ return h(createSection('Disabled', [
682
+ Disabled,
683
+ ], 'ap2026'))
963
684
  },
964
- tags: ['!dev'],
965
685
  }
966
- export const IconSecondary: StoryObj = {
686
+
687
+ export const Feedback: StoryObj = {
967
688
  render: () => {
968
689
  return {
969
690
  components: { ColorDisplay },
970
691
  setup() {
971
- const colorTitle = 'Accent Secondary'
972
- const colorDescription = 'Ce sont les couleurs à utiliser pour mettre en exergue des icônes.'
692
+ const colorTitle = 'Feedback'
973
693
  const colorTitleLevel = 3
694
+ const colorDescription = 'Fonds de composants (ou de containers) indiquant un message de statut'
974
695
  const cnamColors = {
975
- 'icon-accent-secondary': cnamLightTheme.iconAccentSecondary,
696
+ 'error': cnamLightTheme.error,
697
+ 'error-variant': cnamLightTheme.errorVariant,
698
+ 'success': cnamLightTheme.success,
699
+ 'success-variant': cnamLightTheme.successVariant,
700
+ 'warning': cnamLightTheme.warning,
701
+ 'warning-variant': cnamLightTheme.warningVariant,
702
+ 'info': cnamLightTheme.info,
703
+ 'info-variant': cnamLightTheme.infoVariant,
976
704
  }
977
705
  const paColors = {
978
- 'icon-accent-secondary': paLightTheme.iconAccentSecondary,
706
+ 'error': paLightTheme.error,
707
+ 'error-variant': paLightTheme.errorVariant,
708
+ 'success': paLightTheme.success,
709
+ 'success-variant': paLightTheme.successVariant,
710
+ 'warning': paLightTheme.warning,
711
+ 'warning-variant': paLightTheme.warningVariant,
712
+ 'info': paLightTheme.info,
713
+ 'info-variant': paLightTheme.infoVariant,
979
714
  }
980
715
  const apColors = {
981
- 'icon-accent-secondary': apLightTheme.iconAccentSecondary,
716
+ 'error': apLightTheme.error,
717
+ 'error-variant': apLightTheme.errorVariant,
718
+ 'success': apLightTheme.success,
719
+ 'success-variant': apLightTheme.successVariant,
720
+ 'warning': apLightTheme.warning,
721
+ 'warning-variant': apLightTheme.warningVariant,
722
+ 'info': apLightTheme.info,
723
+ 'info-variant': apLightTheme.infoVariant,
982
724
  }
983
725
  const apColors2026 = {}
984
726
  return {
@@ -994,7 +736,7 @@ export const IconSecondary: StoryObj = {
994
736
  template: `
995
737
  <ColorDisplay
996
738
  displayEmptyColors
997
- colorCategory="icons"
739
+ colorCategory="feedback"
998
740
  :cnamColors="cnamColors"
999
741
  :paColors="paColors"
1000
742
  :apColors="apColors"
@@ -1008,31 +750,44 @@ export const IconSecondary: StoryObj = {
1008
750
  },
1009
751
  tags: ['!dev'],
1010
752
  }
1011
- export const IconState: StoryObj = {
753
+
754
+ export const OnFeedback: StoryObj = {
1012
755
  render: () => {
1013
756
  return {
1014
757
  components: { ColorDisplay },
1015
758
  setup() {
1016
- const colorTitle = 'State'
1017
- const colorDescription = 'Ces couleurs sont à utiliser pour les icônes présentant un message d’information, de succès, d’attention ou de danger.'
759
+ const colorTitle = 'On-Feedback'
1018
760
  const colorTitleLevel = 3
761
+ const colorDescription = 'Textes/ Icônes sur fond de statut.'
1019
762
  const cnamColors = {
1020
- 'icon-info': cnamLightTheme.iconInfo,
1021
- 'icon-success': cnamLightTheme.iconSuccess,
1022
- 'icon-warning': cnamLightTheme.iconWarning,
1023
- 'icon-error': cnamLightTheme.iconError,
763
+ 'on-error': cnamLightTheme.onError,
764
+ 'on-error-variant': cnamLightTheme.onErrorVariant,
765
+ 'on-success': cnamLightTheme.onSuccess,
766
+ 'on-success-variant': cnamLightTheme.onSuccessVariant,
767
+ 'on-warning': cnamLightTheme.onWarning,
768
+ 'on-warning-variant': cnamLightTheme.onWarningVariant,
769
+ 'on-info': cnamLightTheme.onInfo,
770
+ 'on-info-variant': cnamLightTheme.onInfoVariant,
1024
771
  }
1025
772
  const paColors = {
1026
- 'icon-info': paLightTheme.iconInfo,
1027
- 'icon-success': paLightTheme.iconSuccess,
1028
- 'icon-warning': paLightTheme.iconWarning,
1029
- 'icon-error': paLightTheme.iconError,
773
+ 'on-error': paLightTheme.onError,
774
+ 'on-error-variant': paLightTheme.onErrorVariant,
775
+ 'on-success': paLightTheme.onSuccess,
776
+ 'on-success-variant': paLightTheme.onSuccessVariant,
777
+ 'on-warning': paLightTheme.onWarning,
778
+ 'on-warning-variant': paLightTheme.onWarningVariant,
779
+ 'on-info': paLightTheme.onInfo,
780
+ 'on-info-variant': paLightTheme.onInfoVariant,
1030
781
  }
1031
782
  const apColors = {
1032
- 'icon-info': apLightTheme.iconInfo,
1033
- 'icon-success': apLightTheme.iconSuccess,
1034
- 'icon-warning': apLightTheme.iconWarning,
1035
- 'icon-error': apLightTheme.iconError,
783
+ 'on-error': apLightTheme.onError,
784
+ 'on-error-variant': apLightTheme.onErrorVariant,
785
+ 'on-success': apLightTheme.onSuccess,
786
+ 'on-success-variant': apLightTheme.onSuccessVariant,
787
+ 'on-warning': apLightTheme.onWarning,
788
+ 'on-warning-variant': apLightTheme.onWarningVariant,
789
+ 'on-info': apLightTheme.onInfo,
790
+ 'on-info-variant': apLightTheme.onInfoVariant,
1036
791
  }
1037
792
  const apColors2026 = {}
1038
793
  return {
@@ -1048,7 +803,7 @@ export const IconState: StoryObj = {
1048
803
  template: `
1049
804
  <ColorDisplay
1050
805
  displayEmptyColors
1051
- colorCategory="icons"
806
+ colorCategory="feedback"
1052
807
  :cnamColors="cnamColors"
1053
808
  :paColors="paColors"
1054
809
  :apColors="apColors"
@@ -1062,608 +817,16 @@ export const IconState: StoryObj = {
1062
817
  },
1063
818
  tags: ['!dev'],
1064
819
  }
1065
- export const IconSection = {
820
+
821
+ export const FeedbackSection = {
1066
822
  render() {
1067
- return h(createSection('Icons', [
1068
- IconBase,
1069
- IconPrimary,
1070
- IconSecondary,
1071
- IconState,
823
+ return h(createSection('Feedback', [
824
+ Feedback,
825
+ OnFeedback,
1072
826
  ], 'ap2026'))
1073
827
  },
1074
828
  }
1075
829
 
1076
- export const MainBackgrounds: StoryObj = {
1077
- render: () => {
1078
- return {
1079
- components: { ColorDisplay },
1080
- setup() {
1081
- const colorTitle = 'Main'
1082
- const colorDescription = 'Ce sont les couleurs à utiliser pour le background principal de la plateforme.'
1083
- const colorTitleLevel = 3
1084
- const cnamColors = {
1085
- 'background-main': cnamLightTheme.backgroundMain,
1086
- 'background-main-alt': cnamLightTheme.backgroundMainAlt,
1087
- 'background-main-ter': cnamLightTheme.backgroundMainTer,
1088
- }
1089
- const paColors = {
1090
- 'background-main': paLightTheme.backgroundMain,
1091
- 'background-surface': paLightTheme.backgroundSurface,
1092
- 'background-surface-alt': paLightTheme.backgroundSurfaceAlt,
1093
- }
1094
- const apColors = {
1095
- 'background-main': apLightTheme.backgroundMain,
1096
- 'background-surface': apLightTheme.backgroundSurface,
1097
- 'background-surface-alt': apLightTheme.backgroundSurfaceAlt,
1098
- }
1099
- const apColors2026 = { 'ap-grey-lighten-6': apColorsTokens2026.apGrey.lighten6 }
1100
- return {
1101
- cnamColors,
1102
- paColors,
1103
- apColors,
1104
- apColors2026,
1105
- colorTitle,
1106
- colorDescription,
1107
- colorTitleLevel,
1108
- }
1109
- },
1110
- template: `
1111
- <ColorDisplay
1112
- displayEmptyColors
1113
- colorCategory="mainBackgrounds"
1114
- :cnamColors="cnamColors"
1115
- :paColors="paColors"
1116
- :apColors="apColors"
1117
- :apColors2026="apColors2026"
1118
- :colorTitle="colorTitle"
1119
- :colorDescription="colorDescription"
1120
- :colorTitleLevel="colorTitleLevel"
1121
- />
1122
- `,
1123
- }
1124
- },
1125
- tags: ['!dev'],
1126
- }
1127
-
1128
- export const SurfaceBackgrounds: StoryObj = {
1129
- render: () => {
1130
- return {
1131
- components: { ColorDisplay },
1132
- setup() {
1133
- const colorTitle = 'Surface'
1134
- const colorDescription = 'Ce sont les couleurs à utiliser sur les containers présents en surperposition du background principal. Le principe étant d’utiliser la variante “surface” au dessus du “main” et les “alt” au dessus des “alt”.'
1135
- const colorTitleLevel = 3
1136
- const cnamColors = {
1137
- 'background-surface': cnamLightTheme.backgroundSurface,
1138
- 'background-surface-alt': cnamLightTheme.backgroundSurfaceAlt,
1139
- }
1140
- const paColors = {
1141
- 'background-surface': paLightTheme.backgroundSurface,
1142
- 'background-surface-alt': paLightTheme.backgroundSurfaceAlt,
1143
- }
1144
- const apColors = {
1145
- 'background-surface': apLightTheme.backgroundSurface,
1146
- 'background-surface-alt': apLightTheme.backgroundSurfaceAlt,
1147
- }
1148
- const apColors2026 = {}
1149
- return {
1150
- cnamColors,
1151
- paColors,
1152
- apColors,
1153
- apColors2026,
1154
- colorTitle,
1155
- colorDescription,
1156
- colorTitleLevel,
1157
- }
1158
- },
1159
- template: `
1160
- <ColorDisplay
1161
- displayEmptyColors
1162
- colorCategory="alternativeBackgrounds"
1163
- :cnamColors="cnamColors"
1164
- :paColors="paColors"
1165
- :apColors="apColors"
1166
- :apColors2026="apColors2026"
1167
- :colorTitle="colorTitle"
1168
- :colorDescription="colorDescription"
1169
- :colorTitleLevel="colorTitleLevel"
1170
- />
1171
- `,
1172
- }
1173
- },
1174
- tags: ['!dev'],
1175
- }
1176
-
1177
- export const AlternativeBackgrounds: StoryObj = {
1178
- render: () => {
1179
- return {
1180
- components: { ColorDisplay },
1181
- setup() {
1182
- const colorTitle = 'Alternative'
1183
- const colorDescription = ''
1184
- const colorTitleLevel = 3
1185
- const cnamColors = {}
1186
- const paColors = {}
1187
- const apColors = {}
1188
- const apColors2026 = { 'ap-blue-lighten-3': apColorsTokens2026.apBlue.lighten3 }
1189
- return {
1190
- cnamColors,
1191
- paColors,
1192
- apColors,
1193
- apColors2026,
1194
- colorTitle,
1195
- colorDescription,
1196
- colorTitleLevel,
1197
- }
1198
- },
1199
- template: `
1200
- <ColorDisplay
1201
- displayEmptyColors
1202
- colorCategory="alternativeBackgrounds"
1203
- :cnamColors="cnamColors"
1204
- :paColors="paColors"
1205
- :apColors="apColors"
1206
- :apColors2026="apColors2026"
1207
- :colorTitle="colorTitle"
1208
- :colorDescription="colorDescription"
1209
- :colorTitleLevel="colorTitleLevel"
1210
- />
1211
- `,
1212
- }
1213
- },
1214
- tags: ['!dev'],
1215
- }
1216
-
1217
- export const RaisedBackgrounds: StoryObj = {
1218
- render: () => {
1219
- return {
1220
- components: { ColorDisplay },
1221
- setup() {
1222
- const colorTitle = 'Raised'
1223
- const colorDescription = 'Elle s’utilise sur les éléments ayant besoin d’une légère mise en exergue.'
1224
- const colorTitleLevel = 3
1225
- const cnamColors = {
1226
- 'background-raised': cnamLightTheme.backgroundRaised,
1227
- }
1228
- const paColors = {
1229
- 'background-raised': paLightTheme.backgroundRaised,
1230
- }
1231
- const apColors = {
1232
- 'background-raised': apLightTheme.backgroundRaised,
1233
- }
1234
- const apColors2026 = {}
1235
- return {
1236
- cnamColors,
1237
- paColors,
1238
- apColors,
1239
- apColors2026,
1240
- colorTitle,
1241
- colorDescription,
1242
- colorTitleLevel,
1243
- }
1244
- },
1245
- template: `
1246
- <ColorDisplay
1247
- displayEmptyColors
1248
- colorCategory="alternativeBackgrounds"
1249
- :cnamColors="cnamColors"
1250
- :paColors="paColors"
1251
- :apColors="apColors"
1252
- :apColors2026="apColors2026"
1253
- :colorTitle="colorTitle"
1254
- :colorDescription="colorDescription"
1255
- :colorTitleLevel="colorTitleLevel"
1256
- />
1257
- `,
1258
- }
1259
- },
1260
- tags: ['!dev'],
1261
- }
1262
-
1263
- export const DisabledBackgrounds: StoryObj = {
1264
- render: () => {
1265
- return {
1266
- components: { ColorDisplay },
1267
- setup() {
1268
- const colorTitle = 'Disabled'
1269
- const colorDescription = 'Elle s’utilise sur les background des éléments désactivés.'
1270
- const colorTitleLevel = 3
1271
- const cnamColors = {
1272
- 'background-disabled': cnamLightTheme.backgroundDisabled,
1273
- 'background-disabled-on-dark': cnamLightTheme.backgroundDisabledOnDark,
1274
- }
1275
- const paColors = {
1276
- 'background-disabled': paLightTheme.backgroundDisabled,
1277
- 'background-disabled-on-dark': paLightTheme.backgroundDisabledOnDark,
1278
- }
1279
- const apColors = {
1280
- 'background-disabled': apLightTheme.backgroundDisabled,
1281
- 'background-disabled-on-dark': apLightTheme.backgroundDisabledOnDark,
1282
- }
1283
- const apColors2026 = {}
1284
- return {
1285
- cnamColors,
1286
- paColors,
1287
- apColors,
1288
- apColors2026,
1289
- colorTitle,
1290
- colorDescription,
1291
- colorTitleLevel,
1292
- }
1293
- },
1294
- template: `
1295
- <ColorDisplay
1296
- displayEmptyColors
1297
- colorCategory="alternativeBackgrounds"
1298
- :cnamColors="cnamColors"
1299
- :paColors="paColors"
1300
- :apColors="apColors"
1301
- :apColors2026="apColors2026"
1302
- :colorTitle="colorTitle"
1303
- :colorDescription="colorDescription"
1304
- :colorTitleLevel="colorTitleLevel"
1305
- />
1306
- `,
1307
- }
1308
- },
1309
- tags: ['!dev'],
1310
- }
1311
-
1312
- export const InformationalBackgrounds: StoryObj = {
1313
- render: () => {
1314
- return {
1315
- components: { ColorDisplay },
1316
- setup() {
1317
- const colorTitle = 'Informational'
1318
- const colorTitleLevel = 3
1319
- const cnamColors = {
1320
- 'background-info': cnamLightTheme.backgroundInfo,
1321
- 'background-info-subdued': cnamLightTheme.backgroundInfoSubdued,
1322
- 'background-info-contrasted': cnamLightTheme.backgroundInfoContrasted,
1323
- }
1324
- const paColors = {
1325
- 'background-info': paLightTheme.backgroundInfo,
1326
- 'background-info-subdued': paLightTheme.backgroundInfoSubdued,
1327
- 'background-info-contrasted': paLightTheme.backgroundInfoContrasted,
1328
- }
1329
- const apColors = {
1330
- 'background-info': apLightTheme.backgroundInfo,
1331
- 'background-info-subdued': apLightTheme.backgroundInfoSubdued,
1332
- 'background-info-contrasted': apLightTheme.backgroundInfoContrasted,
1333
- }
1334
- const apColors2026 = {}
1335
- return {
1336
- cnamColors,
1337
- paColors,
1338
- apColors,
1339
- apColors2026,
1340
- colorTitle,
1341
- colorTitleLevel,
1342
- }
1343
- },
1344
- template: `
1345
- <ColorDisplay
1346
- displayEmptyColors
1347
- colorCategory="informationalBackgrounds"
1348
- :cnamColors="cnamColors"
1349
- :paColors="paColors"
1350
- :apColors="apColors"
1351
- :apColors2026="apColors2026"
1352
- :colorTitle="colorTitle"
1353
- :colorTitleLevel="colorTitleLevel"
1354
- />
1355
- `,
1356
- }
1357
- },
1358
- tags: ['!dev'],
1359
- }
1360
-
1361
- export const SuccessBackgrounds: StoryObj = {
1362
- render: () => {
1363
- return {
1364
- components: { ColorDisplay },
1365
- setup() {
1366
- const colorTitle = 'Success'
1367
- const colorTitleLevel = 3
1368
- const cnamColors = {
1369
- 'background-success': cnamLightTheme.backgroundSuccess,
1370
- 'background-success-subdued': cnamLightTheme.backgroundSuccessSubdued,
1371
- 'background-success-contrasted': cnamLightTheme.backgroundSuccessContrasted,
1372
- }
1373
- const paColors = {
1374
- 'background-success': paLightTheme.backgroundSuccess,
1375
- 'background-success-subdued': paLightTheme.backgroundSuccessSubdued,
1376
- 'background-success-contrasted': paLightTheme.backgroundSuccessContrasted,
1377
- }
1378
- const apColors = {
1379
- 'background-success': apLightTheme.backgroundSuccess,
1380
- 'background-success-subdued': apLightTheme.backgroundSuccessSubdued,
1381
- 'background-success-contrasted': apLightTheme.backgroundSuccessContrasted,
1382
- }
1383
- const apColors2026 = {}
1384
- return {
1385
- cnamColors,
1386
- paColors,
1387
- apColors,
1388
- apColors2026,
1389
- colorTitle,
1390
- colorTitleLevel,
1391
- }
1392
- },
1393
- template: `
1394
- <ColorDisplay
1395
- displayEmptyColors
1396
- colorCategory="successBackgrounds"
1397
- :cnamColors="cnamColors"
1398
- :paColors="paColors"
1399
- :apColors="apColors"
1400
- :apColors2026="apColors2026"
1401
- :colorTitle="colorTitle"
1402
- :colorTitleLevel="colorTitleLevel"
1403
- />
1404
- `,
1405
- }
1406
- },
1407
- tags: ['!dev'],
1408
- }
1409
-
1410
- export const WarningBackgrounds: StoryObj = {
1411
- render: () => {
1412
- return {
1413
- components: { ColorDisplay },
1414
- setup() {
1415
- const colorTitle = 'Warning'
1416
- const colorTitleLevel = 3
1417
- const cnamColors = {
1418
- 'background-warning': cnamLightTheme.backgroundWarning,
1419
- 'background-warning-subdued': cnamLightTheme.backgroundWarningSubdued,
1420
- 'background-warning-contrasted': cnamLightTheme.backgroundWarningContrasted,
1421
- }
1422
- const paColors = {
1423
- 'background-warning': paLightTheme.backgroundWarning,
1424
- 'background-warning-subdued': paLightTheme.backgroundWarningSubdued,
1425
- 'background-warning-contrasted': paLightTheme.backgroundWarningContrasted,
1426
- }
1427
- const apColors = {
1428
- 'background-warning': apLightTheme.backgroundWarning,
1429
- 'background-warning-subdued': apLightTheme.backgroundWarningSubdued,
1430
- 'background-warning-contrasted': apLightTheme.backgroundWarningContrasted,
1431
- }
1432
- const apColors2026 = {}
1433
- return {
1434
- cnamColors,
1435
- paColors,
1436
- apColors,
1437
- apColors2026,
1438
- colorTitle,
1439
- colorTitleLevel,
1440
- }
1441
- },
1442
- template: `
1443
- <ColorDisplay
1444
- displayEmptyColors
1445
- colorCategory="warningBackgrounds"
1446
- :cnamColors="cnamColors"
1447
- :paColors="paColors"
1448
- :apColors="apColors"
1449
- :apColors2026="apColors2026"
1450
- :colorTitle="colorTitle"
1451
- :colorTitleLevel="colorTitleLevel"
1452
- />
1453
- `,
1454
- }
1455
- },
1456
- tags: ['!dev'],
1457
- }
1458
-
1459
- export const ErrorBackgrounds: StoryObj = {
1460
- render: () => {
1461
- return {
1462
- components: { ColorDisplay },
1463
- setup() {
1464
- const colorTitle = 'Error'
1465
- const colorTitleLevel = 3
1466
- const cnamColors = {
1467
- 'background-error': cnamLightTheme.backgroundError,
1468
- 'background-error-subdued': cnamLightTheme.backgroundErrorSubdued,
1469
- 'background-error-contrasted': cnamLightTheme.backgroundErrorContrasted,
1470
- }
1471
- const paColors = {
1472
- 'background-error': paLightTheme.backgroundError,
1473
- 'background-error-subdued': paLightTheme.backgroundErrorSubdued,
1474
- 'background-error-contrasted': paLightTheme.backgroundErrorContrasted,
1475
- }
1476
- const apColors = {
1477
- 'background-error': apLightTheme.backgroundError,
1478
- 'background-error-subdued': apLightTheme.backgroundErrorSubdued,
1479
- 'background-error-contrasted': apLightTheme.backgroundErrorContrasted,
1480
- }
1481
- const apColors2026 = {}
1482
- return {
1483
- cnamColors,
1484
- paColors,
1485
- apColors,
1486
- apColors2026,
1487
- colorTitle,
1488
- colorTitleLevel,
1489
- }
1490
- },
1491
- template: `
1492
- <ColorDisplay
1493
- displayEmptyColors
1494
- colorCategory="errorBackgrounds"
1495
- :cnamColors="cnamColors"
1496
- :paColors="paColors"
1497
- :apColors="apColors"
1498
- :apColors2026="apColors2026"
1499
- :colorTitle="colorTitle"
1500
- :colorTitleLevel="colorTitleLevel"
1501
- />
1502
- `,
1503
- }
1504
- },
1505
- tags: ['!dev'],
1506
- }
1507
-
1508
- export const OtherBackgrounds: StoryObj = {
1509
- render: () => {
1510
- return {
1511
- components: { ColorDisplay },
1512
- setup() {
1513
- const colorTitle = 'Other'
1514
- const colorTitleLevel = 3
1515
- const cnamColors = {
1516
- 'background-assure': cnamLightTheme.backgroundAssure,
1517
- 'background-professionnel': cnamLightTheme.backgroundProfessionnel,
1518
- 'background-entreprise': cnamLightTheme.backgroundEntreprise,
1519
- }
1520
- const paColors = {
1521
- 'background-assure': paLightTheme.backgroundAssure,
1522
- 'background-professionnel': paLightTheme.backgroundProfessionnel,
1523
- 'background-entreprise': paLightTheme.backgroundEntreprise,
1524
- }
1525
- const apColors = {
1526
- 'background-assure': apLightTheme.backgroundAssure,
1527
- 'background-professionnel': apLightTheme.backgroundProfessionnel,
1528
- 'background-entreprise': apLightTheme.backgroundEntreprise,
1529
- }
1530
- const apColors2026 = {}
1531
- return {
1532
- cnamColors,
1533
- paColors,
1534
- apColors,
1535
- apColors2026,
1536
- colorTitle,
1537
- colorTitleLevel,
1538
- }
1539
- },
1540
- template: `
1541
- <ColorDisplay
1542
- displayEmptyColors
1543
- colorCategory="otherBackgrounds"
1544
- :cnamColors="cnamColors"
1545
- :paColors="paColors"
1546
- :apColors="apColors"
1547
- :apColors2026="apColors2026"
1548
- :colorTitle="colorTitle"
1549
- :colorTitleLevel="colorTitleLevel"
1550
- />
1551
- `,
1552
- }
1553
- },
1554
- tags: ['!dev'],
1555
- }
1556
-
1557
- export const StatusBackgrounds: StoryObj = {
1558
- render: () => {
1559
- return {
1560
- components: { ColorDisplay },
1561
- setup() {
1562
- const colorTitle = 'Fonds pour les statuts'
1563
- const colorTitleLevel = 3
1564
- const displayEmptyColors = false
1565
- const cnamColors = {}
1566
- const paColors = {}
1567
- const apColors = {}
1568
- const apColors2026 = {
1569
- 'ap-blue-lighten-2': apColorsTokens2026.apBlue.lighten2,
1570
- 'ap-parme': apColorsTokens2026.apParme.base,
1571
- 'ap-yellow-lighten-3': apColorsTokens2026.apYellow.lighten3,
1572
- 'ap-red-lighten-2': apColorsTokens2026.apRed.lighten2,
1573
- 'ap-red-lighten-3': apColorsTokens2026.apRed.lighten3,
1574
- 'ap-green-lighten-2': apColorsTokens2026.apGreen.lighten2,
1575
- 'ap-grey-lighten-2': apColorsTokens2026.apGrey.lighten2,
1576
- }
1577
- return {
1578
- displayEmptyColors,
1579
- cnamColors,
1580
- paColors,
1581
- apColors,
1582
- apColors2026,
1583
- colorTitle,
1584
- colorTitleLevel,
1585
- }
1586
- },
1587
- template: `
1588
- <ColorDisplay
1589
- colorCategory="base"
1590
- :cnamColors="cnamColors"
1591
- :paColors="paColors"
1592
- :apColors="apColors"
1593
- :apColors2026="apColors2026"
1594
- :colorTitle="colorTitle"
1595
- :colorTitleLevel="colorTitleLevel"
1596
- :displayEmptyColors="displayEmptyColors"
1597
- />
1598
- `,
1599
- }
1600
- },
1601
- tags: ['!dev'],
1602
- }
1603
-
1604
- export const MessagesBackgrounds: StoryObj = {
1605
- render: () => {
1606
- return {
1607
- components: { ColorDisplay },
1608
- setup() {
1609
- const colorTitle = 'Fonds pour les messages'
1610
- const colorTitleLevel = 3
1611
- const displayEmptyColors = false
1612
- const cnamColors = {}
1613
- const paColors = {}
1614
- const apColors = {}
1615
- const apColors2026 = {
1616
- 'ap-red': apColorsTokens2026.apRed.base,
1617
- 'ap-turquoise-darken-1': apColorsTokens2026.apTurquoise.darken1,
1618
- 'ap-yellow': apColorsTokens2026.apYellow.base,
1619
- 'ap-parme-darken-1': apColorsTokens2026.apParme.darken1,
1620
- }
1621
- return {
1622
- displayEmptyColors,
1623
- cnamColors,
1624
- paColors,
1625
- apColors,
1626
- apColors2026,
1627
- colorTitle,
1628
- colorTitleLevel,
1629
- }
1630
- },
1631
- template: `
1632
- <ColorDisplay
1633
- colorCategory="base"
1634
- :cnamColors="cnamColors"
1635
- :paColors="paColors"
1636
- :apColors="apColors"
1637
- :apColors2026="apColors2026"
1638
- :colorTitle="colorTitle"
1639
- :colorTitleLevel="colorTitleLevel"
1640
- :displayEmptyColors="displayEmptyColors"
1641
- />
1642
- `,
1643
- }
1644
- },
1645
- tags: ['!dev'],
1646
- }
1647
-
1648
- export const BackgroundSection = {
1649
- render() {
1650
- return h(createSection('Background', [
1651
- MainBackgrounds,
1652
- SurfaceBackgrounds,
1653
- AlternativeBackgrounds,
1654
- RaisedBackgrounds,
1655
- DisabledBackgrounds,
1656
- InformationalBackgrounds,
1657
- SuccessBackgrounds,
1658
- WarningBackgrounds,
1659
- ErrorBackgrounds,
1660
- OtherBackgrounds,
1661
- StatusBackgrounds,
1662
- MessagesBackgrounds,
1663
- ]))
1664
- },
1665
- }
1666
-
1667
830
  export const PaletteOrange: StoryObj = {
1668
831
  render: () => {
1669
832
  return {