@axa-fr/canopee-react 1.1.1-alpha.20 → 1.1.1-alpha.22
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.d.ts +1 -0
- package/dist/client.js +1 -0
- package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionCommon.d.ts +1 -1
- package/dist/prospect-client/List/List/ListApollo.d.ts +4 -0
- package/dist/prospect-client/List/List/ListApollo.js +5 -0
- package/dist/prospect-client/List/List/ListCommon.d.ts +8 -0
- package/dist/prospect-client/List/List/ListCommon.js +4 -0
- package/dist/prospect-client/List/List/ListLF.d.ts +4 -0
- package/dist/prospect-client/List/List/ListLF.js +5 -0
- package/dist/prospect.d.ts +1 -0
- package/dist/prospect.js +1 -0
- package/package.json +2 -2
package/dist/client.d.ts
CHANGED
|
@@ -59,3 +59,4 @@ export { Toggle } from "./prospect-client/Toggle/ToggleLF";
|
|
|
59
59
|
export { Pagination } from "./prospect-client/Pagination/PaginationLF";
|
|
60
60
|
export { ItemPagination, type ItemPaginationProps, } from "./prospect-client/Pagination/ItemPagination/ItemPaginationLF";
|
|
61
61
|
export { Card, type CardProps } from "./prospect-client/Card/CardLF";
|
|
62
|
+
export { List, type ListProps } from "./prospect-client/List/List/ListLF";
|
package/dist/client.js
CHANGED
|
@@ -58,3 +58,4 @@ export { Toggle } from "./prospect-client/Toggle/ToggleLF";
|
|
|
58
58
|
export { Pagination } from "./prospect-client/Pagination/PaginationLF";
|
|
59
59
|
export { ItemPagination, } from "./prospect-client/Pagination/ItemPagination/ItemPaginationLF";
|
|
60
60
|
export { Card } from "./prospect-client/Card/CardLF";
|
|
61
|
+
export { List } from "./prospect-client/List/List/ListLF";
|
|
@@ -12,7 +12,7 @@ export type ContentItemDuoActionToggleProps = {
|
|
|
12
12
|
ContentItemMonoComponent: ComponentType<ContentItemProps>;
|
|
13
13
|
contentItemProps: ContentItemProps;
|
|
14
14
|
ToggleComponent: ComponentType<ToggleProps>;
|
|
15
|
-
toggleProps
|
|
15
|
+
toggleProps?: ToggleProps;
|
|
16
16
|
};
|
|
17
17
|
export type ContentItemDuoActionButtonsProps = {
|
|
18
18
|
className?: string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "@axa-fr/canopee-css/prospect/List/List/ListApollo.css";
|
|
3
|
+
import { Card } from "../../Card/CardApollo";
|
|
4
|
+
import { ListCommon } from "./ListCommon";
|
|
5
|
+
export const List = (props) => (_jsx(ListCommon, { ...props, CardComponent: Card }));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentProps, ComponentType } from "react";
|
|
2
|
+
import { CardCommon as Card, type CardCommonProps } from "../../Card/CardCommon";
|
|
3
|
+
export type ListProps = CardCommonProps<"ul" | "ol">;
|
|
4
|
+
type ListPropsCommon = ListProps & {
|
|
5
|
+
CardComponent: ComponentType<ComponentProps<typeof Card>>;
|
|
6
|
+
};
|
|
7
|
+
export declare const ListCommon: ({ children, CardComponent, as, ...listProps }: ListPropsCommon) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Children } from "react";
|
|
3
|
+
import { generateId } from "../../utilities/generateId";
|
|
4
|
+
export const ListCommon = ({ children, CardComponent, as = "ul", ...listProps }) => (_jsx(CardComponent, { as: as, ...listProps, children: Children.toArray(children).map((child) => (_jsx("li", { children: child }, generateId(child)))) }));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "@axa-fr/canopee-css/client/List/List/ListLF.css";
|
|
3
|
+
import { Card } from "../../Card/CardLF";
|
|
4
|
+
import { ListCommon } from "./ListCommon";
|
|
5
|
+
export const List = (props) => (_jsx(ListCommon, { ...props, CardComponent: Card }));
|
package/dist/prospect.d.ts
CHANGED
|
@@ -55,3 +55,4 @@ export { Toggle } from "./prospect-client/Toggle/ToggleApollo";
|
|
|
55
55
|
export { Pagination } from "./prospect-client/Pagination/PaginationApollo";
|
|
56
56
|
export { ItemPagination, type ItemPaginationProps, } from "./prospect-client/Pagination/ItemPagination/ItemPaginationApollo";
|
|
57
57
|
export { Card, type CardProps } from "./prospect-client/Card/CardApollo";
|
|
58
|
+
export { List, type ListProps } from "./prospect-client/List/List/ListApollo";
|
package/dist/prospect.js
CHANGED
|
@@ -54,3 +54,4 @@ export { Toggle } from "./prospect-client/Toggle/ToggleApollo";
|
|
|
54
54
|
export { Pagination } from "./prospect-client/Pagination/PaginationApollo";
|
|
55
55
|
export { ItemPagination, } from "./prospect-client/Pagination/ItemPagination/ItemPaginationApollo";
|
|
56
56
|
export { Card } from "./prospect-client/Card/CardApollo";
|
|
57
|
+
export { List } from "./prospect-client/List/List/ListApollo";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axa-fr/canopee-react",
|
|
3
|
-
"version": "1.1.1-alpha.
|
|
3
|
+
"version": "1.1.1-alpha.22",
|
|
4
4
|
"description": "Package React - Design System Canopée",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./distributeur": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"homepage": "https://github.com/AxaFrance/design-system#readme",
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@axa-fr/canopee-css": "1.1.1-alpha.
|
|
48
|
+
"@axa-fr/canopee-css": "1.1.1-alpha.22",
|
|
49
49
|
"@material-symbols/svg-400": ">= 0.19.0",
|
|
50
50
|
"@material-symbols/svg-700": ">= 0.19.0",
|
|
51
51
|
"react": ">= 18"
|