@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/textarea.css
CHANGED
@@ -1,26 +1,25 @@
|
|
1
|
-
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
1
|
/* @utility nui-textarea */
|
3
2
|
|
4
3
|
@utility nui-textarea-wrapper {
|
5
4
|
@apply relative;
|
6
5
|
|
7
|
-
.nui-textarea-label, .nui-label-float {
|
6
|
+
.nui-textarea-label, .nui-textarea-label-float-label {
|
8
7
|
@apply nui-label;
|
9
8
|
}
|
10
9
|
|
11
10
|
&:not(.nui-textarea-loading) {
|
12
|
-
.nui-textarea:placeholder-shown ~ .nui-label-float {
|
11
|
+
.nui-textarea:placeholder-shown ~ .nui-textarea-label-float-label {
|
13
12
|
@apply text-muted-300 dark:text-muted-600;
|
14
13
|
}
|
15
14
|
}
|
16
15
|
|
17
|
-
&:not(.nui-has-addon) {
|
16
|
+
&:not(.nui-textarea-has-addon) {
|
18
17
|
.nui-textarea {
|
19
18
|
@apply p-2;
|
20
19
|
}
|
21
20
|
}
|
22
21
|
}
|
23
|
-
@utility nui-label-float {
|
22
|
+
@utility nui-textarea-label-float-label {
|
24
23
|
@apply h-5 absolute inline-flex items-center select-none pointer-events-none;
|
25
24
|
@apply font-sans text-primary-500 leading-none;
|
26
25
|
@apply transition-all duration-300;
|
@@ -31,7 +30,7 @@
|
|
31
30
|
@utility nui-textarea {
|
32
31
|
@apply nui-focus w-full enabled:cursor-text cursor-not-allowed;
|
33
32
|
|
34
|
-
&:focus-visible ~ .nui-label-float {
|
33
|
+
&:focus-visible ~ .nui-textarea-label-float-label {
|
35
34
|
@apply !text-primary-500 dark:!text-primary-500;
|
36
35
|
}
|
37
36
|
|
@@ -40,10 +39,10 @@
|
|
40
39
|
@apply transition-colors duration-300;
|
41
40
|
}
|
42
41
|
}
|
43
|
-
@utility nui-textarea-placeload {
|
42
|
+
@utility nui-textarea-placeload-wrapper {
|
44
43
|
@apply absolute start-0 top-4 flex h-full w-full flex-col space-y-2 px-3;
|
45
44
|
|
46
|
-
.nui-placeload {
|
45
|
+
.nui-textarea-placeload {
|
47
46
|
@apply h-3 w-full rounded;
|
48
47
|
|
49
48
|
&:first-child {
|
@@ -127,7 +126,7 @@
|
|
127
126
|
@apply !text-transparent placeholder:!text-transparent dark:placeholder:!text-transparent;
|
128
127
|
}
|
129
128
|
|
130
|
-
.nui-textarea:placeholder-shown ~ .nui-label-float {
|
129
|
+
.nui-textarea:placeholder-shown ~ .nui-textarea-label-float {
|
131
130
|
@apply text-transparent;
|
132
131
|
}
|
133
132
|
}
|
@@ -147,27 +146,33 @@
|
|
147
146
|
}
|
148
147
|
}
|
149
148
|
@utility nui-textarea-sm {
|
150
|
-
|
149
|
+
.nui-textarea {
|
150
|
+
@apply min-h-[2rem] text-xs;
|
151
|
+
}
|
151
152
|
|
152
|
-
.nui-textarea-label {
|
153
|
+
.nui-textarea-label, .nui-textarea-label-float-label {
|
153
154
|
@apply pb-1 text-xs;
|
154
155
|
}
|
155
156
|
}
|
156
157
|
@utility nui-textarea-md {
|
157
|
-
|
158
|
+
.nui-textarea {
|
159
|
+
@apply min-h-[2.5rem] text-sm;
|
160
|
+
}
|
158
161
|
|
159
|
-
.nui-textarea-label {
|
162
|
+
.nui-textarea-label, .nui-textarea-label-float-label {
|
160
163
|
@apply pb-1 text-sm;
|
161
164
|
}
|
162
165
|
}
|
163
166
|
@utility nui-textarea-lg {
|
164
|
-
|
167
|
+
.nui-textarea {
|
168
|
+
@apply min-h-[3rem] text-base;
|
169
|
+
}
|
165
170
|
|
166
|
-
.nui-textarea-label {
|
167
|
-
@apply pb-1 text-
|
171
|
+
.nui-textarea-label, .nui-textarea-label-float-label {
|
172
|
+
@apply pb-1 text-base;
|
168
173
|
}
|
169
174
|
}
|
170
|
-
@utility nui-has-addon {
|
175
|
+
@utility nui-textarea-has-addon {
|
171
176
|
.nui-textarea {
|
172
177
|
@apply px-2 pb-14 pt-2;
|
173
178
|
}
|
@@ -188,41 +193,47 @@
|
|
188
193
|
}
|
189
194
|
}
|
190
195
|
@utility nui-textarea-label-float {
|
191
|
-
|
192
|
-
|
193
|
-
|
196
|
+
&.nui-textarea-sm {
|
197
|
+
.nui-textarea-label-float-label {
|
198
|
+
@apply start-3 -ms-3 -mt-5 text-xs;
|
199
|
+
}
|
194
200
|
|
195
|
-
|
196
|
-
|
197
|
-
|
201
|
+
.nui-textarea:focus-visible ~ .nui-textarea-label-float-label {
|
202
|
+
@apply !-ms-3 !-mt-5;
|
203
|
+
}
|
198
204
|
|
199
|
-
|
200
|
-
|
205
|
+
.nui-textarea:placeholder-shown ~ .nui-textarea-label-float-label {
|
206
|
+
@apply ms-0 mt-2;
|
207
|
+
}
|
201
208
|
}
|
202
209
|
}
|
203
210
|
@utility nui-textarea-label-float {
|
204
|
-
|
205
|
-
|
206
|
-
|
211
|
+
&.nui-textarea-md {
|
212
|
+
.nui-textarea-label-float-label {
|
213
|
+
@apply start-3 -ms-3 -mt-5 text-xs;
|
214
|
+
}
|
207
215
|
|
208
|
-
|
209
|
-
|
210
|
-
|
216
|
+
.nui-textarea:focus-visible ~ .nui-textarea-label-float-label {
|
217
|
+
@apply !-ms-3 !-mt-5 !text-xs;
|
218
|
+
}
|
211
219
|
|
212
|
-
|
213
|
-
|
220
|
+
.nui-textarea:placeholder-shown ~ .nui-textarea-label-float-label {
|
221
|
+
@apply ms-0 mt-2.5 text-[0.825rem];
|
222
|
+
}
|
214
223
|
}
|
215
224
|
}
|
216
225
|
@utility nui-textarea-label-float {
|
217
|
-
|
218
|
-
|
219
|
-
|
226
|
+
&.nui-textarea-lg {
|
227
|
+
.nui-textarea-label-float-label {
|
228
|
+
@apply start-3 -ms-3 -mt-5 text-xs;
|
229
|
+
}
|
220
230
|
|
221
|
-
|
222
|
-
|
223
|
-
|
231
|
+
.nui-textarea:focus-visible ~ .nui-textarea-label-float-label {
|
232
|
+
@apply !-ms-3 !-mt-5 !text-xs;
|
233
|
+
}
|
224
234
|
|
225
|
-
|
226
|
-
|
235
|
+
.nui-textarea:placeholder-shown ~ .nui-textarea-label-float-label {
|
236
|
+
@apply ms-0 mt-3 text-[0.825rem];
|
237
|
+
}
|
227
238
|
}
|
228
239
|
}
|
package/lib/css/theme-switch.css
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
1
|
/* @utility nui-theme-switch */
|
3
2
|
|
4
3
|
@utility nui-theme-switch {
|
@@ -9,19 +8,19 @@
|
|
9
8
|
@apply ms-[45%] rotate-[360deg];
|
10
9
|
}
|
11
10
|
|
12
|
-
.nui-theme-switch-input:not(:checked) ~ .nui-theme-switch-inner .nui-sun {
|
11
|
+
.nui-theme-switch-input:not(:checked) ~ .nui-theme-switch-inner .nui-theme-switch-sun {
|
13
12
|
@apply block;
|
14
13
|
}
|
15
14
|
|
16
|
-
.nui-theme-switch-input:checked ~ .nui-theme-switch-inner .nui-sun {
|
15
|
+
.nui-theme-switch-input:checked ~ .nui-theme-switch-inner .nui-theme-switch-sun {
|
17
16
|
@apply hidden;
|
18
17
|
}
|
19
18
|
|
20
|
-
.nui-theme-switch-input:not(:checked) ~ .nui-theme-switch-inner .nui-moon {
|
19
|
+
.nui-theme-switch-input:not(:checked) ~ .nui-theme-switch-inner .nui-theme-switch-moon {
|
21
20
|
@apply hidden;
|
22
21
|
}
|
23
22
|
|
24
|
-
.nui-theme-switch-input:checked ~ .nui-theme-switch-inner .nui-moon {
|
23
|
+
.nui-theme-switch-input:checked ~ .nui-theme-switch-inner .nui-theme-switch-moon {
|
25
24
|
@apply block;
|
26
25
|
}
|
27
26
|
|
@@ -44,13 +43,13 @@
|
|
44
43
|
@apply border border-muted-200 dark:border-muted-800;
|
45
44
|
@apply transition-all duration-300;
|
46
45
|
}
|
47
|
-
@utility nui-sun {
|
46
|
+
@utility nui-theme-switch-sun {
|
48
47
|
@apply pointer-events-none;
|
49
48
|
@apply text-yellow-400 dark:text-yellow-400;
|
50
49
|
@apply h-6 w-6;
|
51
50
|
@apply transition-all duration-300;
|
52
51
|
}
|
53
|
-
@utility nui-moon {
|
52
|
+
@utility nui-theme-switch-moon {
|
54
53
|
@apply pointer-events-none;
|
55
54
|
@apply text-yellow-400 dark:text-yellow-400;
|
56
55
|
@apply h-6 w-6;
|
package/lib/css/theme-toggle.css
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
1
|
/* @utility nui-theme-toggle */
|
3
2
|
|
4
3
|
@utility nui-theme-toggle {
|
@@ -7,26 +6,26 @@
|
|
7
6
|
@apply focus-visible:outline-2 ring-2 ring-transparent ring-offset-muted-200 dark:ring-offset-muted-900;
|
8
7
|
@apply transition-all duration-300;
|
9
8
|
|
10
|
-
.nui-theme-toggle-input:not(:checked) ~ .nui-theme-toggle-inner .nui-sun {
|
9
|
+
.nui-theme-toggle-input:not(:checked) ~ .nui-theme-toggle-inner .nui-theme-toggle-sun {
|
11
10
|
@apply -translate-y-1/2 opacity-100;
|
12
11
|
}
|
13
12
|
|
14
|
-
.nui-theme-toggle-input:checked ~ .nui-theme-toggle-inner .nui-sun {
|
13
|
+
.nui-theme-toggle-input:checked ~ .nui-theme-toggle-inner .nui-theme-toggle-sun {
|
15
14
|
@apply translate-y-[-150%] opacity-0;
|
16
15
|
}
|
17
16
|
|
18
|
-
.nui-theme-toggle-input:not(:checked) ~ .nui-theme-toggle-inner .nui-moon {
|
17
|
+
.nui-theme-toggle-input:not(:checked) ~ .nui-theme-toggle-inner .nui-theme-toggle-moon {
|
19
18
|
@apply translate-y-[-150%] opacity-0;
|
20
19
|
}
|
21
20
|
|
22
|
-
.nui-theme-toggle-input:checked ~ .nui-theme-toggle-inner .nui-moon {
|
21
|
+
.nui-theme-toggle-input:checked ~ .nui-theme-toggle-inner .nui-theme-toggle-moon {
|
23
22
|
@apply -translate-y-1/2 opacity-100;
|
24
23
|
}
|
25
24
|
|
26
25
|
&:not(nui-theme-toggle-inverted) {
|
27
26
|
@apply ring-offset-muted-500 dark:ring-offset-muted-900;
|
28
27
|
|
29
|
-
.nui-toggle-inner {
|
28
|
+
.nui-theme-toggle-inner {
|
30
29
|
@apply border border-white dark:border-muted-800;
|
31
30
|
@apply bg-white dark:bg-muted-800;
|
32
31
|
}
|
@@ -41,13 +40,13 @@
|
|
41
40
|
@utility nui-theme-toggle-input {
|
42
41
|
@apply absolute start-0 top-0 z-[2] h-full w-full cursor-pointer opacity-0;
|
43
42
|
}
|
44
|
-
@utility nui-sun {
|
43
|
+
@utility nui-theme-toggle-sun {
|
45
44
|
@apply pointer-events-none absolute start-1/2 top-1/2 block -translate-y-1/2 translate-x-[-50%] rtl:translate-x-[50%];
|
46
45
|
@apply h-5 w-5;
|
47
46
|
@apply text-yellow-400 dark:text-yellow-400;
|
48
47
|
@apply transition-all duration-300;
|
49
48
|
}
|
50
|
-
@utility nui-moon {
|
49
|
+
@utility nui-theme-toggle-moon {
|
51
50
|
@apply pointer-events-none absolute start-1/2 top-1/2 block translate-x-[-50%] rtl:translate-x-[45%];
|
52
51
|
@apply h-5 w-5;
|
53
52
|
@apply text-yellow-400 dark:text-yellow-400;
|
@@ -56,7 +55,7 @@
|
|
56
55
|
@utility nui-theme-toggle-inverted {
|
57
56
|
@apply ring-offset-muted-500 dark:ring-offset-muted-400;
|
58
57
|
|
59
|
-
.nui-toggle-inner {
|
58
|
+
.nui-theme-toggle-inner {
|
60
59
|
@apply !bg-primary-700 dark:!bg-primary-700;
|
61
60
|
}
|
62
61
|
}
|
package/lib/css/toast.css
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
1
|
/* @utility nui-toast */
|
3
2
|
|
4
3
|
@utility nui-toast {
|
@@ -8,7 +7,7 @@
|
|
8
7
|
@apply flex items-center grow gap-2 px-4 py-3;
|
9
8
|
}
|
10
9
|
@utility nui-toast-title {
|
11
|
-
@apply nui-heading nui-heading-sm nui-weight-medium;
|
10
|
+
@apply nui-heading nui-heading-sm nui-heading-weight-medium;
|
12
11
|
@apply text-muted-800 dark:text-muted-100;
|
13
12
|
}
|
14
13
|
@utility nui-toast-subtitle {
|
package/lib/css/tooltip.css
CHANGED
package/lib/index.css
CHANGED
package/lib/theme.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
@theme {
|
2
|
-
/* --font-
|
3
|
-
/* --font-
|
4
|
-
--font-
|
5
|
-
--font-
|
2
|
+
/* --font-sans: 'Titillium Web', sans-serif; */
|
3
|
+
/* --font-mono: 'Titillium Web', sans-serif; */
|
4
|
+
--font-alt: var(--font-sans);
|
5
|
+
--font-heading: var(--font-sans);
|
6
6
|
|
7
7
|
/** Colors */
|
8
8
|
--color-muted-50: var(--color-gray-50);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@shuriken-ui/tailwind",
|
3
|
-
"version": "4.0.0-alpha.
|
3
|
+
"version": "4.0.0-alpha.6",
|
4
4
|
"license": "MIT",
|
5
5
|
"author": "Css Ninja <hello@cssninja.io> (https://cssninja.io)",
|
6
6
|
"repository": {
|
@@ -35,6 +35,6 @@
|
|
35
35
|
],
|
36
36
|
"dependencies": {
|
37
37
|
"@tailwindcss/typography": "^0.5.15",
|
38
|
-
"tailwindcss": "4.0.0-beta.
|
38
|
+
"tailwindcss": "4.0.0-beta.6"
|
39
39
|
}
|
40
40
|
}
|