@axa-fr/design-system-slash-react 0.2.0-beta.278
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion/Client/Accordion.d.ts +8 -0
- package/dist/Accordion/Client/Accordion.js +7 -0
- package/dist/Accordion/Client/Accordion.stories.d.ts +8 -0
- package/dist/Accordion/Client/Accordion.stories.js +24 -0
- package/dist/Accordion/Client/AccordionItem.d.ts +6 -0
- package/dist/Accordion/Client/AccordionItem.js +10 -0
- package/dist/Action/Action.d.ts +8 -0
- package/dist/Action/Action.js +7 -0
- package/dist/Action/Action.stories.d.ts +6 -0
- package/dist/Action/Action.stories.js +30 -0
- package/dist/Alert/Alert.agent.d.ts +16 -0
- package/dist/Alert/Alert.agent.js +15 -0
- package/dist/Alert/Alert.agent.stories.d.ts +9 -0
- package/dist/Alert/Alert.agent.stories.js +54 -0
- package/dist/Alert/Alert.client.d.ts +11 -0
- package/dist/Alert/Alert.client.js +24 -0
- package/dist/Alert/Alert.client.stories.d.ts +5 -0
- package/dist/Alert/Alert.client.stories.js +25 -0
- package/dist/Badge/Badge.d.ts +8 -0
- package/dist/Badge/Badge.js +9 -0
- package/dist/Badge/Badge.stories.d.ts +7 -0
- package/dist/Badge/Badge.stories.js +69 -0
- package/dist/Button/Button.agent.d.ts +7 -0
- package/dist/Button/Button.agent.js +10 -0
- package/dist/Button/Button.agent.stories.d.ts +18 -0
- package/dist/Button/Button.agent.stories.js +97 -0
- package/dist/Button/Button.client.d.ts +17 -0
- package/dist/Button/Button.client.js +15 -0
- package/dist/Button/Button.client.stories.d.ts +22 -0
- package/dist/Button/Button.client.stories.js +99 -0
- package/dist/Card/Card.client.d.ts +6 -0
- package/dist/Card/Card.client.js +9 -0
- package/dist/Card/Card.client.stories.d.ts +6 -0
- package/dist/Card/Card.client.stories.js +40 -0
- package/dist/Card/__tests__/Card.client.test.d.ts +1 -0
- package/dist/Card/__tests__/Card.client.test.js +27 -0
- package/dist/Card/index.d.ts +2 -0
- package/dist/Card/index.js +2 -0
- package/dist/Form/Checkbox/Agent/Checkbox.d.ts +23 -0
- package/dist/Form/Checkbox/Agent/Checkbox.js +30 -0
- package/dist/Form/Checkbox/Agent/Checkbox.stories.d.ts +18 -0
- package/dist/Form/Checkbox/Agent/Checkbox.stories.js +108 -0
- package/dist/Form/Checkbox/Agent/CheckboxInput.d.ts +6 -0
- package/dist/Form/Checkbox/Agent/CheckboxInput.js +15 -0
- package/dist/Form/Checkbox/Agent/CheckboxItem.d.ts +10 -0
- package/dist/Form/Checkbox/Agent/CheckboxItem.js +13 -0
- package/dist/Form/Checkbox/Agent/CheckboxModes.d.ts +7 -0
- package/dist/Form/Checkbox/Agent/CheckboxModes.js +8 -0
- package/dist/Form/Checkbox/Agent/index.d.ts +4 -0
- package/dist/Form/Checkbox/Agent/index.js +4 -0
- package/dist/Form/Checkbox/Client/Checkbox.d.ts +7 -0
- package/dist/Form/Checkbox/Client/Checkbox.js +15 -0
- package/dist/Form/Checkbox/Client/Checkbox.stories.d.ts +6 -0
- package/dist/Form/Checkbox/Client/Checkbox.stories.js +38 -0
- package/dist/Form/Checkbox/Client/CheckboxSelect.d.ts +15 -0
- package/dist/Form/Checkbox/Client/CheckboxSelect.js +7 -0
- package/dist/Form/Checkbox/Client/CheckboxSelect.stories.d.ts +6 -0
- package/dist/Form/Checkbox/Client/CheckboxSelect.stories.js +55 -0
- package/dist/Form/Checkbox/Client/index.d.ts +2 -0
- package/dist/Form/Checkbox/Client/index.js +2 -0
- package/dist/Form/Choice/Choice.d.ts +12 -0
- package/dist/Form/Choice/Choice.js +17 -0
- package/dist/Form/Choice/Choice.stories.d.ts +9 -0
- package/dist/Form/Choice/Choice.stories.js +27 -0
- package/dist/Form/Choice/ChoiceInput.d.ts +6 -0
- package/dist/Form/Choice/ChoiceInput.js +19 -0
- package/dist/Form/Choice/ChoiceInput.stories.d.ts +9 -0
- package/dist/Form/Choice/ChoiceInput.stories.js +33 -0
- package/dist/Form/Choice/index.d.ts +2 -0
- package/dist/Form/Choice/index.js +2 -0
- package/dist/Form/Date/Date.d.ts +9 -0
- package/dist/Form/Date/Date.js +21 -0
- package/dist/Form/Date/Date.stories.d.ts +9 -0
- package/dist/Form/Date/Date.stories.js +28 -0
- package/dist/Form/Date/DateInput.d.ts +10 -0
- package/dist/Form/Date/DateInput.js +11 -0
- package/dist/Form/Date/DateInput.stories.d.ts +9 -0
- package/dist/Form/Date/DateInput.stories.js +54 -0
- package/dist/Form/Date/index.d.ts +2 -0
- package/dist/Form/Date/index.js +2 -0
- package/dist/Form/FileUpload/Client/FIleUpload.stories.d.ts +6 -0
- package/dist/Form/FileUpload/Client/FIleUpload.stories.js +54 -0
- package/dist/Form/FileUpload/Client/FileUpload.d.ts +32 -0
- package/dist/Form/FileUpload/Client/FileUpload.js +52 -0
- package/dist/Form/FileUpload/Client/index.d.ts +1 -0
- package/dist/Form/FileUpload/Client/index.js +1 -0
- package/dist/Form/InputError/InputError.d.ts +6 -0
- package/dist/Form/InputError/InputError.js +5 -0
- package/dist/Form/InputError/InputError.stories.d.ts +5 -0
- package/dist/Form/InputError/InputError.stories.js +12 -0
- package/dist/Form/InputError/index.d.ts +1 -0
- package/dist/Form/InputError/index.js +1 -0
- package/dist/Form/MultiSelect/MultiSelect.d.ts +20 -0
- package/dist/Form/MultiSelect/MultiSelect.js +54 -0
- package/dist/Form/MultiSelect/MultiSelect.stories.d.ts +10 -0
- package/dist/Form/MultiSelect/MultiSelect.stories.js +89 -0
- package/dist/Form/MultiSelect/MultiSelectInput.d.ts +9 -0
- package/dist/Form/MultiSelect/MultiSelectInput.js +12 -0
- package/dist/Form/MultiSelect/__tests__/MultiSelect.spec.d.ts +10 -0
- package/dist/Form/MultiSelect/__tests__/MultiSelect.spec.js +15 -0
- package/dist/Form/MultiSelect/__tests__/MultiSelectInput.spec.d.ts +1 -0
- package/dist/Form/MultiSelect/__tests__/MultiSelectInput.spec.js +9 -0
- package/dist/Form/MultiSelect/index.d.ts +2 -0
- package/dist/Form/MultiSelect/index.js +2 -0
- package/dist/Form/Number/Number.d.ts +7 -0
- package/dist/Form/Number/Number.js +12 -0
- package/dist/Form/Number/Number.stories.d.ts +9 -0
- package/dist/Form/Number/Number.stories.js +31 -0
- package/dist/Form/Number/NumberInput.d.ts +12 -0
- package/dist/Form/Number/NumberInput.js +13 -0
- package/dist/Form/Number/NumberInput.stories.d.ts +9 -0
- package/dist/Form/Number/NumberInput.stories.js +39 -0
- package/dist/Form/Number/index.d.ts +2 -0
- package/dist/Form/Number/index.js +2 -0
- package/dist/Form/Pass/Pass.d.ts +9 -0
- package/dist/Form/Pass/Pass.js +10 -0
- package/dist/Form/Pass/Pass.stories.d.ts +5 -0
- package/dist/Form/Pass/Pass.stories.js +32 -0
- package/dist/Form/Pass/PassInput.d.ts +10 -0
- package/dist/Form/Pass/PassInput.js +34 -0
- package/dist/Form/Pass/PassInput.stories.d.ts +5 -0
- package/dist/Form/Pass/PassInput.stories.js +59 -0
- package/dist/Form/Radio/Agent/Radio.d.ts +14 -0
- package/dist/Form/Radio/Agent/Radio.js +25 -0
- package/dist/Form/Radio/Agent/Radio.stories.d.ts +9 -0
- package/dist/Form/Radio/Agent/Radio.stories.js +44 -0
- package/dist/Form/Radio/Agent/RadioInput.d.ts +47 -0
- package/dist/Form/Radio/Agent/RadioInput.js +12 -0
- package/dist/Form/Radio/Agent/RadioInput.stories.d.ts +9 -0
- package/dist/Form/Radio/Agent/RadioInput.stories.js +46 -0
- package/dist/Form/Radio/Agent/RadioItem.d.ts +10 -0
- package/dist/Form/Radio/Agent/RadioItem.js +13 -0
- package/dist/Form/Radio/Agent/RadioItem.stories.d.ts +9 -0
- package/dist/Form/Radio/Agent/RadioItem.stories.js +28 -0
- package/dist/Form/Radio/Agent/index.d.ts +3 -0
- package/dist/Form/Radio/Agent/index.js +3 -0
- package/dist/Form/Radio/Client/Radio.d.ts +7 -0
- package/dist/Form/Radio/Client/Radio.js +14 -0
- package/dist/Form/Radio/Client/Radio.stories.d.ts +6 -0
- package/dist/Form/Radio/Client/Radio.stories.js +38 -0
- package/dist/Form/Radio/Client/RadioSelect.d.ts +17 -0
- package/dist/Form/Radio/Client/RadioSelect.js +16 -0
- package/dist/Form/Radio/Client/RadioSelect.stories.d.ts +6 -0
- package/dist/Form/Radio/Client/RadioSelect.stories.js +52 -0
- package/dist/Form/Radio/Client/index.d.ts +2 -0
- package/dist/Form/Radio/Client/index.js +2 -0
- package/dist/Form/Select/Agent/Select.d.ts +7 -0
- package/dist/Form/Select/Agent/Select.js +10 -0
- package/dist/Form/Select/Agent/Select.stories.d.ts +8 -0
- package/dist/Form/Select/Agent/Select.stories.js +35 -0
- package/dist/Form/Select/Agent/SelectBase.d.ts +8 -0
- package/dist/Form/Select/Agent/SelectBase.js +10 -0
- package/dist/Form/Select/Agent/SelectDefault.d.ts +8 -0
- package/dist/Form/Select/Agent/SelectDefault.js +19 -0
- package/dist/Form/Select/Agent/SelectInput.d.ts +8 -0
- package/dist/Form/Select/Agent/SelectInput.js +12 -0
- package/dist/Form/Select/Agent/SelectInput.stories.d.ts +9 -0
- package/dist/Form/Select/Agent/SelectInput.stories.js +82 -0
- package/dist/Form/Select/Agent/index.d.ts +3 -0
- package/dist/Form/Select/Agent/index.js +3 -0
- package/dist/Form/Select/Client/CustomOption.d.ts +4 -0
- package/dist/Form/Select/Client/CustomOption.js +8 -0
- package/dist/Form/Select/Client/DropdownIndicator.d.ts +4 -0
- package/dist/Form/Select/Client/DropdownIndicator.js +11 -0
- package/dist/Form/Select/Client/Select.d.ts +23 -0
- package/dist/Form/Select/Client/Select.js +27 -0
- package/dist/Form/Select/Client/Select.stories.d.ts +10 -0
- package/dist/Form/Select/Client/Select.stories.js +31 -0
- package/dist/Form/Select/Client/index.d.ts +1 -0
- package/dist/Form/Select/Client/index.js +1 -0
- package/dist/Form/Slider/Slider.agent.d.ts +24 -0
- package/dist/Form/Slider/Slider.agent.js +33 -0
- package/dist/Form/Slider/Slider.agent.stories.d.ts +10 -0
- package/dist/Form/Slider/Slider.agent.stories.js +39 -0
- package/dist/Form/Slider/SliderInput.agent.d.ts +8 -0
- package/dist/Form/Slider/SliderInput.agent.js +10 -0
- package/dist/Form/Slider/SliderInput.agent.stories.d.ts +10 -0
- package/dist/Form/Slider/SliderInput.agent.stories.js +45 -0
- package/dist/Form/Slider/index.d.ts +3 -0
- package/dist/Form/Slider/index.js +3 -0
- package/dist/Form/Text/Agent/Text.d.ts +7 -0
- package/dist/Form/Text/Agent/Text.js +10 -0
- package/dist/Form/Text/Agent/Text.stories.d.ts +9 -0
- package/dist/Form/Text/Agent/Text.stories.js +36 -0
- package/dist/Form/Text/Agent/TextInput.d.ts +11 -0
- package/dist/Form/Text/Agent/TextInput.js +15 -0
- package/dist/Form/Text/Agent/TextInput.stories.d.ts +9 -0
- package/dist/Form/Text/Agent/TextInput.stories.js +127 -0
- package/dist/Form/Text/Agent/index.d.ts +2 -0
- package/dist/Form/Text/Agent/index.js +2 -0
- package/dist/Form/Text/Agent/inputTypes.d.ts +2 -0
- package/dist/Form/Text/Agent/inputTypes.js +5 -0
- package/dist/Form/Text/Client/Text.d.ts +12 -0
- package/dist/Form/Text/Client/Text.js +12 -0
- package/dist/Form/Text/Client/Text.stories.d.ts +8 -0
- package/dist/Form/Text/Client/Text.stories.js +46 -0
- package/dist/Form/Text/Client/index.d.ts +1 -0
- package/dist/Form/Text/Client/index.js +1 -0
- package/dist/Form/Textarea/Textarea.d.ts +5 -0
- package/dist/Form/Textarea/Textarea.js +12 -0
- package/dist/Form/Textarea/Textarea.stories.d.ts +9 -0
- package/dist/Form/Textarea/Textarea.stories.js +31 -0
- package/dist/Form/Textarea/TextareaInput.d.ts +11 -0
- package/dist/Form/Textarea/TextareaInput.js +16 -0
- package/dist/Form/Textarea/TextareaInput.stories.d.ts +6 -0
- package/dist/Form/Textarea/TextareaInput.stories.js +35 -0
- package/dist/Form/Textarea/index.d.ts +2 -0
- package/dist/Form/Textarea/index.js +2 -0
- package/dist/Form/core/Field.d.ts +16 -0
- package/dist/Form/core/Field.js +12 -0
- package/dist/Form/core/FieldError.d.ts +7 -0
- package/dist/Form/core/FieldError.js +8 -0
- package/dist/Form/core/FieldForm.d.ts +59 -0
- package/dist/Form/core/FieldForm.js +151 -0
- package/dist/Form/core/FieldInput.d.ts +9 -0
- package/dist/Form/core/FieldInput.js +9 -0
- package/dist/Form/core/FormClassManager.d.ts +7 -0
- package/dist/Form/core/FormClassManager.js +33 -0
- package/dist/Form/core/HelpMessage.d.ts +7 -0
- package/dist/Form/core/HelpMessage.js +2 -0
- package/dist/Form/core/InputList.d.ts +8 -0
- package/dist/Form/core/InputList.js +4 -0
- package/dist/Form/core/MessageTypes.d.ts +5 -0
- package/dist/Form/core/MessageTypes.js +6 -0
- package/dist/Form/core/getComponentClassName.d.ts +1 -0
- package/dist/Form/core/getComponentClassName.js +27 -0
- package/dist/Form/core/getFirstId.d.ts +2 -0
- package/dist/Form/core/getFirstId.js +1 -0
- package/dist/Form/core/getOptionClassName.d.ts +1 -0
- package/dist/Form/core/getOptionClassName.js +10 -0
- package/dist/Form/core/index.d.ts +31 -0
- package/dist/Form/core/index.js +13 -0
- package/dist/Form/core/useInputClassModifier.d.ts +4 -0
- package/dist/Form/core/useInputClassModifier.js +12 -0
- package/dist/Form/core/useOptionsWithId.d.ts +2 -0
- package/dist/Form/core/useOptionsWithId.js +13 -0
- package/dist/IconBg/IconBg.client.d.ts +9 -0
- package/dist/IconBg/IconBg.client.js +13 -0
- package/dist/IconBg/IconBg.client.stories.d.ts +5 -0
- package/dist/IconBg/IconBg.client.stories.js +23 -0
- package/dist/IconBg/__tests__/IconBg.client.test.d.ts +1 -0
- package/dist/IconBg/__tests__/IconBg.client.test.js +22 -0
- package/dist/IconBg/index.d.ts +2 -0
- package/dist/IconBg/index.js +2 -0
- package/dist/Layout/Footer/Agent/Footer.d.ts +12 -0
- package/dist/Layout/Footer/Agent/Footer.js +6 -0
- package/dist/Layout/Footer/Agent/Footer.stories.d.ts +10 -0
- package/dist/Layout/Footer/Agent/Footer.stories.js +18 -0
- package/dist/Layout/Footer/Agent/index.d.ts +1 -0
- package/dist/Layout/Footer/Agent/index.js +1 -0
- package/dist/Layout/Footer/Client/DynamicIcons.d.ts +4 -0
- package/dist/Layout/Footer/Client/DynamicIcons.js +20 -0
- package/dist/Layout/Footer/Client/Footer.d.ts +14 -0
- package/dist/Layout/Footer/Client/Footer.js +16 -0
- package/dist/Layout/Footer/Client/Footer.stories.d.ts +14 -0
- package/dist/Layout/Footer/Client/Footer.stories.js +48 -0
- package/dist/Layout/Footer/Client/MenuIcons.d.ts +9 -0
- package/dist/Layout/Footer/Client/MenuIcons.js +8 -0
- package/dist/Layout/Footer/Client/MenuLink.d.ts +11 -0
- package/dist/Layout/Footer/Client/MenuLink.js +11 -0
- package/dist/Layout/Header/Agent/Header.agent.d.ts +9 -0
- package/dist/Layout/Header/Agent/Header.agent.js +9 -0
- package/dist/Layout/Header/Agent/Header.agent.stories.d.ts +6 -0
- package/dist/Layout/Header/Agent/Header.agent.stories.js +26 -0
- package/dist/Layout/Header/Agent/Infos/Infos.d.ts +14 -0
- package/dist/Layout/Header/Agent/Infos/Infos.js +10 -0
- package/dist/Layout/Header/Agent/Infos/Infos.stories.d.ts +5 -0
- package/dist/Layout/Header/Agent/Infos/Infos.stories.js +15 -0
- package/dist/Layout/Header/Agent/MenuTitleWrapper/MenuTitleWrapper.d.ts +8 -0
- package/dist/Layout/Header/Agent/MenuTitleWrapper/MenuTitleWrapper.js +14 -0
- package/dist/Layout/Header/Agent/MenuTitleWrapper/MenuTitleWrapper.stories.d.ts +6 -0
- package/dist/Layout/Header/Agent/MenuTitleWrapper/MenuTitleWrapper.stories.js +25 -0
- package/dist/Layout/Header/Agent/Name/Name.d.ts +16 -0
- package/dist/Layout/Header/Agent/Name/Name.js +10 -0
- package/dist/Layout/Header/Agent/Name/Name.stories.d.ts +5 -0
- package/dist/Layout/Header/Agent/Name/Name.stories.js +18 -0
- package/dist/Layout/Header/Agent/NavBar/NavBar.d.ts +12 -0
- package/dist/Layout/Header/Agent/NavBar/NavBar.helpers.d.ts +1 -0
- package/dist/Layout/Header/Agent/NavBar/NavBar.helpers.js +12 -0
- package/dist/Layout/Header/Agent/NavBar/NavBar.js +34 -0
- package/dist/Layout/Header/Agent/NavBar/NavBar.stories.d.ts +9 -0
- package/dist/Layout/Header/Agent/NavBar/NavBar.stories.js +32 -0
- package/dist/Layout/Header/Agent/NavBar/NavBarBase.d.ts +20 -0
- package/dist/Layout/Header/Agent/NavBar/NavBarBase.js +15 -0
- package/dist/Layout/Header/Agent/NavBar/NavBarItem/NavBarItem.d.ts +8 -0
- package/dist/Layout/Header/Agent/NavBar/NavBarItem/NavBarItem.js +54 -0
- package/dist/Layout/Header/Agent/NavBar/NavBarItem/NavBarItem.stories.d.ts +11 -0
- package/dist/Layout/Header/Agent/NavBar/NavBarItem/NavBarItem.stories.js +43 -0
- package/dist/Layout/Header/Agent/NavBar/NavBarItem/NavBarItemBase.d.ts +10 -0
- package/dist/Layout/Header/Agent/NavBar/NavBarItem/NavBarItemBase.helpers.d.ts +1 -0
- package/dist/Layout/Header/Agent/NavBar/NavBarItem/NavBarItemBase.helpers.js +11 -0
- package/dist/Layout/Header/Agent/NavBar/NavBarItem/NavBarItemBase.js +16 -0
- package/dist/Layout/Header/Agent/NavBar/NavBarItem/NavBarItemLink.d.ts +8 -0
- package/dist/Layout/Header/Agent/NavBar/NavBarItem/NavBarItemLink.js +4 -0
- package/dist/Layout/Header/Agent/NavBar/NavBarItem/index.d.ts +3 -0
- package/dist/Layout/Header/Agent/NavBar/NavBarItem/index.js +3 -0
- package/dist/Layout/Header/Agent/NavBar/index.d.ts +4 -0
- package/dist/Layout/Header/Agent/NavBar/index.js +4 -0
- package/dist/Layout/Header/Agent/TitleHeader/TitleHeader.d.ts +13 -0
- package/dist/Layout/Header/Agent/TitleHeader/TitleHeader.helpers.d.ts +1 -0
- package/dist/Layout/Header/Agent/TitleHeader/TitleHeader.helpers.js +8 -0
- package/dist/Layout/Header/Agent/TitleHeader/TitleHeader.js +12 -0
- package/dist/Layout/Header/Agent/TitleHeader/TitleHeader.stories.d.ts +7 -0
- package/dist/Layout/Header/Agent/TitleHeader/TitleHeader.stories.js +45 -0
- package/dist/Layout/Header/Agent/ToggleButton/ToggleButton.d.ts +7 -0
- package/dist/Layout/Header/Agent/ToggleButton/ToggleButton.js +8 -0
- package/dist/Layout/Header/Agent/ToggleButton/ToggleButton.stories.d.ts +6 -0
- package/dist/Layout/Header/Agent/ToggleButton/ToggleButton.stories.js +19 -0
- package/dist/Layout/Header/Agent/User/InnerUser.d.ts +5 -0
- package/dist/Layout/Header/Agent/User/InnerUser.js +3 -0
- package/dist/Layout/Header/Agent/User/User.d.ts +18 -0
- package/dist/Layout/Header/Agent/User/User.js +10 -0
- package/dist/Layout/Header/Agent/User/User.stories.d.ts +6 -0
- package/dist/Layout/Header/Agent/User/User.stories.js +23 -0
- package/dist/Layout/Header/Agent/index.d.ts +7 -0
- package/dist/Layout/Header/Agent/index.js +7 -0
- package/dist/Layout/Header/Client/Header.client.d.ts +10 -0
- package/dist/Layout/Header/Client/Header.client.js +11 -0
- package/dist/Layout/Header/Client/Header.client.stories.d.ts +9 -0
- package/dist/Layout/Header/Client/Header.client.stories.js +57 -0
- package/dist/Layout/Header/Client/NavBar/NavBar.d.ts +8 -0
- package/dist/Layout/Header/Client/NavBar/NavBar.js +13 -0
- package/dist/Layout/Header/Client/NavBar/NavBar.stories.d.ts +8 -0
- package/dist/Layout/Header/Client/NavBar/NavBar.stories.js +22 -0
- package/dist/Layout/Header/Client/NavBar/index.d.ts +1 -0
- package/dist/Layout/Header/Client/NavBar/index.js +1 -0
- package/dist/Layout/Header/Client/PreviousLink/PreviousLink.d.ts +7 -0
- package/dist/Layout/Header/Client/PreviousLink/PreviousLink.js +13 -0
- package/dist/Layout/Header/Client/PreviousLink/PreviousLink.stories.d.ts +8 -0
- package/dist/Layout/Header/Client/PreviousLink/PreviousLink.stories.js +16 -0
- package/dist/Layout/Header/Client/PreviousLink/index.d.ts +1 -0
- package/dist/Layout/Header/Client/PreviousLink/index.js +1 -0
- package/dist/Layout/Header/Client/index.d.ts +1 -0
- package/dist/Layout/Header/Client/index.js +1 -0
- package/dist/Link/Link.client.d.ts +7 -0
- package/dist/Link/Link.client.js +11 -0
- package/dist/Link/Link.client.stories.d.ts +5 -0
- package/dist/Link/Link.client.stories.js +14 -0
- package/dist/List/ClickList/ClickList.client.d.ts +11 -0
- package/dist/List/ClickList/ClickList.client.js +6 -0
- package/dist/List/ClickList/ClickList.client.stories.d.ts +6 -0
- package/dist/List/ClickList/ClickList.client.stories.js +60 -0
- package/dist/List/ClickList/__tests__/ClickList.client.test.d.ts +1 -0
- package/dist/List/ClickList/__tests__/ClickList.client.test.js +18 -0
- package/dist/List/ClickList/index.d.ts +1 -0
- package/dist/List/ClickList/index.js +1 -0
- package/dist/List/ContentTabList/ContentTabItem/ContentTabItem.client.d.ts +6 -0
- package/dist/List/ContentTabList/ContentTabItem/ContentTabItem.client.js +6 -0
- package/dist/List/ContentTabList/ContentTabItem/__tests__/ContentTabItem.client.test.d.ts +1 -0
- package/dist/List/ContentTabList/ContentTabItem/__tests__/ContentTabItem.client.test.js +100 -0
- package/dist/List/ContentTabList/ContentTabItem/index.d.ts +2 -0
- package/dist/List/ContentTabList/ContentTabItem/index.js +1 -0
- package/dist/List/ContentTabList/ContentTabList.client.d.ts +8 -0
- package/dist/List/ContentTabList/ContentTabList.client.js +10 -0
- package/dist/List/ContentTabList/ContentTabList.client.stories.d.ts +7 -0
- package/dist/List/ContentTabList/ContentTabList.client.stories.js +78 -0
- package/dist/List/ContentTabList/__tests__/ContentTabList.client.test.d.ts +1 -0
- package/dist/List/ContentTabList/__tests__/ContentTabList.client.test.js +57 -0
- package/dist/List/ContentTabList/index.d.ts +1 -0
- package/dist/List/ContentTabList/index.js +1 -0
- package/dist/List/List.d.ts +6 -0
- package/dist/List/List.js +9 -0
- package/dist/List/List.stories.d.ts +5 -0
- package/dist/List/List.stories.js +52 -0
- package/dist/List/__tests__/List.test.d.ts +1 -0
- package/dist/List/__tests__/List.test.js +30 -0
- package/dist/List/index.d.ts +1 -0
- package/dist/List/index.js +1 -0
- package/dist/Loader/Client/Loader.d.ts +11 -0
- package/dist/Loader/Client/Loader.js +10 -0
- package/dist/Loader/Client/Loader.stories.d.ts +6 -0
- package/dist/Loader/Client/Loader.stories.js +15 -0
- package/dist/Loader/Client/index.d.ts +1 -0
- package/dist/Loader/Client/index.js +1 -0
- package/dist/ModalAgent/BooleanModal.d.ts +15 -0
- package/dist/ModalAgent/BooleanModal.js +11 -0
- package/dist/ModalAgent/Modal.d.ts +11 -0
- package/dist/ModalAgent/Modal.js +9 -0
- package/dist/ModalAgent/Modal.stories.d.ts +31 -0
- package/dist/ModalAgent/Modal.stories.js +84 -0
- package/dist/ModalAgent/components/Body.d.ts +5 -0
- package/dist/ModalAgent/components/Body.js +7 -0
- package/dist/ModalAgent/components/Footer.d.ts +5 -0
- package/dist/ModalAgent/components/Footer.js +7 -0
- package/dist/ModalAgent/components/Header.d.ts +10 -0
- package/dist/ModalAgent/components/Header.js +7 -0
- package/dist/ModalAgent/components/HeaderBase.d.ts +5 -0
- package/dist/ModalAgent/components/HeaderBase.js +7 -0
- package/dist/ModalAgent/index.d.ts +7 -0
- package/dist/ModalAgent/index.js +7 -0
- package/dist/ModalClient/Modal.client.d.ts +22 -0
- package/dist/ModalClient/Modal.client.js +39 -0
- package/dist/ModalClient/Modal.client.stories.d.ts +20 -0
- package/dist/ModalClient/Modal.client.stories.js +33 -0
- package/dist/Pagination/Pagination.client.d.ts +9 -0
- package/dist/Pagination/Pagination.client.js +15 -0
- package/dist/Pagination/Pagination.client.stories.d.ts +11 -0
- package/dist/Pagination/Pagination.client.stories.js +19 -0
- package/dist/Pagination/PaginationDesktop.client.d.ts +9 -0
- package/dist/Pagination/PaginationDesktop.client.js +31 -0
- package/dist/Pagination/PaginationMobile.client.d.ts +9 -0
- package/dist/Pagination/PaginationMobile.client.js +10 -0
- package/dist/Stepper/Stepper.client.d.ts +12 -0
- package/dist/Stepper/Stepper.client.js +22 -0
- package/dist/Stepper/Stepper.client.stories.d.ts +16 -0
- package/dist/Stepper/Stepper.client.stories.js +23 -0
- package/dist/Steps/Step.d.ts +8 -0
- package/dist/Steps/Step.js +15 -0
- package/dist/Steps/StepBase.d.ts +10 -0
- package/dist/Steps/StepBase.js +7 -0
- package/dist/Steps/StepCurrent.d.ts +5 -0
- package/dist/Steps/StepCurrent.js +4 -0
- package/dist/Steps/StepDisabled.d.ts +5 -0
- package/dist/Steps/StepDisabled.js +4 -0
- package/dist/Steps/StepLink.d.ts +10 -0
- package/dist/Steps/StepLink.js +7 -0
- package/dist/Steps/StepNoLink.d.ts +7 -0
- package/dist/Steps/StepNoLink.js +4 -0
- package/dist/Steps/Steps.d.ts +8 -0
- package/dist/Steps/Steps.js +8 -0
- package/dist/Steps/Steps.stories.d.ts +11 -0
- package/dist/Steps/Steps.stories.js +31 -0
- package/dist/Steps/__tests__/Step.spec.d.ts +1 -0
- package/dist/Steps/__tests__/Step.spec.js +9 -0
- package/dist/Steps/index.d.ts +4 -0
- package/dist/Steps/index.js +4 -0
- package/dist/Svg/Svg.agent.stories.d.ts +7 -0
- package/dist/Svg/Svg.agent.stories.js +38 -0
- package/dist/Svg/Svg.client.stories.d.ts +7 -0
- package/dist/Svg/Svg.client.stories.js +38 -0
- package/dist/Svg/Svg.d.ts +7 -0
- package/dist/Svg/Svg.js +47 -0
- package/dist/Svg/__tests__/Svg.test.d.ts +1 -0
- package/dist/Svg/__tests__/Svg.test.js +38 -0
- package/dist/Svg/index.d.ts +1 -0
- package/dist/Svg/index.js +1 -0
- package/dist/Svg/svgInjector.d.ts +12 -0
- package/dist/Svg/svgInjector.js +28 -0
- package/dist/Table/Pagination/Items.d.ts +14 -0
- package/dist/Table/Pagination/Items.js +13 -0
- package/dist/Table/Pagination/Li.d.ts +10 -0
- package/dist/Table/Pagination/Li.js +17 -0
- package/dist/Table/Pagination/LiPoint.d.ts +7 -0
- package/dist/Table/Pagination/LiPoint.js +8 -0
- package/dist/Table/Pagination/Pager.d.ts +15 -0
- package/dist/Table/Pagination/Pager.js +16 -0
- package/dist/Table/Pagination/PaginationButton.d.ts +12 -0
- package/dist/Table/Pagination/PaginationButton.js +14 -0
- package/dist/Table/Pagination/Paging.d.ts +14 -0
- package/dist/Table/Pagination/Paging.js +21 -0
- package/dist/Table/TBody.d.ts +6 -0
- package/dist/Table/TBody.js +7 -0
- package/dist/Table/THead.d.ts +6 -0
- package/dist/Table/THead.js +7 -0
- package/dist/Table/Table.d.ts +30 -0
- package/dist/Table/Table.js +20 -0
- package/dist/Table/Table.stories.d.ts +7 -0
- package/dist/Table/Table.stories.js +33 -0
- package/dist/Table/Td.d.ts +6 -0
- package/dist/Table/Td.js +7 -0
- package/dist/Table/Th.d.ts +6 -0
- package/dist/Table/Th.js +7 -0
- package/dist/Table/Tr.d.ts +6 -0
- package/dist/Table/Tr.js +7 -0
- package/dist/Table/index.d.ts +7 -0
- package/dist/Table/index.js +7 -0
- package/dist/Tabs/Agent/Tabs.agent.d.ts +8 -0
- package/dist/Tabs/Agent/Tabs.agent.js +6 -0
- package/dist/Tabs/Agent/Tabs.agent.stories.d.ts +6 -0
- package/dist/Tabs/Agent/Tabs.agent.stories.js +29 -0
- package/dist/Tabs/Agent/components/Pane.d.ts +8 -0
- package/dist/Tabs/Agent/components/Pane.js +8 -0
- package/dist/Tabs/Agent/components/Tab.d.ts +10 -0
- package/dist/Tabs/Agent/components/Tab.js +4 -0
- package/dist/Tabs/Agent/components/TabsCore.d.ts +10 -0
- package/dist/Tabs/Agent/components/TabsCore.js +17 -0
- package/dist/Tabs/Agent/components/TabsStateless.d.ts +13 -0
- package/dist/Tabs/Agent/components/TabsStateless.js +10 -0
- package/dist/Tabs/Agent/components/Title.d.ts +15 -0
- package/dist/Tabs/Agent/components/Title.js +13 -0
- package/dist/Tabs/Client/Tabs.client.d.ts +16 -0
- package/dist/Tabs/Client/Tabs.client.js +48 -0
- package/dist/Tabs/Client/Tabs.client.stories.d.ts +17 -0
- package/dist/Tabs/Client/Tabs.client.stories.js +89 -0
- package/dist/Tag/Tag.client.d.ts +6 -0
- package/dist/Tag/Tag.client.js +7 -0
- package/dist/Tag/Tag.client.stories.d.ts +5 -0
- package/dist/Tag/Tag.client.stories.js +22 -0
- package/dist/Tag/__test__/Tag.client.test.d.ts +1 -0
- package/dist/Tag/__test__/Tag.client.test.js +18 -0
- package/dist/Tag/index.d.ts +2 -0
- package/dist/Tag/index.js +2 -0
- package/dist/Title/Title.agent.d.ts +9 -0
- package/dist/Title/Title.agent.js +9 -0
- package/dist/Title/Title.agent.stories.d.ts +13 -0
- package/dist/Title/Title.agent.stories.js +58 -0
- package/dist/Title/__tests__/Title.test.d.ts +1 -0
- package/dist/Title/__tests__/Title.test.js +40 -0
- package/dist/agent.d.ts +25 -0
- package/dist/agent.js +25 -0
- package/dist/assets/svg/facebook.svg +1 -0
- package/dist/assets/svg/linkedin.svg +1 -0
- package/dist/assets/svg/twitterx.svg +1 -0
- package/dist/assets/svg/youtube.svg +1 -0
- package/dist/client.d.ts +26 -0
- package/dist/client.js +24 -0
- package/dist/utilities/hooks/useIsSmallScreen.d.ts +1 -0
- package/dist/utilities/hooks/useIsSmallScreen.js +14 -0
- package/dist/utilities.d.ts +1 -0
- package/dist/utilities.js +1 -0
- package/package.json +123 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "@axa-fr/design-system-slash-css/dist/Accordion/Accordion.client.scss";
|
|
2
|
+
export declare const Accordion: {
|
|
3
|
+
({ children }: React.PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
Item: ({ title, children }: {
|
|
5
|
+
title: string;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "@axa-fr/design-system-slash-css/dist/Accordion/Accordion.client.scss";
|
|
3
|
+
import { AccordionItem } from "./AccordionItem";
|
|
4
|
+
export const Accordion = ({ children }) => {
|
|
5
|
+
return _jsx("div", { className: "af-accordion-client", children: children });
|
|
6
|
+
};
|
|
7
|
+
Accordion.Item = AccordionItem;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Accordion } from "./Accordion";
|
|
3
|
+
declare const meta: Meta<typeof Accordion>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type StoryProps = {
|
|
6
|
+
numberOfItems: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const AccordionStory: StoryObj<StoryProps>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Accordion } from "./Accordion";
|
|
3
|
+
const meta = {
|
|
4
|
+
component: Accordion,
|
|
5
|
+
title: "Client/Components/Accordion",
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: "fullscreen",
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
export const AccordionStory = {
|
|
12
|
+
name: "Accordion",
|
|
13
|
+
render: ({ numberOfItems }) => {
|
|
14
|
+
return (_jsx(Accordion, { children: Array.from({ length: numberOfItems }, (_, i) => (_jsxs(Accordion.Item, { title: `Title ${i + 1}`, children: ["Content ", i + 1] }, i))) }));
|
|
15
|
+
},
|
|
16
|
+
args: {
|
|
17
|
+
numberOfItems: 3,
|
|
18
|
+
},
|
|
19
|
+
argTypes: {
|
|
20
|
+
numberOfItems: {
|
|
21
|
+
control: { type: "range", min: 1, max: 10 },
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useId, useState } from "react";
|
|
3
|
+
export const AccordionItem = ({ title, children }) => {
|
|
4
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
5
|
+
const id = useId();
|
|
6
|
+
const onClick = () => {
|
|
7
|
+
setIsOpen(!isOpen);
|
|
8
|
+
};
|
|
9
|
+
return (_jsxs("div", { className: "af-accordion-client__item", children: [_jsx("h3", { children: _jsx("button", { type: "button", "aria-expanded": isOpen, "aria-controls": `accordion-section-${id}`, id: `accordion-title-${id}`, onClick: onClick, children: title }) }), _jsx("div", { role: "region", "aria-labelledby": `accordion-title-${id}`, id: `accordion-section-${id}`, hidden: !isOpen, children: children })] }));
|
|
10
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import "@axa-fr/design-system-slash-css/dist/Action/Action.scss";
|
|
3
|
+
type ActionCoreProps = ComponentPropsWithoutRef<"a"> & {
|
|
4
|
+
icon: string;
|
|
5
|
+
classModifier?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const Action: ({ icon, className, classModifier, ...otherProps }: ActionCoreProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { getComponentClassName } from "../Form/core";
|
|
3
|
+
import "@axa-fr/design-system-slash-css/dist/Action/Action.scss";
|
|
4
|
+
export const Action = ({ icon, className, classModifier, ...otherProps }) => {
|
|
5
|
+
const componentClassName = getComponentClassName(className, classModifier, "btn af-btn--circle");
|
|
6
|
+
return (_jsx("a", { ...otherProps, className: componentClassName, children: _jsx("i", { className: `glyphicon glyphicon-${icon}` }) }));
|
|
7
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Action } from "./Action";
|
|
3
|
+
const meta = {
|
|
4
|
+
title: "Agent/Components/Action",
|
|
5
|
+
component: Action,
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
export const Default = {
|
|
9
|
+
name: "Action Link",
|
|
10
|
+
render: ({ ...args }) => _jsx(Action, { ...args }),
|
|
11
|
+
args: {
|
|
12
|
+
href: "http://www.axa.fr",
|
|
13
|
+
icon: "link",
|
|
14
|
+
title: "Lien de test",
|
|
15
|
+
target: "_blank",
|
|
16
|
+
id: "id",
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
export const Button = {
|
|
20
|
+
name: "Action Button",
|
|
21
|
+
render: ({ onClick, ...args }) => _jsx(Action, { onClick: onClick, ...args }),
|
|
22
|
+
args: {
|
|
23
|
+
icon: "floppy-disk",
|
|
24
|
+
title: "Enregistrer",
|
|
25
|
+
id: "id",
|
|
26
|
+
},
|
|
27
|
+
argTypes: {
|
|
28
|
+
onClick: { action: "clicked" },
|
|
29
|
+
},
|
|
30
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MouseEventHandler, PropsWithChildren } from "react";
|
|
2
|
+
import "@axa-fr/design-system-slash-css/dist/Alert/Alert.agent.scss";
|
|
3
|
+
export declare enum TypeIcons {
|
|
4
|
+
error = "glyphicon glyphicon-minus-sign",
|
|
5
|
+
danger = "glyphicon glyphicon-alert",
|
|
6
|
+
info = "glyphicon glyphicon-info-sign",
|
|
7
|
+
success = "glyphicon glyphicon-ok"
|
|
8
|
+
}
|
|
9
|
+
export type AlertCoreComponentProps = {
|
|
10
|
+
title: string;
|
|
11
|
+
iconClassName?: string;
|
|
12
|
+
onClose?: MouseEventHandler<HTMLButtonElement>;
|
|
13
|
+
className?: string;
|
|
14
|
+
classModifier?: "error" | "danger" | "info" | "success";
|
|
15
|
+
};
|
|
16
|
+
export declare const Alert: ({ className, onClose, iconClassName, title, children, classModifier, }: PropsWithChildren<AlertCoreComponentProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { getComponentClassName } from "../Form/core";
|
|
3
|
+
import "@axa-fr/design-system-slash-css/dist/Alert/Alert.agent.scss";
|
|
4
|
+
export var TypeIcons;
|
|
5
|
+
(function (TypeIcons) {
|
|
6
|
+
TypeIcons["error"] = "glyphicon glyphicon-minus-sign";
|
|
7
|
+
TypeIcons["danger"] = "glyphicon glyphicon-alert";
|
|
8
|
+
TypeIcons["info"] = "glyphicon glyphicon-info-sign";
|
|
9
|
+
TypeIcons["success"] = "glyphicon glyphicon-ok";
|
|
10
|
+
})(TypeIcons || (TypeIcons = {}));
|
|
11
|
+
export const Alert = ({ className, onClose, iconClassName, title, children, classModifier, }) => {
|
|
12
|
+
const componentClassName = getComponentClassName(className, classModifier, "af-alert");
|
|
13
|
+
return (_jsxs("div", { className: componentClassName, role: "alert", children: [_jsxs("div", { className: "af-alert__title", children: [_jsx("div", { className: "af-alert__title-icon", children: _jsx("i", { className: iconClassName ||
|
|
14
|
+
TypeIcons[classModifier] }) }), _jsx("div", { className: "af-alert__title-text", children: title }), onClose && (_jsx("button", { type: "button", className: "af-alert__title-icon-close", onClick: onClose, "aria-label": "close", children: _jsx("i", { className: "glyphicon glyphicon-close" }) }))] }), children && (_jsxs("div", { className: "af-alert__content", children: [_jsx("div", { className: "af-alert__content-left" }), _jsx("div", { className: "af-alert__content-right", children: children })] }))] }));
|
|
15
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Alert } from "./Alert.agent";
|
|
3
|
+
declare const meta: Meta<typeof Alert>;
|
|
4
|
+
export default meta;
|
|
5
|
+
export declare const Default: StoryObj<typeof Alert>;
|
|
6
|
+
export declare const DangerAlert: StoryObj<typeof Alert>;
|
|
7
|
+
export declare const InfoAlert: StoryObj<typeof Alert>;
|
|
8
|
+
export declare const SuccessAlert: StoryObj<typeof Alert>;
|
|
9
|
+
export declare const ErrorAlert: StoryObj<typeof Alert>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Alert } from "./Alert.agent";
|
|
3
|
+
const MODIFIERS = ["success", "info", "danger", "error"];
|
|
4
|
+
const meta = {
|
|
5
|
+
title: "Agent/Components/Alert",
|
|
6
|
+
component: Alert,
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
export const Default = {
|
|
10
|
+
name: "Default",
|
|
11
|
+
args: {
|
|
12
|
+
classModifier: "danger",
|
|
13
|
+
title: "Attention: Ceci est une alerte",
|
|
14
|
+
},
|
|
15
|
+
argTypes: {
|
|
16
|
+
classModifier: {
|
|
17
|
+
options: MODIFIERS,
|
|
18
|
+
control: { type: "select" },
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
export const DangerAlert = {
|
|
23
|
+
name: "Danger Alert",
|
|
24
|
+
args: {
|
|
25
|
+
classModifier: "danger",
|
|
26
|
+
title: "Attention: des informations sont manquantes",
|
|
27
|
+
iconClassName: "glyphicon glyphicon-alert",
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
export const InfoAlert = {
|
|
31
|
+
name: "Info Alert",
|
|
32
|
+
args: {
|
|
33
|
+
classModifier: "info",
|
|
34
|
+
title: "Attention: des informations sont manquantes",
|
|
35
|
+
iconClassName: "glyphicon glyphicon-info-sign",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
export const SuccessAlert = {
|
|
39
|
+
name: "Success Alert",
|
|
40
|
+
args: {
|
|
41
|
+
classModifier: "success",
|
|
42
|
+
title: "Succès: votre demande a bien été enregistrée.",
|
|
43
|
+
iconClassName: "glyphicon glyphicon-ok",
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
export const ErrorAlert = {
|
|
47
|
+
name: "Error Alert",
|
|
48
|
+
args: {
|
|
49
|
+
classModifier: "error",
|
|
50
|
+
title: "Erreur dans les champs suivants :",
|
|
51
|
+
iconClassName: "glyphicon glyphicon-minus-sign",
|
|
52
|
+
children: (_jsxs("ul", { children: [_jsx("li", { children: "Le nom est obligatoire" }), _jsx("li", { children: "Le pr\u00E9nom est obligatoire" }), _jsx("li", { children: "L'email est obligatoire" }), _jsx("li", { children: "Le format de date est invalide" })] })),
|
|
53
|
+
},
|
|
54
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, PropsWithChildren, ReactElement } from "react";
|
|
2
|
+
import "@axa-fr/design-system-slash-css/dist/Alert/Alert.client.scss";
|
|
3
|
+
import { Link } from "../Link/Link.client";
|
|
4
|
+
export type AlertType = "validation" | "error" | "warning" | "information" | "neutral";
|
|
5
|
+
type AlertProps = {
|
|
6
|
+
type: AlertType;
|
|
7
|
+
title?: string;
|
|
8
|
+
link?: ReactElement<typeof Link>;
|
|
9
|
+
} & ComponentPropsWithoutRef<"div">;
|
|
10
|
+
export declare const Alert: ({ type, title, children, link, }: PropsWithChildren<AlertProps>) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import wbIncandescentOutlined from "@material-symbols/svg-400/outlined/wb_incandescent.svg";
|
|
3
|
+
import errorIcon from "@material-symbols/svg-400/outlined/emergency_home.svg";
|
|
4
|
+
import errorOutline from "@material-symbols/svg-400/outlined/error.svg";
|
|
5
|
+
import checkCircleOutline from "@material-symbols/svg-400/outlined/check_circle.svg";
|
|
6
|
+
import "@axa-fr/design-system-slash-css/dist/Alert/Alert.client.scss";
|
|
7
|
+
import { Svg } from "../Svg";
|
|
8
|
+
function getIconFromType(type) {
|
|
9
|
+
switch (type) {
|
|
10
|
+
case "error":
|
|
11
|
+
return _jsx(Svg, { src: errorIcon, className: "af-alert__icon" });
|
|
12
|
+
case "validation":
|
|
13
|
+
return _jsx(Svg, { src: checkCircleOutline, className: "af-alert__icon" });
|
|
14
|
+
case "neutral":
|
|
15
|
+
case "warning":
|
|
16
|
+
return _jsx(Svg, { src: errorOutline, className: "af-alert__icon" });
|
|
17
|
+
case "information":
|
|
18
|
+
default:
|
|
19
|
+
return _jsx(Svg, { src: wbIncandescentOutlined, className: "af-alert__icon" });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export const Alert = ({ type = "information", title, children, link, }) => {
|
|
23
|
+
return (_jsxs("div", { className: `af-alert af-alert--${type}`, children: [getIconFromType(type), _jsxs("div", { className: "af-alert-client__content", children: [title && _jsx("p", { className: "af-alert__title", children: title }), children, link && _jsx("p", { className: "af-alert__link", children: link })] })] }));
|
|
24
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Alert } from "./Alert.client";
|
|
3
|
+
import { Link } from "../Link/Link.client";
|
|
4
|
+
const MODIFIERS = ["information", "neutral", "error", "validation", "warning"];
|
|
5
|
+
const meta = {
|
|
6
|
+
title: "Client/Components/Alert",
|
|
7
|
+
component: Alert,
|
|
8
|
+
};
|
|
9
|
+
export default meta;
|
|
10
|
+
export const Default = {
|
|
11
|
+
name: "Default",
|
|
12
|
+
args: {
|
|
13
|
+
title: "My Alert title",
|
|
14
|
+
type: "information",
|
|
15
|
+
children: "Vestibulum nunc neque, sodales non luctus in, dictum vitae nisl. Curabitur vitae massa non nisl lacinia tempus. Pellentesque id nulla tortor.",
|
|
16
|
+
link: (_jsx(Link, { openInNewTab: true, href: "https://fakelink.com", children: "Plus de d\u00E9tails" })),
|
|
17
|
+
},
|
|
18
|
+
argTypes: {
|
|
19
|
+
type: {
|
|
20
|
+
options: MODIFIERS,
|
|
21
|
+
control: { type: "select" },
|
|
22
|
+
defaultValue: "information",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, PropsWithChildren } from "react";
|
|
2
|
+
import "@axa-fr/design-system-slash-css/dist/Badge/Badge.scss";
|
|
3
|
+
type BadgeProps = ComponentPropsWithRef<"span"> & {
|
|
4
|
+
classModifier?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const Badge: import("react").ForwardRefExoticComponent<Omit<PropsWithChildren<BadgeProps>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { getComponentClassName } from "../Form/core";
|
|
4
|
+
import "@axa-fr/design-system-slash-css/dist/Badge/Badge.scss";
|
|
5
|
+
export const Badge = forwardRef(({ children, className, classModifier, ...otherProps }, ref) => {
|
|
6
|
+
const componentClassName = getComponentClassName(className, classModifier, "af-badge");
|
|
7
|
+
return (_jsx("span", { ref: ref, className: componentClassName, ...otherProps, children: children }));
|
|
8
|
+
});
|
|
9
|
+
Badge.displayName = "Badge";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Badge } from "./Badge";
|
|
3
|
+
declare const meta: Meta<typeof Badge>;
|
|
4
|
+
export default meta;
|
|
5
|
+
export declare const Default: StoryObj<typeof Badge>;
|
|
6
|
+
export declare const BadgeIconStory: StoryObj<typeof Badge>;
|
|
7
|
+
export declare const MultiExamples: StoryObj<typeof Badge>;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Badge } from "./Badge";
|
|
3
|
+
const meta = {
|
|
4
|
+
title: "Agent/Components/Badge",
|
|
5
|
+
component: Badge,
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: "centered",
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
export const Default = {
|
|
12
|
+
name: "Badge",
|
|
13
|
+
args: {
|
|
14
|
+
children: "Lorem ipsum",
|
|
15
|
+
classModifier: "success",
|
|
16
|
+
disabled: false,
|
|
17
|
+
},
|
|
18
|
+
argTypes: {
|
|
19
|
+
classModifier: {
|
|
20
|
+
options: ["success", "info", "danger", "error"],
|
|
21
|
+
control: { type: "select" },
|
|
22
|
+
defaultValue: "succes",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
export const BadgeIconStory = {
|
|
27
|
+
name: "Badge With Icon",
|
|
28
|
+
args: {
|
|
29
|
+
children: _jsx("i", { className: "glyphicon glyphicon-bell" }),
|
|
30
|
+
classModifier: "error",
|
|
31
|
+
disabled: false,
|
|
32
|
+
},
|
|
33
|
+
argTypes: {
|
|
34
|
+
classModifier: {
|
|
35
|
+
options: ["success", "info", "danger", "error"],
|
|
36
|
+
control: { type: "select" },
|
|
37
|
+
defaultValue: "error",
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
export const MultiExamples = {
|
|
42
|
+
name: "Badge with modifiers",
|
|
43
|
+
render: (args) => {
|
|
44
|
+
return (_jsxs("div", { style: {
|
|
45
|
+
display: "flex",
|
|
46
|
+
justifyContent: "space-evenly",
|
|
47
|
+
flexDirection: "column",
|
|
48
|
+
alignItems: "center",
|
|
49
|
+
flexWrap: "wrap",
|
|
50
|
+
}, children: [_jsxs("div", { style: {
|
|
51
|
+
display: "flex",
|
|
52
|
+
justifyContent: "space-evenly",
|
|
53
|
+
alignItems: "center",
|
|
54
|
+
padding: "2rem",
|
|
55
|
+
flexWrap: "wrap",
|
|
56
|
+
gap: "2rem",
|
|
57
|
+
}, children: [_jsx(Badge, { disabled: args.disabled, classModifier: "success", children: "Badge Success" }), _jsx(Badge, { disabled: args.disabled, classModifier: "danger", children: "Badge Danger" }), _jsx(Badge, { disabled: args.disabled, classModifier: "info", children: "Badge Info" }), _jsx(Badge, { disabled: args.disabled, classModifier: "error", children: "Badge Error" })] }), _jsxs("div", { style: {
|
|
58
|
+
display: "flex",
|
|
59
|
+
justifyContent: "space-evenly",
|
|
60
|
+
alignItems: "center",
|
|
61
|
+
padding: "2rem",
|
|
62
|
+
flexWrap: "wrap",
|
|
63
|
+
gap: "5rem",
|
|
64
|
+
}, children: [_jsx(Badge, { disabled: args.disabled, classModifier: "success", children: _jsx("i", { className: "glyphicon glyphicon-bell" }) }), _jsx(Badge, { disabled: args.disabled, classModifier: "danger", children: _jsx("i", { className: "glyphicon glyphicon-bell" }) }), _jsx(Badge, { disabled: args.disabled, classModifier: "info", children: _jsx("i", { className: "glyphicon glyphicon-bell" }) }), _jsx(Badge, { disabled: args.disabled, classModifier: "error", children: _jsx("i", { className: "glyphicon glyphicon-bell" }) })] })] }));
|
|
65
|
+
},
|
|
66
|
+
args: {
|
|
67
|
+
disabled: false,
|
|
68
|
+
},
|
|
69
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "@axa-fr/design-system-slash-css/dist/Button/Button.agent.scss";
|
|
2
|
+
import { ComponentPropsWithoutRef, PropsWithChildren } from "react";
|
|
3
|
+
type ButtonProps = {
|
|
4
|
+
classModifier?: string;
|
|
5
|
+
} & ComponentPropsWithoutRef<"button">;
|
|
6
|
+
export declare const ButtonAgent: ({ children, classModifier, className, ...args }: PropsWithChildren<ButtonProps>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "@axa-fr/design-system-slash-css/dist/Button/Button.agent.scss";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
export const ButtonAgent = ({ children, classModifier, className, ...args }) => {
|
|
5
|
+
const classes = classModifier
|
|
6
|
+
?.split(" ")
|
|
7
|
+
.map((modifier) => `af-btn--${modifier}`)
|
|
8
|
+
.join(" ");
|
|
9
|
+
return (_jsx("button", { className: classNames("af-btn", classes, className), type: "button", ...args, children: children }));
|
|
10
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { ButtonAgent } from "./Button.agent";
|
|
3
|
+
declare const meta: Meta<typeof ButtonAgent>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type StoryProps = Omit<React.ComponentProps<typeof ButtonAgent>, "classModifier" | "children"> & {
|
|
6
|
+
children: string;
|
|
7
|
+
classModifier: string[];
|
|
8
|
+
};
|
|
9
|
+
type Story = StoryObj<StoryProps>;
|
|
10
|
+
export declare const Playground: Story;
|
|
11
|
+
export declare const MultiExamples: StoryObj<typeof ButtonAgent>;
|
|
12
|
+
export declare const Reverse: StoryObj<typeof ButtonAgent>;
|
|
13
|
+
export declare const Success: StoryObj<typeof ButtonAgent>;
|
|
14
|
+
export declare const Danger: StoryObj<typeof ButtonAgent>;
|
|
15
|
+
export declare const WithIconRight: StoryObj<typeof ButtonAgent>;
|
|
16
|
+
export declare const WithIconLeft: StoryObj<typeof ButtonAgent>;
|
|
17
|
+
export declare const Small: StoryObj<typeof ButtonAgent>;
|
|
18
|
+
export declare const Circle: StoryObj<typeof ButtonAgent>;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { ButtonAgent } from "./Button.agent";
|
|
3
|
+
const MODIFIERS = [
|
|
4
|
+
"success",
|
|
5
|
+
"info",
|
|
6
|
+
"danger",
|
|
7
|
+
"reverse",
|
|
8
|
+
"disabled",
|
|
9
|
+
"small",
|
|
10
|
+
"hasiconLeft",
|
|
11
|
+
"hasiconRight",
|
|
12
|
+
];
|
|
13
|
+
const meta = {
|
|
14
|
+
component: ButtonAgent,
|
|
15
|
+
title: "Agent/Components/Button",
|
|
16
|
+
parameters: {
|
|
17
|
+
layout: "centered",
|
|
18
|
+
},
|
|
19
|
+
argTypes: { onClick: { action: "clicked" } },
|
|
20
|
+
};
|
|
21
|
+
export default meta;
|
|
22
|
+
export const Playground = {
|
|
23
|
+
name: "Button",
|
|
24
|
+
render: ({ children: text, classModifier, onClick, ...args }) => (_jsx(ButtonAgent, { classModifier: classModifier.join(" "), onClick: onClick, ...args, children: text })),
|
|
25
|
+
args: {
|
|
26
|
+
children: "Button",
|
|
27
|
+
classModifier: [],
|
|
28
|
+
},
|
|
29
|
+
argTypes: {
|
|
30
|
+
classModifier: {
|
|
31
|
+
options: MODIFIERS,
|
|
32
|
+
control: { type: "multi-select" },
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
export const MultiExamples = {
|
|
37
|
+
name: "Button with modifiers",
|
|
38
|
+
render: () => {
|
|
39
|
+
return (_jsxs("div", { style: {
|
|
40
|
+
display: "flex",
|
|
41
|
+
justifyContent: "space-evenly",
|
|
42
|
+
padding: "2rem",
|
|
43
|
+
flexWrap: "wrap",
|
|
44
|
+
gap: "2rem",
|
|
45
|
+
}, children: [_jsx(ButtonAgent, { classModifier: "reverse", children: "Button Reverse" }), _jsx(ButtonAgent, { classModifier: "success", children: "Button Success" }), _jsx(ButtonAgent, { classModifier: "danger", children: "Button Danger" }), _jsx(ButtonAgent, { classModifier: "small", children: "Button Small" }), _jsx(ButtonAgent, { classModifier: "disabled", children: "Button disabled" })] }));
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
export const Reverse = {
|
|
49
|
+
name: "Button reverse",
|
|
50
|
+
args: {
|
|
51
|
+
children: "Button Reverse",
|
|
52
|
+
classModifier: "reverse",
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
export const Success = {
|
|
56
|
+
name: "Button success",
|
|
57
|
+
args: {
|
|
58
|
+
children: "Button success",
|
|
59
|
+
classModifier: "success",
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
export const Danger = {
|
|
63
|
+
name: "Button danger",
|
|
64
|
+
args: {
|
|
65
|
+
children: "Button Danger",
|
|
66
|
+
classModifier: "danger",
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
export const WithIconRight = {
|
|
70
|
+
name: "Button with right icon",
|
|
71
|
+
args: {
|
|
72
|
+
children: (_jsxs(_Fragment, { children: [_jsx("span", { className: "glyphicon glyphicon-arrow-right" }), _jsx("span", { className: "af-btn__text", children: "With icon" })] })),
|
|
73
|
+
classModifier: "hasiconRight",
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
export const WithIconLeft = {
|
|
77
|
+
name: "Button with left icon",
|
|
78
|
+
args: {
|
|
79
|
+
children: (_jsxs(_Fragment, { children: [_jsx("span", { className: "glyphicon glyphicon-arrow-left" }), _jsx("span", { className: "af-btn__text", children: "With icon" })] })),
|
|
80
|
+
classModifier: "hasiconLeft",
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
export const Small = {
|
|
84
|
+
name: "Button small",
|
|
85
|
+
args: {
|
|
86
|
+
children: "Button Small",
|
|
87
|
+
classModifier: "small",
|
|
88
|
+
},
|
|
89
|
+
};
|
|
90
|
+
export const Circle = {
|
|
91
|
+
name: "Button circle",
|
|
92
|
+
args: {
|
|
93
|
+
classModifier: "circle",
|
|
94
|
+
title: "Save",
|
|
95
|
+
children: _jsx("span", { className: "glyphicon glyphicon-floppy-disk" }),
|
|
96
|
+
},
|
|
97
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "@axa-fr/design-system-slash-css/dist/Button/Button.client.scss";
|
|
2
|
+
import { ComponentPropsWithoutRef, PropsWithChildren, ReactNode } from "react";
|
|
3
|
+
export declare enum Variants {
|
|
4
|
+
primary = "primary",
|
|
5
|
+
business = "primary-business",
|
|
6
|
+
secondary = "secondary",
|
|
7
|
+
secondaryError = "secondary-error",
|
|
8
|
+
tertiary = "tertiary",
|
|
9
|
+
ghost = "ghost"
|
|
10
|
+
}
|
|
11
|
+
type ButtonProps = {
|
|
12
|
+
variant?: Variants;
|
|
13
|
+
iconLeft?: ReactNode;
|
|
14
|
+
iconRight?: ReactNode;
|
|
15
|
+
} & ComponentPropsWithoutRef<"button">;
|
|
16
|
+
export declare const ButtonClient: ({ children, className, disabled, variant, iconLeft, iconRight, ...args }: PropsWithChildren<ButtonProps>) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import "@axa-fr/design-system-slash-css/dist/Button/Button.client.scss";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
export var Variants;
|
|
5
|
+
(function (Variants) {
|
|
6
|
+
Variants["primary"] = "primary";
|
|
7
|
+
Variants["business"] = "primary-business";
|
|
8
|
+
Variants["secondary"] = "secondary";
|
|
9
|
+
Variants["secondaryError"] = "secondary-error";
|
|
10
|
+
Variants["tertiary"] = "tertiary";
|
|
11
|
+
Variants["ghost"] = "ghost";
|
|
12
|
+
})(Variants || (Variants = {}));
|
|
13
|
+
export const ButtonClient = ({ children, className, disabled, variant, iconLeft, iconRight, ...args }) => {
|
|
14
|
+
return (_jsxs("button", { className: classNames("af-btn-client", variant && `af-btn-client--${variant.toString()}`, className), disabled: disabled, type: "button", ...args, children: [iconLeft, children, iconRight] }));
|
|
15
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
import { ButtonClient, Variants } from "./Button.client";
|
|
4
|
+
declare const meta: Meta<typeof ButtonClient>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type StoryProps = Omit<React.ComponentProps<typeof ButtonClient>, "children" | "variant" | "disabled" | "iconLeft" | "iconRight"> & {
|
|
7
|
+
children: string;
|
|
8
|
+
variant: Variants;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
iconLeft: ReactNode;
|
|
11
|
+
iconRight: ReactNode;
|
|
12
|
+
};
|
|
13
|
+
type Story = StoryObj<StoryProps>;
|
|
14
|
+
export declare const Playground: Story;
|
|
15
|
+
export declare const Business: StoryObj<typeof ButtonClient>;
|
|
16
|
+
export declare const Secondary: StoryObj<typeof ButtonClient>;
|
|
17
|
+
export declare const SecondaryError: StoryObj<typeof ButtonClient>;
|
|
18
|
+
export declare const Tertiary: StoryObj<typeof ButtonClient>;
|
|
19
|
+
export declare const Ghost: StoryObj<typeof ButtonClient>;
|
|
20
|
+
export declare const MultiExamples: StoryObj<typeof ButtonClient>;
|
|
21
|
+
export declare const WithIconRight: StoryObj<typeof ButtonClient>;
|
|
22
|
+
export declare const WithIconLeft: StoryObj<typeof ButtonClient>;
|