@taiv/ui 1.7.0 → 1.9.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.
Files changed (48) hide show
  1. package/dist/components/Inputs/Buttons/Button/Button.d.ts +2 -2
  2. package/dist/components/Inputs/Buttons/Button/Button.d.ts.map +1 -1
  3. package/dist/components/Inputs/Buttons/Button/Button.js +3 -3
  4. package/dist/components/Inputs/Buttons/Button/Button.stories.d.ts.map +1 -1
  5. package/dist/components/Inputs/Buttons/Button/Button.stories.js +10 -1
  6. package/dist/components/Inputs/Buttons/IconButton/IconButton.d.ts +18 -0
  7. package/dist/components/Inputs/Buttons/IconButton/IconButton.d.ts.map +1 -0
  8. package/dist/components/Inputs/Buttons/IconButton/IconButton.js +34 -0
  9. package/dist/components/Inputs/Buttons/IconButton/IconButton.stories.d.ts +14 -0
  10. package/dist/components/Inputs/Buttons/IconButton/IconButton.stories.d.ts.map +1 -0
  11. package/dist/components/Inputs/Buttons/IconButton/IconButton.stories.js +180 -0
  12. package/dist/components/Inputs/Buttons/IconButton/sizes.d.ts +19 -0
  13. package/dist/components/Inputs/Buttons/IconButton/sizes.d.ts.map +1 -0
  14. package/dist/components/Inputs/Buttons/IconButton/sizes.js +6 -0
  15. package/dist/components/Inputs/Buttons/shared/variants.d.ts +382 -0
  16. package/dist/components/Inputs/Buttons/shared/variants.d.ts.map +1 -0
  17. package/dist/components/Inputs/Buttons/{Button → shared}/variants.js +58 -1
  18. package/dist/components/Inputs/TextInputs/AutoComplete/AutoComplete.d.ts.map +1 -1
  19. package/dist/components/Inputs/TextInputs/AutoComplete/AutoComplete.js +8 -1
  20. package/dist/components/Inputs/TextInputs/NumberInput/NumberInput.d.ts +12 -0
  21. package/dist/components/Inputs/TextInputs/NumberInput/NumberInput.d.ts.map +1 -0
  22. package/dist/components/Inputs/TextInputs/NumberInput/NumberInput.js +63 -0
  23. package/dist/components/Inputs/TextInputs/NumberInput/NumberInput.stories.d.ts +12 -0
  24. package/dist/components/Inputs/TextInputs/NumberInput/NumberInput.stories.d.ts.map +1 -0
  25. package/dist/components/Inputs/TextInputs/NumberInput/NumberInput.stories.js +245 -0
  26. package/dist/components/Inputs/TextInputs/PasswordInput/PasswordInput.d.ts.map +1 -1
  27. package/dist/components/Inputs/TextInputs/PasswordInput/PasswordInput.js +14 -1
  28. package/dist/components/Inputs/TextInputs/SearchBar/SearchBar.d.ts.map +1 -1
  29. package/dist/components/Inputs/TextInputs/SearchBar/SearchBar.js +8 -1
  30. package/dist/components/Inputs/TextInputs/TextArea/TextArea.d.ts.map +1 -1
  31. package/dist/components/Inputs/TextInputs/TextArea/TextArea.js +9 -1
  32. package/dist/components/Inputs/TextInputs/TextInput/TextInput.d.ts.map +1 -1
  33. package/dist/components/Inputs/TextInputs/TextInput/TextInput.js +9 -1
  34. package/dist/components/Layout/Table/Table.d.ts +15 -0
  35. package/dist/components/Layout/Table/Table.d.ts.map +1 -0
  36. package/dist/components/Layout/Table/Table.js +48 -0
  37. package/dist/components/Layout/Table/Table.stories.d.ts +10 -0
  38. package/dist/components/Layout/Table/Table.stories.d.ts.map +1 -0
  39. package/dist/components/Layout/Table/Table.stories.js +257 -0
  40. package/dist/components/index.d.ts +4 -0
  41. package/dist/components/index.d.ts.map +1 -1
  42. package/dist/components/index.js +3 -0
  43. package/dist/constants/colors.d.ts +2 -0
  44. package/dist/constants/colors.d.ts.map +1 -1
  45. package/dist/constants/colors.js +2 -0
  46. package/package.json +5 -1
  47. package/dist/components/Inputs/Buttons/Button/variants.d.ts +0 -191
  48. package/dist/components/Inputs/Buttons/Button/variants.d.ts.map +0 -1
