@duskmoon-dev/core 1.19.10 → 1.19.11
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 +1 -1
- package/dist/components/checkbox.css +1 -1
- package/dist/components/datepicker.css +1 -1
- package/dist/components/file-input.css +1 -1
- package/dist/components/form-group.css +1 -1
- package/dist/components/form.css +1 -1
- package/dist/components/index.css +138 -226
- package/dist/components/input.css +1 -1
- package/dist/components/otp-input.css +160 -2
- package/dist/components/radio.css +1 -1
- package/dist/components/select.css +1 -1
- package/dist/components/switch.css +1 -1
- package/dist/components/textarea.css +1 -1
- package/dist/components/toggle-switch.css +1 -1
- package/dist/components/toggle.css +1 -1
- package/dist/components/validator.css +1 -1
- package/dist/esm/components/checkbox.js +1 -1
- package/dist/esm/components/datepicker.js +1 -1
- package/dist/esm/components/file-input.js +1 -1
- package/dist/esm/components/form-group.js +1 -1
- package/dist/esm/components/form.js +1 -1
- package/dist/esm/components/input.js +1 -1
- package/dist/esm/components/otp-input.js +160 -2
- package/dist/esm/components/radio.js +1 -1
- package/dist/esm/components/select.js +1 -1
- package/dist/esm/components/switch.js +1 -1
- package/dist/esm/components/textarea.js +1 -1
- package/dist/esm/components/toggle-switch.js +1 -1
- package/dist/esm/components/toggle.js +1 -1
- package/dist/esm/components/validator.js +1 -1
- package/dist/index.css +138 -226
- package/dist/index.min.css +1 -1
- package/dist/standalone/duskmoonui-themes.css +1 -1
- package/dist/standalone/duskmoonui.css +140 -228
- package/dist/standalone/duskmoonui.js +4 -4
- package/dist/standalone/duskmoonui.mjs +4 -4
- package/package.json +1 -7
- package/dist/components/pin-input.css +0 -245
- package/dist/esm/components/pin-input.d.ts +0 -5
- package/dist/esm/components/pin-input.js +0 -254
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duskmoon-dev/core",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.11",
|
|
4
4
|
"description": "DuskMoonUI - Tailwind CSS v4 plugin with Material Design 3 color system and component styles",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.css",
|
|
@@ -425,12 +425,6 @@
|
|
|
425
425
|
"import": "./dist/esm/components/otp-input.js",
|
|
426
426
|
"default": "./dist/esm/components/otp-input.js"
|
|
427
427
|
},
|
|
428
|
-
"./components/pin-input": {
|
|
429
|
-
"types": "./dist/esm/components/pin-input.d.ts",
|
|
430
|
-
"style": "./dist/components/pin-input.css",
|
|
431
|
-
"import": "./dist/esm/components/pin-input.js",
|
|
432
|
-
"default": "./dist/esm/components/pin-input.js"
|
|
433
|
-
},
|
|
434
428
|
"./components/popover": {
|
|
435
429
|
"types": "./dist/esm/components/popover.d.ts",
|
|
436
430
|
"style": "./dist/components/popover.css",
|
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PIN Input Component Styles
|
|
3
|
-
* DuskMoonUI - Secure PIN/password entry input
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
@layer components {
|
|
7
|
-
/* Base PIN Container */
|
|
8
|
-
.pin-input {
|
|
9
|
-
display: inline-flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
gap: 0.5rem;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/* PIN Input Field */
|
|
15
|
-
.pin-input-field {
|
|
16
|
-
width: 3rem;
|
|
17
|
-
height: 3.5rem;
|
|
18
|
-
padding: 0;
|
|
19
|
-
font-size: 1.5rem;
|
|
20
|
-
font-weight: 600;
|
|
21
|
-
text-align: center;
|
|
22
|
-
color: var(--color-on-surface);
|
|
23
|
-
background-color: var(--color-surface);
|
|
24
|
-
border: 2px solid currentColor;
|
|
25
|
-
border-radius: var(--radius-sm);
|
|
26
|
-
outline: none;
|
|
27
|
-
transition: border-color 150ms ease-in-out, box-shadow 150ms ease-in-out;
|
|
28
|
-
caret-color: var(--color-primary);
|
|
29
|
-
-webkit-text-security: disc;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.pin-input-field::placeholder {
|
|
33
|
-
color: var(--color-on-surface-variant);
|
|
34
|
-
opacity: 0.3;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.pin-input-field:hover:not(:disabled):not(:focus) {
|
|
38
|
-
background-color: var(--color-surface-container);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.pin-input-field:focus {
|
|
42
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.pin-input-field:disabled {
|
|
46
|
-
opacity: 0.38;
|
|
47
|
-
cursor: not-allowed;
|
|
48
|
-
background-color: var(--color-surface-container);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/* Show PIN (toggle visibility) */
|
|
52
|
-
.pin-input-visible .pin-input-field {
|
|
53
|
-
-webkit-text-security: none;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/* Size Variants */
|
|
57
|
-
.pin-input-sm .pin-input-field {
|
|
58
|
-
width: 2.5rem;
|
|
59
|
-
height: 3rem;
|
|
60
|
-
font-size: 1.25rem;
|
|
61
|
-
border-radius: var(--radius-xs);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.pin-input-lg .pin-input-field {
|
|
65
|
-
width: 3.5rem;
|
|
66
|
-
height: 4rem;
|
|
67
|
-
font-size: 1.75rem;
|
|
68
|
-
border-radius: var(--radius-sm);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/* Compact Gap */
|
|
72
|
-
.pin-input-compact {
|
|
73
|
-
gap: 0.25rem;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/* Filled Variant */
|
|
77
|
-
.pin-input-filled .pin-input-field {
|
|
78
|
-
background-color: var(--color-surface-container);
|
|
79
|
-
border: none;
|
|
80
|
-
border-bottom: 2px solid var(--color-outline);
|
|
81
|
-
border-radius: var(--radius-sm) var(--radius-sm) 0 0;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.pin-input-filled .pin-input-field:focus {
|
|
85
|
-
border-bottom-color: var(--color-primary);
|
|
86
|
-
box-shadow: none;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/* Circle Variant */
|
|
90
|
-
.pin-input-circle .pin-input-field {
|
|
91
|
-
width: 3rem;
|
|
92
|
-
height: 3rem;
|
|
93
|
-
border-radius: var(--radius-full);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.pin-input-circle.pin-input-sm .pin-input-field {
|
|
97
|
-
width: 2.5rem;
|
|
98
|
-
height: 2.5rem;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.pin-input-circle.pin-input-lg .pin-input-field {
|
|
102
|
-
width: 3.5rem;
|
|
103
|
-
height: 3.5rem;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/* Dot Display (shows dots instead of numbers) */
|
|
107
|
-
.pin-input-dots .pin-input-field {
|
|
108
|
-
font-size: 2rem;
|
|
109
|
-
letter-spacing: -0.25rem;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
/* Color Variants */
|
|
113
|
-
.pin-input-primary .pin-input-field {
|
|
114
|
-
color: var(--color-primary);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.pin-input-primary .pin-input-field:focus {
|
|
118
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-primary) 10%, transparent);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.pin-input-secondary .pin-input-field {
|
|
122
|
-
color: var(--color-secondary);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.pin-input-secondary .pin-input-field:focus {
|
|
126
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-secondary) 10%, transparent);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.pin-input-tertiary .pin-input-field {
|
|
130
|
-
color: var(--color-tertiary);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.pin-input-tertiary .pin-input-field:focus {
|
|
134
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-tertiary) 10%, transparent);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.pin-input-info .pin-input-field {
|
|
138
|
-
color: var(--color-info);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.pin-input-info .pin-input-field:focus {
|
|
142
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-info) 10%, transparent);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.pin-input-success .pin-input-field {
|
|
146
|
-
color: var(--color-success);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.pin-input-success .pin-input-field:focus {
|
|
150
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-success) 10%, transparent);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.pin-input-warning .pin-input-field {
|
|
154
|
-
color: var(--color-warning);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.pin-input-warning .pin-input-field:focus {
|
|
158
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-warning) 10%, transparent);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.pin-input-error .pin-input-field {
|
|
162
|
-
color: var(--color-error);
|
|
163
|
-
animation: pin-shake 300ms ease-in-out;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.pin-input-error .pin-input-field:focus {
|
|
167
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-error) 10%, transparent);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.pin-input-accent .pin-input-field {
|
|
171
|
-
color: var(--color-accent);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.pin-input-accent .pin-input-field:focus {
|
|
175
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-accent) 10%, transparent);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.pin-input-neutral .pin-input-field {
|
|
179
|
-
color: var(--color-neutral);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.pin-input-neutral .pin-input-field:focus {
|
|
183
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-neutral) 10%, transparent);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.pin-input-base .pin-input-field {
|
|
187
|
-
color: var(--color-base-content);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.pin-input-base .pin-input-field:focus {
|
|
191
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-base-content) 10%, transparent);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
@keyframes pin-shake {
|
|
195
|
-
0%, 100% { transform: translateX(0); }
|
|
196
|
-
20%, 60% { transform: translateX(-4px); }
|
|
197
|
-
40%, 80% { transform: translateX(4px); }
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/* Ghost Variant */
|
|
201
|
-
.pin-input-ghost .pin-input-field {
|
|
202
|
-
background-color: transparent;
|
|
203
|
-
border-color: transparent;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
.pin-input-ghost .pin-input-field:focus {
|
|
207
|
-
background-color: var(--color-surface-container);
|
|
208
|
-
border-color: transparent;
|
|
209
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
/* PIN Group with Label */
|
|
213
|
-
.pin-group {
|
|
214
|
-
display: flex;
|
|
215
|
-
flex-direction: column;
|
|
216
|
-
gap: 0.5rem;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.pin-label {
|
|
220
|
-
font-size: 0.875rem;
|
|
221
|
-
font-weight: 500;
|
|
222
|
-
color: var(--color-on-surface);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.pin-helper {
|
|
226
|
-
font-size: 0.75rem;
|
|
227
|
-
color: var(--color-on-surface-variant);
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.pin-error-message {
|
|
231
|
-
font-size: 0.75rem;
|
|
232
|
-
color: var(--color-error);
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
/* Reduce Motion */
|
|
236
|
-
@media (prefers-reduced-motion: reduce) {
|
|
237
|
-
.pin-input-field {
|
|
238
|
-
transition: none;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
.pin-input-error .pin-input-field {
|
|
242
|
-
animation: none;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
// Auto-generated from pin-input.css
|
|
2
|
-
export const css = `/**
|
|
3
|
-
* PIN Input Component Styles
|
|
4
|
-
* DuskMoonUI - Secure PIN/password entry input
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
@layer components {
|
|
8
|
-
/* Base PIN Container */
|
|
9
|
-
.pin-input {
|
|
10
|
-
display: inline-flex;
|
|
11
|
-
align-items: center;
|
|
12
|
-
gap: 0.5rem;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/* PIN Input Field */
|
|
16
|
-
.pin-input-field {
|
|
17
|
-
width: 3rem;
|
|
18
|
-
height: 3.5rem;
|
|
19
|
-
padding: 0;
|
|
20
|
-
font-size: 1.5rem;
|
|
21
|
-
font-weight: 600;
|
|
22
|
-
text-align: center;
|
|
23
|
-
color: var(--color-on-surface);
|
|
24
|
-
background-color: var(--color-surface);
|
|
25
|
-
border: 2px solid currentColor;
|
|
26
|
-
border-radius: var(--radius-sm);
|
|
27
|
-
outline: none;
|
|
28
|
-
transition: border-color 150ms ease-in-out, box-shadow 150ms ease-in-out;
|
|
29
|
-
caret-color: var(--color-primary);
|
|
30
|
-
-webkit-text-security: disc;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.pin-input-field::placeholder {
|
|
34
|
-
color: var(--color-on-surface-variant);
|
|
35
|
-
opacity: 0.3;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.pin-input-field:hover:not(:disabled):not(:focus) {
|
|
39
|
-
background-color: var(--color-surface-container);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.pin-input-field:focus {
|
|
43
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.pin-input-field:disabled {
|
|
47
|
-
opacity: 0.38;
|
|
48
|
-
cursor: not-allowed;
|
|
49
|
-
background-color: var(--color-surface-container);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/* Show PIN (toggle visibility) */
|
|
53
|
-
.pin-input-visible .pin-input-field {
|
|
54
|
-
-webkit-text-security: none;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/* Size Variants */
|
|
58
|
-
.pin-input-sm .pin-input-field {
|
|
59
|
-
width: 2.5rem;
|
|
60
|
-
height: 3rem;
|
|
61
|
-
font-size: 1.25rem;
|
|
62
|
-
border-radius: var(--radius-xs);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.pin-input-lg .pin-input-field {
|
|
66
|
-
width: 3.5rem;
|
|
67
|
-
height: 4rem;
|
|
68
|
-
font-size: 1.75rem;
|
|
69
|
-
border-radius: var(--radius-sm);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/* Compact Gap */
|
|
73
|
-
.pin-input-compact {
|
|
74
|
-
gap: 0.25rem;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/* Filled Variant */
|
|
78
|
-
.pin-input-filled .pin-input-field {
|
|
79
|
-
background-color: var(--color-surface-container);
|
|
80
|
-
border: none;
|
|
81
|
-
border-bottom: 2px solid var(--color-outline);
|
|
82
|
-
border-radius: var(--radius-sm) var(--radius-sm) 0 0;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.pin-input-filled .pin-input-field:focus {
|
|
86
|
-
border-bottom-color: var(--color-primary);
|
|
87
|
-
box-shadow: none;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/* Circle Variant */
|
|
91
|
-
.pin-input-circle .pin-input-field {
|
|
92
|
-
width: 3rem;
|
|
93
|
-
height: 3rem;
|
|
94
|
-
border-radius: var(--radius-full);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.pin-input-circle.pin-input-sm .pin-input-field {
|
|
98
|
-
width: 2.5rem;
|
|
99
|
-
height: 2.5rem;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.pin-input-circle.pin-input-lg .pin-input-field {
|
|
103
|
-
width: 3.5rem;
|
|
104
|
-
height: 3.5rem;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/* Dot Display (shows dots instead of numbers) */
|
|
108
|
-
.pin-input-dots .pin-input-field {
|
|
109
|
-
font-size: 2rem;
|
|
110
|
-
letter-spacing: -0.25rem;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/* Color Variants */
|
|
114
|
-
.pin-input-primary .pin-input-field {
|
|
115
|
-
color: var(--color-primary);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.pin-input-primary .pin-input-field:focus {
|
|
119
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-primary) 10%, transparent);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.pin-input-secondary .pin-input-field {
|
|
123
|
-
color: var(--color-secondary);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.pin-input-secondary .pin-input-field:focus {
|
|
127
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-secondary) 10%, transparent);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.pin-input-tertiary .pin-input-field {
|
|
131
|
-
color: var(--color-tertiary);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.pin-input-tertiary .pin-input-field:focus {
|
|
135
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-tertiary) 10%, transparent);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.pin-input-info .pin-input-field {
|
|
139
|
-
color: var(--color-info);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.pin-input-info .pin-input-field:focus {
|
|
143
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-info) 10%, transparent);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.pin-input-success .pin-input-field {
|
|
147
|
-
color: var(--color-success);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.pin-input-success .pin-input-field:focus {
|
|
151
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-success) 10%, transparent);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.pin-input-warning .pin-input-field {
|
|
155
|
-
color: var(--color-warning);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.pin-input-warning .pin-input-field:focus {
|
|
159
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-warning) 10%, transparent);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.pin-input-error .pin-input-field {
|
|
163
|
-
color: var(--color-error);
|
|
164
|
-
animation: pin-shake 300ms ease-in-out;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.pin-input-error .pin-input-field:focus {
|
|
168
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-error) 10%, transparent);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.pin-input-accent .pin-input-field {
|
|
172
|
-
color: var(--color-accent);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.pin-input-accent .pin-input-field:focus {
|
|
176
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-accent) 10%, transparent);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.pin-input-neutral .pin-input-field {
|
|
180
|
-
color: var(--color-neutral);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.pin-input-neutral .pin-input-field:focus {
|
|
184
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-neutral) 10%, transparent);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.pin-input-base .pin-input-field {
|
|
188
|
-
color: var(--color-base-content);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.pin-input-base .pin-input-field:focus {
|
|
192
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-base-content) 10%, transparent);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
@keyframes pin-shake {
|
|
196
|
-
0%, 100% { transform: translateX(0); }
|
|
197
|
-
20%, 60% { transform: translateX(-4px); }
|
|
198
|
-
40%, 80% { transform: translateX(4px); }
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
/* Ghost Variant */
|
|
202
|
-
.pin-input-ghost .pin-input-field {
|
|
203
|
-
background-color: transparent;
|
|
204
|
-
border-color: transparent;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.pin-input-ghost .pin-input-field:focus {
|
|
208
|
-
background-color: var(--color-surface-container);
|
|
209
|
-
border-color: transparent;
|
|
210
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
/* PIN Group with Label */
|
|
214
|
-
.pin-group {
|
|
215
|
-
display: flex;
|
|
216
|
-
flex-direction: column;
|
|
217
|
-
gap: 0.5rem;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.pin-label {
|
|
221
|
-
font-size: 0.875rem;
|
|
222
|
-
font-weight: 500;
|
|
223
|
-
color: var(--color-on-surface);
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.pin-helper {
|
|
227
|
-
font-size: 0.75rem;
|
|
228
|
-
color: var(--color-on-surface-variant);
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
.pin-error-message {
|
|
232
|
-
font-size: 0.75rem;
|
|
233
|
-
color: var(--color-error);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
/* Reduce Motion */
|
|
237
|
-
@media (prefers-reduced-motion: reduce) {
|
|
238
|
-
.pin-input-field {
|
|
239
|
-
transition: none;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
.pin-input-error .pin-input-field {
|
|
243
|
-
animation: none;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
`;
|
|
248
|
-
|
|
249
|
-
const sheet = typeof CSSStyleSheet !== 'undefined' ? new CSSStyleSheet() : null;
|
|
250
|
-
if (sheet) {
|
|
251
|
-
sheet.replaceSync(css);
|
|
252
|
-
}
|
|
253
|
-
export const styles = sheet;
|
|
254
|
-
export default sheet;
|