@shuriken-ui/tailwind 3.1.2 → 4.0.0-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. package/package.json +30 -80
  2. package/src/css/accordion.css +175 -0
  3. package/src/css/autocomplete.css +511 -0
  4. package/src/css/avatar-group.css +138 -0
  5. package/src/css/avatar.css +738 -0
  6. package/src/css/breadcrumb.css +63 -0
  7. package/src/css/button-action.css +108 -0
  8. package/src/css/button-close.css +117 -0
  9. package/src/css/button-group.css +236 -0
  10. package/src/css/button-icon.css +97 -0
  11. package/src/css/button.css +565 -0
  12. package/src/css/card.css +69 -0
  13. package/src/css/checkbox.css +99 -0
  14. package/src/css/dropdown-divider.css +6 -0
  15. package/src/css/dropdown-item.css +62 -0
  16. package/src/css/dropdown.css +102 -0
  17. package/src/css/focus.css +12 -0
  18. package/src/css/fullscreen-dropfile.css +63 -0
  19. package/src/css/heading.css +78 -0
  20. package/src/css/icon-box.css +305 -0
  21. package/src/css/input-file-regular.css +255 -0
  22. package/src/css/input-file.css +224 -0
  23. package/src/css/input-help-text.css +7 -0
  24. package/src/css/input-number.css +469 -0
  25. package/src/css/input.css +402 -0
  26. package/src/css/kbd.css +94 -0
  27. package/src/css/label.css +6 -0
  28. package/src/css/link.css +8 -0
  29. package/src/css/list.css +23 -0
  30. package/src/css/listbox.css +511 -0
  31. package/src/css/mark.css +7 -0
  32. package/src/css/mask.css +23 -0
  33. package/src/css/message-text.css +72 -0
  34. package/src/css/message.css +245 -0
  35. package/src/css/modal.css +51 -0
  36. package/src/css/pagination.css +93 -0
  37. package/src/css/paragraph.css +78 -0
  38. package/src/css/placeholder-page.css +44 -0
  39. package/src/css/placeload.css +13 -0
  40. package/src/css/progress-circle.css +18 -0
  41. package/src/css/progress.css +90 -0
  42. package/src/css/prose.css +22 -0
  43. package/src/css/radio.css +73 -0
  44. package/src/css/select.css +404 -0
  45. package/src/css/slimscroll.css +32 -0
  46. package/src/css/snack.css +101 -0
  47. package/src/css/switch-ball.css +94 -0
  48. package/src/css/switch-thin.css +76 -0
  49. package/src/css/tab-slider.css +190 -0
  50. package/src/css/tabs.css +175 -0
  51. package/src/css/tag.css +312 -0
  52. package/src/css/text.css +78 -0
  53. package/src/css/textarea.css +228 -0
  54. package/src/css/theme-switch.css +65 -0
  55. package/src/css/theme-toggle.css +62 -0
  56. package/src/css/toast.css +132 -0
  57. package/src/css/tooltip.css +99 -0
  58. package/src/index.css +57 -0
  59. package/dist/colors.cjs +0 -2
  60. package/dist/colors.d.cts +0 -2
  61. package/dist/colors.d.mts +0 -2
  62. package/dist/colors.d.ts +0 -2
  63. package/dist/colors.mjs +0 -1
  64. package/dist/config.cjs +0 -18
  65. package/dist/config.d.cts +0 -6
  66. package/dist/config.d.mts +0 -6
  67. package/dist/config.d.ts +0 -6
  68. package/dist/config.mjs +0 -16
  69. package/dist/index.cjs +0 -25
  70. package/dist/index.d.cts +0 -11
  71. package/dist/index.d.mts +0 -11
  72. package/dist/index.d.ts +0 -11
  73. package/dist/index.mjs +0 -21
  74. package/dist/plugins/index.cjs +0 -21074
  75. package/dist/plugins/index.d.cts +0 -308
  76. package/dist/plugins/index.d.mts +0 -308
  77. package/dist/plugins/index.d.ts +0 -308
  78. package/dist/plugins/index.mjs +0 -21008
  79. package/dist/preset.cjs +0 -53
  80. package/dist/preset.d.cts +0 -3
  81. package/dist/preset.d.mts +0 -3
  82. package/dist/preset.d.ts +0 -3
  83. package/dist/preset.mjs +0 -44
  84. package/dist/shared/tailwind.6e316a50.d.cts +0 -49966
  85. package/dist/shared/tailwind.6e316a50.d.mts +0 -49966
  86. package/dist/shared/tailwind.6e316a50.d.ts +0 -49966
  87. package/dist/themes.cjs +0 -119
  88. package/dist/themes.d.cts +0 -187
  89. package/dist/themes.d.mts +0 -187
  90. package/dist/themes.d.ts +0 -187
  91. package/dist/themes.mjs +0 -113
