@axa-fr/design-system-slash-react 2.0.6-alpha.15 → 2.0.6-alpha.22

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.
Files changed (75) hide show
  1. package/dist/Accordion/Accordion.d.ts +1 -1
  2. package/dist/Accordion/Accordion.js +1 -1
  3. package/dist/Action/Action.d.ts +1 -1
  4. package/dist/Action/Action.js +1 -1
  5. package/dist/Button/Button.js +1 -1
  6. package/dist/Form/Checkbox/CheckboxItem.d.ts +1 -1
  7. package/dist/Form/Checkbox/CheckboxItem.js +1 -1
  8. package/dist/Form/Date/Date.d.ts +1 -1
  9. package/dist/Form/Date/Date.js +1 -1
  10. package/dist/Form/Experimental/index.d.ts +0 -0
  11. package/dist/Form/Experimental/index.js +1 -0
  12. package/dist/Form/File/FileInput.d.ts +1 -1
  13. package/dist/Form/File/FileInput.js +1 -1
  14. package/dist/Form/MultiSelect/MultiSelect.d.ts +1 -1
  15. package/dist/Form/MultiSelect/MultiSelect.js +3 -3
  16. package/dist/Form/MultiSelect/MultiSelectInput.d.ts +1 -1
  17. package/dist/Form/MultiSelect/MultiSelectInput.js +1 -1
  18. package/dist/Form/NestedQuestion/NestedQuestion.d.ts +1 -1
  19. package/dist/Form/NestedQuestion/NestedQuestion.js +1 -1
  20. package/dist/Form/Number/Number.d.ts +1 -1
  21. package/dist/Form/Number/Number.js +1 -1
  22. package/dist/Form/Number/NumberInput.d.ts +0 -3
  23. package/dist/Form/Number/NumberInput.js +0 -3
  24. package/dist/Form/Pass/Pass.d.ts +1 -1
  25. package/dist/Form/Pass/Pass.js +1 -1
  26. package/dist/Form/Radio/RadioItem.d.ts +1 -1
  27. package/dist/Form/Radio/RadioItem.js +1 -1
  28. package/dist/Form/Select/SelectBase.d.ts +1 -1
  29. package/dist/Form/Select/SelectBase.js +1 -1
  30. package/dist/Form/Slider/index.d.ts +1 -1
  31. package/dist/Form/Slider/index.js +1 -1
  32. package/dist/Form/Text/Text.d.ts +1 -1
  33. package/dist/Form/Text/Text.js +1 -1
  34. package/dist/Form/Textarea/Textarea.d.ts +1 -1
  35. package/dist/Form/Textarea/Textarea.js +1 -1
  36. package/dist/Form/Textarea/TextareaInput.d.ts +1 -3
  37. package/dist/Form/Textarea/TextareaInput.js +1 -3
  38. package/dist/HelpButton/index.d.ts +1 -1
  39. package/dist/HelpButton/index.js +1 -1
  40. package/dist/Layout/Header/Header.d.ts +2 -2
  41. package/dist/Layout/Header/Header.js +1 -1
  42. package/dist/Layout/Header/HeaderTitle/HeaderTitle.d.ts +1 -1
  43. package/dist/Layout/Header/HeaderTitle/HeaderTitle.js +3 -3
  44. package/dist/Layout/Header/Name/Name.d.ts +3 -3
  45. package/dist/Layout/Header/Name/Name.js +2 -2
  46. package/dist/Layout/Header/NavBar/index.d.ts +1 -1
  47. package/dist/Layout/Header/NavBar/index.js +1 -1
  48. package/dist/Loader/Loader.d.ts +3 -3
  49. package/dist/Loader/Loader.js +1 -1
  50. package/dist/ModalAgent/index.d.ts +2 -2
  51. package/dist/ModalAgent/index.js +2 -2
  52. package/dist/Popover/PopoverBase.d.ts +2 -2
  53. package/dist/Popover/PopoverBase.js +1 -1
  54. package/dist/Restitution/Restitution.d.ts +0 -1
  55. package/dist/Restitution/Restitution.js +0 -1
  56. package/dist/Restitution/index.d.ts +5 -4
  57. package/dist/Restitution/index.js +5 -4
  58. package/dist/Steps/index.d.ts +1 -1
  59. package/dist/Steps/index.js +1 -1
  60. package/dist/Table/Pagination/Items.js +1 -1
  61. package/dist/Table/Pagination/Pager.d.ts +1 -1
  62. package/dist/Table/Pagination/Pager.js +1 -1
  63. package/dist/Table/Pagination/Paging.d.ts +1 -1
  64. package/dist/Table/Pagination/Paging.js +1 -1
  65. package/dist/Table/Table.d.ts +1 -1
  66. package/dist/Table/Table.js +1 -1
  67. package/dist/Tabs/components/Tab.d.ts +1 -1
  68. package/dist/Tabs/components/Tab.js +1 -1
  69. package/dist/Tag/Tag.d.ts +1 -1
  70. package/dist/Tag/Tag.js +1 -1
  71. package/dist/Title/Title.d.ts +1 -1
  72. package/dist/Title/Title.js +1 -1
  73. package/dist/index.d.ts +4 -2
  74. package/dist/index.js +4 -2
  75. package/package.json +7 -10