@@ -0,0 +1,257 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Table } from './Table';
3
+ import { Badge } from '../../Info/Badge/Badge';
4
+ import { Button } from '../../Inputs/Buttons/Button/Button';
5
+ const meta = {
6
+ title: 'Layouts/Table',
7
+ component: Table,
8
+ argTypes: {
9
+ columnConfigs: {
10
+ control: { type: 'object' },
11
+ description: 'Array of column configurations with headings and styles',
12
+ },
13
+ data: {
14
+ control: { type: 'object' },
15
+ description: 'Array of data items to display',
16
+ },
17
+ ListItem: {
18
+ control: false,
19
+ description: 'Component that renders each table row',
20
+ },
21
+ },
22
+ };
23
+ export default meta;
24
+ // Mock data
25
+ const userData = [
26
+ {
27
+ id: '1',
28
+ name: 'John Doe',
29
+ email: 'john.doe@example.com',
30
+ role: 'Administrator',
31
+ status: 'active',
32
+ lastLogin: '2024-01-15',
33
+ },
34
+ {
35
+ id: '2',
36
+ name: 'Jane Smith',
37
+ email: 'jane.smith@example.com',
38
+ role: 'Editor',
39
+ status: 'active',
40
+ lastLogin: '2024-01-14',
41
+ },
42
+ {
43
+ id: '3',
44
+ name: 'Bob Johnson',
45
+ email: 'bob.johnson@example.com',
46
+ role: 'Viewer',
47
+ status: 'inactive',
48
+ lastLogin: '2024-01-10',
49
+ },
50
+ {
51
+ id: '4',
52
+ name: 'Alice Williams',
53
+ email: 'alice.williams@example.com',
54
+ role: 'Editor',
55
+ status: 'active',
56
+ lastLogin: '2024-01-15',
57
+ },
58
+ ];
59
+ const productData = [
60
+ {
61
+ id: '1',
62
+ name: 'Premium Widget',
63
+ category: 'Electronics',
64
+ price: 99.99,
65
+ stock: 150,
66
+ status: 'in-stock',
67
+ },
68
+ {
69
+ id: '2',
70
+ name: 'Standard Widget',
71
+ category: 'Electronics',
72
+ price: 49.99,
73
+ stock: 3,
74
+ status: 'low-stock',
75
+ },
76
+ {
77
+ id: '3',
78
+ name: 'Basic Widget',
79
+ category: 'Accessories',
80
+ price: 19.99,
81
+ stock: 0,
82
+ status: 'out-of-stock',
83
+ },
84
+ {
85
+ id: '4',
86
+ name: 'Deluxe Widget',
87
+ category: 'Electronics',
88
+ price: 149.99,
89
+ stock: 45,
90
+ status: 'in-stock',
91
+ },
92
+ ];
93
+ const projectData = [
94
+ {
95
+ id: '1',
96
+ title: 'Website Redesign',
97
+ team: ['Alice', 'Bob', 'Charlie'],
98
+ progress: 75,
99
+ deadline: '2024-02-15',
100
+ priority: 'high',
101
+ },
102
+ {
103
+ id: '2',
104
+ title: 'Mobile App Update',
105
+ team: ['David', 'Eve'],
106
+ progress: 45,
107
+ deadline: '2024-03-01',
108
+ priority: 'medium',
109
+ },
110
+ {
111
+ id: '3',
112
+ title: 'API Documentation',
113
+ team: ['Frank', 'Grace'],
114
+ progress: 90,
115
+ deadline: '2024-01-20',
116
+ priority: 'low',
117
+ },
118
+ ];
119
+ // ListItem Components
120
+ const UserListItem = ({ data }) => {
121
+ return (_jsxs("tr", { children: [_jsx("td", { children: data.name }), _jsx("td", { children: data.email }), _jsx("td", { children: data.role }), _jsx("td", { children: _jsx(Badge, { color: data.status === 'active' ? 'success' : 'neutral', variant: "filled", size: "sm", children: data.status === 'active' ? 'Active' : 'Inactive' }) }), _jsx("td", { children: data.lastLogin })] }));
122
+ };
123
+ const ProductListItem = ({ data }) => {
124
+ const getStatusColor = (status) => {
125
+ switch (status) {
126
+ case 'in-stock':
127
+ return 'success';
128
+ case 'low-stock':
129
+ return 'warning';
130
+ case 'out-of-stock':
131
+ return 'error';
132
+ default:
133
+ return 'neutral';
134
+ }
135
+ };
136
+ const getStatusLabel = (status) => {
137
+ switch (status) {
138
+ case 'in-stock':
139
+ return 'In Stock';
140
+ case 'low-stock':
141
+ return 'Low Stock';
142
+ case 'out-of-stock':
143
+ return 'Out of Stock';
144
+ default:
145
+ return status;
146
+ }
147
+ };
148
+ return (_jsxs("tr", { children: [_jsx("td", { children: data.name }), _jsx("td", { children: data.category }), _jsxs("td", { children: ["$", data.price.toFixed(2)] }), _jsx("td", { children: data.stock }), _jsx("td", { children: _jsx(Badge, { color: getStatusColor(data.status), variant: "filled", size: "sm", children: getStatusLabel(data.status) }) }), _jsx("td", { children: _jsxs("div", { style: { display: 'flex', gap: '8px' }, children: [_jsx(Button, { size: "sm", variant: "primary", children: "Edit" }), _jsx(Button, { size: "sm", variant: "secondary", children: "View" })] }) })] }));
149
+ };
150
+ const ProjectListItem = ({ data }) => {
151
+ const getPriorityColor = (priority) => {
152
+ switch (priority) {
153
+ case 'high':
154
+ return 'error';
155
+ case 'medium':
156
+ return 'warning';
157
+ case 'low':
158
+ return 'success';
159
+ default:
160
+ return 'neutral';
161
+ }
162
+ };
163
+ return (_jsxs("tr", { children: [_jsx("td", { children: data.title }), _jsx("td", { children: data.team.join(', ') }), _jsx("td", { children: _jsxs("div", { style: { display: 'flex', alignItems: 'center', gap: '8px' }, children: [_jsx("div", { style: {
164
+ flex: 1,
165
+ height: '8px',
166
+ backgroundColor: '#e0e0e0',
167
+ borderRadius: '4px',
168
+ overflow: 'hidden',
169
+ }, children: _jsx("div", { style: {
170
+ width: `${data.progress}%`,
171
+ height: '100%',
172
+ backgroundColor: data.progress >= 75 ? '#4caf50' : data.progress >= 50 ? '#ff9800' : '#f44336',
173
+ transition: 'width 0.3s ease',
174
+ } }) }), _jsxs("span", { style: { fontSize: '12px', minWidth: '35px' }, children: [data.progress, "%"] })] }) }), _jsx("td", { children: data.deadline }), _jsx("td", { children: _jsx(Badge, { color: getPriorityColor(data.priority), variant: "outline", size: "sm", children: data.priority.charAt(0).toUpperCase() + data.priority.slice(1) }) })] }));
175
+ };
176
+ // Stories
177
+ export const BasicTable = {
178
+ args: {
179
+ columnConfigs: [
180
+ { heading: 'Name', style: { width: '25%' } },
181
+ { heading: 'Email', style: { width: '30%' } },
182
+ { heading: 'Role', style: { width: '20%' } },
183
+ { heading: 'Status', style: { width: '15%' } },
184
+ { heading: 'Last Login', style: { width: '10%' } },
185
+ ],
186
+ data: userData,
187
+ ListItem: UserListItem,
188
+ },
189
+ parameters: {
190
+ docs: {
191
+ description: {
192
+ story: 'A basic table displaying user information with text fields and status badges.',
193
+ },
194
+ },
195
+ },
196
+ };
197
+ export const TableWithCustomComponents = {
198
+ args: {
199
+ columnConfigs: [
200
+ { heading: 'Product Name', style: { width: '20%' } },
201
+ { heading: 'Category', style: { width: '15%' } },
202
+ { heading: 'Price', style: { width: '15%' } },
203
+ { heading: 'Stock', style: { width: '10%', textAlign: 'center' } },
204
+ { heading: 'Status', style: { width: '15%' } },
205
+ { heading: 'Actions', style: { width: '25%', textAlign: 'center' } },
206
+ ],
207
+ data: productData,
208
+ ListItem: ProductListItem,
209
+ },
210
+ parameters: {
211
+ docs: {
212
+ description: {
213
+ story: 'A table showcasing custom components including badges for status and action buttons. This demonstrates the versatility of the Table component.',
214
+ },
215
+ },
216
+ },
217
+ };
218
+ export const TableWithProgressBars = {
219
+ args: {
220
+ columnConfigs: [
221
+ { heading: 'Project Title', style: { width: '25%' } },
222
+ { heading: 'Team Members', style: { width: '25%' } },
223
+ { heading: 'Progress', style: { width: '20%' } },
224
+ { heading: 'Deadline', style: { width: '15%' } },
225
+ { heading: 'Priority', style: { width: '15%' } },
226
+ ],
227
+ data: projectData,
228
+ ListItem: ProjectListItem,
229
+ },
230
+ parameters: {
231
+ docs: {
232
+ description: {
233
+ story: 'A table with custom progress bars and priority badges, showing how complex UI elements can be integrated into table cells.',
234
+ },
235
+ },
236
+ },
237
+ };
238
+ export const StyledColumns = {
239
+ args: {
240
+ columnConfigs: [
241
+ { heading: 'Name', style: { width: '25%', paddingLeft: '20px', fontWeight: '600' } },
242
+ { heading: 'Email', style: { width: '30%', textAlign: 'left' } },
243
+ { heading: 'Role', style: { width: '20%', textAlign: 'center' } },
244
+ { heading: 'Status', style: { width: '15%', textAlign: 'center' } },
245
+ { heading: 'Last Login', style: { width: '10%', textAlign: 'right', paddingRight: '20px' } },
246
+ ],
247
+ data: userData,
248
+ ListItem: UserListItem,
249
+ },
250
+ parameters: {
251
+ docs: {
252
+ description: {
253
+ story: 'A table with custom column styling including padding, text alignment, and font weights.',
254
+ },
255
+ },
256
+ },
257
+ };
@@ -16,6 +16,7 @@ export { FormulaTooltip } from './Info/Tooltips/FormulaTooltip/FormulaTooltip';
16
16
  export { InfoCard } from './Info/InfoCard/InfoCard';
