@cnamts/synapse 1.0.21 → 1.0.23
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/{DateFilter-uN8OURoP.js → DateFilter-Dc-gSGwk.js} +29 -24
- package/dist/{NumberFilter-sm1dQNQi.js → NumberFilter-vP38Wp6j.js} +1 -1
- package/dist/{PeriodFilter-Cklsxnh9.js → PeriodFilter-Ba1uYUnT.js} +1 -1
- package/dist/{SelectFilter-CWefj27Z.js → SelectFilter-BioGT6Nn.js} +1 -1
- package/dist/{TextFilter-Ddyj885L.js → TextFilter-B84dpnoq.js} +1 -1
- package/dist/components/Accordion/Accordion.d.ts +13 -2
- package/dist/components/Accordion/composables/useAccordionState.d.ts +2 -1
- package/dist/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.d.ts +7405 -5973
- package/dist/components/Amelipro/AmeliproBtn/AmeliproBtn.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproCallback/AmeliproCallback.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproCarousel/AmeliproCarousel.d.ts +10 -14
- package/dist/components/Amelipro/AmeliproCarousel/AmeliproCarouselItem/AmeliproCarouselItem.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproClickableTile/AmeliproClickableTile.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproErrorTemplate/AmeliproErrorTemplate.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproFirstLogin/AmeliproFirstLogin.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproFooter/AmeliproFooter.d.ts +8 -8
- package/dist/components/Amelipro/AmeliproHeader/AmeliproHeader.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproHeaderBar.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproHeaderBrandSection/AmeliproHeaderBrandSection.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproIcon/AmeliproIcon.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproIconBtn/AmeliproIconBtn.d.ts +16 -20
- package/dist/components/Amelipro/AmeliproMenu/AmeliproMenu.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproPagination/AmeliproPaginationBtn/AmeliproPaginationBtn.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproPatientBanner/AmeliproPatientBanner.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressCityRow/AmeliproPostalAddressCityRow.d.ts +1610 -1354
- package/dist/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressField.d.ts +2413 -2029
- package/dist/components/Amelipro/AmeliproSelect/AmeliproSelect.d.ts +8885 -7323
- package/dist/components/Amelipro/AmeliproStateTile/AmeliproStateTile.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproStepper/AmeliproStepper.d.ts +2 -6
- package/dist/components/Amelipro/AmeliproTabs/AmeliproTabs.d.ts +8884 -7330
- package/dist/components/Amelipro/AmeliproTextArea/AmeliproTextArea.d.ts +950 -838
- package/dist/components/Amelipro/AmeliproTextField/AmeliproTextField.d.ts +1614 -1358
- package/dist/components/Amelipro/AmeliproTileBtn/AmeliproTileBtn.d.ts +223 -203
- package/dist/components/Amelipro/AmeliproTransmission/AmeliproTransmission.d.ts +3 -3
- package/dist/components/Amelipro/StructureMenu/StructureTabs/StructureTabs.d.ts +3 -7
- package/dist/components/CollapsibleList/CollapsibleList.d.ts +4 -1
- package/dist/components/CookieBanner/CookieBanner.d.ts +303 -273
- package/dist/components/CookiesSelection/CookiesInformation/CookiesInformation.d.ts +1297 -1156
- package/dist/components/CookiesSelection/CookiesSelection.d.ts +404 -377
- package/dist/components/Customs/Selects/SelectBtnField/SelectBtnField.d.ts +1 -1
- package/dist/components/Customs/Selects/SyAutocomplete/SyAutocomplete.d.ts +1108 -846
- package/dist/components/Customs/Selects/SyAutocomplete/locales.d.ts +5 -0
- package/dist/components/Customs/Selects/SySelect/SySelect.d.ts +514 -320
- package/dist/components/Customs/Selects/SySelect/locales.d.ts +1 -0
- package/dist/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.d.ts +40 -38
- package/dist/components/Customs/SyCheckbox/SyCheckbox.d.ts +920 -800
- package/dist/components/Customs/SyForm/SyForm.d.ts +356 -348
- package/dist/components/Customs/SyPagination/SyPagination.d.ts +11 -1
- package/dist/components/Customs/SyRadioGroup/SyRadioGroup.d.ts +906 -794
- package/dist/components/Customs/SyTextField/SyTextField.d.ts +1634 -1367
- package/dist/components/DataList/DataList.d.ts +1 -1
- package/dist/components/DatePicker/CalendarMode/DatePicker.d.ts +3869 -3120
- package/dist/components/DatePicker/ComplexDatePicker/ComplexDatePicker.d.ts +1947 -1561
- package/dist/components/DatePicker/DateTextInput/DateTextInput.d.ts +831 -684
- package/dist/components/DialogBox/DialogBox.d.ts +482 -416
- package/dist/components/DownloadBtn/config.d.ts +1 -1
- package/dist/components/ErrorPage/ErrorPage.d.ts +6 -0
- package/dist/components/FileList/UploadItem/UploadItem.d.ts +6 -0
- package/dist/components/FileList/UploadItem/locales.d.ts +1 -0
- package/dist/components/FileUpload/FileUpload.d.ts +4 -4
- package/dist/components/FileUpload/FileUploadContent.d.ts +2 -0
- package/dist/components/FileUpload/locales.d.ts +1 -0
- package/dist/components/FileUpload/validateFiles.d.ts +2 -1
- package/dist/components/FilterSideBar/FilterSideBar.d.ts +418 -366
- package/dist/components/FooterBar/FooterBar.d.ts +13 -1
- package/dist/components/FooterBar/locales.d.ts +1 -0
- package/dist/components/FooterBar/types.d.ts +1 -0
- package/dist/components/HeaderBar/HeaderBar.d.ts +2 -0
- package/dist/components/HeaderBar/HeaderLogo/HeaderLogo.d.ts +2 -0
- package/dist/components/HeaderNavigationBar/HeaderNavigationBar.d.ts +4 -6
- package/dist/components/HeaderToolbar/HeaderToolbar.d.ts +1031 -643
- package/dist/components/LangBtn/LangBtn.d.ts +277 -239
- package/dist/components/LogoBrandSection/LogoBrandSection.d.ts +4 -0
- package/dist/components/MaintenancePage/MaintenancePage.d.ts +16 -1
- package/dist/components/MonthPicker/MonthPicker.d.ts +1939 -0
- package/dist/components/MonthPicker/MonthPickerText/MonthPickerInput.d.ts +1899 -0
- package/dist/components/MonthPicker/MonthPickerText/useTextField.d.ts +21 -0
- package/dist/components/MonthPicker/MonthPickerVisual/MonthPickerVisual.d.ts +21 -0
- package/dist/components/MonthPicker/MonthPickerVisual/MonthPickerVisualProps.d.ts +12 -0
- package/dist/components/MonthPicker/MonthPickerVisual/MonthSelector.d.ts +11 -0
- package/dist/components/MonthPicker/MonthPickerVisual/VisualPickerFooter.d.ts +6 -0
- package/dist/components/MonthPicker/MonthPickerVisual/VisualPickerHeader.d.ts +14 -0
- package/dist/components/MonthPicker/MonthPickerVisual/YearSelector.d.ts +14 -0
- package/dist/components/MonthPicker/MonthPickerVisual/useMonthGrid.d.ts +9 -0
- package/dist/components/MonthPicker/MonthPickerVisual/useYearGrid.d.ts +8 -0
- package/dist/components/MonthPicker/MonthPickerVisual/utils.d.ts +8 -0
- package/dist/components/MonthPicker/locales.d.ts +12 -0
- package/dist/components/MonthPicker/useMonthPickerValidation.d.ts +25 -0
- package/dist/components/NirField/NirField.d.ts +1669 -1379
- package/dist/components/NotFoundPage/NotFoundPage.d.ts +9 -3
- package/dist/components/NotificationBar/Notification/Notification.d.ts +3 -0
- package/dist/components/PageContainer/PageContainer.d.ts +3 -1
- package/dist/components/PeriodField/PeriodField.d.ts +7696 -6192
- package/dist/components/PhoneField/PhoneField.d.ts +829 -684
- package/dist/components/RangeField/RangeSlider/RangeSlider.d.ts +4 -12
- package/dist/components/StatusPage/StatusPage.d.ts +12 -1
- package/dist/components/SubHeader/SubHeader.d.ts +2 -0
- package/dist/components/SyAlert/SyAlert.d.ts +74 -70
- package/dist/components/SyBtnMenu/SyBtnMenu.d.ts +9 -0
- package/dist/components/SyHeading/SyHeading.a11y.test.d.ts +1 -0
- package/dist/components/SyHeading/SyHeading.d.ts +22 -0
- package/dist/components/SyHeading/SyHeading.test.d.ts +1 -0
- package/dist/components/SyTextArea/SyTextArea.d.ts +475 -419
- package/dist/components/Tables/SyServerTable/SyServerTable.d.ts +759 -468
- package/dist/components/Tables/SyTable/SyTable.d.ts +761 -470
- package/dist/components/Tables/common/SyTableFilter.d.ts +1 -1
- package/dist/components/Tables/common/SyTablePagination.d.ts +263 -164
- package/dist/components/Tables/common/filters/DateFilter.d.ts +10 -1
- package/dist/components/Tables/common/filters/NumberFilter.d.ts +1 -1
- package/dist/components/Tables/common/filters/PeriodFilter.d.ts +1 -1
- package/dist/components/Tables/common/filters/SelectFilter.d.ts +1 -1
- package/dist/components/Tables/common/filters/TextFilter.d.ts +1 -1
- package/dist/components/Tables/common/organizeColumns/OrganizeColumns.d.ts +166 -138
- package/dist/components/Tables/common/types.d.ts +2 -0
- package/dist/components/UploadWorkflow/UploadWorkflow.d.ts +24 -1211
- package/dist/components/UserMenuBtn/UserMenuBtn.d.ts +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/types.d.ts +2 -0
- package/dist/design-system-v3.js +111 -107
- package/dist/design-system-v3.umd.cjs +158 -158
- package/dist/designTokens/tokens/amelipro/apLightTheme.d.ts +26 -14
- package/dist/designTokens/tokens/amelipro/apSemantic.d.ts +19 -13
- package/dist/designTokens/tokens/cnam/cnamContextual.d.ts +5 -0
- package/dist/designTokens/tokens/cnam/cnamLightTheme.d.ts +28 -15
- package/dist/designTokens/tokens/cnam/cnamSemantic.d.ts +20 -13
- package/dist/designTokens/tokens/pa/paLightTheme.d.ts +26 -15
- package/dist/designTokens/tokens/pa/paSemantic.d.ts +19 -13
- package/dist/main-aLKwdMi1.js +37886 -0
- package/dist/main.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/vuetifyConfig.d.ts +14 -14
- package/package.json +21 -9
- package/src/assets/amelipro/img/logo-amelipro.svg +9 -0
- package/src/assets/apTokens.scss +53 -17
- package/src/assets/overrides/_btns.scss +8 -0
- package/src/assets/overrides/_forms.scss +9 -0
- package/src/assets/overrides/_icons.scss +43 -4
- package/src/assets/overrides/_tables.scss +19 -0
- package/src/assets/overrides/_tooltips.scss +5 -6
- package/src/assets/overrides/_typography.scss +17 -2
- package/src/assets/overrides/_utilities.scss +49 -3
- package/src/assets/tokens.scss +53 -17
- package/src/components/Accordion/Accordion.mdx +23 -9
- package/src/components/Accordion/Accordion.stories.ts +153 -3
- package/src/components/Accordion/Accordion.vue +7 -6
- package/src/components/Accordion/accessibilite/Accessibility.mdx +5 -4
- package/src/components/Accordion/composables/__tests__/useAccordionState.spec.ts +40 -12
- package/src/components/Accordion/composables/useAccordionState.ts +3 -4
- package/src/components/Accordion/tests/accordion.spec.ts +131 -19
- package/src/components/Amelipro/AmeliproAccordion/AmeliproAccordionTemplate/AmeliproAccordionTemplate.vue +2 -2
- package/src/components/Amelipro/AmeliproAccordion/AmeliproAccordionTemplate/__tests__/__snapshots__/AmeliproAccordionTemplate.spec.ts.snap +0 -2
- package/src/components/Amelipro/AmeliproAccordionFrieze/AmeliproAccordionFrieze.vue +2 -2
- package/src/components/Amelipro/AmeliproAccordionFrieze/__tests__/__snapshots__/AmeliproAccordionFrieze.spec.ts.snap +14 -56
- package/src/components/Amelipro/AmeliproAccordionList/AmeliproAccordionList.vue +1 -1
- package/src/components/Amelipro/AmeliproAccordionList/__tests__/__snapshots__/AmeliproAccordionList.spec.ts.snap +15 -23
- package/src/components/Amelipro/AmeliproAccordionResultList/AmeliproAccordionResultList.vue +1 -1
- package/src/components/Amelipro/AmeliproAccordionResultList/__tests__/__snapshots__/AmeliproAccordionResultList.spec.ts.snap +15 -3
- package/src/components/Amelipro/AmeliproCarousel/__tests__/__snapshots__/AmeliproCarousel.spec.ts.snap +0 -2
- package/src/components/Amelipro/AmeliproClickableTile/tests/__snapshots__/AmeliproClickableTile.spec.ts.snap +0 -98
- package/src/components/Amelipro/AmeliproContentLayout/AmeliproContentLayout.mdx +1 -1
- package/src/components/Amelipro/AmeliproContentLayout/AmeliproContentLayout.stories.ts +5 -16
- package/src/components/Amelipro/AmeliproCopyBtn/AmeliproCopyBtn.mdx +3 -1
- package/src/components/Amelipro/AmeliproCopyBtn/AmeliproCopyBtn.stories.ts +7 -0
- package/src/components/Amelipro/AmeliproDentalChart/AmeliproTooth/AmeliproTooth.vue +0 -1
- package/src/components/Amelipro/AmeliproDentalChart/AmeliproTooth/tests/__snapshots__/AmeliproTooth.spec.ts.snap +0 -1
- package/src/components/Amelipro/AmeliproDentalChart/tests/__snapshots__/AmeliproDentalChart.spec.ts.snap +0 -52
- package/src/components/Amelipro/AmeliproDialog/__tests__/__snapshots__/AmeliproDialog.spec.ts.snap +6 -0
- package/src/components/Amelipro/AmeliproErrorTemplate/AmeliproErrorTemplate.mdx +3 -1
- package/src/components/Amelipro/AmeliproErrorTemplate/AmeliproErrorTemplate.stories.ts +19 -0
- package/src/components/Amelipro/AmeliproErrorTemplate/AmeliproErrorTemplate.vue +2 -2
- package/src/components/Amelipro/AmeliproFirstLogin/AmeliproFirstLogin.vue +3 -4
- package/src/components/Amelipro/AmeliproFirstLogin/__tests__/__snapshots__/AmeliproFirstLogin.spec.ts.snap +2 -13
- package/src/components/Amelipro/AmeliproFooter/AmeliproFooter.mdx +3 -1
- package/src/components/Amelipro/AmeliproFooter/AmeliproFooter.stories.ts +7 -0
- package/src/components/Amelipro/AmeliproMenu/__tests__/__snapshots__/AmeliproMenu.spec.ts.snap +8 -0
- package/src/components/Amelipro/AmeliproPagination/AmeliproPagination.mdx +3 -1
- package/src/components/Amelipro/AmeliproPagination/AmeliproPagination.stories.ts +8 -0
- package/src/components/Amelipro/AmeliproPatientLogged/__tests__/__snapshots__/AmeliproPatientLogged.spec.ts.snap +9 -2
- package/src/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressCityRow/__tests__/__snapshots__/AmeliproPostalAddressCityRow.spec.ts.snap +28 -10
- package/src/components/Amelipro/AmeliproPostalAddressField/__tests__/__snapshots__/AmeliproPostalAddressField.spec.ts.snap +44 -8
- package/src/components/Amelipro/AmeliproResultList/AmeliproResultList.vue +1 -1
- package/src/components/Amelipro/AmeliproResultList/__tests__/__snapshots__/AmeliproResultList.spec.ts.snap +15 -3
- package/src/components/Amelipro/AmeliproTable/AmeliproTable.vue +1 -1
- package/src/components/Amelipro/AmeliproTable/__tests__/__snapshots__/AmeliproTable.spec.ts.snap +0 -1
- package/src/components/Amelipro/AmeliproTooltips/__tests__/__snapshots__/AmeliproTooltips.spec.ts.snap +6 -0
- package/src/components/Amelipro/AmeliproUpload/__tests__/__snapshots__/AmeliproUpload.spec.ts.snap +2 -4
- package/src/components/Amelipro/StructureMenu/StructureList/__tests__/__snapshots__/StructureList.spec.ts.snap +0 -2
- package/src/components/Amelipro/UserMenu/__tests__/__snapshots__/UserMenu.spec.ts.snap +8 -0
- package/src/components/BackBtn/BackBtn.vue +1 -1
- package/src/components/BackBtn/accessibilite/Accessibility.mdx +62 -10
- package/src/components/BackToTopBtn/BackToTopBtn.stories.ts +9 -3
- package/src/components/BackToTopBtn/accessibilite/Accessibility.mdx +86 -6
- package/src/components/Captcha/tests/Captcha.spec.ts +0 -29
- package/src/components/Captcha/tests/__snapshots__/Captcha.spec.ts.snap +18 -108
- package/src/components/ChipList/ChipList.vue +4 -2
- package/src/components/CollapsibleList/CollapsibleList.stories.ts +8 -3
- package/src/components/CollapsibleList/CollapsibleList.vue +14 -6
- package/src/components/CollapsibleList/accessibilite/Accessibility.mdx +19 -6
- package/src/components/CollapsibleList/tests/CollapsibleList.a11y.spec.ts +1 -0
- package/src/components/CollapsibleList/tests/CollapsibleList.spec.ts +2 -0
- package/src/components/CookieBanner/CookieBanner.stories.ts +10 -0
- package/src/components/CookieBanner/CookieBanner.vue +15 -5
- package/src/components/CookieBanner/accessibilite/Accessibility.mdx +9 -0
- package/src/components/CookieBanner/tests/CookieBanner.spec.ts +10 -2
- package/src/components/CookieBanner/tests/__snapshots__/CookieBanner.spec.ts.snap +21 -15
- package/src/components/CookiesSelection/CookiesInformation/CookiesInformation.vue +17 -8
- package/src/components/CookiesSelection/CookiesInformation/tests/CookiesInformation.a11y.spec.ts +1 -0
- package/src/components/CookiesSelection/CookiesInformation/tests/CookiesInformation.spec.ts +5 -0
- package/src/components/CookiesSelection/CookiesSelection.vue +7 -2
- package/src/components/CookiesSelection/tests/CookiesSelection.a11y.spec.ts +1 -0
- package/src/components/CookiesSelection/tests/CookiesSelection.spec.ts +5 -0
- package/src/components/CookiesSelection/tests/__snapshots__/CookiesSelection.spec.ts.snap +21 -15
- package/src/components/CopyBtn/CopyBtn.vue +6 -4
- package/src/components/CopyBtn/accessibilite/Accessibility.mdx +82 -11
- package/src/components/CopyBtn/tests/__snapshots__/CopyBtn.spec.ts.snap +5 -1
- package/src/components/Customs/Selects/SelectBtnField/accessibilite/Accessibility.mdx +133 -10
- package/src/components/Customs/Selects/SyAutocomplete/SyAutocomplete.stories.ts +379 -93
- package/src/components/Customs/Selects/SyAutocomplete/SyAutocomplete.vue +144 -83
- package/src/components/Customs/Selects/SyAutocomplete/accessibilite/Accessibilite.stories.ts +40 -1
- package/src/components/Customs/Selects/SyAutocomplete/accessibilite/Accessibility.mdx +7 -1
- package/src/components/Customs/Selects/SyAutocomplete/locales.ts +5 -0
- package/src/components/Customs/Selects/SyAutocomplete/tests/SyAutocomplete.a11y.spec.ts +96 -0
- package/src/components/Customs/Selects/SyAutocomplete/tests/SyAutocomplete.spec.ts +234 -9
- package/src/components/Customs/Selects/SyAutocomplete/utils/ariaManager.ts +13 -3
- package/src/components/Customs/Selects/SyAutocomplete/utils/useSelectionLogic.ts +9 -10
- package/src/components/Customs/Selects/SyInputSelect/SyInputSelect.stories.ts +4 -10
- package/src/components/Customs/Selects/SySelect/SySelect.mdx +0 -1
- package/src/components/Customs/Selects/SySelect/SySelect.stories.ts +10 -10
- package/src/components/Customs/Selects/SySelect/SySelect.vue +63 -3
- package/src/components/Customs/Selects/SySelect/composables/useSySelectKeyboard.ts +1 -1
- package/src/components/Customs/Selects/SySelect/locales.ts +1 -0
- package/src/components/Customs/Selects/SySelect/tests/SySelect.a11y.spec.ts +1 -3
- package/src/components/Customs/Selects/SySelect/tests/SySelect.spec.ts +72 -0
- package/src/components/Customs/SyCheckbox/SyCheckbox.vue +1 -1
- package/src/components/Customs/SyIcon/SyIcon.a11y.spec.ts +31 -2
- package/src/components/Customs/SyIcon/SyIcon.vue +9 -5
- package/src/components/Customs/SyIcon/tests/SyIcon.a11y.spec.ts +20 -0
- package/src/components/Customs/SyIconButton/SyIconButton.mdx +46 -0
- package/src/components/Customs/SyIconButton/SyIconButton.stories.ts +184 -0
- package/src/components/Customs/SyIconButton/SyIconButton.vue +38 -0
- package/src/components/Customs/SyIconButton/accessibilite/Accessibility.mdx +64 -0
- package/src/components/Customs/SyIconButton/tests/SyIconButton.a11y.spec.ts +87 -0
- package/src/components/Customs/SyIconButton/tests/SyIconButton.spec.ts +152 -0
- package/src/components/Customs/SyIconButton/tests/__snapshots__/SyIconButton.spec.ts.snap +61 -0
- package/src/components/Customs/SyPagination/SyPagination.stories.ts +14 -2
- package/src/components/Customs/SyPagination/SyPagination.vue +25 -10
- package/src/components/Customs/SyPagination/accessibilite/Accessibility.mdx +79 -8
- package/src/components/Customs/SyPagination/tests/SyPagination.a11y.spec.ts +53 -0
- package/src/components/Customs/SyPagination/tests/SyPagination.spec.ts +12 -0
- package/src/components/Customs/SyTextField/SyTextField.stories.ts +4 -0
- package/src/components/Customs/SyTextField/SyTextField.vue +59 -7
- package/src/components/Customs/SyTextField/accessibilite/Accessibility.mdx +67 -9
- package/src/components/Customs/SyTextField/tests/SyTextField.a11y.spec.ts +15 -0
- package/src/components/Customs/SyTextField/tests/SyTextField.spec.ts +36 -0
- package/src/components/DataList/accessibilite/Accessibility.mdx +79 -11
- package/src/components/DataListGroup/accessibilite/Accessibility.mdx +80 -11
- package/src/components/DatePicker/CalendarMode/DatePicker.stories.ts +28 -3
- package/src/components/DatePicker/CalendarMode/DatePicker.vue +20 -8
- package/src/components/DatePicker/CalendarMode/tests/DatePicker.spec.ts +9 -3
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.stories.ts +1 -1
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.vue +70 -47
- package/src/components/DatePicker/ComplexDatePicker/tests/ComplexDatePicker.a11y.spec.ts +34 -0
- package/src/components/DatePicker/DateTextInput/tests/DateTextInput.a11y.spec.ts +27 -0
- package/src/components/DatePicker/docExamples/BidirectionalComplexValidation.vue +23 -9
- package/src/components/DatePicker/docExamples/DatePickerBidirectionalValidation.vue +21 -8
- package/src/components/DatePicker/docExamples/DatePickerValidationExamples.vue +50 -22
- package/src/components/DatePicker/playground/ComplexDatePickerPlayground.vue +48 -10
- package/src/components/DatePicker/playground/DatePickerHolidayRule.vue +16 -3
- package/src/components/DialogBox/DialogBox.stories.ts +13 -0
- package/src/components/DialogBox/DialogBox.vue +12 -5
- package/src/components/DialogBox/accessibilite/Accessibility.mdx +27 -7
- package/src/components/DialogBox/tests/DialogBox.a11y.spec.ts +1 -0
- package/src/components/DialogBox/tests/DialogBox.spec.ts +40 -6
- package/src/components/DownloadBtn/accessibilite/Accessibility.mdx +73 -11
- package/src/components/DownloadBtn/config.ts +1 -1
- package/src/components/DownloadBtn/tests/DownloadBtn.a11y.spec.ts +25 -0
- package/src/components/ErrorPage/ErrorPage.stories.ts +176 -47
- package/src/components/ErrorPage/ErrorPage.vue +21 -0
- package/src/components/ErrorPage/accessibilite/Accessibility.mdx +15 -0
- package/src/components/ErrorPage/tests/ErrorPage.a11y.spec.ts +17 -0
- package/src/components/ErrorPage/tests/ErrorPage.spec.ts +21 -1
- package/src/components/ErrorPage/tests/__snapshots__/ErrorPage.spec.ts.snap +1 -0
- package/src/components/ExternalLinks/tests/ExternalLinks.a11y.spec.ts +23 -0
- package/src/components/ExternalLinks/tests/__snapshots__/ExternalLinks.spec.ts.snap +13 -2
- package/src/components/FileList/FileList.stories.ts +55 -1
- package/src/components/FileList/UploadItem/UploadItem.vue +17 -5
- package/src/components/FileList/UploadItem/locales.ts +3 -2
- package/src/components/FileList/accessibilite/Accessibility.mdx +58 -7
- package/src/components/FileUpload/FileUpload.vue +62 -38
- package/src/components/FileUpload/FileUploadContent.vue +3 -2
- package/src/components/FileUpload/accessibilite/Accessibility.mdx +48 -5
- package/src/components/FileUpload/locales.ts +1 -0
- package/src/components/FileUpload/tests/FileUpload.spec.ts +61 -14
- package/src/components/FileUpload/validateFiles.ts +5 -2
- package/src/components/FilterInline/FilterInline.stories.ts +0 -15
- package/src/components/FilterInline/FilterInline.vue +1 -0
- package/src/components/FilterInline/accessibilite/Accessibility.mdx +70 -7
- package/src/components/FilterInline/tests/__snapshots__/FilterInline.spec.ts.snap +3 -3
- package/src/components/FilterSideBar/FilterSideBar.stories.ts +0 -3
- package/src/components/FilterSideBar/FilterSideBar.vue +2 -1
- package/src/components/FilterSideBar/accessibilite/Accessibility.mdx +70 -9
- package/src/components/FooterBar/FooterBar.stories.ts +298 -34
- package/src/components/FooterBar/FooterBar.vue +67 -9
- package/src/components/FooterBar/config.ts +2 -2
- package/src/components/FooterBar/locales.ts +1 -0
- package/src/components/FooterBar/tests/FooterBarConfig.spec.ts +1 -1
- package/src/components/FooterBar/tests/__snapshots__/FooterBar.spec.ts.snap +6 -25
- package/src/components/FooterBar/types.d.ts +1 -0
- package/src/components/FranceConnectBtn/accessibilite/Accessibility.mdx +62 -9
- package/src/components/HeaderBar/HeaderBar.stories.ts +23 -1
- package/src/components/HeaderBar/HeaderBar.vue +5 -0
- package/src/components/HeaderBar/HeaderLogo/HeaderLogo.vue +8 -2
- package/src/components/HeaderBar/HeaderLogo/tests/HeaderLogo.spec.ts +5 -0
- package/src/components/HeaderBar/accessibilite/Accessibility.mdx +24 -5
- package/src/components/HeaderBar/tests/HeaderBar.a11y.spec.ts +1 -0
- package/src/components/HeaderBar/tests/HeaderBar.spec.ts +3 -0
- package/src/components/HeaderNavigationBar/HeaderNavigationBar.stories.ts +4 -0
- package/src/components/HeaderNavigationBar/HeaderNavigationBar.vue +3 -0
- package/src/components/HeaderNavigationBar/tests/HeaderNavigationBar.spec.ts +3 -0
- package/src/components/LogoBrandSection/LogoBrandSection.stories.ts +22 -0
- package/src/components/LogoBrandSection/LogoBrandSection.vue +13 -5
- package/src/components/LogoBrandSection/tests/LogoBrandSection.a11y.spec.ts +2 -0
- package/src/components/LogoBrandSection/tests/LogoBrandSection.spec.ts +44 -0
- package/src/components/LogoBrandSection/tests/__snapshots__/LogoBrandSection.spec.ts.snap +2 -0
- package/src/components/LunarCalendar/accessibilite/Accessibility.mdx +74 -8
- package/src/components/LunarCalendar/tests/LunarCalendar.a11y.spec.ts +163 -0
- package/src/components/MaintenancePage/MaintenancePage.vue +33 -6
- package/src/components/MaintenancePage/accessibilite/Accessibility.mdx +3 -1
- package/src/components/MaintenancePage/tests/MaintenancePage.a11y.spec.ts +3 -2
- package/src/components/MaintenancePage/tests/MaintenancePage.spec.ts +18 -1
- package/src/components/MaintenancePage/tests/__snapshots__/MaintenancePage.spec.ts.snap +1 -0
- package/src/components/MonthPicker/MonthPicker.mdx +35 -0
- package/src/components/MonthPicker/MonthPicker.stories.ts +527 -0
- package/src/components/MonthPicker/MonthPicker.vue +79 -0
- package/src/components/MonthPicker/MonthPickerText/MonthPickerInput.vue +89 -0
- package/src/components/MonthPicker/MonthPickerText/useTextField.ts +27 -0
- package/src/components/MonthPicker/MonthPickerVisual/MonthPickerVisual.vue +154 -0
- package/src/components/MonthPicker/MonthPickerVisual/MonthPickerVisualProps.ts +13 -0
- package/src/components/MonthPicker/MonthPickerVisual/MonthSelector.vue +137 -0
- package/src/components/MonthPicker/MonthPickerVisual/VisualPickerFooter.vue +60 -0
- package/src/components/MonthPicker/MonthPickerVisual/VisualPickerHeader.vue +149 -0
- package/src/components/MonthPicker/MonthPickerVisual/YearSelector.vue +143 -0
- package/src/components/MonthPicker/MonthPickerVisual/useMonthGrid.ts +45 -0
- package/src/components/MonthPicker/MonthPickerVisual/useYearGrid.ts +45 -0
- package/src/components/MonthPicker/MonthPickerVisual/utils.ts +17 -0
- package/src/components/MonthPicker/accessibilite/Accessibility.mdx +59 -0
- package/src/components/MonthPicker/locales.ts +12 -0
- package/src/components/MonthPicker/tests/MonthPicker.a11y.spec.ts +71 -0
- package/src/components/MonthPicker/tests/MonthPicker.spec.ts +1248 -0
- package/src/components/MonthPicker/tests/__snapshots__/MonthPicker.spec.ts.snap +2545 -0
- package/src/components/MonthPicker/useMonthPickerValidation.ts +30 -0
- package/src/components/NirField/NirField.mdx +1 -2
- package/src/components/NirField/NirField.stories.ts +66 -6
- package/src/components/NotFoundPage/NotFoundPage.stories.ts +1 -1
- package/src/components/NotFoundPage/NotFoundPage.vue +16 -5
- package/src/components/NotFoundPage/accessibilite/Accessibility.mdx +2 -0
- package/src/components/NotFoundPage/tests/NotFoundPage.a11y.spec.ts +49 -0
- package/src/components/NotFoundPage/tests/NotFoundPage.spec.ts +24 -2
- package/src/components/NotFoundPage/tests/__snapshots__/NotFoundPage.spec.ts.snap +24 -14
- package/src/components/NotificationBar/Notification/Notification.vue +3 -1
- package/src/components/NotificationBar/NotificationBar.stories.ts +154 -0
- package/src/components/NotificationBar/tests/NotificationBar.a11y.spec.ts +26 -0
- package/src/components/NotificationBar/tests/NotificationBar.spec.ts +60 -0
- package/src/components/PageContainer/PageContainer.stories.ts +47 -0
- package/src/components/PageContainer/PageContainer.vue +4 -2
- package/src/components/PageContainer/accessibilite/Accessibility.mdx +31 -17
- package/src/components/PaginatedTable/PaginatedTable.mdx +3 -3
- package/src/components/PaginatedTable/PaginatedTable.stories.ts +9 -1
- package/src/components/PeriodField/PeriodField.vue +4 -0
- package/src/components/PeriodField/tests/PeriodField.a11y.spec.ts +10 -1
- package/src/components/PhoneField/PhoneField.stories.ts +73 -35
- package/src/components/PhoneField/PhoneField.vue +152 -83
- package/src/components/PhoneField/accessibilite/Accessibility.mdx +306 -9
- package/src/components/PhoneField/indicatifs.ts +2 -2
- package/src/components/PhoneField/tests/PhoneField.a11y.spec.ts +47 -0
- package/src/components/PhoneField/tests/PhoneField.spec.ts +82 -5
- package/src/components/RangeField/accessibilite/Accessibility.mdx +79 -11
- package/src/components/SearchListField/SearchListField.vue +1 -1
- package/src/components/SearchListField/accessibilite/Accessibility.mdx +69 -9
- package/src/components/SearchListField/tests/SearchListField.a11y.spec.ts +37 -0
- package/src/components/SkipLink/tests/SkipLink.a11y.spec.ts +23 -0
- package/src/components/SocialMediaLinks/SocialMediaLinks.vue +1 -1
- package/src/components/StatusPage/StatusPage.mdx +10 -1
- package/src/components/StatusPage/StatusPage.stories.ts +161 -0
- package/src/components/StatusPage/StatusPage.vue +29 -5
- package/src/components/StatusPage/accessibilite/Accessibility.mdx +24 -5
- package/src/components/StatusPage/tests/StatusPage.a11y.spec.ts +23 -0
- package/src/components/StatusPage/tests/StatusPage.spec.ts +25 -0
- package/src/components/StatusPage/tests/__snapshots__/StatusPage.spec.ts.snap +24 -14
- package/src/components/SubHeader/SubHeader.stories.ts +16 -0
- package/src/components/SubHeader/SubHeader.vue +6 -3
- package/src/components/SubHeader/accessibilite/Accessibility.mdx +27 -6
- package/src/components/SubHeader/tests/SubHeader.a11y.spec.ts +20 -0
- package/src/components/SyAlert/SyAlert.vue +22 -20
- package/src/components/SyAlert/accessibilite/Accessibility.mdx +79 -9
- package/src/components/SyAlert/tests/SyAlert.a11y.spec.ts +23 -0
- package/src/components/SyBtnMenu/SyBtnMenu.vue +33 -17
- package/src/components/SyBtnMenu/tests/SyBtnMenu.a11y.spec.ts +38 -0
- package/src/components/SyBtnMenu/tests/SyBtnMenu.spec.ts +41 -0
- package/src/components/SyHeading/SyHeading.a11y.test.ts +149 -0
- package/src/components/SyHeading/SyHeading.test.ts +115 -0
- package/src/components/SyHeading/SyHeading.vue +20 -0
- package/src/components/SyTextArea/accessibilite/Accessibility.mdx +80 -8
- package/src/components/SyTextArea/tests/SyTextArea.a11y.spec.ts +151 -0
- package/src/components/TableToolbar/tests/__snapshots__/TableToolbar.spec.ts.snap +96 -30
- package/src/components/Tables/SyServerTable/SyServerTable.vue +2 -0
- package/src/components/Tables/SyTable/SyTable.vue +2 -0
- package/src/components/Tables/common/SyTablePagination.vue +16 -10
- package/src/components/Tables/common/filters/DateFilter.vue +5 -0
- package/src/components/Tables/common/tests/SyTablePagination.spec.ts +40 -24
- package/src/components/Tables/common/types.ts +3 -0
- package/src/components/ToolbarContainer/tests/ToolbarContainer.a11y.spec.ts +126 -0
- package/src/components/UploadWorkflow/UploadWorkflow.stories.ts +11 -11
- package/src/components/UploadWorkflow/UploadWorkflow.vue +30 -13
- package/src/components/UploadWorkflow/accessibilite/Accessibility.mdx +56 -5
- package/src/components/UploadWorkflow/accessibilite/UploadWorkflow.a11y.spec.ts +110 -0
- package/src/components/UploadWorkflow/tests/UploadWorkflow.spec.ts +7 -25
- package/src/components/UploadWorkflow/tests/__snapshots__/UploadWorkflow.spec.ts.snap +146 -123
- package/src/components/UserMenuBtn/UserMenuBtn.stories.ts +53 -31
- package/src/components/UserMenuBtn/UserMenuBtn.vue +4 -1
- package/src/components/UserMenuBtn/accessibilite/Accessibility.mdx +72 -8
- package/src/components/index.ts +2 -0
- package/src/components/types.ts +4 -0
- package/src/composables/date/tests/useDateInitialization.spec.ts +22 -1
- package/src/composables/date/useDateInitializationDayjs.ts +4 -7
- package/src/composables/date/useDatePickerAccessibility.ts +2 -3
- package/src/composables/useFilterable/useFilterable.spec.ts +52 -2
- package/src/composables/useFilterable/useFilterable.ts +7 -1
- package/src/composables/useFormFieldErrorHandling.ts +11 -2
- package/src/designTokens/tokens/amelipro/apLightTheme.ts +27 -15
- package/src/designTokens/tokens/amelipro/apSemantic.ts +21 -15
- package/src/designTokens/tokens/cnam/cnamContextual.ts +6 -1
- package/src/designTokens/tokens/cnam/cnamLightTheme.ts +28 -15
- package/src/designTokens/tokens/cnam/cnamSemantic.ts +21 -14
- package/src/designTokens/tokens/pa/paLightTheme.ts +27 -16
- package/src/designTokens/tokens/pa/paSemantic.ts +19 -13
- package/src/directives/rgaaSvgFix.ts +2 -7
- package/src/main.ts +2 -0
- package/src/stories/Accessibilite/{Audit → AuditEtContreAudit}/Exemptions-derogations.mdx +1 -1
- package/src/stories/Accessibilite/AuditEtContreAudit/Introduction.mdx +188 -0
- package/src/stories/Accessibilite/{Audit → AuditEtContreAudit}/RGAA.mdx +1 -1
- package/src/stories/Accessibilite/Introduction.mdx +22 -3
- package/src/stories/Accessibilite/KitDePreAudit/Introduction.mdx +21 -22
- package/src/stories/DeprecationNotice/DeprecationNotice.ts +41 -0
- package/src/stories/DesignTokens/ColorDisplay.vue +12 -5
- package/src/stories/DesignTokens/Colors.mdx +8 -59
- package/src/stories/DesignTokens/colors.stories.ts +1862 -1071
- package/src/stories/EcoConception/EcoGuideComponent.vue +10 -4
- package/dist/main-CWniLr0s.js +0 -36919
|
@@ -8,28 +8,85 @@ import { apColorsTokens2026 } from '@/designTokens/tokens/amelipro/apColors2026'
|
|
|
8
8
|
import { apColorsTokens } from '@/designTokens/tokens/amelipro/apColors'
|
|
9
9
|
import ColorDisplay from './ColorDisplay.vue'
|
|
10
10
|
import ColorIntegrationExample from './ColorIntegrationExample.vue'
|
|
11
|
-
|
|
11
|
+
import { h } from 'vue'
|
|
12
|
+
import { useTheme } from 'vuetify'
|
|
12
13
|
import type { StoryObj } from '@storybook/vue3'
|
|
13
14
|
import { computed } from 'vue'
|
|
15
|
+
|
|
16
|
+
function createSection(
|
|
17
|
+
title: string,
|
|
18
|
+
stories: StoryObj[],
|
|
19
|
+
hideOn?: string,
|
|
20
|
+
) {
|
|
21
|
+
return {
|
|
22
|
+
setup() {
|
|
23
|
+
const theme = useTheme()
|
|
24
|
+
return () => {
|
|
25
|
+
if (hideOn && theme.global.name.value === hideOn) {
|
|
26
|
+
return h('div')
|
|
27
|
+
}
|
|
28
|
+
return h('section', [
|
|
29
|
+
h(
|
|
30
|
+
'h2',
|
|
31
|
+
{
|
|
32
|
+
style: `
|
|
33
|
+
border-bottom: 1px solid rgba(38, 85, 115, 0.15);
|
|
34
|
+
color: rgb(46, 52, 56);
|
|
35
|
+
font-family: 'Nunito Sans', -apple-system, '.SFNSText-Regular', 'San Francisco', BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
36
|
+
`,
|
|
37
|
+
},
|
|
38
|
+
title,
|
|
39
|
+
),
|
|
40
|
+
...stories.map((story) => {
|
|
41
|
+
if (story.render) {
|
|
42
|
+
const component = story.render(story.args ?? {}, {} as Parameters<typeof story.render>[1])
|
|
43
|
+
return h(component)
|
|
44
|
+
}
|
|
45
|
+
return h('div')
|
|
46
|
+
}),
|
|
47
|
+
])
|
|
48
|
+
}
|
|
49
|
+
if (theme.global.name.value === 'ap2026') return
|
|
50
|
+
},
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
14
54
|
export default {
|
|
15
55
|
title: 'Design Tokens/Couleurs',
|
|
16
56
|
}
|
|
17
57
|
|
|
58
|
+
type ThemeKey = 'cnam' | 'pa' | 'ap' | 'ap2026'
|
|
59
|
+
|
|
18
60
|
export const Theme: StoryObj = {
|
|
19
61
|
render: () => {
|
|
20
62
|
return {
|
|
21
63
|
setup() {
|
|
22
|
-
const theme = computed(() =>
|
|
64
|
+
const theme = computed<ThemeKey>(() => {
|
|
65
|
+
const value
|
|
66
|
+
= typeof window !== 'undefined' ? localStorage.getItem('storybook-theme') : 'cnam'
|
|
67
|
+
return (value as ThemeKey) ?? 'cnam'
|
|
68
|
+
})
|
|
69
|
+
|
|
70
|
+
const themeLabels: Record<ThemeKey, string> = {
|
|
71
|
+
cnam: 'Assurance Maladie',
|
|
72
|
+
pa: 'Portail Agent',
|
|
73
|
+
ap: 'AmeliPro',
|
|
74
|
+
ap2026: 'AmeliPro',
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
const themeLabel = computed(() => themeLabels[theme.value])
|
|
78
|
+
|
|
23
79
|
return {
|
|
24
|
-
|
|
80
|
+
themeLabel,
|
|
25
81
|
}
|
|
26
82
|
},
|
|
27
83
|
template: `
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
84
|
+
<p style="font-size: 14px; margin: 16px 0; line-height: 24px; color: rgb(46, 52, 56);">
|
|
85
|
+
Les couleurs contribuent à l’identification de nos applications ou services
|
|
86
|
+
et font partie intégrante de la marque <b>{{ themeLabel }}</b>.
|
|
87
|
+
Elles assurent l’homogénéité graphique des interfaces.
|
|
88
|
+
</p>
|
|
89
|
+
`,
|
|
33
90
|
}
|
|
34
91
|
},
|
|
35
92
|
tags: ['!dev'],
|
|
@@ -43,13 +100,13 @@ export const ColorIntegration: StoryObj = {
|
|
|
43
100
|
tags: ['!dev'],
|
|
44
101
|
}
|
|
45
102
|
|
|
46
|
-
export const
|
|
103
|
+
export const ColorBase: StoryObj = {
|
|
47
104
|
render: () => {
|
|
48
105
|
return {
|
|
49
106
|
components: { ColorDisplay },
|
|
50
107
|
setup() {
|
|
51
|
-
const colorTitle = '
|
|
52
|
-
const colorTitleLevel =
|
|
108
|
+
const colorTitle = ''
|
|
109
|
+
const colorTitleLevel = 3
|
|
53
110
|
const cnamColors = {
|
|
54
111
|
'primary': cnamLightTheme.primary,
|
|
55
112
|
'secondary': cnamLightTheme.secondary,
|
|
@@ -109,30 +166,28 @@ export const Base: StoryObj = {
|
|
|
109
166
|
tags: ['!dev'],
|
|
110
167
|
}
|
|
111
168
|
|
|
112
|
-
export const
|
|
169
|
+
export const ColorPrimary: StoryObj = {
|
|
113
170
|
render: () => {
|
|
114
171
|
return {
|
|
115
172
|
components: { ColorDisplay },
|
|
116
173
|
setup() {
|
|
117
|
-
const colorTitle = '
|
|
118
|
-
const colorTitleLevel =
|
|
174
|
+
const colorTitle = 'Accent Primary'
|
|
175
|
+
const colorTitleLevel = 3
|
|
176
|
+
const colorDescription = 'Ces couleurs sont à utiliser pour mettre en avant des containers de manière marquée.'
|
|
119
177
|
const cnamColors = {
|
|
120
|
-
accent: cnamLightTheme.
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
dark: cnamLightTheme.dark,
|
|
178
|
+
'accent-primary-light': cnamLightTheme.accentPrimaryLight,
|
|
179
|
+
'accent-primary': cnamLightTheme.accentPrimary,
|
|
180
|
+
'accent-primary-contrasted': cnamLightTheme.accentPrimaryContrasted,
|
|
124
181
|
}
|
|
125
182
|
const paColors = {
|
|
126
|
-
accent: paLightTheme.
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
dark: paLightTheme.dark,
|
|
183
|
+
'accent-primary-light': paLightTheme.accentPrimaryLight,
|
|
184
|
+
'accent-primary': paLightTheme.accentPrimary,
|
|
185
|
+
'accent-primary-contrasted': paLightTheme.accentPrimaryContrasted,
|
|
130
186
|
}
|
|
131
187
|
const apColors = {
|
|
132
|
-
accent: apLightTheme.
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
dark: apLightTheme.dark,
|
|
188
|
+
'accent-primary-light': apLightTheme.accentPrimaryLight,
|
|
189
|
+
'accent-primary': apLightTheme.accentPrimary,
|
|
190
|
+
'accent-primary-contrasted': apLightTheme.accentPrimaryContrasted,
|
|
136
191
|
}
|
|
137
192
|
const apColors2026 = {}
|
|
138
193
|
return {
|
|
@@ -141,6 +196,7 @@ export const Others: StoryObj = {
|
|
|
141
196
|
apColors,
|
|
142
197
|
apColors2026,
|
|
143
198
|
colorTitle,
|
|
199
|
+
colorDescription,
|
|
144
200
|
colorTitleLevel,
|
|
145
201
|
}
|
|
146
202
|
},
|
|
@@ -153,60 +209,37 @@ export const Others: StoryObj = {
|
|
|
153
209
|
:apColors="apColors"
|
|
154
210
|
:apColors2026="apColors2026"
|
|
155
211
|
:colorTitle="colorTitle"
|
|
156
|
-
|
|
157
|
-
|
|
212
|
+
:colorDescription="colorDescription"
|
|
213
|
+
:colorTitleLevel="colorTitleLevel"
|
|
214
|
+
/>
|
|
158
215
|
`,
|
|
159
216
|
}
|
|
160
217
|
},
|
|
161
218
|
tags: ['!dev'],
|
|
162
219
|
}
|
|
163
220
|
|
|
164
|
-
export const
|
|
221
|
+
export const ColorSecondary: StoryObj = {
|
|
165
222
|
render: () => {
|
|
166
223
|
return {
|
|
167
224
|
components: { ColorDisplay },
|
|
168
225
|
setup() {
|
|
169
|
-
const colorTitle = '
|
|
170
|
-
const displayEmptyColors = false
|
|
226
|
+
const colorTitle = 'Accent Secondary'
|
|
171
227
|
const colorTitleLevel = 3
|
|
228
|
+
const colorDescription = 'Ces couleurs sont à utiliser pour mettre en avant des containers de manière marquée.'
|
|
172
229
|
const cnamColors = {
|
|
173
|
-
'
|
|
174
|
-
'
|
|
175
|
-
'
|
|
176
|
-
'orange-darken-20': cnamColorsTokens.orange.darken20,
|
|
177
|
-
'orange-base': cnamColorsTokens.orange.base,
|
|
178
|
-
'orange-lighten-20': cnamColorsTokens.orange.lighten20,
|
|
179
|
-
'orange-lighten-40': cnamColorsTokens.orange.lighten40,
|
|
180
|
-
'orange-lighten-60': cnamColorsTokens.orange.lighten60,
|
|
181
|
-
'orange-lighten-80': cnamColorsTokens.orange.lighten80,
|
|
182
|
-
'orange-lighten-90': cnamColorsTokens.orange.lighten90,
|
|
183
|
-
'orange-lighten-97': cnamColorsTokens.orange.lighten97,
|
|
230
|
+
'accent-secondary-light': cnamLightTheme.accentSecondaryLight,
|
|
231
|
+
'accent-secondary': cnamLightTheme.accentSecondary,
|
|
232
|
+
'accent-secondarys-contrasted': cnamLightTheme.accentSecondaryContrasted,
|
|
184
233
|
}
|
|
185
234
|
const paColors = {
|
|
186
|
-
'
|
|
187
|
-
'
|
|
188
|
-
'
|
|
189
|
-
'orange-darken-20': paColorsTokens.orange.darken20,
|
|
190
|
-
'orange-base': paColorsTokens.orange.base,
|
|
191
|
-
'orange-lighten-20': paColorsTokens.orange.lighten20,
|
|
192
|
-
'orange-lighten-40': paColorsTokens.orange.lighten40,
|
|
193
|
-
'orange-lighten-60': paColorsTokens.orange.lighten60,
|
|
194
|
-
'orange-lighten-80': paColorsTokens.orange.lighten80,
|
|
195
|
-
'orange-lighten-90': paColorsTokens.orange.lighten90,
|
|
196
|
-
'orange-lighten-97': paColorsTokens.orange.lighten97,
|
|
235
|
+
'accent-secondary-light': paLightTheme.accentSecondaryLight,
|
|
236
|
+
'accent-secondary': paLightTheme.accentSecondary,
|
|
237
|
+
'accent-secondarys-contrasted': paLightTheme.accentSecondaryContrasted,
|
|
197
238
|
}
|
|
198
239
|
const apColors = {
|
|
199
|
-
'
|
|
200
|
-
'
|
|
201
|
-
'
|
|
202
|
-
'amber-darken-20': apColorsTokens.amber.darken20,
|
|
203
|
-
'amber-base': apColorsTokens.amber.base,
|
|
204
|
-
'amber-lighten-20': apColorsTokens.amber.lighten20,
|
|
205
|
-
'amber-lighten-40': apColorsTokens.amber.lighten40,
|
|
206
|
-
'amber-lighten-60': apColorsTokens.amber.lighten60,
|
|
207
|
-
'amber-lighten-80': apColorsTokens.amber.lighten80,
|
|
208
|
-
'amber-lighten-90': apColorsTokens.amber.lighten90,
|
|
209
|
-
'amber-lighten-97': apColorsTokens.amber.lighten97,
|
|
240
|
+
'accent-secondary-light': apLightTheme.accentSecondaryLight,
|
|
241
|
+
'accent-secondary': apLightTheme.accentSecondary,
|
|
242
|
+
'accent-secondarys-contrasted': apLightTheme.accentSecondaryContrasted,
|
|
210
243
|
}
|
|
211
244
|
const apColors2026 = {}
|
|
212
245
|
return {
|
|
@@ -215,162 +248,135 @@ export const PaletteOrange: StoryObj = {
|
|
|
215
248
|
apColors,
|
|
216
249
|
apColors2026,
|
|
217
250
|
colorTitle,
|
|
251
|
+
colorDescription,
|
|
218
252
|
colorTitleLevel,
|
|
219
|
-
displayEmptyColors,
|
|
220
253
|
}
|
|
221
254
|
},
|
|
222
255
|
template: `
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
256
|
+
<ColorDisplay
|
|
257
|
+
displayEmptyColors
|
|
258
|
+
colorCategory="base"
|
|
259
|
+
:cnamColors="cnamColors"
|
|
260
|
+
:paColors="paColors"
|
|
261
|
+
:apColors="apColors"
|
|
262
|
+
:apColors2026="apColors2026"
|
|
263
|
+
:colorTitle="colorTitle"
|
|
264
|
+
:colorDescription="colorDescription"
|
|
265
|
+
:colorTitleLevel="colorTitleLevel"
|
|
266
|
+
/>
|
|
267
|
+
`,
|
|
234
268
|
}
|
|
235
269
|
},
|
|
236
270
|
tags: ['!dev'],
|
|
237
271
|
}
|
|
238
272
|
|
|
239
|
-
export const
|
|
273
|
+
export const ColorAlternatives: StoryObj = {
|
|
240
274
|
render: () => {
|
|
241
275
|
return {
|
|
242
276
|
components: { ColorDisplay },
|
|
243
277
|
setup() {
|
|
244
|
-
const colorTitle = '
|
|
278
|
+
const colorTitle = 'Accent Alternatives'
|
|
245
279
|
const colorTitleLevel = 3
|
|
246
|
-
const
|
|
247
|
-
const cnamColors = {
|
|
248
|
-
|
|
249
|
-
const apColors = {
|
|
250
|
-
'red-darken-80': apColorsTokens.red.darken80,
|
|
251
|
-
'red-darken-60': apColorsTokens.red.darken60,
|
|
252
|
-
'red-darken-40': apColorsTokens.red.darken40,
|
|
253
|
-
'red-darken-20': apColorsTokens.red.darken20,
|
|
254
|
-
'red-base': apColorsTokens.red.base,
|
|
255
|
-
'red-lighten-20': apColorsTokens.red.lighten20,
|
|
256
|
-
'red-lighten-40': apColorsTokens.red.lighten40,
|
|
257
|
-
'red-lighten-60': apColorsTokens.red.lighten60,
|
|
258
|
-
'red-lighten-80': apColorsTokens.red.lighten80,
|
|
259
|
-
'red-lighten-90': apColorsTokens.red.lighten90,
|
|
260
|
-
'red-lighten-97': apColorsTokens.red.lighten97,
|
|
280
|
+
const colorDescription = 'Cette couleur est à utiliser pour mettre en avant des containers de manière marquée.'
|
|
281
|
+
const cnamColors = {
|
|
282
|
+
'accent-alt': cnamLightTheme.accentAlt,
|
|
261
283
|
}
|
|
262
|
-
const
|
|
263
|
-
'
|
|
264
|
-
'ap-red-darken-1': apColorsTokens2026.apRed.darken1,
|
|
265
|
-
'ap-red': apColorsTokens2026.apRed.base,
|
|
266
|
-
'ap-red-lighten-1': apColorsTokens2026.apRed.lighten1,
|
|
267
|
-
'ap-red-lighten-2': apColorsTokens2026.apRed.lighten2,
|
|
268
|
-
'ap-red-lighten-3': apColorsTokens2026.apRed.lighten3,
|
|
269
|
-
'ap-red-lighten-4': apColorsTokens2026.apRed.lighten4,
|
|
284
|
+
const paColors = {
|
|
285
|
+
'accent-alt': paLightTheme.accentAlt,
|
|
270
286
|
}
|
|
287
|
+
const apColors = {
|
|
288
|
+
'accent-alt': apLightTheme.accentAlt,
|
|
289
|
+
}
|
|
290
|
+
const apColors2026 = {}
|
|
271
291
|
return {
|
|
272
|
-
displayEmptyColors,
|
|
273
292
|
cnamColors,
|
|
274
293
|
paColors,
|
|
275
294
|
apColors,
|
|
276
295
|
apColors2026,
|
|
277
296
|
colorTitle,
|
|
297
|
+
colorDescription,
|
|
278
298
|
colorTitleLevel,
|
|
279
299
|
}
|
|
280
300
|
},
|
|
281
301
|
template: `
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
302
|
+
<ColorDisplay
|
|
303
|
+
displayEmptyColors
|
|
304
|
+
colorCategory="base"
|
|
305
|
+
:cnamColors="cnamColors"
|
|
306
|
+
:paColors="paColors"
|
|
307
|
+
:apColors="apColors"
|
|
308
|
+
:apColors2026="apColors2026"
|
|
309
|
+
:colorTitle="colorTitle"
|
|
310
|
+
:colorDescription="colorDescription"
|
|
311
|
+
:colorTitleLevel="colorTitleLevel"
|
|
312
|
+
/>
|
|
313
|
+
`,
|
|
293
314
|
}
|
|
294
315
|
},
|
|
295
316
|
tags: ['!dev'],
|
|
296
317
|
}
|
|
297
318
|
|
|
298
|
-
export const
|
|
319
|
+
export const Interactive: StoryObj = {
|
|
299
320
|
render: () => {
|
|
300
321
|
return {
|
|
301
322
|
components: { ColorDisplay },
|
|
302
323
|
setup() {
|
|
303
|
-
const colorTitle = '
|
|
324
|
+
const colorTitle = ''
|
|
325
|
+
const colorDescription = 'Ces couleurs sont à utiliser pour les fonds des éléments interactifs de sélection (item de liste sélectionnable, carte sélectionnable,...)'
|
|
326
|
+
const displayEmptyColors = false
|
|
304
327
|
const colorTitleLevel = 3
|
|
305
328
|
const cnamColors = {
|
|
306
|
-
'
|
|
307
|
-
'
|
|
308
|
-
'
|
|
309
|
-
'
|
|
310
|
-
'
|
|
311
|
-
'
|
|
312
|
-
'
|
|
313
|
-
'
|
|
314
|
-
'yellow-lighten-80': cnamColorsTokens.yellow.lighten80,
|
|
315
|
-
'yellow-lighten-90': cnamColorsTokens.yellow.lighten90,
|
|
316
|
-
'yellow-lighten-97': cnamColorsTokens.yellow.lighten97,
|
|
329
|
+
'interactive-selection-enabled': cnamLightTheme.interactiveSelectionEnabled,
|
|
330
|
+
'interactive-selection-hover': cnamLightTheme.interactiveSelectionHover,
|
|
331
|
+
'interactive-selection-pressed': cnamLightTheme.interactiveSelectionPressed,
|
|
332
|
+
'interactive-selection-selected': cnamLightTheme.interactiveSelectionSelected,
|
|
333
|
+
'interactive-selection-hover-on-selected': cnamLightTheme.interactiveSelectionHoverOnSelected,
|
|
334
|
+
'interactive-selection-selected-accent': cnamLightTheme.interactiveSelectionSelectedAccent,
|
|
335
|
+
'interactive-selection-hover-on-selected-accent': cnamLightTheme.interactiveSelectionHoverOnSelectedAccent,
|
|
336
|
+
'interactive-selection-disabled': cnamLightTheme.interactiveSelectionDisabled,
|
|
317
337
|
}
|
|
318
338
|
const paColors = {
|
|
319
|
-
'
|
|
320
|
-
'
|
|
321
|
-
'
|
|
322
|
-
'
|
|
323
|
-
'
|
|
324
|
-
'
|
|
325
|
-
'
|
|
326
|
-
'
|
|
327
|
-
'yellow-lighten-80': paColorsTokens.yellow.lighten80,
|
|
328
|
-
'yellow-lighten-90': paColorsTokens.yellow.lighten90,
|
|
329
|
-
'yellow-lighten-97': paColorsTokens.yellow.lighten97,
|
|
339
|
+
'interactive-selection-enabled': paLightTheme.interactiveSelectionEnabled,
|
|
340
|
+
'interactive-selection-hover': paLightTheme.interactiveSelectionHover,
|
|
341
|
+
'interactive-selection-pressed': paLightTheme.interactiveSelectionPressed,
|
|
342
|
+
'interactive-selection-selected': paLightTheme.interactiveSelectionSelected,
|
|
343
|
+
'interactive-selection-hover-on-selected': paLightTheme.interactiveSelectionHoverOnSelected,
|
|
344
|
+
'interactive-selection-selected-accent': paLightTheme.interactiveSelectionSelectedAccent,
|
|
345
|
+
'interactive-selection-hover-on-selected-accent': paLightTheme.interactiveSelectionHoverOnSelectedAccent,
|
|
346
|
+
'interactive-selection-disabled': paLightTheme.interactiveSelectionDisabled,
|
|
330
347
|
}
|
|
331
348
|
const apColors = {
|
|
332
|
-
'
|
|
333
|
-
'
|
|
334
|
-
'
|
|
335
|
-
'
|
|
336
|
-
'
|
|
337
|
-
'
|
|
338
|
-
'
|
|
339
|
-
'
|
|
340
|
-
'yellow-lighten-80': apColorsTokens.yellow.lighten80,
|
|
341
|
-
'yellow-lighten-90': apColorsTokens.yellow.lighten90,
|
|
342
|
-
'yellow-lighten-97': apColorsTokens.yellow.lighten97,
|
|
343
|
-
}
|
|
344
|
-
const apColors2026 = {
|
|
345
|
-
'ap-yellow-darken-4': apColorsTokens2026.apYellow.darken4,
|
|
346
|
-
'ap-yellow-darken-3': apColorsTokens2026.apYellow.darken3,
|
|
347
|
-
'ap-yellow-darken-2': apColorsTokens2026.apYellow.darken2,
|
|
348
|
-
'ap-yellow-darken-1': apColorsTokens2026.apYellow.darken1,
|
|
349
|
-
'ap-yellow': apColorsTokens2026.apYellow.base,
|
|
350
|
-
'ap-yellow-lighten-1': apColorsTokens2026.apYellow.lighten1,
|
|
351
|
-
'ap-yellow-lighten-2': apColorsTokens2026.apYellow.lighten2,
|
|
352
|
-
'ap-yellow-lighten-3': apColorsTokens2026.apYellow.lighten3,
|
|
353
|
-
'ap-yellow-lighten-4': apColorsTokens2026.apYellow.lighten4,
|
|
354
|
-
'ap-yellow-lighten-5': apColorsTokens2026.apYellow.lighten5,
|
|
349
|
+
'interactive-selection-enabled': apLightTheme.interactiveSelectionEnabled,
|
|
350
|
+
'interactive-selection-hover': apLightTheme.interactiveSelectionHover,
|
|
351
|
+
'interactive-selection-pressed': apLightTheme.interactiveSelectionPressed,
|
|
352
|
+
'interactive-selection-selected': apLightTheme.interactiveSelectionSelected,
|
|
353
|
+
'interactive-selection-hover-on-selected': apLightTheme.interactiveSelectionHoverOnSelected,
|
|
354
|
+
'interactive-selection-selected-accent': apLightTheme.interactiveSelectionSelectedAccent,
|
|
355
|
+
'interactive-selection-hover-on-selected-accent': apLightTheme.interactiveSelectionHoverOnSelectedAccent,
|
|
356
|
+
'interactive-selection-disabled': apLightTheme.interactiveSelectionDisabled,
|
|
355
357
|
}
|
|
358
|
+
const apColors2026 = {}
|
|
356
359
|
return {
|
|
357
360
|
cnamColors,
|
|
358
361
|
paColors,
|
|
359
362
|
apColors,
|
|
360
|
-
apColors2026
|
|
363
|
+
apColors2026,
|
|
361
364
|
colorTitle,
|
|
365
|
+
colorDescription,
|
|
362
366
|
colorTitleLevel,
|
|
367
|
+
displayEmptyColors,
|
|
363
368
|
}
|
|
364
369
|
},
|
|
365
370
|
template: `
|
|
366
371
|
<ColorDisplay
|
|
367
|
-
displayEmptyColors
|
|
368
|
-
colorCategory="
|
|
372
|
+
:displayEmptyColors="displayEmptyColors"
|
|
373
|
+
colorCategory="interactive"
|
|
369
374
|
:cnamColors="cnamColors"
|
|
370
375
|
:paColors="paColors"
|
|
371
376
|
:apColors="apColors"
|
|
372
377
|
:apColors2026="apColors2026"
|
|
373
378
|
:colorTitle="colorTitle"
|
|
379
|
+
:colorDescription="colorDescription"
|
|
374
380
|
:colorTitleLevel="colorTitleLevel"
|
|
375
381
|
/>
|
|
376
382
|
`,
|
|
@@ -379,50 +385,83 @@ export const PaletteYellow: StoryObj = {
|
|
|
379
385
|
tags: ['!dev'],
|
|
380
386
|
}
|
|
381
387
|
|
|
382
|
-
export const
|
|
388
|
+
export const ColorBaseSection = {
|
|
389
|
+
render() {
|
|
390
|
+
return h(createSection('Couleurs de base', [
|
|
391
|
+
ColorBase,
|
|
392
|
+
]))
|
|
393
|
+
},
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
export const AccentSection = {
|
|
397
|
+
render() {
|
|
398
|
+
return h(createSection('Accent', [
|
|
399
|
+
ColorPrimary,
|
|
400
|
+
ColorSecondary,
|
|
401
|
+
ColorAlternatives,
|
|
402
|
+
], 'ap2026'))
|
|
403
|
+
},
|
|
404
|
+
}
|
|
405
|
+
export const InteractiveSection = {
|
|
406
|
+
render() {
|
|
407
|
+
return h(createSection('Interactive', [
|
|
408
|
+
Interactive,
|
|
409
|
+
], 'ap2026'))
|
|
410
|
+
},
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
export const BorderBase: StoryObj = {
|
|
383
414
|
render: () => {
|
|
384
415
|
return {
|
|
385
416
|
components: { ColorDisplay },
|
|
386
417
|
setup() {
|
|
387
|
-
const colorTitle = '
|
|
388
|
-
const displayEmptyColors = false
|
|
418
|
+
const colorTitle = 'Base'
|
|
389
419
|
const colorTitleLevel = 3
|
|
420
|
+
const colorDescription = 'Ce sont les couleurs les plus courantes à utiliser pour les contours de tous les éléments d’interface (quand nécessaire)'
|
|
421
|
+
const cnamColors = {
|
|
422
|
+
'border-base': cnamLightTheme.borderBase,
|
|
423
|
+
'border-darker': cnamLightTheme.borderDarker,
|
|
424
|
+
'border-subdued': cnamLightTheme.borderSubdued,
|
|
425
|
+
'border-disabled': cnamLightTheme.borderDisabled,
|
|
426
|
+
'border-disabled-on-dark': cnamLightTheme.borderDisabledOnDark,
|
|
427
|
+
}
|
|
428
|
+
const paColors = {
|
|
429
|
+
'border-base': paLightTheme.borderBase,
|
|
430
|
+
'border-darker': paLightTheme.borderDarker,
|
|
431
|
+
'border-subdued': paLightTheme.borderSubdued,
|
|
432
|
+
'border-disabled': paLightTheme.borderDisabled,
|
|
433
|
+
'border-disabled-on-dark': paLightTheme.borderDisabledOnDark,
|
|
434
|
+
}
|
|
390
435
|
const apColors = {
|
|
391
|
-
'
|
|
392
|
-
'
|
|
393
|
-
'
|
|
394
|
-
'
|
|
395
|
-
'
|
|
396
|
-
|
|
397
|
-
'forest-green-lighten-40': apColorsTokens.forestGreen.lighten40,
|
|
398
|
-
'forest-green-lighten-60': apColorsTokens.forestGreen.lighten60,
|
|
399
|
-
'forest-green-lighten-80': apColorsTokens.forestGreen.lighten80,
|
|
400
|
-
'forest-green-lighten-90': apColorsTokens.forestGreen.lighten90,
|
|
401
|
-
'forest-green-lighten-97': apColorsTokens.forestGreen.lighten97,
|
|
436
|
+
'border-base': apLightTheme.borderBase,
|
|
437
|
+
'border-darker': apLightTheme.borderDarker,
|
|
438
|
+
'border-subdued': apLightTheme.borderSubdued,
|
|
439
|
+
'border-disabled': apLightTheme.borderDisabled,
|
|
440
|
+
'border-disabled-on-dark': apLightTheme.borderDisabledOnDark,
|
|
441
|
+
|
|
402
442
|
}
|
|
403
|
-
const cnamColors = {}
|
|
404
|
-
const paColors = {}
|
|
405
443
|
const apColors2026 = {}
|
|
406
444
|
return {
|
|
407
|
-
displayEmptyColors,
|
|
408
445
|
cnamColors,
|
|
409
446
|
paColors,
|
|
410
447
|
apColors,
|
|
411
448
|
apColors2026,
|
|
412
449
|
colorTitle,
|
|
450
|
+
colorDescription,
|
|
413
451
|
colorTitleLevel,
|
|
414
452
|
}
|
|
415
453
|
},
|
|
416
454
|
template: `
|
|
417
455
|
<ColorDisplay
|
|
418
|
-
|
|
456
|
+
displayEmptyColors
|
|
457
|
+
colorCategory="border"
|
|
419
458
|
:cnamColors="cnamColors"
|
|
420
459
|
:paColors="paColors"
|
|
421
460
|
:apColors="apColors"
|
|
422
461
|
:apColors2026="apColors2026"
|
|
423
462
|
:colorTitle="colorTitle"
|
|
463
|
+
:colorDescription="colorDescription"
|
|
424
464
|
:colorTitleLevel="colorTitleLevel"
|
|
425
|
-
:displayEmptyColors="displayEmptyColors"
|
|
426
465
|
/>
|
|
427
466
|
`,
|
|
428
467
|
}
|
|
@@ -430,356 +469,253 @@ export const PaletteForestGreen: StoryObj = {
|
|
|
430
469
|
tags: ['!dev'],
|
|
431
470
|
}
|
|
432
471
|
|
|
433
|
-
export const
|
|
472
|
+
export const BorderPrimary: StoryObj = {
|
|
434
473
|
render: () => {
|
|
435
474
|
return {
|
|
436
475
|
components: { ColorDisplay },
|
|
437
476
|
setup() {
|
|
438
|
-
const colorTitle = '
|
|
477
|
+
const colorTitle = 'Accent Primary'
|
|
478
|
+
const colorDescription = 'Ce sont les couleurs à utiliser pour mettre en exergue des éléments par leur contour.'
|
|
439
479
|
const colorTitleLevel = 3
|
|
440
480
|
const cnamColors = {
|
|
441
|
-
'
|
|
442
|
-
'
|
|
443
|
-
'
|
|
444
|
-
'green-darken-20': cnamColorsTokens.green.darken20,
|
|
445
|
-
'green-base': cnamColorsTokens.green.base,
|
|
446
|
-
'green-lighten-20': cnamColorsTokens.green.lighten20,
|
|
447
|
-
'green-lighten-40': cnamColorsTokens.green.lighten40,
|
|
448
|
-
'green-lighten-60': cnamColorsTokens.green.lighten60,
|
|
449
|
-
'green-lighten-80': cnamColorsTokens.green.lighten80,
|
|
450
|
-
'green-lighten-90': cnamColorsTokens.green.lighten90,
|
|
451
|
-
'green-lighten-97': cnamColorsTokens.green.lighten97,
|
|
481
|
+
'border-accent-primary': cnamLightTheme.borderAccentPrimary,
|
|
482
|
+
'border-accent-primary-contrasted': cnamLightTheme.borderAccentPrimaryContrasted,
|
|
483
|
+
'border-accent-primary-on-dark': cnamLightTheme.borderAccentPrimaryOnDark,
|
|
452
484
|
}
|
|
453
485
|
const paColors = {
|
|
454
|
-
'
|
|
455
|
-
'
|
|
456
|
-
'
|
|
457
|
-
'green-darken-20': paColorsTokens.green.darken20,
|
|
458
|
-
'green-base': paColorsTokens.green.base,
|
|
459
|
-
'green-lighten-20': paColorsTokens.green.lighten20,
|
|
460
|
-
'green-lighten-40': paColorsTokens.green.lighten40,
|
|
461
|
-
'green-lighten-60': paColorsTokens.green.lighten60,
|
|
462
|
-
'green-lighten-80': paColorsTokens.green.lighten80,
|
|
463
|
-
'green-lighten-90': paColorsTokens.green.lighten90,
|
|
464
|
-
'green-lighten-97': paColorsTokens.green.lighten97,
|
|
486
|
+
'border-accent-primary': paLightTheme.borderAccentPrimary,
|
|
487
|
+
'border-accent-primary-contrasted': paLightTheme.borderAccentPrimaryContrasted,
|
|
488
|
+
'border-accent-primary-on-dark': paLightTheme.borderAccentPrimaryOnDark,
|
|
465
489
|
}
|
|
466
490
|
const apColors = {
|
|
467
|
-
'
|
|
468
|
-
'
|
|
469
|
-
'
|
|
470
|
-
'green-darken-20': apColorsTokens.green.darken20,
|
|
471
|
-
'green-base': apColorsTokens.green.base,
|
|
472
|
-
'green-lighten-20': apColorsTokens.green.lighten20,
|
|
473
|
-
'green-lighten-40': apColorsTokens.green.lighten40,
|
|
474
|
-
'green-lighten-60': apColorsTokens.green.lighten60,
|
|
475
|
-
'green-lighten-80': apColorsTokens.green.lighten80,
|
|
476
|
-
'green-lighten-90': apColorsTokens.green.lighten90,
|
|
477
|
-
'green-lighten-97': apColorsTokens.green.lighten97,
|
|
478
|
-
}
|
|
479
|
-
const apColors2026 = {
|
|
480
|
-
'ap-green-darken-2': apColorsTokens2026.apGreen.darken2,
|
|
481
|
-
'ap-green-darken-1': apColorsTokens2026.apGreen.darken1,
|
|
482
|
-
'ap-green': apColorsTokens2026.apGreen.base,
|
|
483
|
-
'ap-green-lighten-1': apColorsTokens2026.apGreen.lighten1,
|
|
484
|
-
'ap-green-lighten-2': apColorsTokens2026.apGreen.lighten2,
|
|
491
|
+
'border-accent-primary': apLightTheme.borderAccentPrimary,
|
|
492
|
+
'border-accent-primary-contrasted': apLightTheme.borderAccentPrimaryContrasted,
|
|
493
|
+
'border-accent-primary-on-dark': apLightTheme.borderAccentPrimaryOnDark,
|
|
485
494
|
}
|
|
495
|
+
const apColors2026 = {}
|
|
486
496
|
return {
|
|
487
497
|
cnamColors,
|
|
488
498
|
paColors,
|
|
489
499
|
apColors,
|
|
490
500
|
apColors2026,
|
|
491
501
|
colorTitle,
|
|
502
|
+
colorDescription,
|
|
492
503
|
colorTitleLevel,
|
|
493
504
|
}
|
|
494
505
|
},
|
|
495
506
|
template: `
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
+
<ColorDisplay
|
|
508
|
+
displayEmptyColors
|
|
509
|
+
colorCategory="border"
|
|
510
|
+
:cnamColors="cnamColors"
|
|
511
|
+
:paColors="paColors"
|
|
512
|
+
:apColors="apColors"
|
|
513
|
+
:apColors2026="apColors2026"
|
|
514
|
+
:colorTitle="colorTitle"
|
|
515
|
+
:colorDescription="colorDescription"
|
|
516
|
+
:colorTitleLevel="colorTitleLevel"
|
|
517
|
+
/>
|
|
518
|
+
`,
|
|
507
519
|
}
|
|
508
520
|
},
|
|
509
521
|
tags: ['!dev'],
|
|
510
522
|
}
|
|
511
523
|
|
|
512
|
-
export const
|
|
524
|
+
export const BorderSecondary: StoryObj = {
|
|
513
525
|
render: () => {
|
|
514
526
|
return {
|
|
515
527
|
components: { ColorDisplay },
|
|
516
528
|
setup() {
|
|
517
|
-
const colorTitle = '
|
|
529
|
+
const colorTitle = 'Accent Secondary'
|
|
530
|
+
const colorDescription = 'Ce sont les couleurs à utiliser pour mettre en exergue des éléments par leur contour.'
|
|
518
531
|
const colorTitleLevel = 3
|
|
519
532
|
const cnamColors = {
|
|
520
|
-
'
|
|
521
|
-
'
|
|
522
|
-
'turquoise-darken-40': cnamColorsTokens.turquoise.darken40,
|
|
523
|
-
'turquoise-darken-20': cnamColorsTokens.turquoise.darken20,
|
|
524
|
-
'turquoise-base': cnamColorsTokens.turquoise.base,
|
|
525
|
-
'turquoise-lighten-20': cnamColorsTokens.turquoise.lighten20,
|
|
526
|
-
'turquoise-lighten-40': cnamColorsTokens.turquoise.lighten40,
|
|
527
|
-
'turquoise-lighten-60': cnamColorsTokens.turquoise.lighten60,
|
|
528
|
-
'turquoise-lighten-80': cnamColorsTokens.turquoise.lighten80,
|
|
529
|
-
'turquoise-lighten-90': cnamColorsTokens.turquoise.lighten90,
|
|
530
|
-
'turquoise-lighten-97': cnamColorsTokens.turquoise.lighten97,
|
|
533
|
+
'border-accent-secondary': cnamLightTheme.borderAccentSecondary,
|
|
534
|
+
'border-accent-secondary-contrasted': cnamLightTheme.borderAccentSecondaryContrasted,
|
|
531
535
|
}
|
|
532
536
|
const paColors = {
|
|
533
|
-
'
|
|
534
|
-
'
|
|
535
|
-
'turquoise-darken-40': paColorsTokens.turquoise.darken40,
|
|
536
|
-
'turquoise-darken-20': paColorsTokens.turquoise.darken20,
|
|
537
|
-
'turquoise-base': paColorsTokens.turquoise.base,
|
|
538
|
-
'turquoise-lighten-20': paColorsTokens.turquoise.lighten20,
|
|
539
|
-
'turquoise-lighten-40': paColorsTokens.turquoise.lighten40,
|
|
540
|
-
'turquoise-lighten-60': paColorsTokens.turquoise.lighten60,
|
|
541
|
-
'turquoise-lighten-80': paColorsTokens.turquoise.lighten80,
|
|
542
|
-
'turquoise-lighten-90': paColorsTokens.turquoise.lighten90,
|
|
543
|
-
'turquoise-lighten-97': paColorsTokens.turquoise.lighten97,
|
|
537
|
+
'border-accent-secondary': paLightTheme.borderAccentSecondary,
|
|
538
|
+
'border-accent-secondary-contrasted': paLightTheme.borderAccentSecondaryContrasted,
|
|
544
539
|
}
|
|
545
540
|
const apColors = {
|
|
546
|
-
'
|
|
547
|
-
'
|
|
548
|
-
'turquoise-darken-40': apColorsTokens.turquoise.darken40,
|
|
549
|
-
'turquoise-darken-20': apColorsTokens.turquoise.darken20,
|
|
550
|
-
'turquoise-base': apColorsTokens.turquoise.base,
|
|
551
|
-
'turquoise-lighten-20': apColorsTokens.turquoise.lighten20,
|
|
552
|
-
'turquoise-lighten-40': apColorsTokens.turquoise.lighten40,
|
|
553
|
-
'turquoise-lighten-60': apColorsTokens.turquoise.lighten60,
|
|
554
|
-
'turquoise-lighten-80': apColorsTokens.turquoise.lighten80,
|
|
555
|
-
'turquoise-lighten-90': apColorsTokens.turquoise.lighten90,
|
|
556
|
-
'turquoise-lighten-97': apColorsTokens.turquoise.lighten97,
|
|
557
|
-
}
|
|
558
|
-
const apColors2026 = {
|
|
559
|
-
'ap-turquoise-darken-3': apColorsTokens2026.apTurquoise.darken3,
|
|
560
|
-
'ap-turquoise-darken-2': apColorsTokens2026.apTurquoise.darken2,
|
|
561
|
-
'ap-turquoise-darken-1': apColorsTokens2026.apTurquoise.darken1,
|
|
562
|
-
'ap-Turquoise': apColorsTokens2026.apTurquoise.base,
|
|
563
|
-
'ap-turquoise-lighten-1': apColorsTokens2026.apTurquoise.lighten1,
|
|
564
|
-
'ap-turquoise-lighten-2': apColorsTokens2026.apTurquoise.lighten2,
|
|
541
|
+
'border-accent-secondary': apLightTheme.borderAccentSecondary,
|
|
542
|
+
'border-accent-secondary-contrasted': apLightTheme.borderAccentSecondaryContrasted,
|
|
565
543
|
}
|
|
544
|
+
const apColors2026 = {}
|
|
566
545
|
return {
|
|
567
546
|
cnamColors,
|
|
568
547
|
paColors,
|
|
569
548
|
apColors,
|
|
570
549
|
apColors2026,
|
|
571
550
|
colorTitle,
|
|
551
|
+
colorDescription,
|
|
572
552
|
colorTitleLevel,
|
|
573
553
|
}
|
|
574
554
|
},
|
|
575
555
|
template: `
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
556
|
+
<ColorDisplay
|
|
557
|
+
displayEmptyColors
|
|
558
|
+
colorCategory="border"
|
|
559
|
+
:cnamColors="cnamColors"
|
|
560
|
+
:paColors="paColors"
|
|
561
|
+
:apColors="apColors"
|
|
562
|
+
:apColors2026="apColors2026"
|
|
563
|
+
:colorTitle="colorTitle"
|
|
564
|
+
:colorDescription="colorDescription"
|
|
565
|
+
:colorTitleLevel="colorTitleLevel"
|
|
566
|
+
/>
|
|
567
|
+
`,
|
|
587
568
|
}
|
|
588
569
|
},
|
|
589
570
|
tags: ['!dev'],
|
|
590
571
|
}
|
|
591
572
|
|
|
592
|
-
export const
|
|
573
|
+
export const BorderStates: StoryObj = {
|
|
593
574
|
render: () => {
|
|
594
575
|
return {
|
|
595
576
|
components: { ColorDisplay },
|
|
596
577
|
setup() {
|
|
597
|
-
const colorTitle = '
|
|
578
|
+
const colorTitle = 'States'
|
|
579
|
+
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.'
|
|
598
580
|
const colorTitleLevel = 3
|
|
599
581
|
const cnamColors = {
|
|
600
|
-
'
|
|
601
|
-
'
|
|
602
|
-
'
|
|
603
|
-
'
|
|
604
|
-
'blue-base': cnamColorsTokens.blue.base,
|
|
605
|
-
'blue-lighten-20': cnamColorsTokens.blue.lighten20,
|
|
606
|
-
'blue-lighten-40': cnamColorsTokens.blue.lighten40,
|
|
607
|
-
'blue-lighten-60': cnamColorsTokens.blue.lighten60,
|
|
608
|
-
'blue-lighten-80': cnamColorsTokens.blue.lighten80,
|
|
609
|
-
'blue-lighten-90': cnamColorsTokens.blue.lighten90,
|
|
610
|
-
'blue-lighten-97': cnamColorsTokens.blue.lighten97,
|
|
582
|
+
'border-info': cnamLightTheme.borderInfo,
|
|
583
|
+
'border-success': cnamLightTheme.borderSuccess,
|
|
584
|
+
'border-warning': cnamLightTheme.borderWarning,
|
|
585
|
+
'border-error': cnamLightTheme.borderError,
|
|
611
586
|
}
|
|
612
587
|
const paColors = {
|
|
613
|
-
'
|
|
614
|
-
'
|
|
615
|
-
'
|
|
616
|
-
'
|
|
617
|
-
'blue-base': paColorsTokens.blue.base,
|
|
618
|
-
'blue-lighten-20': paColorsTokens.blue.lighten20,
|
|
619
|
-
'blue-lighten-40': paColorsTokens.blue.lighten40,
|
|
620
|
-
'blue-lighten-60': paColorsTokens.blue.lighten60,
|
|
621
|
-
'blue-lighten-80': paColorsTokens.blue.lighten80,
|
|
622
|
-
'blue-lighten-90': paColorsTokens.blue.lighten90,
|
|
623
|
-
'blue-lighten-97': paColorsTokens.blue.lighten97,
|
|
588
|
+
'border-info': paLightTheme.borderInfo,
|
|
589
|
+
'border-success': paLightTheme.borderSuccess,
|
|
590
|
+
'border-warning': paLightTheme.borderWarning,
|
|
591
|
+
'border-error': paLightTheme.borderError,
|
|
624
592
|
}
|
|
625
593
|
const apColors = {
|
|
626
|
-
'
|
|
627
|
-
'
|
|
628
|
-
'
|
|
629
|
-
'
|
|
630
|
-
'blue-base': apColorsTokens.blue.base,
|
|
631
|
-
'blue-lighten-20': apColorsTokens.blue.lighten20,
|
|
632
|
-
'blue-lighten-40': apColorsTokens.blue.lighten40,
|
|
633
|
-
'blue-lighten-60': apColorsTokens.blue.lighten60,
|
|
634
|
-
'blue-lighten-80': apColorsTokens.blue.lighten80,
|
|
635
|
-
'blue-lighten-90': apColorsTokens.blue.lighten90,
|
|
636
|
-
'blue-lighten-97': apColorsTokens.blue.lighten97,
|
|
637
|
-
}
|
|
638
|
-
const apColors2026 = {
|
|
639
|
-
'ap-blue-darken-2': apColorsTokens2026.apBlue.darken2,
|
|
640
|
-
'ap-blue-darken-1': apColorsTokens2026.apBlue.darken1,
|
|
641
|
-
'ap-blue': apColorsTokens2026.apBlue.base,
|
|
642
|
-
'ap-blue-lighten-1': apColorsTokens2026.apBlue.lighten1,
|
|
643
|
-
'ap-blue-lighten-2': apColorsTokens2026.apBlue.lighten2,
|
|
644
|
-
'ap-blue-lighten-3': apColorsTokens2026.apBlue.lighten3,
|
|
645
|
-
'ap-blue-lighten-4': apColorsTokens2026.apBlue.lighten4,
|
|
594
|
+
'border-info': apLightTheme.borderInfo,
|
|
595
|
+
'border-success': apLightTheme.borderSuccess,
|
|
596
|
+
'border-warning': apLightTheme.borderWarning,
|
|
597
|
+
'border-error': apLightTheme.borderError,
|
|
646
598
|
}
|
|
599
|
+
const apColors2026 = {}
|
|
647
600
|
return {
|
|
648
601
|
cnamColors,
|
|
649
602
|
paColors,
|
|
650
603
|
apColors,
|
|
651
604
|
apColors2026,
|
|
652
605
|
colorTitle,
|
|
606
|
+
colorDescription,
|
|
653
607
|
colorTitleLevel,
|
|
654
608
|
}
|
|
655
609
|
},
|
|
656
610
|
template: `
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
611
|
+
<ColorDisplay
|
|
612
|
+
displayEmptyColors
|
|
613
|
+
colorCategory="border"
|
|
614
|
+
:cnamColors="cnamColors"
|
|
615
|
+
:paColors="paColors"
|
|
616
|
+
:apColors="apColors"
|
|
617
|
+
:apColors2026="apColors2026"
|
|
618
|
+
:colorTitle="colorTitle"
|
|
619
|
+
:colorDescription="colorDescription"
|
|
620
|
+
:colorTitleLevel="colorTitleLevel"
|
|
621
|
+
/>
|
|
622
|
+
`,
|
|
668
623
|
}
|
|
669
624
|
},
|
|
670
625
|
tags: ['!dev'],
|
|
671
626
|
}
|
|
672
627
|
|
|
673
|
-
export const
|
|
628
|
+
export const BorderSection = {
|
|
629
|
+
render() {
|
|
630
|
+
return h(createSection('Border', [
|
|
631
|
+
BorderBase,
|
|
632
|
+
BorderPrimary,
|
|
633
|
+
BorderSecondary,
|
|
634
|
+
BorderStates,
|
|
635
|
+
], 'ap2026'))
|
|
636
|
+
},
|
|
637
|
+
}
|
|
638
|
+
export const TextBase: StoryObj = {
|
|
674
639
|
render: () => {
|
|
675
640
|
return {
|
|
676
641
|
components: { ColorDisplay },
|
|
677
642
|
setup() {
|
|
678
|
-
const colorTitle = '
|
|
679
|
-
const displayEmptyColors = false
|
|
643
|
+
const colorTitle = 'Base'
|
|
680
644
|
const colorTitleLevel = 3
|
|
645
|
+
const colorDescription = 'Ce sont les couleurs les plus courantes à utiliser pour les textes.'
|
|
681
646
|
const cnamColors = {
|
|
682
|
-
'
|
|
683
|
-
'
|
|
684
|
-
'
|
|
685
|
-
'
|
|
686
|
-
'
|
|
687
|
-
'
|
|
688
|
-
'cyan-lighten-40': cnamColorsTokens.cyan.lighten40,
|
|
689
|
-
'cyan-lighten-60': cnamColorsTokens.cyan.lighten60,
|
|
690
|
-
'cyan-lighten-80': cnamColorsTokens.cyan.lighten80,
|
|
691
|
-
'cyan-lighten-90': cnamColorsTokens.cyan.lighten90,
|
|
692
|
-
'cyan-lighten-97': cnamColorsTokens.cyan.lighten97,
|
|
647
|
+
'text-base': cnamLightTheme.textBase,
|
|
648
|
+
'text-subdued': cnamLightTheme.textSubdued,
|
|
649
|
+
'text-disabled': cnamLightTheme.textDisabled,
|
|
650
|
+
'text-on-dark': cnamLightTheme.textOnDark,
|
|
651
|
+
'text-subdued-on-dark': cnamLightTheme.textSubduedOnDark,
|
|
652
|
+
'text-disabled-on-dark': cnamLightTheme.textDisabledOnDark,
|
|
693
653
|
}
|
|
694
654
|
const paColors = {
|
|
695
|
-
'
|
|
696
|
-
'
|
|
697
|
-
'
|
|
698
|
-
'
|
|
699
|
-
'
|
|
700
|
-
'
|
|
701
|
-
'cyan-lighten-40': paColorsTokens.cyan.lighten40,
|
|
702
|
-
'cyan-lighten-60': paColorsTokens.cyan.lighten60,
|
|
703
|
-
'cyan-lighten-80': paColorsTokens.cyan.lighten80,
|
|
704
|
-
'cyan-lighten-90': paColorsTokens.cyan.lighten90,
|
|
705
|
-
'cyan-lighten-97': paColorsTokens.cyan.lighten97,
|
|
655
|
+
'text-base': paLightTheme.textBase,
|
|
656
|
+
'text-subdued': paLightTheme.textSubdued,
|
|
657
|
+
'text-disabled': paLightTheme.textDisabled,
|
|
658
|
+
'text-on-dark': paLightTheme.textOnDark,
|
|
659
|
+
'text-subdued-on-dark': paLightTheme.textSubduedOnDark,
|
|
660
|
+
'text-disabled-on-dark': paLightTheme.textDisabledOnDark,
|
|
706
661
|
}
|
|
707
662
|
const apColors = {
|
|
708
|
-
'
|
|
709
|
-
'
|
|
710
|
-
'
|
|
711
|
-
'
|
|
712
|
-
'
|
|
713
|
-
'
|
|
714
|
-
'cyan-lighten-40': apColorsTokens.cyan.lighten40,
|
|
715
|
-
'cyan-lighten-60': apColorsTokens.cyan.lighten60,
|
|
716
|
-
'cyan-lighten-80': apColorsTokens.cyan.lighten80,
|
|
717
|
-
'cyan-lighten-90': apColorsTokens.cyan.lighten90,
|
|
718
|
-
'cyan-lighten-97': apColorsTokens.cyan.lighten97,
|
|
663
|
+
'text-base': apLightTheme.textBase,
|
|
664
|
+
'text-subdued': apLightTheme.textSubdued,
|
|
665
|
+
'text-disabled': apLightTheme.textDisabled,
|
|
666
|
+
'text-on-dark': apLightTheme.textOnDark,
|
|
667
|
+
'text-subdued-on-dark': apLightTheme.textSubduedOnDark,
|
|
668
|
+
'text-disabled-on-dark': apLightTheme.textDisabledOnDark,
|
|
719
669
|
}
|
|
720
670
|
const apColors2026 = {}
|
|
721
671
|
return {
|
|
722
|
-
displayEmptyColors,
|
|
723
672
|
cnamColors,
|
|
724
673
|
paColors,
|
|
725
674
|
apColors,
|
|
726
675
|
apColors2026,
|
|
727
676
|
colorTitle,
|
|
677
|
+
colorDescription,
|
|
728
678
|
colorTitleLevel,
|
|
729
679
|
}
|
|
730
680
|
},
|
|
731
681
|
template: `
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
}
|
|
744
|
-
},
|
|
745
|
-
tags: ['!dev'],
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
export const
|
|
749
|
-
render: () => {
|
|
682
|
+
<ColorDisplay
|
|
683
|
+
displayEmptyColors
|
|
684
|
+
colorCategory="text"
|
|
685
|
+
:cnamColors="cnamColors"
|
|
686
|
+
:paColors="paColors"
|
|
687
|
+
:apColors="apColors"
|
|
688
|
+
:apColors2026="apColors2026"
|
|
689
|
+
:colorTitle="colorTitle"
|
|
690
|
+
:colorDescription="colorDescription"
|
|
691
|
+
:colorTitleLevel="colorTitleLevel"
|
|
692
|
+
/>`,
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
tags: ['!dev'],
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
export const TextPrimary: StoryObj = {
|
|
699
|
+
render: () => {
|
|
750
700
|
return {
|
|
751
701
|
components: { ColorDisplay },
|
|
752
702
|
setup() {
|
|
753
|
-
const colorTitle = '
|
|
754
|
-
const
|
|
703
|
+
const colorTitle = 'Accent Primary'
|
|
704
|
+
const colorDescription = 'Ce sont les couleurs les plus courantes à utiliser pour les textes.'
|
|
755
705
|
const colorTitleLevel = 3
|
|
756
706
|
const cnamColors = {
|
|
757
|
-
'
|
|
758
|
-
'
|
|
759
|
-
'frosted-blue-darken-40': cnamColorsTokens.frostedBlue.darken40,
|
|
760
|
-
'frosted-blue-darken-20': cnamColorsTokens.frostedBlue.darken20,
|
|
761
|
-
'frosted-blue-base': cnamColorsTokens.frostedBlue.base,
|
|
762
|
-
'frosted-blue-lighten-20': cnamColorsTokens.frostedBlue.lighten20,
|
|
763
|
-
'frosted-blue-lighten-40': cnamColorsTokens.frostedBlue.lighten40,
|
|
764
|
-
'frosted-blue-lighten-60': cnamColorsTokens.frostedBlue.lighten60,
|
|
765
|
-
'frosted-blue-lighten-80': cnamColorsTokens.frostedBlue.lighten80,
|
|
766
|
-
'frosted-blue-lighten-90': cnamColorsTokens.frostedBlue.lighten90,
|
|
767
|
-
'frosted-blue-lighten-97': cnamColorsTokens.frostedBlue.lighten97,
|
|
707
|
+
'text-accent-primary': cnamLightTheme.textAccentPrimary,
|
|
708
|
+
'text-accent-primary-contrasted': cnamLightTheme.textAccentPrimaryContrasted,
|
|
768
709
|
}
|
|
769
710
|
const paColors = {
|
|
770
|
-
'
|
|
771
|
-
'
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
'
|
|
775
|
-
'
|
|
776
|
-
|
|
777
|
-
'frosted-blue-lighten-60': paColorsTokens.frostedBlue.lighten60,
|
|
778
|
-
'frosted-blue-lighten-80': paColorsTokens.frostedBlue.lighten80,
|
|
779
|
-
'frosted-blue-lighten-90': paColorsTokens.frostedBlue.lighten90,
|
|
780
|
-
'frosted-blue-lighten-97': paColorsTokens.frostedBlue.lighten97,
|
|
711
|
+
'text-accent-primary': paLightTheme.textAccentPrimary,
|
|
712
|
+
'text-accent-primary-contrasted': paLightTheme.textAccentPrimaryContrasted,
|
|
713
|
+
}
|
|
714
|
+
const apColors = {
|
|
715
|
+
'text-accent-primary': apLightTheme.textAccentPrimary,
|
|
716
|
+
'text-accent-primarycontrasted': apLightTheme.textAccentPrimaryContrasted,
|
|
717
|
+
|
|
781
718
|
}
|
|
782
|
-
const apColors = {}
|
|
783
719
|
const apColors2026 = {}
|
|
784
720
|
return {
|
|
785
721
|
cnamColors,
|
|
@@ -787,151 +723,99 @@ export const PaletteFrostedBlue: StoryObj = {
|
|
|
787
723
|
apColors,
|
|
788
724
|
apColors2026,
|
|
789
725
|
colorTitle,
|
|
726
|
+
colorDescription,
|
|
790
727
|
colorTitleLevel,
|
|
791
|
-
displayEmptyColors,
|
|
792
728
|
}
|
|
793
729
|
},
|
|
794
730
|
template: `
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
731
|
+
<ColorDisplay
|
|
732
|
+
displayEmptyColors
|
|
733
|
+
colorCategory="text"
|
|
734
|
+
:cnamColors="cnamColors"
|
|
735
|
+
:paColors="paColors"
|
|
736
|
+
:apColors="apColors"
|
|
737
|
+
:apColors2026="apColors2026"
|
|
738
|
+
:colorTitle="colorTitle"
|
|
739
|
+
:colorDescription="colorDescription"
|
|
740
|
+
:colorTitleLevel="colorTitleLevel"
|
|
741
|
+
/>`,
|
|
806
742
|
}
|
|
807
743
|
},
|
|
808
744
|
tags: ['!dev'],
|
|
809
745
|
}
|
|
810
746
|
|
|
811
|
-
export const
|
|
747
|
+
export const TextSecondary: StoryObj = {
|
|
812
748
|
render: () => {
|
|
813
749
|
return {
|
|
814
750
|
components: { ColorDisplay },
|
|
815
751
|
setup() {
|
|
816
|
-
const colorTitle = '
|
|
817
|
-
const
|
|
752
|
+
const colorTitle = 'Accent Secondary'
|
|
753
|
+
const colorDescription = 'Ce sont les couleurs à utiliser pour mettre en exergue des textes.'
|
|
818
754
|
const colorTitleLevel = 3
|
|
819
755
|
const cnamColors = {
|
|
820
|
-
'
|
|
821
|
-
'parma-darken-60': cnamColorsTokens.parma.darken60,
|
|
822
|
-
'parma-darken-40': cnamColorsTokens.parma.darken40,
|
|
823
|
-
'parma-darken-20': cnamColorsTokens.parma.darken20,
|
|
824
|
-
'parma-base': cnamColorsTokens.parma.base,
|
|
825
|
-
'parma-lighten-20': cnamColorsTokens.parma.lighten20,
|
|
826
|
-
'parma-lighten-40': cnamColorsTokens.parma.lighten40,
|
|
827
|
-
'parma-lighten-60': cnamColorsTokens.parma.lighten60,
|
|
828
|
-
'parma-lighten-80': cnamColorsTokens.parma.lighten80,
|
|
829
|
-
'parma-lighten-90': cnamColorsTokens.parma.lighten90,
|
|
830
|
-
'parma-lighten-97': cnamColorsTokens.parma.lighten97,
|
|
756
|
+
'text-accent-secondary': cnamLightTheme.textAccentSecondary,
|
|
831
757
|
}
|
|
832
758
|
const paColors = {
|
|
833
|
-
'
|
|
834
|
-
|
|
835
|
-
'parma-darken-40': paColorsTokens.parma.darken40,
|
|
836
|
-
'parma-darken-20': paColorsTokens.parma.darken20,
|
|
837
|
-
'parma-base': paColorsTokens.parma.base,
|
|
838
|
-
'parma-lighten-20': paColorsTokens.parma.lighten20,
|
|
839
|
-
'parma-lighten-40': paColorsTokens.parma.lighten40,
|
|
840
|
-
'parma-lighten-60': paColorsTokens.parma.lighten60,
|
|
841
|
-
'parma-lighten-80': paColorsTokens.parma.lighten80,
|
|
842
|
-
'parma-lighten-90': paColorsTokens.parma.lighten90,
|
|
843
|
-
'parma-lighten-97': paColorsTokens.parma.lighten97,
|
|
759
|
+
'text-accent-secondary': paLightTheme.textAccentSecondary,
|
|
760
|
+
|
|
844
761
|
}
|
|
845
762
|
const apColors = {
|
|
846
|
-
'
|
|
847
|
-
|
|
848
|
-
'parma-darken-40': apColorsTokens.parma.darken40,
|
|
849
|
-
'parma-darken-20': apColorsTokens.parma.darken20,
|
|
850
|
-
'parma-base': apColorsTokens.parma.base,
|
|
851
|
-
'parma-lighten-20': apColorsTokens.parma.lighten20,
|
|
852
|
-
'parma-lighten-40': apColorsTokens.parma.lighten40,
|
|
853
|
-
'parma-lighten-60': apColorsTokens.parma.lighten60,
|
|
854
|
-
'parma-lighten-80': apColorsTokens.parma.lighten80,
|
|
855
|
-
'parma-lighten-90': apColorsTokens.parma.lighten90,
|
|
856
|
-
'parma-lighten-97': apColorsTokens.parma.lighten97,
|
|
857
|
-
}
|
|
858
|
-
const apColors2026 = {
|
|
859
|
-
'ap-parme-darken-1': apColorsTokens2026.apParme.darken1,
|
|
860
|
-
'ap-parme': apColorsTokens2026.apParme.base,
|
|
763
|
+
'text-accent-secondary': apLightTheme.textAccentSecondary,
|
|
764
|
+
|
|
861
765
|
}
|
|
766
|
+
const apColors2026 = {}
|
|
862
767
|
return {
|
|
863
768
|
cnamColors,
|
|
864
769
|
paColors,
|
|
865
770
|
apColors,
|
|
866
771
|
apColors2026,
|
|
867
772
|
colorTitle,
|
|
773
|
+
colorDescription,
|
|
868
774
|
colorTitleLevel,
|
|
869
|
-
displayEmptyColors,
|
|
870
775
|
}
|
|
871
776
|
},
|
|
872
777
|
template: `
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
778
|
+
<ColorDisplay
|
|
779
|
+
displayEmptyColors
|
|
780
|
+
colorCategory="text"
|
|
781
|
+
:cnamColors="cnamColors"
|
|
782
|
+
:paColors="paColors"
|
|
783
|
+
:apColors="apColors"
|
|
784
|
+
:apColors2026="apColors2026"
|
|
785
|
+
:colorTitle="colorTitle"
|
|
786
|
+
:colorDescription="colorDescription"
|
|
787
|
+
:colorTitleLevel="colorTitleLevel"
|
|
788
|
+
/>`,
|
|
884
789
|
}
|
|
885
790
|
},
|
|
886
791
|
tags: ['!dev'],
|
|
887
792
|
}
|
|
888
793
|
|
|
889
|
-
export const
|
|
794
|
+
export const TextState: StoryObj = {
|
|
890
795
|
render: () => {
|
|
891
796
|
return {
|
|
892
797
|
components: { ColorDisplay },
|
|
893
798
|
setup() {
|
|
894
|
-
const colorTitle = '
|
|
895
|
-
const
|
|
799
|
+
const colorTitle = 'State'
|
|
800
|
+
const colorDescription = 'Ces couleurs sont à utiliser pour les textes présentant un message d’information, de succès, d’attention ou de danger.'
|
|
896
801
|
const colorTitleLevel = 3
|
|
897
802
|
const cnamColors = {
|
|
898
|
-
'
|
|
899
|
-
'
|
|
900
|
-
'
|
|
901
|
-
'
|
|
902
|
-
'mauve-base': cnamColorsTokens.mauve.base,
|
|
903
|
-
'mauve-lighten-20': cnamColorsTokens.mauve.lighten20,
|
|
904
|
-
'mauve-lighten-40': cnamColorsTokens.mauve.lighten40,
|
|
905
|
-
'mauve-lighten-60': cnamColorsTokens.mauve.lighten60,
|
|
906
|
-
'mauve-lighten-80': cnamColorsTokens.mauve.lighten80,
|
|
907
|
-
'mauve-lighten-90': cnamColorsTokens.mauve.lighten90,
|
|
908
|
-
'mauve-lighten-97': cnamColorsTokens.mauve.lighten97,
|
|
803
|
+
'text-info': cnamLightTheme.textInfo,
|
|
804
|
+
'text-success': cnamLightTheme.textSuccess,
|
|
805
|
+
'text-warning': cnamLightTheme.textWarning,
|
|
806
|
+
'text-error': cnamLightTheme.textError,
|
|
909
807
|
}
|
|
910
808
|
const paColors = {
|
|
911
|
-
'
|
|
912
|
-
'
|
|
913
|
-
'
|
|
914
|
-
'
|
|
915
|
-
'mauve-base': paColorsTokens.mauve.base,
|
|
916
|
-
'mauve-lighten-20': paColorsTokens.mauve.lighten20,
|
|
917
|
-
'mauve-lighten-40': paColorsTokens.mauve.lighten40,
|
|
918
|
-
'mauve-lighten-60': paColorsTokens.mauve.lighten60,
|
|
919
|
-
'mauve-lighten-80': paColorsTokens.mauve.lighten80,
|
|
920
|
-
'mauve-lighten-90': paColorsTokens.mauve.lighten90,
|
|
921
|
-
'mauve-lighten-97': paColorsTokens.mauve.lighten97,
|
|
809
|
+
'text-info': paLightTheme.textInfo,
|
|
810
|
+
'text-success': paLightTheme.textSuccess,
|
|
811
|
+
'text-warning': paLightTheme.textWarning,
|
|
812
|
+
'text-error': paLightTheme.textError,
|
|
922
813
|
}
|
|
923
814
|
const apColors = {
|
|
924
|
-
'
|
|
925
|
-
'
|
|
926
|
-
'
|
|
927
|
-
'
|
|
928
|
-
'mauve-base': apColorsTokens.mauve.base,
|
|
929
|
-
'mauve-lighten-20': apColorsTokens.mauve.lighten20,
|
|
930
|
-
'mauve-lighten-40': apColorsTokens.mauve.lighten40,
|
|
931
|
-
'mauve-lighten-60': apColorsTokens.mauve.lighten60,
|
|
932
|
-
'mauve-lighten-80': apColorsTokens.mauve.lighten80,
|
|
933
|
-
'mauve-lighten-90': apColorsTokens.mauve.lighten90,
|
|
934
|
-
'mauve-lighten-97': apColorsTokens.mauve.lighten97,
|
|
815
|
+
'text-info': apLightTheme.textInfo,
|
|
816
|
+
'text-success': apLightTheme.textSuccess,
|
|
817
|
+
'text-warning': apLightTheme.textWarning,
|
|
818
|
+
'text-error': apLightTheme.textError,
|
|
935
819
|
}
|
|
936
820
|
const apColors2026 = {}
|
|
937
821
|
return {
|
|
@@ -940,139 +824,118 @@ export const PaletteMauve: StoryObj = {
|
|
|
940
824
|
apColors,
|
|
941
825
|
apColors2026,
|
|
942
826
|
colorTitle,
|
|
827
|
+
colorDescription,
|
|
943
828
|
colorTitleLevel,
|
|
944
|
-
displayEmptyColors,
|
|
945
829
|
}
|
|
946
830
|
},
|
|
947
831
|
template: `
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
832
|
+
<ColorDisplay
|
|
833
|
+
displayEmptyColors
|
|
834
|
+
colorCategory="text"
|
|
835
|
+
:cnamColors="cnamColors"
|
|
836
|
+
:paColors="paColors"
|
|
837
|
+
:apColors="apColors"
|
|
838
|
+
:apColors2026="apColors2026"
|
|
839
|
+
:colorTitle="colorTitle"
|
|
840
|
+
:colorDescription="colorDescription"
|
|
841
|
+
:colorTitleLevel="colorTitleLevel"
|
|
842
|
+
/>`,
|
|
959
843
|
}
|
|
960
844
|
},
|
|
961
845
|
tags: ['!dev'],
|
|
962
846
|
}
|
|
963
847
|
|
|
964
|
-
export const
|
|
848
|
+
export const TextSection = {
|
|
849
|
+
render() {
|
|
850
|
+
return h(createSection('Text', [
|
|
851
|
+
TextBase,
|
|
852
|
+
TextPrimary,
|
|
853
|
+
TextSecondary,
|
|
854
|
+
TextState,
|
|
855
|
+
], 'ap2026'))
|
|
856
|
+
},
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
export const IconBase: StoryObj = {
|
|
965
860
|
render: () => {
|
|
966
861
|
return {
|
|
967
862
|
components: { ColorDisplay },
|
|
968
863
|
setup() {
|
|
969
|
-
const colorTitle = '
|
|
970
|
-
const
|
|
864
|
+
const colorTitle = 'Base'
|
|
865
|
+
const colorDescription = 'Ce sont les couleurs les plus courantes à utiliser pour les icônes dont la seule vocation est informative ou décorative.'
|
|
971
866
|
const colorTitleLevel = 3
|
|
972
867
|
const cnamColors = {
|
|
973
|
-
'
|
|
974
|
-
'
|
|
975
|
-
'
|
|
976
|
-
'
|
|
977
|
-
'
|
|
978
|
-
'
|
|
979
|
-
'pink-lighten-40': cnamColorsTokens.pink.lighten40,
|
|
980
|
-
'pink-lighten-60': cnamColorsTokens.pink.lighten60,
|
|
981
|
-
'pink-lighten-80': cnamColorsTokens.pink.lighten80,
|
|
982
|
-
'pink-lighten-90': cnamColorsTokens.pink.lighten90,
|
|
983
|
-
'pink-lighten-97': cnamColorsTokens.pink.lighten97,
|
|
868
|
+
'icon-base': cnamLightTheme.iconBase,
|
|
869
|
+
'icon-subdued': cnamLightTheme.iconSubdued,
|
|
870
|
+
'icon-subdued-on-dark': cnamLightTheme.iconSubduedOnDark,
|
|
871
|
+
'icon-on-dark': cnamLightTheme.iconOnDark,
|
|
872
|
+
'icon-disabled': cnamLightTheme.iconDisabled,
|
|
873
|
+
'icon-disabled-on-dark': cnamLightTheme.iconDisabledOnDark,
|
|
984
874
|
}
|
|
985
875
|
const paColors = {
|
|
986
|
-
'
|
|
987
|
-
'
|
|
988
|
-
'
|
|
989
|
-
'
|
|
990
|
-
'
|
|
991
|
-
'
|
|
992
|
-
'pink-lighten-40': paColorsTokens.pink.lighten40,
|
|
993
|
-
'pink-lighten-60': paColorsTokens.pink.lighten60,
|
|
994
|
-
'pink-lighten-80': paColorsTokens.pink.lighten80,
|
|
995
|
-
'pink-lighten-90': paColorsTokens.pink.lighten90,
|
|
996
|
-
'pink-lighten-97': paColorsTokens.pink.lighten97,
|
|
876
|
+
'icon-base': paLightTheme.iconBase,
|
|
877
|
+
'icon-subdued': paLightTheme.iconSubdued,
|
|
878
|
+
'icon-subdued-on-dark': paLightTheme.iconSubduedOnDark,
|
|
879
|
+
'icon-on-dark': paLightTheme.iconOnDark,
|
|
880
|
+
'icon-disabled': paLightTheme.iconDisabled,
|
|
881
|
+
'icon-disabled-on-dark': paLightTheme.iconDisabledOnDark,
|
|
997
882
|
}
|
|
998
883
|
const apColors = {
|
|
999
|
-
'
|
|
1000
|
-
'
|
|
1001
|
-
'
|
|
1002
|
-
'
|
|
1003
|
-
'
|
|
1004
|
-
'
|
|
1005
|
-
'pink-lighten-40': apColorsTokens.pink.lighten40,
|
|
1006
|
-
'pink-lighten-60': apColorsTokens.pink.lighten60,
|
|
1007
|
-
'pink-lighten-80': apColorsTokens.pink.lighten80,
|
|
1008
|
-
'pink-lighten-90': apColorsTokens.pink.lighten90,
|
|
1009
|
-
'pink-lighten-97': apColorsTokens.pink.lighten97,
|
|
1010
|
-
}
|
|
1011
|
-
const apColors2026 = {
|
|
1012
|
-
'ap-pink': apColorsTokens2026.apPink.base,
|
|
884
|
+
'icon-base': apLightTheme.iconBase,
|
|
885
|
+
'icon-subdued': apLightTheme.iconSubdued,
|
|
886
|
+
'icon-subdued-on-dark': apLightTheme.iconSubduedOnDark,
|
|
887
|
+
'icon-on-dark': apLightTheme.iconOnDark,
|
|
888
|
+
'icon-disabled': apLightTheme.iconDisabled,
|
|
889
|
+
'icon-disabled-on-dark': apLightTheme.iconDisabledOnDark,
|
|
1013
890
|
}
|
|
891
|
+
const apColors2026 = {}
|
|
1014
892
|
return {
|
|
1015
893
|
cnamColors,
|
|
1016
894
|
paColors,
|
|
1017
895
|
apColors,
|
|
1018
896
|
apColors2026,
|
|
1019
897
|
colorTitle,
|
|
898
|
+
colorDescription,
|
|
1020
899
|
colorTitleLevel,
|
|
1021
|
-
displayEmptyColors,
|
|
1022
900
|
}
|
|
1023
901
|
},
|
|
1024
902
|
template: `
|
|
1025
903
|
<ColorDisplay
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
904
|
+
displayEmptyColors
|
|
905
|
+
colorCategory="icons"
|
|
906
|
+
:cnamColors="cnamColors"
|
|
907
|
+
:paColors="paColors"
|
|
908
|
+
:apColors="apColors"
|
|
909
|
+
:apColors2026="apColors2026"
|
|
910
|
+
:colorTitle="colorTitle"
|
|
911
|
+
:colorDescription="colorDescription"
|
|
912
|
+
:colorTitleLevel="colorTitleLevel"
|
|
913
|
+
/>
|
|
914
|
+
`,
|
|
1036
915
|
}
|
|
1037
916
|
},
|
|
1038
917
|
tags: ['!dev'],
|
|
1039
918
|
}
|
|
1040
|
-
|
|
1041
|
-
export const PaletteBrick: StoryObj = {
|
|
919
|
+
export const IconPrimary: StoryObj = {
|
|
1042
920
|
render: () => {
|
|
1043
921
|
return {
|
|
1044
922
|
components: { ColorDisplay },
|
|
1045
923
|
setup() {
|
|
1046
|
-
const colorTitle = '
|
|
1047
|
-
const
|
|
924
|
+
const colorTitle = 'Accent Primary'
|
|
925
|
+
const colorDescription = 'Ce sont les couleurs à utiliser dès qu’un icône symbolise une action.'
|
|
1048
926
|
const colorTitleLevel = 3
|
|
1049
927
|
const cnamColors = {
|
|
1050
|
-
'
|
|
1051
|
-
'
|
|
1052
|
-
'brick-darken-40': cnamColorsTokens.brick.darken40,
|
|
1053
|
-
'brick-darken-20': cnamColorsTokens.brick.darken20,
|
|
1054
|
-
'brick-base': cnamColorsTokens.brick.base,
|
|
1055
|
-
'brick-lighten-20': cnamColorsTokens.brick.lighten20,
|
|
1056
|
-
'brick-lighten-40': cnamColorsTokens.brick.lighten40,
|
|
1057
|
-
'brick-lighten-60': cnamColorsTokens.brick.lighten60,
|
|
1058
|
-
'brick-lighten-80': cnamColorsTokens.brick.lighten80,
|
|
1059
|
-
'brick-lighten-90': cnamColorsTokens.brick.lighten90,
|
|
1060
|
-
'brick-lighten-97': cnamColorsTokens.brick.lighten97,
|
|
928
|
+
'icon-accent-primary': cnamLightTheme.iconAccentPrimary,
|
|
929
|
+
'icon-accent-primary-contrasted': cnamLightTheme.iconAccentPrimaryContrasted,
|
|
1061
930
|
}
|
|
1062
931
|
const paColors = {
|
|
1063
|
-
'
|
|
1064
|
-
'
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
'
|
|
1068
|
-
'
|
|
1069
|
-
'brick-lighten-40': paColorsTokens.brick.lighten40,
|
|
1070
|
-
'brick-lighten-60': paColorsTokens.brick.lighten60,
|
|
1071
|
-
'brick-lighten-80': paColorsTokens.brick.lighten80,
|
|
1072
|
-
'brick-lighten-90': paColorsTokens.brick.lighten90,
|
|
1073
|
-
'brick-lighten-97': paColorsTokens.brick.lighten97,
|
|
932
|
+
'icon-accent-primary': paLightTheme.iconAccentPrimary,
|
|
933
|
+
'icon-accent-primary-contrasted': paLightTheme.iconAccentPrimaryContrasted,
|
|
934
|
+
}
|
|
935
|
+
const apColors = {
|
|
936
|
+
'icon-accent-primary': apLightTheme.iconAccentPrimary,
|
|
937
|
+
'icon-accent-primary-contrasted': apLightTheme.iconAccentPrimaryContrasted,
|
|
1074
938
|
}
|
|
1075
|
-
const apColors = {}
|
|
1076
939
|
const apColors2026 = {}
|
|
1077
940
|
return {
|
|
1078
941
|
cnamColors,
|
|
@@ -1080,242 +943,208 @@ export const PaletteBrick: StoryObj = {
|
|
|
1080
943
|
apColors,
|
|
1081
944
|
apColors2026,
|
|
1082
945
|
colorTitle,
|
|
946
|
+
colorDescription,
|
|
1083
947
|
colorTitleLevel,
|
|
1084
|
-
displayEmptyColors,
|
|
1085
948
|
}
|
|
1086
949
|
},
|
|
1087
950
|
template: `
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
951
|
+
<ColorDisplay
|
|
952
|
+
displayEmptyColors
|
|
953
|
+
colorCategory="icons"
|
|
954
|
+
:cnamColors="cnamColors"
|
|
955
|
+
:paColors="paColors"
|
|
956
|
+
:apColors="apColors"
|
|
957
|
+
:apColors2026="apColors2026"
|
|
958
|
+
:colorTitle="colorTitle"
|
|
959
|
+
:colorDescription="colorDescription"
|
|
960
|
+
:colorTitleLevel="colorTitleLevel"
|
|
961
|
+
/>
|
|
962
|
+
`,
|
|
1099
963
|
}
|
|
1100
964
|
},
|
|
1101
965
|
tags: ['!dev'],
|
|
1102
966
|
}
|
|
1103
|
-
|
|
1104
|
-
export const PaletteGrey: StoryObj = {
|
|
967
|
+
export const IconSecondary: StoryObj = {
|
|
1105
968
|
render: () => {
|
|
1106
969
|
return {
|
|
1107
970
|
components: { ColorDisplay },
|
|
1108
971
|
setup() {
|
|
1109
|
-
const colorTitle = '
|
|
1110
|
-
const
|
|
972
|
+
const colorTitle = 'Accent Secondary'
|
|
973
|
+
const colorDescription = 'Ce sont les couleurs à utiliser pour mettre en exergue des icônes.'
|
|
1111
974
|
const colorTitleLevel = 3
|
|
1112
975
|
const cnamColors = {
|
|
1113
|
-
'
|
|
1114
|
-
'grey-darken-60': cnamColorsTokens.grey.darken60,
|
|
1115
|
-
'grey-darken-40': cnamColorsTokens.grey.darken40,
|
|
1116
|
-
'grey-darken-20': cnamColorsTokens.grey.darken20,
|
|
1117
|
-
'grey-base': cnamColorsTokens.grey.base,
|
|
1118
|
-
'grey-lighten-20': cnamColorsTokens.grey.lighten20,
|
|
1119
|
-
'grey-lighten-40': cnamColorsTokens.grey.lighten40,
|
|
1120
|
-
'grey-lighten-60': cnamColorsTokens.grey.lighten60,
|
|
1121
|
-
'grey-lighten-80': cnamColorsTokens.grey.lighten80,
|
|
1122
|
-
'grey-lighten-90': cnamColorsTokens.grey.lighten90,
|
|
1123
|
-
'grey-lighten-97': cnamColorsTokens.grey.lighten97,
|
|
976
|
+
'icon-accent-secondary': cnamLightTheme.iconAccentSecondary,
|
|
1124
977
|
}
|
|
1125
978
|
const paColors = {
|
|
1126
|
-
'
|
|
1127
|
-
'grey-darken-60': paColorsTokens.grey.darken60,
|
|
1128
|
-
'grey-darken-40': paColorsTokens.grey.darken40,
|
|
1129
|
-
'grey-darken-20': paColorsTokens.grey.darken20,
|
|
1130
|
-
'grey-base': paColorsTokens.grey.base,
|
|
1131
|
-
'grey-lighten-20': paColorsTokens.grey.lighten20,
|
|
1132
|
-
'grey-lighten-40': paColorsTokens.grey.lighten40,
|
|
1133
|
-
'grey-lighten-60': paColorsTokens.grey.lighten60,
|
|
1134
|
-
'grey-lighten-80': paColorsTokens.grey.lighten80,
|
|
1135
|
-
'grey-lighten-90': paColorsTokens.grey.lighten90,
|
|
1136
|
-
'grey-lighten-97': paColorsTokens.grey.lighten97,
|
|
979
|
+
'icon-accent-secondary': paLightTheme.iconAccentSecondary,
|
|
1137
980
|
}
|
|
1138
981
|
const apColors = {
|
|
1139
|
-
'
|
|
1140
|
-
'grey-darken-60': apColorsTokens.grey.darken60,
|
|
1141
|
-
'grey-darken-40': apColorsTokens.grey.darken40,
|
|
1142
|
-
'grey-darken-20': apColorsTokens.grey.darken20,
|
|
1143
|
-
'grey-base': apColorsTokens.grey.base,
|
|
1144
|
-
'grey-lighten-20': apColorsTokens.grey.lighten20,
|
|
1145
|
-
'grey-lighten-40': apColorsTokens.grey.lighten40,
|
|
1146
|
-
'grey-lighten-60': apColorsTokens.grey.lighten60,
|
|
1147
|
-
'grey-lighten-80': apColorsTokens.grey.lighten80,
|
|
1148
|
-
'grey-lighten-90': apColorsTokens.grey.lighten90,
|
|
1149
|
-
'grey-lighten-97': apColorsTokens.grey.lighten97,
|
|
1150
|
-
}
|
|
1151
|
-
const apColors2026 = {
|
|
1152
|
-
'ap-grey-darken-1': apColorsTokens2026.apGrey.darken1,
|
|
1153
|
-
'ap-grey': apColorsTokens2026.apGrey.base,
|
|
1154
|
-
'ap-grey-lighten-1': apColorsTokens2026.apGrey.lighten1,
|
|
1155
|
-
'ap-grey-lighten-2': apColorsTokens2026.apGrey.lighten2,
|
|
1156
|
-
'ap-grey-lighten-3': apColorsTokens2026.apGrey.lighten3,
|
|
1157
|
-
'ap-grey-lighten-4': apColorsTokens2026.apGrey.lighten4,
|
|
1158
|
-
'ap-grey-lighten-5': apColorsTokens2026.apGrey.lighten5,
|
|
1159
|
-
'ap-grey-lighten-6': apColorsTokens2026.apGrey.lighten6,
|
|
982
|
+
'icon-accent-secondary': apLightTheme.iconAccentSecondary,
|
|
1160
983
|
}
|
|
984
|
+
const apColors2026 = {}
|
|
1161
985
|
return {
|
|
1162
986
|
cnamColors,
|
|
1163
987
|
paColors,
|
|
1164
988
|
apColors,
|
|
1165
989
|
apColors2026,
|
|
1166
990
|
colorTitle,
|
|
991
|
+
colorDescription,
|
|
1167
992
|
colorTitleLevel,
|
|
1168
|
-
displayEmptyColors,
|
|
1169
993
|
}
|
|
1170
994
|
},
|
|
1171
995
|
template: `
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
996
|
+
<ColorDisplay
|
|
997
|
+
displayEmptyColors
|
|
998
|
+
colorCategory="icons"
|
|
999
|
+
:cnamColors="cnamColors"
|
|
1000
|
+
:paColors="paColors"
|
|
1001
|
+
:apColors="apColors"
|
|
1002
|
+
:apColors2026="apColors2026"
|
|
1003
|
+
:colorTitle="colorTitle"
|
|
1004
|
+
:colorDescription="colorDescription"
|
|
1005
|
+
:colorTitleLevel="colorTitleLevel"
|
|
1006
|
+
/>
|
|
1007
|
+
`,
|
|
1183
1008
|
}
|
|
1184
1009
|
},
|
|
1185
1010
|
tags: ['!dev'],
|
|
1186
1011
|
}
|
|
1187
|
-
|
|
1188
|
-
export const PaletteWhite: StoryObj = {
|
|
1012
|
+
export const IconState: StoryObj = {
|
|
1189
1013
|
render: () => {
|
|
1190
1014
|
return {
|
|
1191
1015
|
components: { ColorDisplay },
|
|
1192
1016
|
setup() {
|
|
1193
|
-
const colorTitle = '
|
|
1194
|
-
const
|
|
1017
|
+
const colorTitle = 'State'
|
|
1018
|
+
const colorDescription = 'Ces couleurs sont à utiliser pour les icônes présentant un message d’information, de succès, d’attention ou de danger.'
|
|
1195
1019
|
const colorTitleLevel = 3
|
|
1196
1020
|
const cnamColors = {
|
|
1197
|
-
'
|
|
1198
|
-
'
|
|
1199
|
-
'
|
|
1200
|
-
'
|
|
1201
|
-
'white-base': cnamColorsTokens.white.base,
|
|
1021
|
+
'icon-info': cnamLightTheme.iconInfo,
|
|
1022
|
+
'icon-success': cnamLightTheme.iconSuccess,
|
|
1023
|
+
'icon-warning': cnamLightTheme.iconWarning,
|
|
1024
|
+
'icon-error': cnamLightTheme.iconError,
|
|
1202
1025
|
}
|
|
1203
1026
|
const paColors = {
|
|
1204
|
-
'
|
|
1205
|
-
'
|
|
1206
|
-
'
|
|
1207
|
-
'
|
|
1208
|
-
'white-base': paColorsTokens.white.base,
|
|
1027
|
+
'icon-info': paLightTheme.iconInfo,
|
|
1028
|
+
'icon-success': paLightTheme.iconSuccess,
|
|
1029
|
+
'icon-warning': paLightTheme.iconWarning,
|
|
1030
|
+
'icon-error': paLightTheme.iconError,
|
|
1209
1031
|
}
|
|
1210
1032
|
const apColors = {
|
|
1211
|
-
'
|
|
1212
|
-
'
|
|
1213
|
-
'
|
|
1214
|
-
'
|
|
1215
|
-
'white-base': apColorsTokens.white.base,
|
|
1216
|
-
}
|
|
1217
|
-
const apColors2026 = {
|
|
1218
|
-
'ap-white': apColorsTokens2026.apWhite.base,
|
|
1033
|
+
'icon-info': apLightTheme.iconInfo,
|
|
1034
|
+
'icon-success': apLightTheme.iconSuccess,
|
|
1035
|
+
'icon-warning': apLightTheme.iconWarning,
|
|
1036
|
+
'icon-error': apLightTheme.iconError,
|
|
1219
1037
|
}
|
|
1038
|
+
const apColors2026 = {}
|
|
1220
1039
|
return {
|
|
1221
1040
|
cnamColors,
|
|
1222
1041
|
paColors,
|
|
1223
1042
|
apColors,
|
|
1224
1043
|
apColors2026,
|
|
1225
1044
|
colorTitle,
|
|
1045
|
+
colorDescription,
|
|
1226
1046
|
colorTitleLevel,
|
|
1227
|
-
displayEmptyColors,
|
|
1228
1047
|
}
|
|
1229
1048
|
},
|
|
1230
1049
|
template: `
|
|
1231
1050
|
<ColorDisplay
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1051
|
+
displayEmptyColors
|
|
1052
|
+
colorCategory="icons"
|
|
1053
|
+
:cnamColors="cnamColors"
|
|
1054
|
+
:paColors="paColors"
|
|
1055
|
+
:apColors="apColors"
|
|
1056
|
+
:apColors2026="apColors2026"
|
|
1057
|
+
:colorTitle="colorTitle"
|
|
1058
|
+
:colorDescription="colorDescription"
|
|
1059
|
+
:colorTitleLevel="colorTitleLevel"
|
|
1060
|
+
/>
|
|
1061
|
+
`,
|
|
1242
1062
|
}
|
|
1243
1063
|
},
|
|
1244
1064
|
tags: ['!dev'],
|
|
1245
1065
|
}
|
|
1066
|
+
export const IconSection = {
|
|
1067
|
+
render() {
|
|
1068
|
+
return h(createSection('Icons', [
|
|
1069
|
+
IconBase,
|
|
1070
|
+
IconPrimary,
|
|
1071
|
+
IconSecondary,
|
|
1072
|
+
IconState,
|
|
1073
|
+
], 'ap2026'))
|
|
1074
|
+
},
|
|
1075
|
+
}
|
|
1246
1076
|
|
|
1247
|
-
export const
|
|
1077
|
+
export const MainBackgrounds: StoryObj = {
|
|
1248
1078
|
render: () => {
|
|
1249
1079
|
return {
|
|
1250
1080
|
components: { ColorDisplay },
|
|
1251
1081
|
setup() {
|
|
1252
|
-
const colorTitle = '
|
|
1082
|
+
const colorTitle = 'Main'
|
|
1083
|
+
const colorDescription = 'Ce sont les couleurs à utiliser pour le background principal de la plateforme.'
|
|
1253
1084
|
const colorTitleLevel = 3
|
|
1254
|
-
const
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
const apColors2026 = {
|
|
1259
|
-
'ap-black': apColorsTokens2026.apBlack.base,
|
|
1085
|
+
const cnamColors = {
|
|
1086
|
+
'background-main': cnamLightTheme.backgroundMain,
|
|
1087
|
+
'background-main-alt': cnamLightTheme.backgroundMainAlt,
|
|
1088
|
+
'background-main-ter': cnamLightTheme.backgroundMainTer,
|
|
1260
1089
|
}
|
|
1090
|
+
const paColors = {
|
|
1091
|
+
'background-main': paLightTheme.backgroundMain,
|
|
1092
|
+
'background-surface': paLightTheme.backgroundSurface,
|
|
1093
|
+
'background-surface-alt': paLightTheme.backgroundSurfaceAlt,
|
|
1094
|
+
}
|
|
1095
|
+
const apColors = {
|
|
1096
|
+
'background-main': apLightTheme.backgroundMain,
|
|
1097
|
+
'background-surface': apLightTheme.backgroundSurface,
|
|
1098
|
+
'background-surface-alt': apLightTheme.backgroundSurfaceAlt,
|
|
1099
|
+
}
|
|
1100
|
+
const apColors2026 = { 'ap-grey-lighten-6': apColorsTokens2026.apGrey.lighten6 }
|
|
1261
1101
|
return {
|
|
1262
|
-
displayEmptyColors,
|
|
1263
1102
|
cnamColors,
|
|
1264
1103
|
paColors,
|
|
1265
1104
|
apColors,
|
|
1266
1105
|
apColors2026,
|
|
1267
1106
|
colorTitle,
|
|
1107
|
+
colorDescription,
|
|
1268
1108
|
colorTitleLevel,
|
|
1269
1109
|
}
|
|
1270
1110
|
},
|
|
1271
1111
|
template: `
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1112
|
+
<ColorDisplay
|
|
1113
|
+
displayEmptyColors
|
|
1114
|
+
colorCategory="mainBackgrounds"
|
|
1115
|
+
:cnamColors="cnamColors"
|
|
1116
|
+
:paColors="paColors"
|
|
1117
|
+
:apColors="apColors"
|
|
1118
|
+
:apColors2026="apColors2026"
|
|
1119
|
+
:colorTitle="colorTitle"
|
|
1120
|
+
:colorDescription="colorDescription"
|
|
1121
|
+
:colorTitleLevel="colorTitleLevel"
|
|
1122
|
+
/>
|
|
1123
|
+
`,
|
|
1283
1124
|
}
|
|
1284
1125
|
},
|
|
1285
1126
|
tags: ['!dev'],
|
|
1286
1127
|
}
|
|
1287
1128
|
|
|
1288
|
-
export const
|
|
1129
|
+
export const SurfaceBackgrounds: StoryObj = {
|
|
1289
1130
|
render: () => {
|
|
1290
1131
|
return {
|
|
1291
1132
|
components: { ColorDisplay },
|
|
1292
1133
|
setup() {
|
|
1293
|
-
const colorTitle = '
|
|
1294
|
-
const
|
|
1295
|
-
const colorTitleLevel =
|
|
1134
|
+
const colorTitle = 'Surface'
|
|
1135
|
+
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”.'
|
|
1136
|
+
const colorTitleLevel = 3
|
|
1296
1137
|
const cnamColors = {
|
|
1297
|
-
'
|
|
1298
|
-
'
|
|
1299
|
-
'interactive-pressed': cnamLightTheme.interactivePressed,
|
|
1300
|
-
'interactive-focus': cnamLightTheme.interactiveFocus,
|
|
1301
|
-
'interactive-disabled': cnamLightTheme.interactiveDisabled,
|
|
1302
|
-
'interactive-hover-on-selected': cnamLightTheme.interactiveHoverOnSelected,
|
|
1138
|
+
'background-surface': cnamLightTheme.backgroundSurface,
|
|
1139
|
+
'background-surface-alt': cnamLightTheme.backgroundSurfaceAlt,
|
|
1303
1140
|
}
|
|
1304
1141
|
const paColors = {
|
|
1305
|
-
'
|
|
1306
|
-
'
|
|
1307
|
-
'interactive-pressed': paLightTheme.interactivePressed,
|
|
1308
|
-
'interactive-focus': paLightTheme.interactiveFocus,
|
|
1309
|
-
'interactive-disabled': paLightTheme.interactiveDisabled,
|
|
1310
|
-
'interactive-hover-on-selected': paLightTheme.interactiveHoverOnSelected,
|
|
1142
|
+
'background-surface': paLightTheme.backgroundSurface,
|
|
1143
|
+
'background-surface-alt': paLightTheme.backgroundSurfaceAlt,
|
|
1311
1144
|
}
|
|
1312
1145
|
const apColors = {
|
|
1313
|
-
'
|
|
1314
|
-
'
|
|
1315
|
-
'interactive-pressed': apLightTheme.interactivePressed,
|
|
1316
|
-
'interactive-focus': apLightTheme.interactiveFocus,
|
|
1317
|
-
'interactive-disabled': apLightTheme.interactiveDisabled,
|
|
1318
|
-
'interactive-hover-on-selected': apLightTheme.interactiveHoverOnSelected,
|
|
1146
|
+
'background-surface': apLightTheme.backgroundSurface,
|
|
1147
|
+
'background-surface-alt': apLightTheme.backgroundSurfaceAlt,
|
|
1319
1148
|
}
|
|
1320
1149
|
const apColors2026 = {}
|
|
1321
1150
|
return {
|
|
@@ -1324,20 +1153,645 @@ export const Interactive: StoryObj = {
|
|
|
1324
1153
|
apColors,
|
|
1325
1154
|
apColors2026,
|
|
1326
1155
|
colorTitle,
|
|
1156
|
+
colorDescription,
|
|
1327
1157
|
colorTitleLevel,
|
|
1328
|
-
displayEmptyColors,
|
|
1329
1158
|
}
|
|
1330
1159
|
},
|
|
1331
1160
|
template: `
|
|
1332
1161
|
<ColorDisplay
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1162
|
+
displayEmptyColors
|
|
1163
|
+
colorCategory="alternativeBackgrounds"
|
|
1164
|
+
:cnamColors="cnamColors"
|
|
1165
|
+
:paColors="paColors"
|
|
1166
|
+
:apColors="apColors"
|
|
1167
|
+
:apColors2026="apColors2026"
|
|
1168
|
+
:colorTitle="colorTitle"
|
|
1169
|
+
:colorDescription="colorDescription"
|
|
1170
|
+
:colorTitleLevel="colorTitleLevel"
|
|
1171
|
+
/>
|
|
1172
|
+
`,
|
|
1173
|
+
}
|
|
1174
|
+
},
|
|
1175
|
+
tags: ['!dev'],
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
export const AlternativeBackgrounds: StoryObj = {
|
|
1179
|
+
render: () => {
|
|
1180
|
+
return {
|
|
1181
|
+
components: { ColorDisplay },
|
|
1182
|
+
setup() {
|
|
1183
|
+
const colorTitle = 'Alternative'
|
|
1184
|
+
const colorDescription = ''
|
|
1185
|
+
const colorTitleLevel = 3
|
|
1186
|
+
const cnamColors = {}
|
|
1187
|
+
const paColors = {}
|
|
1188
|
+
const apColors = {}
|
|
1189
|
+
const apColors2026 = { 'ap-blue-lighten-3': apColorsTokens2026.apBlue.lighten3 }
|
|
1190
|
+
return {
|
|
1191
|
+
cnamColors,
|
|
1192
|
+
paColors,
|
|
1193
|
+
apColors,
|
|
1194
|
+
apColors2026,
|
|
1195
|
+
colorTitle,
|
|
1196
|
+
colorDescription,
|
|
1197
|
+
colorTitleLevel,
|
|
1198
|
+
}
|
|
1199
|
+
},
|
|
1200
|
+
template: `
|
|
1201
|
+
<ColorDisplay
|
|
1202
|
+
displayEmptyColors
|
|
1203
|
+
colorCategory="alternativeBackgrounds"
|
|
1204
|
+
:cnamColors="cnamColors"
|
|
1205
|
+
:paColors="paColors"
|
|
1206
|
+
:apColors="apColors"
|
|
1207
|
+
:apColors2026="apColors2026"
|
|
1208
|
+
:colorTitle="colorTitle"
|
|
1209
|
+
:colorDescription="colorDescription"
|
|
1210
|
+
:colorTitleLevel="colorTitleLevel"
|
|
1211
|
+
/>
|
|
1212
|
+
`,
|
|
1213
|
+
}
|
|
1214
|
+
},
|
|
1215
|
+
tags: ['!dev'],
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
export const RaisedBackgrounds: StoryObj = {
|
|
1219
|
+
render: () => {
|
|
1220
|
+
return {
|
|
1221
|
+
components: { ColorDisplay },
|
|
1222
|
+
setup() {
|
|
1223
|
+
const colorTitle = 'Raised'
|
|
1224
|
+
const colorDescription = 'Elle s’utilise sur les éléments ayant besoin d’une légère mise en exergue.'
|
|
1225
|
+
const colorTitleLevel = 3
|
|
1226
|
+
const cnamColors = {
|
|
1227
|
+
'background-raised': cnamLightTheme.backgroundRaised,
|
|
1228
|
+
}
|
|
1229
|
+
const paColors = {
|
|
1230
|
+
'background-raised': paLightTheme.backgroundRaised,
|
|
1231
|
+
}
|
|
1232
|
+
const apColors = {
|
|
1233
|
+
'background-raised': apLightTheme.backgroundRaised,
|
|
1234
|
+
}
|
|
1235
|
+
const apColors2026 = {}
|
|
1236
|
+
return {
|
|
1237
|
+
cnamColors,
|
|
1238
|
+
paColors,
|
|
1239
|
+
apColors,
|
|
1240
|
+
apColors2026,
|
|
1241
|
+
colorTitle,
|
|
1242
|
+
colorDescription,
|
|
1243
|
+
colorTitleLevel,
|
|
1244
|
+
}
|
|
1245
|
+
},
|
|
1246
|
+
template: `
|
|
1247
|
+
<ColorDisplay
|
|
1248
|
+
displayEmptyColors
|
|
1249
|
+
colorCategory="alternativeBackgrounds"
|
|
1250
|
+
:cnamColors="cnamColors"
|
|
1251
|
+
:paColors="paColors"
|
|
1252
|
+
:apColors="apColors"
|
|
1253
|
+
:apColors2026="apColors2026"
|
|
1254
|
+
:colorTitle="colorTitle"
|
|
1255
|
+
:colorDescription="colorDescription"
|
|
1256
|
+
:colorTitleLevel="colorTitleLevel"
|
|
1257
|
+
/>
|
|
1258
|
+
`,
|
|
1259
|
+
}
|
|
1260
|
+
},
|
|
1261
|
+
tags: ['!dev'],
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
export const DisabledBackgrounds: StoryObj = {
|
|
1265
|
+
render: () => {
|
|
1266
|
+
return {
|
|
1267
|
+
components: { ColorDisplay },
|
|
1268
|
+
setup() {
|
|
1269
|
+
const colorTitle = 'Disabled'
|
|
1270
|
+
const colorDescription = 'Elle s’utilise sur les background des éléments désactivés.'
|
|
1271
|
+
const colorTitleLevel = 3
|
|
1272
|
+
const cnamColors = {
|
|
1273
|
+
'background-disabled': cnamLightTheme.backgroundDisabled,
|
|
1274
|
+
'background-disabled-on-dark': cnamLightTheme.backgroundDisabledOnDark,
|
|
1275
|
+
}
|
|
1276
|
+
const paColors = {
|
|
1277
|
+
'background-disabled': paLightTheme.backgroundDisabled,
|
|
1278
|
+
'background-disabled-on-dark': paLightTheme.backgroundDisabledOnDark,
|
|
1279
|
+
}
|
|
1280
|
+
const apColors = {
|
|
1281
|
+
'background-disabled': apLightTheme.backgroundDisabled,
|
|
1282
|
+
'background-disabled-on-dark': apLightTheme.backgroundDisabledOnDark,
|
|
1283
|
+
}
|
|
1284
|
+
const apColors2026 = {}
|
|
1285
|
+
return {
|
|
1286
|
+
cnamColors,
|
|
1287
|
+
paColors,
|
|
1288
|
+
apColors,
|
|
1289
|
+
apColors2026,
|
|
1290
|
+
colorTitle,
|
|
1291
|
+
colorDescription,
|
|
1292
|
+
colorTitleLevel,
|
|
1293
|
+
}
|
|
1294
|
+
},
|
|
1295
|
+
template: `
|
|
1296
|
+
<ColorDisplay
|
|
1297
|
+
displayEmptyColors
|
|
1298
|
+
colorCategory="alternativeBackgrounds"
|
|
1299
|
+
:cnamColors="cnamColors"
|
|
1300
|
+
:paColors="paColors"
|
|
1301
|
+
:apColors="apColors"
|
|
1302
|
+
:apColors2026="apColors2026"
|
|
1303
|
+
:colorTitle="colorTitle"
|
|
1304
|
+
:colorDescription="colorDescription"
|
|
1305
|
+
:colorTitleLevel="colorTitleLevel"
|
|
1306
|
+
/>
|
|
1307
|
+
`,
|
|
1308
|
+
}
|
|
1309
|
+
},
|
|
1310
|
+
tags: ['!dev'],
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
export const InformationalBackgrounds: StoryObj = {
|
|
1314
|
+
render: () => {
|
|
1315
|
+
return {
|
|
1316
|
+
components: { ColorDisplay },
|
|
1317
|
+
setup() {
|
|
1318
|
+
const colorTitle = 'Informational'
|
|
1319
|
+
const colorTitleLevel = 3
|
|
1320
|
+
const cnamColors = {
|
|
1321
|
+
'background-info': cnamLightTheme.backgroundInfo,
|
|
1322
|
+
'background-info-subdued': cnamLightTheme.backgroundInfoSubdued,
|
|
1323
|
+
'background-info-contrasted': cnamLightTheme.backgroundInfoContrasted,
|
|
1324
|
+
}
|
|
1325
|
+
const paColors = {
|
|
1326
|
+
'background-info': paLightTheme.backgroundInfo,
|
|
1327
|
+
'background-info-subdued': paLightTheme.backgroundInfoSubdued,
|
|
1328
|
+
'background-info-contrasted': paLightTheme.backgroundInfoContrasted,
|
|
1329
|
+
}
|
|
1330
|
+
const apColors = {
|
|
1331
|
+
'background-info': apLightTheme.backgroundInfo,
|
|
1332
|
+
'background-info-subdued': apLightTheme.backgroundInfoSubdued,
|
|
1333
|
+
'background-info-contrasted': apLightTheme.backgroundInfoContrasted,
|
|
1334
|
+
}
|
|
1335
|
+
const apColors2026 = {}
|
|
1336
|
+
return {
|
|
1337
|
+
cnamColors,
|
|
1338
|
+
paColors,
|
|
1339
|
+
apColors,
|
|
1340
|
+
apColors2026,
|
|
1341
|
+
colorTitle,
|
|
1342
|
+
colorTitleLevel,
|
|
1343
|
+
}
|
|
1344
|
+
},
|
|
1345
|
+
template: `
|
|
1346
|
+
<ColorDisplay
|
|
1347
|
+
displayEmptyColors
|
|
1348
|
+
colorCategory="informationalBackgrounds"
|
|
1349
|
+
:cnamColors="cnamColors"
|
|
1350
|
+
:paColors="paColors"
|
|
1351
|
+
:apColors="apColors"
|
|
1352
|
+
:apColors2026="apColors2026"
|
|
1353
|
+
:colorTitle="colorTitle"
|
|
1354
|
+
:colorTitleLevel="colorTitleLevel"
|
|
1355
|
+
/>
|
|
1356
|
+
`,
|
|
1357
|
+
}
|
|
1358
|
+
},
|
|
1359
|
+
tags: ['!dev'],
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
export const SuccessBackgrounds: StoryObj = {
|
|
1363
|
+
render: () => {
|
|
1364
|
+
return {
|
|
1365
|
+
components: { ColorDisplay },
|
|
1366
|
+
setup() {
|
|
1367
|
+
const colorTitle = 'Success'
|
|
1368
|
+
const colorTitleLevel = 3
|
|
1369
|
+
const cnamColors = {
|
|
1370
|
+
'background-success': cnamLightTheme.backgroundSuccess,
|
|
1371
|
+
'background-success-subdued': cnamLightTheme.backgroundSuccessSubdued,
|
|
1372
|
+
'background-success-contrasted': cnamLightTheme.backgroundSuccessContrasted,
|
|
1373
|
+
}
|
|
1374
|
+
const paColors = {
|
|
1375
|
+
'background-success': paLightTheme.backgroundSuccess,
|
|
1376
|
+
'background-success-subdued': paLightTheme.backgroundSuccessSubdued,
|
|
1377
|
+
'background-success-contrasted': paLightTheme.backgroundSuccessContrasted,
|
|
1378
|
+
}
|
|
1379
|
+
const apColors = {
|
|
1380
|
+
'background-success': apLightTheme.backgroundSuccess,
|
|
1381
|
+
'background-success-subdued': apLightTheme.backgroundSuccessSubdued,
|
|
1382
|
+
'background-success-contrasted': apLightTheme.backgroundSuccessContrasted,
|
|
1383
|
+
}
|
|
1384
|
+
const apColors2026 = {}
|
|
1385
|
+
return {
|
|
1386
|
+
cnamColors,
|
|
1387
|
+
paColors,
|
|
1388
|
+
apColors,
|
|
1389
|
+
apColors2026,
|
|
1390
|
+
colorTitle,
|
|
1391
|
+
colorTitleLevel,
|
|
1392
|
+
}
|
|
1393
|
+
},
|
|
1394
|
+
template: `
|
|
1395
|
+
<ColorDisplay
|
|
1396
|
+
displayEmptyColors
|
|
1397
|
+
colorCategory="successBackgrounds"
|
|
1398
|
+
:cnamColors="cnamColors"
|
|
1399
|
+
:paColors="paColors"
|
|
1400
|
+
:apColors="apColors"
|
|
1401
|
+
:apColors2026="apColors2026"
|
|
1402
|
+
:colorTitle="colorTitle"
|
|
1403
|
+
:colorTitleLevel="colorTitleLevel"
|
|
1404
|
+
/>
|
|
1405
|
+
`,
|
|
1406
|
+
}
|
|
1407
|
+
},
|
|
1408
|
+
tags: ['!dev'],
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
export const WarningBackgrounds: StoryObj = {
|
|
1412
|
+
render: () => {
|
|
1413
|
+
return {
|
|
1414
|
+
components: { ColorDisplay },
|
|
1415
|
+
setup() {
|
|
1416
|
+
const colorTitle = 'Warning'
|
|
1417
|
+
const colorTitleLevel = 3
|
|
1418
|
+
const cnamColors = {
|
|
1419
|
+
'background-warning': cnamLightTheme.backgroundWarning,
|
|
1420
|
+
'background-warning-subdued': cnamLightTheme.backgroundWarningSubdued,
|
|
1421
|
+
'background-warning-contrasted': cnamLightTheme.backgroundWarningContrasted,
|
|
1422
|
+
}
|
|
1423
|
+
const paColors = {
|
|
1424
|
+
'background-warning': paLightTheme.backgroundWarning,
|
|
1425
|
+
'background-warning-subdued': paLightTheme.backgroundWarningSubdued,
|
|
1426
|
+
'background-warning-contrasted': paLightTheme.backgroundWarningContrasted,
|
|
1427
|
+
}
|
|
1428
|
+
const apColors = {
|
|
1429
|
+
'background-warning': apLightTheme.backgroundWarning,
|
|
1430
|
+
'background-warning-subdued': apLightTheme.backgroundWarningSubdued,
|
|
1431
|
+
'background-warning-contrasted': apLightTheme.backgroundWarningContrasted,
|
|
1432
|
+
}
|
|
1433
|
+
const apColors2026 = {}
|
|
1434
|
+
return {
|
|
1435
|
+
cnamColors,
|
|
1436
|
+
paColors,
|
|
1437
|
+
apColors,
|
|
1438
|
+
apColors2026,
|
|
1439
|
+
colorTitle,
|
|
1440
|
+
colorTitleLevel,
|
|
1441
|
+
}
|
|
1442
|
+
},
|
|
1443
|
+
template: `
|
|
1444
|
+
<ColorDisplay
|
|
1445
|
+
displayEmptyColors
|
|
1446
|
+
colorCategory="warningBackgrounds"
|
|
1447
|
+
:cnamColors="cnamColors"
|
|
1448
|
+
:paColors="paColors"
|
|
1449
|
+
:apColors="apColors"
|
|
1450
|
+
:apColors2026="apColors2026"
|
|
1451
|
+
:colorTitle="colorTitle"
|
|
1452
|
+
:colorTitleLevel="colorTitleLevel"
|
|
1453
|
+
/>
|
|
1454
|
+
`,
|
|
1455
|
+
}
|
|
1456
|
+
},
|
|
1457
|
+
tags: ['!dev'],
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
export const ErrorBackgrounds: StoryObj = {
|
|
1461
|
+
render: () => {
|
|
1462
|
+
return {
|
|
1463
|
+
components: { ColorDisplay },
|
|
1464
|
+
setup() {
|
|
1465
|
+
const colorTitle = 'Error'
|
|
1466
|
+
const colorTitleLevel = 3
|
|
1467
|
+
const cnamColors = {
|
|
1468
|
+
'background-error': cnamLightTheme.backgroundError,
|
|
1469
|
+
'background-error-subdued': cnamLightTheme.backgroundErrorSubdued,
|
|
1470
|
+
'background-error-contrasted': cnamLightTheme.backgroundErrorContrasted,
|
|
1471
|
+
}
|
|
1472
|
+
const paColors = {
|
|
1473
|
+
'background-error': paLightTheme.backgroundError,
|
|
1474
|
+
'background-error-subdued': paLightTheme.backgroundErrorSubdued,
|
|
1475
|
+
'background-error-contrasted': paLightTheme.backgroundErrorContrasted,
|
|
1476
|
+
}
|
|
1477
|
+
const apColors = {
|
|
1478
|
+
'background-error': apLightTheme.backgroundError,
|
|
1479
|
+
'background-error-subdued': apLightTheme.backgroundErrorSubdued,
|
|
1480
|
+
'background-error-contrasted': apLightTheme.backgroundErrorContrasted,
|
|
1481
|
+
}
|
|
1482
|
+
const apColors2026 = {}
|
|
1483
|
+
return {
|
|
1484
|
+
cnamColors,
|
|
1485
|
+
paColors,
|
|
1486
|
+
apColors,
|
|
1487
|
+
apColors2026,
|
|
1488
|
+
colorTitle,
|
|
1489
|
+
colorTitleLevel,
|
|
1490
|
+
}
|
|
1491
|
+
},
|
|
1492
|
+
template: `
|
|
1493
|
+
<ColorDisplay
|
|
1494
|
+
displayEmptyColors
|
|
1495
|
+
colorCategory="errorBackgrounds"
|
|
1496
|
+
:cnamColors="cnamColors"
|
|
1497
|
+
:paColors="paColors"
|
|
1498
|
+
:apColors="apColors"
|
|
1499
|
+
:apColors2026="apColors2026"
|
|
1500
|
+
:colorTitle="colorTitle"
|
|
1501
|
+
:colorTitleLevel="colorTitleLevel"
|
|
1502
|
+
/>
|
|
1503
|
+
`,
|
|
1504
|
+
}
|
|
1505
|
+
},
|
|
1506
|
+
tags: ['!dev'],
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
export const OtherBackgrounds: StoryObj = {
|
|
1510
|
+
render: () => {
|
|
1511
|
+
return {
|
|
1512
|
+
components: { ColorDisplay },
|
|
1513
|
+
setup() {
|
|
1514
|
+
const colorTitle = 'Other'
|
|
1515
|
+
const colorTitleLevel = 3
|
|
1516
|
+
const cnamColors = {
|
|
1517
|
+
'background-assure': cnamLightTheme.backgroundAssure,
|
|
1518
|
+
'background-professionnel': cnamLightTheme.backgroundProfessionnel,
|
|
1519
|
+
'background-entreprise': cnamLightTheme.backgroundEntreprise,
|
|
1520
|
+
}
|
|
1521
|
+
const paColors = {
|
|
1522
|
+
'background-assure': paLightTheme.backgroundAssure,
|
|
1523
|
+
'background-professionnel': paLightTheme.backgroundProfessionnel,
|
|
1524
|
+
'background-entreprise': paLightTheme.backgroundEntreprise,
|
|
1525
|
+
}
|
|
1526
|
+
const apColors = {
|
|
1527
|
+
'background-assure': apLightTheme.backgroundAssure,
|
|
1528
|
+
'background-professionnel': apLightTheme.backgroundProfessionnel,
|
|
1529
|
+
'background-entreprise': apLightTheme.backgroundEntreprise,
|
|
1530
|
+
}
|
|
1531
|
+
const apColors2026 = {}
|
|
1532
|
+
return {
|
|
1533
|
+
cnamColors,
|
|
1534
|
+
paColors,
|
|
1535
|
+
apColors,
|
|
1536
|
+
apColors2026,
|
|
1537
|
+
colorTitle,
|
|
1538
|
+
colorTitleLevel,
|
|
1539
|
+
}
|
|
1540
|
+
},
|
|
1541
|
+
template: `
|
|
1542
|
+
<ColorDisplay
|
|
1543
|
+
displayEmptyColors
|
|
1544
|
+
colorCategory="otherBackgrounds"
|
|
1545
|
+
:cnamColors="cnamColors"
|
|
1546
|
+
:paColors="paColors"
|
|
1547
|
+
:apColors="apColors"
|
|
1548
|
+
:apColors2026="apColors2026"
|
|
1549
|
+
:colorTitle="colorTitle"
|
|
1550
|
+
:colorTitleLevel="colorTitleLevel"
|
|
1551
|
+
/>
|
|
1552
|
+
`,
|
|
1553
|
+
}
|
|
1554
|
+
},
|
|
1555
|
+
tags: ['!dev'],
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
export const StatusBackgrounds: StoryObj = {
|
|
1559
|
+
render: () => {
|
|
1560
|
+
return {
|
|
1561
|
+
components: { ColorDisplay },
|
|
1562
|
+
setup() {
|
|
1563
|
+
const colorTitle = 'Fonds pour les statuts'
|
|
1564
|
+
const colorTitleLevel = 3
|
|
1565
|
+
const displayEmptyColors = false
|
|
1566
|
+
const cnamColors = {}
|
|
1567
|
+
const paColors = {}
|
|
1568
|
+
const apColors = {}
|
|
1569
|
+
const apColors2026 = {
|
|
1570
|
+
'ap-blue-lighten-2': apColorsTokens2026.apBlue.lighten2,
|
|
1571
|
+
'ap-parme': apColorsTokens2026.apParme.base,
|
|
1572
|
+
'ap-yellow-lighten-3': apColorsTokens2026.apYellow.lighten3,
|
|
1573
|
+
'ap-red-lighten-2': apColorsTokens2026.apRed.lighten2,
|
|
1574
|
+
'ap-red-lighten-3': apColorsTokens2026.apRed.lighten3,
|
|
1575
|
+
'ap-green-lighten-2': apColorsTokens2026.apGreen.lighten2,
|
|
1576
|
+
'ap-grey-lighten-2': apColorsTokens2026.apGrey.lighten2,
|
|
1577
|
+
}
|
|
1578
|
+
return {
|
|
1579
|
+
displayEmptyColors,
|
|
1580
|
+
cnamColors,
|
|
1581
|
+
paColors,
|
|
1582
|
+
apColors,
|
|
1583
|
+
apColors2026,
|
|
1584
|
+
colorTitle,
|
|
1585
|
+
colorTitleLevel,
|
|
1586
|
+
}
|
|
1587
|
+
},
|
|
1588
|
+
template: `
|
|
1589
|
+
<ColorDisplay
|
|
1590
|
+
colorCategory="base"
|
|
1591
|
+
:cnamColors="cnamColors"
|
|
1592
|
+
:paColors="paColors"
|
|
1593
|
+
:apColors="apColors"
|
|
1594
|
+
:apColors2026="apColors2026"
|
|
1595
|
+
:colorTitle="colorTitle"
|
|
1596
|
+
:colorTitleLevel="colorTitleLevel"
|
|
1597
|
+
:displayEmptyColors="displayEmptyColors"
|
|
1598
|
+
/>
|
|
1599
|
+
`,
|
|
1600
|
+
}
|
|
1601
|
+
},
|
|
1602
|
+
tags: ['!dev'],
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
export const MessagesBackgrounds: StoryObj = {
|
|
1606
|
+
render: () => {
|
|
1607
|
+
return {
|
|
1608
|
+
components: { ColorDisplay },
|
|
1609
|
+
setup() {
|
|
1610
|
+
const colorTitle = 'Fonds pour les messages'
|
|
1611
|
+
const colorTitleLevel = 3
|
|
1612
|
+
const displayEmptyColors = false
|
|
1613
|
+
const cnamColors = {}
|
|
1614
|
+
const paColors = {}
|
|
1615
|
+
const apColors = {}
|
|
1616
|
+
const apColors2026 = {
|
|
1617
|
+
'ap-red': apColorsTokens2026.apRed.base,
|
|
1618
|
+
'ap-turquoise-darken-1': apColorsTokens2026.apTurquoise.darken1,
|
|
1619
|
+
'ap-yellow': apColorsTokens2026.apYellow.base,
|
|
1620
|
+
'ap-parme-darken-1': apColorsTokens2026.apParme.darken1,
|
|
1621
|
+
}
|
|
1622
|
+
return {
|
|
1623
|
+
displayEmptyColors,
|
|
1624
|
+
cnamColors,
|
|
1625
|
+
paColors,
|
|
1626
|
+
apColors,
|
|
1627
|
+
apColors2026,
|
|
1628
|
+
colorTitle,
|
|
1629
|
+
colorTitleLevel,
|
|
1630
|
+
}
|
|
1631
|
+
},
|
|
1632
|
+
template: `
|
|
1633
|
+
<ColorDisplay
|
|
1634
|
+
colorCategory="base"
|
|
1635
|
+
:cnamColors="cnamColors"
|
|
1636
|
+
:paColors="paColors"
|
|
1637
|
+
:apColors="apColors"
|
|
1638
|
+
:apColors2026="apColors2026"
|
|
1639
|
+
:colorTitle="colorTitle"
|
|
1640
|
+
:colorTitleLevel="colorTitleLevel"
|
|
1641
|
+
:displayEmptyColors="displayEmptyColors"
|
|
1642
|
+
/>
|
|
1643
|
+
`,
|
|
1644
|
+
}
|
|
1645
|
+
},
|
|
1646
|
+
tags: ['!dev'],
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
export const BackgroundSection = {
|
|
1650
|
+
render() {
|
|
1651
|
+
return h(createSection('Background', [
|
|
1652
|
+
MainBackgrounds,
|
|
1653
|
+
SurfaceBackgrounds,
|
|
1654
|
+
AlternativeBackgrounds,
|
|
1655
|
+
RaisedBackgrounds,
|
|
1656
|
+
DisabledBackgrounds,
|
|
1657
|
+
InformationalBackgrounds,
|
|
1658
|
+
SuccessBackgrounds,
|
|
1659
|
+
WarningBackgrounds,
|
|
1660
|
+
ErrorBackgrounds,
|
|
1661
|
+
OtherBackgrounds,
|
|
1662
|
+
StatusBackgrounds,
|
|
1663
|
+
MessagesBackgrounds,
|
|
1664
|
+
]))
|
|
1665
|
+
},
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
export const PaletteOrange: StoryObj = {
|
|
1669
|
+
render: () => {
|
|
1670
|
+
return {
|
|
1671
|
+
components: { ColorDisplay },
|
|
1672
|
+
setup() {
|
|
1673
|
+
const colorTitle = 'Orange'
|
|
1674
|
+
const displayEmptyColors = false
|
|
1675
|
+
const colorTitleLevel = 3
|
|
1676
|
+
const cnamColors = {
|
|
1677
|
+
'orange-darken-80': cnamColorsTokens.orange.darken80,
|
|
1678
|
+
'orange-darken-60': cnamColorsTokens.orange.darken60,
|
|
1679
|
+
'orange-darken-40': cnamColorsTokens.orange.darken40,
|
|
1680
|
+
'orange-darken-20': cnamColorsTokens.orange.darken20,
|
|
1681
|
+
'orange-base': cnamColorsTokens.orange.base,
|
|
1682
|
+
'orange-lighten-20': cnamColorsTokens.orange.lighten20,
|
|
1683
|
+
'orange-lighten-40': cnamColorsTokens.orange.lighten40,
|
|
1684
|
+
'orange-lighten-60': cnamColorsTokens.orange.lighten60,
|
|
1685
|
+
'orange-lighten-80': cnamColorsTokens.orange.lighten80,
|
|
1686
|
+
'orange-lighten-90': cnamColorsTokens.orange.lighten90,
|
|
1687
|
+
'orange-lighten-97': cnamColorsTokens.orange.lighten97,
|
|
1688
|
+
}
|
|
1689
|
+
const paColors = {
|
|
1690
|
+
'orange-darken-80': paColorsTokens.orange.darken80,
|
|
1691
|
+
'orange-darken-60': paColorsTokens.orange.darken60,
|
|
1692
|
+
'orange-darken-40': paColorsTokens.orange.darken40,
|
|
1693
|
+
'orange-darken-20': paColorsTokens.orange.darken20,
|
|
1694
|
+
'orange-base': paColorsTokens.orange.base,
|
|
1695
|
+
'orange-lighten-20': paColorsTokens.orange.lighten20,
|
|
1696
|
+
'orange-lighten-40': paColorsTokens.orange.lighten40,
|
|
1697
|
+
'orange-lighten-60': paColorsTokens.orange.lighten60,
|
|
1698
|
+
'orange-lighten-80': paColorsTokens.orange.lighten80,
|
|
1699
|
+
'orange-lighten-90': paColorsTokens.orange.lighten90,
|
|
1700
|
+
'orange-lighten-97': paColorsTokens.orange.lighten97,
|
|
1701
|
+
}
|
|
1702
|
+
const apColors = {
|
|
1703
|
+
'amber-darken-80': apColorsTokens.amber.darken80,
|
|
1704
|
+
'amber-darken-60': apColorsTokens.amber.darken60,
|
|
1705
|
+
'amber-darken-40': apColorsTokens.amber.darken40,
|
|
1706
|
+
'amber-darken-20': apColorsTokens.amber.darken20,
|
|
1707
|
+
'amber-base': apColorsTokens.amber.base,
|
|
1708
|
+
'amber-lighten-20': apColorsTokens.amber.lighten20,
|
|
1709
|
+
'amber-lighten-40': apColorsTokens.amber.lighten40,
|
|
1710
|
+
'amber-lighten-60': apColorsTokens.amber.lighten60,
|
|
1711
|
+
'amber-lighten-80': apColorsTokens.amber.lighten80,
|
|
1712
|
+
'amber-lighten-90': apColorsTokens.amber.lighten90,
|
|
1713
|
+
'amber-lighten-97': apColorsTokens.amber.lighten97,
|
|
1714
|
+
}
|
|
1715
|
+
const apColors2026 = {}
|
|
1716
|
+
return {
|
|
1717
|
+
cnamColors,
|
|
1718
|
+
paColors,
|
|
1719
|
+
apColors,
|
|
1720
|
+
apColors2026,
|
|
1721
|
+
colorTitle,
|
|
1722
|
+
colorTitleLevel,
|
|
1723
|
+
displayEmptyColors,
|
|
1724
|
+
}
|
|
1725
|
+
},
|
|
1726
|
+
template: `
|
|
1727
|
+
<ColorDisplay
|
|
1728
|
+
:displayEmptyColors="displayEmptyColors"
|
|
1729
|
+
colorCategory="base"
|
|
1730
|
+
:cnamColors="cnamColors"
|
|
1731
|
+
:paColors="paColors"
|
|
1732
|
+
:apColors="apColors"
|
|
1733
|
+
:apColors2026="apColors2026"
|
|
1734
|
+
:colorTitle="colorTitle"
|
|
1735
|
+
:colorTitleLevel="colorTitleLevel"
|
|
1736
|
+
/>
|
|
1737
|
+
`,
|
|
1738
|
+
}
|
|
1739
|
+
},
|
|
1740
|
+
tags: ['!dev'],
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
export const PaletteRed: StoryObj = {
|
|
1744
|
+
render: () => {
|
|
1745
|
+
return {
|
|
1746
|
+
components: { ColorDisplay },
|
|
1747
|
+
setup() {
|
|
1748
|
+
const colorTitle = 'Red'
|
|
1749
|
+
const colorTitleLevel = 3
|
|
1750
|
+
const displayEmptyColors = false
|
|
1751
|
+
const cnamColors = {}
|
|
1752
|
+
const paColors = {}
|
|
1753
|
+
const apColors = {
|
|
1754
|
+
'red-darken-80': apColorsTokens.red.darken80,
|
|
1755
|
+
'red-darken-60': apColorsTokens.red.darken60,
|
|
1756
|
+
'red-darken-40': apColorsTokens.red.darken40,
|
|
1757
|
+
'red-darken-20': apColorsTokens.red.darken20,
|
|
1758
|
+
'red-base': apColorsTokens.red.base,
|
|
1759
|
+
'red-lighten-20': apColorsTokens.red.lighten20,
|
|
1760
|
+
'red-lighten-40': apColorsTokens.red.lighten40,
|
|
1761
|
+
'red-lighten-60': apColorsTokens.red.lighten60,
|
|
1762
|
+
'red-lighten-80': apColorsTokens.red.lighten80,
|
|
1763
|
+
'red-lighten-90': apColorsTokens.red.lighten90,
|
|
1764
|
+
'red-lighten-97': apColorsTokens.red.lighten97,
|
|
1765
|
+
}
|
|
1766
|
+
const apColors2026 = {
|
|
1767
|
+
'ap-red-darken-2': apColorsTokens2026.apRed.darken2,
|
|
1768
|
+
'ap-red-darken-1': apColorsTokens2026.apRed.darken1,
|
|
1769
|
+
'ap-red': apColorsTokens2026.apRed.base,
|
|
1770
|
+
'ap-red-lighten-1': apColorsTokens2026.apRed.lighten1,
|
|
1771
|
+
'ap-red-lighten-2': apColorsTokens2026.apRed.lighten2,
|
|
1772
|
+
'ap-red-lighten-3': apColorsTokens2026.apRed.lighten3,
|
|
1773
|
+
'ap-red-lighten-4': apColorsTokens2026.apRed.lighten4,
|
|
1774
|
+
}
|
|
1775
|
+
return {
|
|
1776
|
+
displayEmptyColors,
|
|
1777
|
+
cnamColors,
|
|
1778
|
+
paColors,
|
|
1779
|
+
apColors,
|
|
1780
|
+
apColors2026,
|
|
1781
|
+
colorTitle,
|
|
1782
|
+
colorTitleLevel,
|
|
1783
|
+
}
|
|
1784
|
+
},
|
|
1785
|
+
template: `
|
|
1786
|
+
<ColorDisplay
|
|
1787
|
+
colorCategory="base"
|
|
1788
|
+
:cnamColors="cnamColors"
|
|
1789
|
+
:paColors="paColors"
|
|
1790
|
+
:apColors="apColors"
|
|
1791
|
+
:apColors2026="apColors2026"
|
|
1792
|
+
:colorTitle="colorTitle"
|
|
1340
1793
|
:colorTitleLevel="colorTitleLevel"
|
|
1794
|
+
:displayEmptyColors="displayEmptyColors"
|
|
1341
1795
|
/>
|
|
1342
1796
|
`,
|
|
1343
1797
|
}
|
|
@@ -1345,59 +1799,194 @@ export const Interactive: StoryObj = {
|
|
|
1345
1799
|
tags: ['!dev'],
|
|
1346
1800
|
}
|
|
1347
1801
|
|
|
1348
|
-
export const
|
|
1802
|
+
export const PaletteYellow: StoryObj = {
|
|
1803
|
+
render: () => {
|
|
1804
|
+
return {
|
|
1805
|
+
components: { ColorDisplay },
|
|
1806
|
+
setup() {
|
|
1807
|
+
const colorTitle = 'Yellow'
|
|
1808
|
+
const colorTitleLevel = 3
|
|
1809
|
+
const cnamColors = {
|
|
1810
|
+
'yellow-darken-80': cnamColorsTokens.yellow.darken80,
|
|
1811
|
+
'yellow-darken-60': cnamColorsTokens.yellow.darken60,
|
|
1812
|
+
'yellow-darken-40': cnamColorsTokens.yellow.darken40,
|
|
1813
|
+
'yellow-darken-20': cnamColorsTokens.yellow.darken20,
|
|
1814
|
+
'yellow-base': cnamColorsTokens.yellow.base,
|
|
1815
|
+
'yellow-lighten-20': cnamColorsTokens.yellow.lighten20,
|
|
1816
|
+
'yellow-lighten-40': cnamColorsTokens.yellow.lighten40,
|
|
1817
|
+
'yellow-lighten-60': cnamColorsTokens.yellow.lighten60,
|
|
1818
|
+
'yellow-lighten-80': cnamColorsTokens.yellow.lighten80,
|
|
1819
|
+
'yellow-lighten-90': cnamColorsTokens.yellow.lighten90,
|
|
1820
|
+
'yellow-lighten-97': cnamColorsTokens.yellow.lighten97,
|
|
1821
|
+
}
|
|
1822
|
+
const paColors = {
|
|
1823
|
+
'yellow-darken-80': paColorsTokens.yellow.darken80,
|
|
1824
|
+
'yellow-darken-60': paColorsTokens.yellow.darken60,
|
|
1825
|
+
'yellow-darken-40': paColorsTokens.yellow.darken40,
|
|
1826
|
+
'yellow-darken-20': paColorsTokens.yellow.darken20,
|
|
1827
|
+
'yellow-base': paColorsTokens.yellow.base,
|
|
1828
|
+
'yellow-lighten-20': paColorsTokens.yellow.lighten20,
|
|
1829
|
+
'yellow-lighten-40': paColorsTokens.yellow.lighten40,
|
|
1830
|
+
'yellow-lighten-60': paColorsTokens.yellow.lighten60,
|
|
1831
|
+
'yellow-lighten-80': paColorsTokens.yellow.lighten80,
|
|
1832
|
+
'yellow-lighten-90': paColorsTokens.yellow.lighten90,
|
|
1833
|
+
'yellow-lighten-97': paColorsTokens.yellow.lighten97,
|
|
1834
|
+
}
|
|
1835
|
+
const apColors = {
|
|
1836
|
+
'yellow-darken-80': apColorsTokens.yellow.darken80,
|
|
1837
|
+
'yellow-darken-60': apColorsTokens.yellow.darken60,
|
|
1838
|
+
'yellow-darken-40': apColorsTokens.yellow.darken40,
|
|
1839
|
+
'yellow-darken-20': apColorsTokens.yellow.darken20,
|
|
1840
|
+
'yellow-base': apColorsTokens.yellow.base,
|
|
1841
|
+
'yellow-lighten-20': apColorsTokens.yellow.lighten20,
|
|
1842
|
+
'yellow-lighten-40': apColorsTokens.yellow.lighten40,
|
|
1843
|
+
'yellow-lighten-60': apColorsTokens.yellow.lighten60,
|
|
1844
|
+
'yellow-lighten-80': apColorsTokens.yellow.lighten80,
|
|
1845
|
+
'yellow-lighten-90': apColorsTokens.yellow.lighten90,
|
|
1846
|
+
'yellow-lighten-97': apColorsTokens.yellow.lighten97,
|
|
1847
|
+
}
|
|
1848
|
+
const apColors2026 = {
|
|
1849
|
+
'ap-yellow-darken-4': apColorsTokens2026.apYellow.darken4,
|
|
1850
|
+
'ap-yellow-darken-3': apColorsTokens2026.apYellow.darken3,
|
|
1851
|
+
'ap-yellow-darken-2': apColorsTokens2026.apYellow.darken2,
|
|
1852
|
+
'ap-yellow-darken-1': apColorsTokens2026.apYellow.darken1,
|
|
1853
|
+
'ap-yellow': apColorsTokens2026.apYellow.base,
|
|
1854
|
+
'ap-yellow-lighten-1': apColorsTokens2026.apYellow.lighten1,
|
|
1855
|
+
'ap-yellow-lighten-2': apColorsTokens2026.apYellow.lighten2,
|
|
1856
|
+
'ap-yellow-lighten-3': apColorsTokens2026.apYellow.lighten3,
|
|
1857
|
+
'ap-yellow-lighten-4': apColorsTokens2026.apYellow.lighten4,
|
|
1858
|
+
'ap-yellow-lighten-5': apColorsTokens2026.apYellow.lighten5,
|
|
1859
|
+
}
|
|
1860
|
+
return {
|
|
1861
|
+
cnamColors,
|
|
1862
|
+
paColors,
|
|
1863
|
+
apColors,
|
|
1864
|
+
apColors2026: apColors2026,
|
|
1865
|
+
colorTitle,
|
|
1866
|
+
colorTitleLevel,
|
|
1867
|
+
}
|
|
1868
|
+
},
|
|
1869
|
+
template: `
|
|
1870
|
+
<ColorDisplay
|
|
1871
|
+
displayEmptyColors
|
|
1872
|
+
colorCategory="base"
|
|
1873
|
+
:cnamColors="cnamColors"
|
|
1874
|
+
:paColors="paColors"
|
|
1875
|
+
:apColors="apColors"
|
|
1876
|
+
:apColors2026="apColors2026"
|
|
1877
|
+
:colorTitle="colorTitle"
|
|
1878
|
+
:colorTitleLevel="colorTitleLevel"
|
|
1879
|
+
/>
|
|
1880
|
+
`,
|
|
1881
|
+
}
|
|
1882
|
+
},
|
|
1883
|
+
tags: ['!dev'],
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
export const PaletteForestGreen: StoryObj = {
|
|
1887
|
+
render: () => {
|
|
1888
|
+
return {
|
|
1889
|
+
components: { ColorDisplay },
|
|
1890
|
+
setup() {
|
|
1891
|
+
const colorTitle = 'Forest green'
|
|
1892
|
+
const displayEmptyColors = false
|
|
1893
|
+
const colorTitleLevel = 3
|
|
1894
|
+
const apColors = {
|
|
1895
|
+
'forest-green-darken-80': apColorsTokens.forestGreen.darken80,
|
|
1896
|
+
'forest-green-darken-60': apColorsTokens.forestGreen.darken60,
|
|
1897
|
+
'forest-green-darken-40': apColorsTokens.forestGreen.darken40,
|
|
1898
|
+
'forest-green-darken-20': apColorsTokens.forestGreen.darken20,
|
|
1899
|
+
'forest-green-base': apColorsTokens.forestGreen.base,
|
|
1900
|
+
'forest-green-lighten-20': apColorsTokens.forestGreen.lighten20,
|
|
1901
|
+
'forest-green-lighten-40': apColorsTokens.forestGreen.lighten40,
|
|
1902
|
+
'forest-green-lighten-60': apColorsTokens.forestGreen.lighten60,
|
|
1903
|
+
'forest-green-lighten-80': apColorsTokens.forestGreen.lighten80,
|
|
1904
|
+
'forest-green-lighten-90': apColorsTokens.forestGreen.lighten90,
|
|
1905
|
+
'forest-green-lighten-97': apColorsTokens.forestGreen.lighten97,
|
|
1906
|
+
}
|
|
1907
|
+
const cnamColors = {}
|
|
1908
|
+
const paColors = {}
|
|
1909
|
+
const apColors2026 = {}
|
|
1910
|
+
return {
|
|
1911
|
+
displayEmptyColors,
|
|
1912
|
+
cnamColors,
|
|
1913
|
+
paColors,
|
|
1914
|
+
apColors,
|
|
1915
|
+
apColors2026,
|
|
1916
|
+
colorTitle,
|
|
1917
|
+
colorTitleLevel,
|
|
1918
|
+
}
|
|
1919
|
+
},
|
|
1920
|
+
template: `
|
|
1921
|
+
<ColorDisplay
|
|
1922
|
+
colorCategory="base"
|
|
1923
|
+
:cnamColors="cnamColors"
|
|
1924
|
+
:paColors="paColors"
|
|
1925
|
+
:apColors="apColors"
|
|
1926
|
+
:apColors2026="apColors2026"
|
|
1927
|
+
:colorTitle="colorTitle"
|
|
1928
|
+
:colorTitleLevel="colorTitleLevel"
|
|
1929
|
+
:displayEmptyColors="displayEmptyColors"
|
|
1930
|
+
/>
|
|
1931
|
+
`,
|
|
1932
|
+
}
|
|
1933
|
+
},
|
|
1934
|
+
tags: ['!dev'],
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
export const PaletteGreen: StoryObj = {
|
|
1349
1938
|
render: () => {
|
|
1350
1939
|
return {
|
|
1351
1940
|
components: { ColorDisplay },
|
|
1352
1941
|
setup() {
|
|
1353
|
-
const colorTitle = '
|
|
1354
|
-
const colorTitleLevel =
|
|
1942
|
+
const colorTitle = 'Green'
|
|
1943
|
+
const colorTitleLevel = 3
|
|
1355
1944
|
const cnamColors = {
|
|
1356
|
-
'
|
|
1357
|
-
'
|
|
1358
|
-
'
|
|
1359
|
-
'
|
|
1360
|
-
'
|
|
1361
|
-
'
|
|
1362
|
-
'
|
|
1363
|
-
'
|
|
1364
|
-
'
|
|
1365
|
-
'
|
|
1366
|
-
'
|
|
1367
|
-
'border-disabled': cnamLightTheme.borderDisabled,
|
|
1368
|
-
'border-disabled-on-dark': cnamLightTheme.borderDisabledOnDark,
|
|
1945
|
+
'green-darken-80': cnamColorsTokens.green.darken80,
|
|
1946
|
+
'green-darken-60': cnamColorsTokens.green.darken60,
|
|
1947
|
+
'green-darken-40': cnamColorsTokens.green.darken40,
|
|
1948
|
+
'green-darken-20': cnamColorsTokens.green.darken20,
|
|
1949
|
+
'green-base': cnamColorsTokens.green.base,
|
|
1950
|
+
'green-lighten-20': cnamColorsTokens.green.lighten20,
|
|
1951
|
+
'green-lighten-40': cnamColorsTokens.green.lighten40,
|
|
1952
|
+
'green-lighten-60': cnamColorsTokens.green.lighten60,
|
|
1953
|
+
'green-lighten-80': cnamColorsTokens.green.lighten80,
|
|
1954
|
+
'green-lighten-90': cnamColorsTokens.green.lighten90,
|
|
1955
|
+
'green-lighten-97': cnamColorsTokens.green.lighten97,
|
|
1369
1956
|
}
|
|
1370
1957
|
const paColors = {
|
|
1371
|
-
'
|
|
1372
|
-
'
|
|
1373
|
-
'
|
|
1374
|
-
'
|
|
1375
|
-
'
|
|
1376
|
-
'
|
|
1377
|
-
'
|
|
1378
|
-
'
|
|
1379
|
-
'
|
|
1380
|
-
'
|
|
1381
|
-
'
|
|
1382
|
-
'border-disabled': paLightTheme.borderDisabled,
|
|
1383
|
-
'border-disabled-on-dark': paLightTheme.borderDisabledOnDark,
|
|
1958
|
+
'green-darken-80': paColorsTokens.green.darken80,
|
|
1959
|
+
'green-darken-60': paColorsTokens.green.darken60,
|
|
1960
|
+
'green-darken-40': paColorsTokens.green.darken40,
|
|
1961
|
+
'green-darken-20': paColorsTokens.green.darken20,
|
|
1962
|
+
'green-base': paColorsTokens.green.base,
|
|
1963
|
+
'green-lighten-20': paColorsTokens.green.lighten20,
|
|
1964
|
+
'green-lighten-40': paColorsTokens.green.lighten40,
|
|
1965
|
+
'green-lighten-60': paColorsTokens.green.lighten60,
|
|
1966
|
+
'green-lighten-80': paColorsTokens.green.lighten80,
|
|
1967
|
+
'green-lighten-90': paColorsTokens.green.lighten90,
|
|
1968
|
+
'green-lighten-97': paColorsTokens.green.lighten97,
|
|
1384
1969
|
}
|
|
1385
1970
|
const apColors = {
|
|
1386
|
-
'
|
|
1387
|
-
'
|
|
1388
|
-
'
|
|
1389
|
-
'
|
|
1390
|
-
'
|
|
1391
|
-
'
|
|
1392
|
-
'
|
|
1393
|
-
'
|
|
1394
|
-
'
|
|
1395
|
-
'
|
|
1396
|
-
'
|
|
1397
|
-
|
|
1398
|
-
|
|
1971
|
+
'green-darken-80': apColorsTokens.green.darken80,
|
|
1972
|
+
'green-darken-60': apColorsTokens.green.darken60,
|
|
1973
|
+
'green-darken-40': apColorsTokens.green.darken40,
|
|
1974
|
+
'green-darken-20': apColorsTokens.green.darken20,
|
|
1975
|
+
'green-base': apColorsTokens.green.base,
|
|
1976
|
+
'green-lighten-20': apColorsTokens.green.lighten20,
|
|
1977
|
+
'green-lighten-40': apColorsTokens.green.lighten40,
|
|
1978
|
+
'green-lighten-60': apColorsTokens.green.lighten60,
|
|
1979
|
+
'green-lighten-80': apColorsTokens.green.lighten80,
|
|
1980
|
+
'green-lighten-90': apColorsTokens.green.lighten90,
|
|
1981
|
+
'green-lighten-97': apColorsTokens.green.lighten97,
|
|
1982
|
+
}
|
|
1983
|
+
const apColors2026 = {
|
|
1984
|
+
'ap-green-darken-2': apColorsTokens2026.apGreen.darken2,
|
|
1985
|
+
'ap-green-darken-1': apColorsTokens2026.apGreen.darken1,
|
|
1986
|
+
'ap-green': apColorsTokens2026.apGreen.base,
|
|
1987
|
+
'ap-green-lighten-1': apColorsTokens2026.apGreen.lighten1,
|
|
1988
|
+
'ap-green-lighten-2': apColorsTokens2026.apGreen.lighten2,
|
|
1399
1989
|
}
|
|
1400
|
-
const apColors2026 = {}
|
|
1401
1990
|
return {
|
|
1402
1991
|
cnamColors,
|
|
1403
1992
|
paColors,
|
|
@@ -1410,12 +1999,12 @@ export const Border: StoryObj = {
|
|
|
1410
1999
|
template: `
|
|
1411
2000
|
<ColorDisplay
|
|
1412
2001
|
displayEmptyColors
|
|
1413
|
-
colorCategory="
|
|
1414
|
-
|
|
1415
|
-
|
|
2002
|
+
colorCategory="base"
|
|
2003
|
+
:cnamColors="cnamColors"
|
|
2004
|
+
:paColors="paColors"
|
|
1416
2005
|
:apColors="apColors"
|
|
1417
2006
|
:apColors2026="apColors2026"
|
|
1418
|
-
|
|
2007
|
+
:colorTitle="colorTitle"
|
|
1419
2008
|
:colorTitleLevel="colorTitleLevel"
|
|
1420
2009
|
/>
|
|
1421
2010
|
`,
|
|
@@ -1424,56 +2013,60 @@ export const Border: StoryObj = {
|
|
|
1424
2013
|
tags: ['!dev'],
|
|
1425
2014
|
}
|
|
1426
2015
|
|
|
1427
|
-
export const
|
|
2016
|
+
export const PaletteTurquoise: StoryObj = {
|
|
1428
2017
|
render: () => {
|
|
1429
2018
|
return {
|
|
1430
2019
|
components: { ColorDisplay },
|
|
1431
2020
|
setup() {
|
|
1432
|
-
const colorTitle = '
|
|
1433
|
-
const colorTitleLevel =
|
|
2021
|
+
const colorTitle = 'Turquoise'
|
|
2022
|
+
const colorTitleLevel = 3
|
|
1434
2023
|
const cnamColors = {
|
|
1435
|
-
'
|
|
1436
|
-
'
|
|
1437
|
-
'
|
|
1438
|
-
'
|
|
1439
|
-
'
|
|
1440
|
-
'
|
|
1441
|
-
'
|
|
1442
|
-
'
|
|
1443
|
-
'
|
|
1444
|
-
'
|
|
1445
|
-
'
|
|
1446
|
-
'text-disabled-on-dark': cnamLightTheme.textDisabledOnDark,
|
|
2024
|
+
'turquoise-darken-80': cnamColorsTokens.turquoise.darken80,
|
|
2025
|
+
'turquoise-darken-60': cnamColorsTokens.turquoise.darken60,
|
|
2026
|
+
'turquoise-darken-40': cnamColorsTokens.turquoise.darken40,
|
|
2027
|
+
'turquoise-darken-20': cnamColorsTokens.turquoise.darken20,
|
|
2028
|
+
'turquoise-base': cnamColorsTokens.turquoise.base,
|
|
2029
|
+
'turquoise-lighten-20': cnamColorsTokens.turquoise.lighten20,
|
|
2030
|
+
'turquoise-lighten-40': cnamColorsTokens.turquoise.lighten40,
|
|
2031
|
+
'turquoise-lighten-60': cnamColorsTokens.turquoise.lighten60,
|
|
2032
|
+
'turquoise-lighten-80': cnamColorsTokens.turquoise.lighten80,
|
|
2033
|
+
'turquoise-lighten-90': cnamColorsTokens.turquoise.lighten90,
|
|
2034
|
+
'turquoise-lighten-97': cnamColorsTokens.turquoise.lighten97,
|
|
1447
2035
|
}
|
|
1448
2036
|
const paColors = {
|
|
1449
|
-
'
|
|
1450
|
-
'
|
|
1451
|
-
'
|
|
1452
|
-
'
|
|
1453
|
-
'
|
|
1454
|
-
'
|
|
1455
|
-
'
|
|
1456
|
-
'
|
|
1457
|
-
'
|
|
1458
|
-
'
|
|
1459
|
-
'
|
|
1460
|
-
'text-disabled-on-dark': paLightTheme.textDisabledOnDark,
|
|
2037
|
+
'turquoise-darken-80': paColorsTokens.turquoise.darken80,
|
|
2038
|
+
'turquoise-darken-60': paColorsTokens.turquoise.darken60,
|
|
2039
|
+
'turquoise-darken-40': paColorsTokens.turquoise.darken40,
|
|
2040
|
+
'turquoise-darken-20': paColorsTokens.turquoise.darken20,
|
|
2041
|
+
'turquoise-base': paColorsTokens.turquoise.base,
|
|
2042
|
+
'turquoise-lighten-20': paColorsTokens.turquoise.lighten20,
|
|
2043
|
+
'turquoise-lighten-40': paColorsTokens.turquoise.lighten40,
|
|
2044
|
+
'turquoise-lighten-60': paColorsTokens.turquoise.lighten60,
|
|
2045
|
+
'turquoise-lighten-80': paColorsTokens.turquoise.lighten80,
|
|
2046
|
+
'turquoise-lighten-90': paColorsTokens.turquoise.lighten90,
|
|
2047
|
+
'turquoise-lighten-97': paColorsTokens.turquoise.lighten97,
|
|
1461
2048
|
}
|
|
1462
2049
|
const apColors = {
|
|
1463
|
-
'
|
|
1464
|
-
'
|
|
1465
|
-
'
|
|
1466
|
-
'
|
|
1467
|
-
'
|
|
1468
|
-
'
|
|
1469
|
-
'
|
|
1470
|
-
'
|
|
1471
|
-
'
|
|
1472
|
-
'
|
|
1473
|
-
'
|
|
1474
|
-
|
|
2050
|
+
'turquoise-darken-80': apColorsTokens.turquoise.darken80,
|
|
2051
|
+
'turquoise-darken-60': apColorsTokens.turquoise.darken60,
|
|
2052
|
+
'turquoise-darken-40': apColorsTokens.turquoise.darken40,
|
|
2053
|
+
'turquoise-darken-20': apColorsTokens.turquoise.darken20,
|
|
2054
|
+
'turquoise-base': apColorsTokens.turquoise.base,
|
|
2055
|
+
'turquoise-lighten-20': apColorsTokens.turquoise.lighten20,
|
|
2056
|
+
'turquoise-lighten-40': apColorsTokens.turquoise.lighten40,
|
|
2057
|
+
'turquoise-lighten-60': apColorsTokens.turquoise.lighten60,
|
|
2058
|
+
'turquoise-lighten-80': apColorsTokens.turquoise.lighten80,
|
|
2059
|
+
'turquoise-lighten-90': apColorsTokens.turquoise.lighten90,
|
|
2060
|
+
'turquoise-lighten-97': apColorsTokens.turquoise.lighten97,
|
|
2061
|
+
}
|
|
2062
|
+
const apColors2026 = {
|
|
2063
|
+
'ap-turquoise-darken-3': apColorsTokens2026.apTurquoise.darken3,
|
|
2064
|
+
'ap-turquoise-darken-2': apColorsTokens2026.apTurquoise.darken2,
|
|
2065
|
+
'ap-turquoise-darken-1': apColorsTokens2026.apTurquoise.darken1,
|
|
2066
|
+
'ap-Turquoise': apColorsTokens2026.apTurquoise.base,
|
|
2067
|
+
'ap-turquoise-lighten-1': apColorsTokens2026.apTurquoise.lighten1,
|
|
2068
|
+
'ap-turquoise-lighten-2': apColorsTokens2026.apTurquoise.lighten2,
|
|
1475
2069
|
}
|
|
1476
|
-
const apColors2026 = {}
|
|
1477
2070
|
return {
|
|
1478
2071
|
cnamColors,
|
|
1479
2072
|
paColors,
|
|
@@ -1484,71 +2077,77 @@ export const Text: StoryObj = {
|
|
|
1484
2077
|
}
|
|
1485
2078
|
},
|
|
1486
2079
|
template: `
|
|
1487
|
-
<ColorDisplay
|
|
2080
|
+
<ColorDisplay
|
|
1488
2081
|
displayEmptyColors
|
|
1489
|
-
colorCategory="
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
2082
|
+
colorCategory="base"
|
|
2083
|
+
:cnamColors="cnamColors"
|
|
2084
|
+
:paColors="paColors"
|
|
2085
|
+
:apColors="apColors"
|
|
1493
2086
|
:apColors2026="apColors2026"
|
|
1494
|
-
|
|
2087
|
+
:colorTitle="colorTitle"
|
|
1495
2088
|
:colorTitleLevel="colorTitleLevel"
|
|
1496
|
-
|
|
2089
|
+
/>
|
|
2090
|
+
`,
|
|
1497
2091
|
}
|
|
1498
2092
|
},
|
|
1499
2093
|
tags: ['!dev'],
|
|
1500
2094
|
}
|
|
1501
2095
|
|
|
1502
|
-
export const
|
|
2096
|
+
export const PaletteBlue: StoryObj = {
|
|
1503
2097
|
render: () => {
|
|
1504
2098
|
return {
|
|
1505
2099
|
components: { ColorDisplay },
|
|
1506
2100
|
setup() {
|
|
1507
|
-
const colorTitle = '
|
|
1508
|
-
const colorTitleLevel =
|
|
2101
|
+
const colorTitle = 'Blue'
|
|
2102
|
+
const colorTitleLevel = 3
|
|
1509
2103
|
const cnamColors = {
|
|
1510
|
-
'
|
|
1511
|
-
'
|
|
1512
|
-
'
|
|
1513
|
-
'
|
|
1514
|
-
'
|
|
1515
|
-
'
|
|
1516
|
-
'
|
|
1517
|
-
'
|
|
1518
|
-
'
|
|
1519
|
-
'
|
|
1520
|
-
'
|
|
1521
|
-
'icon-disabled-on-dark': cnamLightTheme.iconDisabledOnDark,
|
|
2104
|
+
'blue-darken-80': cnamColorsTokens.blue.darken80,
|
|
2105
|
+
'blue-darken-60': cnamColorsTokens.blue.darken60,
|
|
2106
|
+
'blue-darken-40': cnamColorsTokens.blue.darken40,
|
|
2107
|
+
'blue-darken-20': cnamColorsTokens.blue.darken20,
|
|
2108
|
+
'blue-base': cnamColorsTokens.blue.base,
|
|
2109
|
+
'blue-lighten-20': cnamColorsTokens.blue.lighten20,
|
|
2110
|
+
'blue-lighten-40': cnamColorsTokens.blue.lighten40,
|
|
2111
|
+
'blue-lighten-60': cnamColorsTokens.blue.lighten60,
|
|
2112
|
+
'blue-lighten-80': cnamColorsTokens.blue.lighten80,
|
|
2113
|
+
'blue-lighten-90': cnamColorsTokens.blue.lighten90,
|
|
2114
|
+
'blue-lighten-97': cnamColorsTokens.blue.lighten97,
|
|
1522
2115
|
}
|
|
1523
2116
|
const paColors = {
|
|
1524
|
-
'
|
|
1525
|
-
'
|
|
1526
|
-
'
|
|
1527
|
-
'
|
|
1528
|
-
'
|
|
1529
|
-
'
|
|
1530
|
-
'
|
|
1531
|
-
'
|
|
1532
|
-
'
|
|
1533
|
-
'
|
|
1534
|
-
'
|
|
1535
|
-
|
|
2117
|
+
'blue-darken-80': paColorsTokens.blue.darken80,
|
|
2118
|
+
'blue-darken-60': paColorsTokens.blue.darken60,
|
|
2119
|
+
'blue-darken-40': paColorsTokens.blue.darken40,
|
|
2120
|
+
'blue-darken-20': paColorsTokens.blue.darken20,
|
|
2121
|
+
'blue-base': paColorsTokens.blue.base,
|
|
2122
|
+
'blue-lighten-20': paColorsTokens.blue.lighten20,
|
|
2123
|
+
'blue-lighten-40': paColorsTokens.blue.lighten40,
|
|
2124
|
+
'blue-lighten-60': paColorsTokens.blue.lighten60,
|
|
2125
|
+
'blue-lighten-80': paColorsTokens.blue.lighten80,
|
|
2126
|
+
'blue-lighten-90': paColorsTokens.blue.lighten90,
|
|
2127
|
+
'blue-lighten-97': paColorsTokens.blue.lighten97,
|
|
2128
|
+
}
|
|
2129
|
+
const apColors = {
|
|
2130
|
+
'blue-darken-80': apColorsTokens.blue.darken80,
|
|
2131
|
+
'blue-darken-60': apColorsTokens.blue.darken60,
|
|
2132
|
+
'blue-darken-40': apColorsTokens.blue.darken40,
|
|
2133
|
+
'blue-darken-20': apColorsTokens.blue.darken20,
|
|
2134
|
+
'blue-base': apColorsTokens.blue.base,
|
|
2135
|
+
'blue-lighten-20': apColorsTokens.blue.lighten20,
|
|
2136
|
+
'blue-lighten-40': apColorsTokens.blue.lighten40,
|
|
2137
|
+
'blue-lighten-60': apColorsTokens.blue.lighten60,
|
|
2138
|
+
'blue-lighten-80': apColorsTokens.blue.lighten80,
|
|
2139
|
+
'blue-lighten-90': apColorsTokens.blue.lighten90,
|
|
2140
|
+
'blue-lighten-97': apColorsTokens.blue.lighten97,
|
|
1536
2141
|
}
|
|
1537
|
-
const
|
|
1538
|
-
'
|
|
1539
|
-
'
|
|
1540
|
-
'
|
|
1541
|
-
'
|
|
1542
|
-
'
|
|
1543
|
-
'
|
|
1544
|
-
'
|
|
1545
|
-
'icon-warning': apLightTheme.iconWarning,
|
|
1546
|
-
'icon-error': apLightTheme.iconError,
|
|
1547
|
-
'icon-on-dark': apLightTheme.iconOnDark,
|
|
1548
|
-
'icon-disabled': apLightTheme.iconDisabled,
|
|
1549
|
-
'icon-disabled-on-dark': apLightTheme.iconDisabledOnDark,
|
|
2142
|
+
const apColors2026 = {
|
|
2143
|
+
'ap-blue-darken-2': apColorsTokens2026.apBlue.darken2,
|
|
2144
|
+
'ap-blue-darken-1': apColorsTokens2026.apBlue.darken1,
|
|
2145
|
+
'ap-blue': apColorsTokens2026.apBlue.base,
|
|
2146
|
+
'ap-blue-lighten-1': apColorsTokens2026.apBlue.lighten1,
|
|
2147
|
+
'ap-blue-lighten-2': apColorsTokens2026.apBlue.lighten2,
|
|
2148
|
+
'ap-blue-lighten-3': apColorsTokens2026.apBlue.lighten3,
|
|
2149
|
+
'ap-blue-lighten-4': apColorsTokens2026.apBlue.lighten4,
|
|
1550
2150
|
}
|
|
1551
|
-
const apColors2026 = {}
|
|
1552
2151
|
return {
|
|
1553
2152
|
cnamColors,
|
|
1554
2153
|
paColors,
|
|
@@ -1561,12 +2160,12 @@ export const Icons: StoryObj = {
|
|
|
1561
2160
|
template: `
|
|
1562
2161
|
<ColorDisplay
|
|
1563
2162
|
displayEmptyColors
|
|
1564
|
-
colorCategory="
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
2163
|
+
colorCategory="base"
|
|
2164
|
+
:cnamColors="cnamColors"
|
|
2165
|
+
:paColors="paColors"
|
|
2166
|
+
:apColors="apColors"
|
|
1568
2167
|
:apColors2026="apColors2026"
|
|
1569
|
-
|
|
2168
|
+
:colorTitle="colorTitle"
|
|
1570
2169
|
:colorTitleLevel="colorTitleLevel"
|
|
1571
2170
|
/>
|
|
1572
2171
|
`,
|
|
@@ -1575,30 +2174,56 @@ export const Icons: StoryObj = {
|
|
|
1575
2174
|
tags: ['!dev'],
|
|
1576
2175
|
}
|
|
1577
2176
|
|
|
1578
|
-
export const
|
|
2177
|
+
export const PaletteCyan: StoryObj = {
|
|
1579
2178
|
render: () => {
|
|
1580
2179
|
return {
|
|
1581
2180
|
components: { ColorDisplay },
|
|
1582
2181
|
setup() {
|
|
1583
|
-
const colorTitle = '
|
|
2182
|
+
const colorTitle = 'Cyan'
|
|
2183
|
+
const displayEmptyColors = false
|
|
1584
2184
|
const colorTitleLevel = 3
|
|
1585
2185
|
const cnamColors = {
|
|
1586
|
-
'
|
|
1587
|
-
'
|
|
1588
|
-
'
|
|
2186
|
+
'cyan-darken-80': cnamColorsTokens.cyan.darken80,
|
|
2187
|
+
'cyan-darken-60': cnamColorsTokens.cyan.darken60,
|
|
2188
|
+
'cyan-darken-40': cnamColorsTokens.cyan.darken40,
|
|
2189
|
+
'cyan-darken-20': cnamColorsTokens.cyan.darken20,
|
|
2190
|
+
'cyan-base': cnamColorsTokens.cyan.base,
|
|
2191
|
+
'cyan-lighten-20': cnamColorsTokens.cyan.lighten20,
|
|
2192
|
+
'cyan-lighten-40': cnamColorsTokens.cyan.lighten40,
|
|
2193
|
+
'cyan-lighten-60': cnamColorsTokens.cyan.lighten60,
|
|
2194
|
+
'cyan-lighten-80': cnamColorsTokens.cyan.lighten80,
|
|
2195
|
+
'cyan-lighten-90': cnamColorsTokens.cyan.lighten90,
|
|
2196
|
+
'cyan-lighten-97': cnamColorsTokens.cyan.lighten97,
|
|
1589
2197
|
}
|
|
1590
2198
|
const paColors = {
|
|
1591
|
-
'
|
|
1592
|
-
'
|
|
1593
|
-
'
|
|
2199
|
+
'cyan-darken-80': paColorsTokens.cyan.darken80,
|
|
2200
|
+
'cyan-darken-60': paColorsTokens.cyan.darken60,
|
|
2201
|
+
'cyan-darken-40': paColorsTokens.cyan.darken40,
|
|
2202
|
+
'cyan-darken-20': paColorsTokens.cyan.darken20,
|
|
2203
|
+
'cyan-base': paColorsTokens.cyan.base,
|
|
2204
|
+
'cyan-lighten-20': paColorsTokens.cyan.lighten20,
|
|
2205
|
+
'cyan-lighten-40': paColorsTokens.cyan.lighten40,
|
|
2206
|
+
'cyan-lighten-60': paColorsTokens.cyan.lighten60,
|
|
2207
|
+
'cyan-lighten-80': paColorsTokens.cyan.lighten80,
|
|
2208
|
+
'cyan-lighten-90': paColorsTokens.cyan.lighten90,
|
|
2209
|
+
'cyan-lighten-97': paColorsTokens.cyan.lighten97,
|
|
1594
2210
|
}
|
|
1595
2211
|
const apColors = {
|
|
1596
|
-
'
|
|
1597
|
-
'
|
|
1598
|
-
'
|
|
2212
|
+
'cyan-darken-80': apColorsTokens.cyan.darken80,
|
|
2213
|
+
'cyan-darken-60': apColorsTokens.cyan.darken60,
|
|
2214
|
+
'cyan-darken-40': apColorsTokens.cyan.darken40,
|
|
2215
|
+
'cyan-darken-20': apColorsTokens.cyan.darken20,
|
|
2216
|
+
'cyan-base': apColorsTokens.cyan.base,
|
|
2217
|
+
'cyan-lighten-20': apColorsTokens.cyan.lighten20,
|
|
2218
|
+
'cyan-lighten-40': apColorsTokens.cyan.lighten40,
|
|
2219
|
+
'cyan-lighten-60': apColorsTokens.cyan.lighten60,
|
|
2220
|
+
'cyan-lighten-80': apColorsTokens.cyan.lighten80,
|
|
2221
|
+
'cyan-lighten-90': apColorsTokens.cyan.lighten90,
|
|
2222
|
+
'cyan-lighten-97': apColorsTokens.cyan.lighten97,
|
|
1599
2223
|
}
|
|
1600
|
-
const apColors2026 = {
|
|
2224
|
+
const apColors2026 = {}
|
|
1601
2225
|
return {
|
|
2226
|
+
displayEmptyColors,
|
|
1602
2227
|
cnamColors,
|
|
1603
2228
|
paColors,
|
|
1604
2229
|
apColors,
|
|
@@ -1608,14 +2233,14 @@ export const MainBackgrounds: StoryObj = {
|
|
|
1608
2233
|
}
|
|
1609
2234
|
},
|
|
1610
2235
|
template: `
|
|
1611
|
-
<ColorDisplay
|
|
1612
|
-
|
|
1613
|
-
colorCategory="
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
2236
|
+
<ColorDisplay
|
|
2237
|
+
:displayEmptyColors="displayEmptyColors"
|
|
2238
|
+
colorCategory="base"
|
|
2239
|
+
:cnamColors="cnamColors"
|
|
2240
|
+
:paColors="paColors"
|
|
2241
|
+
:apColors="apColors"
|
|
1617
2242
|
:apColors2026="apColors2026"
|
|
1618
|
-
|
|
2243
|
+
:colorTitle="colorTitle"
|
|
1619
2244
|
:colorTitleLevel="colorTitleLevel"
|
|
1620
2245
|
/>
|
|
1621
2246
|
`,
|
|
@@ -1624,35 +2249,42 @@ export const MainBackgrounds: StoryObj = {
|
|
|
1624
2249
|
tags: ['!dev'],
|
|
1625
2250
|
}
|
|
1626
2251
|
|
|
1627
|
-
export const
|
|
2252
|
+
export const PaletteFrostedBlue: StoryObj = {
|
|
1628
2253
|
render: () => {
|
|
1629
2254
|
return {
|
|
1630
2255
|
components: { ColorDisplay },
|
|
1631
2256
|
setup() {
|
|
1632
|
-
const colorTitle = '
|
|
2257
|
+
const colorTitle = 'Frosted blue'
|
|
2258
|
+
const displayEmptyColors = false
|
|
1633
2259
|
const colorTitleLevel = 3
|
|
1634
2260
|
const cnamColors = {
|
|
1635
|
-
'
|
|
1636
|
-
'
|
|
1637
|
-
'
|
|
1638
|
-
'
|
|
1639
|
-
'
|
|
2261
|
+
'frosted-blue-darken-80': cnamColorsTokens.frostedBlue.darken80,
|
|
2262
|
+
'frosted-blue-darken-60': cnamColorsTokens.frostedBlue.darken60,
|
|
2263
|
+
'frosted-blue-darken-40': cnamColorsTokens.frostedBlue.darken40,
|
|
2264
|
+
'frosted-blue-darken-20': cnamColorsTokens.frostedBlue.darken20,
|
|
2265
|
+
'frosted-blue-base': cnamColorsTokens.frostedBlue.base,
|
|
2266
|
+
'frosted-blue-lighten-20': cnamColorsTokens.frostedBlue.lighten20,
|
|
2267
|
+
'frosted-blue-lighten-40': cnamColorsTokens.frostedBlue.lighten40,
|
|
2268
|
+
'frosted-blue-lighten-60': cnamColorsTokens.frostedBlue.lighten60,
|
|
2269
|
+
'frosted-blue-lighten-80': cnamColorsTokens.frostedBlue.lighten80,
|
|
2270
|
+
'frosted-blue-lighten-90': cnamColorsTokens.frostedBlue.lighten90,
|
|
2271
|
+
'frosted-blue-lighten-97': cnamColorsTokens.frostedBlue.lighten97,
|
|
1640
2272
|
}
|
|
1641
2273
|
const paColors = {
|
|
1642
|
-
'
|
|
1643
|
-
'
|
|
1644
|
-
'
|
|
1645
|
-
'
|
|
1646
|
-
'
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
'
|
|
1650
|
-
'
|
|
1651
|
-
'
|
|
1652
|
-
'
|
|
1653
|
-
'background-accent-alt': apLightTheme.backgroundAccentAlt,
|
|
2274
|
+
'frosted-blue-darken-80': paColorsTokens.frostedBlue.darken80,
|
|
2275
|
+
'frosted-blue-darken-60': paColorsTokens.frostedBlue.darken60,
|
|
2276
|
+
'frosted-blue-darken-40': paColorsTokens.frostedBlue.darken40,
|
|
2277
|
+
'frosted-blue-darken-20': paColorsTokens.frostedBlue.darken20,
|
|
2278
|
+
'frosted-blue-base': paColorsTokens.frostedBlue.base,
|
|
2279
|
+
'frosted-blue-lighten-20': paColorsTokens.frostedBlue.lighten20,
|
|
2280
|
+
'frosted-blue-lighten-40': paColorsTokens.frostedBlue.lighten40,
|
|
2281
|
+
'frosted-blue-lighten-60': paColorsTokens.frostedBlue.lighten60,
|
|
2282
|
+
'frosted-blue-lighten-80': paColorsTokens.frostedBlue.lighten80,
|
|
2283
|
+
'frosted-blue-lighten-90': paColorsTokens.frostedBlue.lighten90,
|
|
2284
|
+
'frosted-blue-lighten-97': paColorsTokens.frostedBlue.lighten97,
|
|
1654
2285
|
}
|
|
1655
|
-
const
|
|
2286
|
+
const apColors = {}
|
|
2287
|
+
const apColors2026 = {}
|
|
1656
2288
|
return {
|
|
1657
2289
|
cnamColors,
|
|
1658
2290
|
paColors,
|
|
@@ -1660,17 +2292,18 @@ export const AlternativeBackgrounds: StoryObj = {
|
|
|
1660
2292
|
apColors2026,
|
|
1661
2293
|
colorTitle,
|
|
1662
2294
|
colorTitleLevel,
|
|
2295
|
+
displayEmptyColors,
|
|
1663
2296
|
}
|
|
1664
2297
|
},
|
|
1665
2298
|
template: `
|
|
1666
|
-
<ColorDisplay
|
|
1667
|
-
|
|
1668
|
-
colorCategory="
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
2299
|
+
<ColorDisplay
|
|
2300
|
+
:displayEmptyColors="displayEmptyColors"
|
|
2301
|
+
colorCategory="base"
|
|
2302
|
+
:cnamColors="cnamColors"
|
|
2303
|
+
:paColors="paColors"
|
|
2304
|
+
:apColors="apColors"
|
|
1672
2305
|
:apColors2026="apColors2026"
|
|
1673
|
-
|
|
2306
|
+
:colorTitle="colorTitle"
|
|
1674
2307
|
:colorTitleLevel="colorTitleLevel"
|
|
1675
2308
|
/>
|
|
1676
2309
|
`,
|
|
@@ -1679,29 +2312,57 @@ export const AlternativeBackgrounds: StoryObj = {
|
|
|
1679
2312
|
tags: ['!dev'],
|
|
1680
2313
|
}
|
|
1681
2314
|
|
|
1682
|
-
export const
|
|
2315
|
+
export const PaletteParma: StoryObj = {
|
|
1683
2316
|
render: () => {
|
|
1684
2317
|
return {
|
|
1685
2318
|
components: { ColorDisplay },
|
|
1686
2319
|
setup() {
|
|
1687
|
-
const colorTitle = '
|
|
2320
|
+
const colorTitle = 'Parma'
|
|
2321
|
+
const displayEmptyColors = false
|
|
1688
2322
|
const colorTitleLevel = 3
|
|
1689
2323
|
const cnamColors = {
|
|
1690
|
-
'
|
|
1691
|
-
'
|
|
1692
|
-
'
|
|
2324
|
+
'parma-darken-80': cnamColorsTokens.parma.darken80,
|
|
2325
|
+
'parma-darken-60': cnamColorsTokens.parma.darken60,
|
|
2326
|
+
'parma-darken-40': cnamColorsTokens.parma.darken40,
|
|
2327
|
+
'parma-darken-20': cnamColorsTokens.parma.darken20,
|
|
2328
|
+
'parma-base': cnamColorsTokens.parma.base,
|
|
2329
|
+
'parma-lighten-20': cnamColorsTokens.parma.lighten20,
|
|
2330
|
+
'parma-lighten-40': cnamColorsTokens.parma.lighten40,
|
|
2331
|
+
'parma-lighten-60': cnamColorsTokens.parma.lighten60,
|
|
2332
|
+
'parma-lighten-80': cnamColorsTokens.parma.lighten80,
|
|
2333
|
+
'parma-lighten-90': cnamColorsTokens.parma.lighten90,
|
|
2334
|
+
'parma-lighten-97': cnamColorsTokens.parma.lighten97,
|
|
1693
2335
|
}
|
|
1694
2336
|
const paColors = {
|
|
1695
|
-
'
|
|
1696
|
-
'
|
|
1697
|
-
'
|
|
2337
|
+
'parma-darken-80': paColorsTokens.parma.darken80,
|
|
2338
|
+
'parma-darken-60': paColorsTokens.parma.darken60,
|
|
2339
|
+
'parma-darken-40': paColorsTokens.parma.darken40,
|
|
2340
|
+
'parma-darken-20': paColorsTokens.parma.darken20,
|
|
2341
|
+
'parma-base': paColorsTokens.parma.base,
|
|
2342
|
+
'parma-lighten-20': paColorsTokens.parma.lighten20,
|
|
2343
|
+
'parma-lighten-40': paColorsTokens.parma.lighten40,
|
|
2344
|
+
'parma-lighten-60': paColorsTokens.parma.lighten60,
|
|
2345
|
+
'parma-lighten-80': paColorsTokens.parma.lighten80,
|
|
2346
|
+
'parma-lighten-90': paColorsTokens.parma.lighten90,
|
|
2347
|
+
'parma-lighten-97': paColorsTokens.parma.lighten97,
|
|
1698
2348
|
}
|
|
1699
2349
|
const apColors = {
|
|
1700
|
-
'
|
|
1701
|
-
'
|
|
1702
|
-
'
|
|
2350
|
+
'parma-darken-80': apColorsTokens.parma.darken80,
|
|
2351
|
+
'parma-darken-60': apColorsTokens.parma.darken60,
|
|
2352
|
+
'parma-darken-40': apColorsTokens.parma.darken40,
|
|
2353
|
+
'parma-darken-20': apColorsTokens.parma.darken20,
|
|
2354
|
+
'parma-base': apColorsTokens.parma.base,
|
|
2355
|
+
'parma-lighten-20': apColorsTokens.parma.lighten20,
|
|
2356
|
+
'parma-lighten-40': apColorsTokens.parma.lighten40,
|
|
2357
|
+
'parma-lighten-60': apColorsTokens.parma.lighten60,
|
|
2358
|
+
'parma-lighten-80': apColorsTokens.parma.lighten80,
|
|
2359
|
+
'parma-lighten-90': apColorsTokens.parma.lighten90,
|
|
2360
|
+
'parma-lighten-97': apColorsTokens.parma.lighten97,
|
|
2361
|
+
}
|
|
2362
|
+
const apColors2026 = {
|
|
2363
|
+
'ap-parme-darken-1': apColorsTokens2026.apParme.darken1,
|
|
2364
|
+
'ap-parme': apColorsTokens2026.apParme.base,
|
|
1703
2365
|
}
|
|
1704
|
-
const apColors2026 = {}
|
|
1705
2366
|
return {
|
|
1706
2367
|
cnamColors,
|
|
1707
2368
|
paColors,
|
|
@@ -1709,17 +2370,18 @@ export const InformationalBackgrounds: StoryObj = {
|
|
|
1709
2370
|
apColors2026,
|
|
1710
2371
|
colorTitle,
|
|
1711
2372
|
colorTitleLevel,
|
|
2373
|
+
displayEmptyColors,
|
|
1712
2374
|
}
|
|
1713
2375
|
},
|
|
1714
2376
|
template: `
|
|
1715
|
-
<ColorDisplay
|
|
1716
|
-
|
|
1717
|
-
colorCategory="
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
2377
|
+
<ColorDisplay
|
|
2378
|
+
:displayEmptyColors="displayEmptyColors"
|
|
2379
|
+
colorCategory="base"
|
|
2380
|
+
:cnamColors="cnamColors"
|
|
2381
|
+
:paColors="paColors"
|
|
2382
|
+
:apColors="apColors"
|
|
1721
2383
|
:apColors2026="apColors2026"
|
|
1722
|
-
|
|
2384
|
+
:colorTitle="colorTitle"
|
|
1723
2385
|
:colorTitleLevel="colorTitleLevel"
|
|
1724
2386
|
/>
|
|
1725
2387
|
`,
|
|
@@ -1728,27 +2390,52 @@ export const InformationalBackgrounds: StoryObj = {
|
|
|
1728
2390
|
tags: ['!dev'],
|
|
1729
2391
|
}
|
|
1730
2392
|
|
|
1731
|
-
export const
|
|
2393
|
+
export const PaletteMauve: StoryObj = {
|
|
1732
2394
|
render: () => {
|
|
1733
2395
|
return {
|
|
1734
2396
|
components: { ColorDisplay },
|
|
1735
2397
|
setup() {
|
|
1736
|
-
const colorTitle = '
|
|
2398
|
+
const colorTitle = 'Mauve'
|
|
2399
|
+
const displayEmptyColors = false
|
|
1737
2400
|
const colorTitleLevel = 3
|
|
1738
2401
|
const cnamColors = {
|
|
1739
|
-
'
|
|
1740
|
-
'
|
|
1741
|
-
'
|
|
2402
|
+
'mauve-darken-80': cnamColorsTokens.mauve.darken80,
|
|
2403
|
+
'mauve-darken-60': cnamColorsTokens.mauve.darken60,
|
|
2404
|
+
'mauve-darken-40': cnamColorsTokens.mauve.darken40,
|
|
2405
|
+
'mauve-darken-20': cnamColorsTokens.mauve.darken20,
|
|
2406
|
+
'mauve-base': cnamColorsTokens.mauve.base,
|
|
2407
|
+
'mauve-lighten-20': cnamColorsTokens.mauve.lighten20,
|
|
2408
|
+
'mauve-lighten-40': cnamColorsTokens.mauve.lighten40,
|
|
2409
|
+
'mauve-lighten-60': cnamColorsTokens.mauve.lighten60,
|
|
2410
|
+
'mauve-lighten-80': cnamColorsTokens.mauve.lighten80,
|
|
2411
|
+
'mauve-lighten-90': cnamColorsTokens.mauve.lighten90,
|
|
2412
|
+
'mauve-lighten-97': cnamColorsTokens.mauve.lighten97,
|
|
1742
2413
|
}
|
|
1743
2414
|
const paColors = {
|
|
1744
|
-
'
|
|
1745
|
-
'
|
|
1746
|
-
'
|
|
2415
|
+
'mauve-darken-80': paColorsTokens.mauve.darken80,
|
|
2416
|
+
'mauve-darken-60': paColorsTokens.mauve.darken60,
|
|
2417
|
+
'mauve-darken-40': paColorsTokens.mauve.darken40,
|
|
2418
|
+
'mauve-darken-20': paColorsTokens.mauve.darken20,
|
|
2419
|
+
'mauve-base': paColorsTokens.mauve.base,
|
|
2420
|
+
'mauve-lighten-20': paColorsTokens.mauve.lighten20,
|
|
2421
|
+
'mauve-lighten-40': paColorsTokens.mauve.lighten40,
|
|
2422
|
+
'mauve-lighten-60': paColorsTokens.mauve.lighten60,
|
|
2423
|
+
'mauve-lighten-80': paColorsTokens.mauve.lighten80,
|
|
2424
|
+
'mauve-lighten-90': paColorsTokens.mauve.lighten90,
|
|
2425
|
+
'mauve-lighten-97': paColorsTokens.mauve.lighten97,
|
|
1747
2426
|
}
|
|
1748
2427
|
const apColors = {
|
|
1749
|
-
'
|
|
1750
|
-
'
|
|
1751
|
-
'
|
|
2428
|
+
'mauve-darken-80': apColorsTokens.mauve.darken80,
|
|
2429
|
+
'mauve-darken-60': apColorsTokens.mauve.darken60,
|
|
2430
|
+
'mauve-darken-40': apColorsTokens.mauve.darken40,
|
|
2431
|
+
'mauve-darken-20': apColorsTokens.mauve.darken20,
|
|
2432
|
+
'mauve-base': apColorsTokens.mauve.base,
|
|
2433
|
+
'mauve-lighten-20': apColorsTokens.mauve.lighten20,
|
|
2434
|
+
'mauve-lighten-40': apColorsTokens.mauve.lighten40,
|
|
2435
|
+
'mauve-lighten-60': apColorsTokens.mauve.lighten60,
|
|
2436
|
+
'mauve-lighten-80': apColorsTokens.mauve.lighten80,
|
|
2437
|
+
'mauve-lighten-90': apColorsTokens.mauve.lighten90,
|
|
2438
|
+
'mauve-lighten-97': apColorsTokens.mauve.lighten97,
|
|
1752
2439
|
}
|
|
1753
2440
|
const apColors2026 = {}
|
|
1754
2441
|
return {
|
|
@@ -1758,17 +2445,18 @@ export const SuccessBackgrounds: StoryObj = {
|
|
|
1758
2445
|
apColors2026,
|
|
1759
2446
|
colorTitle,
|
|
1760
2447
|
colorTitleLevel,
|
|
2448
|
+
displayEmptyColors,
|
|
1761
2449
|
}
|
|
1762
2450
|
},
|
|
1763
2451
|
template: `
|
|
1764
|
-
<ColorDisplay
|
|
1765
|
-
|
|
1766
|
-
colorCategory="
|
|
2452
|
+
<ColorDisplay
|
|
2453
|
+
:displayEmptyColors="displayEmptyColors"
|
|
2454
|
+
colorCategory="base"
|
|
1767
2455
|
:cnamColors="cnamColors"
|
|
1768
|
-
:paColors="paColors"
|
|
1769
|
-
|
|
2456
|
+
:paColors="paColors"
|
|
2457
|
+
:apColors="apColors"
|
|
1770
2458
|
:apColors2026="apColors2026"
|
|
1771
|
-
|
|
2459
|
+
:colorTitle="colorTitle"
|
|
1772
2460
|
:colorTitleLevel="colorTitleLevel"
|
|
1773
2461
|
/>
|
|
1774
2462
|
`,
|
|
@@ -1777,29 +2465,56 @@ export const SuccessBackgrounds: StoryObj = {
|
|
|
1777
2465
|
tags: ['!dev'],
|
|
1778
2466
|
}
|
|
1779
2467
|
|
|
1780
|
-
export const
|
|
2468
|
+
export const PalettePink: StoryObj = {
|
|
1781
2469
|
render: () => {
|
|
1782
2470
|
return {
|
|
1783
2471
|
components: { ColorDisplay },
|
|
1784
2472
|
setup() {
|
|
1785
|
-
const colorTitle = '
|
|
2473
|
+
const colorTitle = 'Pink'
|
|
2474
|
+
const displayEmptyColors = false
|
|
1786
2475
|
const colorTitleLevel = 3
|
|
1787
2476
|
const cnamColors = {
|
|
1788
|
-
'
|
|
1789
|
-
'
|
|
1790
|
-
'
|
|
2477
|
+
'pink-darken-80': cnamColorsTokens.pink.darken80,
|
|
2478
|
+
'pink-darken-60': cnamColorsTokens.pink.darken60,
|
|
2479
|
+
'pink-darken-40': cnamColorsTokens.pink.darken40,
|
|
2480
|
+
'pink-darken-20': cnamColorsTokens.pink.darken20,
|
|
2481
|
+
'pink-base': cnamColorsTokens.pink.base,
|
|
2482
|
+
'pink-lighten-20': cnamColorsTokens.pink.lighten20,
|
|
2483
|
+
'pink-lighten-40': cnamColorsTokens.pink.lighten40,
|
|
2484
|
+
'pink-lighten-60': cnamColorsTokens.pink.lighten60,
|
|
2485
|
+
'pink-lighten-80': cnamColorsTokens.pink.lighten80,
|
|
2486
|
+
'pink-lighten-90': cnamColorsTokens.pink.lighten90,
|
|
2487
|
+
'pink-lighten-97': cnamColorsTokens.pink.lighten97,
|
|
1791
2488
|
}
|
|
1792
2489
|
const paColors = {
|
|
1793
|
-
'
|
|
1794
|
-
'
|
|
1795
|
-
'
|
|
2490
|
+
'pink-darken-80': paColorsTokens.pink.darken80,
|
|
2491
|
+
'pink-darken-60': paColorsTokens.pink.darken60,
|
|
2492
|
+
'pink-darken-40': paColorsTokens.pink.darken40,
|
|
2493
|
+
'pink-darken-20': paColorsTokens.pink.darken20,
|
|
2494
|
+
'pink-base': paColorsTokens.pink.base,
|
|
2495
|
+
'pink-lighten-20': paColorsTokens.pink.lighten20,
|
|
2496
|
+
'pink-lighten-40': paColorsTokens.pink.lighten40,
|
|
2497
|
+
'pink-lighten-60': paColorsTokens.pink.lighten60,
|
|
2498
|
+
'pink-lighten-80': paColorsTokens.pink.lighten80,
|
|
2499
|
+
'pink-lighten-90': paColorsTokens.pink.lighten90,
|
|
2500
|
+
'pink-lighten-97': paColorsTokens.pink.lighten97,
|
|
1796
2501
|
}
|
|
1797
2502
|
const apColors = {
|
|
1798
|
-
'
|
|
1799
|
-
'
|
|
1800
|
-
'
|
|
2503
|
+
'pink-darken-80': apColorsTokens.pink.darken80,
|
|
2504
|
+
'pink-darken-60': apColorsTokens.pink.darken60,
|
|
2505
|
+
'pink-darken-40': apColorsTokens.pink.darken40,
|
|
2506
|
+
'pink-darken-20': apColorsTokens.pink.darken20,
|
|
2507
|
+
'pink-base': apColorsTokens.pink.base,
|
|
2508
|
+
'pink-lighten-20': apColorsTokens.pink.lighten20,
|
|
2509
|
+
'pink-lighten-40': apColorsTokens.pink.lighten40,
|
|
2510
|
+
'pink-lighten-60': apColorsTokens.pink.lighten60,
|
|
2511
|
+
'pink-lighten-80': apColorsTokens.pink.lighten80,
|
|
2512
|
+
'pink-lighten-90': apColorsTokens.pink.lighten90,
|
|
2513
|
+
'pink-lighten-97': apColorsTokens.pink.lighten97,
|
|
2514
|
+
}
|
|
2515
|
+
const apColors2026 = {
|
|
2516
|
+
'ap-pink': apColorsTokens2026.apPink.base,
|
|
1801
2517
|
}
|
|
1802
|
-
const apColors2026 = {}
|
|
1803
2518
|
return {
|
|
1804
2519
|
cnamColors,
|
|
1805
2520
|
paColors,
|
|
@@ -1807,14 +2522,15 @@ export const WarningBackgrounds: StoryObj = {
|
|
|
1807
2522
|
apColors2026,
|
|
1808
2523
|
colorTitle,
|
|
1809
2524
|
colorTitleLevel,
|
|
2525
|
+
displayEmptyColors,
|
|
1810
2526
|
}
|
|
1811
2527
|
},
|
|
1812
2528
|
template: `
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
2529
|
+
<ColorDisplay
|
|
2530
|
+
:displayEmptyColors="displayEmptyColors"
|
|
2531
|
+
colorCategory="base"
|
|
2532
|
+
:cnamColors="cnamColors"
|
|
2533
|
+
:paColors="paColors"
|
|
1818
2534
|
:apColors="apColors"
|
|
1819
2535
|
:apColors2026="apColors2026"
|
|
1820
2536
|
:colorTitle="colorTitle"
|
|
@@ -1826,28 +2542,41 @@ export const WarningBackgrounds: StoryObj = {
|
|
|
1826
2542
|
tags: ['!dev'],
|
|
1827
2543
|
}
|
|
1828
2544
|
|
|
1829
|
-
export const
|
|
2545
|
+
export const PaletteBrick: StoryObj = {
|
|
1830
2546
|
render: () => {
|
|
1831
2547
|
return {
|
|
1832
2548
|
components: { ColorDisplay },
|
|
1833
2549
|
setup() {
|
|
1834
|
-
const colorTitle = '
|
|
2550
|
+
const colorTitle = 'Brick'
|
|
2551
|
+
const displayEmptyColors = false
|
|
1835
2552
|
const colorTitleLevel = 3
|
|
1836
2553
|
const cnamColors = {
|
|
1837
|
-
'
|
|
1838
|
-
'
|
|
1839
|
-
'
|
|
2554
|
+
'brick-darken-80': cnamColorsTokens.brick.darken80,
|
|
2555
|
+
'brick-darken-60': cnamColorsTokens.brick.darken60,
|
|
2556
|
+
'brick-darken-40': cnamColorsTokens.brick.darken40,
|
|
2557
|
+
'brick-darken-20': cnamColorsTokens.brick.darken20,
|
|
2558
|
+
'brick-base': cnamColorsTokens.brick.base,
|
|
2559
|
+
'brick-lighten-20': cnamColorsTokens.brick.lighten20,
|
|
2560
|
+
'brick-lighten-40': cnamColorsTokens.brick.lighten40,
|
|
2561
|
+
'brick-lighten-60': cnamColorsTokens.brick.lighten60,
|
|
2562
|
+
'brick-lighten-80': cnamColorsTokens.brick.lighten80,
|
|
2563
|
+
'brick-lighten-90': cnamColorsTokens.brick.lighten90,
|
|
2564
|
+
'brick-lighten-97': cnamColorsTokens.brick.lighten97,
|
|
1840
2565
|
}
|
|
1841
2566
|
const paColors = {
|
|
1842
|
-
'
|
|
1843
|
-
'
|
|
1844
|
-
'
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
'
|
|
1848
|
-
'
|
|
1849
|
-
'
|
|
2567
|
+
'brick-darken-80': paColorsTokens.brick.darken80,
|
|
2568
|
+
'brick-darken-60': paColorsTokens.brick.darken60,
|
|
2569
|
+
'brick-darken-40': paColorsTokens.brick.darken40,
|
|
2570
|
+
'brick-darken-20': paColorsTokens.brick.darken20,
|
|
2571
|
+
'brick-base': paColorsTokens.brick.base,
|
|
2572
|
+
'brick-lighten-20': paColorsTokens.brick.lighten20,
|
|
2573
|
+
'brick-lighten-40': paColorsTokens.brick.lighten40,
|
|
2574
|
+
'brick-lighten-60': paColorsTokens.brick.lighten60,
|
|
2575
|
+
'brick-lighten-80': paColorsTokens.brick.lighten80,
|
|
2576
|
+
'brick-lighten-90': paColorsTokens.brick.lighten90,
|
|
2577
|
+
'brick-lighten-97': paColorsTokens.brick.lighten97,
|
|
1850
2578
|
}
|
|
2579
|
+
const apColors = {}
|
|
1851
2580
|
const apColors2026 = {}
|
|
1852
2581
|
return {
|
|
1853
2582
|
cnamColors,
|
|
@@ -1856,14 +2585,15 @@ export const ErrorBackgrounds: StoryObj = {
|
|
|
1856
2585
|
apColors2026,
|
|
1857
2586
|
colorTitle,
|
|
1858
2587
|
colorTitleLevel,
|
|
2588
|
+
displayEmptyColors,
|
|
1859
2589
|
}
|
|
1860
2590
|
},
|
|
1861
2591
|
template: `
|
|
1862
|
-
<ColorDisplay
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
2592
|
+
<ColorDisplay
|
|
2593
|
+
:displayEmptyColors="displayEmptyColors"
|
|
2594
|
+
colorCategory="base"
|
|
2595
|
+
:cnamColors="cnamColors"
|
|
2596
|
+
:paColors="paColors"
|
|
1867
2597
|
:apColors="apColors"
|
|
1868
2598
|
:apColors2026="apColors2026"
|
|
1869
2599
|
:colorTitle="colorTitle"
|
|
@@ -1875,35 +2605,63 @@ export const ErrorBackgrounds: StoryObj = {
|
|
|
1875
2605
|
tags: ['!dev'],
|
|
1876
2606
|
}
|
|
1877
2607
|
|
|
1878
|
-
export const
|
|
2608
|
+
export const PaletteGrey: StoryObj = {
|
|
1879
2609
|
render: () => {
|
|
1880
2610
|
return {
|
|
1881
2611
|
components: { ColorDisplay },
|
|
1882
2612
|
setup() {
|
|
1883
|
-
const colorTitle = '
|
|
2613
|
+
const colorTitle = 'Grey'
|
|
2614
|
+
const displayEmptyColors = false
|
|
1884
2615
|
const colorTitleLevel = 3
|
|
1885
2616
|
const cnamColors = {
|
|
1886
|
-
'
|
|
1887
|
-
'
|
|
1888
|
-
'
|
|
1889
|
-
'
|
|
1890
|
-
'
|
|
2617
|
+
'grey-darken-80': cnamColorsTokens.grey.darken80,
|
|
2618
|
+
'grey-darken-60': cnamColorsTokens.grey.darken60,
|
|
2619
|
+
'grey-darken-40': cnamColorsTokens.grey.darken40,
|
|
2620
|
+
'grey-darken-20': cnamColorsTokens.grey.darken20,
|
|
2621
|
+
'grey-base': cnamColorsTokens.grey.base,
|
|
2622
|
+
'grey-lighten-20': cnamColorsTokens.grey.lighten20,
|
|
2623
|
+
'grey-lighten-40': cnamColorsTokens.grey.lighten40,
|
|
2624
|
+
'grey-lighten-60': cnamColorsTokens.grey.lighten60,
|
|
2625
|
+
'grey-lighten-80': cnamColorsTokens.grey.lighten80,
|
|
2626
|
+
'grey-lighten-90': cnamColorsTokens.grey.lighten90,
|
|
2627
|
+
'grey-lighten-97': cnamColorsTokens.grey.lighten97,
|
|
1891
2628
|
}
|
|
1892
2629
|
const paColors = {
|
|
1893
|
-
'
|
|
1894
|
-
'
|
|
1895
|
-
'
|
|
1896
|
-
'
|
|
1897
|
-
'
|
|
2630
|
+
'grey-darken-80': paColorsTokens.grey.darken80,
|
|
2631
|
+
'grey-darken-60': paColorsTokens.grey.darken60,
|
|
2632
|
+
'grey-darken-40': paColorsTokens.grey.darken40,
|
|
2633
|
+
'grey-darken-20': paColorsTokens.grey.darken20,
|
|
2634
|
+
'grey-base': paColorsTokens.grey.base,
|
|
2635
|
+
'grey-lighten-20': paColorsTokens.grey.lighten20,
|
|
2636
|
+
'grey-lighten-40': paColorsTokens.grey.lighten40,
|
|
2637
|
+
'grey-lighten-60': paColorsTokens.grey.lighten60,
|
|
2638
|
+
'grey-lighten-80': paColorsTokens.grey.lighten80,
|
|
2639
|
+
'grey-lighten-90': paColorsTokens.grey.lighten90,
|
|
2640
|
+
'grey-lighten-97': paColorsTokens.grey.lighten97,
|
|
1898
2641
|
}
|
|
1899
2642
|
const apColors = {
|
|
1900
|
-
'
|
|
1901
|
-
'
|
|
1902
|
-
'
|
|
1903
|
-
'
|
|
1904
|
-
'
|
|
2643
|
+
'grey-darken-80': apColorsTokens.grey.darken80,
|
|
2644
|
+
'grey-darken-60': apColorsTokens.grey.darken60,
|
|
2645
|
+
'grey-darken-40': apColorsTokens.grey.darken40,
|
|
2646
|
+
'grey-darken-20': apColorsTokens.grey.darken20,
|
|
2647
|
+
'grey-base': apColorsTokens.grey.base,
|
|
2648
|
+
'grey-lighten-20': apColorsTokens.grey.lighten20,
|
|
2649
|
+
'grey-lighten-40': apColorsTokens.grey.lighten40,
|
|
2650
|
+
'grey-lighten-60': apColorsTokens.grey.lighten60,
|
|
2651
|
+
'grey-lighten-80': apColorsTokens.grey.lighten80,
|
|
2652
|
+
'grey-lighten-90': apColorsTokens.grey.lighten90,
|
|
2653
|
+
'grey-lighten-97': apColorsTokens.grey.lighten97,
|
|
2654
|
+
}
|
|
2655
|
+
const apColors2026 = {
|
|
2656
|
+
'ap-grey-darken-1': apColorsTokens2026.apGrey.darken1,
|
|
2657
|
+
'ap-grey': apColorsTokens2026.apGrey.base,
|
|
2658
|
+
'ap-grey-lighten-1': apColorsTokens2026.apGrey.lighten1,
|
|
2659
|
+
'ap-grey-lighten-2': apColorsTokens2026.apGrey.lighten2,
|
|
2660
|
+
'ap-grey-lighten-3': apColorsTokens2026.apGrey.lighten3,
|
|
2661
|
+
'ap-grey-lighten-4': apColorsTokens2026.apGrey.lighten4,
|
|
2662
|
+
'ap-grey-lighten-5': apColorsTokens2026.apGrey.lighten5,
|
|
2663
|
+
'ap-grey-lighten-6': apColorsTokens2026.apGrey.lighten6,
|
|
1905
2664
|
}
|
|
1906
|
-
const apColors2026 = {}
|
|
1907
2665
|
return {
|
|
1908
2666
|
cnamColors,
|
|
1909
2667
|
paColors,
|
|
@@ -1911,14 +2669,15 @@ export const OtherBackgrounds: StoryObj = {
|
|
|
1911
2669
|
apColors2026,
|
|
1912
2670
|
colorTitle,
|
|
1913
2671
|
colorTitleLevel,
|
|
2672
|
+
displayEmptyColors,
|
|
1914
2673
|
}
|
|
1915
2674
|
},
|
|
1916
2675
|
template: `
|
|
1917
|
-
<ColorDisplay
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
2676
|
+
<ColorDisplay
|
|
2677
|
+
:displayEmptyColors="displayEmptyColors"
|
|
2678
|
+
colorCategory="base"
|
|
2679
|
+
:cnamColors="cnamColors"
|
|
2680
|
+
:paColors="paColors"
|
|
1922
2681
|
:apColors="apColors"
|
|
1923
2682
|
:apColors2026="apColors2026"
|
|
1924
2683
|
:colorTitle="colorTitle"
|
|
@@ -1930,38 +2689,51 @@ export const OtherBackgrounds: StoryObj = {
|
|
|
1930
2689
|
tags: ['!dev'],
|
|
1931
2690
|
}
|
|
1932
2691
|
|
|
1933
|
-
export const
|
|
2692
|
+
export const PaletteWhite: StoryObj = {
|
|
1934
2693
|
render: () => {
|
|
1935
2694
|
return {
|
|
1936
2695
|
components: { ColorDisplay },
|
|
1937
2696
|
setup() {
|
|
1938
|
-
const colorTitle = '
|
|
1939
|
-
const colorTitleLevel = 3
|
|
2697
|
+
const colorTitle = 'White'
|
|
1940
2698
|
const displayEmptyColors = false
|
|
1941
|
-
const
|
|
1942
|
-
const
|
|
1943
|
-
|
|
2699
|
+
const colorTitleLevel = 3
|
|
2700
|
+
const cnamColors = {
|
|
2701
|
+
'white-lighten-70': cnamColorsTokens.white.lighten70,
|
|
2702
|
+
'white-lighten-60': cnamColorsTokens.white.lighten40,
|
|
2703
|
+
'white-lighten-40': cnamColorsTokens.white.lighten38,
|
|
2704
|
+
'white-lighten-20': cnamColorsTokens.white.lighten20,
|
|
2705
|
+
'white-base': cnamColorsTokens.white.base,
|
|
2706
|
+
}
|
|
2707
|
+
const paColors = {
|
|
2708
|
+
'white-lighten-80': paColorsTokens.white.lighten70,
|
|
2709
|
+
'white-lighten-60': paColorsTokens.white.lighten40,
|
|
2710
|
+
'white-lighten-40': paColorsTokens.white.lighten38,
|
|
2711
|
+
'white-lighten-20': paColorsTokens.white.lighten20,
|
|
2712
|
+
'white-base': paColorsTokens.white.base,
|
|
2713
|
+
}
|
|
2714
|
+
const apColors = {
|
|
2715
|
+
'white-lighten-80': apColorsTokens.white.lighten70,
|
|
2716
|
+
'white-lighten-60': apColorsTokens.white.lighten40,
|
|
2717
|
+
'white-lighten-40': apColorsTokens.white.lighten38,
|
|
2718
|
+
'white-lighten-20': apColorsTokens.white.lighten20,
|
|
2719
|
+
'white-base': apColorsTokens.white.base,
|
|
2720
|
+
}
|
|
1944
2721
|
const apColors2026 = {
|
|
1945
|
-
'ap-
|
|
1946
|
-
'ap-parme': apColorsTokens2026.apParme.base,
|
|
1947
|
-
'ap-yellow-lighten-3': apColorsTokens2026.apYellow.lighten3,
|
|
1948
|
-
'ap-red-lighten-2': apColorsTokens2026.apRed.lighten2,
|
|
1949
|
-
'ap-red-lighten-3': apColorsTokens2026.apRed.lighten3,
|
|
1950
|
-
'ap-green-lighten-2': apColorsTokens2026.apGreen.lighten2,
|
|
1951
|
-
'ap-grey-lighten-2': apColorsTokens2026.apGrey.lighten2,
|
|
2722
|
+
'ap-white': apColorsTokens2026.apWhite.base,
|
|
1952
2723
|
}
|
|
1953
2724
|
return {
|
|
1954
|
-
displayEmptyColors,
|
|
1955
2725
|
cnamColors,
|
|
1956
2726
|
paColors,
|
|
1957
2727
|
apColors,
|
|
1958
2728
|
apColors2026,
|
|
1959
2729
|
colorTitle,
|
|
1960
2730
|
colorTitleLevel,
|
|
2731
|
+
displayEmptyColors,
|
|
1961
2732
|
}
|
|
1962
2733
|
},
|
|
1963
2734
|
template: `
|
|
1964
|
-
|
|
2735
|
+
<ColorDisplay
|
|
2736
|
+
:displayEmptyColors="displayEmptyColors"
|
|
1965
2737
|
colorCategory="base"
|
|
1966
2738
|
:cnamColors="cnamColors"
|
|
1967
2739
|
:paColors="paColors"
|
|
@@ -1969,7 +2741,6 @@ export const StatusBackgrounds: StoryObj = {
|
|
|
1969
2741
|
:apColors2026="apColors2026"
|
|
1970
2742
|
:colorTitle="colorTitle"
|
|
1971
2743
|
:colorTitleLevel="colorTitleLevel"
|
|
1972
|
-
:displayEmptyColors="displayEmptyColors"
|
|
1973
2744
|
/>
|
|
1974
2745
|
`,
|
|
1975
2746
|
}
|
|
@@ -1977,22 +2748,19 @@ export const StatusBackgrounds: StoryObj = {
|
|
|
1977
2748
|
tags: ['!dev'],
|
|
1978
2749
|
}
|
|
1979
2750
|
|
|
1980
|
-
export const
|
|
2751
|
+
export const PaletteBlack: StoryObj = {
|
|
1981
2752
|
render: () => {
|
|
1982
2753
|
return {
|
|
1983
2754
|
components: { ColorDisplay },
|
|
1984
2755
|
setup() {
|
|
1985
|
-
const colorTitle = '
|
|
2756
|
+
const colorTitle = 'Black'
|
|
1986
2757
|
const colorTitleLevel = 3
|
|
1987
2758
|
const displayEmptyColors = false
|
|
1988
2759
|
const cnamColors = {}
|
|
1989
2760
|
const paColors = {}
|
|
1990
2761
|
const apColors = {}
|
|
1991
2762
|
const apColors2026 = {
|
|
1992
|
-
'ap-
|
|
1993
|
-
'ap-turquoise-darken-1': apColorsTokens2026.apTurquoise.darken1,
|
|
1994
|
-
'ap-yellow': apColorsTokens2026.apYellow.base,
|
|
1995
|
-
'ap-parme-darken-1': apColorsTokens2026.apParme.darken1,
|
|
2763
|
+
'ap-black': apColorsTokens2026.apBlack.base,
|
|
1996
2764
|
}
|
|
1997
2765
|
return {
|
|
1998
2766
|
displayEmptyColors,
|
|
@@ -2005,7 +2773,8 @@ export const MessagesBackgrounds: StoryObj = {
|
|
|
2005
2773
|
}
|
|
2006
2774
|
},
|
|
2007
2775
|
template: `
|
|
2008
|
-
<ColorDisplay
|
|
2776
|
+
<ColorDisplay
|
|
2777
|
+
:displayEmptyColors="displayEmptyColors"
|
|
2009
2778
|
colorCategory="base"
|
|
2010
2779
|
:cnamColors="cnamColors"
|
|
2011
2780
|
:paColors="paColors"
|
|
@@ -2013,10 +2782,32 @@ export const MessagesBackgrounds: StoryObj = {
|
|
|
2013
2782
|
:apColors2026="apColors2026"
|
|
2014
2783
|
:colorTitle="colorTitle"
|
|
2015
2784
|
:colorTitleLevel="colorTitleLevel"
|
|
2016
|
-
:displayEmptyColors="displayEmptyColors"
|
|
2017
2785
|
/>
|
|
2018
2786
|
`,
|
|
2019
2787
|
}
|
|
2020
2788
|
},
|
|
2021
2789
|
tags: ['!dev'],
|
|
2022
2790
|
}
|
|
2791
|
+
|
|
2792
|
+
export const PaletteSection = {
|
|
2793
|
+
render() {
|
|
2794
|
+
return h(createSection('Palette', [
|
|
2795
|
+
PaletteOrange,
|
|
2796
|
+
PaletteRed,
|
|
2797
|
+
PaletteYellow,
|
|
2798
|
+
PaletteForestGreen,
|
|
2799
|
+
PaletteGreen,
|
|
2800
|
+
PaletteTurquoise,
|
|
2801
|
+
PaletteBlue,
|
|
2802
|
+
PaletteCyan,
|
|
2803
|
+
PaletteFrostedBlue,
|
|
2804
|
+
PaletteParma,
|
|
2805
|
+
PaletteMauve,
|
|
2806
|
+
PalettePink,
|
|
2807
|
+
PaletteBrick,
|
|
2808
|
+
PaletteGrey,
|
|
2809
|
+
PaletteWhite,
|
|
2810
|
+
PaletteBlack,
|
|
2811
|
+
]))
|
|
2812
|
+
},
|
|
2813
|
+
}
|