@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.
- 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,224 @@
|
|
1
|
+
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
|
+
/* @utility nui-input-file */
|
3
|
+
|
4
|
+
@utility nui-input-file {
|
5
|
+
@apply relative block nui-focus;
|
6
|
+
}
|
7
|
+
@utility nui-input-file-drop {
|
8
|
+
@apply relative h-64 flex justify-center items-center;
|
9
|
+
@apply bg-white dark:bg-muted-700;
|
10
|
+
@apply border-2 border-dashed border-muted-200 dark:border-muted-200;
|
11
|
+
@apply hover:border-muted-400 dark:hover:border-muted-400;
|
12
|
+
@apply transition-colors duration-300;
|
13
|
+
|
14
|
+
.nui-drop-area-inner {
|
15
|
+
@apply absolute z-10;
|
16
|
+
}
|
17
|
+
|
18
|
+
.nui-drop-zone {
|
19
|
+
@apply flex flex-col items-center font-sans text-sm;
|
20
|
+
}
|
21
|
+
|
22
|
+
.nui-drop-zone-icon {
|
23
|
+
@apply w-10 h-10 mb-2;
|
24
|
+
@apply transition-colors duration-300;
|
25
|
+
}
|
26
|
+
|
27
|
+
.nui-drop-zone-text {
|
28
|
+
@apply block font-sans font-normal;
|
29
|
+
}
|
30
|
+
|
31
|
+
.nui-drop-zone-separator {
|
32
|
+
@apply block font-sans font-semibold leading-none py-1;
|
33
|
+
}
|
34
|
+
|
35
|
+
.nui-drop-zone-input {
|
36
|
+
@apply absolute top-0 left-0 h-full w-full opacity-0 file:cursor-pointer z-20;
|
37
|
+
}
|
38
|
+
|
39
|
+
&.nui-input-file-primary {
|
40
|
+
.nui-drop-zone-icon {
|
41
|
+
@apply text-muted-400 dark:text-muted-400;
|
42
|
+
}
|
43
|
+
|
44
|
+
.nui-drop-zone-text {
|
45
|
+
@apply text-muted-400 dark:text-muted-400;
|
46
|
+
}
|
47
|
+
|
48
|
+
.nui-drop-zone-separator {
|
49
|
+
@apply text-muted-400 dark:text-muted-400;
|
50
|
+
}
|
51
|
+
|
52
|
+
&:hover {
|
53
|
+
.nui-drop-zone-icon {
|
54
|
+
@apply text-primary-500 dark:text-primary-500;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
&.nui-input-file-dark {
|
60
|
+
.nui-drop-zone-icon {
|
61
|
+
@apply text-muted-400 dark:text-muted-400;
|
62
|
+
}
|
63
|
+
|
64
|
+
.nui-drop-zone-text {
|
65
|
+
@apply text-muted-400 dark:text-muted-400;
|
66
|
+
}
|
67
|
+
|
68
|
+
.nui-drop-zone-separator {
|
69
|
+
@apply text-muted-400 dark:text-muted-400;
|
70
|
+
}
|
71
|
+
|
72
|
+
&:hover {
|
73
|
+
.nui-drop-zone-icon {
|
74
|
+
@apply text-muted-900 dark:text-muted-100;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
&.nui-input-file-black {
|
80
|
+
.nui-drop-zone-icon {
|
81
|
+
@apply text-muted-400 dark:text-muted-400;
|
82
|
+
}
|
83
|
+
|
84
|
+
.nui-drop-zone-text {
|
85
|
+
@apply text-muted-400 dark:text-muted-400;
|
86
|
+
}
|
87
|
+
|
88
|
+
.nui-drop-zone-separator {
|
89
|
+
@apply text-muted-400 dark:text-muted-400;
|
90
|
+
}
|
91
|
+
|
92
|
+
&:hover {
|
93
|
+
.nui-drop-zone-icon {
|
94
|
+
@apply text-black dark:text-white;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
@utility nui-input-file-button {
|
100
|
+
@apply w-64 max-w-full flex flex-col items-center px-4 py-8 tracking-wide cursor-pointer;
|
101
|
+
@apply bg-white dark:bg-muted-700;
|
102
|
+
@apply transition-colors duration-300;
|
103
|
+
|
104
|
+
.nui-upload-button-icon {
|
105
|
+
@apply w-8 h-8;
|
106
|
+
}
|
107
|
+
|
108
|
+
.nui-upload-button-label {
|
109
|
+
@apply block mt-2 leading-normal;
|
110
|
+
@apply font-sans text-sm;
|
111
|
+
}
|
112
|
+
|
113
|
+
&.nui-input-file-primary {
|
114
|
+
@apply text-muted-400 dark:text-muted-400;
|
115
|
+
@apply hover:text-primary-500 dark:hover:text-primary-500;
|
116
|
+
@apply border-2 border-muted-200 dark:border-muted-600;
|
117
|
+
@apply hover:border-primary-500 dark:hover:border-primary-500;
|
118
|
+
}
|
119
|
+
|
120
|
+
&.nui-input-file-dark {
|
121
|
+
@apply text-muted-400 dark:text-muted-400;
|
122
|
+
@apply hover:text-muted-900 dark:hover:text-muted-100;
|
123
|
+
@apply border-2 border-muted-200 dark:border-muted-600;
|
124
|
+
@apply hover:border-muted-900 dark:hover:border-muted-100;
|
125
|
+
}
|
126
|
+
|
127
|
+
&.nui-input-file-black {
|
128
|
+
@apply text-muted-400 dark:text-muted-400;
|
129
|
+
@apply hover:text-black dark:hover:text-white;
|
130
|
+
@apply border-2 border-muted-200 dark:border-muted-600;
|
131
|
+
@apply hover:border-black dark:hover:border-white;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
@utility nui-input-file-combo {
|
135
|
+
@apply block font-sans p-1;
|
136
|
+
@apply bg-white dark:bg-muted-700;
|
137
|
+
@apply border border-muted-200 dark:border-muted-600;
|
138
|
+
|
139
|
+
.nui-combo-label-text {
|
140
|
+
@apply font-sans sr-only text-sm;
|
141
|
+
}
|
142
|
+
|
143
|
+
.nui-combo-input {
|
144
|
+
@apply outline-none block w-full file:me-4 file:py-2 file:px-4 file:border-0 file:cursor-pointer file:transition-colors file:duration-300;
|
145
|
+
@apply text-sm text-muted-500 dark:text-muted-400;
|
146
|
+
@apply file:text-sm;
|
147
|
+
}
|
148
|
+
|
149
|
+
&.nui-input-file-primary {
|
150
|
+
.nui-combo-input {
|
151
|
+
@apply file:bg-primary-500/10 dark:file:bg-primary-500/10;
|
152
|
+
@apply file:hover:bg-primary-500/20 dark:file:hover:bg-primary-500/20;
|
153
|
+
@apply file:text-primary-700 dark:file:text-primary-700;
|
154
|
+
}
|
155
|
+
}
|
156
|
+
|
157
|
+
&.nui-input-file-dark {
|
158
|
+
.nui-combo-input {
|
159
|
+
@apply file:bg-muted-900/10 dark:file:bg-muted-100/10;
|
160
|
+
@apply file:hover:bg-muted-900/20 dark:file:hover:bg-muted-100/20;
|
161
|
+
@apply file:text-muted-900 dark:file:text-muted-100;
|
162
|
+
}
|
163
|
+
}
|
164
|
+
|
165
|
+
&.nui-input-file-black {
|
166
|
+
.nui-combo-input {
|
167
|
+
@apply file:bg-black/10 dark:file:bg-white/10;
|
168
|
+
@apply file:hover:bg-black/20 dark:file:hover:bg-white/20;
|
169
|
+
@apply file:text-black dark:file:text-white;
|
170
|
+
}
|
171
|
+
}
|
172
|
+
}
|
173
|
+
@utility nui-input-file-rounded-sm {
|
174
|
+
&.nui-input-file-drop, &.nui-input-file-button {
|
175
|
+
@apply rounded-md;
|
176
|
+
}
|
177
|
+
|
178
|
+
&.nui-input-file-combo {
|
179
|
+
@apply rounded-md;
|
180
|
+
}
|
181
|
+
|
182
|
+
&.nui-input-file-combo .nui-combo-input {
|
183
|
+
@apply file:rounded-md;
|
184
|
+
}
|
185
|
+
}
|
186
|
+
@utility nui-input-file-rounded-md {
|
187
|
+
&.nui-input-file-drop, &.nui-input-file-button {
|
188
|
+
@apply rounded-lg;
|
189
|
+
}
|
190
|
+
|
191
|
+
&.nui-input-file-combo {
|
192
|
+
@apply rounded-lg;
|
193
|
+
}
|
194
|
+
|
195
|
+
&.nui-input-file-combo .nui-combo-input {
|
196
|
+
@apply file:rounded-lg;
|
197
|
+
}
|
198
|
+
}
|
199
|
+
@utility nui-input-file-rounded-lg {
|
200
|
+
&.nui-input-file-drop, &.nui-input-file-button {
|
201
|
+
@apply rounded-xl;
|
202
|
+
}
|
203
|
+
|
204
|
+
&.nui-input-file-combo {
|
205
|
+
@apply rounded-xl;
|
206
|
+
}
|
207
|
+
|
208
|
+
&.nui-input-file-combo .nui-combo-input {
|
209
|
+
@apply file:rounded-xl;
|
210
|
+
}
|
211
|
+
}
|
212
|
+
@utility nui-input-file-rounded-full {
|
213
|
+
&.nui-input-file-drop, &.nui-input-file-button {
|
214
|
+
@apply rounded-full;
|
215
|
+
}
|
216
|
+
|
217
|
+
&.nui-input-file-combo {
|
218
|
+
@apply rounded-full;
|
219
|
+
}
|
220
|
+
|
221
|
+
&.nui-input-file-combo .nui-combo-input {
|
222
|
+
@apply file:rounded-full;
|
223
|
+
}
|
224
|
+
}
|
@@ -0,0 +1,469 @@
|
|
1
|
+
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
|
+
/* @utility nui-input-number */
|
3
|
+
|
4
|
+
@utility nui-input-number-wrapper {
|
5
|
+
@apply relative;
|
6
|
+
|
7
|
+
.nui-input-number-label, .nui-label-float {
|
8
|
+
@apply nui-label;
|
9
|
+
}
|
10
|
+
|
11
|
+
.nui-input-number-buttons > button {
|
12
|
+
@apply outline-none flex items-center justify-center;
|
13
|
+
@apply last:border-s-0;
|
14
|
+
@apply text-muted-400 enabled:hover:text-muted-600 dark:enabled:hover:text-muted-100;
|
15
|
+
@apply enabled:focus:text-muted-600 dark:enabled:focus:text-muted-100;
|
16
|
+
@apply transition-colors duration-300;
|
17
|
+
@apply disabled:cursor-not-allowed;
|
18
|
+
}
|
19
|
+
|
20
|
+
.nui-input-number-buttons svg {
|
21
|
+
@apply h-4 w-4;
|
22
|
+
}
|
23
|
+
|
24
|
+
.nui-input-number-buttons button {
|
25
|
+
@apply bg-white dark:bg-muted-800 enabled:hover:bg-white dark:enabled:hover:bg-muted-900;
|
26
|
+
@apply border border-muted-200 dark:border-muted-700 enabled:focus:bg-white dark:enabled:focus:bg-muted-900;
|
27
|
+
}
|
28
|
+
|
29
|
+
&:not(.nui-input-number-loading) {
|
30
|
+
.nui-input-number:placeholder-shown ~ .nui-label-float {
|
31
|
+
@apply text-muted-300 dark:text-muted-600;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
&:not(.nui-has-icon).nui-input-number-sm {
|
36
|
+
.nui-input-number {
|
37
|
+
@apply h-8 py-1 text-xs leading-4 ps-2 pe-[3.75rem];
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
&:not(.nui-has-icon).nui-input-number-md {
|
42
|
+
.nui-input-number {
|
43
|
+
@apply h-10 py-2 text-sm leading-5 ps-3 pe-[4.75rem];
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
&:not(.nui-has-icon).nui-input-number-lg {
|
48
|
+
.nui-input-number {
|
49
|
+
@apply h-12 py-2 text-sm leading-5 ps-4 pe-24;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
&:not(.nui-has-icon).nui-input-number-xl {
|
54
|
+
.nui-input-number {
|
55
|
+
@apply h-14 py-2 text-base leading-5 ps-4 pe-24;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
&.nui-input-number-label-float:not(.nui-has-icon).nui-input-number-sm {
|
60
|
+
.nui-label-float {
|
61
|
+
@apply start-3 -ms-3 -mt-7 text-xs;
|
62
|
+
}
|
63
|
+
|
64
|
+
.nui-input-number:focus-visible ~ .nui-label-float {
|
65
|
+
@apply !-ms-3 !-mt-7;
|
66
|
+
}
|
67
|
+
|
68
|
+
.nui-input-number:placeholder-shown ~ .nui-label-float {
|
69
|
+
@apply ms-0 mt-0;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
&.nui-input-number-label-float:not(.nui-has-icon).nui-input-number-md {
|
74
|
+
.nui-label-float {
|
75
|
+
@apply start-3 -ms-3 -mt-8 text-xs;
|
76
|
+
}
|
77
|
+
|
78
|
+
.nui-input-number:focus-visible ~ .nui-label-float {
|
79
|
+
@apply !-ms-3 !-mt-8 !text-xs;
|
80
|
+
}
|
81
|
+
|
82
|
+
.nui-input-number:placeholder-shown ~ .nui-label-float {
|
83
|
+
@apply ms-0 mt-0 text-[0.825rem];
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
&.nui-input-number-label-float:not(.nui-has-icon).nui-input-number-lg {
|
88
|
+
.nui-label-float {
|
89
|
+
@apply start-3 -ms-3 -mt-9 text-xs;
|
90
|
+
}
|
91
|
+
|
92
|
+
.nui-input-number:focus-visible ~ .nui-label-float {
|
93
|
+
@apply !-ms-3 !-mt-9 !text-xs;
|
94
|
+
}
|
95
|
+
|
96
|
+
.nui-input-number:placeholder-shown ~ .nui-label-float {
|
97
|
+
@apply ms-0 mt-0 text-[0.825rem];
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
&.nui-input-number-label-float:not(.nui-has-icon).nui-input-number-xl {
|
102
|
+
.nui-label-float {
|
103
|
+
@apply start-3 -ms-3 -mt-10 text-xs;
|
104
|
+
}
|
105
|
+
|
106
|
+
.nui-input-number:focus-visible ~ .nui-label-float {
|
107
|
+
@apply !-ms-3 !-mt-10 !text-xs;
|
108
|
+
}
|
109
|
+
|
110
|
+
.nui-input-number:placeholder-shown ~ .nui-label-float {
|
111
|
+
@apply ms-0 mt-0 text-[0.825rem];
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
@utility nui-label-float {
|
116
|
+
@apply h-5 absolute inline-flex items-center select-none pointer-events-none;
|
117
|
+
@apply font-sans text-primary-500 leading-none;
|
118
|
+
@apply transition-all duration-300;
|
119
|
+
}
|
120
|
+
@utility nui-input-number-outer {
|
121
|
+
@apply nui-focus relative;
|
122
|
+
}
|
123
|
+
@utility nui-input-number-icon {
|
124
|
+
@apply absolute start-0 top-0 z-10 flex items-center justify-center;
|
125
|
+
@apply text-muted-400 dark:text-muted-400;
|
126
|
+
@apply transition-colors duration-300;
|
127
|
+
}
|
128
|
+
@utility nui-input-number-buttons {
|
129
|
+
@apply absolute top-1 end-1 flex z-10;
|
130
|
+
}
|
131
|
+
@utility nui-input-number {
|
132
|
+
@apply nui-focus w-full font-sans disabled:cursor-not-allowed disabled:opacity-75;
|
133
|
+
@apply transition-all duration-300;
|
134
|
+
|
135
|
+
&:focus-visible ~ .nui-label-float {
|
136
|
+
@apply !text-primary-500 dark:!text-primary-500;
|
137
|
+
}
|
138
|
+
|
139
|
+
&:focus-visible ~ .nui-input-number-icon {
|
140
|
+
@apply !text-primary-500 dark:!text-primary-500;
|
141
|
+
}
|
142
|
+
|
143
|
+
&:disabled ~ .nui-input-number-icon {
|
144
|
+
@apply cursor-not-allowed opacity-75;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
@utility nui-input-number-placeload {
|
148
|
+
@apply absolute start-0 top-0 flex w-full items-center px-4;
|
149
|
+
|
150
|
+
.nui-placeload {
|
151
|
+
@apply h-3 w-full max-w-[50%] rounded;
|
152
|
+
}
|
153
|
+
}
|
154
|
+
@utility nui-input-number-action {
|
155
|
+
@apply absolute end-0 top-0 flex items-center justify-center;
|
156
|
+
@apply text-muted-400 dark:text-muted-400;
|
157
|
+
@apply transition-colors duration-300;
|
158
|
+
}
|
159
|
+
@utility nui-input-number-rounded-sm {
|
160
|
+
.nui-input-number, .nui-input-number-outer {
|
161
|
+
@apply rounded-md;
|
162
|
+
}
|
163
|
+
|
164
|
+
.nui-input-number-buttons button {
|
165
|
+
@apply first:rounded-s-md;
|
166
|
+
@apply last:rounded-e-md;
|
167
|
+
}
|
168
|
+
}
|
169
|
+
@utility nui-input-number-rounded-md {
|
170
|
+
.nui-input-number, .nui-input-number-outer {
|
171
|
+
@apply rounded-lg;
|
172
|
+
}
|
173
|
+
|
174
|
+
.nui-input-number-buttons button {
|
175
|
+
@apply first:rounded-s-lg;
|
176
|
+
@apply last:rounded-e-lg;
|
177
|
+
}
|
178
|
+
}
|
179
|
+
@utility nui-input-number-rounded-lg {
|
180
|
+
.nui-input-number, .nui-input-number-outer {
|
181
|
+
@apply rounded-xl;
|
182
|
+
}
|
183
|
+
|
184
|
+
.nui-input-number-buttons button {
|
185
|
+
@apply first:rounded-s-xl;
|
186
|
+
@apply last:rounded-e-xl;
|
187
|
+
}
|
188
|
+
}
|
189
|
+
@utility nui-input-number-rounded-full {
|
190
|
+
.nui-input-number, .nui-input-number-outer {
|
191
|
+
@apply rounded-full;
|
192
|
+
}
|
193
|
+
|
194
|
+
.nui-input-number-buttons button {
|
195
|
+
@apply first:rounded-s-full;
|
196
|
+
@apply last:rounded-e-full;
|
197
|
+
}
|
198
|
+
}
|
199
|
+
@utility nui-input-number-sm {
|
200
|
+
.nui-input-number-label {
|
201
|
+
@apply pb-1 text-xs;
|
202
|
+
}
|
203
|
+
|
204
|
+
.nui-label-float {
|
205
|
+
@apply top-1.5;
|
206
|
+
}
|
207
|
+
|
208
|
+
.nui-input-number-icon, .nui-input-number-action {
|
209
|
+
@apply h-8 w-8;
|
210
|
+
|
211
|
+
.nui-input-number-icon-inner, .nui-input-number-action-inner {
|
212
|
+
@apply h-4 w-4;
|
213
|
+
}
|
214
|
+
}
|
215
|
+
|
216
|
+
.nui-input-number-placeload {
|
217
|
+
@apply h-8;
|
218
|
+
}
|
219
|
+
|
220
|
+
.nui-input-number-buttons button {
|
221
|
+
@apply h-6 w-6;
|
222
|
+
}
|
223
|
+
}
|
224
|
+
@utility nui-input-number-md {
|
225
|
+
.nui-input-number-label {
|
226
|
+
@apply pb-1 text-[0.825rem];
|
227
|
+
}
|
228
|
+
|
229
|
+
.nui-label-float {
|
230
|
+
@apply top-2.5;
|
231
|
+
}
|
232
|
+
|
233
|
+
.nui-input-number-icon, .nui-input-number-action {
|
234
|
+
@apply h-10 w-10;
|
235
|
+
|
236
|
+
.nui-input-number-icon-inner, .nui-input-number-action-inner {
|
237
|
+
@apply h-[1.15rem] w-[1.15rem];
|
238
|
+
}
|
239
|
+
}
|
240
|
+
|
241
|
+
.nui-input-number-placeload {
|
242
|
+
@apply h-10;
|
243
|
+
}
|
244
|
+
|
245
|
+
.nui-input-number-buttons button {
|
246
|
+
@apply h-8 w-8;
|
247
|
+
}
|
248
|
+
}
|
249
|
+
@utility nui-input-number-lg {
|
250
|
+
.nui-input-number-label {
|
251
|
+
@apply pb-1 text-sm;
|
252
|
+
}
|
253
|
+
|
254
|
+
.nui-label-float {
|
255
|
+
@apply top-3.5;
|
256
|
+
}
|
257
|
+
|
258
|
+
.nui-input-number-icon, .nui-input-number-action {
|
259
|
+
@apply h-12 w-12;
|
260
|
+
|
261
|
+
.nui-input-number-icon-inner, .nui-input-number-action-inner {
|
262
|
+
@apply h-5 w-5;
|
263
|
+
}
|
264
|
+
}
|
265
|
+
|
266
|
+
.nui-input-number-placeload {
|
267
|
+
@apply h-12;
|
268
|
+
}
|
269
|
+
|
270
|
+
.nui-input-number-buttons button {
|
271
|
+
@apply h-10 w-10;
|
272
|
+
}
|
273
|
+
}
|
274
|
+
@utility nui-input-number-xl {
|
275
|
+
.nui-input-number-label {
|
276
|
+
@apply pb-1 text-sm;
|
277
|
+
}
|
278
|
+
|
279
|
+
.nui-label-float {
|
280
|
+
@apply top-[1.1rem];
|
281
|
+
}
|
282
|
+
|
283
|
+
.nui-input-number-icon, .nui-input-number-action {
|
284
|
+
@apply h-14 w-14;
|
285
|
+
|
286
|
+
.nui-input-number-icon-inner, .nui-input-number-action-inner {
|
287
|
+
@apply h-5 w-5;
|
288
|
+
}
|
289
|
+
}
|
290
|
+
|
291
|
+
.nui-input-number-placeload {
|
292
|
+
@apply h-14;
|
293
|
+
}
|
294
|
+
|
295
|
+
.nui-input-number-buttons button {
|
296
|
+
@apply h-12 w-12;
|
297
|
+
}
|
298
|
+
}
|
299
|
+
@utility nui-input-number-default {
|
300
|
+
.nui-input-number {
|
301
|
+
@apply text-muted-600 dark:text-muted-200;
|
302
|
+
@apply placeholder:text-muted-300 dark:placeholder:text-muted-500;
|
303
|
+
@apply bg-white dark:bg-muted-900;
|
304
|
+
@apply border border-muted-300 dark:border-muted-700;
|
305
|
+
@apply hover:border-muted-300 dark:hover:border-muted-700;
|
306
|
+
}
|
307
|
+
|
308
|
+
.nui-input-number-buttons button {
|
309
|
+
@apply bg-white dark:bg-muted-800 enabled:hover:bg-muted-100 dark:enabled:hover:bg-muted-700;
|
310
|
+
@apply border border-muted-200 dark:border-muted-700 enabled:focus:bg-muted-100 dark:enabled:focus:bg-muted-800;
|
311
|
+
}
|
312
|
+
}
|
313
|
+
@utility nui-input-number-default-contrast {
|
314
|
+
.nui-input-number {
|
315
|
+
@apply text-muted-600 dark:text-muted-200;
|
316
|
+
@apply placeholder:text-muted-300 dark:placeholder:text-muted-600;
|
317
|
+
@apply bg-white dark:bg-muted-950;
|
318
|
+
@apply border border-muted-300 dark:border-muted-800;
|
319
|
+
@apply hover:border-muted-300 dark:hover:border-muted-800;
|
320
|
+
}
|
321
|
+
|
322
|
+
.nui-input-number-buttons button {
|
323
|
+
@apply bg-white dark:bg-muted-800 enabled:hover:bg-white dark:enabled:hover:bg-muted-900;
|
324
|
+
@apply border border-muted-200 dark:border-muted-700 enabled:focus:bg-white dark:enabled:focus:bg-muted-900;
|
325
|
+
}
|
326
|
+
}
|
327
|
+
@utility nui-input-number-muted {
|
328
|
+
.nui-input-number {
|
329
|
+
@apply text-muted-600 dark:text-muted-200;
|
330
|
+
@apply placeholder:text-muted-300 dark:placeholder:text-muted-500;
|
331
|
+
@apply bg-muted-100 dark:bg-muted-900;
|
332
|
+
@apply border border-muted-100 dark:border-muted-700;
|
333
|
+
@apply hover:border-muted-100 dark:hover:border-muted-700;
|
334
|
+
}
|
335
|
+
|
336
|
+
.nui-input-number-buttons button {
|
337
|
+
@apply bg-white dark:bg-muted-800 enabled:hover:bg-white dark:enabled:hover:bg-muted-800;
|
338
|
+
@apply border border-muted-200 dark:border-muted-700 enabled:focus:bg-white dark:enabled:focus:bg-muted-800;
|
339
|
+
}
|
340
|
+
}
|
341
|
+
@utility nui-input-number-muted-contrast {
|
342
|
+
.nui-input-number {
|
343
|
+
@apply text-muted-600 dark:text-muted-200;
|
344
|
+
@apply placeholder:text-muted-300 dark:placeholder:text-muted-600;
|
345
|
+
@apply bg-muted-100 dark:bg-muted-950;
|
346
|
+
@apply border border-muted-100 dark:border-muted-800;
|
347
|
+
@apply hover:border-muted-100 dark:hover:border-muted-800;
|
348
|
+
}
|
349
|
+
}
|
350
|
+
@utility nui-input-number-focus {
|
351
|
+
.nui-input-number {
|
352
|
+
@apply focus:!border-primary-500 dark:focus:!border-primary-500;
|
353
|
+
@apply focus:hover:!border-primary-500 dark:focus:hover:!border-primary-500;
|
354
|
+
}
|
355
|
+
}
|
356
|
+
@utility nui-input-number-loading {
|
357
|
+
.nui-input-number {
|
358
|
+
@apply !text-transparent placeholder:!text-transparent dark:placeholder:!text-transparent;
|
359
|
+
}
|
360
|
+
|
361
|
+
.nui-input-number:placeholder-shown ~ .nui-label-float {
|
362
|
+
@apply text-transparent;
|
363
|
+
}
|
364
|
+
|
365
|
+
.nui-input-number-icon {
|
366
|
+
@apply opacity-0;
|
367
|
+
}
|
368
|
+
}
|
369
|
+
@utility nui-input-number-label-float {
|
370
|
+
.nui-input-number {
|
371
|
+
@apply placeholder:text-transparent dark:placeholder:text-transparent;
|
372
|
+
}
|
373
|
+
}
|
374
|
+
@utility nui-input-number-error {
|
375
|
+
.nui-input-number {
|
376
|
+
@apply !border-danger-500 dark:!border-danger-500;
|
377
|
+
}
|
378
|
+
|
379
|
+
.nui-input-number-icon {
|
380
|
+
@apply !text-danger-500 dark:!text-danger-500;
|
381
|
+
}
|
382
|
+
}
|
383
|
+
@utility nui-has-icon {
|
384
|
+
.nui-input-number {
|
385
|
+
@apply h-8 py-1 text-xs leading-4 ps-8 pe-[3.75rem];
|
386
|
+
}
|
387
|
+
}
|
388
|
+
@utility nui-has-icon {
|
389
|
+
.nui-input-number {
|
390
|
+
@apply h-10 py-2 text-sm leading-5 ps-10 pe-[4.75rem];
|
391
|
+
}
|
392
|
+
}
|
393
|
+
@utility nui-has-icon {
|
394
|
+
.nui-input-number {
|
395
|
+
@apply h-12 py-2 text-sm leading-5 ps-11 pe-24;
|
396
|
+
}
|
397
|
+
}
|
398
|
+
@utility nui-has-icon {
|
399
|
+
.nui-input-number {
|
400
|
+
@apply h-14 py-2 text-base leading-5 ps-[3.25rem] pe-24;
|
401
|
+
}
|
402
|
+
}
|
403
|
+
@utility nui-has-action {
|
404
|
+
.nui-input-number {
|
405
|
+
@apply pe-8;
|
406
|
+
}
|
407
|
+
}
|
408
|
+
@utility nui-has-action {
|
409
|
+
.nui-input-number {
|
410
|
+
@apply pe-10;
|
411
|
+
}
|
412
|
+
}
|
413
|
+
@utility nui-has-action {
|
414
|
+
.nui-input-number {
|
415
|
+
@apply pe-12;
|
416
|
+
}
|
417
|
+
}
|
418
|
+
@utility nui-input-number-label-float {
|
419
|
+
.nui-label-float {
|
420
|
+
@apply start-8 -ms-8 -mt-7 text-xs;
|
421
|
+
}
|
422
|
+
|
423
|
+
.nui-input-number:focus-visible ~ .nui-label-float {
|
424
|
+
@apply !-ms-8 !-mt-7;
|
425
|
+
}
|
426
|
+
|
427
|
+
.nui-input-number:placeholder-shown ~ .nui-label-float {
|
428
|
+
@apply ms-0 mt-0;
|
429
|
+
}
|
430
|
+
}
|
431
|
+
@utility nui-input-number-label-float {
|
432
|
+
.nui-label-float {
|
433
|
+
@apply start-10 -ms-10 -mt-8 text-xs;
|
434
|
+
}
|
435
|
+
|
436
|
+
.nui-input-number:focus-visible ~ .nui-label-float {
|
437
|
+
@apply !-ms-10 !-mt-8 !text-xs;
|
438
|
+
}
|
439
|
+
|
440
|
+
.nui-input-number:placeholder-shown ~ .nui-label-float {
|
441
|
+
@apply ms-0 mt-0 text-[0.825rem];
|
442
|
+
}
|
443
|
+
}
|
444
|
+
@utility nui-input-number-label-float {
|
445
|
+
.nui-label-float {
|
446
|
+
@apply start-11 -ms-10 -mt-9 text-xs;
|
447
|
+
}
|
448
|
+
|
449
|
+
.nui-input-number:focus-visible ~ .nui-label-float {
|
450
|
+
@apply !-ms-10 !-mt-9 !text-xs;
|
451
|
+
}
|
452
|
+
|
453
|
+
.nui-input-number:placeholder-shown ~ .nui-label-float {
|
454
|
+
@apply ms-0 mt-0 text-[0.825rem];
|
455
|
+
}
|
456
|
+
}
|
457
|
+
@utility nui-input-number-label-float {
|
458
|
+
.nui-label-float {
|
459
|
+
@apply start-[3.25rem] -ms-[3.25rem] -mt-10 text-xs;
|
460
|
+
}
|
461
|
+
|
462
|
+
.nui-input-number:focus-visible ~ .nui-label-float {
|
463
|
+
@apply !-ms-[3.25rem] !-mt-10 !text-xs;
|
464
|
+
}
|
465
|
+
|
466
|
+
.nui-input-number:placeholder-shown ~ .nui-label-float {
|
467
|
+
@apply ms-0 mt-0 text-[0.825rem];
|
468
|
+
}
|
469
|
+
}
|