@shuriken-ui/tailwind 4.0.0-alpha.4 → 4.0.0-alpha.6
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 +55 -0
- package/lib/css/accordion.css +8 -9
- package/lib/css/autocomplete.css +143 -134
- package/lib/css/avatar-group.css +19 -20
- package/lib/css/avatar.css +16 -17
- package/lib/css/breadcrumb.css +10 -11
- package/lib/css/button-action.css +0 -1
- package/lib/css/button-close.css +0 -1
- package/lib/css/button-group.css +0 -1
- package/lib/css/button-icon.css +0 -1
- package/lib/css/button.css +0 -1
- package/lib/css/card.css +0 -1
- package/lib/css/checkbox.css +5 -6
- package/lib/css/dropdown-divider.css +0 -1
- package/lib/css/dropdown-item.css +14 -15
- package/lib/css/dropdown.css +21 -22
- package/lib/css/focus.css +0 -1
- package/lib/css/fullscreen-dropfile.css +0 -1
- package/lib/css/heading.css +11 -12
- package/lib/css/icon-box.css +67 -68
- package/lib/css/input-file-regular.css +68 -69
- package/lib/css/input-file.css +0 -1
- package/lib/css/input-help-text.css +0 -1
- package/lib/css/input-number.css +147 -137
- package/lib/css/input.css +144 -138
- package/lib/css/kbd.css +0 -1
- package/lib/css/label.css +0 -1
- package/lib/css/link.css +0 -1
- package/lib/css/list.css +0 -1
- package/lib/css/listbox.css +155 -138
- package/lib/css/mark.css +0 -1
- package/lib/css/mask.css +0 -1
- package/lib/css/message-text.css +24 -25
- package/lib/css/message.css +0 -1
- package/lib/css/modal.css +0 -1
- package/lib/css/pagination.css +4 -5
- package/lib/css/paragraph.css +11 -12
- package/lib/css/placeholder-page.css +0 -1
- package/lib/css/placeload.css +0 -1
- package/lib/css/progress-circle.css +0 -1
- package/lib/css/progress.css +0 -17
- package/lib/css/prose.css +0 -1
- package/lib/css/radio.css +0 -1
- package/lib/css/select.css +128 -125
- package/lib/css/slimscroll.css +4 -4
- package/lib/css/snack.css +3 -4
- package/lib/css/switch-ball.css +0 -1
- package/lib/css/switch-thin.css +0 -1
- package/lib/css/tab-slider.css +0 -1
- package/lib/css/tabs.css +0 -1
- package/lib/css/tag.css +0 -1
- package/lib/css/text.css +24 -25
- package/lib/css/textarea.css +52 -41
- package/lib/css/theme-switch.css +6 -7
- package/lib/css/theme-toggle.css +8 -9
- package/lib/css/toast.css +1 -2
- package/lib/css/tooltip.css +0 -1
- package/lib/index.css +4 -0
- package/lib/theme.css +4 -4
- package/package.json +2 -2
package/lib/css/input.css
CHANGED
@@ -1,15 +1,14 @@
|
|
1
|
-
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
1
|
/* @utility nui-input */
|
3
2
|
|
4
3
|
@utility nui-input-wrapper {
|
5
4
|
@apply relative;
|
6
5
|
|
7
|
-
.nui-input-label, .nui-label-float {
|
6
|
+
.nui-input-label, .nui-input-label-float-label {
|
8
7
|
@apply nui-label;
|
9
8
|
}
|
10
9
|
|
11
10
|
&:not(.nui-input-loading) {
|
12
|
-
.nui-input:placeholder-shown ~ .nui-label-float {
|
11
|
+
.nui-input:placeholder-shown ~ .nui-input-label-float-label {
|
13
12
|
@apply text-muted-300 dark:text-muted-600;
|
14
13
|
}
|
15
14
|
}
|
@@ -20,81 +19,46 @@
|
|
20
19
|
}
|
21
20
|
}
|
22
21
|
|
23
|
-
|
22
|
+
&.nui-input-has-icon.nui-input-sm {
|
24
23
|
.nui-input {
|
25
|
-
@apply h-
|
24
|
+
@apply h-8 py-1 text-xs leading-4 pe-3 ps-8;
|
26
25
|
}
|
27
26
|
}
|
28
27
|
|
29
|
-
&:not(.nui-input-has-icon).nui-input-
|
28
|
+
&:not(.nui-input-has-icon).nui-input-md {
|
30
29
|
.nui-input {
|
31
|
-
@apply h-
|
30
|
+
@apply h-10 py-2 text-sm leading-5 px-3;
|
32
31
|
}
|
33
32
|
}
|
34
|
-
|
35
|
-
&:not(.nui-input-has-icon).nui-input-xl {
|
33
|
+
&.nui-input-has-icon.nui-input-md {
|
36
34
|
.nui-input {
|
37
|
-
@apply h-
|
35
|
+
@apply h-10 py-2 text-sm leading-5 pe-4 ps-10;
|
38
36
|
}
|
39
37
|
}
|
40
38
|
|
41
|
-
|
42
|
-
.nui-
|
43
|
-
@apply
|
44
|
-
}
|
45
|
-
|
46
|
-
.nui-input:focus-visible ~ .nui-label-float {
|
47
|
-
@apply !-ms-3 !-mt-7;
|
48
|
-
}
|
49
|
-
|
50
|
-
.nui-input:placeholder-shown ~ .nui-label-float {
|
51
|
-
@apply ms-0 mt-0;
|
39
|
+
&:not(.nui-input-has-icon).nui-input-lg {
|
40
|
+
.nui-input {
|
41
|
+
@apply h-12 py-2 text-sm leading-5 px-4;
|
52
42
|
}
|
53
43
|
}
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
@apply start-3 -ms-3 -mt-8 text-xs;
|
58
|
-
}
|
59
|
-
|
60
|
-
.nui-input:focus-visible ~ .nui-label-float {
|
61
|
-
@apply !-ms-3 !-mt-8 !text-xs;
|
62
|
-
}
|
63
|
-
|
64
|
-
.nui-input:placeholder-shown ~ .nui-label-float {
|
65
|
-
@apply ms-0 mt-0 text-[0.825rem];
|
44
|
+
&.nui-input-has-icon.nui-input-lg {
|
45
|
+
.nui-input {
|
46
|
+
@apply h-12 py-2 text-sm leading-5 pe-4 ps-11;
|
66
47
|
}
|
67
48
|
}
|
68
49
|
|
69
|
-
|
70
|
-
.nui-
|
71
|
-
@apply
|
72
|
-
}
|
73
|
-
|
74
|
-
.nui-input:focus-visible ~ .nui-label-float {
|
75
|
-
@apply !-ms-3 !-mt-9 !text-xs;
|
76
|
-
}
|
77
|
-
|
78
|
-
.nui-input:placeholder-shown ~ .nui-label-float {
|
79
|
-
@apply ms-0 mt-0 text-[0.825rem];
|
50
|
+
&:not(.nui-input-has-icon).nui-input-xl {
|
51
|
+
.nui-input {
|
52
|
+
@apply h-14 py-2 text-base leading-5 px-4;
|
80
53
|
}
|
81
54
|
}
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
@apply start-3 -ms-3 -mt-10 text-xs;
|
86
|
-
}
|
87
|
-
|
88
|
-
.nui-input:focus-visible ~ .nui-label-float {
|
89
|
-
@apply !-ms-3 !-mt-10 !text-xs;
|
90
|
-
}
|
91
|
-
|
92
|
-
.nui-input:placeholder-shown ~ .nui-label-float {
|
93
|
-
@apply ms-0 mt-0 text-[0.825rem];
|
55
|
+
&.nui-input-has-icon.nui-input-xl {
|
56
|
+
.nui-input {
|
57
|
+
@apply h-14 py-2 text-base leading-5 pe-4 ps-[3.25rem];
|
94
58
|
}
|
95
59
|
}
|
96
60
|
}
|
97
|
-
@utility nui-label-float {
|
61
|
+
@utility nui-input-label-float-label {
|
98
62
|
@apply h-5 absolute inline-flex items-center select-none pointer-events-none;
|
99
63
|
@apply font-sans text-primary-500 leading-none;
|
100
64
|
@apply transition-all duration-300;
|
@@ -109,9 +73,9 @@
|
|
109
73
|
}
|
110
74
|
@utility nui-input {
|
111
75
|
@apply nui-focus w-full font-sans disabled:cursor-not-allowed disabled:opacity-75;
|
112
|
-
@apply transition-all duration-300;
|
76
|
+
@apply transition-all duration-300 text-ellipsis;
|
113
77
|
|
114
|
-
&:focus-visible ~ .nui-label-float {
|
78
|
+
&:focus-visible ~ .nui-input-label-float-label {
|
115
79
|
@apply !text-primary-500 dark:!text-primary-500;
|
116
80
|
}
|
117
81
|
|
@@ -123,10 +87,10 @@
|
|
123
87
|
@apply cursor-not-allowed opacity-75;
|
124
88
|
}
|
125
89
|
}
|
126
|
-
@utility nui-input-placeload {
|
90
|
+
@utility nui-input-placeload-wrapper {
|
127
91
|
@apply absolute start-0 top-0 flex w-full items-center px-4;
|
128
92
|
|
129
|
-
.nui-placeload {
|
93
|
+
.nui-input-placeload {
|
130
94
|
@apply h-3 w-full max-w-[75%] rounded;
|
131
95
|
}
|
132
96
|
}
|
@@ -160,7 +124,7 @@
|
|
160
124
|
@apply pb-1 text-xs;
|
161
125
|
}
|
162
126
|
|
163
|
-
.nui-label-float {
|
127
|
+
.nui-input-label-float-label {
|
164
128
|
@apply top-1.5;
|
165
129
|
}
|
166
130
|
|
@@ -172,7 +136,7 @@
|
|
172
136
|
}
|
173
137
|
}
|
174
138
|
|
175
|
-
.nui-input-placeload {
|
139
|
+
.nui-input-placeload-wrapper {
|
176
140
|
@apply h-8;
|
177
141
|
}
|
178
142
|
}
|
@@ -181,7 +145,7 @@
|
|
181
145
|
@apply pb-1 text-[0.825rem];
|
182
146
|
}
|
183
147
|
|
184
|
-
.nui-label-float {
|
148
|
+
.nui-input-label-float-label {
|
185
149
|
@apply top-2.5;
|
186
150
|
}
|
187
151
|
|
@@ -193,7 +157,7 @@
|
|
193
157
|
}
|
194
158
|
}
|
195
159
|
|
196
|
-
.nui-input-placeload {
|
160
|
+
.nui-input-placeload-wrapper {
|
197
161
|
@apply h-10;
|
198
162
|
}
|
199
163
|
}
|
@@ -202,7 +166,7 @@
|
|
202
166
|
@apply pb-1 text-sm;
|
203
167
|
}
|
204
168
|
|
205
|
-
.nui-label-float {
|
169
|
+
.nui-input-label-float-label {
|
206
170
|
@apply top-3.5;
|
207
171
|
}
|
208
172
|
|
@@ -214,7 +178,7 @@
|
|
214
178
|
}
|
215
179
|
}
|
216
180
|
|
217
|
-
.nui-input-placeload {
|
181
|
+
.nui-input-placeload-wrapper {
|
218
182
|
@apply h-12;
|
219
183
|
}
|
220
184
|
}
|
@@ -223,7 +187,7 @@
|
|
223
187
|
@apply pb-1 text-sm;
|
224
188
|
}
|
225
189
|
|
226
|
-
.nui-label-float {
|
190
|
+
.nui-input-label-float-label {
|
227
191
|
@apply top-[1.1rem];
|
228
192
|
}
|
229
193
|
|
@@ -235,7 +199,7 @@
|
|
235
199
|
}
|
236
200
|
}
|
237
201
|
|
238
|
-
.nui-input-placeload {
|
202
|
+
.nui-input-placeload-wrapper {
|
239
203
|
@apply h-14;
|
240
204
|
}
|
241
205
|
}
|
@@ -286,7 +250,7 @@
|
|
286
250
|
@apply !text-transparent placeholder:!text-transparent dark:placeholder:!text-transparent;
|
287
251
|
}
|
288
252
|
|
289
|
-
.nui-input:placeholder-shown ~ .nui-label-float {
|
253
|
+
.nui-input:placeholder-shown ~ .nui-input-label-float-label {
|
290
254
|
@apply text-transparent;
|
291
255
|
}
|
292
256
|
|
@@ -308,95 +272,137 @@
|
|
308
272
|
@apply !text-danger-500 dark:!text-danger-500;
|
309
273
|
}
|
310
274
|
}
|
311
|
-
@utility nui-input-has-icon {
|
312
|
-
.nui-input {
|
313
|
-
@apply h-8 py-1 text-xs leading-4 pe-3 ps-8;
|
314
|
-
}
|
315
|
-
}
|
316
|
-
@utility nui-input-has-icon {
|
317
|
-
.nui-input {
|
318
|
-
@apply h-10 py-2 text-sm leading-5 pe-4 ps-10;
|
319
|
-
}
|
320
|
-
}
|
321
|
-
@utility nui-input-has-icon {
|
322
|
-
.nui-input {
|
323
|
-
@apply h-12 py-2 text-sm leading-5 pe-4 ps-11;
|
324
|
-
}
|
325
|
-
}
|
326
|
-
@utility nui-input-has-icon {
|
327
|
-
.nui-input {
|
328
|
-
@apply h-14 py-2 text-base leading-5 pe-4 ps-[3.25rem];
|
329
|
-
}
|
330
|
-
}
|
331
275
|
@utility nui-input-has-action {
|
332
|
-
|
333
|
-
|
276
|
+
&.nui-input-sm {
|
277
|
+
.nui-input {
|
278
|
+
@apply pe-8!;
|
279
|
+
}
|
334
280
|
}
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
281
|
+
&.nui-input-md {
|
282
|
+
.nui-input {
|
283
|
+
@apply pe-10!;
|
284
|
+
}
|
339
285
|
}
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
286
|
+
&.nui-input-lg {
|
287
|
+
.nui-input {
|
288
|
+
@apply pe-12!;
|
289
|
+
}
|
344
290
|
}
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
291
|
+
&.nui-input-xl {
|
292
|
+
.nui-input {
|
293
|
+
@apply pe-14!;
|
294
|
+
}
|
349
295
|
}
|
350
296
|
}
|
351
297
|
@utility nui-input-label-float {
|
352
|
-
.nui-
|
353
|
-
|
354
|
-
|
298
|
+
&.nui-input-has-icon.nui-input-sm {
|
299
|
+
.nui-input-label-float-label {
|
300
|
+
@apply start-8 -ms-8 -mt-6 text-xs;
|
301
|
+
}
|
355
302
|
|
356
|
-
|
357
|
-
|
358
|
-
|
303
|
+
.nui-input:focus-visible ~ .nui-input-label-float-label {
|
304
|
+
@apply !-ms-8 !-mt-6;
|
305
|
+
}
|
359
306
|
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
}
|
364
|
-
@utility nui-input-label-float {
|
365
|
-
.nui-label-float {
|
366
|
-
@apply start-10 -ms-10 -mt-8 text-xs;
|
307
|
+
.nui-input:placeholder-shown ~ .nui-input-label-float-label {
|
308
|
+
@apply ms-0 mt-1;
|
309
|
+
}
|
367
310
|
}
|
311
|
+
&.nui-input-has-icon.nui-input-md {
|
312
|
+
.nui-input-label-float-label {
|
313
|
+
@apply start-10 -ms-10 -mt-7 text-xs;
|
314
|
+
}
|
368
315
|
|
369
|
-
|
370
|
-
|
371
|
-
|
316
|
+
.nui-input:focus-visible ~ .nui-input-label-float-label {
|
317
|
+
@apply !-ms-10 !-mt-7 !text-xs;
|
318
|
+
}
|
372
319
|
|
373
|
-
|
374
|
-
|
320
|
+
.nui-input:placeholder-shown ~ .nui-input-label-float-label {
|
321
|
+
@apply ms-0 mt-1 text-[0.825rem];
|
322
|
+
}
|
375
323
|
}
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
324
|
+
&.nui-input-has-icon.nui-input-lg {
|
325
|
+
.nui-input-label-float-label {
|
326
|
+
@apply start-11 -ms-9 -mt-8 text-xs;
|
327
|
+
}
|
328
|
+
|
329
|
+
.nui-input:focus-visible ~ .nui-input-label-float-label {
|
330
|
+
@apply !-ms-11 !-mt-8 !text-xs;
|
331
|
+
}
|
332
|
+
|
333
|
+
.nui-input:placeholder-shown ~ .nui-input-label-float-label {
|
334
|
+
@apply ms-0 mt-1 text-[0.825rem];
|
335
|
+
}
|
380
336
|
}
|
337
|
+
&.nui-input-has-icon.nui-input-xl {
|
338
|
+
.nui-input-label-float-label {
|
339
|
+
@apply start-[3.25rem] ms-[-3.25rem] -mt-9 text-xs;
|
340
|
+
}
|
341
|
+
|
342
|
+
.nui-input:focus-visible ~ .nui-input-label-float-label {
|
343
|
+
@apply !ms-[-3.25rem] !-mt-9 !text-xs;
|
344
|
+
}
|
381
345
|
|
382
|
-
|
383
|
-
|
346
|
+
.nui-input:placeholder-shown ~ .nui-input-label-float-label {
|
347
|
+
@apply ms-0 mt-1 text-[0.825rem];
|
348
|
+
}
|
384
349
|
}
|
385
350
|
|
386
|
-
|
387
|
-
|
351
|
+
|
352
|
+
|
353
|
+
&:not(.nui-input-has-icon).nui-input-sm {
|
354
|
+
.nui-input-label-float-label {
|
355
|
+
@apply start-3 -ms-3 -mt-6 text-xs;
|
356
|
+
}
|
357
|
+
|
358
|
+
.nui-input:focus-visible ~ .nui-input-label-float-label {
|
359
|
+
@apply !-ms-3 !-mt-6;
|
360
|
+
}
|
361
|
+
|
362
|
+
.nui-input:placeholder-shown ~ .nui-input-label-float-label {
|
363
|
+
@apply ms-0 mt-1;
|
364
|
+
}
|
388
365
|
}
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
366
|
+
|
367
|
+
&:not(.nui-input-has-icon).nui-input-md {
|
368
|
+
.nui-input-label-float-label {
|
369
|
+
@apply start-3 -ms-3 -mt-7 text-xs;
|
370
|
+
}
|
371
|
+
|
372
|
+
.nui-input:focus-visible ~ .nui-input-label-float-label {
|
373
|
+
@apply !-ms-3 !-mt-7 !text-xs;
|
374
|
+
}
|
375
|
+
|
376
|
+
.nui-input:placeholder-shown ~ .nui-input-label-float-label {
|
377
|
+
@apply ms-0 mt-1 text-[0.825rem];
|
378
|
+
}
|
393
379
|
}
|
394
380
|
|
395
|
-
.nui-input
|
396
|
-
|
381
|
+
&:not(.nui-input-has-icon).nui-input-lg {
|
382
|
+
.nui-input-label-float-label {
|
383
|
+
@apply start-3 -ms-3 -mt-8 text-xs;
|
384
|
+
}
|
385
|
+
|
386
|
+
.nui-input:focus-visible ~ .nui-input-label-float-label {
|
387
|
+
@apply !-ms-3 !-mt-8 !text-xs;
|
388
|
+
}
|
389
|
+
|
390
|
+
.nui-input:placeholder-shown ~ .nui-input-label-float-label {
|
391
|
+
@apply ms-0 mt-1 text-[0.825rem];
|
392
|
+
}
|
397
393
|
}
|
398
394
|
|
399
|
-
.nui-input
|
400
|
-
|
395
|
+
&:not(.nui-input-has-icon).nui-input-xl {
|
396
|
+
.nui-input-label-float-label {
|
397
|
+
@apply start-3 -ms-3 -mt-9 text-xs;
|
398
|
+
}
|
399
|
+
|
400
|
+
.nui-input:focus-visible ~ .nui-input-label-float-label {
|
401
|
+
@apply !-ms-3 !-mt-9 !text-xs;
|
402
|
+
}
|
403
|
+
|
404
|
+
.nui-input:placeholder-shown ~ .nui-input-label-float-label {
|
405
|
+
@apply ms-0 mt-1 text-[0.825rem];
|
406
|
+
}
|
401
407
|
}
|
402
408
|
}
|
package/lib/css/kbd.css
CHANGED
package/lib/css/label.css
CHANGED
package/lib/css/link.css
CHANGED
package/lib/css/list.css
CHANGED