@axa-fr/design-system-apollo-react 1.0.5-alpha.249 → 1.0.5-alpha.251

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 (37) hide show
  1. package/dist/Form/checkbox/checkbox/CheckboxApollo.d.ts +6 -0
  2. package/dist/Form/checkbox/checkbox/CheckboxApollo.js +6 -0
  3. package/dist/Form/checkbox/checkbox/CheckboxCommon.d.ts +15 -0
  4. package/dist/Form/checkbox/checkbox/CheckboxCommon.js +5 -0
  5. package/dist/Form/checkbox/checkbox/CheckboxLf.d.ts +6 -0
  6. package/dist/Form/checkbox/checkbox/CheckboxLf.js +6 -0
  7. package/dist/Form/checkbox/checkboxCard/CheckboxCardApollo.d.ts +6 -0
  8. package/dist/Form/checkbox/checkboxCard/CheckboxCardApollo.js +7 -0
  9. package/dist/Form/checkbox/checkboxCard/CheckboxCardCommon.d.ts +29 -0
  10. package/dist/Form/checkbox/checkboxCard/CheckboxCardCommon.js +16 -0
  11. package/dist/Form/checkbox/checkboxCard/CheckboxCardLF.d.ts +6 -0
  12. package/dist/Form/checkbox/checkboxCard/CheckboxCardLF.js +7 -0
  13. package/dist/Form/checkbox/checkboxText/CheckboxTextApollo.d.ts +6 -0
  14. package/dist/Form/checkbox/checkboxText/CheckboxTextApollo.js +7 -0
  15. package/dist/Form/checkbox/checkboxText/CheckboxTextCommon.d.ts +19 -0
  16. package/dist/Form/checkbox/checkboxText/CheckboxTextCommon.js +10 -0
  17. package/dist/Form/checkbox/checkboxText/CheckboxTextLF.d.ts +6 -0
  18. package/dist/Form/checkbox/checkboxText/CheckboxTextLF.js +7 -0
  19. package/dist/Heading/HeadingApollo.d.ts +4 -0
  20. package/dist/Heading/HeadingApollo.js +5 -0
  21. package/dist/Heading/HeadingCommon.d.ts +15 -0
  22. package/dist/Heading/HeadingCommon.js +8 -0
  23. package/dist/Heading/HeadingLF.d.ts +4 -0
  24. package/dist/Heading/HeadingLF.js +5 -0
  25. package/dist/Heading/HeadingWithSubheadings.d.ts +10 -0
  26. package/dist/Heading/HeadingWithSubheadings.js +2 -0
  27. package/dist/Heading/types.d.ts +6 -0
  28. package/dist/Heading/types.js +1 -0
  29. package/dist/index.d.ts +4 -0
  30. package/dist/index.js +4 -0
  31. package/dist/indexLF.d.ts +4 -0
  32. package/dist/indexLF.js +4 -0
  33. package/dist/utilities/constants.d.ts +6 -0
  34. package/dist/utilities/constants.js +6 -0
  35. package/dist/utilities/hook/useIsSmallScreen.d.ts +1 -0
  36. package/dist/utilities/hook/useIsSmallScreen.js +14 -0
  37. package/package.json +3 -3
