@axa-fr/canopee-react 2.0.0-alpha.73 → 2.0.0-alpha.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/distributeur/Accordion/Accordion.d.ts +1 -3
- package/dist/distributeur/Accordion/Accordion.js +2 -5
- package/dist/distributeur/Accordion/CollapseCard.d.ts +1 -3
- package/dist/distributeur/Accordion/CollapseCard.js +2 -4
- package/dist/distributeur/Accordion/Header.d.ts +1 -3
- package/dist/distributeur/Accordion/Header.js +1 -2
- package/dist/distributeur/Action/Action.d.ts +1 -3
- package/dist/distributeur/Action/Action.js +2 -3
- package/dist/distributeur/Form/Checkbox/CheckboxInput.js +2 -2
- package/dist/distributeur/Form/Checkbox/CheckboxItem.d.ts +1 -3
- package/dist/distributeur/Form/Checkbox/CheckboxItem.js +2 -2
- package/dist/distributeur/Form/Choice/Choice.d.ts +0 -2
- package/dist/distributeur/Form/Choice/ChoiceInput.js +1 -1
- package/dist/distributeur/Form/Date/Date.d.ts +2 -3
- package/dist/distributeur/Form/Date/Date.js +3 -3
- package/dist/distributeur/Form/Date/DateInput.js +1 -1
- package/dist/distributeur/Form/File/File.d.ts +1 -3
- package/dist/distributeur/Form/File/File.js +1 -2
- package/dist/distributeur/Form/File/FileInput.d.ts +3 -1
- package/dist/distributeur/Form/File/FileInput.js +2 -2
- package/dist/distributeur/Form/File/FileLine.d.ts +1 -2
- package/dist/distributeur/Form/File/FileLine.js +6 -3
- package/dist/distributeur/Form/File/FileTable.d.ts +1 -2
- package/dist/distributeur/Form/File/FileTable.js +6 -3
- package/dist/distributeur/Form/MultiSelect/MultiSelectInput.js +1 -1
- package/dist/distributeur/Form/NestedQuestion/NestedQuestion.js +6 -3
- package/dist/distributeur/Form/Number/Number.d.ts +2 -5
- package/dist/distributeur/Form/Number/Number.js +2 -3
- package/dist/distributeur/Form/Number/NumberInput.js +1 -1
- package/dist/distributeur/Form/Radio/Radio.d.ts +1 -1
- package/dist/distributeur/Form/Radio/RadioInput.js +1 -1
- package/dist/distributeur/Form/Radio/RadioItem.d.ts +1 -3
- package/dist/distributeur/Form/Radio/RadioItem.js +2 -2
- package/dist/distributeur/Form/Select/Select.d.ts +3 -19
- package/dist/distributeur/Form/Select/Select.js +3 -4
- package/dist/distributeur/Form/Select/SelectBase.d.ts +3 -24
- package/dist/distributeur/Form/Select/SelectBase.js +2 -7
- package/dist/distributeur/Form/Select/SelectDefault.d.ts +3 -3
- package/dist/distributeur/Form/Select/SelectInput.js +1 -1
- package/dist/distributeur/Form/Select/index.d.ts +0 -1
- package/dist/distributeur/Form/Select/index.js +0 -1
- package/dist/distributeur/Form/Text/Text.d.ts +2 -3
- package/dist/distributeur/Form/Text/Text.js +3 -3
- package/dist/distributeur/Form/Text/TextInput.js +1 -1
- package/dist/distributeur/Form/Textarea/Textarea.d.ts +2 -3
- package/dist/distributeur/Form/Textarea/Textarea.js +3 -3
- package/dist/distributeur/Form/Textarea/TextareaInput.js +1 -1
- package/dist/distributeur/Form/core/Field.d.ts +4 -23
- package/dist/distributeur/Form/core/Field.js +25 -16
- package/dist/distributeur/Form/core/FieldError.js +5 -2
- package/dist/distributeur/Form/core/getOptionClassName.d.ts +1 -1
- package/dist/distributeur/Form/core/getOptionClassName.js +2 -6
- package/dist/distributeur/Form/core/index.d.ts +0 -8
- package/dist/distributeur/Form/core/index.js +0 -4
- package/dist/distributeur/HelpButton/index.d.ts +1 -1
- package/dist/distributeur/HelpButton/index.js +4 -6
- package/dist/distributeur/Layout/Header/Header.d.ts +1 -3
- package/dist/distributeur/Layout/Header/Header.js +1 -2
- package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.d.ts +1 -2
- package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.js +7 -4
- package/dist/distributeur/Layout/Header/Infos/Infos.d.ts +1 -3
- package/dist/distributeur/Layout/Header/Infos/Infos.js +1 -2
- package/dist/distributeur/Layout/Header/Name/Name.d.ts +1 -3
- package/dist/distributeur/Layout/Header/Name/Name.js +1 -2
- package/dist/distributeur/Layout/Header/NavBar/NavBar.js +1 -6
- package/dist/distributeur/Layout/Header/NavBar/NavBarBase.d.ts +1 -3
- package/dist/distributeur/Layout/Header/NavBar/NavBarBase.js +7 -3
- package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItem.d.ts +2 -2
- package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItem.js +10 -3
- package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItemBase.d.ts +1 -2
- package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItemBase.js +6 -3
- package/dist/distributeur/Layout/Header/User/User.d.ts +1 -11
- package/dist/distributeur/Layout/Header/User/User.js +1 -2
- package/dist/distributeur/Messages/Message.d.ts +2 -6
- package/dist/distributeur/Messages/Message.js +3 -14
- package/dist/distributeur/ModalAgent/BooleanModal.d.ts +1 -6
- package/dist/distributeur/ModalAgent/BooleanModal.js +7 -4
- package/dist/distributeur/ModalAgent/Modal.d.ts +2 -7
- package/dist/distributeur/ModalAgent/Modal.js +7 -16
- package/dist/distributeur/ModalAgent/components/Body.d.ts +2 -5
- package/dist/distributeur/ModalAgent/components/Body.js +1 -2
- package/dist/distributeur/ModalAgent/components/Footer.d.ts +2 -5
- package/dist/distributeur/ModalAgent/components/Footer.js +1 -2
- package/dist/distributeur/ModalAgent/components/Header.d.ts +1 -11
- package/dist/distributeur/ModalAgent/components/Header.js +2 -3
- package/dist/distributeur/ModalAgent/components/HeaderBase.d.ts +2 -5
- package/dist/distributeur/ModalAgent/components/HeaderBase.js +1 -2
- package/dist/distributeur/Popover/AnimatedPopover.d.ts +1 -3
- package/dist/distributeur/Popover/AnimatedPopover.js +1 -2
- package/dist/distributeur/Popover/Popover.d.ts +1 -3
- package/dist/distributeur/Popover/Popover.js +2 -2
- package/dist/distributeur/Popover/Popover.types.d.ts +0 -2
- package/dist/distributeur/Popover/PopoverBase.d.ts +1 -3
- package/dist/distributeur/Popover/PopoverBase.js +2 -2
- package/dist/distributeur/Popover/PopoverClick.d.ts +1 -1
- package/dist/distributeur/Popover/PopoverClick.js +2 -2
- package/dist/distributeur/Popover/PopoverOver.d.ts +1 -1
- package/dist/distributeur/Popover/PopoverOver.js +2 -2
- package/dist/distributeur/Restitution/ArticleRestitution.d.ts +2 -5
- package/dist/distributeur/Restitution/ArticleRestitution.js +1 -2
- package/dist/distributeur/Restitution/HeaderRestitution.d.ts +1 -3
- package/dist/distributeur/Restitution/HeaderRestitution.js +1 -2
- package/dist/distributeur/Restitution/Restitution.d.ts +1 -3
- package/dist/distributeur/Restitution/Restitution.js +2 -2
- package/dist/distributeur/Restitution/SectionRestitution.d.ts +1 -3
- package/dist/distributeur/Restitution/SectionRestitution.js +1 -2
- package/dist/distributeur/Restitution/SectionRestitutionColumn.d.ts +1 -3
- package/dist/distributeur/Restitution/SectionRestitutionColumn.js +1 -2
- package/dist/distributeur/Restitution/SectionRestitutionRow.d.ts +1 -3
- package/dist/distributeur/Restitution/SectionRestitutionRow.js +5 -9
- package/dist/distributeur/Restitution/SectionRestitutionTitle.d.ts +1 -3
- package/dist/distributeur/Restitution/SectionRestitutionTitle.js +1 -2
- package/dist/distributeur/Steps/Step.d.ts +1 -1
- package/dist/distributeur/Steps/Step.js +4 -4
- package/dist/distributeur/Steps/StepBase.d.ts +1 -3
- package/dist/distributeur/Steps/StepBase.js +1 -2
- package/dist/distributeur/Steps/Steps.d.ts +1 -3
- package/dist/distributeur/Steps/Steps.js +1 -2
- package/dist/distributeur/Summary/index.d.ts +1 -1
- package/dist/distributeur/Summary/index.js +1 -2
- package/dist/distributeur/Table/Pagination/Items.d.ts +1 -2
- package/dist/distributeur/Table/Pagination/Items.js +8 -8
- package/dist/distributeur/Table/Pagination/Pager.d.ts +1 -2
- package/dist/distributeur/Table/Pagination/Pager.js +6 -3
- package/dist/distributeur/Table/Pagination/Paging.d.ts +1 -1
- package/dist/distributeur/Table/Pagination/Paging.js +6 -3
- package/dist/distributeur/Table/TBody.d.ts +1 -5
- package/dist/distributeur/Table/TBody.js +1 -2
- package/dist/distributeur/Table/THead.d.ts +2 -5
- package/dist/distributeur/Table/THead.js +2 -2
- package/dist/distributeur/Table/Table.d.ts +6 -33
- package/dist/distributeur/Table/Table.js +1 -10
- package/dist/distributeur/Table/Td.d.ts +1 -5
- package/dist/distributeur/Table/Td.js +1 -2
- package/dist/distributeur/Table/Th.d.ts +2 -4
- package/dist/distributeur/Table/Th.js +2 -2
- package/dist/distributeur/Table/Tr.d.ts +2 -5
- package/dist/distributeur/Table/Tr.js +2 -2
- package/dist/distributeur/Table/index.d.ts +1 -1
- package/dist/distributeur/Tabs/components/Tab.d.ts +0 -4
- package/dist/distributeur/Tabs/components/TabsStateless.d.ts +1 -5
- package/dist/distributeur/Tabs/components/TabsStateless.js +2 -2
- package/dist/distributeur/Tag/Tag.d.ts +1 -6
- package/dist/distributeur/Tag/Tag.js +2 -2
- package/dist/distributeur/Title/Title.d.ts +1 -3
- package/dist/distributeur/Title/Title.js +2 -2
- package/dist/distributeur/utilities.d.ts +1 -1
- package/dist/distributeur/utilities.js +1 -1
- package/dist/distributeur.d.ts +5 -24
- package/dist/distributeur.js +5 -17
- package/package.json +2 -2
- package/dist/distributeur/Form/Pass/Pass.d.ts +0 -15
- package/dist/distributeur/Form/Pass/Pass.js +0 -13
- package/dist/distributeur/Form/Pass/PassInput.d.ts +0 -13
- package/dist/distributeur/Form/Pass/PassInput.js +0 -34
- package/dist/distributeur/Form/Pass/index.d.ts +0 -2
- package/dist/distributeur/Form/Pass/index.js +0 -2
- package/dist/distributeur/Form/Select/SelectDefaultWithOptions.d.ts +0 -26
- package/dist/distributeur/Form/Select/SelectDefaultWithOptions.js +0 -32
- package/dist/distributeur/Form/Slider/Slider.d.ts +0 -28
- package/dist/distributeur/Form/Slider/Slider.js +0 -40
- package/dist/distributeur/Form/Slider/SliderInput.d.ts +0 -9
- package/dist/distributeur/Form/Slider/SliderInput.js +0 -11
- package/dist/distributeur/Form/Slider/index.d.ts +0 -3
- package/dist/distributeur/Form/Slider/index.js +0 -3
- package/dist/distributeur/Form/core/Deprecated/Field.d.ts +0 -21
- package/dist/distributeur/Form/core/Deprecated/Field.js +0 -20
- package/dist/distributeur/Form/core/Deprecated/FieldForm.d.ts +0 -103
- package/dist/distributeur/Form/core/Deprecated/FieldForm.js +0 -162
- package/dist/distributeur/Form/core/Deprecated/FieldInput.d.ts +0 -16
- package/dist/distributeur/Form/core/Deprecated/FieldInput.js +0 -14
- package/dist/distributeur/Form/core/useInputClassModifier.d.ts +0 -4
- package/dist/distributeur/Form/core/useInputClassModifier.js +0 -13
- package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.helpers.d.ts +0 -1
- package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.helpers.js +0 -6
- package/dist/distributeur/utilities/helpers/getComponentClassName.d.ts +0 -20
- package/dist/distributeur/utilities/helpers/getComponentClassName.js +0 -54
|
@@ -4,8 +4,6 @@ export type StepBaseProps = {
|
|
|
4
4
|
title: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
className?: string;
|
|
7
|
-
/** @deprecated Use `className` instead. */
|
|
8
|
-
classModifier?: string;
|
|
9
7
|
/**
|
|
10
8
|
* Label to add to the title as state indication (e.g. "in progress", "to come"...)
|
|
11
9
|
* Will be wrapped in parentheses, next to the `title` in the `title` attribute of the <li> element.
|
|
@@ -16,5 +14,5 @@ export type StepBaseProps = {
|
|
|
16
14
|
*/
|
|
17
15
|
stateLabel?: string;
|
|
18
16
|
};
|
|
19
|
-
declare const StepBase: ({ children, id, title, className,
|
|
17
|
+
declare const StepBase: ({ children, id, title, className, stateLabel, }: StepBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
18
|
export { StepBase };
|
|
@@ -3,10 +3,9 @@ import checkSvg from "@material-symbols/svg-400/outlined/check.svg";
|
|
|
3
3
|
import chevronSvg from "@material-symbols/svg-400/outlined/chevron_right.svg";
|
|
4
4
|
import { Svg } from "../../distributeur";
|
|
5
5
|
import { getClassName } from "../utilities/helpers/getClassName";
|
|
6
|
-
const StepBase = ({ children, id, title, className,
|
|
6
|
+
const StepBase = ({ children, id, title, className, stateLabel, }) => {
|
|
7
7
|
const componentClassName = getClassName({
|
|
8
8
|
baseClassName: "af-steps-list-step",
|
|
9
|
-
modifiers: classModifier?.split(" "),
|
|
10
9
|
className,
|
|
11
10
|
});
|
|
12
11
|
const outputTitle = stateLabel ? `${title} (${stateLabel})` : title;
|
|
@@ -2,8 +2,6 @@ import type { ReactNode } from "react";
|
|
|
2
2
|
type Props = {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
className?: string;
|
|
5
|
-
/** @deprecated Use `className` instead. */
|
|
6
|
-
classModifier?: string;
|
|
7
5
|
};
|
|
8
|
-
declare const Steps: ({ children, className
|
|
6
|
+
declare const Steps: ({ children, className }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
7
|
export { Steps };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { getClassName } from "../utilities/helpers/getClassName";
|
|
3
3
|
const defaultClassName = "af-steps-new";
|
|
4
|
-
const Steps = ({ children, className
|
|
4
|
+
const Steps = ({ children, className }) => {
|
|
5
5
|
const componentClassName = getClassName({
|
|
6
6
|
baseClassName: defaultClassName,
|
|
7
|
-
modifiers: classModifier?.split(" "),
|
|
8
7
|
className,
|
|
9
8
|
});
|
|
10
9
|
return (_jsx("div", { className: componentClassName, children: _jsx("ol", { className: "af-steps-list", children: children }) }));
|
|
@@ -5,5 +5,5 @@ type SummaryProps = Omit<MessageProps, "title"> & {
|
|
|
5
5
|
messages?: ReactNode[];
|
|
6
6
|
isVisible?: boolean;
|
|
7
7
|
};
|
|
8
|
-
export declare const Summary: ({ messages, isVisible, title,
|
|
8
|
+
export declare const Summary: ({ messages, isVisible, title, variant, ...args }: SummaryProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
9
|
export {};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Message } from "../Messages/Message";
|
|
3
3
|
import { generateId } from "../utilities/helpers/generateId";
|
|
4
|
-
export const Summary = ({ messages = [], isVisible = true, title = "Invalid form",
|
|
4
|
+
export const Summary = ({ messages = [], isVisible = true, title = "Invalid form", variant = "error", ...args }) => {
|
|
5
5
|
const messagesNotBlank = messages.filter((message) => Boolean(message));
|
|
6
6
|
if (!messages || !isVisible || messagesNotBlank.length === 0) {
|
|
7
7
|
return null;
|
|
8
8
|
}
|
|
9
|
-
const variant = classModifier === "danger" ? "warning" : classModifier;
|
|
10
9
|
return (_jsx(Message, { title: title, variant: variant, ...args, children: _jsx("ul", { className: "af-summary__message-list", children: messages.map((message) => (_jsx("li", { className: "af-summary__message-item", children: message }, `message_${generateId({ message })}`))) }) }));
|
|
11
10
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export type Props = {
|
|
2
2
|
id?: string;
|
|
3
3
|
className?: string;
|
|
4
|
-
classModifier?: string;
|
|
5
4
|
/**
|
|
6
5
|
* Text displayed before the per-page select
|
|
7
6
|
*/
|
|
@@ -26,5 +25,5 @@ export type Props = {
|
|
|
26
25
|
value: number;
|
|
27
26
|
}) => void;
|
|
28
27
|
};
|
|
29
|
-
declare const Items: ({ className,
|
|
28
|
+
declare const Items: ({ className, onChange, displayLabel, elementsLabel, selectAriaLabel, id, items, numberItems, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
30
29
|
export { Items };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useId } from "react";
|
|
3
3
|
import { Select } from "../../Form/Select";
|
|
4
|
-
import {
|
|
5
|
-
const Items = ({ className,
|
|
4
|
+
import { getClassName } from "../../utilities";
|
|
5
|
+
const Items = ({ className, onChange, displayLabel = "Afficher", elementsLabel = "éléments", selectAriaLabel = "Modifier le nombre d'éléments à afficher dans le tableau", id, items = [5, 10, 25, 50, 100], numberItems = 10, }) => {
|
|
6
6
|
const defaultIdName = useId();
|
|
7
7
|
const newId = id ?? defaultIdName;
|
|
8
|
-
const componentClassName =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
const componentClassName = getClassName({
|
|
9
|
+
baseClassName: "af-paging__form",
|
|
10
|
+
className,
|
|
11
|
+
});
|
|
12
|
+
return (_jsx("div", { className: "af-paging__limit", children: _jsx("form", { className: componentClassName, children: _jsxs("div", { className: "af-form__group", children: [_jsx("div", { className: "col col-sm-2 col-md-2 col-lg-2 col-xl-2", children: _jsx("label", { className: "af-form__group-label", htmlFor: newId, children: displayLabel }) }), _jsxs("div", { className: "col col-sm-10 col-md-10 col-lg-10 col-xl-10", children: [_jsx(Select, { id: newId, value: numberItems, mode: "base", onChange: (e) => {
|
|
13
13
|
e.preventDefault();
|
|
14
14
|
onChange({ value: Number(e.target.value) });
|
|
15
|
-
}, "aria-label": selectAriaLabel }), _jsx("span", { className: "af-form__input-cmplt", children: elementsLabel })] })] }) }) }));
|
|
15
|
+
}, "aria-label": selectAriaLabel, children: items.map((item) => (_jsx("option", { value: item, children: item }, item))) }), _jsx("span", { className: "af-form__input-cmplt", children: elementsLabel })] })] }) }) }));
|
|
16
16
|
};
|
|
17
17
|
export { Items };
|
|
@@ -3,7 +3,6 @@ import type { ComponentPropsWithoutRef } from "react";
|
|
|
3
3
|
import { PaginationButton } from "./PaginationButton";
|
|
4
4
|
export type PagerComponentProps = Pick<ComponentPropsWithoutRef<typeof PaginationButton>, "onChange"> & {
|
|
5
5
|
className?: string;
|
|
6
|
-
classModifier?: string;
|
|
7
6
|
/**
|
|
8
7
|
* Total number of pages in the table
|
|
9
8
|
*/
|
|
@@ -37,5 +36,5 @@ export type PagerComponentProps = Pick<ComponentPropsWithoutRef<typeof Paginatio
|
|
|
37
36
|
*/
|
|
38
37
|
ofLabel?: string;
|
|
39
38
|
};
|
|
40
|
-
declare const Pager: ({ className,
|
|
39
|
+
declare const Pager: ({ className, numberPages, currentPage, onChange, mode, previousLabel, nextLabel, elementsLabel, ofLabel, }: PagerComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
40
|
export { Pager };
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/canopee-css/distributeur/Table/Pager.css";
|
|
3
|
-
import {
|
|
3
|
+
import { getClassName } from "../../utilities";
|
|
4
4
|
import { Li } from "./Li";
|
|
5
5
|
import { LiPoint } from "./LiPoint";
|
|
6
6
|
import { PaginationButton } from "./PaginationButton";
|
|
7
|
-
const Pager = ({ className,
|
|
7
|
+
const Pager = ({ className, numberPages = 1, currentPage = 1, onChange, mode = "default", previousLabel = "« Précédent", nextLabel = "Suivant »", elementsLabel = "éléments", ofLabel = "sur", }) => {
|
|
8
8
|
const hasNext = currentPage < numberPages;
|
|
9
9
|
const hasPrevious = currentPage > 1;
|
|
10
|
-
const componentClassName =
|
|
10
|
+
const componentClassName = getClassName({
|
|
11
|
+
baseClassName: "af-pager",
|
|
12
|
+
className,
|
|
13
|
+
});
|
|
11
14
|
if (mode === "light") {
|
|
12
15
|
return (_jsx("nav", { className: componentClassName, children: _jsxs("ul", { className: "af-pager__pagination", children: [_jsx(PaginationButton, { onChange: onChange, value: currentPage - 1, active: hasPrevious, isVisible: true, ariaLabel: `Page précédente des ${elementsLabel}`, children: _jsx("i", { className: "glyphicon glyphicon-chevron-left", "aria-hidden": "true" }) }), _jsxs(LiPoint, { isVisible: true, children: [currentPage, " ", ofLabel, " ", numberPages] }), _jsx(PaginationButton, { onChange: onChange, value: currentPage + 1, active: hasNext, isVisible: true, ariaLabel: `Page suivante des ${elementsLabel}`, children: _jsx("i", { className: "glyphicon glyphicon-chevron-right", "aria-hidden": "true" }) })] }) }));
|
|
13
16
|
}
|
|
@@ -11,5 +11,5 @@ export type Props = Omit<PagingComponentProps, "onChange"> & {
|
|
|
11
11
|
onChange?: OnChangePager;
|
|
12
12
|
selectPageSizeLabel?: string;
|
|
13
13
|
};
|
|
14
|
-
declare const Paging: ({ className,
|
|
14
|
+
declare const Paging: ({ className, currentPage, displayLabel, elementsLabel, selectPageSizeLabel, id, mode, nextLabel, numberItems, numberPages, ofLabel, previousLabel, items, onChange, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export { Paging };
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/canopee-css/distributeur/Table/Paging.css";
|
|
3
3
|
import { useCallback } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { getClassName } from "../../utilities";
|
|
5
5
|
import { Items } from "./Items";
|
|
6
6
|
import { Pager } from "./Pager";
|
|
7
|
-
const Paging = ({ className,
|
|
8
|
-
const componentClassName =
|
|
7
|
+
const Paging = ({ className, currentPage = 1, displayLabel, elementsLabel, selectPageSizeLabel, id, mode, nextLabel, numberItems = 10, numberPages, ofLabel, previousLabel, items, onChange, }) => {
|
|
8
|
+
const componentClassName = getClassName({
|
|
9
|
+
baseClassName: "af-paging",
|
|
10
|
+
className,
|
|
11
|
+
});
|
|
9
12
|
const handleChangeItems = useCallback((e) => onChange &&
|
|
10
13
|
onChange({
|
|
11
14
|
numberItems: e.value,
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import type { ComponentPropsWithoutRef } from "react";
|
|
2
|
-
|
|
3
|
-
/** @deprecated Use `className` instead. */
|
|
4
|
-
classModifier?: string;
|
|
5
|
-
};
|
|
6
|
-
declare const TBody: ({ children, className, classModifier, ...otherProps }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const TBody: ({ children, className, ...otherProps }: ComponentPropsWithoutRef<"tbody">) => import("react/jsx-runtime").JSX.Element;
|
|
7
3
|
export { TBody };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { getClassName } from "../utilities/helpers/getClassName";
|
|
3
|
-
const TBody = ({ children, className,
|
|
3
|
+
const TBody = ({ children, className, ...otherProps }) => {
|
|
4
4
|
const componentClassName = getClassName({
|
|
5
5
|
baseClassName: "af-table__body",
|
|
6
|
-
modifiers: classModifier?.split(" "),
|
|
7
6
|
className,
|
|
8
7
|
});
|
|
9
8
|
return (_jsx("tbody", { className: componentClassName, ...otherProps, children: children }));
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import type { ComponentPropsWithoutRef } from "react";
|
|
2
|
-
type Props = ComponentPropsWithoutRef<"thead"> & {
|
|
3
|
-
|
|
4
|
-
classModifier?: string;
|
|
5
|
-
};
|
|
6
|
-
declare const THead: ({ children, className, classModifier, ...otherProps }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
type Props = ComponentPropsWithoutRef<"thead"> & {};
|
|
3
|
+
declare const THead: ({ children, className, ...otherProps }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
4
|
export { THead };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { getClassName } from "../utilities/helpers/getClassName";
|
|
3
|
-
const THead = ({ children, className,
|
|
3
|
+
const THead = ({ children, className, ...otherProps }) => {
|
|
4
4
|
const componentClassName = getClassName({
|
|
5
5
|
baseClassName: "af-table__thead",
|
|
6
|
-
modifiers:
|
|
6
|
+
modifiers: [],
|
|
7
7
|
className,
|
|
8
8
|
});
|
|
9
9
|
return (_jsx("thead", { className: componentClassName, ...otherProps, children: children }));
|
|
@@ -1,38 +1,11 @@
|
|
|
1
1
|
import type { ComponentPropsWithoutRef } from "react";
|
|
2
2
|
import "@axa-fr/canopee-css/distributeur/Table/Table.css";
|
|
3
|
-
type TableProps = ComponentPropsWithoutRef<"table"> & {
|
|
4
|
-
/** @deprecated Use `className` instead. */
|
|
5
|
-
classModifier?: string;
|
|
6
|
-
};
|
|
7
3
|
declare const Table: {
|
|
8
|
-
({ className,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated Use Table.TBody instead
|
|
17
|
-
*/
|
|
18
|
-
Body: ({ children, className, classModifier, ...otherProps }: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & {
|
|
19
|
-
classModifier?: string;
|
|
20
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
THead: ({ children, className, classModifier, ...otherProps }: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & {
|
|
22
|
-
classModifier?: string;
|
|
23
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
TBody: ({ children, className, classModifier, ...otherProps }: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & {
|
|
25
|
-
classModifier?: string;
|
|
26
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
Th: ({ children, id, className, classModifier, sortable, ...otherProps }: Omit<import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & {
|
|
28
|
-
classModifier?: string;
|
|
29
|
-
sortable?: boolean;
|
|
30
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
Tr: ({ children, id, className, classModifier, ...otherProps }: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & {
|
|
32
|
-
classModifier?: string;
|
|
33
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
-
Td: ({ children, id, className, classModifier, ...otherProps }: Omit<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref"> & {
|
|
35
|
-
classModifier?: string;
|
|
36
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
({ className, children, ...othersProps }: ComponentPropsWithoutRef<"table">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
THead: ({ children, className, ...otherProps }: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref">) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
TBody: ({ children, className, ...otherProps }: ComponentPropsWithoutRef<"tbody">) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
Th: ({ children, id, className, sortable, ...otherProps }: import("./Th").ThProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
Tr: ({ children, id, className, ...otherProps }: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref">) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
Td: ({ children, id, className, ...otherProps }: ComponentPropsWithoutRef<"td">) => import("react/jsx-runtime").JSX.Element;
|
|
37
10
|
};
|
|
38
11
|
export { Table };
|
|
@@ -6,22 +6,13 @@ import { Td } from "./Td";
|
|
|
6
6
|
import { Th } from "./Th";
|
|
7
7
|
import { Tr } from "./Tr";
|
|
8
8
|
import "@axa-fr/canopee-css/distributeur/Table/Table.css";
|
|
9
|
-
const Table = ({ className,
|
|
9
|
+
const Table = ({ className, children, ...othersProps }) => {
|
|
10
10
|
const componentClassName = getClassName({
|
|
11
11
|
baseClassName: "af-table",
|
|
12
|
-
modifiers: classModifier?.split(" "),
|
|
13
12
|
className,
|
|
14
13
|
});
|
|
15
14
|
return (_jsx("table", { className: componentClassName, ...othersProps, children: children }));
|
|
16
15
|
};
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated Use Table.THead instead
|
|
19
|
-
*/
|
|
20
|
-
Table.Header = THead;
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated Use Table.TBody instead
|
|
23
|
-
*/
|
|
24
|
-
Table.Body = TBody;
|
|
25
16
|
Table.THead = THead;
|
|
26
17
|
Table.TBody = TBody;
|
|
27
18
|
Table.Th = Th;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import type { ComponentPropsWithoutRef } from "react";
|
|
2
|
-
|
|
3
|
-
/** @deprecated Use `className` instead. */
|
|
4
|
-
classModifier?: string;
|
|
5
|
-
};
|
|
6
|
-
declare const Td: ({ children, id, className, classModifier, ...otherProps }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const Td: ({ children, id, className, ...otherProps }: ComponentPropsWithoutRef<"td">) => import("react/jsx-runtime").JSX.Element;
|
|
7
3
|
export { Td };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { getClassName } from "../utilities/helpers/getClassName";
|
|
3
|
-
const Td = ({ children, id, className,
|
|
3
|
+
const Td = ({ children, id, className, ...otherProps }) => {
|
|
4
4
|
const componentClassName = getClassName({
|
|
5
5
|
baseClassName: "af-table__cell",
|
|
6
|
-
modifiers: classModifier?.split(" "),
|
|
7
6
|
className,
|
|
8
7
|
});
|
|
9
8
|
return (_jsx("td", { className: componentClassName, id: id, ...otherProps, children: children }, id));
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type { ComponentPropsWithoutRef } from "react";
|
|
2
|
-
type
|
|
3
|
-
/** @deprecated Use `className` instead. */
|
|
4
|
-
classModifier?: string;
|
|
2
|
+
export type ThProps = ComponentPropsWithoutRef<"th"> & {
|
|
5
3
|
sortable?: boolean;
|
|
6
4
|
};
|
|
7
|
-
declare const Th: ({ children, id, className,
|
|
5
|
+
declare const Th: ({ children, id, className, sortable, ...otherProps }: ThProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
6
|
export { Th };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { getClassName } from "../utilities/helpers/getClassName";
|
|
3
|
-
const Th = ({ children, id, className,
|
|
3
|
+
const Th = ({ children, id, className, sortable, ...otherProps }) => {
|
|
4
4
|
const componentClassName = getClassName({
|
|
5
5
|
baseClassName: "af-table__th",
|
|
6
|
-
modifiers: [sortable && "sortable"
|
|
6
|
+
modifiers: [sortable && "sortable"],
|
|
7
7
|
className,
|
|
8
8
|
});
|
|
9
9
|
return (_jsx("th", { className: componentClassName, id: id, ...otherProps, children: children }, id));
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
-
type Props = ComponentPropsWithoutRef<"tr"> & {
|
|
3
|
-
|
|
4
|
-
classModifier?: string;
|
|
5
|
-
};
|
|
6
|
-
declare const Tr: ({ children, id, className, classModifier, ...otherProps }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
type Props = ComponentPropsWithoutRef<"tr"> & {};
|
|
3
|
+
declare const Tr: ({ children, id, className, ...otherProps }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
4
|
export { Tr };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import {} from "react";
|
|
3
3
|
import { getClassName } from "../utilities/helpers/getClassName";
|
|
4
|
-
const Tr = ({ children, id, className,
|
|
4
|
+
const Tr = ({ children, id, className, ...otherProps }) => {
|
|
5
5
|
const componentClassName = getClassName({
|
|
6
6
|
baseClassName: "af-table__tr",
|
|
7
|
-
modifiers:
|
|
7
|
+
modifiers: [],
|
|
8
8
|
className,
|
|
9
9
|
});
|
|
10
10
|
return (_jsx("tr", { className: componentClassName, ...otherProps, children: children }, id));
|
|
@@ -4,14 +4,10 @@ export type TabsStatelessProps = {
|
|
|
4
4
|
children: ReactElement<TabProps> | ReactElement<TabProps>[];
|
|
5
5
|
activeIndex: number;
|
|
6
6
|
className?: string;
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated Use `className` instead
|
|
9
|
-
*/
|
|
10
|
-
classModifier?: string;
|
|
11
7
|
};
|
|
12
8
|
export type TabsStatelessHandlers = {
|
|
13
9
|
onChange: (event: FormEvent<HTMLButtonElement>, index: number) => void;
|
|
14
10
|
};
|
|
15
11
|
type Props = TabsStatelessProps & TabsStatelessHandlers;
|
|
16
|
-
declare const TabsStateless: ({ activeIndex, className,
|
|
12
|
+
declare const TabsStateless: ({ activeIndex, className, children, onChange, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
17
13
|
export { TabsStateless };
|
|
@@ -22,11 +22,11 @@ function handleKeyDown(event, moveToTab, index, totalNumberOfTabs) {
|
|
|
22
22
|
event.stopPropagation();
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
const TabsStateless = ({ activeIndex, className = "af-tabs",
|
|
25
|
+
const TabsStateless = ({ activeIndex, className = "af-tabs", children, onChange, }) => {
|
|
26
26
|
const componentClassName = getClassName({
|
|
27
27
|
baseClassName: "af-tabs",
|
|
28
28
|
className,
|
|
29
|
-
modifiers:
|
|
29
|
+
modifiers: [],
|
|
30
30
|
});
|
|
31
31
|
const tabRefs = useRef([]);
|
|
32
32
|
const moveToTab = (event, index) => {
|
|
@@ -2,11 +2,6 @@ import "@axa-fr/canopee-css/distributeur/Tag/Tag.css";
|
|
|
2
2
|
import { type ComponentPropsWithRef, type PropsWithChildren } from "react";
|
|
3
3
|
export type TagVariants = "success" | "information" | "warning" | "error" | "default" | "dark" | "purple" | "gray" | "white";
|
|
4
4
|
type TagProps = ComponentPropsWithRef<"span"> & {
|
|
5
|
-
/**
|
|
6
|
-
* Modifier class to apply specific styles. Note: "danger" is deprecated, use "warning" instead. "info" is deprecated, use "information" instead
|
|
7
|
-
* @deprecated Use `variant` instead
|
|
8
|
-
*/
|
|
9
|
-
classModifier?: string;
|
|
10
5
|
/**
|
|
11
6
|
* Variant of the tag to apply specific styles.
|
|
12
7
|
* "warning" replaces the deprecated "danger
|
|
@@ -29,7 +24,7 @@ type TagProps = ComponentPropsWithRef<"span"> & {
|
|
|
29
24
|
* @returns {JSX.Element} The rendered Tag component.
|
|
30
25
|
*/
|
|
31
26
|
export declare const Tag: {
|
|
32
|
-
({ children, className,
|
|
27
|
+
({ children, className, variant, ...otherProps }: PropsWithChildren<TagProps>): import("react/jsx-runtime").JSX.Element;
|
|
33
28
|
displayName: string;
|
|
34
29
|
};
|
|
35
30
|
export {};
|
|
@@ -14,8 +14,8 @@ import { getClassName } from "../utilities/helpers/getClassName";
|
|
|
14
14
|
* @param {React.Ref<HTMLSpanElement>} ref - The ref to the span element.
|
|
15
15
|
* @returns {JSX.Element} The rendered Tag component.
|
|
16
16
|
*/
|
|
17
|
-
export const Tag = ({ children, className,
|
|
18
|
-
const actualModifier = variant ||
|
|
17
|
+
export const Tag = ({ children, className, variant, ...otherProps }) => {
|
|
18
|
+
const actualModifier = variant || "default";
|
|
19
19
|
const componentClassName = getClassName({
|
|
20
20
|
baseClassName: "af-tag",
|
|
21
21
|
modifiers: [actualModifier],
|
|
@@ -2,15 +2,13 @@ import "@axa-fr/canopee-css/distributeur/Title/Title.css";
|
|
|
2
2
|
import { type ComponentPropsWithRef, type PropsWithChildren, type ReactElement, type ReactNode } from "react";
|
|
3
3
|
type Headings = "h2" | "h3" | "h4";
|
|
4
4
|
type TitleProps = ComponentPropsWithRef<"h2"> & {
|
|
5
|
-
/** @deprecated Use `className` instead. */
|
|
6
|
-
classModifier?: string;
|
|
7
5
|
heading?: Headings;
|
|
8
6
|
contentLeft?: ReactElement;
|
|
9
7
|
contentRight?: ReactNode;
|
|
10
8
|
withDivider?: boolean;
|
|
11
9
|
};
|
|
12
10
|
export declare const Title: {
|
|
13
|
-
({ className,
|
|
11
|
+
({ className, children, heading: Heading, contentLeft, contentRight, withDivider, ...otherProps }: PropsWithChildren<TitleProps>): import("react/jsx-runtime").JSX.Element;
|
|
14
12
|
displayName: string;
|
|
15
13
|
};
|
|
16
14
|
export {};
|
|
@@ -3,8 +3,8 @@ import "@axa-fr/canopee-css/distributeur/Title/Title.css";
|
|
|
3
3
|
import {} from "react";
|
|
4
4
|
import { getClassName } from "../utilities/helpers/getClassName";
|
|
5
5
|
const baseClass = "af-title";
|
|
6
|
-
export const Title = ({ className,
|
|
7
|
-
const modifiers =
|
|
6
|
+
export const Title = ({ className, children, heading: Heading = "h2", contentLeft, contentRight, withDivider = true, ...otherProps }) => {
|
|
7
|
+
const modifiers = [];
|
|
8
8
|
if (!withDivider) {
|
|
9
9
|
modifiers.push("without-divider");
|
|
10
10
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { BREAKPOINT } from "./utilities/constants";
|
|
2
|
-
export {
|
|
2
|
+
export { getClassName } from "./utilities/helpers/getClassName";
|
|
3
3
|
export { useIsSmallScreen } from "./utilities/hooks/useIsSmallScreen";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { BREAKPOINT } from "./utilities/constants";
|
|
2
|
-
export {
|
|
2
|
+
export { getClassName } from "./utilities/helpers/getClassName";
|
|
3
3
|
export { useIsSmallScreen } from "./utilities/hooks/useIsSmallScreen";
|
package/dist/distributeur.d.ts
CHANGED
|
@@ -7,8 +7,6 @@ import "@axa-fr/canopee-css/distributeur/Form/core/FormCore.css";
|
|
|
7
7
|
import "@fontsource/source-sans-pro/400.css";
|
|
8
8
|
import "@fontsource/source-sans-pro/600.css";
|
|
9
9
|
import "@fontsource/source-sans-pro/700.css";
|
|
10
|
-
import { Message } from "./distributeur/Messages/Message";
|
|
11
|
-
import { Tag } from "./distributeur/Tag/Tag";
|
|
12
10
|
export { Action } from "./distributeur/Action/Action";
|
|
13
11
|
export { Button } from "./distributeur/Button/Button";
|
|
14
12
|
export type { ButtonVariant } from "./distributeur/Button/Button";
|
|
@@ -16,16 +14,14 @@ export { Card } from "./distributeur/Card/Card";
|
|
|
16
14
|
export { Divider } from "./distributeur/Divider/Divider";
|
|
17
15
|
export { Checkbox, CheckboxInput, CheckboxItem, CheckboxModes, } from "./distributeur/Form/Checkbox";
|
|
18
16
|
export { Choice, ChoiceInput } from "./distributeur/Form/Choice";
|
|
19
|
-
export {
|
|
17
|
+
export { Field, FieldError, FormClassManager, HelpMessage, InputList, MessageTypes, } from "./distributeur/Form/core";
|
|
20
18
|
export { Date, DateInput } from "./distributeur/Form/Date";
|
|
21
19
|
export { File, FileInput, FileTable, type FilePreview, } from "./distributeur/Form/File";
|
|
22
20
|
export { MultiSelect, MultiSelectInput } from "./distributeur/Form/MultiSelect";
|
|
23
21
|
export { NestedQuestion } from "./distributeur/Form/NestedQuestion/NestedQuestion";
|
|
24
22
|
export { Number, NumberInput } from "./distributeur/Form/Number";
|
|
25
|
-
export { Pass, PassInput } from "./distributeur/Form/Pass";
|
|
26
23
|
export { Radio, RadioInput, RadioItem, RadioModes, } from "./distributeur/Form/Radio";
|
|
27
|
-
export { Select,
|
|
28
|
-
export { Slider, SliderInput } from "./distributeur/Form/Slider";
|
|
24
|
+
export { Select, SelectInput } from "./distributeur/Form/Select";
|
|
29
25
|
export { Text, TextInput } from "./distributeur/Form/Text";
|
|
30
26
|
export { Textarea, TextareaInput } from "./distributeur/Form/Textarea";
|
|
31
27
|
export { Footer } from "./distributeur/Layout/Footer";
|
|
@@ -42,32 +38,17 @@ export { Summary } from "./distributeur/Summary";
|
|
|
42
38
|
export { Svg } from "./distributeur/Svg";
|
|
43
39
|
export { Tabs } from "./distributeur/Tabs/Tabs";
|
|
44
40
|
export { Title } from "./distributeur/Title/Title";
|
|
45
|
-
export {
|
|
46
|
-
/** @deprecated Use `Tag` instead. */
|
|
47
|
-
declare const Badge: {
|
|
48
|
-
({ children, className, classModifier, variant, ...otherProps }: import("react").PropsWithChildren<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
49
|
-
classModifier?: string;
|
|
50
|
-
variant?: import("./distributeur").TagVariants;
|
|
51
|
-
disabled?: boolean;
|
|
52
|
-
}>): import("react/jsx-runtime").JSX.Element;
|
|
53
|
-
displayName: string;
|
|
54
|
-
};
|
|
41
|
+
export { getClassName } from "./distributeur/utilities";
|
|
55
42
|
export type { TagVariants } from "./distributeur/Tag/Tag";
|
|
56
|
-
export {
|
|
57
|
-
/**
|
|
58
|
-
* @deprecated `Alert` has been renamed `Message` in order to comply with UX naming of components. Use `Message` instead.
|
|
59
|
-
* @see {@link Message}
|
|
60
|
-
*/
|
|
61
|
-
declare const Alert: ({ className, onClose, icon, title, children, classModifier, variant, closeButtonAriaLabel, }: import("react").PropsWithChildren<import("./distributeur").MessageProps>) => import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export { Tag } from "./distributeur/Tag/Tag";
|
|
62
44
|
export * from "./distributeur/Accordion";
|
|
63
45
|
export { type MessageProps, type MessageVariants, } from "./distributeur/Messages/Message";
|
|
64
46
|
export * from "./distributeur/Popover";
|
|
65
47
|
export * from "./distributeur/Table";
|
|
66
|
-
export {
|
|
48
|
+
export { Message } from "./distributeur/Messages/Message";
|
|
67
49
|
export { HelpButton } from "./distributeur/HelpButton";
|
|
68
50
|
export { Loader } from "./distributeur/Loader/Loader";
|
|
69
51
|
export { ItemLoader, type ItemLoaderVariant, } from "./distributeur/Loader/ItemLoader";
|
|
70
|
-
export { SquareLoader } from "./distributeur/Loader/SquareLoader";
|
|
71
52
|
export { CardData } from "./distributeur/CardData/CardData";
|
|
72
53
|
export type { CardDataVariant } from "./distributeur/CardData/CardData";
|
|
73
54
|
export { EditorialMessage, type EditorialMessageProps, type EditorialMessageType, } from "./distributeur/EditorialMessage/EditorialMessage";
|