@shuriken-ui/tailwind 3.1.3 → 4.0.0-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +30 -80
- package/src/css/accordion.css +175 -0
- package/src/css/autocomplete.css +511 -0
- package/src/css/avatar-group.css +138 -0
- package/src/css/avatar.css +738 -0
- package/src/css/breadcrumb.css +63 -0
- package/src/css/button-action.css +108 -0
- package/src/css/button-close.css +117 -0
- package/src/css/button-group.css +236 -0
- package/src/css/button-icon.css +97 -0
- package/src/css/button.css +565 -0
- package/src/css/card.css +69 -0
- package/src/css/checkbox.css +99 -0
- package/src/css/dropdown-divider.css +6 -0
- package/src/css/dropdown-item.css +62 -0
- package/src/css/dropdown.css +102 -0
- package/src/css/focus.css +12 -0
- package/src/css/fullscreen-dropfile.css +63 -0
- package/src/css/heading.css +78 -0
- package/src/css/icon-box.css +305 -0
- package/src/css/input-file-regular.css +255 -0
- package/src/css/input-file.css +224 -0
- package/src/css/input-help-text.css +7 -0
- package/src/css/input-number.css +469 -0
- package/src/css/input.css +402 -0
- package/src/css/kbd.css +94 -0
- package/src/css/label.css +6 -0
- package/src/css/link.css +8 -0
- package/src/css/list.css +23 -0
- package/src/css/listbox.css +511 -0
- package/src/css/mark.css +7 -0
- package/src/css/mask.css +23 -0
- package/src/css/message-text.css +72 -0
- package/src/css/message.css +245 -0
- package/src/css/modal.css +51 -0
- package/src/css/pagination.css +93 -0
- package/src/css/paragraph.css +78 -0
- package/src/css/placeholder-page.css +44 -0
- package/src/css/placeload.css +13 -0
- package/src/css/progress-circle.css +18 -0
- package/src/css/progress.css +90 -0
- package/src/css/prose.css +22 -0
- package/src/css/radio.css +73 -0
- package/src/css/select.css +404 -0
- package/src/css/slimscroll.css +32 -0
- package/src/css/snack.css +101 -0
- package/src/css/switch-ball.css +94 -0
- package/src/css/switch-thin.css +76 -0
- package/src/css/tab-slider.css +190 -0
- package/src/css/tabs.css +175 -0
- package/src/css/tag.css +312 -0
- package/src/css/text.css +78 -0
- package/src/css/textarea.css +228 -0
- package/src/css/theme-switch.css +65 -0
- package/src/css/theme-toggle.css +62 -0
- package/src/css/toast.css +132 -0
- package/src/css/tooltip.css +99 -0
- package/src/index.css +57 -0
- package/dist/colors.cjs +0 -2
- package/dist/colors.d.cts +0 -2
- package/dist/colors.d.mts +0 -2
- package/dist/colors.d.ts +0 -2
- package/dist/colors.mjs +0 -1
- package/dist/config.cjs +0 -18
- package/dist/config.d.cts +0 -6
- package/dist/config.d.mts +0 -6
- package/dist/config.d.ts +0 -6
- package/dist/config.mjs +0 -16
- package/dist/index.cjs +0 -25
- package/dist/index.d.cts +0 -11
- package/dist/index.d.mts +0 -11
- package/dist/index.d.ts +0 -11
- package/dist/index.mjs +0 -21
- package/dist/plugins/index.cjs +0 -21074
- package/dist/plugins/index.d.cts +0 -308
- package/dist/plugins/index.d.mts +0 -308
- package/dist/plugins/index.d.ts +0 -308
- package/dist/plugins/index.mjs +0 -21008
- package/dist/preset.cjs +0 -53
- package/dist/preset.d.cts +0 -3
- package/dist/preset.d.mts +0 -3
- package/dist/preset.d.ts +0 -3
- package/dist/preset.mjs +0 -44
- package/dist/shared/tailwind.6e316a50.d.cts +0 -49966
- package/dist/shared/tailwind.6e316a50.d.mts +0 -49966
- package/dist/shared/tailwind.6e316a50.d.ts +0 -49966
- package/dist/themes.cjs +0 -119
- package/dist/themes.d.cts +0 -187
- package/dist/themes.d.mts +0 -187
- package/dist/themes.d.ts +0 -187
- package/dist/themes.mjs +0 -113
@@ -0,0 +1,511 @@
|
|
1
|
+
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
|
+
/* @utility nui-listbox */
|
3
|
+
|
4
|
+
@utility nui-listbox {
|
5
|
+
@apply relative w-full;
|
6
|
+
|
7
|
+
.nui-listbox-label, .nui-label-float {
|
8
|
+
@apply nui-label;
|
9
|
+
}
|
10
|
+
|
11
|
+
&:not(.nui-listbox-loading) {
|
12
|
+
.nui-listbox-button ~ .nui-label-float {
|
13
|
+
@apply text-muted-300 dark:text-muted-600;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
&:not(.nui-has-icon).nui-listbox-sm {
|
18
|
+
.nui-listbox-button {
|
19
|
+
@apply h-8 py-1 text-xs leading-4 px-2;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
&:not(.nui-has-icon).nui-listbox-md {
|
24
|
+
.nui-listbox-button {
|
25
|
+
@apply h-10 py-2 text-sm leading-5 px-3;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
&:not(.nui-has-icon).nui-listbox-lg {
|
30
|
+
.nui-listbox-button {
|
31
|
+
@apply h-12 py-2 text-sm leading-5 px-4;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
&:not(.nui-has-icon).nui-listbox-xl {
|
36
|
+
.nui-listbox-button {
|
37
|
+
@apply h-14 py-2 text-base leading-5 px-4;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
&.nui-listbox-label-float:not(.nui-has-icon).nui-listbox-sm {
|
42
|
+
.nui-label-float {
|
43
|
+
@apply start-3 -ms-3 -mt-7 text-xs text-transparent;
|
44
|
+
}
|
45
|
+
|
46
|
+
.nui-listbox-button:focus-visible ~ .nui-label-float, .nui-listbox-button:focus ~ .nui-label-float, .nui-label-float-active {
|
47
|
+
@apply !-ms-3 !-mt-7 !text-primary-500;
|
48
|
+
}
|
49
|
+
|
50
|
+
.nui-listbox-button ~ .nui-label-float {
|
51
|
+
@apply ms-0 mt-0;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
&.nui-listbox-label-float:not(.nui-has-icon).nui-listbox-md {
|
56
|
+
.nui-label-float {
|
57
|
+
@apply start-3 -ms-3 -mt-8 text-xs text-transparent;
|
58
|
+
}
|
59
|
+
|
60
|
+
.nui-listbox-button:focus-visible ~ .nui-label-float, .nui-listbox-button:focus ~ .nui-label-float, .nui-label-float-active {
|
61
|
+
@apply !-ms-3 !-mt-8 !text-xs !text-primary-500;
|
62
|
+
}
|
63
|
+
|
64
|
+
.nui-listbox-button ~ .nui-label-float {
|
65
|
+
@apply ms-0 mt-0 text-xs;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
&.nui-listbox-label-float:not(.nui-has-icon).nui-listbox-lg {
|
70
|
+
.nui-label-float {
|
71
|
+
@apply start-3 -ms-3 -mt-9 text-xs text-transparent;
|
72
|
+
}
|
73
|
+
|
74
|
+
.nui-listbox-button:focus-visible ~ .nui-label-float, .nui-listbox-button:focus ~ .nui-label-float, .nui-label-float-active {
|
75
|
+
@apply !-ms-3 !-mt-9 !text-xs !text-primary-500;
|
76
|
+
}
|
77
|
+
|
78
|
+
.nui-listbox-button ~ .nui-label-float {
|
79
|
+
@apply ms-0 mt-0 text-[0.825rem];
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
&.nui-listbox-label-float:not(.nui-has-icon).nui-listbox-xl {
|
84
|
+
.nui-label-float {
|
85
|
+
@apply start-3 -ms-3 -mt-10 text-xs text-transparent;
|
86
|
+
}
|
87
|
+
|
88
|
+
.nui-listbox-button:focus-visible ~ .nui-label-float, .nui-listbox-button:focus ~ .nui-label-float, .nui-label-float-active {
|
89
|
+
@apply !-ms-3 !-mt-10 !text-xs !text-primary-500;
|
90
|
+
}
|
91
|
+
|
92
|
+
.nui-listbox-button ~ .nui-label-float {
|
93
|
+
@apply ms-0 mt-0 text-[0.825rem];
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
@utility nui-label-float {
|
98
|
+
@apply pointer-events-none absolute inline-flex select-none items-center leading-none;
|
99
|
+
@apply text-primary-500 h-5;
|
100
|
+
@apply transition-all duration-300;
|
101
|
+
}
|
102
|
+
@utility nui-listbox-outer {
|
103
|
+
@apply relative;
|
104
|
+
}
|
105
|
+
@utility nui-listbox-button {
|
106
|
+
@apply nui-focus relative w-full flex items-center gap-2 pe-12 ps-4 border leading-5 disabled:cursor-not-allowed disabled:opacity-75;
|
107
|
+
@apply font-sans text-sm text-start;
|
108
|
+
|
109
|
+
.nui-listbox-button-inner {
|
110
|
+
@apply flex w-full items-center;
|
111
|
+
|
112
|
+
.nui-icon-box {
|
113
|
+
@apply !h-6 !w-6;
|
114
|
+
@apply -ms-2 me-2;
|
115
|
+
|
116
|
+
.nui-icon-box-inner {
|
117
|
+
@apply h-4 w-4;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
.nui-listbox-placeholder {
|
122
|
+
@apply text-muted-300 dark:text-muted-500 truncate text-start;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
&:focus-visible ~ .nui-listbox-chevron .nui-listbox-chevron-inner, &:focus ~ .nui-listbox-chevron .nui-listbox-chevron-inner {
|
127
|
+
@apply !rotate-180;
|
128
|
+
}
|
129
|
+
}
|
130
|
+
@utility nui-listbox-icon {
|
131
|
+
@apply text-muted-400 dark:text-muted-400;
|
132
|
+
@apply transition-colors duration-300;
|
133
|
+
@apply absolute start-0 top-0 z-10 flex items-center justify-center;
|
134
|
+
}
|
135
|
+
@utility nui-listbox-chevron {
|
136
|
+
@apply pointer-events-none absolute top-0 end-0 flex items-center justify-center border-s;
|
137
|
+
|
138
|
+
.nui-listbox-chevron-inner {
|
139
|
+
@apply transition-transform duration-300;
|
140
|
+
@apply h-4 w-4;
|
141
|
+
@apply text-muted-400 dark:text-muted-400;
|
142
|
+
}
|
143
|
+
}
|
144
|
+
@utility nui-listbox-options {
|
145
|
+
@apply nui-slimscroll absolute z-10 mt-1 max-h-60 w-full overflow-auto p-2;
|
146
|
+
@apply text-base sm:text-sm;
|
147
|
+
@apply focus:ring-primary-500/50 dark:focus:ring-primary-500/50 focus:outline-none focus:ring-1;
|
148
|
+
@apply shadow-lg shadow-muted-300/30 dark:shadow-muted-800/20;
|
149
|
+
}
|
150
|
+
@utility nui-listbox-option {
|
151
|
+
@apply relative flex gap-2 cursor-pointer select-none items-center px-3 py-2;
|
152
|
+
@apply transition-colors duration-300;
|
153
|
+
|
154
|
+
.nui-icon-box {
|
155
|
+
@apply text-muted-200 dark:text-muted-400 -ms-2 me-1;
|
156
|
+
|
157
|
+
.nui-icon-box-inner {
|
158
|
+
@apply h-5 w-5;
|
159
|
+
}
|
160
|
+
}
|
161
|
+
|
162
|
+
.nui-listbox-selected-icon {
|
163
|
+
@apply text-primary-600 dark:text-primary-600 ms-auto flex items-center;
|
164
|
+
}
|
165
|
+
|
166
|
+
.nui-listbox-selected-icon-inner {
|
167
|
+
@apply h-4 w-4;
|
168
|
+
}
|
169
|
+
|
170
|
+
.nui-listbox-option-inner {
|
171
|
+
.nui-listbox-heading {
|
172
|
+
@apply block truncate;
|
173
|
+
@apply text-muted-800 dark:text-muted-100;
|
174
|
+
}
|
175
|
+
|
176
|
+
.nui-listbox-text {
|
177
|
+
@apply text-muted-400 dark:text-muted-400;
|
178
|
+
}
|
179
|
+
}
|
180
|
+
|
181
|
+
&:not(.nui-active), &:not(:hover) {
|
182
|
+
@apply text-muted-600 dark:text-muted-200;
|
183
|
+
}
|
184
|
+
|
185
|
+
&.nui-active, &:hover {
|
186
|
+
@apply text-primary-600 dark:text-primary-600;
|
187
|
+
@apply bg-primary-500/10 dark:bg-primary-500/10;
|
188
|
+
}
|
189
|
+
}
|
190
|
+
@utility nui-listbox-placeload {
|
191
|
+
@apply absolute start-0 top-0 flex w-full items-center px-4;
|
192
|
+
|
193
|
+
.nui-placeload {
|
194
|
+
@apply h-3 w-full max-w-[75%] rounded;
|
195
|
+
}
|
196
|
+
}
|
197
|
+
@utility nui-listbox-sm {
|
198
|
+
.nui-listbox-label {
|
199
|
+
@apply pb-1 text-xs;
|
200
|
+
}
|
201
|
+
|
202
|
+
.nui-label-float {
|
203
|
+
@apply top-1.5;
|
204
|
+
}
|
205
|
+
|
206
|
+
.nui-listbox-icon {
|
207
|
+
@apply h-8 w-8;
|
208
|
+
|
209
|
+
.nui-listbox-icon-inner {
|
210
|
+
@apply h-4 w-4;
|
211
|
+
}
|
212
|
+
}
|
213
|
+
|
214
|
+
.nui-listbox-placeload {
|
215
|
+
@apply h-8;
|
216
|
+
}
|
217
|
+
|
218
|
+
.nui-listbox-chevron {
|
219
|
+
@apply h-8 w-8;
|
220
|
+
|
221
|
+
.nui-listbox-chevron-inner {
|
222
|
+
@apply h-3 w-3;
|
223
|
+
}
|
224
|
+
}
|
225
|
+
}
|
226
|
+
@utility nui-listbox-md {
|
227
|
+
.nui-listbox-label {
|
228
|
+
@apply pb-1 text-[0.825rem];
|
229
|
+
}
|
230
|
+
|
231
|
+
.nui-label-float {
|
232
|
+
@apply top-2.5;
|
233
|
+
}
|
234
|
+
}
|
235
|
+
@utility nui-listbox-icon {
|
236
|
+
@apply h-10 w-10;
|
237
|
+
|
238
|
+
.nui-listbox-icon-inner {
|
239
|
+
@apply h-[1.15rem] w-[1.15rem];
|
240
|
+
}
|
241
|
+
}
|
242
|
+
@utility nui-listbox-placeload {
|
243
|
+
@apply h-10;
|
244
|
+
}
|
245
|
+
@utility nui-listbox-chevron {
|
246
|
+
@apply h-10 w-10;
|
247
|
+
|
248
|
+
.nui-listbox-chevron-inner {
|
249
|
+
@apply h-4 w-4;
|
250
|
+
}
|
251
|
+
}
|
252
|
+
@utility nui-listbox-lg {
|
253
|
+
.nui-listbox-label {
|
254
|
+
@apply pb-1 text-sm;
|
255
|
+
}
|
256
|
+
|
257
|
+
.nui-label-float {
|
258
|
+
@apply top-3.5;
|
259
|
+
}
|
260
|
+
|
261
|
+
.nui-listbox-icon {
|
262
|
+
@apply h-12 w-12;
|
263
|
+
|
264
|
+
.nui-listbox-icon-inner {
|
265
|
+
@apply h-5 w-5;
|
266
|
+
}
|
267
|
+
}
|
268
|
+
|
269
|
+
.nui-listbox-placeload {
|
270
|
+
@apply h-12;
|
271
|
+
}
|
272
|
+
|
273
|
+
.nui-listbox-chevron {
|
274
|
+
@apply h-12 w-12;
|
275
|
+
|
276
|
+
.nui-listbox-chevron-inner {
|
277
|
+
@apply h-5 w-5;
|
278
|
+
}
|
279
|
+
}
|
280
|
+
}
|
281
|
+
@utility nui-listbox-xl {
|
282
|
+
.nui-listbox-label {
|
283
|
+
@apply pb-1 text-sm;
|
284
|
+
}
|
285
|
+
|
286
|
+
.nui-label-float {
|
287
|
+
@apply top-[1.1rem];
|
288
|
+
}
|
289
|
+
|
290
|
+
.nui-listbox-icon {
|
291
|
+
@apply h-14 w-14;
|
292
|
+
|
293
|
+
.nui-listbox-icon-inner {
|
294
|
+
@apply h-5 w-5;
|
295
|
+
}
|
296
|
+
}
|
297
|
+
|
298
|
+
.nui-listbox-placeload {
|
299
|
+
@apply h-14;
|
300
|
+
}
|
301
|
+
|
302
|
+
.nui-listbox-chevron {
|
303
|
+
@apply h-14 w-14;
|
304
|
+
|
305
|
+
.nui-listbox-chevron-inner {
|
306
|
+
@apply h-5 w-5;
|
307
|
+
}
|
308
|
+
}
|
309
|
+
}
|
310
|
+
@utility nui-listbox-rounded-sm {
|
311
|
+
.nui-listbox-button, .nui-listbox-options, .nui-listbox-option {
|
312
|
+
@apply rounded-md;
|
313
|
+
}
|
314
|
+
}
|
315
|
+
@utility nui-listbox-rounded-md {
|
316
|
+
.nui-listbox-button, .nui-listbox-options, .nui-listbox-option {
|
317
|
+
@apply rounded-lg;
|
318
|
+
}
|
319
|
+
}
|
320
|
+
@utility nui-listbox-rounded-lg {
|
321
|
+
.nui-listbox-button, .nui-listbox-options, .nui-listbox-option {
|
322
|
+
@apply rounded-xl;
|
323
|
+
}
|
324
|
+
}
|
325
|
+
@utility nui-listbox-rounded-full {
|
326
|
+
.nui-listbox-button {
|
327
|
+
@apply rounded-full;
|
328
|
+
}
|
329
|
+
|
330
|
+
.nui-listbox-option, .nui-listbox-options {
|
331
|
+
@apply rounded-xl;
|
332
|
+
}
|
333
|
+
}
|
334
|
+
@utility nui-listbox-default {
|
335
|
+
.nui-listbox-button {
|
336
|
+
@apply text-muted-600 dark:text-muted-200;
|
337
|
+
@apply bg-white dark:bg-muted-900;
|
338
|
+
@apply border border-muted-300 dark:border-muted-700;
|
339
|
+
@apply placeholder-muted-300 dark:placeholder-muted-500;
|
340
|
+
@apply focus:shadow-lg focus:shadow-muted-300/30 dark:focus:shadow-muted-800/20;
|
341
|
+
}
|
342
|
+
|
343
|
+
.nui-listbox-chevron {
|
344
|
+
@apply border-muted-200 dark:border-muted-700;
|
345
|
+
}
|
346
|
+
|
347
|
+
.nui-listbox-options {
|
348
|
+
@apply bg-white dark:bg-muted-700;
|
349
|
+
@apply border border-muted-200 dark:border-muted-600;
|
350
|
+
}
|
351
|
+
}
|
352
|
+
@utility nui-listbox-default-contrast {
|
353
|
+
.nui-listbox-button {
|
354
|
+
@apply text-muted-600 dark:text-muted-200;
|
355
|
+
@apply bg-white dark:bg-muted-950;
|
356
|
+
@apply border border-muted-300 dark:border-muted-800;
|
357
|
+
@apply placeholder-muted-300 dark:placeholder-muted-600;
|
358
|
+
@apply focus:shadow-lg focus:shadow-muted-300/30 dark:focus:shadow-muted-800/20;
|
359
|
+
}
|
360
|
+
|
361
|
+
.nui-listbox-chevron {
|
362
|
+
@apply border-muted-300 dark:border-muted-800;
|
363
|
+
}
|
364
|
+
|
365
|
+
.nui-listbox-options {
|
366
|
+
@apply bg-white dark:bg-muted-950;
|
367
|
+
@apply border border-muted-200 dark:border-muted-800;
|
368
|
+
}
|
369
|
+
}
|
370
|
+
@utility nui-listbox-muted {
|
371
|
+
.nui-listbox-button {
|
372
|
+
@apply text-muted-600 dark:text-muted-200;
|
373
|
+
@apply bg-muted-100 dark:bg-muted-900;
|
374
|
+
@apply border border-muted-200 dark:border-muted-700;
|
375
|
+
@apply placeholder-muted-300 dark:placeholder-muted-500;
|
376
|
+
@apply focus:shadow-lg focus:shadow-muted-300/30 dark:focus:shadow-muted-800/20;
|
377
|
+
}
|
378
|
+
|
379
|
+
.nui-listbox-chevron {
|
380
|
+
@apply border-muted-200 dark:border-muted-700;
|
381
|
+
}
|
382
|
+
|
383
|
+
.nui-listbox-options {
|
384
|
+
@apply bg-white dark:bg-muted-700;
|
385
|
+
@apply border border-muted-200 dark:border-muted-600;
|
386
|
+
}
|
387
|
+
}
|
388
|
+
@utility nui-listbox-muted-contrast {
|
389
|
+
.nui-listbox-button {
|
390
|
+
@apply text-muted-600 dark:text-muted-200;
|
391
|
+
@apply bg-muted-100 dark:bg-muted-950;
|
392
|
+
@apply border border-muted-200 dark:border-muted-800;
|
393
|
+
@apply placeholder-muted-300 dark:placeholder-muted-600;
|
394
|
+
@apply focus:shadow-lg focus:shadow-muted-300/30 dark:focus:shadow-muted-800/20;
|
395
|
+
}
|
396
|
+
|
397
|
+
.nui-listbox-chevron {
|
398
|
+
@apply border-muted-300 dark:border-muted-800;
|
399
|
+
}
|
400
|
+
|
401
|
+
.nui-listbox-options {
|
402
|
+
@apply bg-white dark:bg-muted-950;
|
403
|
+
@apply border border-muted-200 dark:border-muted-800;
|
404
|
+
}
|
405
|
+
}
|
406
|
+
@utility nui-listbox-focus {
|
407
|
+
.nui-listbox-button {
|
408
|
+
@apply transition-colors duration-300;
|
409
|
+
@apply focus:!border-primary-500 dark:focus:!border-primary-500;
|
410
|
+
@apply focus:hover:!border-primary-500 dark:focus:hover:!border-primary-500;
|
411
|
+
}
|
412
|
+
}
|
413
|
+
@utility nui-listbox-loading {
|
414
|
+
.nui-listbox-button {
|
415
|
+
@apply !text-transparent placeholder:!text-transparent dark:placeholder:!text-transparent pointer-events-none;
|
416
|
+
}
|
417
|
+
|
418
|
+
.nui-listbox-button ~ .nui-label-float {
|
419
|
+
@apply text-transparent;
|
420
|
+
}
|
421
|
+
|
422
|
+
.nui-listbox-icon {
|
423
|
+
@apply opacity-0;
|
424
|
+
}
|
425
|
+
}
|
426
|
+
@utility nui-listbox-label-float {
|
427
|
+
.nui-listbox-button {
|
428
|
+
@apply placeholder:text-transparent dark:placeholder:text-transparent;
|
429
|
+
}
|
430
|
+
}
|
431
|
+
@utility nui-listbox-error {
|
432
|
+
.nui-listbox-button {
|
433
|
+
@apply !border-danger-500 dark:!border-danger-500;
|
434
|
+
}
|
435
|
+
|
436
|
+
.nui-listbox-icon {
|
437
|
+
@apply !text-danger-500 dark:!text-danger-500;
|
438
|
+
}
|
439
|
+
}
|
440
|
+
@utility nui-has-icon {
|
441
|
+
.nui-listbox-button {
|
442
|
+
@apply h-8 py-1 text-xs leading-4 pe-3 ps-8;
|
443
|
+
}
|
444
|
+
}
|
445
|
+
@utility nui-has-icon {
|
446
|
+
.nui-listbox-button {
|
447
|
+
@apply h-10 py-2 text-sm leading-5 pe-4 ps-10;
|
448
|
+
}
|
449
|
+
}
|
450
|
+
@utility nui-has-icon {
|
451
|
+
.nui-listbox-button {
|
452
|
+
@apply h-12 py-2 text-sm leading-5 pe-4 ps-11;
|
453
|
+
}
|
454
|
+
}
|
455
|
+
@utility nui-has-icon {
|
456
|
+
.nui-listbox-button {
|
457
|
+
@apply h-14 py-2 text-base leading-5 pe-4 ps-12;
|
458
|
+
}
|
459
|
+
}
|
460
|
+
@utility nui-listbox-label-float {
|
461
|
+
.nui-label-float {
|
462
|
+
@apply start-8 -ms-8 -mt-7 text-xs text-transparent;
|
463
|
+
}
|
464
|
+
|
465
|
+
.nui-listbox-button:focus-visible ~ .nui-label-float, .nui-listbox-button:focus ~ .nui-label-float, .nui-label-float-active {
|
466
|
+
@apply !-ms-8 !-mt-7 !text-primary-500;
|
467
|
+
}
|
468
|
+
|
469
|
+
.nui-listbox-button ~ .nui-label-float {
|
470
|
+
@apply ms-0 mt-0;
|
471
|
+
}
|
472
|
+
}
|
473
|
+
@utility nui-listbox-label-float {
|
474
|
+
.nui-label-float {
|
475
|
+
@apply start-10 -ms-10 -mt-8 text-xs text-transparent;
|
476
|
+
}
|
477
|
+
|
478
|
+
.nui-listbox-button:focus-visible ~ .nui-label-float, .nui-listbox-button:focus ~ .nui-label-float, .nui-label-float-active {
|
479
|
+
@apply !-ms-10 !-mt-8 !text-xs !text-primary-500;
|
480
|
+
}
|
481
|
+
|
482
|
+
.nui-listbox-button ~ .nui-label-float {
|
483
|
+
@apply ms-0 mt-0 text-[0.825rem];
|
484
|
+
}
|
485
|
+
}
|
486
|
+
@utility nui-listbox-label-float {
|
487
|
+
.nui-label-float {
|
488
|
+
@apply start-11 -ms-10 -mt-9 text-xs text-transparent;
|
489
|
+
}
|
490
|
+
|
491
|
+
.nui-listbox-button:focus-visible ~ .nui-label-float, .nui-listbox-button:focus ~ .nui-label-float, .nui-label-float-active {
|
492
|
+
@apply !-ms-10 !-mt-9 !text-xs !text-primary-500;
|
493
|
+
}
|
494
|
+
|
495
|
+
.nui-listbox-button ~ .nui-label-float {
|
496
|
+
@apply ms-0 mt-0 text-[0.825rem];
|
497
|
+
}
|
498
|
+
}
|
499
|
+
@utility nui-listbox-label-float {
|
500
|
+
.nui-label-float {
|
501
|
+
@apply start-[3.25rem] -ms-[3.25rem] -mt-10 text-xs text-transparent;
|
502
|
+
}
|
503
|
+
|
504
|
+
.nui-listbox-button:focus-visible ~ .nui-label-float, .nui-listbox-button:focus ~ .nui-label-float, .nui-label-float-active {
|
505
|
+
@apply !-ms-[3.25rem] !-mt-10 !text-xs !text-primary-500;
|
506
|
+
}
|
507
|
+
|
508
|
+
.nui-listbox-button ~ .nui-label-float {
|
509
|
+
@apply ms-0 mt-0 text-[0.825rem];
|
510
|
+
}
|
511
|
+
}
|
package/src/css/mark.css
ADDED
package/src/css/mask.css
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
|
+
/* @utility nui-mask */
|
3
|
+
|
4
|
+
@utility nui-mask {
|
5
|
+
mask-size: contain;
|
6
|
+
mask-repeat: no-repeat;
|
7
|
+
mask-position: center;
|
8
|
+
}
|
9
|
+
@utility nui-mask-hex {
|
10
|
+
mask-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjE4MiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNjQuNzg2IDE4MS40Yy05LjE5NiAwLTIwLjA2My02LjY4Ny0yNS4wNzktMTQuMjFMMy43NjIgMTA1LjMzYy01LjAxNi04LjM2LTUuMDE2LTIwLjkgMC0yOS4yNTlsMzUuOTQ1LTYxLjg2QzQ0LjcyMyA1Ljg1MSA1NS41OSAwIDY0Ljc4NiAwaDcxLjA1NWM5LjE5NiAwIDIwLjA2MyA2LjY4OCAyNS4wNzkgMTQuMjExbDM1Ljk0NSA2MS44NmM0LjE4IDguMzYgNC4xOCAyMC44OTkgMCAyOS4yNThsLTM1Ljk0NSA2MS44NmMtNC4xOCA4LjM2LTE1Ljg4MyAxNC4yMTEtMjUuMDc5IDE0LjIxMUg2NC43ODZ6Ii8+PC9zdmc+');
|
11
|
+
}
|
12
|
+
@utility nui-mask-hexed {
|
13
|
+
mask-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgyIiBoZWlnaHQ9IjIwMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNLjMgNjUuNDg2YzAtOS4xOTYgNi42ODctMjAuMDYzIDE0LjIxMS0yNS4wNzhsNjEuODYtMzUuOTQ2YzguMzYtNS4wMTYgMjAuODk5LTUuMDE2IDI5LjI1OCAwbDYxLjg2IDM1Ljk0NmM4LjM2IDUuMDE1IDE0LjIxMSAxNS44ODIgMTQuMjExIDI1LjA3OHY3MS4wNTVjMCA5LjE5Ni02LjY4NyAyMC4wNjMtMTQuMjExIDI1LjA3OWwtNjEuODYgMzUuOTQ1Yy04LjM2IDQuMTgtMjAuODk5IDQuMTgtMjkuMjU4IDBsLTYxLjg2LTM1Ljk0NUM2LjE1MSAxNTcuNDQuMyAxNDUuNzM3LjMgMTM2LjU0VjY1LjQ4NnoiLz48L3N2Zz4=');
|
14
|
+
}
|
15
|
+
@utility nui-mask-deca {
|
16
|
+
mask-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkyIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOTYgMGw1OC43NzkgMTkuMDk4IDM2LjMyNyA1MHY2MS44MDRsLTM2LjMyNyA1MEw5NiAyMDBsLTU4Ljc3OS0xOS4wOTgtMzYuMzI3LTUwVjY5LjA5OGwzNi4zMjctNTB6IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=');
|
17
|
+
}
|
18
|
+
@utility nui-mask-blob {
|
19
|
+
mask-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAwIDBDMjAgMCAwIDIwIDAgMTAwczIwIDEwMCAxMDAgMTAwIDEwMC0yMCAxMDAtMTAwUzE4MCAwIDEwMCAweiIvPjwvc3ZnPg==');
|
20
|
+
}
|
21
|
+
@utility nui-mask-diamond {
|
22
|
+
mask-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAwIDBsMTAwIDEwMC0xMDAgMTAwTDAgMTAweiIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+');
|
23
|
+
}
|
@@ -0,0 +1,72 @@
|
|
1
|
+
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
|
+
/* @utility nui-message-text */
|
3
|
+
|
4
|
+
@utility nui-message-text {
|
5
|
+
@apply relative p-5;
|
6
|
+
}
|
7
|
+
@utility nui-message-head {
|
8
|
+
@apply flex items-center gap-2 mb-3;
|
9
|
+
}
|
10
|
+
@utility nui-message-dot {
|
11
|
+
@apply inline-block h-2 w-2 rounded-full;
|
12
|
+
}
|
13
|
+
@utility nui-message-close {
|
14
|
+
@apply absolute top-2 end-2;
|
15
|
+
}
|
16
|
+
@utility nui-message-rounded-sm {
|
17
|
+
@apply rounded-md;
|
18
|
+
}
|
19
|
+
@utility nui-message-rounded-md {
|
20
|
+
@apply rounded-lg;
|
21
|
+
}
|
22
|
+
@utility nui-message-rounded-lg {
|
23
|
+
@apply rounded-xl;
|
24
|
+
}
|
25
|
+
@utility nui-message-low-contrast {
|
26
|
+
@apply bg-white dark:bg-muted-800;
|
27
|
+
@apply border border-muted-300 dark:border-muted-700;
|
28
|
+
}
|
29
|
+
@utility nui-message-high-contrast {
|
30
|
+
@apply bg-white dark:bg-muted-950;
|
31
|
+
@apply border border-muted-300 dark:border-muted-800;
|
32
|
+
}
|
33
|
+
@utility nui-message-default {
|
34
|
+
.nui-message-dot {
|
35
|
+
@apply bg-muted-300 dark:bg-muted-700;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
@utility nui-message-primary {
|
39
|
+
.nui-message-dot {
|
40
|
+
@apply bg-primary-500 dark:bg-primary-500;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
@utility nui-message-info {
|
44
|
+
.nui-message-dot {
|
45
|
+
@apply bg-info-500 dark:bg-info-500;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
@utility nui-message-success {
|
49
|
+
.nui-message-dot {
|
50
|
+
@apply bg-success-500 dark:bg-success-500;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
@utility nui-message-warning {
|
54
|
+
.nui-message-dot {
|
55
|
+
@apply bg-warning-500 dark:bg-warning-500;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
@utility nui-message-danger {
|
59
|
+
.nui-message-dot {
|
60
|
+
@apply bg-danger-500 dark:bg-danger-500;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
@utility nui-message-dark {
|
64
|
+
.nui-message-dot {
|
65
|
+
@apply bg-muted-900 dark:bg-muted-100;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
@utility nui-message-black {
|
69
|
+
.nui-message-dot {
|
70
|
+
@apply bg-black dark:bg-white;
|
71
|
+
}
|
72
|
+
}
|