@axa-fr/design-system-look-and-feel-react 0.3.0-ci.299 → 0.3.0-ci.301

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.
@@ -0,0 +1,11 @@
1
+ import { ComponentPropsWithRef, PropsWithChildren } from "react";
2
+ import { Skeleton, List } from "..";
3
+ export type SkeletonListProps = {
4
+ lists: {
5
+ lines?: number;
6
+ grid: ComponentPropsWithRef<typeof Skeleton>["grid"];
7
+ }[];
8
+ classModifierList?: ComponentPropsWithRef<typeof List>["classModifier"];
9
+ isLoading: boolean;
10
+ } & PropsWithChildren;
11
+ export declare const SkeletonList: ({ children, isLoading, lists, classModifierList, }: SkeletonListProps) => string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | import("react/jsx-runtime").JSX.Element[] | null | undefined;
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Skeleton, List } from "..";
3
+ export const SkeletonList = ({ children, isLoading, lists = [], classModifierList, }) => isLoading
4
+ ? lists.map(({ lines = 1, grid }) => (_jsx(List, { classModifier: classModifierList, children: [...Array(lines).keys()].map(() => (_jsx(Skeleton, { grid: grid }, crypto.randomUUID()))) }, crypto.randomUUID())))
5
+ : children;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axa-fr/design-system-look-and-feel-react",
3
- "version": "0.3.0-ci.299",
3
+ "version": "0.3.0-ci.301",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "homepage": "https://github.com/AxaFrance/design-system#readme",
47
47
  "peerDependencies": {
48
- "@axa-fr/design-system-look-and-feel-css": "0.3.0-ci.299",
48
+ "@axa-fr/design-system-look-and-feel-css": "0.3.0-ci.301",
49
49
  "@material-symbols/svg-400": ">= 0.19.0",
50
50
  "react": ">= 18"
51
51
  },