@@ -0,0 +1,305 @@
1
+ /* generated using "pnpm jiti scripts/generate-utilities.ts" */
2
+ /* @utility nui-icon-box */
3
+
4
+ @utility nui-icon-box {
5
+ @apply relative inline-flex shrink-0 items-center justify-center;
6
+
7
+ &.nui-box-mask:not(.nui-box-rounded-sm):not(.nui-box-rounded-lg):not(.nui-box-rounded-full):not(.nui-box-outline):not(.nui-box-bordered) {
8
+ @apply nui-mask;
9
+ }
10
+ }
11
+ @utility nui-box-xs {
12
+ @apply h-8 w-8;
13
+
14
+ &.nui-box-rounded-sm {
15
+ @apply rounded;
16
+ }
17
+
18
+ &.nui-box-rounded-md {
19
+ @apply rounded-md;
20
+ }
21
+
22
+ &.nui-box-rounded-lg {
23
+ @apply rounded-lg;
24
+ }
25
+ }
26
+ @utility nui-box-sm {
27
+ @apply h-10 w-10;
28
+
29
+ &.nui-box-rounded-sm {
30
+ @apply rounded;
31
+ }
32
+
33
+ &.nui-box-rounded-md {
34
+ @apply rounded-md;
35
+ }
36
+
37
+ &.nui-box-rounded-lg {
38
+ @apply rounded-xl;
39
+ }
40
+ }
41
+ @utility nui-box-md {
42
+ @apply h-12 w-12;
43
+
44
+ &.nui-box-rounded-sm {
45
+ @apply rounded-md;
46
+ }
47
+
48
+ &.nui-box-rounded-md {
49
+ @apply rounded-lg;
50
+ }
51
+
52
+ &.nui-box-rounded-lg {
53
+ @apply rounded-xl;
54
+ }
55
+ }
56
+ @utility nui-box-lg {
57
+ @apply h-16 w-16;
58
+
59
+ &.nui-box-rounded-sm {
60
+ @apply rounded-md;
61
+ }
62
+
63
+ &.nui-box-rounded-md {
64
+ @apply rounded-lg;
65
+ }
66
+
67
+ &.nui-box-rounded-lg {
68
+ @apply rounded-2xl;
69
+ }
70
+ }
71
+ @utility nui-box-xl {
72
+ @apply h-20 w-20;
73
+
74
+ &.nui-box-rounded-sm {
75
+ @apply rounded-lg;
76
+ }
77
+
78
+ &.nui-box-rounded-md {
79
+ @apply rounded-xl;
80
+ }
81
+
82
+ &.nui-box-rounded-lg {
83
+ @apply rounded-2xl;
84
+ }
85
+ }
86
+ @utility nui-box-2xl {
87
+ @apply h-24 w-24;
88
+
89
+ &.nui-box-rounded-sm {
90
+ @apply rounded-lg;
91
+ }
92
+
93
+ &.nui-box-rounded-md {
94
+ @apply rounded-xl;
95
+ }
96
+
97
+ &.nui-box-rounded-lg {
98
+ @apply rounded-3xl;
99
+ }
100
+ }
101
+ @utility nui-box-rounded-full {
102
+ @apply rounded-full;
103
+ }
104
+ @utility nui-box-default {
105
+ @apply text-muted-600 dark:text-muted-200;
106
+ @apply bg-muted-100 dark:bg-muted-700;
107
+ }
108
+ @utility nui-box-solid {
109
+ &.nui-box-default {
110
+ @apply text-muted-600 dark:text-muted-200;
111
+ @apply bg-muted-100 dark:bg-muted-700;
112
+ }
113
+
114
+ &.nui-box-default-contrast {
115
+ @apply text-muted-600 dark:text-muted-100;
116
+ @apply bg-muted-100 dark:bg-muted-950;
117
+ }
118
+
119
+ &.nui-box-muted {
120
+ @apply text-muted-700 dark:text-muted-200;
121
+ @apply bg-muted-200 dark:bg-muted-700;
122
+ }
123
+
124
+ &.nui-box-muted-contrast {
125
+ @apply text-muted-700 dark:text-muted-100;
126
+ @apply bg-muted-200 dark:bg-muted-950;
127
+ }
128
+
129
+ &.nui-box-light {
130
+ @apply text-muted-800 dark:text-muted-100;
131
+ @apply bg-white dark:bg-muted-700;
132
+ }
133
+
134
+ &.nui-box-dark {
135
+ @apply text-muted-100 dark:text-muted-900;
136
+ @apply bg-muted-900 dark:bg-muted-100;
137
+ }
138
+
139
+ &.nui-box-black {
140
+ @apply text-white dark:text-black;
141
+ @apply bg-black dark:bg-white;
142
+ }
143
+
144
+ &.nui-box-primary {
145
+ @apply text-primary-invert dark:text-primary-invert;
146
+ @apply bg-primary-500 dark:bg-primary-500;
147
+ }
148
+
149
+ &.nui-box-info {
150
+ @apply text-white dark:text-white;
151
+ @apply bg-info-500 dark:bg-info-500;
152
+ }
153
+
154
+ &.nui-box-success {
155
+ @apply text-white dark:text-white;
156
+ @apply bg-success-500 dark:bg-success-500;
157
+ }
158
+
159
+ &.nui-box-warning {
160
+ @apply text-white dark:text-white;
161
+ @apply bg-warning-500 dark:bg-warning-500;
162
+ }
163
+
164
+ &.nui-box-danger {
165
+ @apply text-white dark:text-white;
166
+ @apply bg-danger-500 dark:bg-danger-500;
167
+ }
168
+ }
169
+ @utility nui-box-pastel {
170
+ &.nui-box-default {
171
+ @apply text-muted-500 dark:text-muted-200;
172
+ @apply bg-muted-500/10 dark:bg-muted-700/10;
173
+ }
174
+
175
+ &.nui-box-default-contrast {
176
+ @apply text-muted-500 dark:text-muted-100;
177
+ @apply bg-muted-500/10 dark:bg-muted-950/10;
178
+ }
179
+
180
+ &.nui-box-muted {
181
+ @apply text-muted-700 dark:text-muted-200;
182
+ @apply bg-muted-600/10 dark:bg-muted-700/10;
183
+ }
184
+
185
+ &.nui-box-muted-contrast {
186
+ @apply text-muted-700 dark:text-muted-100;
187
+ @apply bg-muted-600/10 dark:bg-muted-950/10;
188
+ }
189
+
190
+ &.nui-box-light {
191
+ @apply text-muted-800 dark:text-muted-300;
192
+ @apply bg-white/10 dark:bg-white/10;
193
+ }
194
+
195
+ &.nui-box-dark {
196
+ @apply text-muted-800 dark:text-muted-100;
197
+ @apply bg-muted-900/10 dark:bg-muted-100/10;
198
+ }
199
+
200
+ &.nui-box-black {
201
+ @apply text-black dark:text-white;
202
+ @apply bg-black/10 dark:bg-white/10;
203
+ }
204
+
205
+ &.nui-box-primary {
206
+ @apply text-primary-500 dark:text-primary-500;
207
+ @apply bg-primary-500/10 dark:bg-primary-500/10;
208
+ }
209
+
210
+ &.nui-box-info {
211
+ @apply text-info-500 dark:text-info-500;
212
+ @apply bg-info-500/10 dark:bg-info-500/10;
213
+ }
214
+
215
+ &.nui-box-success {
216
+ @apply text-success-500 dark:text-success-500;
217
+ @apply bg-success-500/10 dark:bg-success-500/10;
218
+ }
219
+
220
+ &.nui-box-warning {
221
+ @apply text-warning-500 dark:text-warning-500;
222
+ @apply bg-warning-500/10 dark:bg-warning-500/10;
223
+ }
224
+
225
+ &.nui-box-danger {
226
+ @apply text-danger-500 dark:text-danger-500;
227
+ @apply bg-danger-500/10 dark:bg-danger-500/10;
228
+ }
229
+ }
230
+ @utility nui-box-outline {
231
+ &.nui-box-default {
232
+ @apply text-muted-500 dark:text-muted-200;
233
+ @apply bg-transparent bg-transparent;
234
+ @apply border-2 border-current dark:border-current;
235
+ }
236
+
237
+ &.nui-box-default-contrast {
238
+ @apply text-muted-500 dark:text-muted-100;
239
+ @apply bg-transparent bg-transparent;
240
+ @apply border-2 border-current dark:border-current;
241
+ }
242
+
243
+ &.nui-box-muted {
244
+ @apply text-muted-700 dark:text-muted-200;
245
+ @apply bg-transparent bg-transparent;
246
+ @apply border-2 border-current dark:border-current;
247
+ }
248
+
249
+ &.nui-box-muted-contrast {
250
+ @apply text-muted-700 dark:text-muted-100;
251
+ @apply bg-transparent bg-transparent;
252
+ @apply border-2 border-current dark:border-current;
253
+ }
254
+
255
+ &.nui-box-light {
256
+ @apply text-muted-800 dark:text-muted-400;
257
+ @apply bg-transparent bg-transparent;
258
+ @apply border-2 border-current dark:border-current;
259
+ }
260
+
261
+ &.nui-box-dark {
262
+ @apply text-muted-800 dark:text-muted-100;
263
+ @apply bg-transparent bg-transparent;
264
+ @apply border-2 border-current dark:border-current;
265
+ }
266
+
267
+ &.nui-box-black {
268
+ @apply text-black dark:text-white;
269
+ @apply bg-transparent bg-transparent;
270
+ @apply border-2 border-current dark:border-current;
271
+ }
272
+
273
+ &.nui-box-primary {
274
+ @apply text-primary-500 dark:text-primary-500;
275
+ @apply bg-transparent bg-transparent;
276
+ @apply border-2 border-current dark:border-current;
277
+ }
278
+
279
+ &.nui-box-info {
280
+ @apply text-info-500 dark:text-info-500;
281
+ @apply bg-transparent bg-transparent;
282
+ @apply border-2 border-current dark:border-current;
283
+ }
284
+
285
+ &.nui-box-success {
286
+ @apply text-success-500 dark:text-success-500;
287
+ @apply bg-transparent bg-transparent;
288
+ @apply border-2 border-current dark:border-current;
289
+ }
290
+
291
+ &.nui-box-warning {
292
+ @apply text-warning-500 dark:text-warning-500;
293
+ @apply bg-transparent bg-transparent;
294
+ @apply border-2 border-current dark:border-current;
295
+ }
296
+
297
+ &.nui-box-danger {
298
+ @apply text-danger-500 dark:text-danger-500;
299
+ @apply bg-transparent bg-transparent;
300
+ @apply border-2 border-current dark:border-current;
301
+ }
302
+ }
303
+ @utility nui-box-bordered {
304
+ @apply border-2 border-current;
305
+ }
@@ -0,0 +1,255 @@
1
+ /* generated using "pnpm jiti scripts/generate-utilities.ts" */
2
+ /* @utility nui-input-file-regular */
3
+
4
+ @utility nui-input-file-regular {
5
+ @apply relative w-full;
6
+
7
+ &.nui-input-sm:not(.nui-has-icon) {
8
+ @apply text-xs leading-4;
9
+
10
+ .nui-input-file-inner {
11
+ @apply h-8 py-2 gap-1;
12
+ }
13
+
14
+ .nui-input-file-addon {
15
+ @apply h-8 px-2;
16
+ }
17
+
18
+ .nui-input-file-placeload {
19
+ @apply top-2.5;
20
+ }
21
+ }
22
+
23
+ &.nui-input-md:not(.nui-has-icon) {
24
+ @apply text-[0.825rem] leading-5;
25
+
26
+ .nui-input-file-inner {
27
+ @apply h-10 gap-2;
28
+ }
29
+
30
+ .nui-input-file-addon {
31
+ @apply h-10 px-3;
32
+ }
33
+
34
+ .nui-input-file-placeload {
35
+ @apply top-3.5;
36
+ }
37
+ }
38
+
39
+ &.nui-input-lg:not(.nui-has-icon) {
40
+ @apply text-sm leading-5;
41
+
42
+ .nui-input-file-inner {
43
+ @apply h-12 gap-2;
44
+ }
45
+
46
+ .nui-input-file-addon {
47
+ @apply h-12 px-4;
48
+ }
49
+
50
+ .nui-input-file-placeload {
51
+ @apply top-[1.2rem];
52
+ }
53
+ }
54
+
55
+ &.nui-input-xl:not(.nui-has-icon) {
56
+ @apply text-sm leading-5;
57
+
58
+ .nui-input-file-inner {
59
+ @apply h-14 gap-2;
60
+ }
61
+
62
+ .nui-input-file-addon {
63
+ @apply h-14 px-5;
64
+ }
65
+
66
+ .nui-input-file-placeload {
67
+ @apply top-[1.4rem];
68
+ }
69
+ }
70
+
71
+ &:hover {
72
+ .nui-input-file-addon {
73
+ @apply text-primary-500 dark:text-primary-500;
74
+ }
75
+ }
76
+
77
+ &:disabled {
78
+ .nui-input-file-addon {
79
+ @apply cursor-not-allowed opacity-75;
80
+ }
81
+ }
82
+
83
+ &:focus-within {
84
+ .nui-input-file-addon {
85
+ @apply text-primary-500 dark:text-primary-500;
86
+ }
87
+ }
88
+ }
89
+ @utility nui-input-file-label {
90
+ @apply nui-label w-full;
91
+ }
92
+ @utility nui-input-file-outer {
93
+ @apply relative;
94
+ }
95
+ @utility nui-input-file-inner {
96
+ @apply relative nui-focus w-full flex cursor-pointer items-center overflow-hidden disabled:cursor-not-allowed disabled:opacity-75;
97
+ @apply font-sans;
98
+ @apply transition-colors duration-300;
99
+ }
100
+ @utility nui-input-file-addon {
101
+ @apply pointer-events-none flex shrink-0 items-center justify-center gap-1 transition-colors duration-100;
102
+ }
103
+ @utility nui-input-file-placeholder {
104
+ @apply font-sans text-xs;
105
+ @apply text-muted-400 dark:text-muted-400;
106
+ }
107
+ @utility nui-input-file-text {
108
+ @apply ms-2 inline-flex truncate text-muted-400 dark:text-muted-400;
109
+ }
110
+ @utility nui-input-file-placeload {
111
+ @apply absolute -end-8 flex w-[70%] items-center;
112
+
113
+ .nui-placeload {
114
+ @apply h-3 w-full max-w-[75%] rounded;
115
+ }
116
+ }
117
+ @utility nui-input-default {
118
+ .nui-input-file-inner {
119
+ @apply text-muted-600 dark:text-muted-200;
120
+ @apply bg-white dark:bg-muted-800;
121
+ @apply border border-muted-300 dark:border-muted-700;
122
+ @apply placeholder:text-muted-300 dark:placeholder:text-muted-500;
123
+ }
124
+
125
+ .nui-input-file-addon {
126
+ @apply bg-muted-50 dark:bg-muted-800;
127
+ @apply text-muted-400 dark:text-muted-400;
128
+ @apply border-e border-muted-300 dark:border-muted-700;
129
+ }
130
+ }
131
+ @utility nui-input-default-contrast {
132
+ .nui-input-file-inner {
133
+ @apply text-muted-600 dark:text-muted-200;
134
+ @apply bg-white dark:bg-muted-950;
135
+ @apply border border-muted-300 dark:border-muted-800;
136
+ @apply placeholder:text-muted-300 dark:placeholder:text-muted-600;
137
+ }
138
+
139
+ .nui-input-file-addon {
140
+ @apply bg-muted-50 dark:bg-muted-950;
141
+ @apply text-muted-400 dark:text-muted-400;
142
+ @apply border-e border border-muted-300 dark:border-muted-800;
143
+ }
144
+ }
145
+ @utility nui-input-file-color-focus {
146
+ .nui-input-file-inner:focus {
147
+ @apply !border-primary-500 dark:!border-primary-500;
148
+ }
149
+ }
150
+ @utility nui-input-file-loading {
151
+ .nui-input-file-inner {
152
+ @apply text-transparent placeholder:text-transparent;
153
+ }
154
+ }
155
+ @utility nui-input-file-error {
156
+ .nui-input-file-inner {
157
+ @apply border-danger-500 dark:border-danger-500;
158
+ }
159
+ }
160
+ @utility nui-input-rounded-sm {
161
+ .nui-input-file-inner {
162
+ @apply rounded-md;
163
+ }
164
+ }
165
+ @utility nui-input-rounded-md {
166
+ .nui-input-file-inner {
167
+ @apply rounded-lg;
168
+ }
169
+ }
170
+ @utility nui-input-rounded-lg {
171
+ .nui-input-file-inner {
172
+ @apply rounded-xl;
173
+ }
174
+ }
175
+ @utility nui-input-rounded-full {
176
+ .nui-input-file-inner {
177
+ @apply rounded-full;
178
+ }
179
+ }
180
+ @utility nui-input-sm {
181
+ @apply text-xs leading-4;
182
+
183
+ .nui-input-file-inner {
184
+ @apply h-8 py-2 pe-3;
185
+ }
186
+
187
+ .nui-input-file-addon {
188
+ @apply h-8 px-2;
189
+ }
190
+
191
+ .nui-input-file-icon {
192
+ @apply w-3 h-3;
193
+ }
194
+
195
+ .nui-input-file-placeload {
196
+ @apply top-2.5;
197
+ }
198
+ }
199
+ @utility nui-input-md {
200
+ @apply text-[0.825rem] leading-5;
201
+
202
+ .nui-input-file-inner {
203
+ @apply h-10 pe-4;
204
+ }
205
+
206
+ .nui-input-file-addon {
207
+ @apply h-10 px-3;
208
+ }
209
+
210
+ .nui-input-file-icon {
211
+ @apply w-4 h-4;
212
+ }
213
+
214
+ .nui-input-file-placeload {
215
+ @apply top-3.5;
216
+ }
217
+ }
218
+ @utility nui-input-lg {
219
+ @apply text-sm leading-5;
220
+
221
+ .nui-input-file-inner {
222
+ @apply h-12 pe-4;
223
+ }
224
+
225
+ .nui-input-file-addon {
226
+ @apply h-12 px-4;
227
+ }
228
+
229
+ .nui-input-file-icon {
230
+ @apply w-5 h-5;
231
+ }
232
+
233
+ .nui-input-file-placeload {
234
+ @apply top-[1.2rem];
235
+ }
236
+ }
237
+ @utility nui-input-xl {
238
+ @apply text-sm leading-5;
239
+
240
+ .nui-input-file-inner {
241
+ @apply h-14 pe-4;
242
+ }
243
+
244
+ .nui-input-file-addon {
245
+ @apply h-14 px-5;
246
+ }
247
+
248
+ .nui-input-file-icon {
249
+ @apply w-6 h-6;
250
+ }
251
+
252
+ .nui-input-file-placeload {
253
+ @apply top-[1.4rem];
254
+ }
255
+ }