@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
@@ -1,6 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useMemo } from "react";
3
3
  import { getComponentClassName } from "../utilities";
4
+ /**
5
+ * @deprecated Use `Icon` from `@axa-fr/design-system-apollo-react/lf` instead.
6
+ */
4
7
  export const IconBg = ({ children, className, classModifier, isDisabled = false, }) => {
5
8
  const componentClassName = useMemo(() => {
6
9
  let newClassModifier = classModifier;
@@ -1 +1,9 @@
1
- export { ItemTabBar, type ItemTabBarProps, } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { ItemTabBar as ApolloItemTabBar, type ItemTabBarProps as ApolloItemTabBarProps } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `ItemTabBar` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const ItemTabBar: typeof ApolloItemTabBar;
6
+ /**
7
+ * @deprecated Use `ItemTabBarProps` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
9
+ export type ItemTabBarProps = ApolloItemTabBarProps;
@@ -1 +1,5 @@
1
- export { ItemTabBar, } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { ItemTabBar as ApolloItemTabBar, } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `ItemTabBar` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const ItemTabBar = ApolloItemTabBar;
@@ -1,2 +1,9 @@
1
- export { Footer } from "@axa-fr/design-system-apollo-react/lf";
2
- export type { FooterProps } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Footer as ApolloFooter, type FooterProps as ApolloFooterProps } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Footer` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const Footer: typeof ApolloFooter;
6
+ /**
7
+ * @deprecated Use `FooterProps` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
9
+ export type FooterProps = ApolloFooterProps;
@@ -1 +1,5 @@
1
- export { Footer } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Footer as ApolloFooter, } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Footer` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const Footer = ApolloFooter;
@@ -1 +1,5 @@
1
- export { Link } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Link as ApolloLink } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Link` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const Link: typeof ApolloLink;
package/dist/Link/Link.js CHANGED
@@ -1 +1,5 @@
1
- export { Link } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Link as ApolloLink } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Link` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const Link = ApolloLink;
@@ -1,2 +1,5 @@
1
1
  import type { TClickItem } from "./types";
2
+ /**
3
+ * @deprecated Use `ClickItem` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
2
5
  export declare const ClickItem: ({ children, icon, parentClickComponent: ClickComponent, isDisabled, disabled, className, classModifier, actionIcon, ...otherProps }: TClickItem) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,6 @@
1
1
  import type { ComponentProps, ComponentType, ElementType } from "react";
2
2
  import type { TParentClickComponentProps } from "./types";
3
+ /**
4
+ * @deprecated Use `ClickItem` from `@axa-fr/design-system-apollo-react/lf` instead.
5
+ */
3
6
  export declare const createClickItemParent: <TComponent extends ElementType>(Wrapper: ComponentType<TComponent> | TComponent, wrapperProps: ComponentProps<TComponent>) => ({ children, ...clickItemProps }: TParentClickComponentProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * @deprecated Use `ClickItem` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
2
5
  export const createClickItemParent = (Wrapper, wrapperProps) => {
3
6
  const ClickItemWrapper = ({ children, ...clickItemProps }) => (_jsx(Wrapper, { ...wrapperProps, ...clickItemProps, children: children }));
4
7
  return ClickItemWrapper;
@@ -3,6 +3,9 @@ import chevron from "@material-symbols/svg-400/outlined/chevron_right.svg";
3
3
  import { useMemo } from "react";
4
4
  import { Svg } from "../../Svg";
5
5
  import { getComponentClassName } from "../../utilities";
6
+ /**
7
+ * @deprecated Use `ClickItem` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
6
9
  export const ClickItem = ({ children, icon, parentClickComponent: ClickComponent = ({ children: parentClickComponentChildren, ...parentClickComponentProps }) => (_jsx("button", { type: "button", ...parentClickComponentProps, children: parentClickComponentChildren })), isDisabled = false, disabled = isDisabled, className, classModifier = "", actionIcon = _jsx(Svg, { src: chevron, "aria-hidden": true }), ...otherProps }) => {
7
10
  const componentClassName = useMemo(() => getComponentClassName("af-click-item", className, `${classModifier}${disabled ? " disabled" : ""}`), [className, classModifier, disabled]);
8
11
  return (_jsxs(ClickComponent, { className: componentClassName, disabled: disabled, ...otherProps, children: [_jsxs("div", { className: "af-click-item__content", children: [icon ? _jsx("div", { className: "af-click-item__icon", children: icon }) : null, _jsx("div", { className: "af-click-item__label", children: children })] }), _jsx("div", { className: "af-click-item__action", children: actionIcon })] }));
@@ -1 +1,5 @@
1
- export { ContentItemDuo } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { ContentItemDuo as ApolloContentItemDuo } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `ContentItemDuo` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const ContentItemDuo: typeof ApolloContentItemDuo;
@@ -1 +1,5 @@
1
- export { ContentItemDuo } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { ContentItemDuo as ApolloContentItemDuo } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `ContentItemDuo` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const ContentItemDuo = ApolloContentItemDuo;
@@ -1,2 +1,13 @@
1
- export { Message, messageVariants, } from "@axa-fr/design-system-apollo-react/lf";
2
- export type { MessageVariants } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Message as ApolloMessage, type MessageVariants as ApolloMessageVariantsType } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Message` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const Message: typeof ApolloMessage;
6
+ /**
7
+ * @deprecated Use `messageVariants` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
9
+ export declare const messageVariants: Record<ApolloMessageVariantsType, ApolloMessageVariantsType>;
10
+ /**
11
+ * @deprecated Use `MessageVariants` from `@axa-fr/design-system-apollo-react/lf` instead.
12
+ */
13
+ export type MessageVariants = ApolloMessageVariantsType;
@@ -1 +1,9 @@
1
- export { Message, messageVariants, } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Message as ApolloMessage, messageVariants as ApolloMessageVariants, } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Message` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const Message = ApolloMessage;
6
+ /**
7
+ * @deprecated Use `messageVariants` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
9
+ export const messageVariants = ApolloMessageVariants;
@@ -1,6 +1,9 @@
1
1
  import React from "react";
2
2
  import { type ModalCoreProps } from "./ModalCore";
3
3
  import { type ModalCoreHeaderProps } from "./components/ModalCoreHeader";
4
+ /**
5
+ * @deprecated Use `ModalProps` from `@axa-fr/design-system-apollo-react/lf` instead.
6
+ */
4
7
  export type ModalProps = Omit<ModalCoreProps, "onOutsideTap" | "title"> & ModalCoreHeaderProps & {
5
8
  onSubmit?: (event: React.MouseEvent | React.KeyboardEvent) => void;
6
9
  submitTitle?: string;
@@ -8,5 +11,8 @@ export type ModalProps = Omit<ModalCoreProps, "onOutsideTap" | "title"> & ModalC
8
11
  submitDisabled?: boolean;
9
12
  cancelDisabled?: boolean;
10
13
  };
14
+ /**
15
+ * @deprecated Use `Modal` from `@axa-fr/design-system-apollo-react/lf` instead.
16
+ */
11
17
  declare const Modal: React.ForwardRefExoticComponent<Omit<ModalProps, "ref"> & React.RefAttributes<HTMLDialogElement>>;
12
18
  export { Modal };
@@ -5,6 +5,9 @@ import { Button } from "../Button/Button";
5
5
  import { ModalCoreHeader, } from "./components/ModalCoreHeader";
6
6
  import { ModalCoreBody } from "./components/ModalCoreBody";
7
7
  import { ModalCoreFooter } from "./components/ModalCoreFooter";
8
+ /**
9
+ * @deprecated Use `Modal` from `@axa-fr/design-system-apollo-react/lf` instead.
10
+ */
8
11
  const Modal = forwardRef(({ children, title, submitTitle, cancelTitle, className, onCancel, onSubmit, closeButtonAriaLabel, cancelDisabled, submitDisabled, subtitle, iconTitle, levelTitle, ...props }, ref) => (_jsxs(ModalCore, { className: className, onOutsideTap: onCancel, title: title, ref: ref, ...props, children: [_jsx(ModalCoreHeader, { title: title, subtitle: subtitle, iconTitle: iconTitle, levelTitle: levelTitle, onCancel: onCancel, closeButtonAriaLabel: closeButtonAriaLabel }), _jsx(ModalCoreBody, { children: children }), _jsxs(ModalCoreFooter, { children: [cancelTitle ? (_jsx(Button, { variant: "secondary", onClick: onCancel, disabled: cancelDisabled, children: cancelTitle })) : null, onSubmit && submitTitle ? (_jsx(Button, { variant: "primary", onClick: onSubmit, disabled: submitDisabled, children: submitTitle })) : null] })] })));
9
12
  Modal.displayName = "Modal";
10
13
  export { Modal };
@@ -1,5 +1,8 @@
1
1
  import { type ReactNode } from "react";
2
2
  import "@axa-fr/design-system-look-and-feel-css/dist/Modal/Modal.scss";
3
+ /**
4
+ * @deprecated Use `ModalCoreProps` from `@axa-fr/design-system-apollo-react/lf` instead.
5
+ */
3
6
  export type ModalCoreProps = React.DetailedHTMLProps<React.DialogHTMLAttributes<HTMLDialogElement>, HTMLDialogElement> & {
4
7
  className?: string;
5
8
  title: string;
@@ -7,5 +10,8 @@ export type ModalCoreProps = React.DetailedHTMLProps<React.DialogHTMLAttributes<
7
10
  children: ReactNode;
8
11
  ref?: React.Ref<HTMLDialogElement>;
9
12
  };
13
+ /**
14
+ * @deprecated Use `ModalCore` from `@axa-fr/design-system-apollo-react/lf` instead.
15
+ */
10
16
  declare const ModalCore: import("react").ForwardRefExoticComponent<Omit<ModalCoreProps, "ref"> & import("react").RefAttributes<HTMLDialogElement>>;
11
17
  export { ModalCore };
@@ -1,6 +1,11 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import "@axa-fr/design-system-look-and-feel-css/dist/Modal/Modal.scss";
4
- const ModalCore = forwardRef(({ className, title = "", onOutsideTap, children, ...props }, ref) => (_jsx("dialog", { "aria-label": title, className: ["af-modal", className].filter(Boolean).join(" "), onClick: onOutsideTap, ref: ref, ...props, children: _jsx("div", { className: "af-modal__dialog", onClick: (e) => e.stopPropagation(), children: _jsx("div", { className: "af-modal__content", children: children }) }) })));
4
+ /**
5
+ * @deprecated Use `ModalCore` from `@axa-fr/design-system-apollo-react/lf` instead.
6
+ */
7
+ const ModalCore = forwardRef(({ className, title = "", onOutsideTap, children, ...props }, ref) => (
8
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/click-events-have-key-events
9
+ _jsx("dialog", { "aria-label": title, className: ["af-modal", className].filter(Boolean).join(" "), onClick: onOutsideTap, ref: ref, ...props, children: _jsx("div", { className: "af-modal__dialog", onClick: (e) => e.stopPropagation(), children: _jsx("div", { className: "af-modal__content", children: children }) }) })));
5
10
  ModalCore.displayName = "ModalCore";
6
11
  export { ModalCore };
@@ -1,2 +1,8 @@
1
+ /**
2
+ * @deprecated Use `ModalCoreBodyProps` from `@axa-fr/design-system-apollo-react/lf` instead.
3
+ */
1
4
  export type ModalCoreBodyProps = React.HTMLAttributes<HTMLDivElement>;
5
+ /**
6
+ * @deprecated Use `ModalCoreBody` from `@axa-fr/design-system-apollo-react/lf` instead.
7
+ */
2
8
  export declare const ModalCoreBody: ({ children, className, ...otherProps }: ModalCoreBodyProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * @deprecated Use `ModalCoreBody` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
2
5
  export const ModalCoreBody = ({ children, className, ...otherProps }) => (_jsx("section", { className: ["af-modal__body", className].filter(Boolean).join(" "), ...otherProps, children: children }));
@@ -1,2 +1,8 @@
1
+ /**
2
+ * @deprecated Use `ModalCoreFooterProps` from `@axa-fr/design-system-apollo-react/lf` instead.
3
+ */
1
4
  export type ModalCoreFooterProps = React.HTMLAttributes<HTMLDivElement>;
5
+ /**
6
+ * @deprecated Use `ModalCoreFooter` from `@axa-fr/design-system-apollo-react/lf` instead.
7
+ */
2
8
  export declare const ModalCoreFooter: ({ className, ...rest }: ModalCoreFooterProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * @deprecated Use `ModalCoreFooter` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
2
5
  export const ModalCoreFooter = ({ className, ...rest }) => (_jsx("footer", { className: ["af-modal__footer", className].filter(Boolean).join(" "), ...rest }));
@@ -1,5 +1,8 @@
1
1
  import type { HTMLAttributes, MouseEvent, KeyboardEvent } from "react";
2
2
  import type { TitleLevel } from "../../Title";
3
+ /**
4
+ * @deprecated Use `ModalCoreHeaderProps` from `@axa-fr/design-system-apollo-react/lf` instead.
5
+ */
3
6
  export type ModalCoreHeaderProps = HTMLAttributes<HTMLDivElement> & {
4
7
  className?: string;
5
8
  title: string;
@@ -9,4 +12,7 @@ export type ModalCoreHeaderProps = HTMLAttributes<HTMLDivElement> & {
9
12
  onCancel: (event: MouseEvent | KeyboardEvent) => void;
10
13
  closeButtonAriaLabel?: string;
11
14
  };
15
+ /**
16
+ * @deprecated Use `ModalCoreHeader` from `@axa-fr/design-system-apollo-react/lf` instead.
17
+ */
12
18
  export declare const ModalCoreHeader: ({ className, title, subtitle, iconTitle, levelTitle, onCancel, closeButtonAriaLabel, ...props }: ModalCoreHeaderProps) => import("react/jsx-runtime").JSX.Element;
@@ -2,6 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import closeSmall from "@material-symbols/svg-400/outlined/close.svg";
3
3
  import { Button } from "../../Button/Button";
4
4
  import { Svg } from "../../Svg";
5
+ /**
6
+ * @deprecated Use `ModalCoreHeader` from `@axa-fr/design-system-apollo-react/lf` instead.
7
+ */
5
8
  export const ModalCoreHeader = ({ className, title, subtitle, iconTitle, levelTitle = 2, onCancel, closeButtonAriaLabel = "Fermer la boite de dialogue", ...props }) => {
6
9
  const HLevel = `h${levelTitle}`;
7
10
  return (_jsxs("header", { className: ["af-modal__header", className].filter(Boolean).join(" "), ...props, children: [_jsx(Button, { variant: "ghost", iconLeft: _jsx(Svg, { src: closeSmall, width: 32, height: 32, role: "graphics-document" }), "aria-label": closeButtonAriaLabel, onClick: onCancel }), _jsxs("div", { className: "af-modal__header-title", children: [iconTitle ? (_jsx(Svg, { src: iconTitle, width: 32, height: 32, role: "graphics-document" })) : null, _jsx(HLevel, { className: "af-modal__header-title-heading", children: title }), subtitle ? (_jsx("span", { className: "af-modal__header-title-subtitle", children: subtitle })) : null] })] }));
@@ -1 +1,5 @@
1
- export { ProgressBar } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { ProgressBar as ApolloProgressBar } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `ProgressBar` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const ProgressBar: typeof ApolloProgressBar;
@@ -1 +1,5 @@
1
- export { ProgressBar } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { ProgressBar as ApolloProgressBar } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `ProgressBar` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const ProgressBar = ApolloProgressBar;
@@ -1 +1,5 @@
1
- export { ProgressBarGroup } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { ProgressBarGroup as ApolloProgressBarGroup } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Message` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const ProgressBarGroup: typeof ApolloProgressBarGroup;
@@ -1 +1,5 @@
1
- export { ProgressBarGroup } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { ProgressBarGroup as ApolloProgressBarGroup } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Message` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const ProgressBarGroup = ApolloProgressBarGroup;
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ /* eslint-disable react/no-array-index-key */
2
3
  import "@axa-fr/design-system-look-and-feel-css/dist/Skeleton/Skeleton.scss";
3
4
  export const Skeleton = ({ className = "af-skeleton", grid = [], ariaBusy = true, ariaLabel = "Chargement", maxCols = 12, colGap = 16, rowGap = 8, isLoading = true, children, }) => isLoading ? (_jsx("div", { className: `${className}-container`, "aria-label": ariaLabel, role: "status", "aria-live": "polite", "aria-busy": ariaBusy, style: {
4
5
  "--max-cols": maxCols,
@@ -1,2 +1,17 @@
1
- export { Spinner, spinnerVariants, } from "@axa-fr/design-system-apollo-react/lf";
2
- export type { SpinnerVariants } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Spinner as ApolloSpinner, type SpinnerVariants as ApolloSpinnerVariants } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Spinner` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const Spinner: typeof ApolloSpinner;
6
+ /**
7
+ * @deprecated Use `spinnerVariants` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
9
+ export declare const spinnerVariants: {
10
+ readonly blue: "blue";
11
+ readonly gray: "gray";
12
+ readonly white: "white";
13
+ };
14
+ /**
15
+ * @deprecated Use `SpinnerVariants` from `@axa-fr/design-system-apollo-react/lf` instead.
16
+ */
17
+ export type SpinnerVariants = ApolloSpinnerVariants;
@@ -1 +1,9 @@
1
- export { Spinner, spinnerVariants, } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Spinner as ApolloSpinner, spinnerVariants as apolloSpinnerVariants, } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Spinner` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const Spinner = ApolloSpinner;
6
+ /**
7
+ * @deprecated Use `spinnerVariants` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
9
+ export const spinnerVariants = apolloSpinnerVariants;
@@ -1 +1,5 @@
1
- export { Stepper } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Stepper as ApolloStepper } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Stepper` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const Stepper: typeof ApolloStepper;
@@ -1 +1,5 @@
1
- export { Stepper } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Stepper as ApolloStepper } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Stepper` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const Stepper = ApolloStepper;
package/dist/Svg/Svg.d.ts CHANGED
@@ -3,5 +3,8 @@ type SvgProps = SVGAttributes<SVGSVGElement> & {
3
3
  src: string;
4
4
  alt?: string;
5
5
  };
6
+ /**
7
+ * @deprecated Use `Svg` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
6
9
  export declare const Svg: ({ src, alt, width, height, ...props }: SvgProps) => import("react/jsx-runtime").JSX.Element | null;
7
10
  export {};
package/dist/Svg/Svg.js CHANGED
@@ -7,6 +7,9 @@ const cloneAttributes = (from, to) => {
7
7
  to.setAttribute(attribute, from.getAttribute(attribute));
8
8
  });
9
9
  };
10
+ /**
11
+ * @deprecated Use `Svg` from `@axa-fr/design-system-apollo-react/lf` instead.
12
+ */
10
13
  export const Svg = ({ src, alt, width = 24, height = 24, ...props }) => {
11
14
  const rootRef = useRef(null);
12
15
  const [hasError, setHasError] = useState(false);
@@ -14,6 +17,7 @@ export const Svg = ({ src, alt, width = 24, height = 24, ...props }) => {
14
17
  if (hasError) {
15
18
  setHasError(false);
16
19
  }
20
+ // eslint-disable-next-line react-hooks/exhaustive-deps
17
21
  }, [src]);
18
22
  useLayoutEffect(() => {
19
23
  if (hasError) {
@@ -25,6 +29,8 @@ export const Svg = ({ src, alt, width = 24, height = 24, ...props }) => {
25
29
  const svg = document.createElement("svg");
26
30
  parent.appendChild(svg);
27
31
  cloneAttributes(root, svg);
32
+ // Default SVG size was 24px with @material-design-icons/svg. With @material-symbols/svg-400 this is now 48px (with no native way to change it)
33
+ // In order not to break existing CSS, we manually set the default value back to 24px
28
34
  svg.setAttribute("width", width.toString());
29
35
  svg.setAttribute("height", height.toString());
30
36
  svgInjector(svg, {
@@ -1 +1,20 @@
1
- export { TabBar, type TabBarProps, tabBarDirection, type TabBarDirection, } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { TabBar as ApolloTabBar, type TabBarProps as ApolloTabBarProps, type TabBarDirection as ApolloTabBarDirection } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `TabBar` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const TabBar: typeof ApolloTabBar;
6
+ /**
7
+ * @deprecated Use `TabBarProps` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
9
+ export type TabBarProps = ApolloTabBarProps;
10
+ /**
11
+ * @deprecated Use `tabBarDirection` from `@axa-fr/design-system-apollo-react/lf` instead.
12
+ */
13
+ export declare const tabBarDirection: {
14
+ readonly center: "center";
15
+ readonly left: "left";
16
+ };
17
+ /**
18
+ * @deprecated Use `TabBarDirection` from `@axa-fr/design-system-apollo-react/lf` instead.
19
+ */
20
+ export type TabBarDirection = ApolloTabBarDirection;
@@ -1 +1,9 @@
1
- export { TabBar, tabBarDirection, } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { TabBar as ApolloTabBar, tabBarDirection as apolloTabBarDirection, } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `TabBar` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const TabBar = ApolloTabBar;
6
+ /**
7
+ * @deprecated Use `tabBarDirection` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
9
+ export const tabBarDirection = apolloTabBarDirection;
@@ -1,8 +1,14 @@
1
1
  import "@axa-fr/design-system-look-and-feel-css/dist/Tabs/Tabs.scss";
2
2
  import { ReactNode } from "react";
3
+ /**
4
+ * @deprecated Use `tabBarDirection` from `@axa-fr/design-system-apollo-react/lf` instead.
5
+ */
3
6
  export declare enum Direction {
4
7
  center = "center"
5
8
  }
9
+ /**
10
+ * @deprecated Use `TabBarProps` from `@axa-fr/design-system-apollo-react/lf` instead.
11
+ */
6
12
  type TabsProps = {
7
13
  items: {
8
14
  title: string;
@@ -12,5 +18,8 @@ type TabsProps = {
12
18
  preSelectedTabIndex?: number;
13
19
  direction?: Direction;
14
20
  };
21
+ /**
22
+ * @deprecated Use `TabBar` from `@axa-fr/design-system-apollo-react/lf` instead.
23
+ */
15
24
  export declare const TabsClient: ({ items, preSelectedTabIndex, direction, }: TabsProps) => import("react/jsx-runtime").JSX.Element;
16
25
  export {};
package/dist/Tabs/Tabs.js CHANGED
@@ -2,10 +2,16 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import "@axa-fr/design-system-look-and-feel-css/dist/Tabs/Tabs.scss";
3
3
  import classNames from "classnames";
4
4
  import { useCallback, useRef, useState } from "react";
5
+ /**
6
+ * @deprecated Use `tabBarDirection` from `@axa-fr/design-system-apollo-react/lf` instead.
7
+ */
5
8
  export var Direction;
6
9
  (function (Direction) {
7
10
  Direction["center"] = "center";
8
11
  })(Direction || (Direction = {}));
12
+ /**
13
+ * @deprecated Use `TabBar` from `@axa-fr/design-system-apollo-react/lf` instead.
14
+ */
9
15
  export const TabsClient = ({ items, preSelectedTabIndex, direction, }) => {
10
16
  const [selectedTabIndex, setSelectedTabIndex] = useState(preSelectedTabIndex || 0);
11
17
  const buttonRefs = useRef([]);
package/dist/Tag/Tag.d.ts CHANGED
@@ -1,2 +1,19 @@
1
- export { Tag, tagVariants } from "@axa-fr/design-system-apollo-react/lf";
2
- export type { TagVariants } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Tag as ApolloTag, type TagVariants as ApolloTagVariants } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Tag` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const Tag: typeof ApolloTag;
6
+ /**
7
+ * @deprecated Use `tagVariants` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
9
+ export declare const tagVariants: {
10
+ readonly info: "info";
11
+ readonly success: "success";
12
+ readonly warning: "warning";
13
+ readonly error: "error";
14
+ readonly neutral: "neutral";
15
+ };
16
+ /**
17
+ * @deprecated Use `TagVariants` from `@axa-fr/design-system-apollo-react/lf` instead.
18
+ */
19
+ export type TagVariants = ApolloTagVariants;
package/dist/Tag/Tag.js CHANGED
@@ -1 +1,9 @@
1
- export { Tag, tagVariants } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Tag as ApolloTag, tagVariants as apolloTagVariants, } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Tag` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const Tag = ApolloTag;
6
+ /**
7
+ * @deprecated Use `tagVariants` from `@axa-fr/design-system-apollo-react/lf` instead.
8
+ */
9
+ export const tagVariants = apolloTagVariants;
@@ -1 +1,5 @@
1
- export { TimelineVertical } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { TimelineVertical as ApolloTimelineVertical } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `TimelineVertical` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const TimelineVertical: typeof ApolloTimelineVertical;
@@ -1 +1,5 @@
1
- export { TimelineVertical } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { TimelineVertical as ApolloTimelineVertical } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `TimelineVertical` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const TimelineVertical = ApolloTimelineVertical;
@@ -10,5 +10,8 @@ type TitleProps = {
10
10
  size?: TitleSize;
11
11
  level?: TitleLevel;
12
12
  };
13
+ /**
14
+ * @deprecated Use `Heading` from `@axa-fr/design-system-apollo-react/lf` instead.
15
+ */
13
16
  export declare const Title: ({ children: title, className, classModifier, firstSubtitle, icon, secondSubtitle, size, level, }: TitleProps) => import("react/jsx-runtime").JSX.Element;
14
17
  export {};
@@ -4,6 +4,9 @@ import { IconBg } from "..";
4
4
  import { getComponentClassName } from "../utilities";
5
5
  import { TitleSize } from "./constants";
6
6
  import { TitleWithSubtitles } from "./TitleWithSubtitles";
7
+ /**
8
+ * @deprecated Use `Heading` from `@axa-fr/design-system-apollo-react/lf` instead.
9
+ */
7
10
  export const Title = ({ children: title, className, classModifier, firstSubtitle, icon, secondSubtitle, size = TitleSize.XL, level = size === TitleSize.L ? 2 : 1, }) => {
8
11
  const componentClassName = useMemo(() => getComponentClassName("af-title", className, classModifier ? `${classModifier} ${size}` : size), [classModifier, className, size]);
9
12
  const TitleWithSubtitlesPart = useCallback(({ ...args }) => (_jsx(TitleWithSubtitles, { title: title, firstSubtitle: firstSubtitle, level: level, ...args })), [title, firstSubtitle, level]);
@@ -1,5 +1,11 @@
1
+ /**
2
+ * @deprecated Use `Heading` from `@axa-fr/design-system-apollo-react/lf` instead.
3
+ */
1
4
  export declare enum TitleSize {
2
5
  XL = "xl",
3
6
  L = "l"
4
7
  }
8
+ /**
9
+ * @deprecated Use `Heading` from `@axa-fr/design-system-apollo-react/lf` instead.
10
+ */
5
11
  export type TitleLevel = 1 | 2 | 3 | 4 | 5 | 6;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated Use `Heading` from `@axa-fr/design-system-apollo-react/lf` instead.
3
+ */
1
4
  export var TitleSize;
2
5
  (function (TitleSize) {
3
6
  TitleSize["XL"] = "xl";
@@ -1 +1,5 @@
1
- export { Toggle } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Toggle as ApolloToggle } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Toggle` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export declare const Toggle: typeof ApolloToggle;
@@ -1 +1,5 @@
1
- export { Toggle } from "@axa-fr/design-system-apollo-react/lf";
1
+ import { Toggle as ApolloToggle } from "@axa-fr/design-system-apollo-react/lf";
2
+ /**
3
+ * @deprecated Use `Toggle` from `@axa-fr/design-system-apollo-react/lf` instead.
4
+ */
5
+ export const Toggle = ApolloToggle;