@cryptlex/web-components 1.4.1 → 1.6.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 +79 -80
- 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 +37 -31
- 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 -17
- 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 +25 -6
- package/lib/tailwind.preset.css +59 -45
- 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,25 +86,25 @@
|
|
|
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);
|
|
83
|
-
|
|
84
|
-
--color-popover: var(--color-
|
|
93
|
+
/* Assuming popovers only show up over cards ??? */
|
|
94
|
+
--color-popover: var(--color-background);
|
|
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%;
|
|
@@ -119,11 +130,8 @@
|
|
|
119
130
|
--color-sidebar-border: var(--color-border);
|
|
120
131
|
--color-sidebar-ring: var(--color-ring);
|
|
121
132
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
gridTemplateColumns: {
|
|
125
|
-
fluid: 'repeat(auto-fill, minmax(var(--grid-fluid-min), 1fr))',
|
|
126
|
-
}, */
|
|
133
|
+
/* Minimum length for fluid grid containers */
|
|
134
|
+
--fluid-grid-min: var(--container-3xs);
|
|
127
135
|
|
|
128
136
|
--animate-accordion-down: accordion-down 0.2s ease-out;
|
|
129
137
|
|
|
@@ -174,47 +182,53 @@
|
|
|
174
182
|
}
|
|
175
183
|
}
|
|
176
184
|
|
|
177
|
-
@utility
|
|
178
|
-
@apply text-
|
|
185
|
+
@utility link {
|
|
186
|
+
@apply text-primary underline hover:underline-offset-2 hover:text-primary/70;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@utility caption {
|
|
190
|
+
@apply text-xs font-medium;
|
|
179
191
|
}
|
|
180
192
|
|
|
193
|
+
@utility body {
|
|
194
|
+
@apply text-sm;
|
|
195
|
+
}
|
|
181
196
|
|
|
182
|
-
@utility
|
|
183
|
-
@apply text-base;
|
|
184
|
-
/* lineHeight: '1.6', */
|
|
197
|
+
@utility h6 {
|
|
198
|
+
@apply text-base font-bold;
|
|
185
199
|
}
|
|
186
200
|
|
|
187
|
-
@utility
|
|
188
|
-
@apply text-
|
|
189
|
-
|
|
190
|
-
/* lineHeight: '1.2', */
|
|
201
|
+
@utility h5 {
|
|
202
|
+
@apply text-lg font-semibold;
|
|
203
|
+
}
|
|
191
204
|
|
|
205
|
+
@utility h4 {
|
|
206
|
+
@apply text-xl font-medium;
|
|
192
207
|
}
|
|
193
208
|
|
|
194
|
-
@utility
|
|
195
|
-
@apply text-
|
|
196
|
-
/* lineHeight: '1.2', */
|
|
209
|
+
@utility h3 {
|
|
210
|
+
@apply text-2xl font-normal;
|
|
197
211
|
}
|
|
198
212
|
|
|
199
|
-
@utility
|
|
200
|
-
@apply text-
|
|
201
|
-
/* lineHeight: '1.2', */
|
|
202
|
-
/* fontWeight: 500, */
|
|
213
|
+
@utility h2 {
|
|
214
|
+
@apply text-3xl font-light;
|
|
203
215
|
}
|
|
204
216
|
|
|
205
|
-
@
|
|
206
|
-
@apply text-
|
|
217
|
+
@utility h1 {
|
|
218
|
+
@apply text-4xl font-extralight;
|
|
207
219
|
}
|
|
208
220
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
/* fontWeight: 300, */
|
|
221
|
+
/* Standard height for inputs ~32px */
|
|
222
|
+
@utility h-input {
|
|
223
|
+
@apply h-8;
|
|
213
224
|
}
|
|
214
225
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
226
|
+
/* Standard size for icons */
|
|
227
|
+
@utility size-icon {
|
|
228
|
+
@apply size-4;
|
|
218
229
|
}
|
|
219
230
|
|
|
220
|
-
|
|
231
|
+
/* Fluid grid with minimum width */
|
|
232
|
+
@utility grid-fluid {
|
|
233
|
+
@apply grid grid-cols-[repeat(auto-fill,_minmax(var(--fluid-grid-min),_1fr))] gap-4;
|
|
234
|
+
}
|
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 {
|