@axa-fr/canopee-react 1.1.1-alpha.8 → 1.1.1-alpha.9
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/Card/CardApollo.d.ts +2 -0
- package/dist/prospect-client/Card/CardApollo.js +2 -0
- package/dist/prospect-client/Card/CardCommon.d.ts +4 -0
- package/dist/prospect-client/Card/CardCommon.js +9 -0
- package/dist/prospect-client/Card/CardLF.d.ts +2 -0
- package/dist/prospect-client/Card/CardLF.js +2 -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
|
@@ -58,3 +58,4 @@ export { TimelineVertical } from "./prospect-client/TimelineVertical/TimelineVer
|
|
|
58
58
|
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
|
+
export { Card, type CardProps } from "./prospect-client/Card/CardLF";
|
package/dist/client.js
CHANGED
|
@@ -57,3 +57,4 @@ export { TimelineVertical } from "./prospect-client/TimelineVertical/TimelineVer
|
|
|
57
57
|
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
|
+
export { Card } from "./prospect-client/Card/CardLF";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ComponentProps, ElementType } from "react";
|
|
2
|
+
import { type PolymorphicComponent } from "../utilities/types/PolymorphicComponent";
|
|
3
|
+
export type CardCommonProps<T extends ElementType> = PolymorphicComponent<T, ComponentProps<"div">>;
|
|
4
|
+
export declare const CardCommon: <T extends ElementType = "div">({ as, children, className, ...props }: CardCommonProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { getClassName } from "../utilities/getClassName";
|
|
3
|
+
export const CardCommon = ({ as, children, className, ...props }) => {
|
|
4
|
+
const Component = as || "div";
|
|
5
|
+
return (_jsx(Component, { className: getClassName({
|
|
6
|
+
baseClassName: "af-card",
|
|
7
|
+
className,
|
|
8
|
+
}), ...props, children: children }));
|
|
9
|
+
};
|
package/dist/prospect.d.ts
CHANGED
|
@@ -54,3 +54,4 @@ export { TimelineVertical } from "./prospect-client/TimelineVertical/TimelineVer
|
|
|
54
54
|
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
|
+
export { Card, type CardProps } from "./prospect-client/Card/CardApollo";
|
package/dist/prospect.js
CHANGED
|
@@ -53,3 +53,4 @@ export { TimelineVertical } from "./prospect-client/TimelineVertical/TimelineVer
|
|
|
53
53
|
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
|
+
export { Card } from "./prospect-client/Card/CardApollo";
|
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.9",
|
|
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.9",
|
|
49
49
|
"@material-symbols/svg-400": ">= 0.19.0",
|
|
50
50
|
"@material-symbols/svg-700": ">= 0.19.0",
|
|
51
51
|
"react": ">= 18"
|