chiperos-ai-components-library 0.0.2 → 0.1.0
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/chiperos-ai-components-library.cjs +25 -38
- package/dist/chiperos-ai-components-library.cjs.map +1 -1
- package/dist/chiperos-ai-components-library.js +4227 -5293
- package/dist/chiperos-ai-components-library.js.map +1 -1
- package/dist/components/Table/Table.stories.d.ts +21 -38
- package/package.json +35 -8
|
@@ -1,42 +1,16 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
2
|
-
import {
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { TableProps } from './index';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
columns: {
|
|
13
|
-
control: "object";
|
|
14
|
-
description: string;
|
|
15
|
-
};
|
|
16
|
-
data: {
|
|
17
|
-
control: "object";
|
|
18
|
-
description: string;
|
|
19
|
-
};
|
|
20
|
-
rowsPerPage: {
|
|
21
|
-
control: "number";
|
|
22
|
-
description: string;
|
|
23
|
-
};
|
|
24
|
-
showPagination: {
|
|
25
|
-
control: "boolean";
|
|
26
|
-
description: string;
|
|
27
|
-
};
|
|
28
|
-
loading: {
|
|
29
|
-
control: "boolean";
|
|
30
|
-
description: string;
|
|
31
|
-
};
|
|
32
|
-
emptyMessage: {
|
|
33
|
-
control: "text";
|
|
34
|
-
description: string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
};
|
|
4
|
+
interface User {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
email: string;
|
|
8
|
+
role: string;
|
|
9
|
+
status: string;
|
|
10
|
+
}
|
|
11
|
+
declare const meta: Meta<TableProps<User>>;
|
|
38
12
|
export default meta;
|
|
39
|
-
type Story = StoryObj<
|
|
13
|
+
type Story = StoryObj<TableProps<User>>;
|
|
40
14
|
export declare const Default: Story;
|
|
41
15
|
export declare const WithPagination: Story;
|
|
42
16
|
export declare const CustomRowsPerPage: Story;
|
|
@@ -45,7 +19,16 @@ export declare const Empty: Story;
|
|
|
45
19
|
export declare const CustomEmptyMessage: Story;
|
|
46
20
|
export declare const WithCustomRender: Story;
|
|
47
21
|
export declare const WithTwoLineCell: Story;
|
|
48
|
-
|
|
22
|
+
interface ExtendedUser {
|
|
23
|
+
id: number;
|
|
24
|
+
firstName: string;
|
|
25
|
+
lastName: string;
|
|
26
|
+
email: string;
|
|
27
|
+
phone: string;
|
|
28
|
+
department: string;
|
|
29
|
+
role: string;
|
|
30
|
+
}
|
|
31
|
+
export declare const ManyColumns: StoryObj<TableProps<ExtendedUser>>;
|
|
49
32
|
export declare const RowHighlighting: Story;
|
|
50
33
|
export declare const Interactive: Story;
|
|
51
34
|
export declare const ClickableRows: Story;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chiperos-ai-components-library",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0
|
|
4
|
+
"version": "0.1.0",
|
|
5
5
|
"description": "Chiperos AI Components Library - A modern React component library built with Vite, TypeScript and Tailwind CSS.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/chiperos-ai-components-library.cjs",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
12
13
|
"import": "./dist/chiperos-ai-components-library.js",
|
|
13
14
|
"require": "./dist/chiperos-ai-components-library.cjs"
|
|
14
15
|
}
|
|
@@ -25,21 +26,47 @@
|
|
|
25
26
|
"build-storybook": "storybook build"
|
|
26
27
|
},
|
|
27
28
|
"dependencies": {
|
|
28
|
-
"@radix-ui/react-radio-group": "^1.3.8",
|
|
29
|
-
"@radix-ui/react-slot": "^1.2.4",
|
|
30
|
-
"@radix-ui/react-switch": "^1.2.6",
|
|
31
29
|
"class-variance-authority": "^0.7.1",
|
|
32
30
|
"libphonenumber-js": "^1.12.31",
|
|
33
|
-
"lucide-react": "^0.534.0",
|
|
34
|
-
"next-intl": "^4.3.4",
|
|
35
|
-
"radix-ui": "^1.4.3",
|
|
36
31
|
"zod": "^4.1.13"
|
|
37
32
|
},
|
|
38
33
|
"peerDependencies": {
|
|
39
34
|
"react": "^18.2.0",
|
|
40
|
-
"react-dom": "^18.2.0"
|
|
35
|
+
"react-dom": "^18.2.0",
|
|
36
|
+
"@radix-ui/react-radio-group": "^1.3.8",
|
|
37
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
38
|
+
"@radix-ui/react-switch": "^1.2.6",
|
|
39
|
+
"lucide-react": "^0.534.0",
|
|
40
|
+
"next-intl": "^4.3.4",
|
|
41
|
+
"radix-ui": "^1.4.3"
|
|
42
|
+
},
|
|
43
|
+
"peerDependenciesMeta": {
|
|
44
|
+
"@radix-ui/react-radio-group": {
|
|
45
|
+
"optional": true
|
|
46
|
+
},
|
|
47
|
+
"@radix-ui/react-slot": {
|
|
48
|
+
"optional": true
|
|
49
|
+
},
|
|
50
|
+
"@radix-ui/react-switch": {
|
|
51
|
+
"optional": true
|
|
52
|
+
},
|
|
53
|
+
"lucide-react": {
|
|
54
|
+
"optional": true
|
|
55
|
+
},
|
|
56
|
+
"next-intl": {
|
|
57
|
+
"optional": true
|
|
58
|
+
},
|
|
59
|
+
"radix-ui": {
|
|
60
|
+
"optional": true
|
|
61
|
+
}
|
|
41
62
|
},
|
|
42
63
|
"devDependencies": {
|
|
64
|
+
"@radix-ui/react-radio-group": "^1.3.8",
|
|
65
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
66
|
+
"@radix-ui/react-switch": "^1.2.6",
|
|
67
|
+
"lucide-react": "^0.534.0",
|
|
68
|
+
"next-intl": "^4.3.4",
|
|
69
|
+
"radix-ui": "^1.4.3",
|
|
43
70
|
"@chromatic-com/storybook": "^1.5.0",
|
|
44
71
|
"@storybook/addon-essentials": "^8.1.10",
|
|
45
72
|
"@storybook/addon-interactions": "^8.1.10",
|