@kroo-web/design-system 1.0.52 → 1.0.54
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/cjs/components/Cards/index.d.ts +9 -0
- package/dist/cjs/components/Table/index.d.ts +17 -0
- package/dist/cjs/components/Wrapper/index.d.ts +12 -0
- package/dist/cjs/components/index.d.ts +3 -0
- package/dist/cjs/index.js +9 -9
- package/dist/esm/components/Cards/index.d.ts +9 -0
- package/dist/esm/components/Table/index.d.ts +17 -0
- package/dist/esm/components/Wrapper/index.d.ts +12 -0
- package/dist/esm/components/index.d.ts +3 -0
- package/dist/esm/index.js +9 -9
- package/dist/types.d.ts +39 -1
- package/package.json +2 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
export type CardsVariants = {
|
|
3
|
+
layout?: 'bento-three' | 'bento-four' | 'bento-five';
|
|
4
|
+
};
|
|
5
|
+
export interface ICardsProps extends PropsWithChildren {
|
|
6
|
+
as: 'div' | 'ol' | 'ul' | 'section';
|
|
7
|
+
variants: CardsVariants;
|
|
8
|
+
}
|
|
9
|
+
export declare const Cards: ({ as, children, variants }: ICardsProps) => React.JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
export declare const TableRoot: ({ children }: PropsWithChildren) => React.JSX.Element;
|
|
3
|
+
export declare const TableHead: ({ children }: PropsWithChildren) => React.JSX.Element;
|
|
4
|
+
export declare const TableHeader: ({ children }: PropsWithChildren) => React.JSX.Element;
|
|
5
|
+
export declare const TableBody: ({ children }: PropsWithChildren) => React.JSX.Element;
|
|
6
|
+
export declare const TableRow: ({ children }: PropsWithChildren) => React.JSX.Element;
|
|
7
|
+
export declare const TableData: ({ children }: PropsWithChildren) => React.JSX.Element;
|
|
8
|
+
export declare const TableFooter: ({ children }: PropsWithChildren) => React.JSX.Element;
|
|
9
|
+
export declare const Table: {
|
|
10
|
+
Root: ({ children }: PropsWithChildren) => React.JSX.Element;
|
|
11
|
+
Head: ({ children }: PropsWithChildren) => React.JSX.Element;
|
|
12
|
+
Header: ({ children }: PropsWithChildren) => React.JSX.Element;
|
|
13
|
+
Body: ({ children }: PropsWithChildren) => React.JSX.Element;
|
|
14
|
+
Row: ({ children }: PropsWithChildren) => React.JSX.Element;
|
|
15
|
+
Data: ({ children }: PropsWithChildren) => React.JSX.Element;
|
|
16
|
+
Footer: ({ children }: PropsWithChildren) => React.JSX.Element;
|
|
17
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
export interface WrapperProps extends PropsWithChildren {
|
|
3
|
+
as?: 'li' | 'div';
|
|
4
|
+
variants?: WrapperVariants;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export type WrapperVariants = {
|
|
8
|
+
visual?: 'paper' | 'bento' | 'bento-icon';
|
|
9
|
+
orientation?: 'center';
|
|
10
|
+
type?: 'trustPilot';
|
|
11
|
+
};
|
|
12
|
+
export declare const Wrapper: ({ as, className, variants, children, }: WrapperProps) => React.JSX.Element;
|
|
@@ -2,6 +2,7 @@ export * from './Accordion';
|
|
|
2
2
|
export * from './Button';
|
|
3
3
|
export * from './Callout';
|
|
4
4
|
export * from './Card';
|
|
5
|
+
export * from './Cards';
|
|
5
6
|
export * from './Columns';
|
|
6
7
|
export * from './ComboBox';
|
|
7
8
|
export * from './DatePicker';
|
|
@@ -16,7 +17,9 @@ export * from './RadioGroup';
|
|
|
16
17
|
export * from './Range';
|
|
17
18
|
export * from './Select';
|
|
18
19
|
export * from './Skeleton';
|
|
20
|
+
export * from './Table';
|
|
19
21
|
export * from './TextField';
|
|
20
22
|
export * from './Toast';
|
|
21
23
|
export * from './Tooltip';
|
|
22
24
|
export * from './Typography';
|
|
25
|
+
export * from './Wrapper';
|