@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.
- package/dist/{AutocompleteFilter-D7qBuCAP.js → AutocompleteFilter-C9eLKyW8.js} +3 -3
- package/dist/{DateFilter-BitMWrMU.js → DateFilter-y-GLkAkn.js} +9 -9
- package/dist/{NumberFilter-BTLUxw0a.js → NumberFilter-DN6hIBS7.js} +1 -1
- package/dist/{PeriodFilter-B5rUIPAC.js → PeriodFilter-MoUUp9qS.js} +1 -1
- package/dist/{SelectFilter-l4QnRcuk.js → SelectFilter-bCbrdLmu.js} +1 -1
- package/dist/{TextFilter-C9hj6Qrp.js → TextFilter-CvjgEaoM.js} +4 -4
- package/dist/apLightTheme2026-ug4Y23ns.js +611 -0
- package/dist/components/Customs/Selects/SyAutocomplete/SyAutocomplete.d.ts +2369 -351
- package/dist/components/Customs/Selects/SyAutocomplete/composables/useSyAutocompleteValidation.d.ts +18 -0
- package/dist/components/Customs/Selects/SyAutocomplete/utils/ariaManager.d.ts +1 -1
- package/dist/components/Customs/Selects/SyAutocomplete/utils/useKeyboardHandler.d.ts +3 -1
- package/dist/components/Customs/Selects/SySelect/SySelect.d.ts +58 -288
- package/dist/components/Customs/Selects/SySelect/composables/useSySelectKeyboard.d.ts +1 -0
- package/dist/components/Customs/Selects/SySelect/composables/useSySelectValidation.d.ts +15 -0
- package/dist/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.d.ts +4 -3
- package/dist/components/Customs/SyCheckbox/SyCheckbox.d.ts +4 -3
- package/dist/components/Customs/SyIconButton/SyIconButton.d.ts +18 -0
- package/dist/components/Customs/SyRadioGroup/SyRadioGroup.d.ts +20 -37
- package/dist/components/Customs/SyRadioGroup/composables/useSyRadioGroupValidation.d.ts +50 -0
- package/dist/components/Customs/SyTextField/SyTextField.d.ts +8 -10
- package/dist/components/DatePicker/CalendarMode/DatePicker.d.ts +197 -185
- package/dist/components/DatePicker/ComplexDatePicker/ComplexDatePicker.d.ts +91 -82
- package/dist/components/DatePicker/DateTextInput/DateTextInput.d.ts +35 -32
- package/dist/components/DatePicker/composables/index.d.ts +1 -0
- package/dist/components/DatePicker/composables/useDatePickerState.d.ts +3 -3
- package/dist/components/DatePicker/composables/useDatePickerValidationBridge.d.ts +51 -0
- package/dist/components/DatePicker/composables/useDateTextField.d.ts +2 -2
- package/dist/components/DatePicker/composables/useInputBlurHandler.d.ts +2 -2
- package/dist/components/DatePicker/types.d.ts +1 -2
- package/dist/components/LunarCalendar/useLunarCalendarValidation.d.ts +1 -0
- package/dist/components/MonthPicker/MonthPicker.d.ts +24 -24
- package/dist/components/MonthPicker/MonthPickerText/MonthPickerInput.d.ts +24 -24
- package/dist/components/NirField/NirField.d.ts +64 -60
- package/dist/components/NirField/useNirValidation.d.ts +6 -2
- package/dist/components/PasswordField/PasswordField.d.ts +3 -3
- package/dist/components/PeriodField/PeriodField.d.ts +338 -314
- package/dist/components/PhoneField/PhoneField.d.ts +34 -24
- package/dist/components/RangeField/RangeSlider/RangeSlider.d.ts +0 -3
- package/dist/components/RatingPicker/EmotionPicker/EmotionPicker.d.ts +3 -1
- package/dist/components/RatingPicker/NumberPicker/NumberPicker.d.ts +4 -3
- package/dist/components/RatingPicker/RatingPicker.d.ts +18 -5
- package/dist/components/RatingPicker/StarsPicker/StarsPicker.d.ts +3 -1
- package/dist/components/RatingPicker/useRatingFocus.d.ts +18 -0
- package/dist/components/SyTextArea/SyTextArea.d.ts +25 -15
- package/dist/components/SyTextArea/composables/useSyTextAreaValidation.d.ts +20 -0
- package/dist/components/SyTextArea/locales.d.ts +1 -0
- package/dist/components/Tables/SyServerTable/SyServerTable.d.ts +5 -4
- package/dist/components/Tables/SyTable/SyTable.d.ts +5 -4
- package/dist/components/Tables/common/SyTablePagination.d.ts +152 -364
- package/dist/components/Tables/common/TableHeader.d.ts +1 -1
- package/dist/components/Tables/common/filters/DateFilter.d.ts +4 -4
- package/dist/components/Tables/common/types.d.ts +2 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/composables/date/useDateInitializationDayjs.d.ts +3 -1
- package/dist/composables/unifyValidation/documentationValidationProps.d.ts +160 -160
- package/dist/composables/unifyValidation/useCustomValidation.d.ts +3 -1
- package/dist/composables/unifyValidation/useValidation.d.ts +27 -19
- package/dist/composables/unifyValidation/useVuetifyValidation.d.ts +1 -1
- package/dist/composables/validation/useValidation.d.ts +1 -0
- package/dist/design-system-v3.js +81 -80
- package/dist/designTokens/tokens/amelipro/apContextual.d.ts +6 -6
- package/dist/designTokens/tokens/amelipro/apDarkTheme.d.ts +3 -1
- package/dist/designTokens/tokens/amelipro/apLightTheme.d.ts +53 -98
- package/dist/designTokens/tokens/baseContextualTokens.d.ts +0 -6
- package/dist/designTokens/tokens/baseTokens.d.ts +232 -0
- package/dist/designTokens/tokens/cnam/cnamContextual.d.ts +6 -6
- package/dist/designTokens/tokens/cnam/cnamDarkTheme.d.ts +1 -1
- package/dist/designTokens/tokens/cnam/cnamLightTheme.d.ts +57 -99
- package/dist/designTokens/tokens/pa/paContextual.d.ts +0 -6
- package/dist/designTokens/tokens/pa/paDarkTheme.d.ts +1 -1
- package/dist/designTokens/tokens/pa/paLightTheme.d.ts +53 -97
- package/dist/designTokens/tokens/pa/paSemantic.d.ts +1 -0
- package/dist/designTokens/tokens/semanticTokens.d.ts +112 -0
- package/dist/{main-Cpx8Co6H.js → main-CI6Q9nmO.js} +13843 -13478
- package/dist/synapse.css +1 -1
- package/dist/vuetifyConfig.js +208 -72
- package/package.json +10 -7
- package/src/assets/overrides/_icons.scss +5 -17
- package/src/assets/overrides/_otp.scss +4 -5
- package/src/assets/overrides/_typography.scss +2 -1
- package/src/assets/overrides/_utilities.scss +1 -42
- package/src/components/Accordion/Accordion.vue +2 -0
- package/src/components/ChipList/ChipList.vue +30 -18
- package/src/components/ChipList/tests/chipList.spec.ts +4 -4
- package/src/components/CookiesSelection/CookiesInformation/CookiesInformation.vue +2 -1
- package/src/components/CookiesSelection/CookiesSelection.vue +2 -1
- package/src/components/CopyBtn/CopyBtn.vue +9 -0
- package/src/components/Customs/Selects/SelectBtnField/SelectBtnField.stories.ts +4 -0
- package/src/components/Customs/Selects/SelectBtnField/SelectBtnField.vue +7 -6
- package/src/components/Customs/Selects/SelectBtnField/tests/SelectBtnField.spec.ts +223 -0
- package/src/components/Customs/Selects/SyAutocomplete/SyAutocomplete.stories.ts +283 -351
- package/src/components/Customs/Selects/SyAutocomplete/SyAutocomplete.vue +183 -219
- package/src/components/Customs/Selects/SyAutocomplete/composables/useSyAutocompleteValidation.ts +101 -0
- package/src/components/Customs/Selects/SyAutocomplete/tests/SyAutocomplete.spec.ts +761 -1
- package/src/components/Customs/Selects/SyAutocomplete/utils/ariaManager.ts +3 -1
- package/src/components/Customs/Selects/SyAutocomplete/utils/useKeyboardHandler.ts +79 -5
- package/src/components/Customs/Selects/SyAutocomplete/validation/Validation.stories.ts +1029 -0
- package/src/components/Customs/Selects/SySelect/SySelect.stories.ts +52 -217
- package/src/components/Customs/Selects/SySelect/SySelect.vue +248 -236
- package/src/components/Customs/Selects/SySelect/composables/useSySelectKeyboard.ts +3 -0
- package/src/components/Customs/Selects/SySelect/composables/useSySelectValidation.ts +64 -0
- package/src/components/Customs/Selects/SySelect/tests/SySelect.spec.ts +440 -5
- package/src/components/Customs/Selects/SySelect/validation/Validation.stories.ts +1026 -0
- package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.stories.ts +18 -7
- package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.vue +5 -5
- package/src/components/Customs/SyCheckbox/SyCheckbox.stories.ts +8 -8
- package/src/components/Customs/SyCheckbox/SyCheckbox.vue +27 -6
- package/src/components/Customs/SyCheckbox/tests/SyCheckbox.spec.ts +1 -1
- package/src/components/Customs/SyIcon/accessibilite/Accessibility.mdx +0 -6
- package/src/components/Customs/SyIcon/utils/tests/iconUtils.spec.ts +107 -0
- package/src/components/Customs/SyRadioGroup/SyRadioGroup.mdx +2 -2
- package/src/components/Customs/SyRadioGroup/SyRadioGroup.stories.ts +395 -200
- package/src/components/Customs/SyRadioGroup/SyRadioGroup.vue +100 -127
- package/src/components/Customs/SyRadioGroup/composables/useSyRadioGroupValidation.ts +127 -0
- package/src/components/Customs/SyRadioGroup/tests/SyRadioGroup.a11y.spec.ts +93 -1
- package/src/components/Customs/SyRadioGroup/tests/SyRadioGroup.spec.ts +146 -9
- package/src/components/Customs/SyRadioGroup/tests/SyRadioGroup.visual.cy.ts +165 -0
- package/src/components/Customs/SyRadioGroup/validation/Validation.stories.ts +773 -0
- package/src/components/Customs/SyTabs/SyTabs.stories.ts +5 -5
- package/src/components/Customs/SyTabs/config.ts +3 -3
- package/src/components/Customs/SyTabs/tests/SyTabs.spec.ts +265 -0
- package/src/components/Customs/SyTabs/tests/useTabTransition.spec.ts +188 -0
- package/src/components/Customs/SyTextField/SyTextField.stories.ts +10 -29
- package/src/components/Customs/SyTextField/SyTextField.vue +52 -17
- package/src/components/DataList/DataList.stories.ts +1 -1
- package/src/components/DataListItem/tests/DataListItem.spec.ts +3 -1
- package/src/components/DatePicker/CalendarMode/DatePicker.stories.ts +1 -1
- package/src/components/DatePicker/CalendarMode/DatePicker.vue +52 -154
- package/src/components/DatePicker/CalendarMode/tests/DatePicker.coverage.spec.ts +156 -0
- package/src/components/DatePicker/CalendarMode/tests/DatePicker.spec.ts +495 -4
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.stories.ts +1 -1
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.vue +55 -73
- package/src/components/DatePicker/ComplexDatePicker/tests/ComplexDatePicker.spec.ts +207 -1
- package/src/components/DatePicker/ComplexDatePicker/tests/bridge-integration.regression.spec.ts +210 -0
- package/src/components/DatePicker/ComplexDatePicker/tests/calendar-navigation.regression.spec.ts +214 -0
- package/src/components/DatePicker/ComplexDatePicker/tests/validation-cross.regression.spec.ts +194 -0
- package/src/components/DatePicker/ComplexDatePicker/tests/validation-success-messages.regression.spec.ts +83 -0
- package/src/components/DatePicker/DatePickerValidationExample/DatePickerValidation.stories.ts +1 -1
- package/src/components/DatePicker/DateTextInput/DateTextInput.vue +169 -60
- package/src/components/DatePicker/DateTextInput/NoCalendar.stories.ts +1 -1
- package/src/components/DatePicker/DateTextInput/tests/DateTextInput.spec.ts +320 -0
- package/src/components/DatePicker/composables/index.ts +1 -0
- package/src/components/DatePicker/composables/tests/useCalendarKeyboardNavigation.spec.ts +360 -0
- package/src/components/DatePicker/composables/tests/useDatePickerValidationBridge.spec.ts +129 -0
- package/src/components/DatePicker/composables/useDatePickerState.ts +33 -14
- package/src/components/DatePicker/composables/useDatePickerValidationBridge.ts +205 -0
- package/src/components/DatePicker/composables/useDateRangeInput.ts +2 -1
- package/src/components/DatePicker/composables/useDateSelection.ts +2 -1
- package/src/components/DatePicker/composables/useDateTextField.ts +2 -2
- package/src/components/DatePicker/composables/useInputBlurHandler.ts +2 -2
- package/src/components/DatePicker/docExamples/BidirectionalComplexValidation.vue +1 -1
- package/src/components/DatePicker/docExamples/DatePickerBidirectionalValidation.vue +1 -1
- package/src/components/DatePicker/tests/exposed-methods.coverage.spec.ts +75 -0
- package/src/components/DatePicker/types.ts +1 -2
- package/src/components/DialogBox/DialogBox.stories.ts +8 -8
- package/src/components/DialogBox/DialogBox.vue +1 -1
- package/src/components/DialogBox/accessibilite/Accessibility.mdx +86 -22
- package/src/components/FileList/UploadItem/UploadItem.vue +4 -4
- package/src/components/FileUpload/FileUpload.vue +2 -2
- package/src/components/FileUpload/FileUploadContent.vue +1 -1
- package/src/components/FilterInline/FilterInline.mdx +2 -2
- package/src/components/FilterSideBar/FilterSideBar.stories.ts +1 -1
- package/src/components/FilterSideBar/FilterSideBar.vue +4 -3
- package/src/components/FooterBar/FooterBar.vue +7 -7
- package/src/components/FranceConnectBtn/FranceConnectBtn.vue +1 -1
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuItem/HeaderMenuItem.vue +2 -2
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderSubMenu/HeaderSubMenu.vue +7 -7
- package/src/components/HeaderBar/HeaderMenuBtn/HeaderMenuBtn.vue +2 -2
- package/src/components/HeaderLoading/tests/HeaderLoading.spec.ts +87 -8
- package/src/components/HeaderNavigationBar/HorizontalNavbar/HorizontalNavbar.vue +3 -3
- package/src/components/HeaderNavigationBar/HorizontalNavbar/tests/HorizontalNavbar.spec.ts +589 -0
- package/src/components/HeaderToolbar/tests/HeaderToolBar.spec.ts +153 -1
- package/src/components/HeaderToolbar/tests/useMobileRightMenu.spec.ts +258 -0
- package/src/components/LangBtn/LangBtn.vue +2 -1
- package/src/components/LogoBrandSection/tests/LogoBrandSection.spec.ts +2 -2
- package/src/components/LogoBrandSection/tests/__snapshots__/LogoBrandSection.spec.ts.snap +1 -1
- package/src/components/LunarCalendar/tests/useLunarCalendarRules.spec.ts +184 -0
- package/src/components/MonthPicker/MonthPickerVisual/MonthSelector.vue +3 -3
- package/src/components/MonthPicker/MonthPickerVisual/VisualPickerFooter.vue +1 -1
- package/src/components/MonthPicker/MonthPickerVisual/VisualPickerHeader.vue +2 -2
- package/src/components/MonthPicker/MonthPickerVisual/YearSelector.vue +1 -1
- package/src/components/NirField/NirField.vue +3 -3
- package/src/components/NotificationBar/Notification/Notification.vue +12 -12
- package/src/components/NotificationBar/NotificationBar.stories.ts +8 -8
- package/src/components/PaginatedTable/PaginatedTable.vue +1 -1
- package/src/components/PaginatedTable/Pagination.vue +3 -3
- package/src/components/PasswordField/PasswordField.vue +15 -11
- package/src/components/PasswordField/tests/PasswordField.spec.ts +3 -3
- package/src/components/PhoneField/PhoneField.vue +4 -2
- package/src/components/RangeField/RangeSlider/RangeSlider.vue +11 -18
- package/src/components/RangeField/RangeSlider/Tooltip/Tooltip.vue +1 -1
- package/src/components/RatingPicker/EmotionPicker/EmotionPicker.vue +32 -48
- package/src/components/RatingPicker/EmotionPicker/tests/__snapshots__/EmotionPicker.spec.ts.snap +5 -0
- package/src/components/RatingPicker/NumberPicker/NumberPicker.vue +48 -53
- package/src/components/RatingPicker/NumberPicker/tests/NumberPicker.spec.ts +2 -1
- package/src/components/RatingPicker/NumberPicker/tests/__snapshots__/NumberPicker.spec.ts.snap +40 -13
- package/src/components/RatingPicker/RatingPicker.stories.ts +65 -88
- package/src/components/RatingPicker/RatingPicker.vue +71 -15
- package/src/components/RatingPicker/StarsPicker/StarsPicker.vue +28 -37
- package/src/components/RatingPicker/StarsPicker/tests/StarsPicker.spec.ts +1 -1
- package/src/components/RatingPicker/StarsPicker/tests/__snapshots__/StarsPicker.spec.ts.snap +5 -0
- package/src/components/RatingPicker/accessibilite/Accessibility.mdx +137 -9
- package/src/components/RatingPicker/tests/RatingPicker.a11y.spec.ts +123 -0
- package/src/components/RatingPicker/tests/RatingPicker.spec.ts +3 -2
- package/src/components/RatingPicker/tests/__snapshots__/RatingPicker.spec.ts.snap +40 -11
- package/src/components/RatingPicker/useRatingFocus.ts +97 -0
- package/src/components/StatusPage/tests/StatusPage.spec.ts +149 -0
- package/src/components/SubHeader/SubHeader.vue +1 -1
- package/src/components/SyAlert/SyAlert.vue +23 -23
- package/src/components/SyTextArea/SyTextArea.stories.ts +177 -131
- package/src/components/SyTextArea/SyTextArea.vue +257 -74
- package/src/components/SyTextArea/composables/useSyTextAreaValidation.ts +81 -0
- package/src/components/SyTextArea/locales.ts +1 -0
- package/src/components/SyTextArea/tests/SyTextArea.spec.ts +449 -1
- package/src/components/SyTextArea/useDefaultValidationRules.ts +2 -7
- package/src/components/SyTextArea/validation/Validation.stories.ts +856 -0
- package/src/components/TableToolbar/TableToolbar.vue +6 -6
- package/src/components/TableToolbar/accessibilite/Accessibility.mdx +81 -7
- package/src/components/Tables/SyServerTable/SyServerTable.stories.ts +163 -0
- package/src/components/Tables/SyServerTable/SyServerTable.vue +3 -2
- package/src/components/Tables/SyServerTable/tests/SyServerTable.spec.ts +67 -0
- package/src/components/Tables/SyTable/SyTable.stories.ts +94 -0
- package/src/components/Tables/SyTable/SyTable.vue +3 -2
- package/src/components/Tables/SyTable/tests/SyTable.spec.ts +64 -0
- package/src/components/Tables/common/SyTableFilter.vue +4 -4
- package/src/components/Tables/common/SyTablePagination.vue +1 -0
- package/src/components/Tables/common/TableHeader.vue +3 -3
- package/src/components/Tables/common/filters/DateFilter.vue +2 -2
- package/src/components/Tables/common/filters/logics/tests/NumberFilterLogic.spec.ts +176 -0
- package/src/components/Tables/common/filters/logics/tests/SelectFilterLogic.spec.ts +111 -0
- package/src/components/Tables/common/tableStyles.scss +6 -6
- package/src/components/Tables/common/types.ts +2 -0
- package/src/components/UploadWorkflow/tests/UploadWorkflow.spec.ts +2 -0
- package/src/components/index.ts +1 -0
- package/src/composables/date/tests/useDateFormatDayjs.spec.ts +112 -0
- package/src/composables/date/tests/{useDateInitialization.spec.ts → useDateInitializationDayjs.spec.ts} +39 -3
- package/src/composables/date/tests/useHolidayDay.spec.ts +109 -0
- package/src/composables/date/useDateInitializationDayjs.ts +4 -1
- package/src/composables/rules/tests/useFieldValidation.spec.ts +374 -0
- package/src/composables/tests/useError.spec.ts +30 -0
- package/src/composables/tests/useFormFieldErrorHandling.spec.ts +234 -0
- package/src/composables/unifyValidation/documentationValidationProps.ts +12 -12
- package/src/composables/unifyValidation/tests/documentationValidationProps.spec.ts +177 -0
- package/src/composables/unifyValidation/tests/useCustomValidation.spec.ts +32 -1
- package/src/composables/unifyValidation/tests/useValidation.spec.ts +28 -2
- package/src/composables/unifyValidation/useCustomValidation.ts +34 -12
- package/src/composables/unifyValidation/useValidation.ts +55 -27
- package/src/composables/unifyValidation/useVuetifyValidation.ts +2 -2
- package/src/composables/useFilterable/useFilterable.spec.ts +42 -0
- package/src/composables/useFilterable/useFilterable.ts +11 -7
- package/src/composables/useFormFieldErrorHandling.ts +6 -3
- package/src/composables/validation/tests/useValidation.spec.ts +2 -2
- package/src/composables/validation/useValidation.ts +15 -3
- package/src/composantsVuetify/VBtn/VBtn.mdx +9 -39
- package/src/composantsVuetify/VBtn/v-btn.stories.ts +26 -86
- package/src/composantsVuetify/VCard/VCard.mdx +59 -0
- package/src/composantsVuetify/VCard/v-card.stories.ts +279 -0
- package/src/designTokens/tokens/amelipro/apColors2026.ts +1 -1
- package/src/designTokens/tokens/amelipro/apContextual.ts +6 -0
- package/src/designTokens/tokens/amelipro/apDarkTheme.ts +2 -2
- package/src/designTokens/tokens/amelipro/apLightTheme.ts +72 -100
- package/src/designTokens/tokens/amelipro/apSemantic.ts +1 -1
- package/src/designTokens/tokens/baseContextualTokens.ts +1 -6
- package/src/designTokens/tokens/baseTokens.ts +232 -0
- package/src/designTokens/tokens/cnam/cnamContextual.ts +6 -0
- package/src/designTokens/tokens/cnam/cnamDarkTheme.ts +2 -2
- package/src/designTokens/tokens/cnam/cnamLightTheme.ts +76 -101
- package/src/designTokens/tokens/pa/paDarkTheme.ts +2 -2
- package/src/designTokens/tokens/pa/paLightTheme.ts +73 -99
- package/src/designTokens/tokens/pa/paSemantic.ts +2 -0
- package/src/designTokens/tokens/semanticTokens.ts +114 -0
- package/src/stories/Accessibilite/Aculturation/SensibilisationAccessibilite.mdx +61 -91
- package/src/stories/Accessibilite/AuditDesignSystem.mdx +5 -8
- package/src/stories/Accessibilite/AuditEtContreAudit/Exemptions-derogations.mdx +1 -1
- package/src/stories/Accessibilite/AuditEtContreAudit/Introduction.mdx +11 -8
- package/src/stories/Accessibilite/AuditEtContreAudit/RGAA.mdx +6 -7
- package/src/stories/Accessibilite/Introduction.mdx +30 -30
- package/src/stories/Accessibilite/KitDePreAudit/Echantillonnage.mdx +168 -78
- package/src/stories/Accessibilite/KitDePreAudit/Introduction.mdx +13 -6
- package/src/stories/Accessibilite/KitDePreAudit/Outils/Introduction.mdx +66 -45
- package/src/stories/Accessibilite/KitDePreAudit/Outils/LecteursDEcran.mdx +23 -49
- package/src/stories/Accessibilite/KitDePreAudit/Outils/Tanaguru/FauxPositifs.stories.ts +6 -0
- package/src/stories/Accessibilite/KitDePreAudit/Outils/Tanaguru/Utilisation.mdx +7 -19
- package/src/stories/Accessibilite/KitDePreAudit/Preaudit.mdx +18 -20
- package/src/stories/Components/Components.stories.ts +59 -6
- package/src/stories/DesignTokens/ColorIntegrationExample.vue +2 -3
- package/src/stories/DesignTokens/Colors.mdx +6 -8
- package/src/stories/DesignTokens/colors.stories.ts +244 -1081
- package/src/utils/amelipro/toKebabCase/tests/toKebabCase.spec.ts +52 -0
- package/src/utils/formatNir/tests/formatNir.spec.ts +34 -0
- package/src/utils/tests/insertAt.spec.ts +44 -0
- package/dist/AutocompleteFilter-Df9i5mAl.cjs +0 -1
- package/dist/DateFilter-BJD6FMev.cjs +0 -1
- package/dist/NumberFilter-DGCzCXzI.cjs +0 -1
- package/dist/PeriodFilter-DO_ecTZW.cjs +0 -1
- package/dist/SelectFilter-CGwcKWLm.cjs +0 -1
- package/dist/TextFilter-B8nf7xoK.cjs +0 -1
- package/dist/apLightTheme-CEK4iY3f.cjs +0 -1
- package/dist/apLightTheme-DnIM24Lv.js +0 -950
- package/dist/composables/date/useDateFormat.d.ts +0 -26
- package/dist/composables/date/useDateInitialization.d.ts +0 -18
- package/dist/design-system-v3.umd.cjs +0 -1
- package/dist/main-ByDPHpae.cjs +0 -1067
- package/dist/tooth-11-D3sLWv2n.cjs +0 -1
- package/dist/tooth-12-CXrLuH03.cjs +0 -1
- package/dist/tooth-13-BSfo5fpT.cjs +0 -1
- package/dist/tooth-14-DMzulx0h.cjs +0 -1
- package/dist/tooth-15-BKRFVi-9.cjs +0 -1
- package/dist/tooth-16-CpuxAbuM.cjs +0 -1
- package/dist/tooth-17-BPoahUdg.cjs +0 -1
- package/dist/tooth-18-DhHJz8sy.cjs +0 -1
- package/dist/tooth-21-Dgd5hn_X.cjs +0 -1
- package/dist/tooth-22-C2Tn19sB.cjs +0 -1
- package/dist/tooth-23-C9uaaSGb.cjs +0 -1
- package/dist/tooth-24-BrK9UGpf.cjs +0 -1
- package/dist/tooth-25-CE_EfGNp.cjs +0 -1
- package/dist/tooth-26-Ctv4i9Fy.cjs +0 -1
- package/dist/tooth-27-C5J7JkWM.cjs +0 -1
- package/dist/tooth-28-Z9oWqjo0.cjs +0 -1
- package/dist/tooth-31-BrYqmkTi.cjs +0 -1
- package/dist/tooth-32-BNNR0oCZ.cjs +0 -1
- package/dist/tooth-33-DuxvqO2J.cjs +0 -1
- package/dist/tooth-34-BCSCXMB6.cjs +0 -1
- package/dist/tooth-35-BLUXkX88.cjs +0 -1
- package/dist/tooth-36-IrKHYqlA.cjs +0 -1
- package/dist/tooth-37-BYqpdMwo.cjs +0 -1
- package/dist/tooth-38-B_eNXXdu.cjs +0 -1
- package/dist/tooth-41-Ddva4Ot8.cjs +0 -1
- package/dist/tooth-42-szcDqlM0.cjs +0 -1
- package/dist/tooth-43-B3ka6rQm.cjs +0 -1
- package/dist/tooth-44-CazyQucj.cjs +0 -1
- package/dist/tooth-45-B4HQtc8n.cjs +0 -1
- package/dist/tooth-46-BPM40gbG.cjs +0 -1
- package/dist/tooth-47-Dvr20dlh.cjs +0 -1
- package/dist/tooth-48-Bd8ljGsF.cjs +0 -1
- package/dist/tooth-51-OBpwCOF3.cjs +0 -1
- package/dist/tooth-52-aKxyHcmq.cjs +0 -1
- package/dist/tooth-53-vCwJjTOc.cjs +0 -1
- package/dist/tooth-54-DsWu2iFy.cjs +0 -1
- package/dist/tooth-55-BxC1X2Dn.cjs +0 -1
- package/dist/tooth-61-BbLvxMQi.cjs +0 -1
- package/dist/tooth-62-CmTkWczP.cjs +0 -1
- package/dist/tooth-63-DI7l_2qI.cjs +0 -1
- package/dist/tooth-64-B21sOsJh.cjs +0 -1
- package/dist/tooth-65-D2ZC2VEr.cjs +0 -1
- package/dist/tooth-71-D473PPO5.cjs +0 -1
- package/dist/tooth-72-Drh1wnNu.cjs +0 -1
- package/dist/tooth-73-DzlwYI23.cjs +0 -1
- package/dist/tooth-74-8aGvcZPg.cjs +0 -1
- package/dist/tooth-75-BFK7At_r.cjs +0 -1
- package/dist/tooth-81-BZmR-I0M.cjs +0 -1
- package/dist/tooth-82-euVfUUZV.cjs +0 -1
- package/dist/tooth-83-KV010j64.cjs +0 -1
- package/dist/tooth-84-BBg1RjhZ.cjs +0 -1
- package/dist/tooth-85-Cr-kc1wM.cjs +0 -1
- package/dist/vuetifyConfig.umd.cjs +0 -1
- package/src/components/BackBtn/tests/__snapshots__/back-btn-custom-bg.snap.png +0 -0
- package/src/components/BackBtn/tests/__snapshots__/back-btn-dark-mode.snap.png +0 -0
- package/src/components/BackBtn/tests/__snapshots__/back-btn-default.snap.png +0 -0
- package/src/components/BackBtn/tests/__snapshots__/back-btn-no-icon.snap.png +0 -0
- package/src/components/DatePicker/CalendarMode/tests/DatePicker.events.spec.ts +0 -178
- package/src/components/DialogBox/tests/__snapshots__/dialog-box-custom-texts.snap.png +0 -0
- package/src/components/DialogBox/tests/__snapshots__/dialog-box-default.snap.png +0 -0
- package/src/components/DialogBox/tests/__snapshots__/dialog-box-no-actions.snap.png +0 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/tests/__snapshots__/header-burger-menu-generated-submenu-open.snap.png +0 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/tests/__snapshots__/header-burger-menu-generated.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-custom-width.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-default.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-no-sticky.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-with-prepend.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-with-side.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-with-subtitle.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-avatar.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-dark.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-default.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-no-organism.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-no-signature.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-risque-pro.snap.png +0 -0
- package/src/components/RangeField/tests/__snapshots__/range-field-custom-bg.snap.png +0 -0
- package/src/components/RangeField/tests/__snapshots__/range-field-custom-range.snap.png +0 -0
- package/src/components/RangeField/tests/__snapshots__/range-field-default.snap.png +0 -0
- package/src/components/RangeField/tests/__snapshots__/range-field-step.snap.png +0 -0
- package/src/components/RangeField/tests/__snapshots__/range-field-with-label.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-closable.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-error.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-info.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-success.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-variant-outlined.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-variant-tonal.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-warning.snap.png +0 -0
- package/src/composables/date/tests/useDateFormat.spec.ts +0 -67
- package/src/composables/date/useDateFormat.ts +0 -110
- 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
|
|
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
|
-
'
|
|
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
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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="
|
|
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
|
|
165
|
+
export const ColorOn: StoryObj = {
|
|
169
166
|
render: () => {
|
|
170
167
|
return {
|
|
171
168
|
components: { ColorDisplay },
|
|
172
169
|
setup() {
|
|
173
|
-
const colorTitle = '
|
|
170
|
+
const colorTitle = 'On-Couleurs'
|
|
174
171
|
const colorTitleLevel = 3
|
|
175
|
-
const colorDescription = '
|
|
172
|
+
const colorDescription = 'Texte/icône sur fond'
|
|
176
173
|
const cnamColors = {
|
|
177
|
-
'
|
|
178
|
-
'
|
|
179
|
-
'
|
|
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
|
-
'
|
|
183
|
-
'
|
|
184
|
-
'
|
|
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
|
-
'
|
|
188
|
-
'
|
|
189
|
-
'
|
|
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
|
-
|
|
206
|
-
|
|
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
|
|
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 = '
|
|
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
|
-
'
|
|
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
|
-
'
|
|
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
|
-
'
|
|
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="
|
|
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 = '
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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="
|
|
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
|
|
342
|
+
export const mainSection = {
|
|
388
343
|
render() {
|
|
389
344
|
return h(createSection('Couleurs de base', [
|
|
390
|
-
|
|
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 = '
|
|
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
|
-
'
|
|
422
|
-
'
|
|
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
|
-
'
|
|
429
|
-
'
|
|
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
|
-
'
|
|
436
|
-
'
|
|
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="
|
|
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 = '
|
|
477
|
-
const colorDescription = '
|
|
403
|
+
const colorTitle = 'On-Backgrounds'
|
|
404
|
+
const colorDescription = 'Texte/icône sur fond'
|
|
478
405
|
const colorTitleLevel = 3
|
|
479
406
|
const cnamColors = {
|
|
480
|
-
'
|
|
481
|
-
'
|
|
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
|
-
'
|
|
486
|
-
'
|
|
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
|
-
'
|
|
491
|
-
'
|
|
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="
|
|
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 = '
|
|
529
|
-
const colorDescription = '
|
|
451
|
+
const colorTitle = 'Surfaces'
|
|
452
|
+
const colorDescription = ' Surface en superposition du background principal.'
|
|
530
453
|
const colorTitleLevel = 3
|
|
531
454
|
const cnamColors = {
|
|
532
|
-
'
|
|
533
|
-
'
|
|
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
|
-
'
|
|
537
|
-
'
|
|
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
|
-
'
|
|
541
|
-
'
|
|
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="
|
|
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 = '
|
|
578
|
-
const colorDescription = '
|
|
505
|
+
const colorTitle = 'On-Surfaces'
|
|
506
|
+
const colorDescription = 'Texte/icône sur une surface '
|
|
579
507
|
const colorTitleLevel = 3
|
|
580
508
|
const cnamColors = {
|
|
581
|
-
'
|
|
582
|
-
'
|
|
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
|
-
'
|
|
588
|
-
'
|
|
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
|
-
'
|
|
594
|
-
'
|
|
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="
|
|
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 = '
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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="
|
|
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 = '
|
|
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
|
-
'
|
|
707
|
-
'
|
|
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
|
-
'
|
|
711
|
-
'
|
|
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
|
-
'
|
|
715
|
-
'
|
|
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="
|
|
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
|
|
747
|
-
render
|
|
748
|
-
return
|
|
749
|
-
|
|
750
|
-
|
|
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
|
|
794
|
-
render
|
|
795
|
-
return
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
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('
|
|
850
|
-
|
|
851
|
-
|
|
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
|
|
859
|
-
render
|
|
860
|
-
return
|
|
861
|
-
|
|
862
|
-
|
|
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
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
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
|
-
|
|
686
|
+
|
|
687
|
+
export const Feedback: StoryObj = {
|
|
967
688
|
render: () => {
|
|
968
689
|
return {
|
|
969
690
|
components: { ColorDisplay },
|
|
970
691
|
setup() {
|
|
971
|
-
const colorTitle = '
|
|
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
|
-
'
|
|
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
|
-
'
|
|
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
|
-
'
|
|
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="
|
|
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
|
-
|
|
753
|
+
|
|
754
|
+
export const OnFeedback: StoryObj = {
|
|
1012
755
|
render: () => {
|
|
1013
756
|
return {
|
|
1014
757
|
components: { ColorDisplay },
|
|
1015
758
|
setup() {
|
|
1016
|
-
const colorTitle = '
|
|
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
|
-
'
|
|
1021
|
-
'
|
|
1022
|
-
'
|
|
1023
|
-
'
|
|
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
|
-
'
|
|
1027
|
-
'
|
|
1028
|
-
'
|
|
1029
|
-
'
|
|
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
|
-
'
|
|
1033
|
-
'
|
|
1034
|
-
'
|
|
1035
|
-
'
|
|
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="
|
|
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
|
-
|
|
820
|
+
|
|
821
|
+
export const FeedbackSection = {
|
|
1066
822
|
render() {
|
|
1067
|
-
return h(createSection('
|
|
1068
|
-
|
|
1069
|
-
|
|
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 {
|