@cryptlex/web-components 1.3.5 → 1.4.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.
- package/README.md +6 -3
- package/dist/components/data-table/data-table.es.js +106 -90
- package/dist/components/data-table/data-table.es.js.map +1 -1
- package/dist/components/data-table/table-actions.es.js.map +1 -1
- package/dist/components/data-table/table-commons.es.js +5 -4
- package/dist/components/data-table/table-commons.es.js.map +1 -1
- package/dist/components/data-table/table-content.es.js +24 -26
- package/dist/components/data-table/table-content.es.js.map +1 -1
- package/dist/components/data-table/table-filter.es.js +264 -0
- package/dist/components/data-table/table-filter.es.js.map +1 -0
- package/dist/components/data-table/table-utils/constants.es.js +20 -6
- package/dist/components/data-table/table-utils/constants.es.js.map +1 -1
- package/dist/components/data-table/table-utils/link-display.es.js +4 -4
- package/dist/components/data-table/table-utils/link-display.es.js.map +1 -1
- package/dist/components/key-value-card/key-value-card.es.js +4 -2
- package/dist/components/key-value-card/key-value-card.es.js.map +1 -1
- package/dist/components/sidebar/app-layout.es.js +43 -39
- package/dist/components/sidebar/app-layout.es.js.map +1 -1
- package/dist/components/sidebar/breadcrumb.es.js +58 -0
- package/dist/components/sidebar/breadcrumb.es.js.map +1 -0
- package/dist/components/sidebar/nav-main.es.js +51 -39
- package/dist/components/sidebar/nav-main.es.js.map +1 -1
- package/dist/components/static-data-table/data-table.es.js +5 -5
- package/dist/components/static-data-table/data-table.es.js.map +1 -1
- package/dist/components/ui/avatar.es.js +1 -1
- package/dist/components/ui/avatar.es.js.map +1 -1
- package/dist/components/ui/badge.es.js +1 -1
- package/dist/components/ui/badge.es.js.map +1 -1
- package/dist/components/ui/button.es.js +8 -8
- package/dist/components/ui/button.es.js.map +1 -1
- package/dist/components/ui/calendar.es.js +3 -3
- package/dist/components/ui/chart.es.js +24 -24
- package/dist/components/ui/chart.es.js.map +1 -1
- package/dist/components/ui/checkbox.es.js +1 -1
- package/dist/components/ui/checkbox.es.js.map +1 -1
- package/dist/components/ui/command.es.js +28 -28
- package/dist/components/ui/command.es.js.map +1 -1
- package/dist/components/ui/copy-button.es.js +38 -34
- package/dist/components/ui/copy-button.es.js.map +1 -1
- package/dist/components/ui/dialog.es.js +8 -8
- package/dist/components/ui/dialog.es.js.map +1 -1
- package/dist/components/ui/dropdown-menu.es.js +38 -38
- package/dist/components/ui/dropdown-menu.es.js.map +1 -1
- package/dist/components/ui/form.es.js +4 -4
- package/dist/components/ui/input-otp.es.js +2 -2
- package/dist/components/ui/input-otp.es.js.map +1 -1
- package/dist/components/ui/input.es.js +7 -7
- package/dist/components/ui/input.es.js.map +1 -1
- package/dist/components/ui/mutli-select.es.js +13 -13
- package/dist/components/ui/mutli-select.es.js.map +1 -1
- package/dist/components/ui/navigation-menu.es.js +3 -3
- package/dist/components/ui/navigation-menu.es.js.map +1 -1
- package/dist/components/ui/pagination.es.js +20 -20
- package/dist/components/ui/password-input.es.js +10 -10
- package/dist/components/ui/password-input.es.js.map +1 -1
- package/dist/components/ui/popover.es.js +1 -1
- package/dist/components/ui/popover.es.js.map +1 -1
- package/dist/components/ui/radio-group.es.js +7 -7
- package/dist/components/ui/radio-group.es.js.map +1 -1
- package/dist/components/ui/select.es.js +17 -17
- package/dist/components/ui/select.es.js.map +1 -1
- package/dist/components/ui/sheet.es.js +8 -8
- package/dist/components/ui/sheet.es.js.map +1 -1
- package/dist/components/ui/sidebar.es.js +76 -76
- package/dist/components/ui/sidebar.es.js.map +1 -1
- package/dist/components/ui/table-page-layout.es.js +8 -8
- package/dist/components/ui/table-page-layout.es.js.map +1 -1
- package/dist/components/ui/table.es.js +8 -8
- package/dist/components/ui/table.es.js.map +1 -1
- package/dist/components/ui/tabs.es.js +11 -11
- package/dist/components/ui/tabs.es.js.map +1 -1
- package/dist/index.es.d.ts +21 -13
- package/dist/index.es.js +116 -114
- package/lib/index.css +15 -87
- package/lib/tailwind.preset.css +220 -0
- package/lib/tokens.css +54 -54
- package/package.json +7 -7
- package/tailwind.preset.ts +0 -191
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
/** https://tailwindcss.com/docs/theme#theme-variable-namespaces */
|
|
2
|
+
|
|
3
|
+
@plugin "tailwindcss-animate";
|
|
4
|
+
|
|
5
|
+
@theme {
|
|
6
|
+
/* Radius */
|
|
7
|
+
--radius: 0.25rem;
|
|
8
|
+
--radius-lg: var(--radius);
|
|
9
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
10
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
11
|
+
|
|
12
|
+
/* Text Sizes */
|
|
13
|
+
--text-sm: 0.875rem;
|
|
14
|
+
--text-base: 1rem;
|
|
15
|
+
--text-md: 1.125rem;
|
|
16
|
+
--text-lg: 1.25rem;
|
|
17
|
+
--text-xl: 1.5rem;
|
|
18
|
+
--text-2xl: 1.75rem;
|
|
19
|
+
--text-3xl: 2rem;
|
|
20
|
+
|
|
21
|
+
/* Colors */
|
|
22
|
+
--color-*: initial;
|
|
23
|
+
--color-primary-1: var(--primary-1);
|
|
24
|
+
--color-primary-2: var(--primary-2);
|
|
25
|
+
--color-primary-3: var(--primary-3);
|
|
26
|
+
--color-primary-4: var(--primary-4);
|
|
27
|
+
--color-primary-5: var(--primary-5);
|
|
28
|
+
--color-primary-6: var(--primary-6);
|
|
29
|
+
--color-primary-7: var(--primary-7);
|
|
30
|
+
--color-primary-8: var(--primary-8);
|
|
31
|
+
--color-primary-9: var(--primary-9);
|
|
32
|
+
--color-primary-10: var(--primary-10);
|
|
33
|
+
|
|
34
|
+
--color-secondary-1: var(--secondary-1);
|
|
35
|
+
--color-secondary-2: var(--secondary-2);
|
|
36
|
+
--color-secondary-3: var(--secondary-3);
|
|
37
|
+
--color-secondary-4: var(--secondary-4);
|
|
38
|
+
--color-secondary-5: var(--secondary-5);
|
|
39
|
+
--color-secondary-6: var(--secondary-6);
|
|
40
|
+
--color-secondary-7: var(--secondary-7);
|
|
41
|
+
--color-secondary-8: var(--secondary-8);
|
|
42
|
+
--color-secondary-9: var(--secondary-9);
|
|
43
|
+
--color-secondary-10: var(--secondary-10);
|
|
44
|
+
|
|
45
|
+
--color-neutral-1: var(--neutral-1);
|
|
46
|
+
--color-neutral-2: var(--neutral-2);
|
|
47
|
+
--color-neutral-3: var(--neutral-3);
|
|
48
|
+
--color-neutral-4: var(--neutral-4);
|
|
49
|
+
--color-neutral-5: var(--neutral-5);
|
|
50
|
+
--color-neutral-6: var(--neutral-6);
|
|
51
|
+
--color-neutral-7: var(--neutral-7);
|
|
52
|
+
--color-neutral-8: var(--neutral-8);
|
|
53
|
+
--color-neutral-9: var(--neutral-9);
|
|
54
|
+
--color-neutral-10: var(--neutral-10);
|
|
55
|
+
|
|
56
|
+
--color-destructive-1: var(--destructive-1);
|
|
57
|
+
--color-destructive-2: var(--destructive-2);
|
|
58
|
+
--color-destructive-3: var(--destructive-3);
|
|
59
|
+
--color-destructive-4: var(--destructive-4);
|
|
60
|
+
--color-destructive-5: var(--destructive-5);
|
|
61
|
+
--color-destructive-6: var(--destructive-6);
|
|
62
|
+
--color-destructive-7: var(--destructive-7);
|
|
63
|
+
--color-destructive-8: var(--destructive-8);
|
|
64
|
+
--color-destructive-9: var(--destructive-9);
|
|
65
|
+
--color-destructive-10: var(--destructive-10);
|
|
66
|
+
|
|
67
|
+
--color-success-1: var(--success-1);
|
|
68
|
+
--color-success-2: var(--success-2);
|
|
69
|
+
--color-success-3: var(--success-3);
|
|
70
|
+
--color-success-4: var(--success-4);
|
|
71
|
+
--color-success-5: var(--success-5);
|
|
72
|
+
--color-success-6: var(--success-6);
|
|
73
|
+
--color-success-7: var(--success-7);
|
|
74
|
+
--color-success-8: var(--success-8);
|
|
75
|
+
--color-success-9: var(--success-9);
|
|
76
|
+
--color-success-10: var(--success-10);
|
|
77
|
+
|
|
78
|
+
--color-background: var(--color-neutral-2);
|
|
79
|
+
--color-foreground: var(--color-neutral-9);
|
|
80
|
+
|
|
81
|
+
--color-card: var(--color-neutral-1);
|
|
82
|
+
--color-card-foreground: var(--color-foreground);
|
|
83
|
+
|
|
84
|
+
--color-popover: var(--color-card);
|
|
85
|
+
--color-popover-foreground: var(--color-foreground);
|
|
86
|
+
|
|
87
|
+
--color-primary: var(--color-primary-8);
|
|
88
|
+
--color-primary-foreground: var(--color-primary-2);
|
|
89
|
+
--color-secondary: var(--color-secondary-8);
|
|
90
|
+
--color-secondary-foreground: var(--color-secondary-2);
|
|
91
|
+
--color-muted: var(--color-neutral-7);
|
|
92
|
+
--color-muted-foreground: var(--color-neutral-4);
|
|
93
|
+
--color-accent: var(--color-neutral-7);
|
|
94
|
+
--color-accent-foreground: var(--color-neutral-4);
|
|
95
|
+
--color-destructive: var(--color-destructive-8);
|
|
96
|
+
--color-destructive-foreground: var(--color-destructive-2);
|
|
97
|
+
--color-success: var(--color-success-8);
|
|
98
|
+
--color-success-foreground: var(--color-success-2);
|
|
99
|
+
|
|
100
|
+
--color-border: var(--color-neutral-3);
|
|
101
|
+
--color-input: var(--color-border);
|
|
102
|
+
--color-ring: var(--color-neutral-5);
|
|
103
|
+
|
|
104
|
+
--color-chart-1: var(--color-primary-5);
|
|
105
|
+
--color-chart-2: var(--color-primary-4);
|
|
106
|
+
--color-chart-3: var(--color-secondary-5);
|
|
107
|
+
--color-chart-4: var(--color-secondary-4);
|
|
108
|
+
--color-chart-5: var(--color-secondary-2);
|
|
109
|
+
|
|
110
|
+
--color-sidebar-background: var(--color-background);
|
|
111
|
+
--color-sidebar-foreground: var(--color-foreground);
|
|
112
|
+
/* // TODO */
|
|
113
|
+
--color-sidebar-primary: 240 5.9% 10%;
|
|
114
|
+
--color-sidebar-primary-foreground: 0 0% 98%;
|
|
115
|
+
|
|
116
|
+
--color-sidebar-accent: 240 4.8% 95.9%;
|
|
117
|
+
--color-sidebar-accent-foreground: 240 5.9% 10%;
|
|
118
|
+
|
|
119
|
+
--color-sidebar-border: var(--color-border);
|
|
120
|
+
--color-sidebar-ring: var(--color-ring);
|
|
121
|
+
|
|
122
|
+
/** TODO Grid Tokens */
|
|
123
|
+
/* --grid-fluid-min: 16rem;
|
|
124
|
+
gridTemplateColumns: {
|
|
125
|
+
fluid: 'repeat(auto-fill, minmax(var(--grid-fluid-min), 1fr))',
|
|
126
|
+
}, */
|
|
127
|
+
|
|
128
|
+
--animate-accordion-down: accordion-down 0.2s ease-out;
|
|
129
|
+
|
|
130
|
+
@keyframes accordion-down {
|
|
131
|
+
from {
|
|
132
|
+
height: 0;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
to {
|
|
136
|
+
height: var(--radix-accordion-content-height);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
--animate-accordion-up: accordion-up 0.2s ease-out;
|
|
141
|
+
|
|
142
|
+
@keyframes accordion-up {
|
|
143
|
+
from {
|
|
144
|
+
height: var(--radix-accordion-content-height);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
to {
|
|
148
|
+
height: 0;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
--animate-collapsible-down: collapsible-down 0.2s ease-out;
|
|
153
|
+
|
|
154
|
+
@keyframes collapsible-down {
|
|
155
|
+
from {
|
|
156
|
+
height: 0;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
to {
|
|
160
|
+
height: var(--radix-collapsible-content-height);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
--animate-collapsible-up: collapsible-up 0.2s ease-out;
|
|
165
|
+
|
|
166
|
+
@keyframes collapsible-up {
|
|
167
|
+
from {
|
|
168
|
+
height: var(--radix-collapsible-content-height);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
to {
|
|
172
|
+
height: 0;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@utility text-caption {
|
|
178
|
+
@apply text-sm;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
@utility text-body {
|
|
183
|
+
@apply text-base;
|
|
184
|
+
/* lineHeight: '1.6', */
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
@utility text-heading-6 {
|
|
188
|
+
@apply text-base;
|
|
189
|
+
/* fontWeight: 700, */
|
|
190
|
+
/* lineHeight: '1.2', */
|
|
191
|
+
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@utility text-heading-5 {
|
|
195
|
+
@apply text-md;
|
|
196
|
+
/* lineHeight: '1.2', */
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
@utility text-heading-4 {
|
|
200
|
+
@apply text-lg;
|
|
201
|
+
/* lineHeight: '1.2', */
|
|
202
|
+
/* fontWeight: 500, */
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
@utlility text-heading-3 {
|
|
206
|
+
@apply text-xl;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
@utility text-heading-2 {
|
|
210
|
+
@apply text-2xl;
|
|
211
|
+
/* lineHeight: '1', */
|
|
212
|
+
/* fontWeight: 300, */
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
@utility text-heading-1 {
|
|
216
|
+
@apply text-3xl;
|
|
217
|
+
/* lineHeight: '1', */
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@layer components {}
|
package/lib/tokens.css
CHANGED
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
*/
|
|
5
5
|
:root {
|
|
6
6
|
--primary-hue: 240;
|
|
7
|
-
--xprimary-1: 0.99 0.01 var(--primary-hue);
|
|
8
|
-
--xprimary-2: 0.97 0.03 var(--primary-hue);
|
|
9
|
-
--xprimary-3: 0.9 0.04 var(--primary-hue);
|
|
10
|
-
--xprimary-4: 0.72 0.13 var(--primary-hue);
|
|
11
|
-
--xprimary-5: 0.67 0.13 var(--primary-hue);
|
|
12
|
-
--xprimary-6: 0.5 0.13 var(--primary-hue);
|
|
13
|
-
--xprimary-7: 0.35 0.13 var(--primary-hue);
|
|
14
|
-
--xprimary-8: 0.25 0.13 var(--primary-hue);
|
|
15
|
-
--xprimary-9: 0.
|
|
16
|
-
--xprimary-10: 0.
|
|
7
|
+
--xprimary-1: oklch(0.99 0.01 var(--primary-hue));
|
|
8
|
+
--xprimary-2: oklch(0.97 0.03 var(--primary-hue));
|
|
9
|
+
--xprimary-3: oklch(0.9 0.04 var(--primary-hue));
|
|
10
|
+
--xprimary-4: oklch(0.72 0.13 var(--primary-hue));
|
|
11
|
+
--xprimary-5: oklch(0.67 0.13 var(--primary-hue));
|
|
12
|
+
--xprimary-6: oklch(0.5 0.13 var(--primary-hue));
|
|
13
|
+
--xprimary-7: oklch(0.35 0.13 var(--primary-hue));
|
|
14
|
+
--xprimary-8: oklch(0.25 0.13 var(--primary-hue));
|
|
15
|
+
--xprimary-9: oklch(0.2 0.09 var(--primary-hue));
|
|
16
|
+
--xprimary-10: oklch(0.1 0.03 var(--primary-hue));
|
|
17
17
|
--primary-1: var(--xprimary-1);
|
|
18
18
|
--primary-2: var(--xprimary-2);
|
|
19
19
|
--primary-3: var(--xprimary-3);
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
--primary-8: var(--xprimary-8);
|
|
25
25
|
--primary-9: var(--xprimary-9);
|
|
26
26
|
--primary-10: var(--xprimary-10);
|
|
27
|
-
--secondary-hue: calc(var(--primary-hue) +
|
|
28
|
-
--xsecondary-1: 0.99 0.01 var(--secondary-hue);
|
|
29
|
-
--xsecondary-2: 0.97 0.03 var(--secondary-hue);
|
|
30
|
-
--xsecondary-3: 0.9 0.04 var(--secondary-hue);
|
|
31
|
-
--xsecondary-4: 0.72 0.13 var(--secondary-hue);
|
|
32
|
-
--xsecondary-5: 0.67 0.13 var(--secondary-hue);
|
|
33
|
-
--xsecondary-6: 0.5 0.13 var(--secondary-hue);
|
|
34
|
-
--xsecondary-7: 0.35 0.13 var(--secondary-hue);
|
|
35
|
-
--xsecondary-8: 0.25 0.13 var(--secondary-hue);
|
|
36
|
-
--xsecondary-9: 0.
|
|
37
|
-
--xsecondary-10: 0.
|
|
27
|
+
--secondary-hue: calc(var(--primary-hue) + 30);
|
|
28
|
+
--xsecondary-1: oklch(0.99 0.01 var(--secondary-hue));
|
|
29
|
+
--xsecondary-2: oklch(0.97 0.03 var(--secondary-hue));
|
|
30
|
+
--xsecondary-3: oklch(0.9 0.04 var(--secondary-hue));
|
|
31
|
+
--xsecondary-4: oklch(0.72 0.13 var(--secondary-hue));
|
|
32
|
+
--xsecondary-5: oklch(0.67 0.13 var(--secondary-hue));
|
|
33
|
+
--xsecondary-6: oklch(0.5 0.13 var(--secondary-hue));
|
|
34
|
+
--xsecondary-7: oklch(0.35 0.13 var(--secondary-hue));
|
|
35
|
+
--xsecondary-8: oklch(0.25 0.13 var(--secondary-hue));
|
|
36
|
+
--xsecondary-9: oklch(0.2 0.09 var(--secondary-hue));
|
|
37
|
+
--xsecondary-10: oklch(0.1 0.03 var(--secondary-hue));
|
|
38
38
|
--secondary-1: var(--xsecondary-1);
|
|
39
39
|
--secondary-2: var(--xsecondary-2);
|
|
40
40
|
--secondary-3: var(--xsecondary-3);
|
|
@@ -45,17 +45,17 @@
|
|
|
45
45
|
--secondary-8: var(--xsecondary-8);
|
|
46
46
|
--secondary-9: var(--xsecondary-9);
|
|
47
47
|
--secondary-10: var(--xsecondary-10);
|
|
48
|
-
--destructive-hue:
|
|
49
|
-
--xdestructive-1: 0.99 0.01 var(--destructive-hue);
|
|
50
|
-
--xdestructive-2: 0.97 0.03 var(--destructive-hue);
|
|
51
|
-
--xdestructive-3: 0.9 0.04 var(--destructive-hue);
|
|
52
|
-
--xdestructive-4: 0.72 0.13 var(--destructive-hue);
|
|
53
|
-
--xdestructive-5: 0.67 0.13 var(--destructive-hue);
|
|
54
|
-
--xdestructive-6: 0.5 0.13 var(--destructive-hue);
|
|
55
|
-
--xdestructive-7: 0.35 0.13 var(--destructive-hue);
|
|
56
|
-
--xdestructive-8: 0.25 0.13 var(--destructive-hue);
|
|
57
|
-
--xdestructive-9: 0.
|
|
58
|
-
--xdestructive-10: 0.
|
|
48
|
+
--destructive-hue: calc(var(--primary-hue) - 230);
|
|
49
|
+
--xdestructive-1: oklch(0.99 0.01 var(--destructive-hue));
|
|
50
|
+
--xdestructive-2: oklch(0.97 0.03 var(--destructive-hue));
|
|
51
|
+
--xdestructive-3: oklch(0.9 0.04 var(--destructive-hue));
|
|
52
|
+
--xdestructive-4: oklch(0.72 0.13 var(--destructive-hue));
|
|
53
|
+
--xdestructive-5: oklch(0.67 0.13 var(--destructive-hue));
|
|
54
|
+
--xdestructive-6: oklch(0.5 0.13 var(--destructive-hue));
|
|
55
|
+
--xdestructive-7: oklch(0.35 0.13 var(--destructive-hue));
|
|
56
|
+
--xdestructive-8: oklch(0.25 0.13 var(--destructive-hue));
|
|
57
|
+
--xdestructive-9: oklch(0.2 0.09 var(--destructive-hue));
|
|
58
|
+
--xdestructive-10: oklch(0.1 0.03 var(--destructive-hue));
|
|
59
59
|
--destructive-1: var(--xdestructive-1);
|
|
60
60
|
--destructive-2: var(--xdestructive-2);
|
|
61
61
|
--destructive-3: var(--xdestructive-3);
|
|
@@ -66,17 +66,17 @@
|
|
|
66
66
|
--destructive-8: var(--xdestructive-8);
|
|
67
67
|
--destructive-9: var(--xdestructive-9);
|
|
68
68
|
--destructive-10: var(--xdestructive-10);
|
|
69
|
-
--success-hue:
|
|
70
|
-
--xsuccess-1: 0.99 0.01 var(--success-hue);
|
|
71
|
-
--xsuccess-2: 0.97 0.03 var(--success-hue);
|
|
72
|
-
--xsuccess-3: 0.9 0.04 var(--success-hue);
|
|
73
|
-
--xsuccess-4: 0.72 0.13 var(--success-hue);
|
|
74
|
-
--xsuccess-5: 0.67 0.13 var(--success-hue);
|
|
75
|
-
--xsuccess-6: 0.5 0.13 var(--success-hue);
|
|
76
|
-
--xsuccess-7: 0.35 0.13 var(--success-hue);
|
|
77
|
-
--xsuccess-8: 0.25 0.13 var(--success-hue);
|
|
78
|
-
--xsuccess-9: 0.
|
|
79
|
-
--xsuccess-10: 0.
|
|
69
|
+
--success-hue: calc(var(--primary-hue) - 90);
|
|
70
|
+
--xsuccess-1: oklch(0.99 0.01 var(--success-hue));
|
|
71
|
+
--xsuccess-2: oklch(0.97 0.03 var(--success-hue));
|
|
72
|
+
--xsuccess-3: oklch(0.9 0.04 var(--success-hue));
|
|
73
|
+
--xsuccess-4: oklch(0.72 0.13 var(--success-hue));
|
|
74
|
+
--xsuccess-5: oklch(0.67 0.13 var(--success-hue));
|
|
75
|
+
--xsuccess-6: oklch(0.5 0.13 var(--success-hue));
|
|
76
|
+
--xsuccess-7: oklch(0.35 0.13 var(--success-hue));
|
|
77
|
+
--xsuccess-8: oklch(0.25 0.13 var(--success-hue));
|
|
78
|
+
--xsuccess-9: oklch(0.2 0.09 var(--success-hue));
|
|
79
|
+
--xsuccess-10: oklch(0.1 0.03 var(--success-hue));
|
|
80
80
|
--success-1: var(--xsuccess-1);
|
|
81
81
|
--success-2: var(--xsuccess-2);
|
|
82
82
|
--success-3: var(--xsuccess-3);
|
|
@@ -88,17 +88,17 @@
|
|
|
88
88
|
--success-9: var(--xsuccess-9);
|
|
89
89
|
--success-10: var(--xsuccess-10);
|
|
90
90
|
--neutral-hue: var(--primary-hue);
|
|
91
|
-
--neutral-s: 0.
|
|
92
|
-
--xneutral-1: 0.
|
|
93
|
-
--xneutral-2: 0.97 var(--neutral-s) var(--neutral-hue);
|
|
94
|
-
--xneutral-3: 0.
|
|
95
|
-
--xneutral-4: 0.
|
|
96
|
-
--xneutral-5: 0.
|
|
97
|
-
--xneutral-6: 0.
|
|
98
|
-
--xneutral-7: 0.
|
|
99
|
-
--xneutral-8: 0.35 var(--neutral-s) var(--neutral-hue);
|
|
100
|
-
--xneutral-9: 0.
|
|
101
|
-
--xneutral-10: 0.
|
|
91
|
+
--neutral-s: 0.005;
|
|
92
|
+
--xneutral-1: oklch(0.985 var(--neutral-s) var(--neutral-hue));
|
|
93
|
+
--xneutral-2: oklch(0.97 var(--neutral-s) var(--neutral-hue));
|
|
94
|
+
--xneutral-3: oklch(0.922 var(--neutral-s) var(--neutral-hue));
|
|
95
|
+
--xneutral-4: oklch(0.87 var(--neutral-s) var(--neutral-hue));
|
|
96
|
+
--xneutral-5: oklch(0.708 var(--neutral-s) var(--neutral-hue));
|
|
97
|
+
--xneutral-6: oklch(0.556 var(--neutral-s) var(--neutral-hue));
|
|
98
|
+
--xneutral-7: oklch(0.439 var(--neutral-s) var(--neutral-hue));
|
|
99
|
+
--xneutral-8: oklch(0.35 var(--neutral-s) var(--neutral-hue));
|
|
100
|
+
--xneutral-9: oklch(0.269 var(--neutral-s) var(--neutral-hue));
|
|
101
|
+
--xneutral-10: oklch(0.205 var(--neutral-s) var(--neutral-hue));
|
|
102
102
|
--neutral-1: var(--xneutral-1);
|
|
103
103
|
--neutral-2: var(--xneutral-2);
|
|
104
104
|
--neutral-3: var(--xneutral-3);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cryptlex/web-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "React component library for Cryptlex web applications",
|
|
5
5
|
"author": "Cryptlex",
|
|
6
6
|
"type": "module",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
},
|
|
16
16
|
"./index.css": "./lib/index.css",
|
|
17
17
|
"./tokens.css": "./lib/tokens.css",
|
|
18
|
-
"./tailwind
|
|
18
|
+
"./tailwind.preset.css": "./lib/tailwind.preset.css"
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
21
21
|
"dist",
|
|
22
|
-
"tailwind.preset.
|
|
22
|
+
"lib/tailwind.preset.css",
|
|
23
23
|
"lib/tokens.css",
|
|
24
24
|
"lib/index.css"
|
|
25
25
|
],
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"@radix-ui/react-slot": "^1.1.0",
|
|
59
59
|
"@radix-ui/react-tabs": "^1.1.1",
|
|
60
60
|
"@radix-ui/react-tooltip": "^1.1.3",
|
|
61
|
+
"@tailwindcss/vite": "^4.0.6",
|
|
61
62
|
"@tanstack/react-query": "^5.62.3",
|
|
62
63
|
"@tanstack/react-router": "^1.87.1",
|
|
63
64
|
"@tanstack/react-table": "^8.20.5",
|
|
@@ -76,11 +77,12 @@
|
|
|
76
77
|
"recharts": "^2.13.0",
|
|
77
78
|
"rollup-preserve-directives": "^1.1.3",
|
|
78
79
|
"sonner": "^1.7.0",
|
|
79
|
-
"tailwindcss": "^
|
|
80
|
+
"tailwindcss": "^4.0.6",
|
|
80
81
|
"tailwindcss-animate": "^1.0.7",
|
|
81
82
|
"use-debounce": "^10.0.4",
|
|
82
83
|
"vaul": "^1.1.1",
|
|
83
|
-
"zod": "^3.24.1"
|
|
84
|
+
"zod": "^3.24.1",
|
|
85
|
+
"@hookform/resolvers": "^4.0.0"
|
|
84
86
|
},
|
|
85
87
|
"dependencies": {
|
|
86
88
|
"@cryptlex/web-api-types": "^1.17.0"
|
|
@@ -101,13 +103,11 @@
|
|
|
101
103
|
"@types/react": "^18.3.10",
|
|
102
104
|
"@types/react-dom": "^18.3.0",
|
|
103
105
|
"@vitejs/plugin-react": "^4.3.2",
|
|
104
|
-
"autoprefixer": "^10.4.20",
|
|
105
106
|
"eslint": "^9.11.1",
|
|
106
107
|
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
|
|
107
108
|
"eslint-plugin-react-refresh": "^0.4.12",
|
|
108
109
|
"eslint-plugin-storybook": "^0.11.0",
|
|
109
110
|
"globals": "^15.9.0",
|
|
110
|
-
"postcss": "^8.4.47",
|
|
111
111
|
"sass": "^1.80.6",
|
|
112
112
|
"storybook": "^8.4.2",
|
|
113
113
|
"typescript": "^5.5.3",
|
package/tailwind.preset.ts
DELETED
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import type { Config } from 'tailwindcss';
|
|
2
|
-
|
|
3
|
-
const tokenRamps = (paletteName: string) => {
|
|
4
|
-
const ramps: Record<number, string> = {};
|
|
5
|
-
for (let i = 1; i <= 10; i++) {
|
|
6
|
-
ramps[i] = `oklch(var(--${paletteName}-${i}) / <alpha-value>)`
|
|
7
|
-
}
|
|
8
|
-
return ramps;
|
|
9
|
-
}
|
|
10
|
-
export default {
|
|
11
|
-
// Enable dark mode based on class.
|
|
12
|
-
darkMode: ['class'],
|
|
13
|
-
// The preset does not define content, this is done in the host.
|
|
14
|
-
content: [],
|
|
15
|
-
theme: {
|
|
16
|
-
borderRadius: {
|
|
17
|
-
lg: 'var(--radius)',
|
|
18
|
-
md: 'calc(var(--radius) - 2px)',
|
|
19
|
-
sm: 'calc(var(--radius) - 4px)',
|
|
20
|
-
},
|
|
21
|
-
fontSize: {
|
|
22
|
-
// text-caption
|
|
23
|
-
'caption': [
|
|
24
|
-
'var(--font-sm)',
|
|
25
|
-
{
|
|
26
|
-
lineHeight: '1.5',
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
// text-body
|
|
30
|
-
'body': [
|
|
31
|
-
'var(--font-base)',
|
|
32
|
-
{
|
|
33
|
-
lineHeight: '1.6',
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
// text-heading-6
|
|
37
|
-
'heading-6': [
|
|
38
|
-
'var(--font-base)',
|
|
39
|
-
{
|
|
40
|
-
lineHeight: '1.2',
|
|
41
|
-
fontWeight: 700,
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
// text-heading-5
|
|
45
|
-
'heading-5': [
|
|
46
|
-
'var(--font-md)',
|
|
47
|
-
{
|
|
48
|
-
lineHeight: '1.2',
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
// text-heading-4
|
|
52
|
-
'heading-4': [
|
|
53
|
-
'var(--font-lg)',
|
|
54
|
-
{
|
|
55
|
-
lineHeight: '1.2',
|
|
56
|
-
fontWeight: 500,
|
|
57
|
-
},
|
|
58
|
-
],
|
|
59
|
-
// text-heading-3
|
|
60
|
-
'heading-3': [
|
|
61
|
-
'var(--font-xl)',
|
|
62
|
-
{
|
|
63
|
-
lineHeight: '1.1',
|
|
64
|
-
fontWeight: 500,
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
|
|
68
|
-
// text-heading-2
|
|
69
|
-
'heading-2': [
|
|
70
|
-
'var(--font-2xl)',
|
|
71
|
-
{
|
|
72
|
-
lineHeight: '1',
|
|
73
|
-
fontWeight: 300,
|
|
74
|
-
},
|
|
75
|
-
],
|
|
76
|
-
|
|
77
|
-
// text-heading-1
|
|
78
|
-
'heading-1': [
|
|
79
|
-
'var(--font-3xl)',
|
|
80
|
-
{
|
|
81
|
-
lineHeight: '1',
|
|
82
|
-
},
|
|
83
|
-
],
|
|
84
|
-
},
|
|
85
|
-
colors: {
|
|
86
|
-
transparent: 'transparent',
|
|
87
|
-
current: 'currentColor',
|
|
88
|
-
white: '#ffffff',
|
|
89
|
-
black: '#000000',
|
|
90
|
-
background: 'oklch(var(--background) / <alpha-value>)',
|
|
91
|
-
foreground: 'oklch(var(--foreground) / <alpha-value>)',
|
|
92
|
-
card: {
|
|
93
|
-
DEFAULT: 'oklch(var(--card) / <alpha-value>)',
|
|
94
|
-
foreground: 'oklch(var(--card-foreground) / <alpha-value>)',
|
|
95
|
-
},
|
|
96
|
-
popover: {
|
|
97
|
-
DEFAULT: 'oklch(var(--popover) / <alpha-value>)',
|
|
98
|
-
foreground: 'oklch(var(--popover-foreground) / <alpha-value>)',
|
|
99
|
-
},
|
|
100
|
-
primary: {
|
|
101
|
-
DEFAULT: 'oklch(var(--primary) / <alpha-value>)',
|
|
102
|
-
foreground: 'oklch(var(--primary-foreground) / <alpha-value>)',
|
|
103
|
-
...tokenRamps('primary'),
|
|
104
|
-
},
|
|
105
|
-
secondary: {
|
|
106
|
-
DEFAULT: 'oklch(var(--secondary) / <alpha-value>)',
|
|
107
|
-
foreground: 'oklch(var(--secondary-foreground) / <alpha-value>)',
|
|
108
|
-
...tokenRamps('secondary'),
|
|
109
|
-
},
|
|
110
|
-
neutral: {
|
|
111
|
-
...tokenRamps('neutral'),
|
|
112
|
-
},
|
|
113
|
-
muted: {
|
|
114
|
-
DEFAULT: 'oklch(var(--muted) / <alpha-value>)',
|
|
115
|
-
foreground: 'oklch(var(--muted-foreground) / <alpha-value>)',
|
|
116
|
-
},
|
|
117
|
-
accent: {
|
|
118
|
-
DEFAULT: 'oklch(var(--accent) / <alpha-value>)',
|
|
119
|
-
foreground: 'oklch(var(--accent-foreground) / <alpha-value>)',
|
|
120
|
-
},
|
|
121
|
-
destructive: {
|
|
122
|
-
DEFAULT: 'oklch(var(--destructive) / <alpha-value>)',
|
|
123
|
-
foreground: 'oklch(var(--destructive-foreground) / <alpha-value>)',
|
|
124
|
-
...tokenRamps('destructive'),
|
|
125
|
-
},
|
|
126
|
-
success: {
|
|
127
|
-
DEFAULT: 'oklch(var(--success) / <alpha-value>)',
|
|
128
|
-
foreground: 'oklch(var(--success-foreground) / <alpha-value>)',
|
|
129
|
-
...tokenRamps('success'),
|
|
130
|
-
},
|
|
131
|
-
border: 'oklch(var(--border) / <alpha-value>)',
|
|
132
|
-
input: 'oklch(var(--input) / <alpha-value>)',
|
|
133
|
-
ring: 'oklch(var(--ring) / <alpha-value>)',
|
|
134
|
-
chart: {
|
|
135
|
-
1: 'oklch(var(--chart-1) / <alpha-value>)',
|
|
136
|
-
2: 'oklch(var(--chart-2) / <alpha-value>)',
|
|
137
|
-
3: 'oklch(var(--chart-3) / <alpha-value>)',
|
|
138
|
-
4: 'oklch(var(--chart-4) / <alpha-value>)',
|
|
139
|
-
5: 'oklch(var(--chart-5) / <alpha-value>)',
|
|
140
|
-
},
|
|
141
|
-
sidebar: {
|
|
142
|
-
DEFAULT: 'oklch(var(--sidebar-background) / <alpha-value>)',
|
|
143
|
-
foreground: 'oklch(var(--sidebar-foreground) / <alpha-value>)',
|
|
144
|
-
primary: 'oklch(var(--sidebar-primary) / <alpha-value>)',
|
|
145
|
-
primaryForeground: 'oklch(var(--sidebar-primary-foreground) / <alpha-value>)',
|
|
146
|
-
accent: 'oklch(var(--sidebar-accent) / <alpha-value>)',
|
|
147
|
-
accentForeground: 'oklch(var(--sidebar-accent-foreground) / <alpha-value>)',
|
|
148
|
-
border: 'oklch(var(--sidebar-border) / <alpha-value>)',
|
|
149
|
-
ring: 'oklch(var(--sidebar-ring) / <alpha-value>)',
|
|
150
|
-
},
|
|
151
|
-
},
|
|
152
|
-
extend: {
|
|
153
|
-
gridTemplateColumns: {
|
|
154
|
-
fluid: 'repeat(auto-fill, minmax(var(--grid-fluid-min), 1fr))',
|
|
155
|
-
},
|
|
156
|
-
keyframes: {
|
|
157
|
-
'accordion-down': {
|
|
158
|
-
from: {
|
|
159
|
-
height: '0',
|
|
160
|
-
},
|
|
161
|
-
to: {
|
|
162
|
-
height: 'var(--radix-accordion-content-height)',
|
|
163
|
-
},
|
|
164
|
-
},
|
|
165
|
-
'accordion-up': {
|
|
166
|
-
from: {
|
|
167
|
-
height: 'var(--radix-accordion-content-height)',
|
|
168
|
-
},
|
|
169
|
-
to: {
|
|
170
|
-
height: '0',
|
|
171
|
-
},
|
|
172
|
-
},
|
|
173
|
-
'collapsible-down': {
|
|
174
|
-
from: { height: '0' },
|
|
175
|
-
to: { height: 'var(--radix-collapsible-content-height)' },
|
|
176
|
-
},
|
|
177
|
-
'collapsible-up': {
|
|
178
|
-
from: { height: 'var(--radix-collapsible-content-height)' },
|
|
179
|
-
to: { height: '0' },
|
|
180
|
-
},
|
|
181
|
-
},
|
|
182
|
-
animation: {
|
|
183
|
-
'accordion-down': 'accordion-down 0.2s ease-out',
|
|
184
|
-
'accordion-up': 'accordion-up 0.2s ease-out',
|
|
185
|
-
'collapsible-down': 'collapsible-down 0.2s ease-out',
|
|
186
|
-
'collapsible-up': 'collapsible-up 0.2s ease-out',
|
|
187
|
-
},
|
|
188
|
-
},
|
|
189
|
-
},
|
|
190
|
-
plugins: [require('tailwindcss-animate')], // Include any plugins you need
|
|
191
|
-
} satisfies Config;
|