@shuriken-ui/tailwind 4.0.0-alpha.5 → 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.
@@ -3,7 +3,7 @@
3
3
  @utility nui-input-number-wrapper {
4
4
  @apply relative;
5
5
 
6
- .nui-input-number-label, .nui-label-float {
6
+ .nui-input-number-label, .nui-input-number-label-float-label {
7
7
  @apply nui-label;
8
8
  }
9
9
 
@@ -26,92 +26,36 @@
26
26
  }
27
27
 
28
28
  &:not(.nui-input-number-loading) {
29
- .nui-input-number:placeholder-shown ~ .nui-label-float {
29
+ .nui-input-number:placeholder-shown ~ .nui-input-number-label-float {
30
30
  @apply text-muted-300 dark:text-muted-600;
31
31
  }
32
32
  }
33
33
 
34
- &:not(.nui-has-icon).nui-input-number-sm {
34
+ &:not(.nui-input-number-has-icon).nui-input-number-sm {
35
35
  .nui-input-number {
36
36
  @apply h-8 py-1 text-xs leading-4 ps-2 pe-[3.75rem];
37
37
  }
38
38
  }
39
39
 
40
- &:not(.nui-has-icon).nui-input-number-md {
40
+ &:not(.nui-input-number-has-icon).nui-input-number-md {
41
41
  .nui-input-number {
42
42
  @apply h-10 py-2 text-sm leading-5 ps-3 pe-[4.75rem];
43
43
  }
44
44
  }
45
45
 
46
- &:not(.nui-has-icon).nui-input-number-lg {
46
+ &:not(.nui-input-number-has-icon).nui-input-number-lg {
47
47
  .nui-input-number {
48
48
  @apply h-12 py-2 text-sm leading-5 ps-4 pe-24;
49
49
  }
50
50
  }
51
51
 
52
- &:not(.nui-has-icon).nui-input-number-xl {
52
+ &:not(.nui-input-number-has-icon).nui-input-number-xl {
53
53
  .nui-input-number {
54
54
  @apply h-14 py-2 text-base leading-5 ps-4 pe-24;
55
55
  }
56
56
  }
57
-
58
- &.nui-input-number-label-float:not(.nui-has-icon).nui-input-number-sm {
59
- .nui-label-float {
60
- @apply start-3 -ms-3 -mt-7 text-xs;
61
- }
62
-
63
- .nui-input-number:focus-visible ~ .nui-label-float {
64
- @apply !-ms-3 !-mt-7;
65
- }
66
-
67
- .nui-input-number:placeholder-shown ~ .nui-label-float {
68
- @apply ms-0 mt-0;
69
- }
70
- }
71
-
72
- &.nui-input-number-label-float:not(.nui-has-icon).nui-input-number-md {
73
- .nui-label-float {
74
- @apply start-3 -ms-3 -mt-8 text-xs;
75
- }
76
-
77
- .nui-input-number:focus-visible ~ .nui-label-float {
78
- @apply !-ms-3 !-mt-8 !text-xs;
79
- }
80
-
81
- .nui-input-number:placeholder-shown ~ .nui-label-float {
82
- @apply ms-0 mt-0 text-[0.825rem];
83
- }
84
- }
85
-
86
- &.nui-input-number-label-float:not(.nui-has-icon).nui-input-number-lg {
87
- .nui-label-float {
88
- @apply start-3 -ms-3 -mt-9 text-xs;
89
- }
90
-
91
- .nui-input-number:focus-visible ~ .nui-label-float {
92
- @apply !-ms-3 !-mt-9 !text-xs;
93
- }
94
-
95
- .nui-input-number:placeholder-shown ~ .nui-label-float {
96
- @apply ms-0 mt-0 text-[0.825rem];
97
- }
98
- }
99
-
100
- &.nui-input-number-label-float:not(.nui-has-icon).nui-input-number-xl {
101
- .nui-label-float {
102
- @apply start-3 -ms-3 -mt-10 text-xs;
103
- }
104
-
105
- .nui-input-number:focus-visible ~ .nui-label-float {
106
- @apply !-ms-3 !-mt-10 !text-xs;
107
- }
108
-
109
- .nui-input-number:placeholder-shown ~ .nui-label-float {
110
- @apply ms-0 mt-0 text-[0.825rem];
111
- }
112
- }
113
57
  }
114
- @utility nui-label-float {
58
+ @utility nui-input-number-label-float-label {
115
59
  @apply h-5 absolute inline-flex items-center select-none pointer-events-none;
116
60
  @apply font-sans text-primary-500 leading-none;
117
61
  @apply transition-all duration-300;
@@ -129,9 +73,9 @@
129
73
  }
130
74
  @utility nui-input-number {
131
75
  @apply nui-focus w-full font-sans disabled:cursor-not-allowed disabled:opacity-75;
132
- @apply transition-all duration-300;
76
+ @apply transition-all duration-300 text-ellipsis;
133
77
 
134
- &:focus-visible ~ .nui-label-float {
78
+ &:focus-visible ~ .nui-input-number-label-float-label {
135
79
  @apply !text-primary-500 dark:!text-primary-500;
136
80
  }
137
81
 
@@ -143,10 +87,10 @@
143
87
  @apply cursor-not-allowed opacity-75;
144
88
  }
145
89
  }
146
- @utility nui-input-number-placeload {
90
+ @utility nui-input-number-placeload-wrapper {
147
91
  @apply absolute start-0 top-0 flex w-full items-center px-4;
148
92
 
149
- .nui-placeload {
93
+ .nui-input-number-placeload {
150
94
  @apply h-3 w-full max-w-[50%] rounded;
151
95
  }
152
96
  }
@@ -200,7 +144,7 @@
200
144
  @apply pb-1 text-xs;
201
145
  }
202
146
 
203
- .nui-label-float {
147
+ .nui-input-number-label-float-label {
204
148
  @apply top-1.5;
205
149
  }
206
150
 
@@ -212,7 +156,7 @@
212
156
  }
213
157
  }
214
158
 
215
- .nui-input-number-placeload {
159
+ .nui-input-number-placeload-wrapper {
216
160
  @apply h-8;
217
161
  }
218
162
 
@@ -225,7 +169,7 @@
225
169
  @apply pb-1 text-[0.825rem];
226
170
  }
227
171
 
228
- .nui-label-float {
172
+ .nui-input-number-label-float-label {
229
173
  @apply top-2.5;
230
174
  }
231
175
 
@@ -237,7 +181,7 @@
237
181
  }
238
182
  }
239
183
 
240
- .nui-input-number-placeload {
184
+ .nui-input-number-placeload-wrapper {
241
185
  @apply h-10;
242
186
  }
243
187
 
@@ -250,7 +194,7 @@
250
194
  @apply pb-1 text-sm;
251
195
  }
252
196
 
253
- .nui-label-float {
197
+ .nui-input-number-label-float-label {
254
198
  @apply top-3.5;
255
199
  }
256
200
 
@@ -262,7 +206,7 @@
262
206
  }
263
207
  }
264
208
 
265
- .nui-input-number-placeload {
209
+ .nui-input-number-placeload-wrapper {
266
210
  @apply h-12;
267
211
  }
268
212
 
@@ -275,7 +219,7 @@
275
219
  @apply pb-1 text-sm;
276
220
  }
277
221
 
278
- .nui-label-float {
222
+ .nui-input-number-label-float-label {
279
223
  @apply top-[1.1rem];
280
224
  }
281
225
 
@@ -287,7 +231,7 @@
287
231
  }
288
232
  }
289
233
 
290
- .nui-input-number-placeload {
234
+ .nui-input-number-placeload-wrapper {
291
235
  @apply h-14;
292
236
  }
293
237
 
@@ -357,7 +301,7 @@
357
301
  @apply !text-transparent placeholder:!text-transparent dark:placeholder:!text-transparent;
358
302
  }
359
303
 
360
- .nui-input-number:placeholder-shown ~ .nui-label-float {
304
+ .nui-input-number:placeholder-shown ~ .nui-input-number-label-float-label {
361
305
  @apply text-transparent;
362
306
  }
363
307
 
@@ -379,90 +323,157 @@
379
323
  @apply !text-danger-500 dark:!text-danger-500;
380
324
  }
381
325
  }
382
- @utility nui-has-icon {
383
- .nui-input-number {
384
- @apply h-8 py-1 text-xs leading-4 ps-8 pe-[3.75rem];
326
+ @utility nui-input-number-has-icon {
327
+ &.nui-input-number-sm {
328
+ .nui-input-number {
329
+ @apply h-8 py-1 text-xs leading-4 ps-8 pe-[3.75rem];
330
+ }
385
331
  }
386
- }
387
- @utility nui-has-icon {
388
- .nui-input-number {
389
- @apply h-10 py-2 text-sm leading-5 ps-10 pe-[4.75rem];
332
+ &.nui-input-number-md {
333
+ .nui-input-number {
334
+ @apply h-10 py-2 text-sm leading-5 ps-10 pe-[4.75rem];
335
+ }
390
336
  }
391
- }
392
- @utility nui-has-icon {
393
- .nui-input-number {
394
- @apply h-12 py-2 text-sm leading-5 ps-11 pe-24;
337
+ &.nui-input-number-lg {
338
+ .nui-input-number {
339
+ @apply h-12 py-2 text-sm leading-5 ps-11 pe-24;
340
+ }
395
341
  }
396
- }
397
- @utility nui-has-icon {
398
- .nui-input-number {
399
- @apply h-14 py-2 text-base leading-5 ps-[3.25rem] pe-24;
342
+ &.nui-input-number-xl {
343
+ .nui-input-number {
344
+ @apply h-14 py-2 text-base leading-5 ps-[3.25rem] pe-24;
345
+ }
400
346
  }
401
347
  }
402
- @utility nui-has-action {
403
- .nui-input-number {
404
- @apply pe-8;
348
+ @utility nui-input-number-has-action {
349
+ &.nui-input-number-sm {
350
+ .nui-input-number {
351
+ @apply pe-8;
352
+ }
405
353
  }
406
- }
407
- @utility nui-has-action {
408
- .nui-input-number {
409
- @apply pe-10;
354
+ &.nui-input-number-md {
355
+ .nui-input-number {
356
+ @apply pe-10;
357
+ }
410
358
  }
411
- }
412
- @utility nui-has-action {
413
- .nui-input-number {
414
- @apply pe-12;
359
+ &.nui-input-number-lg {
360
+ .nui-input-number {
361
+ @apply pe-12;
362
+ }
363
+ }
364
+ &.nui-input-number-xl {
365
+ .nui-input-number {
366
+ @apply pe-14;
367
+ }
415
368
  }
416
369
  }
417
370
  @utility nui-input-number-label-float {
418
- .nui-label-float {
419
- @apply start-8 -ms-8 -mt-7 text-xs;
420
- }
371
+ &.nui-input-number-has-icon.nui-input-number-sm {
372
+ .nui-input-number-label-float-label {
373
+ @apply start-8 -ms-8 -mt-6 text-xs;
374
+ }
421
375
 
422
- .nui-input-number:focus-visible ~ .nui-label-float {
423
- @apply !-ms-8 !-mt-7;
424
- }
376
+ .nui-input-number:focus-visible ~ .nui-input-number-label-float-label {
377
+ @apply !-ms-8 !-mt-6;
378
+ }
425
379
 
426
- .nui-input-number:placeholder-shown ~ .nui-label-float {
427
- @apply ms-0 mt-0;
428
- }
429
- }
430
- @utility nui-input-number-label-float {
431
- .nui-label-float {
432
- @apply start-10 -ms-10 -mt-8 text-xs;
380
+ .nui-input-number:placeholder-shown ~ .nui-input-number-label-float-label {
381
+ @apply ms-0 mt-1;
382
+ }
433
383
  }
384
+ &.nui-input-number-has-icon.nui-input-number-md {
385
+ .nui-input-number-label-float-label {
386
+ @apply start-10 -ms-10 -mt-7 text-xs;
387
+ }
434
388
 
435
- .nui-input-number:focus-visible ~ .nui-label-float {
436
- @apply !-ms-10 !-mt-8 !text-xs;
437
- }
389
+ .nui-input-number:focus-visible ~ .nui-input-number-label-float-label {
390
+ @apply !-ms-10 !-mt-7 !text-xs;
391
+ }
438
392
 
439
- .nui-input-number:placeholder-shown ~ .nui-label-float {
440
- @apply ms-0 mt-0 text-[0.825rem];
393
+ .nui-input-number:placeholder-shown ~ .nui-input-number-label-float-label {
394
+ @apply ms-0 mt-1 text-[0.825rem];
395
+ }
441
396
  }
442
- }
443
- @utility nui-input-number-label-float {
444
- .nui-label-float {
445
- @apply start-11 -ms-10 -mt-9 text-xs;
397
+ &.nui-input-number-has-icon.nui-input-number-lg {
398
+ .nui-input-number-label-float-label {
399
+ @apply start-11 -ms-10 -mt-8 text-xs;
400
+ }
401
+
402
+ .nui-input-number:focus-visible ~ .nui-input-number-label-float-label {
403
+ @apply !-ms-10 !-mt-8 !text-xs;
404
+ }
405
+
406
+ .nui-input-number:placeholder-shown ~ .nui-input-number-label-float-label {
407
+ @apply ms-0 mt-1 text-[0.825rem];
408
+ }
446
409
  }
410
+ &.nui-input-number-has-icon.nui-input-number-xl {
411
+ .nui-input-number-label-float-label {
412
+ @apply start-[3.25rem] -ms-[3.25rem] -mt-9 text-xs;
413
+ }
447
414
 
448
- .nui-input-number:focus-visible ~ .nui-label-float {
449
- @apply !-ms-10 !-mt-9 !text-xs;
415
+ .nui-input-number:focus-visible ~ .nui-input-number-label-float-label {
416
+ @apply !-ms-[3.25rem] !-mt-9 !text-xs;
417
+ }
418
+
419
+ .nui-input-number:placeholder-shown ~ .nui-input-number-label-float-label {
420
+ @apply ms-0 mt-1 text-[0.825rem];
421
+ }
450
422
  }
423
+
424
+ &:not(.nui-input-number-has-icon).nui-input-number-sm {
425
+ .nui-input-number-label-float-label {
426
+ @apply start-3 -ms-3 -mt-67 text-xs;
427
+ }
428
+
429
+ .nui-input-number:focus-visible ~ .nui-input-number-label-float-label {
430
+ @apply !-ms-3 !-mt-6;
431
+ }
451
432
 
452
- .nui-input-number:placeholder-shown ~ .nui-label-float {
453
- @apply ms-0 mt-0 text-[0.825rem];
433
+ .nui-input-number:placeholder-shown ~ .nui-input-number-label-float-label {
434
+ @apply ms-0 mt-1;
435
+ }
454
436
  }
455
- }
456
- @utility nui-input-number-label-float {
457
- .nui-label-float {
458
- @apply start-[3.25rem] -ms-[3.25rem] -mt-10 text-xs;
437
+
438
+ &:not(.nui-input-number-has-icon).nui-input-number-md {
439
+ .nui-input-number-label-float-label {
440
+ @apply start-3 -ms-3 -mt-7 text-xs;
441
+ }
442
+
443
+ .nui-input-number:focus-visible ~ .nui-input-number-label-float-label {
444
+ @apply !-ms-3 !-mt-7 !text-xs;
445
+ }
446
+
447
+ .nui-input-number:placeholder-shown ~ .nui-input-number-label-float-label {
448
+ @apply ms-0 mt-1 text-[0.825rem];
449
+ }
459
450
  }
460
451
 
461
- .nui-input-number:focus-visible ~ .nui-label-float {
462
- @apply !-ms-[3.25rem] !-mt-10 !text-xs;
452
+ &:not(.nui-input-number-has-icon).nui-input-number-lg {
453
+ .nui-input-number-label-float-label {
454
+ @apply start-3 -ms-3 -mt-8 text-xs;
455
+ }
456
+
457
+ .nui-input-number:focus-visible ~ .nui-input-number-label-float-label {
458
+ @apply !-ms-3 !-mt-8 !text-xs;
459
+ }
460
+
461
+ .nui-input-number:placeholder-shown ~ .nui-input-number-label-float-label {
462
+ @apply ms-0 mt-1 text-[0.825rem];
463
+ }
463
464
  }
464
465
 
465
- .nui-input-number:placeholder-shown ~ .nui-label-float {
466
- @apply ms-0 mt-0 text-[0.825rem];
466
+ &:not(.nui-input-number-has-icon).nui-input-number-xl {
467
+ .nui-input-number-label-float-label {
468
+ @apply start-3 -ms-3 -mt-9 text-xs;
469
+ }
470
+
471
+ .nui-input-number:focus-visible ~ .nui-input-number-label-float-label {
472
+ @apply !-ms-3 !-mt-9 !text-xs;
473
+ }
474
+
475
+ .nui-input-number:placeholder-shown ~ .nui-input-number-label-float-label {
476
+ @apply ms-0 mt-1 text-[0.825rem];
477
+ }
467
478
  }
468
479
  }