@axa-fr/canopee-react 1.1.1-alpha.7 → 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 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,2 @@
1
+ import "@axa-fr/canopee-css/prospect/Card/CardApollo.css";
2
+ export { type CardCommonProps as CardProps, CardCommon as Card, } from "./CardCommon";
@@ -0,0 +1,2 @@
1
+ import "@axa-fr/canopee-css/prospect/Card/CardApollo.css";
2
+ export { CardCommon as Card, } from "./CardCommon";
@@ -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
+ };
@@ -0,0 +1,2 @@
1
+ import "@axa-fr/canopee-css/client/Card/CardLF.css";
2
+ export { type CardCommonProps as CardProps, CardCommon as Card, } from "./CardCommon";
@@ -0,0 +1,2 @@
1
+ import "@axa-fr/canopee-css/client/Card/CardLF.css";
2
+ export { CardCommon as Card, } from "./CardCommon";
@@ -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.7",
3
+ "version": "1.1.1-alpha.9",
4
4
  "description": "Package React - Design System Canopée",
5
5
  "exports": {
6
6
  "./distributeur": {
@@ -21,6 +21,7 @@
21
21
  ],
22
22
  "scripts": {
23
23
  "prebuild": "rimraf dist",
24
+ "dev": "tsc -p tsconfig.build.json --watch",
24
25
  "build": "tsc -p tsconfig.build.json",
25
26
  "eslint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
26
27
  "eslint:fix": "eslint src --ext js,jsx,ts,tsx --fix",
@@ -44,7 +45,7 @@
44
45
  },
45
46
  "homepage": "https://github.com/AxaFrance/design-system#readme",
46
47
  "peerDependencies": {
47
- "@axa-fr/canopee-css": "1.1.1-alpha.7",
48
+ "@axa-fr/canopee-css": "1.1.1-alpha.9",
48
49
  "@material-symbols/svg-400": ">= 0.19.0",
49
50
  "@material-symbols/svg-700": ">= 0.19.0",
50
51
  "react": ">= 18"