@axa-fr/design-system-look-and-feel-react 3.0.0 → 3.0.1-alpha.12

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 (109) hide show
  1. package/dist/Accordion/Accordion.d.ts +3 -0
  2. package/dist/Accordion/Accordion.js +3 -0
  3. package/dist/AccordionCore/AccordionCore.d.ts +3 -0
  4. package/dist/AccordionCore/AccordionCore.js +3 -0
  5. package/dist/Alert/Alert.d.ts +3 -0
  6. package/dist/Alert/Alert.js +3 -0
  7. package/dist/BasePicture/BasePicture.d.ts +4 -1
  8. package/dist/BasePicture/BasePicture.js +5 -1
  9. package/dist/Button/Button.d.ts +21 -2
  10. package/dist/Button/Button.js +9 -1
  11. package/dist/CardMessage/CardMessage.d.ts +18 -1
  12. package/dist/CardMessage/CardMessage.js +9 -1
  13. package/dist/ClickIcon/ClickIcon.d.ts +5 -1
  14. package/dist/ClickIcon/ClickIcon.js +5 -1
  15. package/dist/ContentItemMono/ContentItemMono.d.ts +5 -1
  16. package/dist/ContentItemMono/ContentItemMono.js +5 -1
  17. package/dist/Divider/Divider.d.ts +7 -1
  18. package/dist/Divider/Divider.js +5 -1
  19. package/dist/Form/Checkbox/CardCheckbox.d.ts +10 -0
  20. package/dist/Form/Checkbox/CardCheckbox.js +7 -0
  21. package/dist/Form/Checkbox/Checkbox.d.ts +5 -1
  22. package/dist/Form/Checkbox/Checkbox.js +5 -1
  23. package/dist/Form/Checkbox/CheckboxText.d.ts +5 -1
  24. package/dist/Form/Checkbox/CheckboxText.js +5 -1
  25. package/dist/Form/Dropdown/Dropdown.d.ts +9 -1
  26. package/dist/Form/Dropdown/Dropdown.js +9 -1
  27. package/dist/Form/FileUpload/FileUpload.d.ts +3 -0
  28. package/dist/Form/FileUpload/FileUpload.js +3 -0
  29. package/dist/Form/InputDate/InputDate.d.ts +9 -1
  30. package/dist/Form/InputDate/InputDate.js +9 -1
  31. package/dist/Form/InputError/InputError.d.ts +3 -0
  32. package/dist/Form/InputError/InputError.js +3 -0
  33. package/dist/Form/InputText/InputText.d.ts +9 -1
  34. package/dist/Form/InputText/InputText.js +9 -1
  35. package/dist/Form/ItemFile/ItemFile.d.ts +5 -1
  36. package/dist/Form/ItemFile/ItemFile.js +5 -1
  37. package/dist/Form/ItemLabel/ItemLabel.d.ts +5 -1
  38. package/dist/Form/ItemLabel/ItemLabel.js +5 -1
  39. package/dist/Form/ItemMessage/ItemMessage.d.ts +5 -1
  40. package/dist/Form/ItemMessage/ItemMessage.js +5 -1
  41. package/dist/Form/Radio/Radio.d.ts +5 -1
  42. package/dist/Form/Radio/Radio.js +5 -1
  43. package/dist/Form/Radio/RadioCard.d.ts +10 -0
  44. package/dist/Form/Radio/RadioCard.js +7 -0
  45. package/dist/Form/TextArea/TextArea.d.ts +5 -1
  46. package/dist/Form/TextArea/TextArea.js +5 -1
  47. package/dist/Form/core/FieldForm.js +1 -0
  48. package/dist/Form/core/getComponentClassName.js +1 -0
  49. package/dist/Grid/DebugGrid.d.ts +5 -1
  50. package/dist/Grid/DebugGrid.js +5 -1
  51. package/dist/Heading/Heading.d.ts +9 -1
  52. package/dist/Heading/Heading.js +5 -1
  53. package/dist/Icon/Icon.d.ts +30 -1
  54. package/dist/Icon/Icon.js +13 -1
  55. package/dist/IconBg/IconBg.d.ts +3 -0
  56. package/dist/IconBg/IconBg.js +3 -0
  57. package/dist/ItemTabBar/ItemTabBar.d.ts +9 -1
  58. package/dist/ItemTabBar/ItemTabBar.js +5 -1
  59. package/dist/Layout/Footer/Footer.d.ts +9 -2
  60. package/dist/Layout/Footer/Footer.js +5 -1
  61. package/dist/Link/Link.d.ts +5 -1
  62. package/dist/Link/Link.js +5 -1
  63. package/dist/List/ClickItem/ClickItem.d.ts +3 -0
  64. package/dist/List/ClickItem/ClickItem.helpers.d.ts +3 -0
  65. package/dist/List/ClickItem/ClickItem.helpers.js +3 -0
  66. package/dist/List/ClickItem/ClickItem.js +3 -0
  67. package/dist/List/ContentItemDuo/ContentItemDuo.d.ts +5 -1
  68. package/dist/List/ContentItemDuo/ContentItemDuo.js +5 -1
  69. package/dist/Message/Message.d.ts +13 -2
  70. package/dist/Message/Message.js +9 -1
  71. package/dist/Modal/Modal.d.ts +6 -0
  72. package/dist/Modal/Modal.js +3 -0
  73. package/dist/Modal/ModalCore.d.ts +6 -0
  74. package/dist/Modal/ModalCore.js +6 -1
  75. package/dist/Modal/components/ModalCoreBody.d.ts +6 -0
  76. package/dist/Modal/components/ModalCoreBody.js +3 -0
  77. package/dist/Modal/components/ModalCoreFooter.d.ts +6 -0
  78. package/dist/Modal/components/ModalCoreFooter.js +3 -0
  79. package/dist/Modal/components/ModalCoreHeader.d.ts +6 -0
  80. package/dist/Modal/components/ModalCoreHeader.js +3 -0
  81. package/dist/ProgressBar/ProgressBar.d.ts +5 -1
  82. package/dist/ProgressBar/ProgressBar.js +5 -1
  83. package/dist/ProgressBarGroup/ProgressBarGroup.d.ts +5 -1
  84. package/dist/ProgressBarGroup/ProgressBarGroup.js +5 -1
  85. package/dist/Skeleton/Skeleton.js +1 -0
  86. package/dist/Spinner/Spinner.d.ts +17 -2
  87. package/dist/Spinner/Spinner.js +9 -1
  88. package/dist/Stepper/Stepper.d.ts +5 -1
  89. package/dist/Stepper/Stepper.js +5 -1
  90. package/dist/Svg/Svg.d.ts +3 -0
  91. package/dist/Svg/Svg.js +6 -0
  92. package/dist/TabBar/TabBar.d.ts +20 -1
  93. package/dist/TabBar/TabBar.js +9 -1
  94. package/dist/Tabs/Tabs.d.ts +9 -0
  95. package/dist/Tabs/Tabs.js +6 -0
  96. package/dist/Tag/Tag.d.ts +19 -2
  97. package/dist/Tag/Tag.js +9 -1
  98. package/dist/TimelineVertical/TimelineVertical.d.ts +5 -1
  99. package/dist/TimelineVertical/TimelineVertical.js +5 -1
  100. package/dist/Title/Title.d.ts +3 -0
  101. package/dist/Title/Title.js +3 -0
  102. package/dist/Title/constants.d.ts +6 -0
  103. package/dist/Title/constants.js +3 -0
  104. package/dist/Toggle/Toggle.d.ts +5 -1
  105. package/dist/Toggle/Toggle.js +5 -1
  106. package/dist/index.d.ts +29 -29
  107. package/dist/index.js +32 -26
  108. package/dist/utilities/helpers/getComponentClassName.js +1 -0
  109. package/package.json +5 -5