@@ -0,0 +1,6 @@
1
+ import "@axa-fr/design-system-apollo-css/dist/Form/Checkbox/Checkbox/CheckboxApollo.scss";
2
+ import { CheckboxProps } from "./CheckboxCommon";
3
+ export declare const Checkbox: {
4
+ (props: CheckboxProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "@axa-fr/design-system-apollo-css/dist/Form/Checkbox/Checkbox/CheckboxApollo.scss";
3
+ import checkBoxIcon from "@material-symbols/svg-400/outlined/check_small.svg";
4
+ import { CheckboxCommon } from "./CheckboxCommon";
5
+ export const Checkbox = (props) => (_jsx(CheckboxCommon, { ...props, checkBoxIcon: checkBoxIcon }));
6
+ Checkbox.displayName = "Checkbox";
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ type CheckboxIcon = {
3
+ checkBoxIcon: string;
4
+ };
5
+ export type CheckboxProps = React.InputHTMLAttributes<HTMLInputElement> & {
6
+ errorId?: string;
7
+ hasError?: boolean;
8
+ className?: string;
9
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "disabled">;
10
+ export type CheckboxCommonProps = CheckboxProps & CheckboxIcon;
11
+ declare const CheckboxCommon: {
12
+ ({ errorId, checkBoxIcon, hasError, ...inputProps }: CheckboxCommonProps): import("react/jsx-runtime").JSX.Element;
13
+ displayName: string;
14
+ };
15
+ export { CheckboxCommon };
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Svg } from "../../../Svg/Svg";
3
+ const CheckboxCommon = ({ errorId, checkBoxIcon, hasError, ...inputProps }) => (_jsxs("span", { className: "af-checkbox", children: [_jsx("input", { ...inputProps, type: "checkbox", "aria-errormessage": errorId, "aria-invalid": hasError, disabled: false }), _jsx("span", { className: "af-checkbox__icons", children: _jsx(Svg, { src: checkBoxIcon, className: "af-checkbox__checked", "aria-hidden": true }) })] }));
4
+ CheckboxCommon.displayName = "CheckboxCommon";
5
+ export { CheckboxCommon };
@@ -0,0 +1,6 @@
1
+ import "@axa-fr/design-system-apollo-css/dist/Form/Checkbox/Checkbox/CheckboxLF.scss";
2
+ import { CheckboxProps } from "./CheckboxCommon";
3
+ export declare const Checkbox: {
4
+ (props: CheckboxProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "@axa-fr/design-system-apollo-css/dist/Form/Checkbox/Checkbox/CheckboxLF.scss";
3
+ import checkBoxIcon from "@material-symbols/svg-400/outlined/check.svg";
4
+ import { CheckboxCommon } from "./CheckboxCommon";
5
+ export const Checkbox = (props) => (_jsx(CheckboxCommon, { ...props, checkBoxIcon: checkBoxIcon }));
6
+ Checkbox.displayName = "Checkbox";
@@ -0,0 +1,6 @@
1
+ import "@axa-fr/design-system-apollo-css/dist/Form/Checkbox/CheckboxCard/CheckboxCardApollo.scss";
2
+ import { CheckboxCardProps } from "./CheckboxCardCommon";
3
+ export declare const CheckboxCard: {
4
+ (props: CheckboxCardProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "@axa-fr/design-system-apollo-css/dist/Form/Checkbox/CheckboxCard/CheckboxCardApollo.scss";
3
+ import { CheckboxCardCommon } from "./CheckboxCardCommon";
4
+ import { Checkbox } from "../checkbox/CheckboxApollo";
5
+ import { Icon } from "../../../Icon/IconApollo";
6
+ export const CheckboxCard = (props) => (_jsx(CheckboxCardCommon, { ...props, IconComponent: Icon, CheckboxComponent: Checkbox }));
7
+ CheckboxCard.displayName = "CheckboxCard";
@@ -0,0 +1,29 @@
1
+ import React, { type ComponentProps, ComponentPropsWithRef, type ComponentType, type ReactNode } from "react";
2
+ import { CheckboxProps } from "../checkbox/CheckboxCommon";
3
+ import { Icon } from "../../../Icon/IconCommon";
4
+ type CheckboxComponent = {
5
+ CheckboxComponent: ComponentType<CheckboxProps>;
6
+ };
7
+ type IconComponent = {
8
+ IconComponent: ComponentType<ComponentProps<typeof Icon>>;
9
+ };
10
+ export type CheckboxCardProps = ComponentPropsWithRef<"input"> & {
11
+ type: "vertical" | "horizontal";
12
+ labelGroup?: string;
13
+ descriptionGroup?: string;
14
+ isRequired?: boolean;
15
+ options: ({
16
+ label: ReactNode;
17
+ subtitle?: ReactNode;
18
+ description?: ReactNode;
19
+ hasError?: boolean;
20
+ icon?: string;
21
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "disabled">)[];
22
+ onChange?: React.ChangeEventHandler;
23
+ };
24
+ export type CheckboxCardCommonProps = CheckboxCardProps & CheckboxComponent & IconComponent;
25
+ declare const CheckboxCardCommon: {
26
+ ({ className, labelGroup, descriptionGroup, CheckboxComponent, IconComponent, isRequired, options, onChange, type, }: CheckboxCardCommonProps): import("react/jsx-runtime").JSX.Element;
27
+ displayName: string;
28
+ };
29
+ export { CheckboxCardCommon };
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useId, } from "react";
3
+ import { getComponentClassName } from "../../../utilities/getComponentClassName";
4
+ import { useIsSmallScreen } from "../../../utilities/hook/useIsSmallScreen";
5
+ import { BREAKPOINT } from "../../../utilities/constants";
6
+ const CheckboxCardCommon = ({ className, labelGroup, descriptionGroup, CheckboxComponent, IconComponent, isRequired, options, onChange, type = "vertical", }) => {
7
+ const componentClassName = getComponentClassName("af-checkbox-card__container", className);
8
+ const checkboxGroupClassName = getComponentClassName(`af-checkbox-card-group--${type}`, className);
9
+ const optionId = useId();
10
+ const errorId = useId();
11
+ const isMobile = useIsSmallScreen(BREAKPOINT.SM);
12
+ const size = isMobile ? "M" : "L";
13
+ return (_jsxs("div", { className: componentClassName, children: [_jsxs("div", { className: "af-checkbox-card__label-container", children: [labelGroup && (_jsxs("span", { className: "af-checkbox-card__label", id: optionId, children: [labelGroup, isRequired && _jsx("span", { "aria-hidden": true, children: "\u00A0*" })] })), descriptionGroup && (_jsx("span", { className: "af-checkbox-card__description", children: descriptionGroup }))] }), _jsx("div", { role: "group", className: checkboxGroupClassName, children: options.map(({ label, description, subtitle, icon, hasError, ...inputProps }) => (_jsxs("label", { "aria-invalid": hasError, htmlFor: `id-${inputProps.name}`, className: "af-checkbox-card-label", children: [_jsx(CheckboxComponent, { id: `id-${inputProps.name}`, errorId: errorId, hasError: hasError, onChange: onChange, ...inputProps }), _jsxs("div", { className: "af-checkbox-card-content", children: [icon && _jsx(IconComponent, { src: icon, size: size }), _jsxs("div", { className: "af-checkbox-card-content-description", children: [_jsx("span", { children: label }), description && _jsx("span", { children: description }), subtitle && _jsx("span", { children: subtitle })] })] })] }, inputProps.name))) })] }));
14
+ };
15
+ CheckboxCardCommon.displayName = "CheckboxCardCommon";
16
+ export { CheckboxCardCommon };
@@ -0,0 +1,6 @@
1
+ import "@axa-fr/design-system-apollo-css/dist/Form/Checkbox/CheckboxCard/CheckboxCardLF.scss";
2
+ import { CheckboxCardProps } from "./CheckboxCardCommon";
3
+ export declare const CheckboxCard: {
4
+ (props: CheckboxCardProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "@axa-fr/design-system-apollo-css/dist/Form/Checkbox/CheckboxCard/CheckboxCardLF.scss";
3
+ import { CheckboxCardCommon } from "./CheckboxCardCommon";
4
+ import { Checkbox } from "../checkbox/CheckboxLf";
5
+ import { Icon } from "../../../Icon/IconLF";
6
+ export const CheckboxCard = (props) => (_jsx(CheckboxCardCommon, { ...props, IconComponent: Icon, CheckboxComponent: Checkbox }));
7
+ CheckboxCard.displayName = "CheckboxCard";
@@ -0,0 +1,6 @@
1
+ import "@axa-fr/design-system-apollo-css/dist/Form/Checkbox/CheckboxText/CheckboxTextApollo.scss";
2
+ import { CheckboxTextProps } from "./CheckboxTextCommon";
3
+ export declare const CheckboxText: {
4
+ (props: CheckboxTextProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "@axa-fr/design-system-apollo-css/dist/Form/Checkbox/CheckboxText/CheckboxTextApollo.scss";
3
+ import { CheckboxTextCommon } from "./CheckboxTextCommon";
4
+ import { Checkbox } from "../checkbox/CheckboxApollo";
5
+ import { ItemMessage } from "../../ItemMessage/ItemMessageApollo";
6
+ export const CheckboxText = (props) => (_jsx(CheckboxTextCommon, { ...props, CheckboxComponent: Checkbox, ItemMessageComponent: ItemMessage }));
7
+ CheckboxText.displayName = "CheckboxText";
@@ -0,0 +1,19 @@
1
+ import React, { ReactNode, type ComponentType, type ComponentProps } from "react";
2
+ import { CheckboxProps } from "../checkbox/CheckboxCommon";
3
+ import { ItemMessage } from "../../ItemMessage/ItemMessageCommon";
4
+ type CheckboxComponent = {
5
+ CheckboxComponent: ComponentType<CheckboxProps>;
6
+ };
7
+ type ItemMessageComponen = {
8
+ ItemMessageComponent: ComponentType<ComponentProps<typeof ItemMessage>>;
9
+ };
10
+ export type CheckboxTextProps = {
11
+ label: string | ReactNode;
12
+ errorMessage?: string;
13
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "disabled">;
14
+ export type CheckboxTextCommonProps = CheckboxTextProps & CheckboxComponent & ItemMessageComponen;
15
+ declare const CheckboxTextCommon: {
16
+ ({ label, errorMessage, CheckboxComponent, ItemMessageComponent, ...inputProps }: CheckboxTextCommonProps): import("react/jsx-runtime").JSX.Element;
17
+ displayName: string;
18
+ };
19
+ export { CheckboxTextCommon };
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useId, } from "react";
3
+ const CheckboxTextCommon = ({ label, errorMessage, CheckboxComponent, ItemMessageComponent, ...inputProps }) => {
4
+ const errorId = useId();
5
+ let inputId = useId();
6
+ inputId = inputProps.id || inputId;
7
+ return (_jsxs("div", { className: "af-checkbox-text", children: [_jsxs("label", { htmlFor: inputId, children: [_jsx(CheckboxComponent, { id: inputId, errorId: errorId, hasError: Boolean(errorMessage), ...inputProps }), _jsx("span", { children: label })] }, inputProps.name), _jsx("div", { className: "af-checkbox-text__error", children: _jsx(ItemMessageComponent, { message: errorMessage }) })] }));
8
+ };
9
+ CheckboxTextCommon.displayName = "CheckboxTextCommon";
10
+ export { CheckboxTextCommon };
@@ -0,0 +1,6 @@
1
+ import "@axa-fr/design-system-apollo-css/dist/Form/Checkbox/CheckboxText/CheckboxTextLF.scss";
2
+ import { CheckboxTextProps } from "./CheckboxTextCommon";
3
+ export declare const CheckboxText: {
4
+ (props: CheckboxTextProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "@axa-fr/design-system-apollo-css/dist/Form/Checkbox/CheckboxText/CheckboxTextLF.scss";
3
+ import { CheckboxTextCommon } from "./CheckboxTextCommon";
4
+ import { Checkbox } from "../checkbox/CheckboxLf";
5
+ import { ItemMessage } from "../../ItemMessage/ItemMessageLF";
6
+ export const CheckboxText = (props) => (_jsx(CheckboxTextCommon, { ...props, CheckboxComponent: Checkbox, ItemMessageComponent: ItemMessage }));
7
+ CheckboxText.displayName = "CheckboxText";
@@ -0,0 +1,4 @@
1
+ import "@axa-fr/design-system-apollo-css/dist/Heading/HeadingApollo.scss";
2
+ import { HeadingProps } from "./types";
3
+ export type { HeadingLevel, HeadingProps } from "./types";
4
+ export declare const Heading: ({ tag, tagProps, ...props }: HeadingProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "@axa-fr/design-system-apollo-css/dist/Heading/HeadingApollo.scss";
3
+ import { DEFAULT_TAG_PROPS, HeadingCommon } from "./HeadingCommon";
4
+ import { Tag } from "../Tag/TagApollo";
5
+ export const Heading = ({ tag, tagProps = {}, ...props }) => (_jsx(HeadingCommon, { ...props, tag: tag && (_jsx(Tag, { ...DEFAULT_TAG_PROPS, ...tagProps, children: tag })) }));
@@ -0,0 +1,15 @@
1
+ import React, { type ReactNode } from "react";
2
+ import { IconProps } from "../Icon/IconCommon";
3
+ import { TagProps } from "../Tag/TagCommon";
4
+ import { HeadingLevel } from "./types";
5
+ export type HeadingCommonProps = React.PropsWithChildren<{
6
+ level?: HeadingLevel;
7
+ icon?: string;
8
+ iconProps?: Omit<IconProps, "src">;
9
+ tag?: React.ReactNode;
10
+ firstSubtitle?: ReactNode;
11
+ secondSubtitle?: ReactNode;
12
+ className?: string;
13
+ }>;
14
+ export declare const DEFAULT_TAG_PROPS: TagProps;
15
+ export declare const HeadingCommon: ({ children: title, className, firstSubtitle, secondSubtitle, level, icon, iconProps, tag, }: HeadingCommonProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import classNames from "classnames";
3
+ import { HeadingWithSubheadings } from "./HeadingWithSubheadings";
4
+ import { Icon } from "../Icon/IconCommon";
5
+ export const DEFAULT_TAG_PROPS = {
6
+ variant: "neutral",
7
+ };
8
+ export const HeadingCommon = ({ children: title, className, firstSubtitle, secondSubtitle, level = 1, icon, iconProps = {}, tag, }) => (_jsxs("header", { className: classNames("af-heading", className), children: [tag && level < 3 && _jsx("div", { className: "af-heading__label", children: tag }), icon && level === 1 && (_jsx(Icon, { src: icon, size: "L", hasBackground: true, variant: "secondary", ...iconProps, className: classNames("af-heading__icon", iconProps.className) })), _jsx(HeadingWithSubheadings, { title: title, firstSubtitle: firstSubtitle, titleComponent: `h${level}`, secondSubtitle: secondSubtitle })] }));
@@ -0,0 +1,4 @@
1
+ import "@axa-fr/design-system-apollo-css/dist/Heading/HeadingLF.scss";
2
+ import { HeadingProps } from "./types";
3
+ export type { HeadingLevel, HeadingProps } from "./types";
4
+ export declare const Heading: ({ tag, tagProps, ...props }: HeadingProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "@axa-fr/design-system-apollo-css/dist/Heading/HeadingLF.scss";
3
+ import { DEFAULT_TAG_PROPS, HeadingCommon } from "./HeadingCommon";
4
+ import { Tag } from "../Tag/TagLF";
5
+ export const Heading = ({ tag, tagProps = {}, ...props }) => (_jsx(HeadingCommon, { ...props, tag: tag && (_jsx(Tag, { ...DEFAULT_TAG_PROPS, ...tagProps, children: tag })) }));
@@ -0,0 +1,10 @@
1
+ import type { ReactNode } from "react";
2
+ import { HeadingLevel } from "./types";
3
+ type HeadingTextProps = {
4
+ title: ReactNode;
5
+ firstSubtitle?: ReactNode;
6
+ secondSubtitle?: ReactNode;
7
+ titleComponent?: `h${HeadingLevel}`;
8
+ };
9
+ export declare const HeadingWithSubheadings: ({ title, firstSubtitle, secondSubtitle, titleComponent: TitleComponent, }: HeadingTextProps) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,2 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ export const HeadingWithSubheadings = ({ title, firstSubtitle, secondSubtitle, titleComponent: TitleComponent = "h1", }) => (_jsxs("div", { className: "af-heading__title-container", children: [_jsx(TitleComponent, { className: "af-heading__title", children: title }), firstSubtitle && (_jsx("span", { className: "af-heading__subtitle", children: firstSubtitle })), TitleComponent === "h1" && secondSubtitle && (_jsx("span", { className: "af-heading__subtitle", children: secondSubtitle }))] }));
@@ -0,0 +1,6 @@
1
+ import type { TagProps } from "../Tag/TagCommon";
2
+ import type { HeadingCommonProps } from "./HeadingCommon";
3
+ export type HeadingLevel = 1 | 2 | 3;
4
+ export type HeadingProps = HeadingCommonProps & {
5
+ tagProps?: Omit<TagProps, "children">;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.d.ts CHANGED
@@ -25,3 +25,7 @@ export { ProgressBarGroup } from "./ProgressBarGroup/ProgressBarGroupApollo";
25
25
  export { Stepper } from "./Stepper/StepperApollo";
26
26
  export { DateInput } from "./Form/DateInput/DateInputApollo";
27
27
  export { TimelineVertical } from "./TimelineVertical/TimelineVerticalApollo";
28
+ export { Heading, type HeadingLevel } from "./Heading/HeadingApollo";
29
+ export { Checkbox } from "./Form/checkbox/checkbox/CheckboxApollo";
30
+ export { CheckboxText } from "./Form/checkbox/checkboxText/CheckboxTextApollo";
31
+ export { CheckboxCard } from "./Form/checkbox/checkboxCard/CheckboxCardApollo";
package/dist/index.js CHANGED
@@ -25,3 +25,7 @@ export { ProgressBarGroup } from "./ProgressBarGroup/ProgressBarGroupApollo";
25
25
  export { Stepper } from "./Stepper/StepperApollo";
26
26
  export { DateInput } from "./Form/DateInput/DateInputApollo";
27
27
  export { TimelineVertical } from "./TimelineVertical/TimelineVerticalApollo";
28
+ export { Heading } from "./Heading/HeadingApollo";
29
+ export { Checkbox } from "./Form/checkbox/checkbox/CheckboxApollo";
30
+ export { CheckboxText } from "./Form/checkbox/checkboxText/CheckboxTextApollo";
31
+ export { CheckboxCard } from "./Form/checkbox/checkboxCard/CheckboxCardApollo";
package/dist/indexLF.d.ts CHANGED
@@ -24,3 +24,7 @@ export { ProgressBarGroup } from "./ProgressBarGroup/ProgressBarGroupLF";
24
24
  export { Stepper } from "./Stepper/StepperLF";
25
25
  export { DateInput } from "./Form/DateInput/DateInputLF";
26
26
  export { TimelineVertical } from "./TimelineVertical/TimelineVerticalLF";
27
+ export { Heading, type HeadingLevel } from "./Heading/HeadingLF";
28
+ export { Checkbox } from "./Form/checkbox/checkbox/CheckboxLf";
29
+ export { CheckboxText } from "./Form/checkbox/checkboxText/CheckboxTextLF";
30
+ export { CheckboxCard } from "./Form/checkbox/checkboxCard/CheckboxCardLF";
package/dist/indexLF.js CHANGED
@@ -24,3 +24,7 @@ export { ProgressBarGroup } from "./ProgressBarGroup/ProgressBarGroupLF";
24
24
  export { Stepper } from "./Stepper/StepperLF";
25
25
  export { DateInput } from "./Form/DateInput/DateInputLF";
26
26
  export { TimelineVertical } from "./TimelineVertical/TimelineVerticalLF";
27
+ export { Heading } from "./Heading/HeadingLF";
28
+ export { Checkbox } from "./Form/checkbox/checkbox/CheckboxLf";
29
+ export { CheckboxText } from "./Form/checkbox/checkboxText/CheckboxTextLF";
30
+ export { CheckboxCard } from "./Form/checkbox/checkboxCard/CheckboxCardLF";
@@ -0,0 +1,6 @@
1
+ export declare const BREAKPOINT: {
2
+ SM: number;
3
+ MD: number;
4
+ LG: number;
5
+ XL: number;
6
+ };
@@ -0,0 +1,6 @@
1
+ export const BREAKPOINT = {
2
+ SM: 667,
3
+ MD: 1023,
4
+ LG: 1279,
5
+ XL: 1599,
6
+ };
@@ -0,0 +1 @@
1
+ export declare const useIsSmallScreen: (breakPointToCheck: number) => boolean;
@@ -0,0 +1,14 @@
1
+ import { useCallback, useSyncExternalStore } from "react";
2
+ export const useIsSmallScreen = (breakPointToCheck) => {
3
+ const subscribe = useCallback((listener) => {
4
+ window.addEventListener("resize", listener);
5
+ return () => {
6
+ window.removeEventListener("resize", listener);
7
+ };
8
+ }, []);
9
+ const getSnapshot = useCallback(() => {
10
+ return window.innerWidth <= breakPointToCheck;
11
+ }, [breakPointToCheck]);
12
+ const getServerSnapshot = useCallback(() => false, []);
13
+ return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
14
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axa-fr/design-system-apollo-react",
3
- "version": "1.0.5-alpha.249",
3
+ "version": "1.0.5-alpha.251",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -46,8 +46,8 @@
46
46
  },
47
47
  "homepage": "https://github.com/AxaFrance/design-system#readme",
48
48
  "peerDependencies": {
49
- "@axa-fr/design-system-apollo-css": "1.0.5-alpha.249",
50
- "@axa-fr/design-system-look-and-feel-css": "1.0.5-alpha.249",
49
+ "@axa-fr/design-system-apollo-css": "1.0.5-alpha.251",
50
+ "@axa-fr/design-system-look-and-feel-css": "1.0.5-alpha.251",
51
51
  "@material-symbols/svg-400": ">= 0.19.0",
52
52
  "react": ">= 18"
53
53
  },