@cryptlex/web-components 1.4.1 → 1.5.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/README.md +4 -13
- package/dist/components/data-table/column-picker.es.js +3 -4
- package/dist/components/data-table/column-picker.es.js.map +1 -1
- package/dist/components/data-table/data-table.es.js +75 -76
- package/dist/components/data-table/data-table.es.js.map +1 -1
- package/dist/components/data-table/page-size.es.js +5 -5
- package/dist/components/data-table/page-size.es.js.map +1 -1
- package/dist/components/data-table/paginator.es.js +25 -31
- package/dist/components/data-table/paginator.es.js.map +1 -1
- package/dist/components/data-table/table-actions.es.js +26 -27
- package/dist/components/data-table/table-actions.es.js.map +1 -1
- package/dist/components/data-table/table-content.es.js +31 -25
- package/dist/components/data-table/table-content.es.js.map +1 -1
- package/dist/components/data-table/table-filter.es.js +42 -45
- package/dist/components/data-table/table-filter.es.js.map +1 -1
- package/dist/components/key-value-card/key-value-card.es.js +17 -14
- package/dist/components/key-value-card/key-value-card.es.js.map +1 -1
- package/dist/components/sidebar/app-layout.es.js +11 -15
- package/dist/components/sidebar/app-layout.es.js.map +1 -1
- package/dist/components/sidebar/breadcrumb.es.js +2 -3
- package/dist/components/sidebar/breadcrumb.es.js.map +1 -1
- package/dist/components/sidebar/nav-main.es.js +18 -18
- package/dist/components/sidebar/nav-main.es.js.map +1 -1
- package/dist/components/static-data-table/data-table.es.js +14 -14
- package/dist/components/static-data-table/data-table.es.js.map +1 -1
- package/dist/components/ui/accordion.es.js +9 -9
- package/dist/components/ui/accordion.es.js.map +1 -1
- package/dist/components/ui/avatar.es.js +16 -16
- package/dist/components/ui/avatar.es.js.map +1 -1
- package/dist/components/ui/badge.es.js +5 -24
- package/dist/components/ui/badge.es.js.map +1 -1
- package/dist/components/ui/breadcrumb.es.js +10 -10
- package/dist/components/ui/breadcrumb.es.js.map +1 -1
- package/dist/components/ui/button.es.js +17 -18
- package/dist/components/ui/button.es.js.map +1 -1
- package/dist/components/ui/calendar.es.js +8 -8
- package/dist/components/ui/calendar.es.js.map +1 -1
- package/dist/components/ui/card.es.js +21 -21
- package/dist/components/ui/card.es.js.map +1 -1
- package/dist/components/ui/chart.es.js +76 -102
- package/dist/components/ui/chart.es.js.map +1 -1
- package/dist/components/ui/checkbox.es.js +13 -19
- package/dist/components/ui/checkbox.es.js.map +1 -1
- package/dist/components/ui/command.es.js +4 -4
- package/dist/components/ui/command.es.js.map +1 -1
- package/dist/components/ui/copy-button.es.js +20 -34
- package/dist/components/ui/copy-button.es.js.map +1 -1
- package/dist/components/ui/dialog.es.js +32 -32
- package/dist/components/ui/dialog.es.js.map +1 -1
- package/dist/components/ui/drawer.es.js +2 -2
- package/dist/components/ui/drawer.es.js.map +1 -1
- package/dist/components/ui/dropdown-menu.es.js +74 -82
- package/dist/components/ui/dropdown-menu.es.js.map +1 -1
- package/dist/components/ui/input-otp.es.js +17 -17
- 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/link-button.es.js +6 -6
- package/dist/components/ui/link-button.es.js.map +1 -1
- package/dist/components/ui/mutli-select.es.js +52 -52
- package/dist/components/ui/mutli-select.es.js.map +1 -1
- package/dist/components/ui/navigation-menu.es.js +34 -34
- package/dist/components/ui/navigation-menu.es.js.map +1 -1
- package/dist/components/ui/pagination.es.js +38 -38
- package/dist/components/ui/pagination.es.js.map +1 -1
- package/dist/components/ui/password-input.es.js +13 -13
- package/dist/components/ui/password-input.es.js.map +1 -1
- package/dist/components/ui/radio-group.es.js +11 -11
- package/dist/components/ui/radio-group.es.js.map +1 -1
- package/dist/components/ui/search-input.es.js +11 -11
- package/dist/components/ui/search-input.es.js.map +1 -1
- package/dist/components/ui/select.es.js +31 -49
- package/dist/components/ui/select.es.js.map +1 -1
- package/dist/components/ui/sheet.es.js +17 -17
- package/dist/components/ui/sheet.es.js.map +1 -1
- package/dist/components/ui/sidebar.es.js +2 -3
- package/dist/components/ui/sidebar.es.js.map +1 -1
- package/dist/components/ui/table-page-layout.es.js +2 -2
- package/dist/components/ui/table-page-layout.es.js.map +1 -1
- package/dist/components/ui/table.es.js +33 -33
- package/dist/components/ui/table.es.js.map +1 -1
- package/dist/components/ui/tabs.es.js +2 -2
- package/dist/components/ui/tabs.es.js.map +1 -1
- package/dist/components/ui/tooltip.es.js +8 -8
- package/dist/components/ui/tooltip.es.js.map +1 -1
- package/dist/index.es.d.ts +20 -48
- package/dist/index.es.js +253 -257
- package/dist/utils/index.es.js.map +1 -1
- package/lib/index.css +24 -5
- package/lib/tailwind.preset.css +50 -38
- package/lib/tokens.css +0 -9
- package/package.json +1 -1
package/lib/tailwind.preset.css
CHANGED
|
@@ -5,18 +5,28 @@
|
|
|
5
5
|
@theme {
|
|
6
6
|
/* Radius */
|
|
7
7
|
--radius: 0.25rem;
|
|
8
|
-
--radius-lg: var(--radius);
|
|
9
|
-
--radius-md: calc(var(--radius) - 2px);
|
|
10
8
|
--radius-sm: calc(var(--radius) - 4px);
|
|
9
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
10
|
+
--radius-lg: var(--radius);
|
|
11
11
|
|
|
12
12
|
/* Text Sizes */
|
|
13
|
+
--text-*: initial;
|
|
14
|
+
--text-xs: 0.75rem;
|
|
15
|
+
--text-xs--line-height: calc(1 / 0.75);
|
|
13
16
|
--text-sm: 0.875rem;
|
|
17
|
+
--text-sm--line-height: calc(1.25 / 0.875);
|
|
14
18
|
--text-base: 1rem;
|
|
15
|
-
--text-
|
|
16
|
-
--text-lg: 1.
|
|
17
|
-
--text-
|
|
18
|
-
--text-
|
|
19
|
-
--text-
|
|
19
|
+
--text-base--line-height: calc(1.5 / 1);
|
|
20
|
+
--text-lg: 1.125rem;
|
|
21
|
+
--text-lg--line-height: calc(1.75 / 1.125);
|
|
22
|
+
--text-xl: 1.25rem;
|
|
23
|
+
--text-xl--line-height: calc(1.75 / 1.25);
|
|
24
|
+
--text-2xl: 1.5rem;
|
|
25
|
+
--text-2xl--line-height: calc(2 / 1.5);
|
|
26
|
+
--text-3xl: 1.875rem;
|
|
27
|
+
--text-3xl--line-height: calc(2.25 / 1.875);
|
|
28
|
+
--text-4xl: 2.25rem;
|
|
29
|
+
--text-4xl--line-height: calc(2.5 / 2.25);
|
|
20
30
|
|
|
21
31
|
/* Colors */
|
|
22
32
|
--color-*: initial;
|
|
@@ -76,7 +86,7 @@
|
|
|
76
86
|
--color-success-10: var(--success-10);
|
|
77
87
|
|
|
78
88
|
--color-background: var(--color-neutral-2);
|
|
79
|
-
--color-foreground: var(--color-neutral-
|
|
89
|
+
--color-foreground: var(--color-neutral-8);
|
|
80
90
|
|
|
81
91
|
--color-card: var(--color-neutral-1);
|
|
82
92
|
--color-card-foreground: var(--color-foreground);
|
|
@@ -84,17 +94,17 @@
|
|
|
84
94
|
--color-popover: var(--color-card);
|
|
85
95
|
--color-popover-foreground: var(--color-foreground);
|
|
86
96
|
|
|
87
|
-
--color-primary: var(--color-primary-
|
|
97
|
+
--color-primary: var(--color-primary-7);
|
|
88
98
|
--color-primary-foreground: var(--color-primary-2);
|
|
89
|
-
--color-secondary: var(--color-secondary-
|
|
99
|
+
--color-secondary: var(--color-secondary-7);
|
|
90
100
|
--color-secondary-foreground: var(--color-secondary-2);
|
|
91
101
|
--color-muted: var(--color-neutral-7);
|
|
92
102
|
--color-muted-foreground: var(--color-neutral-4);
|
|
93
103
|
--color-accent: var(--color-neutral-7);
|
|
94
104
|
--color-accent-foreground: var(--color-neutral-4);
|
|
95
|
-
--color-destructive: var(--color-destructive-
|
|
105
|
+
--color-destructive: var(--color-destructive-7);
|
|
96
106
|
--color-destructive-foreground: var(--color-destructive-2);
|
|
97
|
-
--color-success: var(--color-success-
|
|
107
|
+
--color-success: var(--color-success-7);
|
|
98
108
|
--color-success-foreground: var(--color-success-2);
|
|
99
109
|
|
|
100
110
|
--color-border: var(--color-neutral-3);
|
|
@@ -109,6 +119,7 @@
|
|
|
109
119
|
|
|
110
120
|
--color-sidebar-background: var(--color-background);
|
|
111
121
|
--color-sidebar-foreground: var(--color-foreground);
|
|
122
|
+
|
|
112
123
|
/* // TODO */
|
|
113
124
|
--color-sidebar-primary: 240 5.9% 10%;
|
|
114
125
|
--color-sidebar-primary-foreground: 0 0% 98%;
|
|
@@ -174,47 +185,48 @@
|
|
|
174
185
|
}
|
|
175
186
|
}
|
|
176
187
|
|
|
177
|
-
@utility
|
|
178
|
-
@apply text-
|
|
188
|
+
@utility link {
|
|
189
|
+
@apply text-primary underline hover:underline-offset-2 hover:text-primary/70;
|
|
179
190
|
}
|
|
180
191
|
|
|
192
|
+
@utility caption {
|
|
193
|
+
@apply text-xs font-medium;
|
|
194
|
+
}
|
|
181
195
|
|
|
182
|
-
@utility
|
|
183
|
-
@apply text-
|
|
184
|
-
/* lineHeight: '1.6', */
|
|
196
|
+
@utility body {
|
|
197
|
+
@apply text-sm;
|
|
185
198
|
}
|
|
186
199
|
|
|
187
|
-
@utility
|
|
188
|
-
@apply text-base;
|
|
189
|
-
|
|
190
|
-
/* lineHeight: '1.2', */
|
|
200
|
+
@utility h6 {
|
|
201
|
+
@apply text-base font-bold;
|
|
202
|
+
}
|
|
191
203
|
|
|
204
|
+
@utility h5 {
|
|
205
|
+
@apply text-lg font-semibold;
|
|
192
206
|
}
|
|
193
207
|
|
|
194
|
-
@utility
|
|
195
|
-
@apply text-
|
|
196
|
-
/* lineHeight: '1.2', */
|
|
208
|
+
@utility h4 {
|
|
209
|
+
@apply text-xl font-medium;
|
|
197
210
|
}
|
|
198
211
|
|
|
199
|
-
@utility
|
|
200
|
-
@apply text-
|
|
201
|
-
/* lineHeight: '1.2', */
|
|
202
|
-
/* fontWeight: 500, */
|
|
212
|
+
@utility h3 {
|
|
213
|
+
@apply text-2xl font-normal;
|
|
203
214
|
}
|
|
204
215
|
|
|
205
|
-
@
|
|
206
|
-
@apply text-
|
|
216
|
+
@utility h2 {
|
|
217
|
+
@apply text-3xl font-light;
|
|
207
218
|
}
|
|
208
219
|
|
|
209
|
-
@utility
|
|
210
|
-
@apply text-
|
|
211
|
-
/* lineHeight: '1', */
|
|
212
|
-
/* fontWeight: 300, */
|
|
220
|
+
@utility h1 {
|
|
221
|
+
@apply text-4xl font-extralight;
|
|
213
222
|
}
|
|
214
223
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
224
|
+
/* Standard height for inputs ~32px */
|
|
225
|
+
@utility h-input {
|
|
226
|
+
@apply h-8;
|
|
218
227
|
}
|
|
219
228
|
|
|
220
|
-
|
|
229
|
+
/* Standard size for icons */
|
|
230
|
+
@utility size-icon {
|
|
231
|
+
@apply size-4;
|
|
232
|
+
}
|
package/lib/tokens.css
CHANGED
|
@@ -109,15 +109,6 @@
|
|
|
109
109
|
--neutral-8: var(--xneutral-8);
|
|
110
110
|
--neutral-9: var(--xneutral-9);
|
|
111
111
|
--neutral-10: var(--xneutral-10);
|
|
112
|
-
/* https://www.fluid-type-scale.com/, https://fluidtypography.com/ */
|
|
113
|
-
--font-xs: clamp(0.52rem, 0.08vi + 0.5rem, 0.56rem);
|
|
114
|
-
--font-sm: clamp(0.65rem, 0.18vi + 0.6rem, 0.75rem);
|
|
115
|
-
--font-base: clamp(0.81rem, 0.34vi + 0.73rem, 1rem);
|
|
116
|
-
--font-md: clamp(1.02rem, 0.58vi + 0.87rem, 1.33rem);
|
|
117
|
-
--font-lg: clamp(1.27rem, 0.92vi + 1.04rem, 1.78rem);
|
|
118
|
-
--font-xl: clamp(1.59rem, 1.42vi + 1.23rem, 2.37rem);
|
|
119
|
-
--font-2xl: clamp(1.98rem, 2.13vi + 1.45rem, 3.16rem);
|
|
120
|
-
--font-3xl: clamp(2.48rem, 3.14vi + 1.69rem, 4.21rem);
|
|
121
112
|
}
|
|
122
113
|
|
|
123
114
|
.dark {
|