opus-toolkit-components 1.9.0 → 1.9.2

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.
@@ -1,18 +1,18 @@
1
- export interface TableColumn {
2
- key: string;
3
- header: string;
4
- render?: (row: any) => React.ReactNode;
5
- }
6
-
7
- export interface TableProps extends React.HTMLAttributes<HTMLDivElement> {
8
- data?: TableColumn[];
9
- rows?: any[];
10
- className?: string;
11
- rowClassName?: string;
12
- cellClassName?: string;
13
- headRowClassName?: string;
14
- headCellClassName?: string;
15
- rowKeyExtractor?: (row: any, index: number) => string | number;
16
- }
17
-
18
- export const Table: React.FC<TableProps>;
1
+ export interface TableColumn {
2
+ key: string;
3
+ header: string;
4
+ render?: (row: any) => React.ReactNode;
5
+ }
6
+
7
+ export interface TableProps extends React.HTMLAttributes<HTMLDivElement> {
8
+ data?: TableColumn[];
9
+ rows?: any[];
10
+ className?: string;
11
+ rowClassName?: string;
12
+ cellClassName?: string;
13
+ headRowClassName?: string;
14
+ headCellClassName?: string;
15
+ rowKeyExtractor?: (row: any, index: number) => string | number;
16
+ }
17
+
18
+ export const Table: React.FC<TableProps>;
@@ -1,25 +1,25 @@
1
- export type TextVariant =
2
- | "h1"
3
- | "h2"
4
- | "h3"
5
- | "h4"
6
- | "h5"
7
- | "h6"
8
- | "body"
9
- | "small"
10
- | "caption"
11
- | "label";
12
-
13
- export type TextAs = keyof JSX.IntrinsicElements | React.ComponentType<any>;
14
-
15
- export interface TextProps extends React.HTMLAttributes<HTMLElement> {
16
- variant?: TextVariant;
17
- as?: TextAs;
18
- className?: string;
19
- color?: string;
20
- children?: React.ReactNode;
21
- name?: string;
22
- dataCy?: string;
23
- }
24
-
25
- export const Text: React.FC<TextProps>;
1
+ export type TextVariant =
2
+ | "h1"
3
+ | "h2"
4
+ | "h3"
5
+ | "h4"
6
+ | "h5"
7
+ | "h6"
8
+ | "body"
9
+ | "small"
10
+ | "caption"
11
+ | "label";
12
+
13
+ export type TextAs = keyof JSX.IntrinsicElements | React.ComponentType<any>;
14
+
15
+ export interface TextProps extends React.HTMLAttributes<HTMLElement> {
16
+ variant?: TextVariant;
17
+ as?: TextAs;
18
+ className?: string;
19
+ color?: string;
20
+ children?: React.ReactNode;
21
+ name?: string;
22
+ dataCy?: string;
23
+ }
24
+
25
+ export const Text: React.FC<TextProps>;