17
17
  export { AutoComplete } from './Inputs/TextInputs/AutoComplete/AutoComplete';
18
18
  export { Button } from './Inputs/Buttons/Button/Button';
19
+ export { IconButton } from './Inputs/Buttons/IconButton/IconButton';
19
20
  export { UnstyledButton } from './Inputs/Buttons/UnstyledButton/UnstyledButton';
20
21
  export { Checkbox } from './Inputs/Controls/Checkbox/Checkbox';
21
22
  export { Radio } from './Inputs/Controls/Radio/Radio';
@@ -32,6 +33,7 @@ export { TextArea } from './Inputs/TextInputs/TextArea/TextArea';
32
33
  export { TextInput } from './Inputs/TextInputs/TextInput/TextInput';
33
34
  export { PasswordInput } from './Inputs/TextInputs/PasswordInput/PasswordInput';
34
35
  export { DatePicker } from './Inputs/Dates/DatePicker/DatePicker';
36
+ export { NumberInput } from './Inputs/TextInputs/NumberInput/NumberInput';
35
37
  export { AutoGrid } from './Layout/AutoGrid/AutoGrid';
36
38
  export { Grid } from './Layout/Grid/Grid';
37
39
  export { Box } from './Layout/Box/Box';
@@ -43,6 +45,8 @@ export { Loader } from './Layout/Loader/Loader';
43
45
  export { Stack } from './Layout/Stack/Stack';
