chiperos-ai-components-library 0.0.2 → 0.1.1

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.
@@ -20,6 +20,11 @@ declare const meta: {
20
20
  control: "text";
21
21
  description: string;
22
22
  };
23
+ variant: {
24
+ control: "select";
25
+ options: string[];
26
+ description: string;
27
+ };
23
28
  disabled: {
24
29
  control: "boolean";
25
30
  description: string;
@@ -48,3 +53,10 @@ export declare const CustomWidth: Story;
48
53
  export declare const AllStates: Story;
49
54
  export declare const FormExample: Story;
50
55
  export declare const Interactive: Story;
56
+ export declare const PrimaryVariant: Story;
57
+ export declare const PrimaryWithValue: Story;
58
+ export declare const PrimaryWithLabel: Story;
59
+ export declare const PrimaryDisabled: Story;
60
+ export declare const PrimaryLongOptions: Story;
61
+ export declare const VariantsComparison: Story;
62
+ export declare const PrimaryInHeader: Story;
@@ -27,6 +27,12 @@ export interface SelectProps {
27
27
  * Label text shown above the selected value
28
28
  */
29
29
  label?: string;
30
+ /**
31
+ * Visual variant of the select
32
+ * - default: white background with border
33
+ * - primary: green background like primary button
34
+ */
35
+ variant?: 'default' | 'primary';
30
36
  /**
31
37
  * Additional CSS classes
32
38
  */
@@ -1,42 +1,16 @@
1
- import { StoryObj } from '@storybook/react';
2
- import { Table } from './index';
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { TableProps } from './index';
3
3
 
4
- declare const meta: {
5
- title: string;
6
- component: typeof Table;
7
- parameters: {
8
- layout: string;
9
- };
10
- tags: string[];
11
- argTypes: {
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<typeof meta>;
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
- export declare const ManyColumns: Story;
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.2",
4
+ "version": "0.1.1",
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",