@axa-fr/canopee-react 1.4.0 → 1.4.1-alpha.2
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/client.js +1 -0
- package/dist/distributeur/Accordion/Accordion.d.ts +2 -2
- package/dist/distributeur/Accordion/Accordion.js +1 -1
- package/dist/distributeur/Accordion/Header.js +1 -0
- package/dist/distributeur/Button/Button.d.ts +1 -1
- package/dist/distributeur/CardData/CardData.d.ts +1 -1
- package/dist/distributeur/CardData/CardData.js +1 -0
- package/dist/distributeur/CardData/CardDataHeader.d.ts +1 -1
- package/dist/distributeur/CardData/CardDataHeader.js +2 -1
- package/dist/distributeur/Divider/Divider.d.ts +1 -1
- package/dist/distributeur/Form/Checkbox/Checkbox.d.ts +2 -2
- package/dist/distributeur/Form/Checkbox/Checkbox.js +1 -1
- package/dist/distributeur/Form/Checkbox/CheckboxInput.d.ts +1 -1
- package/dist/distributeur/Form/Checkbox/CheckboxItem.d.ts +1 -1
- package/dist/distributeur/Form/Checkbox/CheckboxItem.js +1 -1
- package/dist/distributeur/Form/Date/Date.d.ts +1 -1
- package/dist/distributeur/Form/Date/DateInput.d.ts +2 -2
- package/dist/distributeur/Form/Experimental/index.d.ts +1 -0
- package/dist/distributeur/Form/Experimental/index.js +1 -1
- package/dist/distributeur/Form/File/File.d.ts +2 -2
- package/dist/distributeur/Form/File/File.js +2 -2
- package/dist/distributeur/Form/File/FileErrors.d.ts +1 -1
- package/dist/distributeur/Form/File/FileErrors.js +1 -0
- package/dist/distributeur/Form/File/FileInput.d.ts +1 -1
- package/dist/distributeur/Form/File/FileLine.d.ts +1 -1
- package/dist/distributeur/Form/File/FileTable.d.ts +3 -3
- package/dist/distributeur/Form/File/FileTable.js +2 -2
- package/dist/distributeur/Form/MultiSelect/FormatOptionLabel.d.ts +1 -1
- package/dist/distributeur/Form/MultiSelect/FormatOptionLabel.js +2 -1
- package/dist/distributeur/Form/MultiSelect/MultiSelect.d.ts +1 -1
- package/dist/distributeur/Form/MultiSelect/MultiSelect.js +2 -2
- package/dist/distributeur/Form/MultiSelect/MultiSelectInput.d.ts +1 -1
- package/dist/distributeur/Form/MultiSelect/MultiSelectInput.js +1 -0
- package/dist/distributeur/Form/MultiSelect/ValueContainer.d.ts +1 -1
- package/dist/distributeur/Form/MultiSelect/ValueContainer.js +1 -1
- package/dist/distributeur/Form/MultiSelect/useMultiSelectStyle.d.ts +1 -1
- package/dist/distributeur/Form/MultiSelect/useMultiSelectStyle.js +1 -0
- package/dist/distributeur/Form/NestedQuestion/NestedQuestion.d.ts +1 -1
- package/dist/distributeur/Form/Number/Number.d.ts +1 -1
- package/dist/distributeur/Form/Number/NumberInput.d.ts +1 -1
- package/dist/distributeur/Form/Number/NumberInput.js +1 -0
- package/dist/distributeur/Form/Pass/Pass.d.ts +1 -1
- package/dist/distributeur/Form/Pass/PassInput.d.ts +2 -2
- package/dist/distributeur/Form/Radio/Radio.js +1 -1
- package/dist/distributeur/Form/Radio/RadioCardGroup.d.ts +1 -1
- package/dist/distributeur/Form/Radio/RadioCardGroup.js +1 -1
- package/dist/distributeur/Form/Radio/RadioInput.d.ts +1 -1
- package/dist/distributeur/Form/Radio/RadioItem.d.ts +1 -1
- package/dist/distributeur/Form/Radio/RadioItem.js +1 -1
- package/dist/distributeur/Form/Select/Select.d.ts +1 -1
- package/dist/distributeur/Form/Select/SelectBase.d.ts +1 -1
- package/dist/distributeur/Form/Select/SelectDefault.d.ts +1 -1
- package/dist/distributeur/Form/Select/SelectDefaultWithOptions.d.ts +1 -1
- package/dist/distributeur/Form/Select/SelectInput.d.ts +1 -1
- package/dist/distributeur/Form/Slider/SliderInput.d.ts +1 -1
- package/dist/distributeur/Form/Slider/SliderInput.js +1 -0
- package/dist/distributeur/Form/Text/Text.d.ts +1 -1
- package/dist/distributeur/Form/Text/TextInput.d.ts +2 -2
- package/dist/distributeur/Form/Textarea/TextareaInput.d.ts +1 -1
- package/dist/distributeur/Form/core/Deprecated/Field.js +1 -0
- package/dist/distributeur/Form/core/Deprecated/FieldInput.d.ts +1 -1
- package/dist/distributeur/Form/core/Field.js +1 -1
- package/dist/distributeur/Form/core/FormClassManager.d.ts +1 -1
- package/dist/distributeur/Form/core/HelpMessage.d.ts +1 -1
- package/dist/distributeur/Form/core/index.d.ts +1 -1
- package/dist/distributeur/HelpButton/index.d.ts +1 -1
- package/dist/distributeur/Layout/Footer/Footer.js +2 -2
- package/dist/distributeur/Layout/Header/AnchorNavBar/AnchorNavBar.d.ts +1 -1
- package/dist/distributeur/Layout/Header/AnchorNavBar/AnchorNavBar.js +3 -2
- package/dist/distributeur/Layout/Header/Header.js +1 -0
- package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.d.ts +2 -2
- package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.js +1 -1
- package/dist/distributeur/Layout/Header/Infos/Infos.d.ts +1 -1
- package/dist/distributeur/Layout/Header/Name/Name.js +1 -0
- package/dist/distributeur/Layout/Header/NavBar/NavBarBase.d.ts +1 -1
- package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItem.d.ts +1 -1
- package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItemBase.d.ts +1 -1
- package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItemLink.d.ts +1 -1
- package/dist/distributeur/Layout/Header/User/User.d.ts +1 -1
- package/dist/distributeur/Layout/MainContainer/MainContainer.d.ts +1 -1
- package/dist/distributeur/Link/CustomLink.d.ts +1 -1
- package/dist/distributeur/Link/LinkAnchor.d.ts +1 -1
- package/dist/distributeur/Link/LinkAnchor.js +2 -1
- package/dist/distributeur/Loader/Loader.js +1 -0
- package/dist/distributeur/Messages/Message.d.ts +1 -1
- package/dist/distributeur/ModalAgent/BooleanModal.d.ts +1 -1
- package/dist/distributeur/ModalAgent/BooleanModal.js +1 -1
- package/dist/distributeur/Popover/AnimatedPopover.d.ts +1 -1
- package/dist/distributeur/Popover/AnimatedPopover.js +1 -1
- package/dist/distributeur/Popover/Popover.d.ts +2 -2
- package/dist/distributeur/Popover/Popover.js +1 -0
- package/dist/distributeur/Popover/Popover.types.d.ts +1 -1
- package/dist/distributeur/Popover/PopoverBase.d.ts +1 -1
- package/dist/distributeur/Popover/PopoverBase.js +1 -0
- package/dist/distributeur/Popover/PopoverClick.d.ts +1 -1
- package/dist/distributeur/Popover/PopoverOver.d.ts +1 -1
- package/dist/distributeur/Popover/index.js +2 -0
- package/dist/distributeur/Restitution/ArticleRestitution.d.ts +1 -1
- package/dist/distributeur/Restitution/HeaderRestitution.js +1 -0
- package/dist/distributeur/Restitution/Restitution.d.ts +1 -1
- package/dist/distributeur/Restitution/RestitutionList.d.ts +1 -1
- package/dist/distributeur/Restitution/SectionRestitution.d.ts +1 -1
- package/dist/distributeur/Restitution/SectionRestitutionColumn.d.ts +1 -1
- package/dist/distributeur/Restitution/SectionRestitutionRow.d.ts +1 -1
- package/dist/distributeur/Steps/Step.d.ts +1 -1
- package/dist/distributeur/Steps/StepCurrent.d.ts +1 -1
- package/dist/distributeur/Steps/StepDisabled.d.ts +1 -1
- package/dist/distributeur/Steps/StepLink.d.ts +1 -1
- package/dist/distributeur/Steps/StepNoLink.d.ts +1 -1
- package/dist/distributeur/Steps/Steps.d.ts +1 -1
- package/dist/distributeur/Steps/VerticalStep.d.ts +1 -1
- package/dist/distributeur/Steps/types.d.ts +1 -1
- package/dist/distributeur/Summary/index.d.ts +1 -1
- package/dist/distributeur/Table/Pagination/LiPoint.d.ts +1 -1
- package/dist/distributeur/Table/Pagination/Pager.d.ts +1 -1
- package/dist/distributeur/Table/Pagination/PaginationButton.d.ts +1 -1
- package/dist/distributeur/Table/Pagination/Paging.d.ts +1 -1
- package/dist/distributeur/Table/TBody.d.ts +1 -1
- package/dist/distributeur/Table/THead.d.ts +1 -1
- package/dist/distributeur/Table/Table.d.ts +1 -1
- package/dist/distributeur/Table/Td.d.ts +1 -1
- package/dist/distributeur/Table/Th.d.ts +1 -1
- package/dist/distributeur/Table/Tr.d.ts +1 -1
- package/dist/distributeur/Table/Tr.js +1 -0
- package/dist/distributeur/Tabs/Tabs.d.ts +2 -2
- package/dist/distributeur/Tabs/Tabs.js +1 -0
- package/dist/distributeur/Tabs/components/Pane.js +1 -0
- package/dist/distributeur/Tabs/components/Tab.d.ts +1 -1
- package/dist/distributeur/Tabs/components/TabsCore.d.ts +1 -1
- package/dist/distributeur/Tabs/components/TabsCore.js +1 -1
- package/dist/distributeur/Tabs/components/Title.js +1 -0
- package/dist/distributeur/Tag/Tag.d.ts +1 -1
- package/dist/distributeur/Tag/Tag.js +1 -1
- package/dist/distributeur/Title/Title.d.ts +1 -1
- package/dist/distributeur.js +1 -0
- package/dist/prospect-client/Button/ButtonCommon.js +1 -0
- package/dist/prospect-client/Card/CardCommon.js +1 -0
- package/dist/prospect-client/CardMessage/CardMessageCommon.d.ts +1 -1
- package/dist/prospect-client/ClickIcon/ClickIconCommon.d.ts +1 -1
- package/dist/prospect-client/ClickIcon/ClickIconCommon.js +1 -0
- package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionApollo.js +1 -0
- package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionCommon.js +1 -0
- package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionLF.js +1 -0
- package/dist/prospect-client/ContentItemMono/ContentItemMonoCommon.d.ts +1 -1
- package/dist/prospect-client/ContentItemMono/ContentItemMonoCommon.js +1 -0
- package/dist/prospect-client/ContentItemMono/ContentItemMonoCore.d.ts +2 -3
- package/dist/prospect-client/DataAgent/DataAgentApollo.js +1 -0
- package/dist/prospect-client/DataAgent/DataAgentCommon.d.ts +2 -2
- package/dist/prospect-client/DataAgent/DataAgentCommon.js +3 -2
- package/dist/prospect-client/DataAgent/DataAgentLF.js +1 -0
- package/dist/prospect-client/Fieldset/FieldsetCommon.js +2 -0
- package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxCommon.d.ts +1 -1
- package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextCommon.d.ts +2 -2
- package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextCommon.js +1 -1
- package/dist/prospect-client/Form/Dropdown/DropdownCommon.d.ts +1 -1
- package/dist/prospect-client/Form/Dropdown/DropdownCommon.js +2 -0
- package/dist/prospect-client/Form/FileUpload/InputFile/InputFileCommon.d.ts +1 -1
- package/dist/prospect-client/Form/FileUpload/InputFile/InputFileCommon.js +3 -1
- package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileCommon.js +1 -0
- package/dist/prospect-client/Form/InputDate/InputDateCommon.d.ts +1 -1
- package/dist/prospect-client/Form/InputDate/InputDateCommon.js +2 -0
- package/dist/prospect-client/Form/InputPhone/CountryCodeSelect.d.ts +3 -3
- package/dist/prospect-client/Form/InputPhone/CountryCodeSelect.js +2 -1
- package/dist/prospect-client/Form/InputPhone/InputPhoneCommon.d.ts +2 -2
- package/dist/prospect-client/Form/InputPhone/InputPhoneCommon.js +5 -0
- package/dist/prospect-client/Form/InputText/InputTextCommon.js +3 -0
- package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupCommon.d.ts +1 -1
- package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupCommon.js +2 -0
- package/dist/prospect-client/Form/TextArea/TextAreaCommon.d.ts +2 -2
- package/dist/prospect-client/Form/TextArea/TextAreaCommon.js +2 -0
- package/dist/prospect-client/Heading/HeadingApollo.d.ts +1 -1
- package/dist/prospect-client/Heading/HeadingApollo.js +1 -1
- package/dist/prospect-client/Heading/HeadingCommon.js +1 -0
- package/dist/prospect-client/Heading/HeadingLF.d.ts +1 -1
- package/dist/prospect-client/Heading/HeadingLF.js +1 -1
- package/dist/prospect-client/Icon/IconCommon.d.ts +1 -1
- package/dist/prospect-client/Icon/IconCommon.js +1 -1
- package/dist/prospect-client/ItemTabBar/ItemTabBarCommon.d.ts +1 -1
- package/dist/prospect-client/Layout/ExitLayout/ExitLayoutApollo.js +1 -0
- package/dist/prospect-client/Layout/ExitLayout/ExitLayoutCommon.d.ts +1 -1
- package/dist/prospect-client/Layout/ExitLayout/ExitLayoutCommon.js +3 -1
- package/dist/prospect-client/Layout/ExitLayout/ExitLayoutLF.js +1 -0
- package/dist/prospect-client/Layout/Footer/FooterCommon.d.ts +2 -2
- package/dist/prospect-client/Layout/Footer/FooterCommon.js +1 -1
- package/dist/prospect-client/LevelSelector/LevelSelectorApollo.js +1 -0
- package/dist/prospect-client/LevelSelector/LevelSelectorCommon.d.ts +2 -2
- package/dist/prospect-client/LevelSelector/LevelSelectorCommon.js +2 -0
- package/dist/prospect-client/LevelSelector/LevelSelectorLF.js +1 -0
- package/dist/prospect-client/Link/LinkCommon.d.ts +1 -1
- package/dist/prospect-client/List/ClickItem/ClickItemWrapper.d.ts +1 -1
- package/dist/prospect-client/List/ClickItem/components/ClickItemContentCommon.d.ts +1 -1
- package/dist/prospect-client/List/ClickItem/components/ClickItemSuffixCommon.d.ts +2 -2
- package/dist/prospect-client/List/ClickItem/components/ClickItemSuffixCommon.js +1 -0
- package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoCommon.js +1 -0
- package/dist/prospect-client/List/List/ListApollo.js +1 -0
- package/dist/prospect-client/List/List/ListCommon.d.ts +1 -1
- package/dist/prospect-client/List/List/ListCommon.js +1 -0
- package/dist/prospect-client/List/List/ListLF.js +1 -0
- package/dist/prospect-client/Message/MessageCommon.js +1 -0
- package/dist/prospect-client/Pagination/ItemPagination/ItemPaginationApollo.js +1 -0
- package/dist/prospect-client/Pagination/ItemPagination/ItemPaginationCommon.js +2 -0
- package/dist/prospect-client/Pagination/ItemPagination/ItemPaginationLF.js +1 -0
- package/dist/prospect-client/Pagination/PaginationApollo.js +1 -0
- package/dist/prospect-client/Pagination/PaginationCommon.d.ts +1 -1
- package/dist/prospect-client/Pagination/PaginationCommon.js +2 -2
- package/dist/prospect-client/Pagination/PaginationLF.js +1 -0
- package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupApollo.d.ts +1 -1
- package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupCommon.js +1 -0
- package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupLF.d.ts +1 -1
- package/dist/prospect-client/SkeletonList/SkeletonListApollo.js +1 -0
- package/dist/prospect-client/SkeletonList/SkeletonListLF.js +1 -0
- package/dist/prospect-client/Spinner/SpinnerCommon.d.ts +1 -1
- package/dist/prospect-client/Stepper/StepperCommon.d.ts +1 -1
- package/dist/prospect-client/Stepper/StepperCommon.js +1 -0
- package/dist/prospect-client/Svg/Svg.js +1 -1
- package/dist/prospect-client/TabBar/TabBarCommon.d.ts +1 -1
- package/dist/prospect-client/TabBar/TabBarCommon.js +2 -1
- package/dist/prospect-client/Table/TBody.d.ts +1 -1
- package/dist/prospect-client/Table/THead.js +1 -0
- package/dist/prospect-client/Table/TableCommon.js +1 -0
- package/dist/prospect-client/Table/Td.d.ts +1 -1
- package/dist/prospect-client/Table/Th.js +1 -0
- package/dist/prospect-client/Table/Tr.js +1 -0
- package/dist/prospect-client/TableMobileCard/DRow.js +1 -0
- package/dist/prospect-client/TableMobileCard/Dd.js +1 -0
- package/dist/prospect-client/TableMobileCard/Dt.js +1 -0
- package/dist/prospect-client/TableMobileCard/TableMobileCard.js +1 -0
- package/dist/prospect-client/TimelineVertical/TimelineVerticalCommon.d.ts +1 -1
- package/dist/prospect-client/TimelineVertical/types.d.ts +1 -1
- package/dist/prospect-client/pages/ErrorPage/ErrorPageApollo.js +1 -0
- package/dist/prospect-client/pages/ErrorPage/ErrorPageCommon.js +2 -0
- package/dist/prospect-client/pages/ErrorPage/ErrorPageLF.js +1 -0
- package/dist/prospect-client/pages/ValidPage/ValidPageApollo.js +1 -0
- package/dist/prospect-client/pages/ValidPage/ValidPageCommon.js +3 -0
- package/dist/prospect-client/pages/ValidPage/ValidPageLF.js +1 -0
- package/dist/prospect-client/utilities/types/GridContainerProps.d.ts +1 -1
- package/dist/prospect.js +1 -0
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/distributeur/Layout/Header/HeaderTitle/HeaderTitle.css";
|
|
2
|
-
import { ReactNode } from "react";
|
|
3
|
-
import { AnchorNavBarItem } from "../AnchorNavBar/AnchorNavBar";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
import { type AnchorNavBarItem } from "../AnchorNavBar/AnchorNavBar";
|
|
4
4
|
type Props = {
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
classModifier?: string;
|
|
@@ -3,7 +3,7 @@ import "@axa-fr/canopee-css/distributeur/Layout/Header/HeaderTitle/HeaderTitle.c
|
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { Action } from "../../../Action/Action";
|
|
5
5
|
import { getComponentClassName } from "../../../utilities";
|
|
6
|
-
import { AnchorNavBar } from "../AnchorNavBar/AnchorNavBar";
|
|
6
|
+
import { AnchorNavBar, } from "../AnchorNavBar/AnchorNavBar";
|
|
7
7
|
import { ToggleButton } from "../ToggleButton/ToggleButton";
|
|
8
8
|
import { getClassModifier } from "./HeaderTitle.helpers";
|
|
9
9
|
const defaultClassName = "af-title-bar";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/canopee-css/distributeur/Layout/Header/Logo/Logo.css";
|
|
3
3
|
import "@axa-fr/canopee-css/distributeur/Layout/Header/Name/Name.css";
|
|
4
|
+
import {} from "react";
|
|
4
5
|
import { getComponentClassName } from "../../../utilities";
|
|
5
6
|
const defaultClassName = "af-header__name";
|
|
6
7
|
const Name = ({ alt = "logo", classModifier, className, img, onClick, subtitle, title, }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes, KeyboardEvent, ReactElement } from "react";
|
|
1
|
+
import { type HTMLAttributes, type KeyboardEvent, type ReactElement } from "react";
|
|
2
2
|
type Props = HTMLAttributes<HTMLLIElement> & {
|
|
3
3
|
actionElt: ReactElement<HTMLAttributes<HTMLElement>>;
|
|
4
4
|
handleKeys: (event: KeyboardEvent<HTMLLIElement>) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, PropsWithChildren } from "react";
|
|
1
|
+
import type { ComponentPropsWithoutRef, PropsWithChildren } from "react";
|
|
2
2
|
import "@axa-fr/canopee-css/distributeur/common/breakpoints.css";
|
|
3
3
|
import "@axa-fr/canopee-css/distributeur/MainContainer/MainContainer.css";
|
|
4
4
|
type MainContainerProps = ComponentPropsWithoutRef<"main"> & PropsWithChildren;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import classnames from "classnames";
|
|
3
|
-
import { forwardRef } from "react";
|
|
3
|
+
import { forwardRef, } from "react";
|
|
4
|
+
import { Svg } from "../Svg";
|
|
4
5
|
import { linkClassName } from "./linkClassName";
|
|
5
6
|
const LinkAnchor = forwardRef(({ className, target, rel, leftIcon, children, rightIcon, disabled, variant, ...restProps }, ref) => {
|
|
6
7
|
const finalClassName = classnames(linkClassName, className, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/distributeur/Message/Message.css";
|
|
2
|
-
import { MouseEventHandler, PropsWithChildren, ReactNode } from "react";
|
|
2
|
+
import type { MouseEventHandler, PropsWithChildren, ReactNode } from "react";
|
|
3
3
|
export type MessageVariants = "error" | "warning" | "info" | "success";
|
|
4
4
|
export type MessageProps = {
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { type ReactNode } from "react";
|
|
2
2
|
import { type HeaderProps } from "./components/Header";
|
|
3
|
-
import { ModalProps } from "./Modal";
|
|
3
|
+
import type { ModalProps } from "./Modal";
|
|
4
4
|
export type BooleanModalProps = React.DetailedHTMLProps<React.DialogHTMLAttributes<HTMLDialogElement>, HTMLDialogElement> & Omit<HeaderProps, "children" | "onCancel" | "title"> & Pick<ModalProps, "size"> & {
|
|
5
5
|
/**
|
|
6
6
|
* Title of the modal, displayed in the header.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
2
|
+
import React, { forwardRef } from "react";
|
|
3
3
|
import { Button, Modal, getComponentClassName } from "../../distributeur";
|
|
4
4
|
import { Body } from "./components/Body";
|
|
5
5
|
import { Footer } from "./components/Footer";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3
|
-
import React, { useRef } from "react";
|
|
4
3
|
import { arrow, FloatingArrow, offset, useFloating, } from "@floating-ui/react";
|
|
4
|
+
import React, { useRef } from "react";
|
|
5
5
|
import { getComponentClassName } from "../utilities";
|
|
6
6
|
const defaultClassName = "af-popover__container";
|
|
7
7
|
export const AnimatedPopover = ({ placement, children, isOpen, target, className, classModifier, onMouseEnter, onMouseLeave, }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { Placement } from "@floating-ui/react";
|
|
1
2
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { PopoverModes } from "./Popover.types";
|
|
3
|
+
import type { PopoverModes } from "./Popover.types";
|
|
4
4
|
type Props = {
|
|
5
5
|
className?: string;
|
|
6
6
|
classModifier?: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
2
3
|
import { PopoverClick } from "./PopoverClick";
|
|
3
4
|
import { PopoverOver } from "./PopoverOver";
|
|
4
5
|
const Popover = ({ children, placement = "top", className, classModifier, mode = "click", popoverElement: content, }) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PopoverProps } from "./Popover.types";
|
|
1
|
+
import type { PopoverProps } from "./Popover.types";
|
|
2
2
|
export declare const PopoverClick: ({ children, placement, className, classModifier, element, }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PopoverProps } from "./Popover.types";
|
|
1
|
+
import type { PopoverProps } from "./Popover.types";
|
|
2
2
|
export declare const PopoverOver: ({ children, placement, className, classModifier, element: content, }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
2
3
|
import { getComponentClassName } from "../utilities";
|
|
3
4
|
export const HeaderRestitution = ({ title, subtitle, rightTitle, className, classModifier, }) => {
|
|
4
5
|
const componentClassName = getComponentClassName(className, classModifier, "af-restitution__header");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from "react";
|
|
1
|
+
import type { ComponentPropsWithoutRef } from "react";
|
|
2
2
|
import { StepNoLink } from "./StepNoLink";
|
|
3
3
|
type Props = ComponentPropsWithoutRef<typeof StepNoLink>;
|
|
4
4
|
declare const StepCurrent: ({ className, ...otherProps }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from "react";
|
|
1
|
+
import type { ComponentPropsWithoutRef } from "react";
|
|
2
2
|
import { StepNoLink } from "./StepNoLink";
|
|
3
3
|
type Props = ComponentPropsWithoutRef<typeof StepNoLink>;
|
|
4
4
|
declare const StepDisabled: ({ className, ...otherProps }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/distributeur/Table/Pager.css";
|
|
2
|
-
import { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/distributeur/Table/Paging.css";
|
|
2
|
-
import { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
3
3
|
import { Items } from "./Items";
|
|
4
4
|
import { Pager } from "./Pager";
|
|
5
5
|
type PagingComponentProps = ComponentPropsWithoutRef<typeof Pager> & ComponentPropsWithoutRef<typeof Items>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import {} from "react";
|
|
2
3
|
import { getComponentClassName } from "../utilities";
|
|
3
4
|
const Tr = ({ children, id, className, classModifier, ...otherProps }) => {
|
|
4
5
|
const componentClassName = getComponentClassName(className, classModifier, "af-table__tr");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { TabProps } from "./components/Tab";
|
|
3
|
-
import { TabsCoreProps } from "./components/TabsCore";
|
|
2
|
+
import { type TabProps } from "./components/Tab";
|
|
3
|
+
import { type TabsCoreProps } from "./components/TabsCore";
|
|
4
4
|
type TTabs = React.ComponentType<TabsCoreProps> & {
|
|
5
5
|
Tab: React.ComponentType<TabProps>;
|
|
6
6
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState } from "react";
|
|
2
|
+
import React, { useState } from "react";
|
|
3
3
|
import { TabsStateless } from "./TabsStateless";
|
|
4
4
|
const DEFAULT_ACTIVE_INDEX = "0";
|
|
5
5
|
export const onChangeEvent = (onChange) => (setState) => (event, index) => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import classNames from "classnames";
|
|
3
|
+
import React from "react";
|
|
3
4
|
import { getComponentClassName } from "../../utilities";
|
|
4
5
|
const Title = ({ active, onChange, children, classModifier, className, enable, id, }) => {
|
|
5
6
|
const newClassModifier = classNames(classModifier, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/distributeur/Tag/Tag.css";
|
|
2
|
-
import { ComponentPropsWithRef, PropsWithChildren } from "react";
|
|
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
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/canopee-css/distributeur/Tag/Tag.css";
|
|
3
|
-
import { forwardRef } from "react";
|
|
3
|
+
import { forwardRef, } from "react";
|
|
4
4
|
import { getComponentClassNameWithUserClassname } from "../utilities/helpers/getComponentClassName";
|
|
5
5
|
/**
|
|
6
6
|
* Tag component to display a label with various styles.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/distributeur/Title/Title.css";
|
|
2
|
-
import { ComponentPropsWithRef, PropsWithChildren, ReactElement, ReactNode } from "react";
|
|
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
5
|
classModifier?: string;
|
package/dist/distributeur.js
CHANGED
|
@@ -46,6 +46,7 @@ export { Badge, Tag };
|
|
|
46
46
|
*/
|
|
47
47
|
const Alert = Message;
|
|
48
48
|
export * from "./distributeur/Accordion";
|
|
49
|
+
export {} from "./distributeur/Messages/Message";
|
|
49
50
|
export * from "./distributeur/Popover";
|
|
50
51
|
export * from "./distributeur/Table";
|
|
51
52
|
export { Alert, Message };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import {} from "../utilities/types/PolymorphicComponent";
|
|
2
3
|
import { getClassName } from "../utilities/getClassName";
|
|
3
4
|
export const CardCommon = ({ as, children, className, ...props }) => {
|
|
4
5
|
const Component = as || "div";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ComponentPropsWithRef } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { type IconSizeVariants, type IconVariants } from "../Icon/IconCommon";
|
|
3
3
|
export type ClickIconVariant = "default" | "ghost";
|
|
4
4
|
export type ClickIconProps = ComponentPropsWithRef<"button"> & {
|
|
5
5
|
src: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import {} from "react";
|
|
2
3
|
import { Icon, iconSizeVariants, } from "../Icon/IconCommon";
|
|
3
4
|
import { getClassName } from "../utilities/getClassName";
|
|
4
5
|
export const ClickIcon = ({ src, className, iconVariant = "primary", iconClassName, size = "S", variant = "default", ...props }) => {
|
|
@@ -3,4 +3,5 @@ import "@axa-fr/canopee-css/prospect/List/ContentItemDuoAction/ContentItemDuoAct
|
|
|
3
3
|
import { ContentItemDuoActionCommon, } from "./ContentItemDuoActionCommon";
|
|
4
4
|
import { ContentItemMono } from "../ContentItemMono/ContentItemMonoApollo";
|
|
5
5
|
import { Toggle } from "../Toggle/ToggleApollo";
|
|
6
|
+
export {} from "./ContentItemDuoActionCommon";
|
|
6
7
|
export const ContentItemDuoAction = (props) => (_jsx(ContentItemDuoActionCommon, { ...props, ContentItemMonoComponent: ContentItemMono, ToggleComponent: Toggle }));
|
|
@@ -4,4 +4,5 @@ import "@axa-fr/canopee-css/client/ContentItemMono/ContentItemMonoLF.css";
|
|
|
4
4
|
import { ContentItemDuoActionCommon, } from "./ContentItemDuoActionCommon";
|
|
5
5
|
import { ContentItemMono } from "../ContentItemMono/ContentItemMonoLF";
|
|
6
6
|
import { Toggle } from "../Toggle/ToggleLF";
|
|
7
|
+
export {} from "./ContentItemDuoActionCommon";
|
|
7
8
|
export const ContentItemDuoAction = (props) => (_jsx(ContentItemDuoActionCommon, { ...props, ContentItemMonoComponent: ContentItemMono, ToggleComponent: Toggle }));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentProps, ComponentType } from "react";
|
|
2
|
-
import { Icon, IconProps } from "../Icon/IconCommon";
|
|
2
|
+
import { Icon, type IconProps } from "../Icon/IconCommon";
|
|
3
3
|
import { type ContentItemCoreProps } from "./ContentItemMonoCore";
|
|
4
4
|
export type ContentMonoItemSize = "medium" | "large";
|
|
5
5
|
export type ContentMonoItemPictureProps = {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { BasePicture } from "../BasePicture/BasePicture";
|
|
3
|
+
import { Icon } from "../Icon/IconCommon";
|
|
3
4
|
import { ContentItemMonoCore, } from "./ContentItemMonoCore";
|
|
4
5
|
export const getContentItemCoreProps = ({ IconComponent, type, ...props }) => {
|
|
5
6
|
if (type === "icon") {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { ElementType } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { AtLeastOne } from "../utilities/types/AtLeastOne";
|
|
1
|
+
import type { ElementType, ReactNode } from "react";
|
|
2
|
+
import type { AtLeastOne } from "../utilities/types/AtLeastOne";
|
|
4
3
|
export type ContentMonoItemSize = "medium" | "large";
|
|
5
4
|
type TextFields = {
|
|
6
5
|
title?: string;
|
|
@@ -4,4 +4,5 @@ import { ClickItem } from "../List/ClickItem/ClickItemApollo";
|
|
|
4
4
|
import { ContentItemMono } from "../ContentItemMono/ContentItemMonoApollo";
|
|
5
5
|
import { Divider } from "../Divider/DividerApollo";
|
|
6
6
|
import "@axa-fr/canopee-css/prospect/DataAgent/DataAgentApollo.css";
|
|
7
|
+
export {} from "./DataAgentCommon";
|
|
7
8
|
export const DataAgent = (props) => (_jsx(DataAgentCommon, { ...props, DividerComponent: Divider, ClickItemComponent: ClickItem, ContentItemMonoComponent: ContentItemMono }));
|