@@ -1,4 +1,4 @@
1
- import "@axa-fr/design-system-slash-css/dist/Accordion/Accordion.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Accordion/Accordion.css";
2
2
  import React from "react";
3
3
  import { CollapseProps } from "./CollapseCard";
4
4
  import { AccordionVariant, TDefaultProps } from "./types";
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { createElement as _createElement } from "react";
3
- import "@axa-fr/design-system-slash-css/dist/Accordion/Accordion.scss";
3
+ import "@axa-fr/design-system-slash-css/dist/Accordion/Accordion.css";
4
4
  import { useId } from "react";
5
5
  import { getComponentClassNameWithUserClassname } from "../utilities/helpers/getComponentClassName";
6
6
  import { CollapseCard } from "./CollapseCard";
@@ -1,4 +1,4 @@
1
- import "@axa-fr/design-system-slash-css/dist/Action/Action.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Action/Action.css";
2
2
  export declare const Action: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
3
3
  icon: string;
4
4
  classModifier?: string;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-slash-css/dist/Action/Action.scss";
2
+ import "@axa-fr/design-system-slash-css/dist/Action/Action.css";
3
3
  import { forwardRef } from "react";
4
4
  import { getComponentClassName } from "../utilities";
5
5
  export const Action = forwardRef(({ icon, className, classModifier, ...otherProps }, ref) => {
@@ -1,6 +1,6 @@
1
1
  import { jsxs as _jsxs } from "react/jsx-runtime";
2
- import { forwardRef, } from "react";
3
2
  import classNames from "classnames";
3
+ import { forwardRef, } from "react";
4
4
  import "@axa-fr/design-system-slash-css/dist/Button/Button.css";
5
5
  const DEFAULT_CLASS_NAME = "af-btn";
6
6
  export const Button = forwardRef(({ variant = "primary", small, leftIcon, rightIcon, className, children, ...props }, ref) => (_jsxs("button", { type: "button", className: classNames(DEFAULT_CLASS_NAME, variant !== "primary" && `${DEFAULT_CLASS_NAME}--${variant}`, small && `${DEFAULT_CLASS_NAME}--small`, className), ...props, ref: ref, children: [leftIcon, children, rightIcon] })));
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from "react";
2
- import "@axa-fr/design-system-slash-css/dist/Form/Checkbox/Checkbox.scss";
2
+ import "@axa-fr/design-system-slash-css/dist/Form/Checkbox/Checkbox.css";
3
3
  declare const CheckboxItem: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type"> & {
4
4
  classModifier?: string;
5
5
  optionClassName?: string;
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import check from "@material-symbols/svg-700/sharp/check.svg";
3
3
  import { forwardRef, useId } from "react";
4
4
  import { getOptionClassName } from "../core";
5
- import "@axa-fr/design-system-slash-css/dist/Form/Checkbox/Checkbox.scss";
5
+ import "@axa-fr/design-system-slash-css/dist/Form/Checkbox/Checkbox.css";
6
6
  import { Svg } from "../../Svg";
7
7
  const CheckboxItem = forwardRef(({ disabled = false, value = "", id, children, label, isChecked, className, classModifier, ...otherProps }, inputRef) => {
8
8
  const newLabel = children || label;
@@ -1,4 +1,4 @@
1
- import "@axa-fr/design-system-slash-css/dist/Form/Date/Date.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Form/Date/Date.css";
2
2
  import { ComponentPropsWithRef } from "react";
3
3
  type Props = Omit<ComponentPropsWithRef<"input">, "value"> & {
4
4
  classModifier?: string;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-slash-css/dist/Form/Date/Date.scss";
2
+ import "@axa-fr/design-system-slash-css/dist/Form/Date/Date.css";
3
3
  import { forwardRef } from "react";
4
4
  import { getComponentClassName } from "../../utilities";
5
5
  import { formatDateInputValue } from "../../utilities/helpers/date";
File without changes
@@ -0,0 +1 @@
1
+ "use strict";
@@ -1,4 +1,4 @@
1
- import "@axa-fr/design-system-slash-css/dist/Form/File/File.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Form/File/File.css";
2
2
  import { ComponentPropsWithoutRef, ReactNode } from "react";
3
3
  import { type ConsumerFieldProps } from "../core";
4
4
  import { File } from "./File";
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-slash-css/dist/Form/File/File.scss";
2
+ import "@axa-fr/design-system-slash-css/dist/Form/File/File.css";
3
3
  import { useId } from "react";
4
4
  import { Field } from "../core";
5
5
  import { File } from "./File";
@@ -1,6 +1,6 @@
1
+ import "@axa-fr/design-system-slash-css/dist/Form/MultiSelect/MultiSelect.css";
1
2
  import { type GroupBase } from "react-select";
2
3
  import { AsyncProps } from "react-select/async";
3
- import "@axa-fr/design-system-slash-css/dist/Form/MultiSelect/MultiSelect.scss";
4
4
  type Option = {
5
5
  value: string;
6
6
  label: string;
@@ -1,12 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "@axa-fr/design-system-slash-css/dist/Form/MultiSelect/MultiSelect.css";
2
3
  import { useId } from "react";
3
4
  import Select from "react-select";
4
5
  import AsyncSelect from "react-select/async";
5
- import { ValueContainer } from "./ValueContainer";
6
- import "@axa-fr/design-system-slash-css/dist/Form/MultiSelect/MultiSelect.scss";
7
6
  import { formatOptionLabel } from "./FormatOptionLabel";
8
- import { useMultiSelectStyle } from "./useMultiSelectStyle";
9
7
  import { noOptionsMessage } from "./NoOptionsMessage";
8
+ import { useMultiSelectStyle } from "./useMultiSelectStyle";
9
+ import { ValueContainer } from "./ValueContainer";
10
10
  const MultiSelect = ({ id, name, loadOptions, values, options, value, onChange, onBlur, placeholder = "- Sélectionner -", className = "react-select", disabled, loadingMessage = () => "Chargement...", isMulti, selectedLimit, selectedLimitLabel, ...otherProps }) => {
11
11
  const { styles } = useMultiSelectStyle();
12
12
  const generatedId = useId();
@@ -1,4 +1,4 @@
1
- import "@axa-fr/design-system-slash-css/dist/Form/MultiSelect/MultiSelect.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Form/MultiSelect/MultiSelect.css";
2
2
  import { type ComponentProps } from "react";
3
3
  import { ConsumerFieldProps } from "../core";
4
4
  import { MultiSelect } from "./MultiSelect";
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-slash-css/dist/Form/MultiSelect/MultiSelect.scss";
2
+ import "@axa-fr/design-system-slash-css/dist/Form/MultiSelect/MultiSelect.css";
3
3
  import { Field } from "../core";
4
4
  import { MultiSelect } from "./MultiSelect";
5
5
  const MultiSelectInput = ({ label, children, ...multiSelectProps }) => {
@@ -1,4 +1,4 @@
1
- import "@axa-fr/design-system-slash-css/dist/Form/NestedQuestion/NestedQuestion.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Form/NestedQuestion/NestedQuestion.css";
2
2
  import { PropsWithChildren } from "react";
3
3
  export declare const NestedQuestion: ({ children, className, }: {
4
4
  className?: string;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-slash-css/dist/Form/NestedQuestion/NestedQuestion.scss";
2
+ import "@axa-fr/design-system-slash-css/dist/Form/NestedQuestion/NestedQuestion.css";
3
3
  import { getComponentClassName } from "../../utilities";
4
4
  export const NestedQuestion = ({ children, className, }) => {
5
5
  const componentClassName = getComponentClassName(className, "", "af-form__nested-question");
@@ -1,4 +1,4 @@
1
- import "@axa-fr/design-system-slash-css/dist/Form/Text/Text.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Form/Text/Text.css";
2
2
  import { ComponentPropsWithRef } from "react";
3
3
  type Props = Omit<ComponentPropsWithRef<"input">, "type"> & {
4
4
  classModifier?: string;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-slash-css/dist/Form/Text/Text.scss";
2
+ import "@axa-fr/design-system-slash-css/dist/Form/Text/Text.css";
3
3
  import { forwardRef, useId } from "react";
4
4
  import { getComponentClassName } from "../../utilities";
5
5
  const Number = forwardRef(({ id, className, classModifier, required, ...otherProps }, inputRef) => {
@@ -1,6 +1,3 @@
1
- import "@axa-fr/design-system-slash-css/dist/common/grid.scss";
2
- import "@axa-fr/design-system-slash-css/dist/common/reboot.scss";
3
- import "@axa-fr/design-system-slash-css/dist/Form/core/FormCore.scss";
4
1
  import { ComponentPropsWithRef } from "react";
5
2
  import { type ConsumerFieldProps } from "../core";
6
3
  import { Number } from "./Number";
@@ -1,7 +1,4 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-slash-css/dist/common/grid.scss";
3
- import "@axa-fr/design-system-slash-css/dist/common/reboot.scss";
4
- import "@axa-fr/design-system-slash-css/dist/Form/core/FormCore.scss";
5
2
  import { Field } from "../core";
6
3
  import { Number } from "./Number";
7
4
  export const NumberInput = ({ children, ...props }) => {
@@ -1,5 +1,5 @@
1
1
  import { ComponentPropsWithRef } from "react";
2
- import "@axa-fr/design-system-slash-css/dist/Form/Pass/Pass.scss";
2
+ import "@axa-fr/design-system-slash-css/dist/Form/Pass/Pass.css";
3
3
  type Props = Omit<ComponentPropsWithRef<"input">, "type" | "role"> & {
4
4
  type?: "text" | "password";
5
5
  classModifier?: string;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { getComponentClassName } from "../../utilities";
4
- import "@axa-fr/design-system-slash-css/dist/Form/Pass/Pass.scss";
4
+ import "@axa-fr/design-system-slash-css/dist/Form/Pass/Pass.css";
5
5
  const Pass = forwardRef(({ onToggleType, type = "password", className, classModifier, ...inputProps }, inputRef) => {
6
6
  const componentClassName = getComponentClassName(className, classModifier, "af-form__pass");
7
7
  return (_jsxs("div", { className: componentClassName, children: [_jsx("div", { className: "af-form__pass-strength" }), _jsx("input", { ...inputProps, role: type === "password" ? "password" : "textbox", className: "af-form__input-text", type: type, ref: inputRef, required: classModifier?.includes("required") }), _jsx("button", { className: "af-form__pass-btn", type: "button", "aria-label": "show password", onClick: onToggleType, children: _jsx("i", { className: `glyphicon glyphicon-eye${type === "text" ? "-close" : "-open"}` }) })] }));
@@ -1,4 +1,4 @@
1
- import "@axa-fr/design-system-slash-css/dist/Form/Radio/Radio.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Form/Radio/Radio.css";
2
2
  import { ComponentPropsWithRef, ReactNode } from "react";
3
3
  type Props = Omit<ComponentPropsWithRef<"input">, "checked" | "type"> & {
4
4
  classModifier?: string;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-slash-css/dist/Form/Radio/Radio.scss";
2
+ import "@axa-fr/design-system-slash-css/dist/Form/Radio/Radio.css";
3
3
  import { forwardRef, useId } from "react";
4
4
  import { getOptionClassName } from "../core";
5
5
  const RadioItem = forwardRef(({ value = "", id, isChecked, label, classModifier = "", className = "", disabled = false, ...otherProps }, inputRef) => {
@@ -1,4 +1,4 @@
1
- import "@axa-fr/design-system-slash-css/dist/Form/Select/Select.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Form/Select/Select.css";
2
2
  import { OptionHTMLAttributes } from "react";
3
3
  /**
4
4
  * @deprecated Use Select instead
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-slash-css/dist/Form/Select/Select.scss";
2
+ import "@axa-fr/design-system-slash-css/dist/Form/Select/Select.css";
3
3
  import { forwardRef, } from "react";
4
4
  import { getComponentClassName } from "../../utilities";
5
5
  /**
@@ -1,3 +1,3 @@
1
- import "@axa-fr/design-system-slash-css/dist/Form/Slider/Slider.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Form/Slider/Slider.css";
2
2
  export { Slider } from "./Slider";
3
3
  export { SliderInput } from "./SliderInput";
@@ -1,3 +1,3 @@
1
- import "@axa-fr/design-system-slash-css/dist/Form/Slider/Slider.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Form/Slider/Slider.css";
2
2
  export { Slider } from "./Slider";
3
3
  export { SliderInput } from "./SliderInput";
@@ -1,4 +1,4 @@
1
- import "@axa-fr/design-system-slash-css/dist/Form/Text/Text.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Form/Text/Text.css";
2
2
  import { ComponentPropsWithRef } from "react";
3
3
  type Props = ComponentPropsWithRef<"input"> & {
4
4
  classModifier?: string;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-slash-css/dist/Form/Text/Text.scss";
2
+ import "@axa-fr/design-system-slash-css/dist/Form/Text/Text.css";
3
3
  import { forwardRef } from "react";
4
4
  import { getComponentClassName } from "../../utilities";
5
5
  const Text = forwardRef(({ className, classModifier, required, ...otherProps }, inputRef) => {
@@ -1,4 +1,4 @@
1
- import "@axa-fr/design-system-slash-css/dist/Form/Textarea/Textarea.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Form/Textarea/Textarea.css";
2
2
  declare const Textarea: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & {
3
3
  classModifier?: string;
4
4
  } & import("react").RefAttributes<HTMLTextAreaElement>>;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-slash-css/dist/Form/Textarea/Textarea.scss";
2
+ import "@axa-fr/design-system-slash-css/dist/Form/Textarea/Textarea.css";
3
3
  import { forwardRef, useId } from "react";
4
4
  import { getComponentClassName } from "../../utilities";
5
5
  const Textarea = forwardRef(({ id, className, classModifier, ...otherProps }, inputRef) => {
@@ -1,6 +1,4 @@
1
- import "@axa-fr/design-system-slash-css/dist/common/grid.scss";
2
- import "@axa-fr/design-system-slash-css/dist/common/reboot.scss";
3
- import "@axa-fr/design-system-slash-css/dist/Form/core/FormCore.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Form/Textarea/Textarea.css";
4
2
  import { ComponentProps } from "react";
5
3
  import { type ConsumerFieldProps } from "../core";
6
4
  import { Textarea } from "./Textarea";
@@ -1,7 +1,5 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-slash-css/dist/common/grid.scss";
3
- import "@axa-fr/design-system-slash-css/dist/common/reboot.scss";
4
- import "@axa-fr/design-system-slash-css/dist/Form/core/FormCore.scss";
2
+ import "@axa-fr/design-system-slash-css/dist/Form/Textarea/Textarea.css";
5
3
  import { forwardRef } from "react";
6
4
  import { Field } from "../core";
7
5
  import { Textarea } from "./Textarea";
@@ -1,4 +1,4 @@
1
- import "@axa-fr/design-system-slash-css/dist/Action/Action.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Action/Action.css";
2
2
  import { ComponentPropsWithoutRef, ReactNode } from "react";
3
3
  import { Popover } from "../Popover";
4
4
  type HelpProps = Omit<ComponentPropsWithoutRef<typeof Popover>, "popoverElement"> & {
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-slash-css/dist/Action/Action.scss";
2
+ import "@axa-fr/design-system-slash-css/dist/Action/Action.css";
3
3
  import { Popover } from "../Popover";
4
4
  import { getComponentClassName } from "../utilities";
5
5
  export const HelpButton = ({ className, classModifier, children, mode = "click", placement = "right", helpButtonContent = _jsx("span", { className: "af-more-help", children: "i" }), }) => {
@@ -1,5 +1,5 @@
1
- import { ReactNode } from "react";
2
- import "@axa-fr/design-system-slash-css/dist/Layout/Header/Header.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Layout/Header/Header.css";
2
+ import { type ReactNode } from "react";
3
3
  type Props = {
4
4
  children: ReactNode;
5
5
  classModifier?: string;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-slash-css/dist/Layout/Header/Header.scss";
2
+ import "@axa-fr/design-system-slash-css/dist/Layout/Header/Header.css";
3
3
  import classNames from "classnames";
4
4
  import { getComponentClassName } from "../../utilities";
5
5
  const defaultClassName = "af-header";
@@ -1,5 +1,5 @@
1
+ import "@axa-fr/design-system-slash-css/dist/Layout/Header/HeaderTitle/HeaderTitle.css";
1
2
  import { ReactNode } from "react";
2
- import "@axa-fr/design-system-slash-css/dist/Layout/Header/HeaderTitle/HeaderTitle.scss";
3
3
  import { AnchorNavBarItem } from "../AnchorNavBar/AnchorNavBar";
4
4
  type Props = {
5
5
  children?: ReactNode;
@@ -1,11 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-slash-css/dist/Layout/Header/HeaderTitle/HeaderTitle.scss";
2
+ import "@axa-fr/design-system-slash-css/dist/Layout/Header/HeaderTitle/HeaderTitle.css";
3
3
  import classNames from "classnames";
4
+ import { Action } from "../../../Action/Action";
4
5
  import { getComponentClassName } from "../../../utilities";
6
+ import { AnchorNavBar } from "../AnchorNavBar/AnchorNavBar";
5
7
  import { ToggleButton } from "../ToggleButton/ToggleButton";
6
- import { Action } from "../../../Action/Action";
7
8
  import { getClassModifier } from "./HeaderTitle.helpers";
8
- import { AnchorNavBar } from "../AnchorNavBar/AnchorNavBar";
9
9
  const defaultClassName = "af-title-bar";
10
10
  const HeaderTitle = ({ children, classModifier, className, isSticky = true, contentLeft, contentRight, subtitle, title, toggleMenu, anchorNavBarItems, }) => {
11
11
  const componentClassName = getComponentClassName(className, getClassModifier(classModifier, isSticky), defaultClassName);
@@ -1,6 +1,6 @@
1
- import { MouseEvent } from "react";
2
- import "@axa-fr/design-system-slash-css/dist/Layout/Header/Name/Name.scss";
3
- import "@axa-fr/design-system-slash-css/dist/Layout/Header/Logo/Logo.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Layout/Header/Logo/Logo.css";
2
+ import "@axa-fr/design-system-slash-css/dist/Layout/Header/Name/Name.css";
3
+ import { type MouseEvent } from "react";
4
4
  type Props = {
5
5
  alt?: string;
6
6
  classModifier?: string;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-slash-css/dist/Layout/Header/Name/Name.scss";
3
- import "@axa-fr/design-system-slash-css/dist/Layout/Header/Logo/Logo.scss";
2
+ import "@axa-fr/design-system-slash-css/dist/Layout/Header/Logo/Logo.css";
3
+ import "@axa-fr/design-system-slash-css/dist/Layout/Header/Name/Name.css";
4
4
  import { getComponentClassName } from "../../../utilities";
5
5
  const defaultClassName = "af-header__name";
6
6
  const Name = ({ alt = "logo", classModifier, className, img, onClick, subtitle, title, }) => {
@@ -1,4 +1,4 @@
1
- import "@axa-fr/design-system-slash-css/dist/Layout/Header/NavBar/NavBar.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Layout/Header/NavBar/NavBar.css";
2
2
  import "@axa-fr/design-system-slash-css/dist/common/breakpoints.css";
3
3
  export { NavBar } from "./NavBar";
4
4
  export { NavBarBase } from "./NavBarBase";
@@ -1,4 +1,4 @@
1
- import "@axa-fr/design-system-slash-css/dist/Layout/Header/NavBar/NavBar.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Layout/Header/NavBar/NavBar.css";
2
2
  import "@axa-fr/design-system-slash-css/dist/common/breakpoints.css";
3
3
  export { NavBar } from "./NavBar";
4
4
  export { NavBarBase } from "./NavBarBase";
@@ -1,11 +1,11 @@
1
- import "@axa-fr/design-system-slash-css/dist/Loader/Loader.scss";
2
- import React from "react";
1
+ import "@axa-fr/design-system-slash-css/dist/Loader/Loader.css";
2
+ import { type ReactNode } from "react";
3
3
  type LoaderMode = "none" | "get" | "post" | "delete" | "update" | "error";
4
4
  type LoaderProps = {
5
5
  className?: string;
6
6
  mode: LoaderMode;
7
7
  text?: string;
8
- children: React.ReactNode;
8
+ children: ReactNode;
9
9
  classModifier?: string;
10
10
  };
11
11
  export declare const Loader: ({ className, text, children, classModifier, mode, }: LoaderProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-slash-css/dist/Loader/Loader.scss";
2
+ import "@axa-fr/design-system-slash-css/dist/Loader/Loader.css";
3
3
  import { getComponentClassName } from "../utilities";
4
4
  const getText = (index) => {
5
5
  switch (index) {
@@ -1,7 +1,7 @@
1
- import "@axa-fr/design-system-slash-css/dist/Modal/Modal.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Modal/Modal.css";
2
2
  export { BooleanModal } from "./BooleanModal";
3
- export { Modal } from "./Modal";
4
3
  export { Body as ModalBody } from "./components/Body";
5
4
  export { Footer as ModalFooter } from "./components/Footer";
6
5
  export { Header as ModalHeader } from "./components/Header";
7
6
  export { HeaderBase as ModalHeaderBase } from "./components/HeaderBase";
7
+ export { Modal } from "./Modal";
@@ -1,7 +1,7 @@
1
- import "@axa-fr/design-system-slash-css/dist/Modal/Modal.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Modal/Modal.css";
2
2
  export { BooleanModal } from "./BooleanModal";
3
- export { Modal } from "./Modal";
4
3
  export { Body as ModalBody } from "./components/Body";
5
4
  export { Footer as ModalFooter } from "./components/Footer";
6
5
  export { Header as ModalHeader } from "./components/Header";
7
6
  export { HeaderBase as ModalHeaderBase } from "./components/HeaderBase";
7
+ export { Modal } from "./Modal";
@@ -1,6 +1,6 @@
1
- import React from "react";
2
1
  import { Placement } from "@floating-ui/react";
3
- import "@axa-fr/design-system-slash-css/dist/Popover/Popover.scss";
2
+ import React from "react";
3
+ import "@axa-fr/design-system-slash-css/dist/Popover/Popover.css";
4
4
  type Props = {
5
5
  placement?: Placement;
6
6
  className?: string;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { AnimatedPopover } from "./AnimatedPopover";
3
- import "@axa-fr/design-system-slash-css/dist/Popover/Popover.scss";
3
+ import "@axa-fr/design-system-slash-css/dist/Popover/Popover.css";
4
4
  const defaultClassName = "af-popover__container";
5
5
  const PopoverBase = ({ children, isOpen, placement = "right", className = defaultClassName, classModifier, element, onMouseEnter, onMouseLeave, }) => {
6
6
  return (_jsx(AnimatedPopover, { target: children, placement: placement, isOpen: isOpen, className: className, classModifier: classModifier, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, children: element }));
@@ -1,4 +1,3 @@
1
- import "@axa-fr/design-system-slash-css/dist/Restitution/Restitution.scss";
2
1
  import { ComponentPropsWithoutRef, PropsWithChildren } from "react";
3
2
  export type RestitutionProps = ComponentPropsWithoutRef<"dl"> & {
4
3
  label: string;
@@ -1,5 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-slash-css/dist/Restitution/Restitution.scss";
3
2
  import { getComponentClassName } from "../utilities";
4
3
  export const Restitution = ({ label, children = "-", className, classModifier, }) => {
5
4
  const componentClassName = getComponentClassName(className, classModifier, "af-restitution__listdef");
@@ -1,8 +1,9 @@
1
+ import "@axa-fr/design-system-slash-css/dist/Restitution/Restitution.css";
1
2
  export { ArticleRestitution } from "./ArticleRestitution";
2
3
  export { HeaderRestitution } from "./HeaderRestitution";
3
- export { SectionRestitution } from "./SectionRestitution";
4
- export { SectionRestitutionTitle } from "./SectionRestitutionTitle";
5
- export { SectionRestitutionRow } from "./SectionRestitutionRow";
6
- export { SectionRestitutionColumn } from "./SectionRestitutionColumn";
7
4
  export { Restitution } from "./Restitution";
8
5
  export { RestitutionList } from "./RestitutionList";
6
+ export { SectionRestitution } from "./SectionRestitution";
7
+ export { SectionRestitutionColumn } from "./SectionRestitutionColumn";
8
+ export { SectionRestitutionRow } from "./SectionRestitutionRow";
9
+ export { SectionRestitutionTitle } from "./SectionRestitutionTitle";
@@ -1,8 +1,9 @@
1
+ import "@axa-fr/design-system-slash-css/dist/Restitution/Restitution.css";
1
2
  export { ArticleRestitution } from "./ArticleRestitution";
2
3
  export { HeaderRestitution } from "./HeaderRestitution";
3
- export { SectionRestitution } from "./SectionRestitution";
4
- export { SectionRestitutionTitle } from "./SectionRestitutionTitle";
5
- export { SectionRestitutionRow } from "./SectionRestitutionRow";
6
- export { SectionRestitutionColumn } from "./SectionRestitutionColumn";
7
4
  export { Restitution } from "./Restitution";
8
5
  export { RestitutionList } from "./RestitutionList";
6
+ export { SectionRestitution } from "./SectionRestitution";
7
+ export { SectionRestitutionColumn } from "./SectionRestitutionColumn";
8
+ export { SectionRestitutionRow } from "./SectionRestitutionRow";
9
+ export { SectionRestitutionTitle } from "./SectionRestitutionTitle";
@@ -1,4 +1,4 @@
1
- import "@axa-fr/design-system-slash-css/dist/Steps/Steps.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Steps/Steps.css";
2
2
  export { Step } from "./Step";
3
3
  export { StepBase } from "./StepBase";
4
4
  export { Steps } from "./Steps";
@@ -1,4 +1,4 @@
1
- import "@axa-fr/design-system-slash-css/dist/Steps/Steps.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Steps/Steps.css";
2
2
  export { Step } from "./Step";
3
3
  export { StepBase } from "./StepBase";
4
4
  export { Steps } from "./Steps";
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useId } from "react";
3
- import { getComponentClassName } from "../../utilities";
4
3
  import { Select } from "../../Form/Select";
4
+ import { getComponentClassName } from "../../utilities";
5
5
  const Items = ({ className, classModifier, onChange, displayLabel = "Afficher", elementsLabel = "éléments", selectAriaLabel = "Modifier le nombre d'éléments à afficher dans le tableau", id, items = [5, 10, 25, 50, 100], numberItems = 10, }) => {
6
6
  const defaultIdName = useId();
7
7
  const newId = id ?? defaultIdName;
@@ -1,4 +1,4 @@
1
- import "@axa-fr/design-system-slash-css/dist/Table/Pager.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Table/Pager.css";
2
2
  import { ComponentPropsWithoutRef } from "react";
3
3
  import { PaginationButton } from "./PaginationButton";
4
4
  export type PagerComponentProps = Pick<ComponentPropsWithoutRef<typeof PaginationButton>, "onChange"> & {
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-slash-css/dist/Table/Pager.scss";
2
+ import "@axa-fr/design-system-slash-css/dist/Table/Pager.css";
3
3
  import { getComponentClassName } from "../..";
4
4
  import { Li } from "./Li";
5
5
  import { LiPoint } from "./LiPoint";
@@ -1,4 +1,4 @@
1
- import "@axa-fr/design-system-slash-css/dist/Table/Paging.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Table/Paging.css";
2
2
  import { ComponentPropsWithoutRef } from "react";
3
3
  import { Items } from "./Items";
4
4
  import { Pager } from "./Pager";
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-slash-css/dist/Table/Paging.scss";
2
+ import "@axa-fr/design-system-slash-css/dist/Table/Paging.css";
3
3
  import { useCallback } from "react";
4
4
  import { getComponentClassName } from "../..";
5
5
  import { Items } from "./Items";
@@ -1,5 +1,5 @@
1
1
  import { ComponentPropsWithoutRef } from "react";
2
- import "@axa-fr/design-system-slash-css/dist/Table/Table.scss";
2
+ import "@axa-fr/design-system-slash-css/dist/Table/Table.css";
3
3
  type TableProps = ComponentPropsWithoutRef<"table"> & {
4
4
  classModifier?: string;
5
5
  };
@@ -5,7 +5,7 @@ import { THead } from "./THead";
5
5
  import { Td } from "./Td";
6
6
  import { Th } from "./Th";
7
7
  import { Tr } from "./Tr";
8
- import "@axa-fr/design-system-slash-css/dist/Table/Table.scss";
8
+ import "@axa-fr/design-system-slash-css/dist/Table/Table.css";
9
9
  const Table = ({ className, classModifier, children, ...othersProps }) => {
10
10
  const componentClassName = getComponentClassName(className, classModifier, "af-table");
11
11
  return (_jsx("table", { className: componentClassName, ...othersProps, children: children }));
@@ -1,4 +1,4 @@
1
- import "@axa-fr/design-system-slash-css/dist/Tabs/Tabs.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Tabs/Tabs.css";
2
2
  import { ReactNode } from "react";
3
3
  export type TabProps = {
4
4
  title: ReactNode;
@@ -1,4 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-slash-css/dist/Tabs/Tabs.scss";
2
+ import "@axa-fr/design-system-slash-css/dist/Tabs/Tabs.css";
3
3
  const Tab = () => _jsx("span", {});
4
4
  export { Tab };
package/dist/Tag/Tag.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import "@axa-fr/design-system-slash-css/dist/Tag/Tag.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Tag/Tag.css";
2
2
  import { ComponentPropsWithRef, PropsWithChildren } from "react";
3
3
  export type TagVariants = "success" | "information" | "warning" | "error" | "default" | "dark" | "purple" | "gray" | "white";
4
4
  type TagProps = ComponentPropsWithRef<"span"> & {
package/dist/Tag/Tag.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-slash-css/dist/Tag/Tag.scss";
2
+ import "@axa-fr/design-system-slash-css/dist/Tag/Tag.css";
3
3
  import { forwardRef } from "react";
4
4
  import { getComponentClassNameWithUserClassname } from "../utilities/helpers/getComponentClassName";
5
5
  /**
@@ -1,4 +1,4 @@
1
- import "@axa-fr/design-system-slash-css/dist/Title/Title.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/Title/Title.css";
2
2
  import { ComponentPropsWithRef, PropsWithChildren, ReactElement, ReactNode } from "react";
3
3
  type Headings = "h2" | "h3" | "h4";
4
4
  type TitleProps = ComponentPropsWithRef<"h2"> & {
@@ -1,5 +1,5 @@
1
1
  import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-slash-css/dist/Title/Title.scss";
2
+ import "@axa-fr/design-system-slash-css/dist/Title/Title.css";
3
3
  import { forwardRef, } from "react";
4
4
  import { getComponentClassName } from "../utilities";
5
5
  const baseClass = "af-title";
package/dist/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
- import "@axa-fr/design-system-slash-css/dist/common/icons.scss";
2
- import "@axa-fr/design-system-slash-css/dist/common/reboot.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/common/grid.css";
2
+ import "@axa-fr/design-system-slash-css/dist/common/icons.css";
3
+ import "@axa-fr/design-system-slash-css/dist/common/reboot.css";
3
4
  import "@axa-fr/design-system-slash-css/dist/common/tokens.css";
5
+ import "@axa-fr/design-system-slash-css/dist/Form/core/FormCore.css";
4
6
  import "@fontsource/source-sans-pro/400.css";
5
7
  import "@fontsource/source-sans-pro/700.css";
6
8
  import { Message } from "./Messages/Message";
package/dist/index.js CHANGED
@@ -1,6 +1,8 @@
1
- import "@axa-fr/design-system-slash-css/dist/common/icons.scss";
2
- import "@axa-fr/design-system-slash-css/dist/common/reboot.scss";
1
+ import "@axa-fr/design-system-slash-css/dist/common/grid.css";
2
+ import "@axa-fr/design-system-slash-css/dist/common/icons.css";
3
+ import "@axa-fr/design-system-slash-css/dist/common/reboot.css";
3
4
  import "@axa-fr/design-system-slash-css/dist/common/tokens.css";
5
+ import "@axa-fr/design-system-slash-css/dist/Form/core/FormCore.css";
4
6
  import "@fontsource/source-sans-pro/400.css";
5
7
  import "@fontsource/source-sans-pro/700.css";
6
8
  import { Message } from "./Messages/Message";
package/package.json CHANGED
@@ -1,27 +1,24 @@
1
1
  {
2
2
  "name": "@axa-fr/design-system-slash-react",
3
- "version": "2.0.6-alpha.15",
3
+ "version": "2.0.6-alpha.22",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "exports": {
8
8
  ".": {
9
- "default": {
10
- "import": "./dist/index.js",
11
- "types": "./dist/index.d.ts"
12
- }
9
+ "import": "./dist/index.js",
10
+ "types": "./dist/index.d.ts"
13
11
  },
14
12
  "./utilities": {
15
- "default": {
16
- "import": "./dist/utilities.js",
17
- "types": "./dist/utilities.d.ts"
18
- }
13
+ "import": "./dist/utilities.js",
14
+ "types": "./dist/utilities.d.ts"
19
15
  }
20
16
  },
21
17
  "files": [
22
18
  "dist"
23
19
  ],
24
20
  "scripts": {
21
+ "dev": "tsc -w -p tsconfig.build.json",
25
22
  "prebuild": "rimraf dist",
26
23
  "build": "tsc -p tsconfig.build.json",
27
24
  "postbuild": "copyfiles --up 1 \"src/assets/svg/*.svg\" ./dist/",
@@ -47,7 +44,7 @@
47
44
  },
48
45
  "homepage": "https://github.com/AxaFrance/design-system#readme",
49
46
  "peerDependencies": {
50
- "@axa-fr/design-system-slash-css": "2.0.6-alpha.15",
47
+ "@axa-fr/design-system-slash-css": "2.0.6-alpha.22",
51
48
  "@material-symbols/svg-400": ">= 0.19.0",
52
49
  "@material-symbols/svg-700": ">= 0.19.0",
53
50
  "react": ">= 18"