@@ -8,5 +8,8 @@ type AccordionProps = {
8
8
  value?: string;
9
9
  isTitleFirst?: boolean;
10
10
  } & ComponentProps<typeof AccordionTagDateContainer> & Partial<ComponentProps<typeof AccordionCore>>;
11
+ /**
12
+ * @deprecated Use `Accordion` from `@axa-fr/design-system-apollo-react/lf` package instead.
13
+ */
11
14
  export declare const Accordion: ({ title, children, icon, subtitle, tagLabel, tagProps, dateLabel, dateProps, value, isTitleFirst, ...accordionCoreProps }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
12
15
  export {};
@@ -3,6 +3,9 @@ import { useMemo } from "react";
3
3
  import { AccordionCore } from "../AccordionCore/AccordionCore";
4
4
  import { BREAKPOINT, getComponentClassName, useIsSmallScreen, } from "../utilities";
5
5
  import { AccordionTagDateContainer } from "./AccordionTagDateContainer";
6
+ /**
7
+ * @deprecated Use `Accordion` from `@axa-fr/design-system-apollo-react/lf` package instead.
8
+ */
6
9
  export const Accordion = ({ title, children, icon, subtitle, tagLabel, tagProps, dateLabel, dateProps, value, isTitleFirst = true, ...accordionCoreProps }) => {
7
10
  const isMobile = useIsSmallScreen(BREAKPOINT.SM);
8
11
  const isShowingIcon = Boolean(icon && isTitleFirst);
@@ -8,5 +8,8 @@ type AccordionProps = {
8
8
  summaryProps?: ComponentProps<"summary">;
9
9
  onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
10
10
  } & Partial<ComponentProps<"details">>;
11
+ /**
12
+ * @deprecated Use `AccordionCore` from `@axa-fr/design-system-apollo-react/lf` package instead.
13
+ */
11
14
  export declare const AccordionCore: ({ summary, children, className, classModifier, summaryProps, isOpen, onClick, ...detailsProps }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
12
15
  export {};
@@ -1,6 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useCallback, useMemo, } from "react";
3
3
  import { getComponentClassName } from "../utilities";
4
+ /**
5
+ * @deprecated Use `AccordionCore` from `@axa-fr/design-system-apollo-react/lf` package instead.
6
+ */
4
7
  export const AccordionCore = ({ summary, children, className, classModifier, summaryProps, isOpen, onClick, ...detailsProps }) => {
5
8
  const componentClassName = useMemo(() => getComponentClassName("af-accordion", className, classModifier), [classModifier, className]);
6
9
  const handleToggle = useCallback((event) => {
@@ -18,5 +18,8 @@ type AlertProps = {
18
18
  iconSize?: number;
19
19
  heading?: Headings;
20
20
  } & ComponentPropsWithoutRef<"div">;
21
+ /**
22
+ * @deprecated Use `Message` from `@axa-fr/design-system-apollo-react/lf` instead.
23
+ */
21
24
  export declare const Alert: ({ type, title, children, action, iconSize, heading: Heading, }: PropsWithChildren<AlertProps>) => import("react/jsx-runtime").JSX.Element;
22
25
  export {};
@@ -21,6 +21,9 @@ const getIconFromType = (type) => ({
21
21
  [alertTypes.warning]: errorOutline,
22
22
  [alertTypes.information]: wbIncandescentOutlined,
23
23
  })[type] || wbIncandescentOutlined;
24
+ /**
25
+ * @deprecated Use `Message` from `@axa-fr/design-system-apollo-react/lf` instead.
26
+ */
24
27
  export const Alert = ({ type = alertTypes.information, title, children, action, iconSize = 24, heading: Heading = "h4", }) => {
25
28
  const icon = useMemo(() => getIconFromType(type), [type]);
26
29
  return (_jsxs("div", { className: `af-alert af-alert--${type}`, role: "alert", children: [_jsx(Svg, { src: icon, width: iconSize, height: iconSize, className: "af-alert__icon", "aria-hidden": true }), _jsxs("div", { className: "af-alert-client__content", children: [title ? _jsx(Heading, { className: "af-alert__title", children: title }) : null, children, action ? _jsx("div", { className: "af-alert__action", children: action }) : null] })] }));
@@ -1 +1,4 @@
1
- export { BasePicture } from "@axa-fr/design-system-apollo-react/lf";
1
+ /**
2
+ * @deprecated Use `BasePicture` from `@axa-fr/design-system-apollo-react/lf` instead.
3
+ */
4
+ export declare const BasePicture: ({ className, src, ...props }: import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1,5 @@
1
- export { BasePicture } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { BasePicture as ApolloBasePicture } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `BasePicture` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const BasePicture = ApolloBasePicture;
@@ -1,2 +1,21 @@
1
- export { Button, buttonVariants } from "@axa-fr/design-system-apollo-react/lf";
2
- export type { ButtonVariants } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Button as ApolloButton, type ButtonVariants as ApolloButtonVariantsType } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Button` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const Button: typeof ApolloButton;
6
+ /**
7
+ * @deprecated Use `buttonVariants` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
9
+ export declare const buttonVariants: {
10
+ readonly primary: "primary";
11
+ readonly "primary-business": "primary-business";
12
+ readonly "primary-inverse": "primary-inverse";
13
+ readonly secondary: "secondary";
14
+ readonly "secondary-inverse": "secondary-inverse";
15
+ readonly tertiary: "tertiary";
16
+ readonly ghost: "ghost";
17
+ };
18
+ /**
19
+ * @deprecated Use `ButtonVariants` from `@axa-fr/design-system-apollo-react/lf` instead.
20
+ */
21
+ export type ButtonVariants = ApolloButtonVariantsType;
@@ -1 +1,9 @@
1
- export { Button, buttonVariants } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Button as ApolloButton, buttonVariants as ApolloButtonVariants, } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Button` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const Button = ApolloButton;
6
+ /**
7
+ * @deprecated Use `buttonVariants` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
9
+ export const buttonVariants = ApolloButtonVariants;
@@ -1 +1,18 @@
1
- export { CardMessage, cardMessageVariants, type CardMessageVariants, } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { CardMessage as ApolloCardMessage, type CardMessageVariants as ApolloCardMessageVariantsType } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `CardMessage` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const CardMessage: typeof ApolloCardMessage;
6
+ /**
7
+ * @deprecated Use `cardMessageVariants` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
9
+ export declare const cardMessageVariants: {
10
+ readonly info: "info";
11
+ readonly warning: "warning";
12
+ readonly error: "error";
13
+ readonly neutral: "neutral";
14
+ };
15
+ /**
16
+ * @deprecated Use `CardMessageVariants` from `@axa-fr/design-system-apollo-react/lf` instead.
17
+ */
18
+ export type CardMessageVariants = ApolloCardMessageVariantsType;
@@ -1 +1,9 @@
1
- export { CardMessage, cardMessageVariants, } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { CardMessage as ApolloCardMessage, cardMessageVariants as ApolloCardMessageVariants, } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `CardMessage` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const CardMessage = ApolloCardMessage;
6
+ /**
7
+ * @deprecated Use `cardMessageVariants` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
9
+ export const cardMessageVariants = ApolloCardMessageVariants;
@@ -1 +1,5 @@
1
- export { ClickIcon } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { ClickIcon as ApolloClickIcon } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `ClickIcon` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const ClickIcon: typeof ApolloClickIcon;
@@ -1 +1,5 @@
1
- export { ClickIcon } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { ClickIcon as ApolloClickIcon } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `ClickIcon` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const ClickIcon = ApolloClickIcon;
@@ -1 +1,5 @@
1
- export { ContentItemMono } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { ContentItemMono as ApolloContentItemMono } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `ContentItemMono` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const ContentItemMono: typeof ApolloContentItemMono;
@@ -1 +1,5 @@
1
- export { ContentItemMono } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { ContentItemMono as ApolloContentItemMono } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `ContentItemMono` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const ContentItemMono = ApolloContentItemMono;
@@ -1 +1,7 @@
1
- export { Divider } from "@axa-fr/design-system-apollo-react/lf";
1
+ /**
2
+ * @deprecated Use `Divider` from `@axa-fr/design-system-apollo-react/lf` instead.
3
+ */
4
+ export declare const Divider: ({ className, classModifier }: {
5
+ className?: string;
6
+ classModifier?: string;
7
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1,5 @@
1
- export { Divider } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Divider as ApolloDivider } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Divider` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const Divider = ApolloDivider;
@@ -10,7 +10,17 @@ export type CardCheckboxProps = Partial<TCardCheckboxItem> & {
10
10
  onChange?: ChangeEventHandler;
11
11
  error?: string;
12
12
  };
13
+ /**
14
+ * @deprecated Use `CardCheckbox` from `@axa-fr/design-system-apollo-react/lf` instead.
15
+ */
13
16
  export declare const CardCheckbox: {
14
17
  ({ className, labelGroup, descriptionGroup, isRequired, options, onChange, type, error, ...inputProps }: CardCheckboxProps): import("react/jsx-runtime").JSX.Element;
15
18
  displayName: string;
16
19
  };
20
+ /**
21
+ * @deprecated Use `CardCheckbox` from `@axa-fr/design-system-apollo-react/lf` instead.
22
+ */
23
+ export declare const CheckboxCard: {
24
+ ({ className, labelGroup, descriptionGroup, isRequired, options, onChange, type, error, ...inputProps }: CardCheckboxProps): import("react/jsx-runtime").JSX.Element;
25
+ displayName: string;
26
+ };
@@ -4,6 +4,9 @@ import { ItemMessage } from "@axa-fr/design-system-apollo-react/lf";
4
4
  import { BREAKPOINT, getComponentClassName, useIsSmallScreen, } from "../../utilities";
5
5
  import { CardCheckboxItem } from "./CardCheckboxItem";
6
6
  import "@axa-fr/design-system-look-and-feel-css/dist/Form/CardCheckbox/CardCheckbox.scss";
7
+ /**
8
+ * @deprecated Use `CardCheckbox` from `@axa-fr/design-system-apollo-react/lf` instead.
9
+ */
7
10
  export const CardCheckbox = ({ className, labelGroup, descriptionGroup, isRequired, options, onChange, type = "vertical", error, ...inputProps }) => {
8
11
  const componentClassName = getComponentClassName("af-card-checkbox__container", className);
9
12
  const checkboxGroupClassName = getComponentClassName("af-card-checkbox-group", className, type);
@@ -13,3 +16,7 @@ export const CardCheckbox = ({ className, labelGroup, descriptionGroup, isRequir
13
16
  return (_jsxs("fieldset", { className: componentClassName, children: [labelGroup ? (_jsxs("legend", { className: "af-card-checkbox__legend", children: [_jsxs("p", { children: [labelGroup, isRequired ? _jsx("span", { "aria-hidden": true, children: "\u00A0*" }) : null] }), descriptionGroup ? (_jsx("p", { className: "af-card-checkbox__description", children: descriptionGroup })) : null] })) : null, _jsxs("div", { className: "af-card-checkbox__choices", children: [_jsx("ul", { className: checkboxGroupClassName, children: options.map(({ hasError, ...optionProps }) => (_jsx("li", { children: _jsx(CardCheckboxItem, { ...inputProps, size: size, errorId: errorId, onChange: onChange, hasError: Boolean(error) || hasError, ...optionProps }) }, crypto.randomUUID()))) }), _jsx(ItemMessage, { id: errorId, message: error, messageType: "error" })] })] }));
14
17
  };
15
18
  CardCheckbox.displayName = "CardCheckbox";
19
+ /**
20
+ * @deprecated Use `CardCheckbox` from `@axa-fr/design-system-apollo-react/lf` instead.
21
+ */
22
+ export const CheckboxCard = CardCheckbox;
@@ -1 +1,5 @@
1
- export { Checkbox } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Checkbox as ApolloCheckbox } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Checkbox` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const Checkbox: typeof ApolloCheckbox;
@@ -1 +1,5 @@
1
- export { Checkbox } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Checkbox as ApolloCheckbox } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Checkbox` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const Checkbox = ApolloCheckbox;
@@ -1 +1,5 @@
1
- export { CheckboxText } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { CheckboxText as ApolloCheckboxText } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `CheckboxText` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const CheckboxText: typeof ApolloCheckboxText;
@@ -1 +1,5 @@
1
- export { CheckboxText } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { CheckboxText as ApolloCheckboxText } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `CheckboxText` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const CheckboxText = ApolloCheckboxText;
@@ -1 +1,9 @@
1
- export { Dropdown } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Dropdown as ApolloDropdown } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Dropdown` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const Dropdown: typeof ApolloDropdown;
6
+ /**
7
+ * @deprecated Use `Dropdown` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
9
+ export declare const Select: typeof ApolloDropdown;
@@ -1 +1,9 @@
1
- export { Dropdown } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Dropdown as ApolloDropdown } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Dropdown` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const Dropdown = ApolloDropdown;
6
+ /**
7
+ * @deprecated Use `Dropdown` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
9
+ export const Select = ApolloDropdown;
@@ -27,6 +27,9 @@ type Props = Omit<ComponentPropsWithRef<"input">, "required"> & {
27
27
  onView?: (id: string) => void;
28
28
  onDelete?: (id: string) => void;
29
29
  };
30
+ /**
31
+ * @deprecated Use `FileUpload` from apollo/lf package instead.
32
+ */
30
33
  declare const FileUpload: {
31
34
  ({ id, label, buttonLabel, instructions, dropzoneDescription, filesListLabel, required, files, errors, globalError, isMobile, withPadding, onView, onDelete, ...otherProps }: Props): import("react/jsx-runtime").JSX.Element;
32
35
  displayName: string;
@@ -18,6 +18,9 @@ function getReadableFileSizeString(fileSizeInBytes) {
18
18
  } while (fileSizeInBytesCopy > 1000);
19
19
  return Math.max(fileSizeInBytesCopy, 0.1).toFixed(1) + byteUnits[i];
20
20
  }
21
+ /**
22
+ * @deprecated Use `FileUpload` from apollo/lf package instead.
23
+ */
21
24
  const FileUpload = ({ id, label, buttonLabel, instructions, dropzoneDescription, filesListLabel, required, files, errors, globalError, isMobile, withPadding = false, onView, onDelete, ...otherProps }) => {
22
25
  const idError = useId();
23
26
  const getIcon = (isInError, isLoading) => {
@@ -1 +1,9 @@
1
- export { InputDate } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { InputDate as ApolloInputDate } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `InputDate` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const InputDate: typeof ApolloInputDate;
6
+ /**
7
+ * @deprecated Use `InputDate` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
9
+ export declare const DateInput: typeof ApolloInputDate;
@@ -1 +1,9 @@
1
- export { InputDate } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { InputDate as ApolloInputDate } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `InputDate` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const InputDate = ApolloInputDate;
6
+ /**
7
+ * @deprecated Use `InputDate` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
9
+ export const DateInput = ApolloInputDate;
@@ -3,5 +3,8 @@ type InputErrorProps = {
3
3
  message: string;
4
4
  id?: string;
5
5
  };
6
+ /**
7
+ * @deprecated Use `ItemMessage` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
6
9
  export declare const InputError: ({ message, id }: InputErrorProps) => import("react/jsx-runtime").JSX.Element;
7
10
  export {};
@@ -2,4 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import errorIcon from "@material-symbols/svg-400/outlined/error.svg";
3
3
  import "@axa-fr/design-system-look-and-feel-css/dist/Form/InputError/InputError.scss";
4
4
  import { Svg } from "../../Svg";
5
+ /**
6
+ * @deprecated Use `ItemMessage` from `@axa-fr/design-system-apollo-react/lf` instead.
7
+ */
5
8
  export const InputError = ({ message, id }) => (_jsxs("div", { className: "af-input-error", children: [_jsx(Svg, { src: errorIcon, className: "af-input-error__icon" }), _jsx("span", { id: id, "aria-live": "assertive", className: "af-input-error__message", children: message })] }));
@@ -1 +1,9 @@
1
- export { TextInput } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { InputText as ApolloInputText } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `TextInput` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const TextInput: typeof ApolloInputText;
6
+ /**
7
+ * @deprecated Use `TextInput` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
9
+ export declare const InputText: typeof ApolloInputText;
@@ -1 +1,9 @@
1
- export { TextInput } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { InputText as ApolloInputText } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `TextInput` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const TextInput = ApolloInputText;
6
+ /**
7
+ * @deprecated Use `TextInput` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
9
+ export const InputText = ApolloInputText;
@@ -1 +1,5 @@
1
- export { ItemFile } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { ItemFile as ApolloItemFile } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `ItemFile` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const ItemFile: typeof ApolloItemFile;
@@ -1 +1,5 @@
1
- export { ItemFile } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { ItemFile as ApolloItemFile } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `ItemFile` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const ItemFile = ApolloItemFile;
@@ -1 +1,5 @@
1
- export { ItemLabel } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { ItemLabel as ApolloItemLabel } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `ItemLabel` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const ItemLabel: typeof ApolloItemLabel;
@@ -1 +1,5 @@
1
- export { ItemLabel } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { ItemLabel as ApolloItemLabel } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `ItemLabel` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const ItemLabel = ApolloItemLabel;
@@ -1 +1,5 @@
1
- export { ItemMessage } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { ItemMessage as ApolloItemMessage } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `ItemMessage` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const ItemMessage: typeof ApolloItemMessage;
@@ -1 +1,5 @@
1
- export { ItemMessage } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { ItemMessage as ApolloItemMessage } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `ItemMessage` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const ItemMessage = ApolloItemMessage;
@@ -1 +1,5 @@
1
- export { Radio } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Radio as ApolloRadio } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Radio` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const Radio: typeof ApolloRadio;
@@ -1 +1,5 @@
1
- export { Radio } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Radio as ApolloRadio } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Radio` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const Radio = ApolloRadio;
@@ -11,7 +11,17 @@ export type CardRadioProps = Omit<ComponentProps<typeof Radio>, "size"> & {
11
11
  options: TCardRadioItemOption[];
12
12
  error?: string;
13
13
  };
14
+ /**
15
+ * @deprecated Use `CardRadio` from `@axa-fr/design-system-apollo-react/lf` instead.
16
+ */
14
17
  export declare const RadioCard: {
15
18
  ({ className, labelGroup, descriptionGroup, isRequired, options, type, error, name, value, onChange, ...inputProps }: CardRadioProps): import("react/jsx-runtime").JSX.Element;
16
19
  displayName: string;
17
20
  };
21
+ /**
22
+ * @deprecated Use `CardRadio` from `@axa-fr/design-system-apollo-react/lf` instead.
23
+ */
24
+ export declare const CardRadio: {
25
+ ({ className, labelGroup, descriptionGroup, isRequired, options, type, error, name, value, onChange, ...inputProps }: CardRadioProps): import("react/jsx-runtime").JSX.Element;
26
+ displayName: string;
27
+ };
@@ -4,6 +4,9 @@ import { ItemMessage } from "@axa-fr/design-system-apollo-react/lf";
4
4
  import { BREAKPOINT, getComponentClassName, useIsSmallScreen, } from "../../utilities";
5
5
  import { CardRadioItem } from "./CardRadioItem";
6
6
  import "@axa-fr/design-system-look-and-feel-css/dist/Form/RadioCard/RadioCard.scss";
7
+ /**
8
+ * @deprecated Use `CardRadio` from `@axa-fr/design-system-apollo-react/lf` instead.
9
+ */
7
10
  export const RadioCard = ({ className, labelGroup, descriptionGroup, isRequired, options, type = "vertical", error, name, value, onChange, ...inputProps }) => {
8
11
  const componentClassName = getComponentClassName("af-card-radio__container", className);
9
12
  const RadioGroupClassName = getComponentClassName("af-card-radio-group", className, type);
@@ -18,3 +21,7 @@ export const RadioCard = ({ className, labelGroup, descriptionGroup, isRequired,
18
21
  : undefined, ...inputProps, ...cardRadioItemProps }, `${name ?? cardRadioId}-${cardRadioItemProps.label}`))) }), _jsx(ItemMessage, { id: errorId, message: error, messageType: "error" })] }));
19
22
  };