44
46
  export { Card } from './Layout/Card/Card';
45
47
  export { SectionCard } from './Layout/SectionCard/SectionCard';
48
+ export { Table } from './Layout/Table/Table';
49
+ export type { ColumnConfig } from './Layout/Table/Table';
46
50
  export { Tabs } from './Layout/Tabs/Tabs';
47
51
  export { CollapsibleText } from './Typography/CollapsibleText/CollapsibleText';
48
52
  export { Text } from './Typography/Text/Text';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,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AAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,YAAY,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG1C,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAC/E,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAGvD,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC"}
@@ -19,6 +19,7 @@ export { InfoCard } from './Info/InfoCard/InfoCard';
19
19
  //Inputs
20
20
  export { AutoComplete } from './Inputs/TextInputs/AutoComplete/AutoComplete';
21
21
  export { Button } from './Inputs/Buttons/Button/Button';
22
+ export { IconButton } from './Inputs/Buttons/IconButton/IconButton';
22
23
  export { UnstyledButton } from './Inputs/Buttons/UnstyledButton/UnstyledButton';
23
24
  export { Checkbox } from './Inputs/Controls/Checkbox/Checkbox';
24
25
  export { Radio } from './Inputs/Controls/Radio/Radio';
@@ -35,6 +36,7 @@ export { TextArea } from './Inputs/TextInputs/TextArea/TextArea';
35
36
  export { TextInput } from './Inputs/TextInputs/TextInput/TextInput';
