@design-system-rte/core 1.2.1 → 1.2.2-rc1
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/common/animation.d.ts +2 -0
- package/common/animation.d.ts.map +1 -0
- package/common/animation.js +5 -0
- package/common/index.d.ts +3 -0
- package/common/index.d.ts.map +1 -0
- package/common/index.js +2 -0
- package/components/assistive-text/assistive-text.constants.d.ts +4 -0
- package/components/assistive-text/assistive-text.constants.d.ts.map +1 -0
- package/components/assistive-text/assistive-text.constants.js +5 -0
- package/components/assistive-text/assistive-text.utils.d.ts +2 -0
- package/components/assistive-text/assistive-text.utils.d.ts.map +1 -0
- package/components/assistive-text/assistive-text.utils.js +9 -0
- package/components/assistive-text/index.d.ts +4 -0
- package/components/assistive-text/index.d.ts.map +1 -0
- package/components/assistive-text/index.js +2 -0
- package/components/badge/badge.utils.d.ts +26 -0
- package/components/badge/badge.utils.d.ts.map +1 -0
- package/components/badge/badge.utils.js +41 -0
- package/components/badge/index.d.ts +3 -0
- package/components/badge/index.d.ts.map +1 -0
- package/components/badge/index.js +1 -0
- package/components/banner/index.d.ts +2 -0
- package/components/banner/index.d.ts.map +1 -0
- package/components/banner/index.js +1 -0
- package/components/breadcrumbs/breadcrumbs.constants.d.ts +2 -0
- package/components/breadcrumbs/breadcrumbs.constants.d.ts.map +1 -0
- package/components/breadcrumbs/breadcrumbs.utils.d.ts +4 -0
- package/components/breadcrumbs/breadcrumbs.utils.d.ts.map +1 -0
- package/components/breadcrumbs/breadcrumbs.utils.js +17 -0
- package/components/breadcrumbs/index.d.ts +4 -0
- package/components/breadcrumbs/index.d.ts.map +1 -0
- package/components/breadcrumbs/index.js +2 -0
- package/components/button/button.interface.d.ts +3 -5
- package/components/button/common/common-button.constants.d.ts +5 -0
- package/components/button/common/common-button.constants.d.ts.map +1 -0
- package/components/button/common/common-button.constants.js +10 -0
- package/components/button/index.d.ts +5 -0
- package/components/button/index.d.ts.map +1 -0
- package/components/button/index.js +2 -0
- package/components/card/card.constats.d.ts +3 -0
- package/components/card/card.constats.d.ts.map +1 -0
- package/components/card/card.constats.js +7 -0
- package/components/card/card.stories.shared.d.ts +52 -0
- package/components/card/card.stories.shared.d.ts.map +1 -0
- package/components/card/card.stories.shared.js +54 -0
- package/components/card/index.d.ts +4 -0
- package/components/card/index.d.ts.map +1 -0
- package/components/card/index.js +2 -0
- package/components/checkbox/index.d.ts +2 -0
- package/components/checkbox/index.d.ts.map +1 -0
- package/components/checkbox/index.js +1 -0
- package/components/checkbox-group/index.d.ts +2 -0
- package/components/checkbox-group/index.d.ts.map +1 -0
- package/components/checkbox-group/index.js +1 -0
- package/components/chip/chip.constants.d.ts +6 -0
- package/components/chip/chip.constants.d.ts.map +1 -0
- package/components/chip/chip.constants.js +5 -0
- package/components/chip/index.d.ts +3 -0
- package/components/chip/index.d.ts.map +1 -0
- package/components/chip/index.js +1 -0
- package/components/common/{common-types.ts → common-types.d.ts} +1 -0
- package/components/common/common-types.d.ts.map +1 -0
- package/components/common/common-types.js +1 -0
- package/components/divider/index.d.ts +2 -0
- package/components/divider/index.d.ts.map +1 -0
- package/components/divider/index.js +1 -0
- package/components/dropdown/DropdownManager.d.ts +13 -0
- package/components/dropdown/DropdownManager.d.ts.map +1 -0
- package/components/dropdown/DropdownManager.js +50 -0
- package/components/dropdown/dropdown.constants.d.ts +2 -0
- package/components/dropdown/dropdown.constants.d.ts.map +1 -0
- package/components/dropdown/dropdown.interface.d.ts +0 -1
- package/components/dropdown/index.d.ts +4 -0
- package/components/dropdown/index.d.ts.map +1 -0
- package/components/dropdown/index.js +2 -0
- package/components/grid/index.d.ts +2 -0
- package/components/grid/index.d.ts.map +1 -0
- package/components/grid/index.js +1 -0
- package/components/icon/icon-utils.d.ts +2 -0
- package/components/icon/icon-utils.d.ts.map +1 -0
- package/components/icon/icon-utils.js +3 -0
- package/components/icon/icon.constants.d.ts +4 -0
- package/components/icon/icon.constants.d.ts.map +1 -0
- package/components/icon/icon.constants.js +13 -0
- package/components/icon/index.d.ts +4 -0
- package/components/icon/index.d.ts.map +1 -0
- package/components/icon/index.js +2 -0
- package/components/link/index.d.ts +2 -0
- package/components/link/index.d.ts.map +1 -0
- package/components/link/index.js +1 -0
- package/components/loader/index.d.ts +3 -0
- package/components/loader/index.d.ts.map +1 -0
- package/components/loader/index.js +1 -0
- package/components/loader/loader.constants.d.ts +3 -0
- package/components/loader/loader.constants.d.ts.map +1 -0
- package/components/loader/loader.constants.js +5 -0
- package/components/modal/index.d.ts +2 -0
- package/components/modal/index.d.ts.map +1 -0
- package/components/modal/index.js +1 -0
- package/components/popover/index.d.ts +3 -0
- package/components/popover/index.d.ts.map +1 -0
- package/components/popover/index.js +1 -0
- package/components/popover/popover.constants.d.ts +3 -0
- package/components/popover/popover.constants.d.ts.map +1 -0
- package/components/radio-button/index.d.ts +3 -0
- package/components/radio-button/index.d.ts.map +1 -0
- package/components/radio-button/index.js +1 -0
- package/components/radio-button/radio-button.constants.d.ts +2 -0
- package/components/radio-button/radio-button.constants.d.ts.map +1 -0
- package/components/radio-button-group/index.d.ts +2 -0
- package/components/radio-button-group/index.d.ts.map +1 -0
- package/components/radio-button-group/index.js +1 -0
- package/components/required-indicator/index.d.ts +3 -0
- package/components/required-indicator/index.d.ts.map +1 -0
- package/components/required-indicator/index.js +2 -0
- package/components/required-indicator/required-indicator.constant.d.ts +3 -0
- package/components/required-indicator/required-indicator.constant.d.ts.map +1 -0
- package/components/required-indicator/required-indicator.constant.js +5 -0
- package/components/required-indicator/{required-indicator.interface.ts → required-indicator.interface.d.ts} +3 -3
- package/components/required-indicator/required-indicator.interface.d.ts.map +1 -0
- package/components/required-indicator/required-indicator.interface.js +1 -0
- package/components/searchbar/index.d.ts +3 -0
- package/components/searchbar/index.d.ts.map +1 -0
- package/components/searchbar/index.js +1 -0
- package/components/searchbar/searchbar.constants.d.ts +11 -0
- package/components/searchbar/searchbar.constants.d.ts.map +1 -0
- package/components/searchbar/searchbar.constants.js +15 -0
- package/components/segmented-control/index.d.ts +3 -0
- package/components/segmented-control/index.d.ts.map +1 -0
- package/components/segmented-control/index.js +1 -0
- package/components/segmented-control/segmented-control-utils.d.ts +8 -0
- package/components/segmented-control/segmented-control-utils.d.ts.map +1 -0
- package/components/segmented-control/segmented-control-utils.js +53 -0
- package/components/select/index.d.ts +3 -0
- package/components/select/index.d.ts.map +1 -0
- package/components/select/index.js +1 -0
- package/components/select/select.constants.d.ts +4 -0
- package/components/select/select.constants.d.ts.map +1 -0
- package/components/side-nav/index.d.ts +6 -0
- package/components/side-nav/index.d.ts.map +1 -0
- package/components/side-nav/index.js +2 -0
- package/components/side-nav/nav-item/nav-item.utils.d.ts +2 -0
- package/components/side-nav/nav-item/nav-item.utils.d.ts.map +1 -0
- package/components/side-nav/nav-item/{nav-item.utils.ts → nav-item.utils.js} +5 -6
- package/components/side-nav/side-nav.constants.d.ts +6 -0
- package/components/side-nav/side-nav.constants.d.ts.map +1 -0
- package/components/side-nav/side-nav.constants.js +10 -0
- package/components/split-button/index.d.ts +3 -0
- package/components/split-button/index.d.ts.map +1 -0
- package/components/split-button/index.js +1 -0
- package/components/split-button/split-button.constants.d.ts +4 -0
- package/components/split-button/split-button.constants.d.ts.map +1 -0
- package/components/split-button/split-button.constants.js +10 -0
- package/components/split-button/split-button.interface.d.ts +0 -3
- package/components/switch/index.d.ts +3 -0
- package/components/switch/index.d.ts.map +1 -0
- package/components/switch/index.js +1 -0
- package/components/switch/switch.constants.d.ts +3 -0
- package/components/switch/switch.constants.d.ts.map +1 -0
- package/components/switch/switch.interface.d.ts +0 -1
- package/components/tab/index.d.ts +3 -0
- package/components/tab/index.d.ts.map +1 -0
- package/components/tab/index.js +1 -0
- package/components/tab/tab.interface.d.ts +1 -3
- package/components/tab/tab.utils.d.ts +2 -0
- package/components/tab/tab.utils.d.ts.map +1 -0
- package/components/tab/tab.utils.js +54 -0
- package/components/tag/index.d.ts +2 -0
- package/components/tag/index.d.ts.map +1 -0
- package/components/tag/index.js +1 -0
- package/components/text-input/index.d.ts +2 -0
- package/components/text-input/index.d.ts.map +1 -0
- package/components/text-input/index.js +1 -0
- package/components/textarea/index.d.ts +3 -0
- package/components/textarea/index.d.ts.map +1 -0
- package/components/textarea/index.js +1 -0
- package/components/textarea/textarea.constants.d.ts +2 -0
- package/components/textarea/textarea.constants.d.ts.map +1 -0
- package/components/toast/index.d.ts +4 -0
- package/components/toast/index.d.ts.map +1 -0
- package/components/toast/index.js +2 -0
- package/components/toast/toast.constants.d.ts +6 -0
- package/components/toast/toast.constants.d.ts.map +1 -0
- package/components/toast/{toast.constants.ts → toast.constants.js} +3 -4
- package/components/toast/toast.utils.d.ts +5 -0
- package/components/toast/toast.utils.d.ts.map +1 -0
- package/components/toast/toast.utils.js +31 -0
- package/components/tooltip/index.d.ts +4 -0
- package/components/tooltip/index.d.ts.map +1 -0
- package/components/tooltip/index.js +2 -0
- package/components/tooltip/tooltip.constants.d.ts +5 -0
- package/components/tooltip/tooltip.constants.d.ts.map +1 -0
- package/components/tooltip/tooltip.utils.d.ts +2 -0
- package/components/tooltip/tooltip.utils.d.ts.map +1 -0
- package/components/tooltip/tooltip.utils.js +4 -0
- package/components/utils/auto-placement.d.ts +9 -0
- package/components/utils/auto-placement.d.ts.map +1 -0
- package/components/utils/auto-placement.js +167 -0
- package/components/utils/index.d.ts +2 -0
- package/components/utils/index.d.ts.map +1 -0
- package/components/utils/index.js +1 -0
- package/constants/dom/dom.constants.d.ts +4 -0
- package/constants/dom/dom.constants.d.ts.map +1 -0
- package/constants/dom/dom.constants.js +13 -0
- package/constants/dom/index.d.ts +2 -0
- package/constants/dom/index.d.ts.map +1 -0
- package/constants/dom/index.js +1 -0
- package/constants/keyboard/index.d.ts +3 -0
- package/constants/keyboard/index.d.ts.map +1 -0
- package/constants/keyboard/index.js +2 -0
- package/constants/keyboard/keyboard-test.constants.d.ts +10 -0
- package/constants/keyboard/keyboard-test.constants.d.ts.map +1 -0
- package/constants/keyboard/{keyboard-test.constants.ts → keyboard-test.constants.js} +1 -12
- package/constants/keyboard/keyboard.constants.d.ts +11 -0
- package/constants/keyboard/keyboard.constants.d.ts.map +1 -0
- package/index.d.ts +42 -0
- package/index.js +41 -0
- package/package.json +25 -16
- package/CHANGELOG.md +0 -320
- package/common/animation.ts +0 -5
- package/common/common-types.ts +0 -4
- package/components/assistive-text/assistive-text.constants.ts +0 -8
- package/components/assistive-text/assistive-text.utils.ts +0 -8
- package/components/badge/badge.utils.ts +0 -75
- package/components/badge/docs/AccessibilityTable.tsx +0 -113
- package/components/badge/docs/Badge.mdx +0 -127
- package/components/badge/docs/Behaviors.scss +0 -12
- package/components/badge/docs/Behaviors.tsx +0 -110
- package/components/badge/docs/Options.tsx +0 -90
- package/components/badge/docs/Usage.tsx +0 -30
- package/components/badge/docs/assets/doNot.svg +0 -397
- package/components/badge/stories/img/Accessibility.png +0 -0
- package/components/badge/stories/img/BadgeTypes.svg +0 -72
- package/components/badge/stories/img/Layout.svg +0 -86
- package/components/badge/stories/img/OtherComponent.svg +0 -34
- package/components/badge/stories/img/StructureComposant.svg +0 -40
- package/components/badge/stories/img/TableOfOptions.svg +0 -200
- package/components/badge/stories/img/Taille.svg +0 -79
- package/components/badge/stories/img/TextOptions.svg +0 -34
- package/components/breadcrumbs/breadcrumbs.utils.ts +0 -24
- package/components/breadcrumbs/docs/AccessibilityTable.tsx +0 -96
- package/components/breadcrumbs/docs/Behaviors.tsx +0 -129
- package/components/breadcrumbs/docs/Breadcrumbs.mdx +0 -104
- package/components/breadcrumbs/docs/Options.scss +0 -26
- package/components/breadcrumbs/docs/Options.tsx +0 -59
- package/components/breadcrumbs/docs/TabOfOptions.tsx +0 -19
- package/components/breadcrumbs/docs/Usage.scss +0 -7
- package/components/breadcrumbs/docs/Usage.tsx +0 -28
- package/components/breadcrumbs/docs/assets/doNot.svg +0 -127
- package/components/button/common/common-button.constants.ts +0 -15
- package/components/card/card.constats.ts +0 -9
- package/components/card/card.stories.shared.ts +0 -112
- package/components/chip/chip.constants.ts +0 -5
- package/components/chip/stories/img/ChipsAccessibility.png +0 -0
- package/components/chip/stories/img/ChipsInteractionsStates.svg +0 -46
- package/components/chip/stories/img/ChipsKeyboardInteractions.svg +0 -76
- package/components/chip/stories/img/ChipsLayout.svg +0 -86
- package/components/chip/stories/img/ChipsStructure.svg +0 -24
- package/components/chip/stories/img/ChipsTableOfOptions.svg +0 -146
- package/components/chip/stories/img/ChipsTaille.svg +0 -36
- package/components/chip/stories/img/ChipsTypes.svg +0 -50
- package/components/divider/stories/img/DividerAccessibility.png +0 -0
- package/components/divider/stories/img/DividerBehaviors.svg +0 -36
- package/components/divider/stories/img/DividerOrientation.svg +0 -34
- package/components/divider/stories/img/DividerStructure.png +0 -0
- package/components/divider/stories/img/DividerTableOfOptions.svg +0 -74
- package/components/divider/stories/img/DividerThickness.svg +0 -38
- package/components/dropdown/DropdownManager.ts +0 -59
- package/components/grid/grid.scss +0 -81
- package/components/grid/grid.stories.scss +0 -23
- package/components/icon/icon-utils.ts +0 -3
- package/components/icon/icon.constants.ts +0 -16
- package/components/loader/loader.constants.ts +0 -7
- package/components/loader/stories/img/LoaderAccessibility.png +0 -0
- package/components/loader/stories/img/LoaderAppearance.svg +0 -36
- package/components/loader/stories/img/LoaderBooleanOptions.svg +0 -26
- package/components/loader/stories/img/LoaderInteractions.svg +0 -36
- package/components/loader/stories/img/LoaderKeyboardInteractions.svg +0 -26
- package/components/loader/stories/img/LoaderLayout.svg +0 -56
- package/components/loader/stories/img/LoaderPosition.svg +0 -36
- package/components/loader/stories/img/LoaderSafezone.svg +0 -36
- package/components/loader/stories/img/LoaderStructure.svg +0 -21
- package/components/loader/stories/img/LoaderTableOfOptions.svg +0 -134
- package/components/loader/stories/img/LoaderTaille.svg +0 -46
- package/components/loader/stories/img/LoaderTextOptions.svg +0 -26
- package/components/required-indicator/required-indicator.constant.ts +0 -7
- package/components/searchbar/docs/AccessibilityTable.tsx +0 -119
- package/components/searchbar/docs/Behaviors.tsx +0 -130
- package/components/searchbar/docs/Options.tsx +0 -127
- package/components/searchbar/docs/Searchbar.mdx +0 -124
- package/components/searchbar/docs/Usage.tsx +0 -37
- package/components/searchbar/docs/assets/doNot.svg +0 -212
- package/components/searchbar/searchbar.constants.ts +0 -18
- package/components/segmented-control/segmented-control-utils.ts +0 -77
- package/components/segmented-control/stories/img/SegControlAccessibility.png +0 -0
- package/components/segmented-control/stories/img/SegControlAnimations.svg +0 -11
- package/components/segmented-control/stories/img/SegControlAutreHTMLNatif.svg +0 -36
- package/components/segmented-control/stories/img/SegControlBooleanOptions.svg +0 -26
- package/components/segmented-control/stories/img/SegControlContent.svg +0 -34
- package/components/segmented-control/stories/img/SegControlDoDont.svg +0 -141
- package/components/segmented-control/stories/img/SegControlFocus.svg +0 -20
- package/components/segmented-control/stories/img/SegControlIconOptions.svg +0 -42
- package/components/segmented-control/stories/img/SegControlInteractionState.svg +0 -40
- package/components/segmented-control/stories/img/SegControlKeyboardInteractions.svg +0 -56
- package/components/segmented-control/stories/img/SegControlLayout.svg +0 -36
- package/components/segmented-control/stories/img/SegControlNestedProperties.svg +0 -154
- package/components/segmented-control/stories/img/SegControlSegments.svg +0 -33
- package/components/segmented-control/stories/img/SegControlStructure.svg +0 -27
- package/components/segmented-control/stories/img/SegControlTableOfOptions.svg +0 -54
- package/components/segmented-control/stories/img/SegControlTextOptions.svg +0 -26
- package/components/select/docs/AccessibilityTable.tsx +0 -121
- package/components/select/docs/Behaviors.tsx +0 -155
- package/components/select/docs/Options.scss +0 -26
- package/components/select/docs/Options.tsx +0 -148
- package/components/select/docs/OverviewOptions.scss +0 -14
- package/components/select/docs/OverviewOptions.tsx +0 -67
- package/components/select/docs/Select.mdx +0 -132
- package/components/select/docs/Usage.scss +0 -7
- package/components/select/docs/Usage.tsx +0 -39
- package/components/select/docs/assets/doNot.svg +0 -394
- package/components/side-nav/side-nav.constants.ts +0 -16
- package/components/split-button/split-button.constants.ts +0 -13
- package/components/switch/stories/img/SwitchAccessibility.png +0 -0
- package/components/switch/stories/img/SwitchAnimations.svg +0 -20
- package/components/switch/stories/img/SwitchAppearance.svg +0 -34
- package/components/switch/stories/img/SwitchAutonomousLabel.svg +0 -27
- package/components/switch/stories/img/SwitchAutreContextuel.svg +0 -36
- package/components/switch/stories/img/SwitchBooleanOptions.svg +0 -46
- package/components/switch/stories/img/SwitchDistinctCheckbox.svg +0 -41
- package/components/switch/stories/img/SwitchFocus.svg +0 -46
- package/components/switch/stories/img/SwitchInteractionState.svg +0 -60
- package/components/switch/stories/img/SwitchKeyboardInteractions.svg +0 -46
- package/components/switch/stories/img/SwitchLayout.svg +0 -46
- package/components/switch/stories/img/SwitchStructure.svg +0 -22
- package/components/switch/stories/img/SwitchTableOfOptions.svg +0 -165
- package/components/switch/stories/img/SwitchTextOptions.svg +0 -34
- package/components/tab/tab.utils.ts +0 -60
- package/components/tag/stories/img/TagAccessibility.png +0 -0
- package/components/tag/stories/img/TagLayout.svg +0 -86
- package/components/tag/stories/img/TagStatus.svg +0 -52
- package/components/tag/stories/img/TagStructure.svg +0 -19
- package/components/tag/stories/img/TagTableOfOptions.svg +0 -178
- package/components/tag/stories/img/TagTaille.svg +0 -36
- package/components/tag/stories/img/TagTypes.svg +0 -38
- package/components/text-input/stories/img/TextInputAccessibility.png +0 -0
- package/components/text-input/stories/img/TextInputBooleanOptions.svg +0 -76
- package/components/text-input/stories/img/TextInputDoDont.svg +0 -100
- package/components/text-input/stories/img/TextInputKeyboardInteractions.svg +0 -46
- package/components/text-input/stories/img/TextInputLabelPosition.svg +0 -40
- package/components/text-input/stories/img/TextInputLayout.svg +0 -46
- package/components/text-input/stories/img/TextInputPosition.svg +0 -80
- package/components/text-input/stories/img/TextInputPrecisions.png +0 -0
- package/components/text-input/stories/img/TextInputRequiredIndicator.svg +0 -44
- package/components/text-input/stories/img/TextInputStructure.svg +0 -33
- package/components/text-input/stories/img/TextInputTableOfOptions.svg +0 -346
- package/components/text-input/stories/img/TextInputTextOptions.svg +0 -63
- package/components/textarea/stories/img/TextAreaAccessibility.png +0 -0
- package/components/textarea/stories/img/TextAreaBooleanOption.svg +0 -70
- package/components/textarea/stories/img/TextAreaDoDont.svg +0 -119
- package/components/textarea/stories/img/TextAreaKeyboardInteractions.svg +0 -46
- package/components/textarea/stories/img/TextAreaLabelPosition.svg +0 -40
- package/components/textarea/stories/img/TextAreaLayout.svg +0 -57
- package/components/textarea/stories/img/TextAreaPosition.svg +0 -80
- package/components/textarea/stories/img/TextAreaPrecisions.png +0 -0
- package/components/textarea/stories/img/TextAreaRequiredIndicator.svg +0 -44
- package/components/textarea/stories/img/TextAreaStructure.svg +0 -39
- package/components/textarea/stories/img/TextAreaTableOfOptions.svg +0 -286
- package/components/textarea/stories/img/TextAreaTextOptions.svg +0 -69
- package/components/toast/toast.utils.ts +0 -33
- package/components/tooltip/tooltip.utils.ts +0 -5
- package/components/utils/auto-placement.ts +0 -220
- package/constants/dom/dom.constants.ts +0 -13
- package/css-font-generator.ts +0 -51
- package/eslint.config.js +0 -1
- package/scripts/design-tokens/common.ts +0 -35
- package/scripts/design-tokens/generator.ts +0 -24
- package/scripts/design-tokens/primitives-generator.spec.ts +0 -84
- package/scripts/design-tokens/primitives-generator.ts +0 -66
- package/scripts/design-tokens/sourceFiles/primitives.json +0 -2075
- package/scripts/design-tokens/sourceFiles/tokens.json +0 -10561
- package/scripts/design-tokens/tokens-generator.spec.ts +0 -184
- package/scripts/design-tokens/tokens-generator.ts +0 -155
- package/scripts/design-tokens/tokens-generators/colors.ts +0 -142
- package/scripts/design-tokens/tokens-generators/layout.ts +0 -22
- package/scripts/design-tokens/tokens-generators/opacity.ts +0 -14
- package/scripts/design-tokens/tokens-generators/shadows.ts +0 -18
- package/scripts/design-tokens/tokens-generators/typography.ts +0 -58
- package/scripts/design-tokens/tokens-generators/zIndex.ts +0 -18
- package/tsconfig.json +0 -12
- /package/components/breadcrumbs/{breadcrumbs.constants.ts → breadcrumbs.constants.js} +0 -0
- /package/components/dropdown/{dropdown.constants.ts → dropdown.constants.js} +0 -0
- /package/components/popover/{popover.constants.ts → popover.constants.js} +0 -0
- /package/components/radio-button/{radio-button.constants.ts → radio-button.constants.js} +0 -0
- /package/components/select/{select.constants.ts → select.constants.js} +0 -0
- /package/components/switch/{switch.constants.ts → switch.constants.js} +0 -0
- /package/components/textarea/{textarea.constants.ts → textarea.constants.js} +0 -0
- /package/components/tooltip/{tooltip.constants.ts → tooltip.constants.js} +0 -0
- /package/constants/keyboard/{keyboard.constants.ts → keyboard.constants.js} +0 -0
package/CHANGELOG.md
DELETED
|
@@ -1,320 +0,0 @@
|
|
|
1
|
-
# @design-system-rte/core
|
|
2
|
-
|
|
3
|
-
## 1.2.1
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- 1f8e40c: ## Changes
|
|
8
|
-
- (Core) add valid alias path for badge utils import
|
|
9
|
-
|
|
10
|
-
## 1.2.0
|
|
11
|
-
|
|
12
|
-
### Minor Changes
|
|
13
|
-
|
|
14
|
-
- 8c512ea: ## Changes
|
|
15
|
-
- (Select) add new documentation
|
|
16
|
-
- (Assistive-text) add width props
|
|
17
|
-
- (Select) improve style
|
|
18
|
-
- (Assistive-text) add angular component
|
|
19
|
-
- (Select) harmonise readonly and disable behavior + add stories scenario
|
|
20
|
-
- (Select) Add angular component
|
|
21
|
-
- extract common input props
|
|
22
|
-
- (Dropdown) add selected state to simple dropdown item
|
|
23
|
-
- extract required indicator in a component
|
|
24
|
-
|
|
25
|
-
- 921ffd7: ## Changes
|
|
26
|
-
- (Design-tokens) update script to generate tokens with the new architecture
|
|
27
|
-
- (Core) extract scripts out of design-tokens folder
|
|
28
|
-
- (Core) change global architecture for design tokens
|
|
29
|
-
|
|
30
|
-
- f5946ce: ## Changes
|
|
31
|
-
- (Breadcrumbs) Add Badge
|
|
32
|
-
- add angular missing dependencies
|
|
33
|
-
- (Badge) add utils function to check if it should display badge
|
|
34
|
-
- (Core) add badge holder interface to use
|
|
35
|
-
- (Dropdown) add Badge
|
|
36
|
-
|
|
37
|
-
- 0dbb025: ## Changes
|
|
38
|
-
- (Split-button) Add badge
|
|
39
|
-
- (Core) use parameter object for shouldDisplayBadge utils
|
|
40
|
-
- (Segmented Control) add badge
|
|
41
|
-
- (Breadcrumbs) Add Badge
|
|
42
|
-
- add angular missing dependencies
|
|
43
|
-
- (Badge) add utils function to check if it should display badge
|
|
44
|
-
- (Core) add badge holder interface to use
|
|
45
|
-
- (Dropdown) add Badge
|
|
46
|
-
|
|
47
|
-
- c6867f7: ## Changes
|
|
48
|
-
- (Segmented Control) add badge
|
|
49
|
-
- add angular missing dependencies
|
|
50
|
-
- (Badge) add utils function to check if it should display badge
|
|
51
|
-
- (Core) add badge holder interface to use
|
|
52
|
-
- (Dropdown) add Badge
|
|
53
|
-
|
|
54
|
-
- 251ae74: ## Changes
|
|
55
|
-
- (Split-button) Add badge
|
|
56
|
-
- (Badge) add utils function to check if it should display badge
|
|
57
|
-
- (Core) add badge holder interface to use
|
|
58
|
-
- (Dropdown) add Badge
|
|
59
|
-
|
|
60
|
-
- 38d9ec6: ## Changes
|
|
61
|
-
- (Badge) use IconSize constant and add xs value
|
|
62
|
-
|
|
63
|
-
- 2cff3de: ## Changes
|
|
64
|
-
- (Searchbar) add new documentation
|
|
65
|
-
- (Searchbar) change component structure so input inner border reacts correctly to focus & assistive text takes all the width of its container
|
|
66
|
-
- (Text Input) correct placeholder exposition and handling
|
|
67
|
-
- (Searchbar) add searchbar base functionality
|
|
68
|
-
|
|
69
|
-
- 29e0462: ## Changes
|
|
70
|
-
- (Design Docs) correct sub-storybook context detection
|
|
71
|
-
- (Angular Storybook) correct font resolutions from assets retrieved from core during webpack build
|
|
72
|
-
- (Storybook) add breadcrumbs - overview page
|
|
73
|
-
|
|
74
|
-
## 1.1.0
|
|
75
|
-
|
|
76
|
-
### Minor Changes
|
|
77
|
-
|
|
78
|
-
- aa4024c: ## Changes
|
|
79
|
-
- (Core) add Nunito font to serve to react and angular package
|
|
80
|
-
|
|
81
|
-
- ddb8b02: ## Changes
|
|
82
|
-
- (Core) add elevation mixins
|
|
83
|
-
|
|
84
|
-
## 1.0.0
|
|
85
|
-
|
|
86
|
-
### Major Changes
|
|
87
|
-
|
|
88
|
-
- adc4eb6: ## Changes
|
|
89
|
-
- (Public Release) Public Release
|
|
90
|
-
|
|
91
|
-
### Minor Changes
|
|
92
|
-
|
|
93
|
-
- 90fd2b4: ## Changes
|
|
94
|
-
- (Toast) extract getToastPriority logic to core + use computed to display actionButton + add custom icon to input
|
|
95
|
-
- (Toast) add angular component
|
|
96
|
-
- (Toast) add spacing from viewport + handle warning case in priority + add leftIcon and action button display boolean
|
|
97
|
-
- (Toast) add priority queue management
|
|
98
|
-
- (Toast) add basic react component
|
|
99
|
-
|
|
100
|
-
- 1b87a18: ## Changes
|
|
101
|
-
- (Button) set correct position to badge
|
|
102
|
-
- (Button) add badge
|
|
103
|
-
|
|
104
|
-
- f3d1179: ## Changes
|
|
105
|
-
- (Banner) remove show icon props + remove top and left radius corner
|
|
106
|
-
- (Banner) update design
|
|
107
|
-
|
|
108
|
-
## 0.21.0
|
|
109
|
-
|
|
110
|
-
### Minor Changes
|
|
111
|
-
|
|
112
|
-
- f22d3ee: ## Changes
|
|
113
|
-
- (Docs) create subcomponent for pages
|
|
114
|
-
|
|
115
|
-
- 8bca3e1: ## Changes
|
|
116
|
-
- (Card) mutualize testing common logic
|
|
117
|
-
- (Card) add card component
|
|
118
|
-
|
|
119
|
-
- 4a444d4: ## Changes
|
|
120
|
-
- (Side Navigation) add Divider support for navItems & navMenus
|
|
121
|
-
- (Side Navigation) add Badge support
|
|
122
|
-
- (Side Navigation) add footer items
|
|
123
|
-
- (Side Navigation) add NavItem selection for SideNav
|
|
124
|
-
- (Tooltip) add customizable gap
|
|
125
|
-
- (Side Navigation) correct accesibility standards for ul and li items
|
|
126
|
-
- (Side Navigation) add Nested Menus to SideNav
|
|
127
|
-
- (Side Navigation) implement simple side nav from base side nav
|
|
128
|
-
|
|
129
|
-
## 0.20.0
|
|
130
|
-
|
|
131
|
-
### Minor Changes
|
|
132
|
-
|
|
133
|
-
- a7d75ed: ## Changes
|
|
134
|
-
- (Modal) add support for filled / outlined appearance for title icon
|
|
135
|
-
- (Modal) add react modal component
|
|
136
|
-
- (Icon) add icon sizes constants
|
|
137
|
-
|
|
138
|
-
- cc64a7f: ## Changes
|
|
139
|
-
- (Icon-button) add badge to component
|
|
140
|
-
|
|
141
|
-
## 0.19.0
|
|
142
|
-
|
|
143
|
-
### Minor Changes
|
|
144
|
-
|
|
145
|
-
- f246255: ## Changes
|
|
146
|
-
- (Breadcrumbs) enable breadcrumbItem max width with ellipsis
|
|
147
|
-
|
|
148
|
-
- bb5af23: ## Changes
|
|
149
|
-
- (Divider) add brand appearance
|
|
150
|
-
|
|
151
|
-
- 196aaab: ## Changes
|
|
152
|
-
- (Split Button) enhance keyboard navigation
|
|
153
|
-
- (Split Button) add dropdown to right button
|
|
154
|
-
|
|
155
|
-
- 97d3bea: ## Changes
|
|
156
|
-
- (Link) add reverse variant
|
|
157
|
-
|
|
158
|
-
## 0.18.0
|
|
159
|
-
|
|
160
|
-
### Minor Changes
|
|
161
|
-
|
|
162
|
-
- 9e7b2cd: ## Changes
|
|
163
|
-
- (Dropdown) correct dropdown keyboard navigation
|
|
164
|
-
- (Breadcrumbs) integrate dropdown with breadcrumbs
|
|
165
|
-
|
|
166
|
-
## 0.17.0
|
|
167
|
-
|
|
168
|
-
### Minor Changes
|
|
169
|
-
|
|
170
|
-
- a901693: ## Changes
|
|
171
|
-
- (Banner) use click output instead of input actionCallback
|
|
172
|
-
- (Tokens) add zIndex tokens
|
|
173
|
-
|
|
174
|
-
- 00ec1aa: ## Changes
|
|
175
|
-
- (Tab) extract scroll methods in utils
|
|
176
|
-
- (Tab) add inverted case
|
|
177
|
-
- (Tab) handle wrapped behavior
|
|
178
|
-
- (Tab) add disabled state for tab items
|
|
179
|
-
- (Tab) add angular component
|
|
180
|
-
- (Tab) extract common props to core
|
|
181
|
-
|
|
182
|
-
- 0cb0e68: ## Changes
|
|
183
|
-
- (Popover) add popover
|
|
184
|
-
|
|
185
|
-
### Patch Changes
|
|
186
|
-
|
|
187
|
-
- a3838c6: ## Changes
|
|
188
|
-
- (Dropdown) correct angular integration between tab & dropdown
|
|
189
|
-
|
|
190
|
-
## 0.16.0
|
|
191
|
-
|
|
192
|
-
### Minor Changes
|
|
193
|
-
|
|
194
|
-
- 5e685f0: ## Changes
|
|
195
|
-
- (Loader) add loader component for react and angular
|
|
196
|
-
|
|
197
|
-
- 191f1e9: ## Changes
|
|
198
|
-
- (Segmented-control) added documentation for storybook
|
|
199
|
-
- (Loader) add Loader component stories and documentation
|
|
200
|
-
- (Textarea) add Storybook documentation and examples for Textarea component
|
|
201
|
-
- add TextInput component documentation and stories with accessibility guidelines and various interaction states
|
|
202
|
-
- (Switch) add Switch component stories and documentation
|
|
203
|
-
- (Divider) add Divider component stories and documentation
|
|
204
|
-
- (Chip) update story titles and add Chip documentation with images
|
|
205
|
-
- (Tag) add Tag documentation and stories
|
|
206
|
-
|
|
207
|
-
- 21cab4b: ## Changes
|
|
208
|
-
- (Breadcrumbs) add Breadcrumbs
|
|
209
|
-
- (Breadcrumbs) set initial breacrumbs structure for React and Core
|
|
210
|
-
|
|
211
|
-
## 0.15.0
|
|
212
|
-
|
|
213
|
-
### Minor Changes
|
|
214
|
-
|
|
215
|
-
- 4dead3f: ## Changes
|
|
216
|
-
- (Segmented Control) automatically toggle icon appearance on segment selection state
|
|
217
|
-
- (Segmented Control) extract focus handling logic into utils file
|
|
218
|
-
- (Segmented Control) add angular component
|
|
219
|
-
- add storybook interactions tests
|
|
220
|
-
- (Segmented Control) extract props types and constants to core
|
|
221
|
-
- (Segmented Control) add react component
|
|
222
|
-
|
|
223
|
-
- f2f7349: ## Changes
|
|
224
|
-
- (Switch) added switch component to Core with types and interface
|
|
225
|
-
|
|
226
|
-
- 7d41c21: ## Changes
|
|
227
|
-
- (Divider) implement Divider component types with orientation, thickness, appearance, and endPoint
|
|
228
|
-
|
|
229
|
-
- cbd90b0: ## Changes
|
|
230
|
-
- (Storybook-badge) add Badge component documentation
|
|
231
|
-
|
|
232
|
-
## 0.14.0
|
|
233
|
-
|
|
234
|
-
### Minor Changes
|
|
235
|
-
|
|
236
|
-
- db7edfd: ## Changes
|
|
237
|
-
- add border-divider token color
|
|
238
|
-
|
|
239
|
-
## 0.13.0
|
|
240
|
-
|
|
241
|
-
### Minor Changes
|
|
242
|
-
|
|
243
|
-
- 89289e7: ## Changes
|
|
244
|
-
- (textarea) simplify required and optional appearence
|
|
245
|
-
- (textarea) set better props handling + handle resizing logic on angular comp
|
|
246
|
-
- (textarea) add auto scroll to top on blur event
|
|
247
|
-
- add angular textarea component
|
|
248
|
-
- extract constants in core
|
|
249
|
-
- add react textarea component
|
|
250
|
-
|
|
251
|
-
- f6bb90d: ## Changes
|
|
252
|
-
- update Tag component to use computed properties for icon name and validation
|
|
253
|
-
- correct casing of compactSpacing property in Tag component and stories
|
|
254
|
-
- improve formatting and consistency in Tag component and interface
|
|
255
|
-
- add Tag component with status and decorative types, including styles and stories
|
|
256
|
-
|
|
257
|
-
## 0.12.0
|
|
258
|
-
|
|
259
|
-
### Minor Changes
|
|
260
|
-
|
|
261
|
-
- b824254: ## Changes
|
|
262
|
-
- enhance Badge component with improved class bindings and styling options
|
|
263
|
-
- implement Badge component in Angular
|
|
264
|
-
- add Badge interface
|
|
265
|
-
|
|
266
|
-
## 0.11.0
|
|
267
|
-
|
|
268
|
-
### Minor Changes
|
|
269
|
-
|
|
270
|
-
- ae703ee: ## Changes
|
|
271
|
-
- add keyboard test constants file
|
|
272
|
-
- add type to aria role mapping constant
|
|
273
|
-
- add keyboard event handling for backspace and delete keys
|
|
274
|
-
- add id property to text input component to get better accessibility
|
|
275
|
-
- update keyboard event handling in stories to use correct syntax
|
|
276
|
-
- extract chip props in interface
|
|
277
|
-
|
|
278
|
-
## 0.10.1
|
|
279
|
-
|
|
280
|
-
### Patch Changes
|
|
281
|
-
|
|
282
|
-
- 9fcc804: ## Changes
|
|
283
|
-
- add correct behaviour on click
|
|
284
|
-
|
|
285
|
-
## 0.10.0
|
|
286
|
-
|
|
287
|
-
### Minor Changes
|
|
288
|
-
|
|
289
|
-
- 0c0177e: ## Changes
|
|
290
|
-
- simplify aria attributes handling for TextInput
|
|
291
|
-
- correct right-icon default behavior & positioning in InputText
|
|
292
|
-
- correct content-success color
|
|
293
|
-
- correct display & behavior of rightIcon & assistiveText for TextInput
|
|
294
|
-
- add stories cases for TextInput
|
|
295
|
-
- add textInput behavior for left & right Icons and error handling
|
|
296
|
-
- add error and disabled props to TextInput component and update stories
|
|
297
|
-
- enhance TextInput component with new props and styles for better usability
|
|
298
|
-
- format TextInputProps for improved readability
|
|
299
|
-
- add TextInput types and prepared file for component
|
|
300
|
-
|
|
301
|
-
## 0.9.0
|
|
302
|
-
|
|
303
|
-
### Minor Changes
|
|
304
|
-
|
|
305
|
-
- f51dfca: ## Changes
|
|
306
|
-
- add cancel icon
|
|
307
|
-
|
|
308
|
-
## 0.8.0
|
|
309
|
-
|
|
310
|
-
### Minor Changes
|
|
311
|
-
|
|
312
|
-
- 7d6d633: ## Changes
|
|
313
|
-
- add gradient mixins
|
|
314
|
-
- add global themes variable to themes file
|
|
315
|
-
|
|
316
|
-
## 0.7.0
|
|
317
|
-
|
|
318
|
-
### Minor Changes
|
|
319
|
-
|
|
320
|
-
- 60c9c03: Update dependency from @design-system-rte/core
|
package/common/animation.ts
DELETED
package/common/common-types.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AssistiveTextIconAppearances } from "./assistive-text.interface";
|
|
2
|
-
|
|
3
|
-
export const ASSISTIVE_TEXT_ICON_SIZE = 12;
|
|
4
|
-
|
|
5
|
-
export const ICON_APPEARANCE_NAME_CONFIGURATION: Record<AssistiveTextIconAppearances, string> = {
|
|
6
|
-
error: "error",
|
|
7
|
-
success: "check-circle",
|
|
8
|
-
};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { IconSize } from "@design-system-rte/core/components/icon/icon.constants";
|
|
2
|
-
|
|
3
|
-
import { BadgeContent, BadgeSize } from "./badge.interface";
|
|
4
|
-
|
|
5
|
-
const COUNT_THRESHOLD = 100;
|
|
6
|
-
const COUNT_THRESHOLD_LABEL = "99+";
|
|
7
|
-
|
|
8
|
-
interface ShowIconProps {
|
|
9
|
-
size: BadgeSize;
|
|
10
|
-
content: BadgeContent;
|
|
11
|
-
iconSize?: number;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
interface ShowTextProps {
|
|
15
|
-
size: BadgeSize;
|
|
16
|
-
content: BadgeContent;
|
|
17
|
-
count?: number;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface BadgeConfig {
|
|
21
|
-
showBadge: boolean;
|
|
22
|
-
badgeContent?: BadgeContent;
|
|
23
|
-
badgeCount?: number;
|
|
24
|
-
badgeIcon?: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
type ShowBadgeProps = ShowIconProps & ShowTextProps;
|
|
28
|
-
|
|
29
|
-
const badgeIconSize: Record<BadgeSize, number | null> = {
|
|
30
|
-
xs: null,
|
|
31
|
-
s: null,
|
|
32
|
-
m: IconSize["xs"],
|
|
33
|
-
l: IconSize["s"],
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export function getBadgeIconSize(size: BadgeSize): number | undefined {
|
|
37
|
-
return badgeIconSize[size] ?? undefined;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export function getShowIcon({ size, content, iconSize }: ShowIconProps): boolean {
|
|
41
|
-
return !["xs", "s"].includes(size) && content === "icon" && !!iconSize;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export function getShowText({ size, content, count }: ShowTextProps): boolean {
|
|
45
|
-
return !["xs", "s"].includes(size) && content === "number" && typeof count === "number" && count > 0;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export function getShowBadge({ size, content, count, iconSize }: ShowBadgeProps): boolean {
|
|
49
|
-
switch (content) {
|
|
50
|
-
case "icon":
|
|
51
|
-
return getShowIcon({ size, content, iconSize });
|
|
52
|
-
case "number":
|
|
53
|
-
return getShowText({ size, content, count });
|
|
54
|
-
default:
|
|
55
|
-
return true;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function getDisplayCount(count?: number): string {
|
|
60
|
-
if (typeof count !== "number") {
|
|
61
|
-
return "";
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
return count < COUNT_THRESHOLD ? count.toString() : COUNT_THRESHOLD_LABEL;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function shouldDisplayBadge(badgeConfig: BadgeConfig): boolean {
|
|
68
|
-
const { showBadge, badgeContent, badgeCount, badgeIcon } = badgeConfig;
|
|
69
|
-
return (
|
|
70
|
-
showBadge &&
|
|
71
|
-
(badgeContent === "empty" ||
|
|
72
|
-
(typeof badgeCount === "number" && badgeCount > 0 && badgeContent === "number") ||
|
|
73
|
-
(badgeContent === "icon" && badgeIcon !== undefined))
|
|
74
|
-
);
|
|
75
|
-
}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import AccessibilityTable from "../../../../design-docs/src/components/ComponentDocs/Overview/AccessibilityTable/AccessibilityTable";
|
|
2
|
-
import type { AccessibilityCategory } from "../../../../design-docs/src/components/ComponentDocs/Overview/AccessibilityTable/AccessibilityTable";
|
|
3
|
-
|
|
4
|
-
const badgeAccessibilityData: AccessibilityCategory[] = [
|
|
5
|
-
{
|
|
6
|
-
category: "Navigation clavier 🖥️",
|
|
7
|
-
criteria: [
|
|
8
|
-
{
|
|
9
|
-
criterion: "Focus sur le parent uniquement",
|
|
10
|
-
expectedResult: "Le Badge n'est pas focusable ; seul l'élément parent (ex. bouton, icône) reçoit le focus.",
|
|
11
|
-
testMethod: "Test clavier",
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
criterion: "Aucun comportement clavier spécifique",
|
|
15
|
-
expectedResult: "Le badge ne modifie pas la navigation au clavier ni l'ordre de tabulation.",
|
|
16
|
-
testMethod: "Test clavier",
|
|
17
|
-
},
|
|
18
|
-
],
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
category: "Focus visible 👀",
|
|
22
|
-
criteria: [
|
|
23
|
-
{
|
|
24
|
-
criterion: "Absence d'état de focus",
|
|
25
|
-
expectedResult: "Le badge ne présente pas d'état de focus propre, même lorsque son parent est focusé.",
|
|
26
|
-
testMethod: "Inspection visuelle",
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
criterion: "Stabilité visuelle",
|
|
30
|
-
expectedResult: "Le badge reste stable lors du focus ou du hover du parent (pas de changement de style).",
|
|
31
|
-
testMethod: "Inspection visuelle",
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
category: "Lecture par un lecteur d'écran 🔊",
|
|
37
|
-
criteria: [
|
|
38
|
-
{
|
|
39
|
-
criterion: "Association au parent",
|
|
40
|
-
expectedResult:
|
|
41
|
-
'Si le badge contient une valeur utile (ex. nombre), celle-ci est annoncée avec le libellé du parent. Ex: "Bouton Messagerie, 4 notifications"',
|
|
42
|
-
testMethod: "NVDA / VoiceOver",
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
criterion: "Ignoré si décoratif",
|
|
46
|
-
expectedResult: 'Si le badge est purement indicatif (ex. point visuel), il est ignoré via aria-hidden="true".',
|
|
47
|
-
testMethod: "NVDA / VoiceOver",
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
category: "Contraste des couleurs 🎨",
|
|
53
|
-
criteria: [
|
|
54
|
-
{
|
|
55
|
-
criterion: "Lisibilité du contenu",
|
|
56
|
-
expectedResult: "Le texte, chiffre ou symbole du badge respecte un ratio de contraste ≥ 4.5:1 avec le fond.",
|
|
57
|
-
testMethod: "Outils (axe, Stark)",
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
criterion: "Cohérence thème clair/sombre",
|
|
61
|
-
expectedResult: "Le badge reste lisible dans les modes light/dark et sur différents fonds.",
|
|
62
|
-
testMethod: "Inspection visuelle",
|
|
63
|
-
},
|
|
64
|
-
],
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
category: "Taille et espace tactile 📱",
|
|
68
|
-
criteria: [
|
|
69
|
-
{
|
|
70
|
-
criterion: "Non obstruction",
|
|
71
|
-
expectedResult: "Le badge n'interfère pas avec la zone tactile de l'élément parent.",
|
|
72
|
-
testMethod: "Test tactile",
|
|
73
|
-
},
|
|
74
|
-
],
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
category: "Alternatives textuelles 📝",
|
|
78
|
-
criteria: [
|
|
79
|
-
{
|
|
80
|
-
criterion: "Transmission de l'information utile",
|
|
81
|
-
expectedResult:
|
|
82
|
-
'Si le badge porte une donnée utile, celle-ci est restituée via le libellé parent (ex. aria-label="Messagerie, 4 messages non lus").',
|
|
83
|
-
testMethod: "Inspecteur a11y",
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
criterion: "Pas de rôle ARIA superflu",
|
|
87
|
-
expectedResult: "Le badge ne possède pas de rôle propre sauf si son contenu est essentiel au sens.",
|
|
88
|
-
testMethod: "Inspecteur a11y",
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
category: "État et feedback visuel 🔄",
|
|
94
|
-
criteria: [
|
|
95
|
-
{
|
|
96
|
-
criterion: "Apparition / disparition perceptible",
|
|
97
|
-
expectedResult: "Une animation douce (fade-in/out, scale) est autorisée pour l'apparition ou la mise à jour",
|
|
98
|
-
testMethod: "Inspection visuelle",
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
criterion: "Animation discrète",
|
|
102
|
-
expectedResult: "Une animation douce (fade-in/out, scale) est autorisée pour l'apparition ou la mise à jour",
|
|
103
|
-
testMethod: "Test fonctionnel",
|
|
104
|
-
},
|
|
105
|
-
],
|
|
106
|
-
},
|
|
107
|
-
];
|
|
108
|
-
|
|
109
|
-
const BadgeAccessibilityTable = () => {
|
|
110
|
-
return <AccessibilityTable data={badgeAccessibilityData} />;
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
export default BadgeAccessibilityTable;
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { Meta } from "@storybook/blocks";
|
|
2
|
-
|
|
3
|
-
import ComponentDocs from "../../../../design-docs/src/components/ComponentDocs/ComponentDocs";
|
|
4
|
-
import DocsSection from "../../../../design-docs/src/components/DocsSection/DocsSection";
|
|
5
|
-
import Accordion from "../../../../design-docs/src/components/Accordion/Accordion";
|
|
6
|
-
import Gerkin from "../../../../design-docs/src/components/Guideline/Gerkin/Gerkin";
|
|
7
|
-
import Paragraph from "../../../../design-docs/src/components/Paragraph/Paragraph";
|
|
8
|
-
import Usage from "./Usage";
|
|
9
|
-
import Options from "./Options";
|
|
10
|
-
import Behaviors from "./Behaviors";
|
|
11
|
-
import AccessibilityTable from "./AccessibilityTable";
|
|
12
|
-
|
|
13
|
-
<Meta title="Composants/Badge" />
|
|
14
|
-
|
|
15
|
-
<ComponentDocs
|
|
16
|
-
title="Badge"
|
|
17
|
-
description={
|
|
18
|
-
<Paragraph>
|
|
19
|
-
Le Badge est un élément visuel compact qui permet d'afficher <b>une valeur numérique, symbolique ou indicative.</b> Il sert notamment à signaler un nombre de messages, de notifications, d'éléments à lire, ou encore une simple présence d'activité.
|
|
20
|
-
<br/>
|
|
21
|
-
Le Badge est <b>souvent positionné en superposition</b> sur une icône, un bouton ou une miniature.
|
|
22
|
-
</Paragraph>
|
|
23
|
-
}
|
|
24
|
-
linkFigma="https://www.figma.com/design/Oe33roVZDpZNXWlEn25Z7x/02.0-Storybook?node-id=691-30146&p=f&m=dev"
|
|
25
|
-
linkGithub={{
|
|
26
|
-
react: "https://github.com/rte-france/design-system-rte/tree/main/packages/react/src/components/badge",
|
|
27
|
-
angular: "https://github.com/rte-france/design-system-rte/tree/main/packages/angular/projects/ds-rte-lib/src/lib/components/badge"
|
|
28
|
-
}}
|
|
29
|
-
disponibility={{
|
|
30
|
-
design: {
|
|
31
|
-
figma: true,
|
|
32
|
-
guidelines: true,
|
|
33
|
-
},
|
|
34
|
-
code: {
|
|
35
|
-
react: true,
|
|
36
|
-
angular: true,
|
|
37
|
-
},
|
|
38
|
-
}}
|
|
39
|
-
changelog={[
|
|
40
|
-
{
|
|
41
|
-
version: "1.0.0",
|
|
42
|
-
date: "04 Décembre 2025",
|
|
43
|
-
changes: ["Livraison du composant"],
|
|
44
|
-
},
|
|
45
|
-
]}
|
|
46
|
-
options={[
|
|
47
|
-
{
|
|
48
|
-
property: "badgeType",
|
|
49
|
-
value: "brand / neutral / indicator",
|
|
50
|
-
defaultValue: "brand",
|
|
51
|
-
dependance: "-",
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
property: "size",
|
|
55
|
-
value: "XS / S / M / L",
|
|
56
|
-
defaultValue: "S",
|
|
57
|
-
dependance: "-",
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
property: "showContent",
|
|
61
|
-
value: "True / False",
|
|
62
|
-
defaultValue: "True",
|
|
63
|
-
dependance: "-",
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
property: "content",
|
|
67
|
-
value: "number / icon",
|
|
68
|
-
defaultValue: "number",
|
|
69
|
-
dependance: "size ≠ XS or S",
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
property: "count",
|
|
73
|
-
value: "number",
|
|
74
|
-
defaultValue: "42",
|
|
75
|
-
dependance: "size ≠ XS or S",
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
property: "icon",
|
|
79
|
-
value: "any of existing icon",
|
|
80
|
-
defaultValue: "settings icon",
|
|
81
|
-
dependance: "badge content appearance = icon",
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
property: "mode",
|
|
85
|
-
value: "bleu-iceberg_light / bleu-iceberg_dark / violet_light / violet_dark / vert-foret_light / vert-foret_dark",
|
|
86
|
-
defaultValue: "bleu-iceberg_light",
|
|
87
|
-
dependance: "-",
|
|
88
|
-
},
|
|
89
|
-
]}
|
|
90
|
-
guidelines={
|
|
91
|
-
<>
|
|
92
|
-
<DocsSection>
|
|
93
|
-
<p>
|
|
94
|
-
<i>Composant générique pouvant être utilisé par toutes les équipes de la DSIT.</i>
|
|
95
|
-
</p>
|
|
96
|
-
<Gerkin>
|
|
97
|
-
<ul>
|
|
98
|
-
<li>
|
|
99
|
-
En tant qu'utilisateur <b>d'une interface</b>,
|
|
100
|
-
</li>
|
|
101
|
-
<li>
|
|
102
|
-
Je souhaite <b>visualiser une quantité ou une notification associée à un élément</b>,
|
|
103
|
-
</li>
|
|
104
|
-
<li>
|
|
105
|
-
Afin d'<b>être informé de l'activité ou du statut sans avoir à interagir</b>.
|
|
106
|
-
</li>
|
|
107
|
-
</ul>
|
|
108
|
-
</Gerkin>
|
|
109
|
-
</DocsSection>
|
|
110
|
-
<DocsSection>
|
|
111
|
-
<Usage />
|
|
112
|
-
</DocsSection>
|
|
113
|
-
<DocsSection>
|
|
114
|
-
<Options />
|
|
115
|
-
</DocsSection>
|
|
116
|
-
<DocsSection>
|
|
117
|
-
<Behaviors />
|
|
118
|
-
</DocsSection>
|
|
119
|
-
</>
|
|
120
|
-
}
|
|
121
|
-
accessibility={
|
|
122
|
-
<Accordion title="Accessibility Testing Status">
|
|
123
|
-
<AccessibilityTable />
|
|
124
|
-
</Accordion>
|
|
125
|
-
}
|
|
126
|
-
/>
|
|
127
|
-
|