20
23
  RadioCard.displayName = "RadioCard";
24
+ /**
25
+ * @deprecated Use `CardRadio` from `@axa-fr/design-system-apollo-react/lf` instead.
26
+ */
27
+ export const CardRadio = RadioCard;
@@ -1 +1,5 @@
1
- export { TextArea } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { TextArea as ApolloTextArea } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `TextArea` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const TextArea: typeof ApolloTextArea;
@@ -1 +1,5 @@
1
- export { TextArea } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { TextArea as ApolloTextArea } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `TextArea` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const TextArea = ApolloTextArea;
@@ -139,6 +139,7 @@ export const FieldForm = ({ children, message = null, messageType = MessageTypes
139
139
  setState,
140
140
  setStateMemoryFn,
141
141
  ]);
142
+ // for particular case on particular browers which does not throw onFocus or onBlur event
142
143
  const onChange = () => onChangeByStateFn(setState, state?.hasChange);
143
144
  const onBlur = () => setState(setStateOnBlurFn());
144
145
  const onFocus = () => setState(setStateOnFocusFn({ message, messageType }));
@@ -13,6 +13,7 @@ const listClassModifier = (classModifier) => {
13
13
  };
14
14
  export const getComponentClassName = (className, classModifier, defaultClassName) => {
15
15
  const classNameToUse = className || defaultClassName;
16
+ // Fail fast, when no className or defaultClassName we don't want to loop on modifier
16
17
  if (!classNameToUse) {
17
18
  return "";
18
19
  }
@@ -1 +1,5 @@
1
- export { DebugGrid } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { DebugGrid as ApolloDebugGrid } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `DebugGrid` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const DebugGrid: typeof ApolloDebugGrid;
@@ -1 +1,5 @@
1
- export { DebugGrid } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { DebugGrid as ApolloDebugGrid } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `DebugGrid` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const DebugGrid = ApolloDebugGrid;
@@ -1 +1,9 @@
1
- export { Heading, type HeadingLevel, } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Heading as ApolloHeading, type HeadingLevel as ApolloHeadingLevel } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Heading` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const Heading: typeof ApolloHeading;
6
+ /**
7
+ * @deprecated Use `HeadingLevel` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
9
+ export type HeadingLevel = ApolloHeadingLevel;
@@ -1 +1,5 @@
1
- export { Heading, } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Heading as ApolloHeading, } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Heading` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const Heading = ApolloHeading;
@@ -1 +1,30 @@
1
- export { Icon, iconVariants, type IconVariants, iconSizeVariants, type IconSizeVariants, } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Icon as ApolloIcon, type IconVariants as ApolloIconVariants, type IconSizeVariants as apolloIconSizeVariants } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Icon` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const Icon: typeof ApolloIcon;
6
+ /**
7
+ * @deprecated Use `iconVariants` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
9
+ export declare const iconVariants: {
10
+ readonly primary: "primary";
11
+ readonly secondary: "secondary";
12
+ readonly disabled: "disabled";
13
+ };
14
+ /**
15
+ * @deprecated Use `IconVariants` from `@axa-fr/design-system-apollo-react/lf` instead.
16
+ */
17
+ export type IconVariants = ApolloIconVariants;
18
+ /**
19
+ * @deprecated Use `iconSizeVariants` from `@axa-fr/design-system-apollo-react/lf` instead.
20
+ */
21
+ export declare const iconSizeVariants: {
22
+ readonly L: "large";
23
+ readonly M: "medium";
24
+ readonly S: "small";
25
+ readonly XS: "extra-small";
26
+ };
27
+ /**
28
+ * @deprecated Use `IconSizeVariants` from `@axa-fr/design-system-apollo-react/lf` instead.
29
+ */
30
+ export type IconSizeVariants = apolloIconSizeVariants;
package/dist/Icon/Icon.js CHANGED
@@ -1 +1,13 @@
1
- export { Icon, iconVariants, iconSizeVariants, } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Icon as ApolloIcon, iconVariants as apolloIconVariants, iconSizeVariants as ApolloIconSizeVariants, } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Icon` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const Icon = ApolloIcon;
6
+ /**
7
+ * @deprecated Use `iconVariants` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
9
+ export const iconVariants = apolloIconVariants;
10
+ /**
11
+ * @deprecated Use `iconSizeVariants` from `@axa-fr/design-system-apollo-react/lf` instead.
12
+ */
13
+ export const iconSizeVariants = ApolloIconSizeVariants;
@@ -5,5 +5,8 @@ type IconBgProps = {
5
5
  classModifier?: string;
6
6
  children: ReactNode;
7
7
  };
8
+ /**
9
+ * @deprecated Use `Icon` from `@axa-fr/design-system-apollo-react/lf` instead.
10
+ */
8
11
  export declare const IconBg: ({ children, className, classModifier, isDisabled, }: IconBgProps) => import("react/jsx-runtime").JSX.Element;
9
12
  export {};