36
37
  export { PasswordInput } from './Inputs/TextInputs/PasswordInput/PasswordInput';
37
38
  export { DatePicker } from './Inputs/Dates/DatePicker/DatePicker';
39
+ export { NumberInput } from './Inputs/TextInputs/NumberInput/NumberInput';
38
40
  //Layout
39
41
  export { AutoGrid } from './Layout/AutoGrid/AutoGrid';
40
42
  export { Grid } from './Layout/Grid/Grid';
@@ -47,6 +49,7 @@ export { Loader } from './Layout/Loader/Loader';
47
49
  export { Stack } from './Layout/Stack/Stack';
48
50
  export { Card } from './Layout/Card/Card';
49
51
  export { SectionCard } from './Layout/SectionCard/SectionCard';
52
+ export { Table } from './Layout/Table/Table';
50
53
  export { Tabs } from './Layout/Tabs/Tabs';
51
54
  //Typography
52
55
  export { CollapsibleText } from './Typography/CollapsibleText/CollapsibleText';
@@ -1,3 +1,4 @@
1
+ export declare const white = "#FFFFFF";
1
2
  export declare const gray: {
2
3
  readonly 25: "#F8FAFC";
3
4
  readonly 50: "#EDEDED";
@@ -79,6 +80,7 @@ export declare const salmon: {
79
80
  readonly 200: "#FF806F";
80
81
  };
81
82
  export declare const colors: {
83
+ readonly white: "#FFFFFF";
82
84
  readonly neutral: {
83
85
  readonly 25: "#F8FAFC";
84
86
  readonly 50: "#EDEDED";
@@ -1 +1 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/constants/colors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;CAMP,CAAC;AACX,eAAO,MAAM,OAAO;;;;;;CAAO,CAAC;AAE5B,eAAO,MAAM,IAAI;;;;;;CAMP,CAAC;AACX,eAAO,MAAM,OAAO;;;;;;CAAO,CAAC;AAE5B,eAAO,MAAM,KAAK;;;;;;CAMR,CAAC;AACX,eAAO,MAAM,OAAO;;;;;;CAAQ,CAAC;AAE7B,eAAO,MAAM,MAAM;;;;;;CAMT,CAAC;AACX,eAAO,MAAM,OAAO;;;;;;CAAS,CAAC;AAE9B,eAAO,MAAM,GAAG;;;;;;CAMN,CAAC;AACX,eAAO,MAAM,KAAK;;;;;;CAAM,CAAC;AAGzB,eAAO,MAAM,MAAM;;;;CAIT,CAAC;AAEX,eAAO,MAAM,MAAM;;;;CAIT,CAAC;AAGX,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMT,CAAC;AAGX,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQb,CAAC"}
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/constants/colors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,YAAY,CAAC;AAC/B,eAAO,MAAM,IAAI;;;;;;CAMP,CAAC;AACX,eAAO,MAAM,OAAO;;;;;;CAAO,CAAC;AAE5B,eAAO,MAAM,IAAI;;;;;;CAMP,CAAC;AACX,eAAO,MAAM,OAAO;;;;;;CAAO,CAAC;AAE5B,eAAO,MAAM,KAAK;;;;;;CAMR,CAAC;AACX,eAAO,MAAM,OAAO;;;;;;CAAQ,CAAC;AAE7B,eAAO,MAAM,MAAM;;;;;;CAMT,CAAC;AACX,eAAO,MAAM,OAAO;;;;;;CAAS,CAAC;AAE9B,eAAO,MAAM,GAAG;;;;;;CAMN,CAAC;AACX,eAAO,MAAM,KAAK;;;;;;CAAM,CAAC;AAGzB,eAAO,MAAM,MAAM;;;;CAIT,CAAC;AAEX,eAAO,MAAM,MAAM;;;;CAIT,CAAC;AAGX,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOT,CAAC;AAGX,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQb,CAAC"}
@@ -1,3 +1,4 @@
1
+ export const white = '#FFFFFF';
1
2
  export const gray = {
2
3
  25: '#F8FAFC',
3
4
  50: '#EDEDED',
@@ -51,6 +52,7 @@ export const salmon = {
51
52
  };
52
53
  // Primary semantic/functional color exports - for use in UI, actions, states, etc. anything that would be affected by theme changes down the line
53
54
  export const colors = {
55
+ white,
54
56
  neutral,
55
57
  primary,
56
58
  success,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiv/ui",
3
- "version": "1.7.0",
3
+ "version": "1.9.0",
4
4
  "author": "Taiv",
5
5
  "description": "Taiv's web UI Toolkit built on Mantine v6",
6
6
  "main": "dist/index.js",
@@ -8,6 +8,10 @@
8
8
  "files": [
9
9
  "dist"
10
10
  ],
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/alborz-taiv/taiv-ui"
14
+ },
11
15
  "scripts": {
12
16
  "build": "tsc",
13
17
  "dev": "npm link && tsc --watch",
@@ -1,191 +0,0 @@
1
- export declare const componentVariants: {
2
- readonly primary: {
3
- readonly background: "linear-gradient(to right, #0081CE, #00A6F4)";
4
- readonly color: "white";
5
- readonly '&:hover': {
6
- readonly background: "linear-gradient(to right, #0081CE, #0081CE)";
7
- readonly transition: "background 0.3s ease-in-out";
8
- };
9
- readonly '&:active': {
10
- readonly background: "white";
11
- readonly border: "1px solid #00A6F4";
12
- readonly color: "#00A6F4";
13
- };
14
- readonly '&:toggled': {
15
- readonly background: "linear-gradient(to right, #0081CE, #0081CE)";
16
- readonly color: "white";
17
- };
18
- readonly '&:disabled': {
19
- readonly background: "#EDEDED";
20
- readonly color: "#D9D9D9";
21
- };
22
- readonly '&[data-loading]': {
23
- readonly '& .mantine-Button-icon svg': {
24
- readonly stroke: "white";
25
- };
26
- };
27
- };
28
- readonly secondary: {
29
- readonly background: "white";
30
- readonly color: "#6D6D6D";
31
- readonly border: "1px solid #6D6D6D";
32
- readonly '&:hover': {
33
- readonly background: "#D9D9D9";
34
- readonly border: "1px solid #D9D9D9";
35
- readonly color: "white";
36
- };
37
- readonly '&:active': {
38
- readonly background: "#D9D9D9";
39
- readonly border: "1px solid #6D6D6D";
40
- readonly color: "#6D6D6D";
41
- };
42
- readonly '&:toggled': {
43
- readonly background: "#D9D9D9";
44
- readonly color: "neutral[200]";
45
- };
46
- readonly '&:disabled': {
47
- readonly background: "#EDEDED";
48
- readonly border: "1px solid #EDEDED";
49
- readonly color: "#D9D9D9";
50
- };
51
- readonly '&[data-loading]': {
52
- readonly '& .mantine-Button-icon svg': {
53
- readonly stroke: "#6D6D6D";
54
- };
55
- };
56
- };
57
- readonly cancel: {
58
- readonly background: "#C10007";
59
- readonly color: "white";
60
- readonly '&:hover': {
61
- readonly background: "#FB2C36";
62
- };
63
- readonly '&:active': {
64
- readonly background: "white";
65
- readonly border: "1px solid #C10007";
66
- readonly color: "#C10007";
67
- };
68
- readonly '&:toggled': {
69
- readonly background: "#FB2C36";
70
- readonly color: "white";
71
- };
72
- readonly '&:disabled': {
73
- readonly background: "#FFD7D9";
74
- readonly border: "1px solid #FFD7D9";
75
- readonly color: "white";
76
- };
77
- readonly '&[data-loading]': {
78
- readonly '& .mantine-Button-icon svg': {
79
- readonly stroke: "white";
80
- };
81
- };
82
- };
83
- readonly success: {
84
- readonly background: "#00A63E";
85
- readonly color: "white";
86
- readonly '&:hover': {
87
- readonly background: "#00C951";
88
- };
89
- readonly '&:active': {
90
- readonly background: "white";
91
- readonly border: "1px solid #00A63E";
92
- readonly color: "#00A63E";
93
- };
94
- readonly '&:toggled': {
95
- readonly background: "#00C951";
96
- };
97
- readonly '&:disabled': {
98
- readonly background: "#E6F4E7";
99
- readonly border: "1px solid #E6F4E7";
100
- readonly color: "white";
101
- };
102
- readonly '&[data-loading]': {
103
- readonly '& .mantine-Button-icon svg': {
104
- readonly stroke: "white";
105
- };
106
- };
107
- };
108
- readonly warning: {
109
- readonly background: "#E17100";
110
- readonly color: "white";
111
- readonly '&:hover': {
112
- readonly background: "#FE9A00";
113
- };
114
- readonly '&:active': {
115
- readonly background: "white";
116
- readonly border: "1px solid #E17100";
117
- readonly color: "#E17100";
118
- };
119
- readonly '&:toggled': {
120
- readonly background: "#FE9A00";
121
- };
122
- readonly '&:disabled': {
123
- readonly background: "#FFE5B4";
124
- readonly border: "1px solid #FFE5B4";
125
- readonly color: "white";
126
- };
127
- readonly '&[data-loading]': {
128
- readonly '& .mantine-Button-icon svg': {
129
- readonly stroke: "white";
130
- };
131
- };
132
- };
133
- readonly text: {
134
- readonly background: "transparent";
135
- readonly color: "#6D6D6D";
136
- readonly border: "none";
137
- readonly padding: "0";
138
- readonly height: "auto";
139
- readonly minWidth: "unset";
140
- readonly '&:hover': {
141
- readonly background: "transparent";
142
- readonly color: "#0081CE";
143
- };
144
- readonly '&:active': {
145
- readonly background: "transparent";
146
- readonly color: "#00A6F4";
147
- };
148
- readonly '&:toggled': {
149
- readonly background: "transparent";
150
- readonly color: "#0081CE";
151
- };
152
- readonly '&:disabled': {
153
- readonly background: "transparent";
154
- readonly color: "#D9D9D9";
155
- };
156
- readonly '&[data-loading]': {
157
- readonly '& .mantine-Button-icon svg': {
158
- readonly stroke: "#6D6D6D";
159
- };
160
- };
161
- };
162
- readonly nav: {
163
- readonly background: "white";
164
- readonly paddingLeft: "0.8rem";
165
- readonly color: "#6D6D6D";
166
- readonly '& .mantine-Button-inner': {
167
- readonly justifyContent: "flex-start";
168
- };
169
- readonly '&:hover': {
170
- readonly background: "#EDEDED";
171
- };
172
- readonly '&:active': {
173
- readonly background: "#D9D9D9";
174
- readonly color: "#6D6D6D";
175
- };
176
- readonly '&:toggled': {
177
- readonly background: "#EDEDED";
178
- readonly color: "#6D6D6D";
179
- };
180
- readonly '&:disabled': {
181
- readonly background: "#EDEDED";
182
- readonly color: "#D9D9D9";
183
- };
184
- readonly '&[data-loading]': {
185
- readonly '& .mantine-Button-icon svg': {
186
- readonly stroke: "#6D6D6D";
187
- };
188
- };
189
- };
190
- };
191
- //# sourceMappingURL=variants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/Buttons/Button/variants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6LpB,CAAC"}