@cnamts/synapse 1.0.24 → 1.0.25
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/README.md +27 -5
- package/dist/{AutocompleteFilter-BWLR3U7W.js → AutocompleteFilter-D7qBuCAP.js} +1 -1
- package/dist/{AutocompleteFilter-D9jzRzAL.cjs → AutocompleteFilter-Df9i5mAl.cjs} +1 -1
- package/dist/{DateFilter-DTUl8hb1.cjs → DateFilter-BJD6FMev.cjs} +1 -1
- package/dist/{DateFilter-BpwFexzi.js → DateFilter-BitMWrMU.js} +1 -1
- package/dist/{NumberFilter-Bz_NTdX9.js → NumberFilter-BTLUxw0a.js} +1 -1
- package/dist/{NumberFilter-MAEojdk0.cjs → NumberFilter-DGCzCXzI.cjs} +1 -1
- package/dist/{PeriodFilter-DX_wy9g-.js → PeriodFilter-B5rUIPAC.js} +1 -1
- package/dist/{PeriodFilter-CC4WgIhl.cjs → PeriodFilter-DO_ecTZW.cjs} +1 -1
- package/dist/{SelectFilter-BR3fvl-a.cjs → SelectFilter-CGwcKWLm.cjs} +1 -1
- package/dist/{SelectFilter-xqiPtPgX.js → SelectFilter-l4QnRcuk.js} +2 -2
- package/dist/{TextFilter-CCfYFl5F.cjs → TextFilter-B8nf7xoK.cjs} +1 -1
- package/dist/{TextFilter-BBl3JFqK.js → TextFilter-C9hj6Qrp.js} +1 -1
- package/dist/apLightTheme-CEK4iY3f.cjs +1 -0
- package/dist/{apLightTheme-D1P4jcD0.js → apLightTheme-DnIM24Lv.js} +441 -722
- package/dist/components/Customs/Selects/SyAutocomplete/SyAutocomplete.d.ts +10 -6
- package/dist/components/Customs/SyCheckbox/SyCheckbox.d.ts +3 -0
- package/dist/components/Customs/SyTabs/SyTabs.d.ts +13 -11
- package/dist/components/Customs/SyTextField/SyTextField.d.ts +4 -4
- package/dist/components/DatePicker/CalendarMode/DatePicker.d.ts +4 -24
- package/dist/components/DatePicker/ComplexDatePicker/ComplexDatePicker.d.ts +2 -12
- package/dist/components/DatePicker/DateTextInput/DateTextInput.d.ts +1 -6
- package/dist/components/DatePicker/composables/useDatePickerState.d.ts +1 -0
- package/dist/components/FileList/FileList.d.ts +6 -0
- package/dist/components/FilterSideBar/FilterSideBar.d.ts +2 -0
- package/dist/components/HeaderNavigationBar/HeaderNavigationBar.d.ts +13 -13
- package/dist/components/HeaderNavigationBar/HorizontalNavbar/HorizontalNavbar.d.ts +3 -3
- package/dist/components/MonthPicker/MonthPicker.d.ts +1 -6
- package/dist/components/MonthPicker/MonthPickerText/MonthPickerInput.d.ts +1 -6
- package/dist/components/NirField/NirField.d.ts +4 -16
- package/dist/components/PeriodField/PeriodField.d.ts +8 -48
- package/dist/components/PhoneField/PhoneField.d.ts +1 -6
- package/dist/components/Tables/SyServerTable/SyServerTable.d.ts +1 -0
- package/dist/components/Tables/SyTable/SyTable.d.ts +1 -0
- package/dist/components/Tables/common/SyTablePagination.d.ts +2 -0
- package/dist/components/Tables/common/TableHeader.d.ts +5 -0
- package/dist/components/Tables/common/locales.d.ts +3 -0
- package/dist/components/Tables/common/types.d.ts +2 -0
- package/dist/components/UploadWorkflow/UploadWorkflow.d.ts +1 -0
- package/dist/composables/unifyValidation/documentationValidationProps.d.ts +230 -0
- package/dist/composables/validation/useValidation.d.ts +5 -1
- package/dist/design-system-v3.js +2 -2
- package/dist/design-system-v3.umd.cjs +1 -1
- package/dist/designTokens/tokens/amelipro/apColors.d.ts +10 -10
- package/dist/designTokens/tokens/amelipro/apColors2026.d.ts +1 -2
- package/dist/designTokens/tokens/amelipro/apContextual.d.ts +44 -0
- package/dist/designTokens/tokens/amelipro/apSemantic.d.ts +1 -1
- package/dist/designTokens/tokens/baseColors.d.ts +127 -0
- package/dist/designTokens/tokens/baseContextualTokens.d.ts +50 -0
- package/dist/designTokens/tokens/cnam/cnamColors.d.ts +10 -10
- package/dist/designTokens/tokens/cnam/cnamSemantic.d.ts +1 -1
- package/dist/designTokens/tokens/pa/paColors.d.ts +1 -166
- package/dist/designTokens/tokens/pa/paSemantic.d.ts +1 -1
- package/dist/designTokens/utils/buildColorClassMap.d.ts +12 -0
- package/dist/designTokens/utils/createFlattenTheme.d.ts +1 -3
- package/dist/designTokens/utils/index.d.ts +2 -2
- package/dist/main-ByDPHpae.cjs +1067 -0
- package/dist/main-Cpx8Co6H.js +38869 -0
- package/dist/synapse.css +1 -1
- package/dist/utils/functions/classToHex.d.ts +1 -1
- package/dist/utils/functions/createHexResolver.d.ts +16 -0
- package/dist/vuetifyConfig.js +113 -152
- package/dist/vuetifyConfig.umd.cjs +1 -1
- package/package.json +29 -18
- package/src/assets/amelipro/apTokens2026.scss +5 -5
- package/src/assets/overrides/_breakpoints.scss +25 -0
- package/src/assets/overrides/_btns.scss +0 -2
- package/src/assets/overrides/_forms.scss +1 -3
- package/src/assets/overrides/_icons.scss +7 -11
- package/src/assets/overrides/_otp.scss +41 -0
- package/src/assets/overrides/_tables.scss +11 -20
- package/src/assets/overrides/_tooltips.scss +17 -7
- package/src/assets/overrides/_typography.scss +35 -37
- package/src/assets/overrides/_utilities.scss +43 -47
- package/src/assets/themes.scss +1 -0
- package/src/components/Amelipro/AmeliproAccordion/AmeliproAccordionTemplate/AmeliproAccordionTemplate.vue +20 -20
- package/src/components/Amelipro/AmeliproAccordionFrieze/AmeliproAccordionFrieze.vue +12 -14
- package/src/components/Amelipro/AmeliproAccordionList/AmeliproAccordionList.vue +4 -6
- package/src/components/Amelipro/AmeliproAccordionResult/AmeliproAccordionResultTemplate/AmeliproAccordionResultTemplate.vue +5 -5
- package/src/components/Amelipro/AmeliproAccordionResultList/AmeliproAccordionResultList.vue +4 -6
- package/src/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.vue +4 -6
- package/src/components/Amelipro/AmeliproBadge/AmeliproBadge.vue +4 -6
- package/src/components/Amelipro/AmeliproBreadcrumb/AmeliproBreadcrumb.vue +1 -3
- package/src/components/Amelipro/AmeliproBtn/AmeliproBtn.vue +4 -6
- package/src/components/Amelipro/AmeliproCallback/AmeliproCallback.vue +2 -2
- package/src/components/Amelipro/AmeliproCard/AmeliproCard.vue +31 -31
- package/src/components/Amelipro/AmeliproCarousel/AmeliproCarousel.vue +5 -7
- package/src/components/Amelipro/AmeliproCheckbox/AmeliproCheckbox.vue +13 -15
- package/src/components/Amelipro/AmeliproCheckboxGroup/AmeliproCheckboxGroup.vue +23 -23
- package/src/components/Amelipro/AmeliproChips/AmeliproChips.vue +1 -3
- package/src/components/Amelipro/AmeliproClickableTile/AmeliproClickableTile.vue +17 -12
- package/src/components/Amelipro/AmeliproClickableTile/tests/__snapshots__/AmeliproClickableTile.spec.ts.snap +2 -2
- package/src/components/Amelipro/AmeliproCopyBtn/AmeliproCopyBtn.vue +4 -6
- package/src/components/Amelipro/AmeliproCustomSelector/AmeliproCustomSelector.vue +13 -13
- package/src/components/Amelipro/AmeliproDentalChart/AmeliproDentalChart.vue +4 -2
- package/src/components/Amelipro/AmeliproDentalChart/AmeliproTooth/AmeliproTooth.vue +4 -4
- package/src/components/Amelipro/AmeliproDialog/AmeliproDialog.vue +5 -7
- package/src/components/Amelipro/AmeliproDisclosure/AmeliproDisclosure.vue +1 -3
- package/src/components/Amelipro/AmeliproErrorTemplate/AmeliproErrorTemplate.vue +2 -4
- package/src/components/Amelipro/AmeliproFilePreview/AmeliproFilePreview.vue +4 -6
- package/src/components/Amelipro/AmeliproFilters/AmeliproFilters.vue +13 -13
- package/src/components/Amelipro/AmeliproFirstLogin/AmeliproFirstLogin.vue +3 -5
- package/src/components/Amelipro/AmeliproFooter/AmeliproFooter.vue +1 -3
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeader.vue +2 -4
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproHeaderBar.vue +1 -3
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproHeaderBrandSection/AmeliproHeaderBrandSection.vue +20 -16
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproHeaderBrandSection/__tests__/__snapshots__/AmeliproHeaderBrandSection.spec.ts.snap +1 -1
- package/src/components/Amelipro/AmeliproIconBtn/AmeliproIconBtn.vue +2 -4
- package/src/components/Amelipro/AmeliproIllustratedDataTile/AmeliproIllustratedDataTile.vue +5 -7
- package/src/components/Amelipro/AmeliproIllustratedRadioGroup/AmeliproIllustratedRadioGroup.vue +6 -8
- package/src/components/Amelipro/AmeliproMailTile/AmeliproMailTile.vue +14 -14
- package/src/components/Amelipro/AmeliproMenu/AmeliproMenu.vue +11 -13
- package/src/components/Amelipro/AmeliproMessagingLayout/AmeliproDropdownMenu/AmeliproDropdownMenu.vue +2 -4
- package/src/components/Amelipro/AmeliproMessagingLayout/AmeliproMessagingLayout.vue +8 -8
- package/src/components/Amelipro/AmeliproMultipleFoldingCard/AmeliproMultipleFoldingCard.vue +40 -40
- package/src/components/Amelipro/AmeliproNumberedCard/AmeliproNumberedCard.vue +27 -27
- package/src/components/Amelipro/AmeliproOnboarding/AmeliproOnboarding.vue +3 -5
- package/src/components/Amelipro/AmeliproPageLayout/AmeliproPageLayout.vue +2 -4
- package/src/components/Amelipro/AmeliproPagination/AmeliproPagination.vue +2 -4
- package/src/components/Amelipro/AmeliproPagination/AmeliproPaginationBtn/AmeliproPaginationBtn.vue +3 -5
- package/src/components/Amelipro/AmeliproPatientBanner/AmeliproPatientBanner.vue +1 -3
- package/src/components/Amelipro/AmeliproPatientLogged/AmeliproPatientLogged.vue +2 -4
- package/src/components/Amelipro/AmeliproPatientLogin/AmeliproPatientLogin.vue +4 -4
- package/src/components/Amelipro/AmeliproPatientLogin/AmeliproPatientLoginForm/AmeliproPatientLoginForm.vue +1 -3
- package/src/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressCityRow/AmeliproPostalAddressCityRow.vue +3 -5
- package/src/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressField.vue +3 -5
- package/src/components/Amelipro/AmeliproRadioGroup/AmeliproRadioGroup.vue +23 -23
- package/src/components/Amelipro/AmeliproResultList/AmeliproResultList.vue +4 -6
- package/src/components/Amelipro/AmeliproSelect/AmeliproSelect.vue +12 -22
- package/src/components/Amelipro/AmeliproStateTile/AmeliproStateTile.vue +10 -12
- package/src/components/Amelipro/AmeliproStepper/AmeliproStepper.vue +17 -17
- package/src/components/Amelipro/AmeliproTable/AmeliproTable.vue +8 -10
- package/src/components/Amelipro/AmeliproTabs/AmeliproTabBtn/AmeliproTabBtn.vue +6 -8
- package/src/components/Amelipro/AmeliproTabs/AmeliproTabs.vue +4 -4
- package/src/components/Amelipro/AmeliproTextArea/AmeliproTextArea.vue +4 -6
- package/src/components/Amelipro/AmeliproTextField/AmeliproTextField.vue +7 -9
- package/src/components/Amelipro/AmeliproTileBtn/AmeliproTileBtn.vue +3 -5
- package/src/components/Amelipro/AmeliproTooltips/AmeliproTooltips.vue +0 -2
- package/src/components/Amelipro/AmeliproUpload/AmeliproUpload.vue +6 -6
- package/src/components/Amelipro/ServiceMenu/ServiceMenu.vue +2 -2
- package/src/components/Amelipro/StructureMenu/StructureBtn/StructureBtn.vue +4 -4
- package/src/components/Amelipro/StructureMenu/StructureItem/StructureItem.vue +4 -6
- package/src/components/Amelipro/StructureMenu/StructureMenu.vue +2 -2
- package/src/components/Amelipro/StructureMenu/StructureTabs/StructureTabs.vue +2 -2
- package/src/components/Amelipro/UserMenu/UserMenu.vue +1 -3
- package/src/components/BackBtn/tests/BackBtn.visual.cy.ts +43 -0
- package/src/components/BackBtn/tests/__snapshots__/back-btn-custom-bg.snap.png +0 -0
- package/src/components/BackBtn/tests/__snapshots__/back-btn-dark-mode.snap.png +0 -0
- package/src/components/BackBtn/tests/__snapshots__/back-btn-default.snap.png +0 -0
- package/src/components/BackBtn/tests/__snapshots__/back-btn-no-icon.snap.png +0 -0
- package/src/components/Captcha/Captcha.vue +1 -3
- package/src/components/ChipList/ChipList.vue +14 -16
- package/src/components/CookiesSelection/CookiesInformation/CookiesInformation.vue +0 -2
- package/src/components/CopyBtn/CopyBtn.vue +1 -3
- package/src/components/Customs/Selects/SelectBtnField/SelectBtnField.vue +17 -17
- package/src/components/Customs/Selects/SelectBtnField/tests/SelectBtnField.spec.ts +31 -0
- package/src/components/Customs/Selects/SyAutocomplete/SyAutocomplete.stories.ts +66 -0
- package/src/components/Customs/Selects/SyAutocomplete/SyAutocomplete.vue +7 -3
- package/src/components/Customs/Selects/SyAutocomplete/tests/SyAutocomplete.a11y.spec.ts +18 -0
- package/src/components/Customs/Selects/SyAutocomplete/tests/SyAutocomplete.spec.ts +66 -0
- package/src/components/Customs/Selects/SyInputSelect/SyInputSelect.vue +4 -6
- package/src/components/Customs/Selects/SySelect/SySelect.stories.ts +1 -39
- package/src/components/Customs/Selects/SySelect/SySelect.vue +263 -63
- package/src/components/Customs/Selects/SySelect/accessibilite/Accessibility.mdx +199 -269
- package/src/components/Customs/Selects/SySelect/tests/SySelect.spec.ts +35 -0
- package/src/components/Customs/SyCheckbox/SyCheckbox.mdx +5 -0
- package/src/components/Customs/SyCheckbox/SyCheckbox.vue +29 -0
- package/src/components/Customs/SyCheckbox/accessibilite/Accessibility.mdx +18 -3
- package/src/components/Customs/SyPagination/SyPagination.vue +0 -2
- package/src/components/Customs/SyTabs/SyTabs.mdx +0 -58
- package/src/components/Customs/SyTabs/SyTabs.stories.ts +32 -33
- package/src/components/Customs/SyTabs/SyTabs.vue +87 -67
- package/src/components/Customs/SyTabs/accessibilite/Accessibility.mdx +83 -23
- package/src/components/Customs/SyTabs/tests/SyTabs.a11y.spec.ts +88 -0
- package/src/components/Customs/SyTabs/tests/SyTabs.spec.ts +46 -1
- package/src/components/Customs/SyTextField/SyTextField.stories.ts +21 -41
- package/src/components/Customs/SyTextField/SyTextField.vue +4 -6
- package/src/components/DatePicker/CalendarMode/DatePicker.vue +12 -14
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.vue +20 -16
- package/src/components/DatePicker/ComplexDatePicker/tests/ComplexDatePicker.spec.ts +23 -0
- package/src/components/DatePicker/DateTextInput/DateTextInput.vue +8 -10
- package/src/components/DatePicker/composables/tests/useDatePickerState.spec.ts +53 -0
- package/src/components/DatePicker/composables/useDatePickerState.ts +24 -0
- package/src/components/DatePicker/composables/useDateTextField.ts +0 -1
- package/src/components/DatePicker/composables/useMonthButtonCustomization.ts +9 -8
- package/src/components/DatePicker/playground/DatePickerHolidayRule.vue +1 -1
- package/src/components/DialogBox/DialogBox.vue +3 -5
- package/src/components/DialogBox/tests/DialogBox.visual.cy.ts +76 -0
- package/src/components/DialogBox/tests/__snapshots__/dialog-box-custom-texts.snap.png +0 -0
- package/src/components/DialogBox/tests/__snapshots__/dialog-box-default.snap.png +0 -0
- package/src/components/DialogBox/tests/__snapshots__/dialog-box-no-actions.snap.png +0 -0
- package/src/components/FileList/FileList.vue +9 -2
- package/src/components/FileList/UploadItem/UploadItem.vue +11 -13
- package/src/components/FileList/tests/FileList.spec.ts +47 -0
- package/src/components/FileUpload/FileUpload.vue +3 -5
- package/src/components/FileUpload/FileUploadContent.vue +3 -5
- package/src/components/FilterInline/FilterInline.vue +1 -3
- package/src/components/FilterSideBar/FilterSideBar.mdx +44 -1
- package/src/components/FilterSideBar/FilterSideBar.stories.ts +105 -1
- package/src/components/FilterSideBar/FilterSideBar.vue +7 -0
- package/src/components/FilterSideBar/tests/FilterSideBar.a11y.spec.ts +54 -1
- package/src/components/FilterSideBar/tests/FilterSideBar.spec.ts +42 -0
- package/src/components/FooterBar/FooterBar.vue +9 -13
- package/src/components/FranceConnectBtn/FranceConnectBtn.vue +1 -1
- package/src/components/HeaderBar/HeaderBar.vue +2 -3
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderBurgerMenu.vue +2 -3
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuItem/HeaderMenuItem.vue +2 -3
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuSection/HeaderMenuSection.vue +0 -1
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderSubMenu/HeaderSubMenu.vue +8 -9
- package/src/components/HeaderBar/HeaderBurgerMenu/menu.scss +0 -8
- package/src/components/HeaderBar/HeaderBurgerMenu/tests/HeaderBurgerMenu.visual.cy.ts +196 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/tests/__snapshots__/header-burger-menu-generated-submenu-open.snap.png +0 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/tests/__snapshots__/header-burger-menu-generated.snap.png +0 -0
- package/src/components/HeaderBar/HeaderLogo/HeaderLogo.vue +0 -1
- package/src/components/HeaderBar/HeaderMenuBtn/HeaderMenuBtn.vue +6 -7
- package/src/components/HeaderBar/tests/HeaderBar.visual.cy.ts +81 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-custom-width.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-default.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-no-sticky.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-with-prepend.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-with-side.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-with-subtitle.snap.png +0 -0
- package/src/components/HeaderNavigationBar/HeaderNavigationBar.vue +12 -3
- package/src/components/HeaderNavigationBar/HorizontalNavbar/HorizontalNavbar.vue +15 -8
- package/src/components/HeaderToolbar/HeaderToolbar.vue +6 -7
- package/src/components/LangBtn/LangBtn.vue +2 -4
- package/src/components/Logo/tests/Logo.visual.cy.ts +57 -0
- package/src/components/Logo/tests/__snapshots__/logo-avatar.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-dark.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-default.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-no-organism.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-no-signature.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-risque-pro.snap.png +0 -0
- package/src/components/LogoBrandSection/LogoBrandSection.vue +2 -2
- package/src/components/MonthPicker/MonthPickerVisual/VisualPickerHeader.vue +1 -1
- package/src/components/NirField/NirField.stories.ts +2 -2
- package/src/components/NirField/NirField.vue +3 -5
- package/src/components/NirField/accessibilite/Accessibility.mdx +100 -5
- package/src/components/NirField/tests/NirField.spec.ts +118 -0
- package/src/components/NirField/tests/useNirValidation.spec.ts +449 -0
- package/src/components/NirField/useNirValidation.ts +38 -32
- package/src/components/NotificationBar/Notification/Notification.vue +5 -7
- package/src/components/NotificationBar/NotificationBar.vue +1 -3
- package/src/components/PaginatedTable/PaginatedTable.vue +2 -3
- package/src/components/PaginatedTable/Pagination.vue +3 -5
- package/src/components/PasswordField/PasswordField.vue +8 -10
- package/src/components/PhoneField/PhoneField.vue +3 -3
- package/src/components/RangeField/RangeSlider/RangeSlider.vue +0 -2
- package/src/components/RangeField/RangeSlider/Tooltip/Tooltip.vue +1 -1
- package/src/components/RangeField/tests/RangeField.visual.cy.ts +65 -0
- package/src/components/RangeField/tests/__snapshots__/range-field-custom-bg.snap.png +0 -0
- package/src/components/RangeField/tests/__snapshots__/range-field-custom-range.snap.png +0 -0
- package/src/components/RangeField/tests/__snapshots__/range-field-default.snap.png +0 -0
- package/src/components/RangeField/tests/__snapshots__/range-field-step.snap.png +0 -0
- package/src/components/RangeField/tests/__snapshots__/range-field-with-label.snap.png +0 -0
- package/src/components/RatingPicker/EmotionPicker/EmotionPicker.vue +6 -8
- package/src/components/RatingPicker/StarsPicker/StarsPicker.vue +3 -5
- package/src/components/SearchListField/SearchListField.vue +0 -2
- package/src/components/SkipLink/SkipLink.vue +2 -4
- package/src/components/SocialMediaLinks/SocialMediaLinks.vue +6 -6
- package/src/components/SubHeader/SubHeader.vue +1 -1
- package/src/components/SyAlert/SyAlert.vue +7 -9
- package/src/components/SyAlert/tests/SyAlert.visual.cy.ts +46 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-closable.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-error.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-info.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-success.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-variant-outlined.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-variant-tonal.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-warning.snap.png +0 -0
- package/src/components/SyBtnMenu/SyBtnMenu.vue +2 -4
- package/src/components/TableToolbar/TableToolbar.vue +6 -8
- package/src/components/Tables/SyServerTable/SyServerTable.stories.ts +166 -0
- package/src/components/Tables/SyServerTable/SyServerTable.vue +9 -7
- package/src/components/Tables/SyServerTable/tests/SyServerTable.a11y.spec.ts +23 -0
- package/src/components/Tables/SyServerTable/tests/SyServerTable.spec.ts +268 -0
- package/src/components/Tables/SyTable/SyTable.stories.ts +104 -0
- package/src/components/Tables/SyTable/SyTable.vue +9 -7
- package/src/components/Tables/SyTable/tests/SyTable.a11y.spec.ts +22 -0
- package/src/components/Tables/SyTable/tests/SyTable.spec.ts +274 -0
- package/src/components/Tables/common/SyTableFilter.vue +27 -2
- package/src/components/Tables/common/SyTablePagination.vue +142 -19
- package/src/components/Tables/common/TableHeader.vue +40 -3
- package/src/components/Tables/common/filters/SelectFilter.vue +1 -1
- package/src/components/Tables/common/locales.ts +3 -0
- package/src/components/Tables/common/tableStyles.scss +16 -19
- package/src/components/Tables/common/tests/SyTablePagination.spec.ts +18 -0
- package/src/components/Tables/common/tests/TableHeader.spec.ts +39 -0
- package/src/components/Tables/common/types.ts +2 -0
- package/src/components/Tables/common/useTableHeaders.ts +49 -27
- package/src/components/UploadWorkflow/UploadWorkflow.vue +1 -0
- package/src/components/UploadWorkflow/tests/UploadWorkflow.spec.ts +23 -0
- package/src/components/UploadWorkflow/tests/__snapshots__/UploadWorkflow.spec.ts.snap +66 -0
- package/src/components/UploadWorkflow/useFileList.ts +3 -0
- package/src/components/UserMenuBtn/UserMenuBtn.vue +1 -3
- package/src/composables/unifyValidation/documentationValidationProps.ts +235 -0
- package/src/composables/validation/useValidation.ts +17 -1
- package/src/composantsVuetify/VBreadcrumbs/VBreadcrumbs.mdx +28 -0
- package/src/composantsVuetify/VBreadcrumbs/v-breadcrumbs.stories.ts +108 -0
- package/src/composantsVuetify/VOtpInput/VOtpInput.mdx +39 -0
- package/src/composantsVuetify/VOtpInput/v-otp-input.stories.ts +56 -0
- package/src/composantsVuetify/VSkeletonLoader/VSkeletonLoader.mdx +42 -0
- package/src/composantsVuetify/VSkeletonLoader/v-skeleton-loader.stories.ts +77 -0
- package/src/composantsVuetify/VSwitch/VSwitch.mdx +47 -0
- package/src/composantsVuetify/VSwitch/v-switch.stories.ts +166 -0
- package/src/designTokens/tests/buildColorClassMap.spec.ts +31 -0
- package/src/designTokens/tests/generateScssTokens.spec.ts +12 -0
- package/src/designTokens/tests/themeUtils.spec.ts +53 -0
- package/src/designTokens/tokens/amelipro/apColors.ts +8 -130
- package/src/designTokens/tokens/amelipro/apColors2026.ts +3 -15
- package/src/designTokens/tokens/amelipro/apContextual.ts +55 -47
- package/src/designTokens/tokens/amelipro/apLightTheme.ts +1 -1
- package/src/designTokens/tokens/amelipro/apSemantic.ts +1 -1
- package/src/designTokens/tokens/baseColors.ts +129 -0
- package/src/designTokens/tokens/baseContextualTokens.ts +52 -0
- package/src/designTokens/tokens/cnam/cnamColors.ts +3 -125
- package/src/designTokens/tokens/cnam/cnamContextual.ts +4 -48
- package/src/designTokens/tokens/cnam/cnamLightTheme.ts +1 -1
- package/src/designTokens/tokens/cnam/cnamSemantic.ts +1 -1
- package/src/designTokens/tokens/pa/paColors.ts +2 -166
- package/src/designTokens/tokens/pa/paContextual.ts +3 -48
- package/src/designTokens/tokens/pa/paLightTheme.ts +1 -1
- package/src/designTokens/tokens/pa/paSemantic.ts +2 -2
- package/src/designTokens/utils/buildColorClassMap.ts +34 -0
- package/src/designTokens/utils/convertSemanticsToken.ts +8 -11
- package/src/designTokens/utils/createFlattenTheme.ts +15 -7
- package/src/designTokens/utils/index.ts +2 -2
- package/src/stories/Accessibilite/AuditDesignSystem.mdx +0 -11
- package/src/stories/Accessibilite/DesignSystem/Avancement.mdx +433 -0
- package/src/stories/Accessibilite/DesignSystem/a11y-status.json +692 -0
- package/src/stories/Accessibilite/KitDePreAudit/Echantillonnage.mdx +8 -1
- package/src/stories/Accessibilite/KitDePreAudit/Introduction.mdx +51 -10
- package/src/stories/Accessibilite/KitDePreAudit/Outils/Introduction.mdx +16 -9
- package/src/stories/Accessibilite/KitDePreAudit/Preaudit.mdx +48 -58
- package/src/stories/Components/Components.stories.ts +40 -1
- package/src/stories/Demarrer/EnrichirLeDesignSystem.mdx +4 -9
- package/src/stories/Demarrer/EnrichirLeDesignSystem.stories.ts +28 -0
- package/src/stories/Demarrer/Releases.stories.ts +48 -5
- package/src/stories/DesignTokens/ColorDisplay.vue +6 -5
- package/src/stories/DesignTokens/ColorIntegrationExample.vue +2 -4
- package/src/stories/DesignTokens/colors.stories.ts +5 -6
- package/src/stories/GuideDuDev/CreateVuetifyInstance.mdx +95 -0
- package/src/stories/GuideDuDev/Theme.mdx +36 -26
- package/src/stories/GuideDuDev/moduleDeNotification.mdx +3 -2
- package/src/stories/styles/accessibility-guide.css +3 -3
- package/src/utils/functions/classToHex.ts +6 -34
- package/src/utils/functions/createHexResolver.ts +45 -0
- package/src/utils/functions/tests/classToHex.spec.ts +36 -0
- package/src/utils/functions/tests/convertToHex.spec.ts +31 -0
- package/src/utils/functions/tests/createHexResolver.spec.ts +66 -0
- package/src/utils/functions/tests/isCssColor.spec.ts +48 -0
- package/dist/apLightTheme-CFSRrjv2.cjs +0 -1
- package/dist/designTokens/utils/convertGaps.d.ts +0 -5
- package/dist/main-BtTqyn4z.js +0 -38648
- package/dist/main-C1e3eoxd.cjs +0 -1067
- package/src/assets/apTokens.scss +0 -343
- package/src/assets/overrides/_container.scss +0 -36
- package/src/assets/tokens.scss +0 -388
- package/src/designTokens/apColors.md +0 -66
- package/src/designTokens/cnamColors.md +0 -193
- package/src/designTokens/paColors.md +0 -66
- package/src/designTokens/tokens/json/contextual-tokens.json +0 -156
- package/src/designTokens/tokens/json/primitives.json +0 -209
- package/src/designTokens/tokens/json/semantic.json +0 -120
- package/src/designTokens/utils/convertGaps.ts +0 -11
- package/src/stories/Accessibilite/Avancement/Avancement.mdx +0 -533
- package/src/stories/Accessibilite/Avancement/Avancement.stories.ts +0 -306
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
function toKebabCase(value: string): string {
|
|
2
|
+
return value
|
|
3
|
+
.replace(/([a-z0-9])([A-Z])/g, '$1-$2')
|
|
4
|
+
.replace(/([a-zA-Z])(\d)/g, '$1-$2')
|
|
5
|
+
.replace(/_/g, '-')
|
|
6
|
+
.toLowerCase()
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Generates a flat class-name → hex value map from a color token object.
|
|
11
|
+
*
|
|
12
|
+
* Example:
|
|
13
|
+
* { apBlue: { base: '#0C419A', darken1: '#00749C' } }
|
|
14
|
+
* →
|
|
15
|
+
* { 'ap-blue': '#0c419a', 'ap-blue-darken-1': '#00749c' }
|
|
16
|
+
*
|
|
17
|
+
* The 'base' variation is dropped from the class name (e.g. apBlue.base → ap-blue).
|
|
18
|
+
* Numeric suffixes in variation names are separated with a dash (darken1 → darken-1).
|
|
19
|
+
*/
|
|
20
|
+
export function buildColorClassMap<T extends Record<string, Record<string, string>>>(tokens: T): Record<string, string> {
|
|
21
|
+
const map: Record<string, string> = {}
|
|
22
|
+
|
|
23
|
+
for (const [colorName, colorValues] of Object.entries(tokens)) {
|
|
24
|
+
for (const [variationName, colorValue] of Object.entries(colorValues)) {
|
|
25
|
+
const rawClass = `${colorName}-${variationName}`
|
|
26
|
+
.replace(/(\d+)/, '-$1')
|
|
27
|
+
.replace('-base', '')
|
|
28
|
+
|
|
29
|
+
map[toKebabCase(rawClass)] = colorValue.toLowerCase()
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return map
|
|
34
|
+
}
|
|
@@ -14,19 +14,16 @@ type ThemeVariables = {
|
|
|
14
14
|
export const generateThemeVariables = (tokens: Tokens): ThemeVariables => {
|
|
15
15
|
const themeVariables: ThemeVariables = {}
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
// Parcourir les tokens de chaque catégorie
|
|
23
|
-
for (const token in categoryTokens) {
|
|
24
|
-
if (Object.prototype.hasOwnProperty.call(categoryTokens, token)) {
|
|
25
|
-
const variableName = `on${category.charAt(0).toUpperCase() + category.slice(1)}${token.charAt(0).toUpperCase() + token.slice(1)}`
|
|
26
|
-
themeVariables[variableName] = categoryTokens[token]!
|
|
27
|
-
}
|
|
17
|
+
for (const [category, categoryTokens] of Object.entries(tokens.colors)) {
|
|
18
|
+
for (const [token, tokenValue] of Object.entries(categoryTokens)) {
|
|
19
|
+
if (tokenValue === undefined) {
|
|
20
|
+
throw new Error(`Missing semantic token "${token}" in category "${category}"`)
|
|
28
21
|
}
|
|
22
|
+
|
|
23
|
+
const variableName = `on${category.charAt(0).toUpperCase() + category.slice(1)}${token.charAt(0).toUpperCase() + token.slice(1)}`
|
|
24
|
+
themeVariables[variableName] = tokenValue
|
|
29
25
|
}
|
|
30
26
|
}
|
|
27
|
+
|
|
31
28
|
return themeVariables
|
|
32
29
|
}
|
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
type Theme = { [key: string]: string | number | Theme }
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
const isThemeBranch = (value: string | number | Theme): value is Theme =>
|
|
4
|
+
typeof value === 'object' && value !== null
|
|
5
|
+
|
|
6
|
+
export const createFlattenTheme = (theme: Theme): Record<string, string | number> => {
|
|
7
|
+
const result: Record<string, string | number> = {}
|
|
5
8
|
const flatten = (obj: Theme, prefix = '') => {
|
|
6
|
-
for (const key
|
|
7
|
-
const value = obj[key]
|
|
9
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
8
10
|
const newKey: string = prefix ? `${prefix}-${key}` : key
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
|
|
12
|
+
if (value === undefined) {
|
|
13
|
+
throw new Error(`Missing theme value for key "${newKey}"`)
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
if (isThemeBranch(value)) {
|
|
17
|
+
flatten(value, newKey)
|
|
11
18
|
}
|
|
12
19
|
else {
|
|
13
|
-
result[newKey] = value
|
|
20
|
+
result[newKey] = value
|
|
14
21
|
}
|
|
15
22
|
}
|
|
16
23
|
}
|
|
24
|
+
|
|
17
25
|
flatten(theme)
|
|
18
26
|
return result
|
|
19
27
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createFlattenTheme } from './createFlattenTheme'
|
|
2
|
-
import { convertGaps } from './convertGaps'
|
|
3
2
|
import { createFontVariables } from './createFontVariables'
|
|
3
|
+
import { buildColorClassMap } from './buildColorClassMap'
|
|
4
4
|
|
|
5
|
-
export { createFlattenTheme,
|
|
5
|
+
export { createFlattenTheme, createFontVariables, buildColorClassMap }
|
|
@@ -244,15 +244,4 @@ import '../styles/shared.css';
|
|
|
244
244
|
<li>Comprendre les bonnes pratiques à suivre</li>
|
|
245
245
|
<li>Appliquer les recommandations dans vos projets</li>
|
|
246
246
|
</ul>
|
|
247
|
-
|
|
248
|
-
<div className="image-container">
|
|
249
|
-
<img
|
|
250
|
-
src={"/capture-page-accessibilite-composant.png"}
|
|
251
|
-
aria-labelledby="capture-page-accessibilite-alt"
|
|
252
|
-
/>
|
|
253
|
-
<div className="image-caption" id="capture-page-accessibilite-alt">
|
|
254
|
-
Capture d'écran de la page Accessibilité du composant NotificationBar.<br/>
|
|
255
|
-
Celle-ci donne des éléments sur les audits Tanaguru et manuels.
|
|
256
|
-
</div>
|
|
257
|
-
</div>
|
|
258
247
|
</div>
|
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
import { Meta } from '@storybook/addon-docs';
|
|
2
|
+
import statusData from './a11y-status.json';
|
|
3
|
+
import '../../styles/shared.css';
|
|
4
|
+
import { useState } from 'react';
|
|
5
|
+
|
|
6
|
+
<Meta title="Accessibilité/Design System/Avancement" />
|
|
7
|
+
|
|
8
|
+
<style>
|
|
9
|
+
{`
|
|
10
|
+
.carbon-a11y-container {
|
|
11
|
+
font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
12
|
+
color: #161616;
|
|
13
|
+
background-color: #f4f4f4;
|
|
14
|
+
padding: 2rem;
|
|
15
|
+
width: 100%;
|
|
16
|
+
margin-top: 2rem;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.header-section {
|
|
20
|
+
margin-bottom: 2rem;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.title {
|
|
24
|
+
font-size: 1.75rem;
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
margin-bottom: 1rem;
|
|
27
|
+
color: #0C419A;
|
|
28
|
+
line-height: 1.2;
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.meta-info {
|
|
34
|
+
font-size: 0.875rem;
|
|
35
|
+
color: #525252;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.table-wrapper {
|
|
39
|
+
background-color: #ffffff;
|
|
40
|
+
width: 100%;
|
|
41
|
+
overflow-x: auto;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.carbon-table {
|
|
45
|
+
width: 100%;
|
|
46
|
+
border-collapse: collapse;
|
|
47
|
+
text-align: left;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.carbon-table th {
|
|
51
|
+
background-color: #ffffff;
|
|
52
|
+
color: #161616;
|
|
53
|
+
font-weight: 600;
|
|
54
|
+
font-size: 0.875rem;
|
|
55
|
+
padding: 1rem;
|
|
56
|
+
border-bottom: 1px solid #e0e0e0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.th-content {
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.carbon-table td {
|
|
65
|
+
padding: 1rem;
|
|
66
|
+
border-bottom: 1px solid #e0e0e0;
|
|
67
|
+
font-size: 0.875rem;
|
|
68
|
+
background-color: #ffffff;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.component-name {
|
|
72
|
+
font-weight: 400;
|
|
73
|
+
color: #0C419A !important;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.css-ajfpqr {
|
|
77
|
+
color: #0C419A !important;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.carbon-link {
|
|
81
|
+
color: #0C419A;
|
|
82
|
+
text-decoration: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.carbon-link:hover {
|
|
86
|
+
text-decoration: underline;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.carbon-tag {
|
|
90
|
+
display: inline-flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
padding: 0.25rem 0.5rem;
|
|
93
|
+
border-radius: 9999px;
|
|
94
|
+
font-size: 0.75rem;
|
|
95
|
+
font-weight: 400;
|
|
96
|
+
line-height: 1;
|
|
97
|
+
text-decoration: underline dotted rgba(22, 22, 22, 0.3);
|
|
98
|
+
text-underline-offset: 2px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.tag-green {
|
|
102
|
+
background-color: #a8f0c6;
|
|
103
|
+
color: #161616;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.tag-red {
|
|
107
|
+
background-color: #ffd7d9;
|
|
108
|
+
color: #161616;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.tag-blue {
|
|
112
|
+
background-color: #d0e2ff;
|
|
113
|
+
color: #161616;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.tag-cyan {
|
|
117
|
+
background-color: #9ef0f0;
|
|
118
|
+
color: #161616;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.tag-gray {
|
|
122
|
+
background-color: #f4f4f4;
|
|
123
|
+
color: #525252;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* Tooltip Styles */
|
|
127
|
+
.carbon-tooltip-container {
|
|
128
|
+
position: relative;
|
|
129
|
+
display: inline-flex;
|
|
130
|
+
align-items: center;
|
|
131
|
+
justify-content: center;
|
|
132
|
+
margin-left: 0.5rem;
|
|
133
|
+
cursor: help;
|
|
134
|
+
vertical-align: middle;
|
|
135
|
+
top: -2px;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.carbon-tooltip-icon {
|
|
139
|
+
fill: #525252;
|
|
140
|
+
transition: fill 0.2s;
|
|
141
|
+
width: 16px;
|
|
142
|
+
height: 16px;
|
|
143
|
+
flex-shrink: 0;
|
|
144
|
+
vertical-align: middle;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.carbon-tooltip-container:hover .carbon-tooltip-icon {
|
|
148
|
+
fill: #161616;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.carbon-tooltip-content {
|
|
152
|
+
visibility: hidden;
|
|
153
|
+
opacity: 0;
|
|
154
|
+
width: max-content;
|
|
155
|
+
max-width: 350px;
|
|
156
|
+
background-color: #393939;
|
|
157
|
+
color: #ffffff;
|
|
158
|
+
text-align: left;
|
|
159
|
+
border-radius: 2px;
|
|
160
|
+
padding: 0.5rem 0.75rem;
|
|
161
|
+
position: absolute;
|
|
162
|
+
z-index: 9999;
|
|
163
|
+
top: calc(100% + 8px);
|
|
164
|
+
right: 0;
|
|
165
|
+
transform: translateX(0);
|
|
166
|
+
font-size: 0.75rem;
|
|
167
|
+
font-weight: 400;
|
|
168
|
+
line-height: 1.4;
|
|
169
|
+
transition: opacity 0.2s;
|
|
170
|
+
white-space: normal;
|
|
171
|
+
box-shadow: 0 2px 6px rgba(0,0,0,0.2);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.carbon-tooltip-content::after {
|
|
175
|
+
content: "";
|
|
176
|
+
position: absolute;
|
|
177
|
+
bottom: 100%;
|
|
178
|
+
right: 10px;
|
|
179
|
+
margin-right: -5px;
|
|
180
|
+
border-width: 5px;
|
|
181
|
+
border-style: solid;
|
|
182
|
+
border-color: transparent transparent #393939 transparent;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.carbon-tooltip-container:hover .carbon-tooltip-content {
|
|
186
|
+
visibility: visible;
|
|
187
|
+
opacity: 1;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* Search Styles */
|
|
191
|
+
.search-container {
|
|
192
|
+
margin-bottom: 1.5rem;
|
|
193
|
+
position: relative;
|
|
194
|
+
width: 400px;
|
|
195
|
+
max-width: 400px;
|
|
196
|
+
min-width: 400px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.search-input {
|
|
200
|
+
width: 400px;
|
|
201
|
+
max-width: 400px;
|
|
202
|
+
min-width: 400px;
|
|
203
|
+
height: 40px;
|
|
204
|
+
padding: 0.75rem 1rem 0.75rem 2.5rem;
|
|
205
|
+
border: 1px solid #e0e0e0;
|
|
206
|
+
border-radius: 4px;
|
|
207
|
+
font-size: 0.875rem;
|
|
208
|
+
font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
209
|
+
background-color: #ffffff;
|
|
210
|
+
transition: border-color 0.2s, box-shadow 0.2s;
|
|
211
|
+
box-sizing: border-box;
|
|
212
|
+
resize: none;
|
|
213
|
+
outline: none;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.search-input:focus {
|
|
217
|
+
border-color: #0f62fe;
|
|
218
|
+
box-shadow: 0 0 0 2px rgba(15, 98, 254, 0.2);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.search-icon {
|
|
222
|
+
position: absolute;
|
|
223
|
+
left: 12px;
|
|
224
|
+
top: 12px;
|
|
225
|
+
fill: #525252;
|
|
226
|
+
width: 16px;
|
|
227
|
+
height: 16px;
|
|
228
|
+
pointer-events: none;
|
|
229
|
+
z-index: 10;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.search-results-count {
|
|
233
|
+
margin-top: 0.5rem;
|
|
234
|
+
font-size: 0.875rem;
|
|
235
|
+
color: #525252;
|
|
236
|
+
}
|
|
237
|
+
`}
|
|
238
|
+
</style>
|
|
239
|
+
|
|
240
|
+
<div className="header">
|
|
241
|
+
<h1>Avancement de l'accessibilité</h1>
|
|
242
|
+
</div>
|
|
243
|
+
|
|
244
|
+
{(() => {
|
|
245
|
+
const [searchTerm, setSearchTerm] = useState('');
|
|
246
|
+
|
|
247
|
+
const validComponents = statusData.results;
|
|
248
|
+
|
|
249
|
+
const compliantCount = validComponents.filter(item => item.isFullyCompliant).length;
|
|
250
|
+
const totalCount = validComponents.length;
|
|
251
|
+
const percentage = totalCount > 0 ? ((compliantCount / totalCount) * 100).toFixed(2) : '0.00';
|
|
252
|
+
|
|
253
|
+
const filteredComponents = validComponents
|
|
254
|
+
.filter(item =>
|
|
255
|
+
searchTerm === '' ||
|
|
256
|
+
item.componentName.toLowerCase().includes(searchTerm.toLowerCase())
|
|
257
|
+
);
|
|
258
|
+
|
|
259
|
+
return (
|
|
260
|
+
<div className="carbon-a11y-container">
|
|
261
|
+
<div className="header-section">
|
|
262
|
+
<h2 className="title">
|
|
263
|
+
Statut de l'accessibilité par composant
|
|
264
|
+
<span className="carbon-tooltip-container">
|
|
265
|
+
<svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="16" height="16" viewBox="0 0 32 32" aria-hidden="true" className="carbon-tooltip-icon">
|
|
266
|
+
<path d="M16 2A14 14 0 1 0 30 16 14 14 0 0 0 16 2zm0 26a12 12 0 1 1 12-12 12 12 0 0 1-12 12z"></path>
|
|
267
|
+
<path d="M17 22h-2v-2h2zm-2-5v-1c0-1.1.9-2 2-2s2-.9 2-2-.9-2-2-2-2 .9-2 2h-2c0-2.2 1.8-4 4-4s4 1.8 4 4-1.8 4-4 4v1z"></path>
|
|
268
|
+
</svg>
|
|
269
|
+
<span className="carbon-tooltip-content">Cet indicateur reflète l'état global d'avancement de la mise en accessibilité des composants du Design System. Le pourcentage de conformité se base sur les tests automatisés, la configuration des stories et la documentation complète. Les audits manuels sont affichés à titre informatif mais ne sont pas comptabilisés dans ce pourcentage.</span>
|
|
270
|
+
</span>
|
|
271
|
+
</h2>
|
|
272
|
+
<div className="meta-info">
|
|
273
|
+
<strong>Statut :</strong> {compliantCount} / {totalCount} composants conformes ({percentage}%) | <strong>Dernière mise à jour :</strong> {new Date(statusData.date).toLocaleDateString('fr-FR', { year: 'numeric', month: 'long', day: 'numeric' })}
|
|
274
|
+
</div>
|
|
275
|
+
</div>
|
|
276
|
+
|
|
277
|
+
<div className="search-container">
|
|
278
|
+
<svg className="search-icon" focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="16" height="16" viewBox="0 0 32 32" aria-hidden="true">
|
|
279
|
+
<path d="M29 27.586l-7.552-7.552a11.018 11.018 0 1 0-1.414 1.414L27.586 29 29 27.586zM4 13a9 9 0 1 1 9 9 9 9 0 0 1-9-9z"></path>
|
|
280
|
+
</svg>
|
|
281
|
+
<input
|
|
282
|
+
type="text"
|
|
283
|
+
className="search-input"
|
|
284
|
+
placeholder="Rechercher un composant..."
|
|
285
|
+
value={searchTerm}
|
|
286
|
+
onChange={(e) => setSearchTerm(e.target.value)}
|
|
287
|
+
/>
|
|
288
|
+
{searchTerm && (
|
|
289
|
+
<div className="search-results-count">
|
|
290
|
+
{filteredComponents.length} résultat{filteredComponents.length > 1 ? 's' : ''} trouvé{filteredComponents.length > 1 ? 's' : ''}
|
|
291
|
+
</div>
|
|
292
|
+
)}
|
|
293
|
+
</div>
|
|
294
|
+
|
|
295
|
+
<div className="table-wrapper">
|
|
296
|
+
<table className="carbon-table">
|
|
297
|
+
<thead>
|
|
298
|
+
<tr>
|
|
299
|
+
<th>Composant</th>
|
|
300
|
+
<th>
|
|
301
|
+
<div className="th-content">
|
|
302
|
+
Tests A11y
|
|
303
|
+
<span className="carbon-tooltip-container">
|
|
304
|
+
<svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="16" height="16" viewBox="0 0 32 32" aria-hidden="true" className="carbon-tooltip-icon">
|
|
305
|
+
<path d="M16 2A14 14 0 1 0 30 16 14 14 0 0 0 16 2zm0 26a12 12 0 1 1 12-12 12 12 0 0 1-12 12z"></path>
|
|
306
|
+
<path d="M17 22h-2v-2h2zm-2-5v-1c0-1.1.9-2 2-2s2-.9 2-2-.9-2-2-2-2 .9-2 2h-2c0-2.2 1.8-4 4-4s4 1.8 4 4-1.8 4-4 4v1z"></path>
|
|
307
|
+
</svg>
|
|
308
|
+
<span className="carbon-tooltip-content">Indique si des tests d'accessibilité (vitest-axe) sont implémentés et fonctionnels pour la CI.</span>
|
|
309
|
+
</span>
|
|
310
|
+
</div>
|
|
311
|
+
</th>
|
|
312
|
+
<th>
|
|
313
|
+
<div className="th-content">
|
|
314
|
+
Onglet A11y
|
|
315
|
+
<span className="carbon-tooltip-container">
|
|
316
|
+
<svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="16" height="16" viewBox="0 0 32 32" aria-hidden="true" className="carbon-tooltip-icon">
|
|
317
|
+
<path d="M16 2A14 14 0 1 0 30 16 14 14 0 0 0 16 2zm0 26a12 12 0 1 1 12-12 12 12 0 0 1-12 12z"></path>
|
|
318
|
+
<path d="M17 22h-2v-2h2zm-2-5v-1c0-1.1.9-2 2-2s2-.9 2-2-.9-2-2-2-2 .9-2 2h-2c0-2.2 1.8-4 4-4s4 1.8 4 4-1.8 4-4 4v1z"></path>
|
|
319
|
+
</svg>
|
|
320
|
+
<span className="carbon-tooltip-content">Tests d'accessibilité en temps réel avec Storybook.</span>
|
|
321
|
+
</span>
|
|
322
|
+
</div>
|
|
323
|
+
</th>
|
|
324
|
+
<th>
|
|
325
|
+
<div className="th-content">
|
|
326
|
+
Documentation
|
|
327
|
+
<span className="carbon-tooltip-container">
|
|
328
|
+
<svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="16" height="16" viewBox="0 0 32 32" aria-hidden="true" className="carbon-tooltip-icon">
|
|
329
|
+
<path d="M16 2A14 14 0 1 0 30 16 14 14 0 0 0 16 2zm0 26a12 12 0 1 1 12-12 12 12 0 0 1-12 12z"></path>
|
|
330
|
+
<path d="M17 22h-2v-2h2zm-2-5v-1c0-1.1.9-2 2-2s2-.9 2-2-.9-2-2-2-2 .9-2 2h-2c0-2.2 1.8-4 4-4s4 1.8 4 4-1.8 4-4 4v1z"></path>
|
|
331
|
+
</svg>
|
|
332
|
+
<span className="carbon-tooltip-content">Vérifie la présence et la complétude de la page guidant sur l'accessibilité de ce composant.</span>
|
|
333
|
+
</span>
|
|
334
|
+
</div>
|
|
335
|
+
</th>
|
|
336
|
+
</tr>
|
|
337
|
+
</thead>
|
|
338
|
+
<tbody>
|
|
339
|
+
{filteredComponents
|
|
340
|
+
.map((item) => {
|
|
341
|
+
const getCategory = (componentName) => {
|
|
342
|
+
const structureComponents = [
|
|
343
|
+
'HeaderBar', 'HeaderToolbar', 'HeaderLoading', 'SubHeader', 'FooterBar',
|
|
344
|
+
'PageContainer', 'ToolbarContainer', 'SkipLink', 'HeaderNavigationBar'
|
|
345
|
+
];
|
|
346
|
+
|
|
347
|
+
const dataComponents = [
|
|
348
|
+
'Accordion', 'DataList', 'DataListGroup', 'DataListItem', 'Tables',
|
|
349
|
+
'PaginatedTable', 'FilterInline', 'FilterSideBar', 'TableToolbar',
|
|
350
|
+
'SearchListField', 'ChipList', 'CollapsibleList', 'ContextualMenu'
|
|
351
|
+
];
|
|
352
|
+
|
|
353
|
+
const formComponents = [
|
|
354
|
+
'PasswordField', 'PhoneField', 'RangeField', 'NirField', 'PeriodField',
|
|
355
|
+
'MonthPicker', 'DatePicker', 'RatingPicker', 'DiacriticPicker', 'LunarCalendar',
|
|
356
|
+
'FileUpload', 'FileList', 'FilePreview', 'UploadWorkflow'
|
|
357
|
+
];
|
|
358
|
+
|
|
359
|
+
const actionComponents = [
|
|
360
|
+
'BackBtn', 'BackToTopBtn', 'CopyBtn', 'DownloadBtn', 'LangBtn',
|
|
361
|
+
'FranceConnectBtn', 'UserMenuBtn', 'SocialMediaLinks', 'ExternalLinks',
|
|
362
|
+
'SyBtnMenu', 'SyTextArea'
|
|
363
|
+
];
|
|
364
|
+
|
|
365
|
+
const feedbackComponents = [
|
|
366
|
+
'SyAlert', 'NotificationBar', 'ErrorPage', 'StatusPage', 'MaintenancePage',
|
|
367
|
+
'NotFoundPage', 'DialogBox', 'Captcha', 'CookieBanner', 'CookiesSelection'
|
|
368
|
+
];
|
|
369
|
+
|
|
370
|
+
const layoutComponents = [
|
|
371
|
+
'Logo', 'LogoBrandSection', 'DeclarationAccessibilityPage', 'AccessibilityProgressPage'
|
|
372
|
+
];
|
|
373
|
+
|
|
374
|
+
const customsComponents = [
|
|
375
|
+
'SyIcon', 'SyHeading'
|
|
376
|
+
];
|
|
377
|
+
|
|
378
|
+
if (structureComponents.includes(componentName)) return 'structure';
|
|
379
|
+
if (dataComponents.includes(componentName)) return 'donnees';
|
|
380
|
+
if (formComponents.includes(componentName)) return 'formulaires';
|
|
381
|
+
if (actionComponents.includes(componentName)) return 'actions';
|
|
382
|
+
if (feedbackComponents.includes(componentName)) return 'feedback';
|
|
383
|
+
if (layoutComponents.includes(componentName)) return 'layout';
|
|
384
|
+
if (customsComponents.includes(componentName)) return 'customs';
|
|
385
|
+
|
|
386
|
+
return 'donnees';
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
const getStorybookUrl = (componentName, storybookTitle) => {
|
|
390
|
+
// Use the actual Storybook title if available, otherwise fall back to generated path
|
|
391
|
+
if (storybookTitle) {
|
|
392
|
+
// Convert Storybook title to URL format - keep slashes, only replace spaces and special chars
|
|
393
|
+
return `/?path=/docs/${storybookTitle.toLowerCase().replace(/\s+/g, '-').replace(/[^\w\/-]/g, '')}--docs`;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
// Fallback to the old method for components without storybookTitle
|
|
397
|
+
const category = getCategory(componentName);
|
|
398
|
+
const formattedName = componentName.toLowerCase().replace(/[^a-z0-9]/g, '');
|
|
399
|
+
return `/?path=/docs/composants-${category}-${formattedName}--docs`;
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
return (
|
|
403
|
+
<tr key={item.componentName}>
|
|
404
|
+
<td className="component-name">
|
|
405
|
+
<a href="#" className="carbon-link">{item.componentName.split('/').pop()}</a>
|
|
406
|
+
</td>
|
|
407
|
+
<td>
|
|
408
|
+
<span className={`carbon-tag ${item.hasA11yTests ? 'tag-green' : 'tag-red'}`}>
|
|
409
|
+
{item.hasA11yTests ? 'Testé' : 'Non testé'}
|
|
410
|
+
</span>
|
|
411
|
+
</td>
|
|
412
|
+
<td>
|
|
413
|
+
<span className={`carbon-tag ${item.hasA11yDisabledInStories ? 'tag-red' : 'tag-green'}`}>
|
|
414
|
+
{item.hasA11yDisabledInStories ? 'Absent' : 'Présent'}
|
|
415
|
+
</span>
|
|
416
|
+
</td>
|
|
417
|
+
<td>
|
|
418
|
+
<span className={`carbon-tag ${
|
|
419
|
+
item.mdxStatus === 'Complète' ? 'tag-green' :
|
|
420
|
+
item.mdxStatus === 'Manquante' ? 'tag-red' : 'tag-blue'
|
|
421
|
+
}`}>
|
|
422
|
+
{item.mdxStatus}
|
|
423
|
+
</span>
|
|
424
|
+
</td>
|
|
425
|
+
</tr>
|
|
426
|
+
);
|
|
427
|
+
})}
|
|
428
|
+
</tbody>
|
|
429
|
+
</table>
|
|
430
|
+
</div>
|
|
431
|
+
</div>
|
|
432
|
+
);
|
|
433
|
+
})()}
|