@duskmoon-dev/core 1.19.10 → 1.20.0
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 +262 -350
- package/dist/index.min.css +1 -1
- package/dist/standalone/duskmoonui-themes.css +125 -125
- package/dist/standalone/duskmoonui.css +264 -352
- package/dist/standalone/duskmoonui.js +5 -5
- package/dist/standalone/duskmoonui.mjs +5 -5
- package/dist/themes/generated/sunshine.css +62 -62
- 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
|
@@ -8,68 +8,68 @@
|
|
|
8
8
|
--theme-mode: "light";
|
|
9
9
|
--theme-family: "duskmoon";
|
|
10
10
|
--theme-pair: "moonlight";
|
|
11
|
-
--theme-description: "
|
|
12
|
-
--color-primary: oklch(
|
|
13
|
-
--color-primary-content: oklch(
|
|
14
|
-
--color-primary-container: oklch(95% 0.
|
|
15
|
-
--color-on-primary-container: oklch(
|
|
16
|
-
--color-secondary: oklch(
|
|
17
|
-
--color-secondary-content: oklch(
|
|
18
|
-
--color-secondary-container: oklch(94% 0.
|
|
19
|
-
--color-on-secondary-container: oklch(
|
|
20
|
-
--color-tertiary: oklch(
|
|
21
|
-
--color-tertiary-content: oklch(
|
|
22
|
-
--color-tertiary-container: oklch(95% 0.
|
|
23
|
-
--color-on-tertiary-container: oklch(
|
|
24
|
-
--color-accent: oklch(
|
|
25
|
-
--color-accent-content: oklch(
|
|
26
|
-
--color-neutral: oklch(
|
|
27
|
-
--color-neutral-content: oklch(
|
|
28
|
-
--color-neutral-variant: oklch(
|
|
29
|
-
--color-surface: oklch(
|
|
30
|
-
--color-surface-dim: oklch(
|
|
31
|
-
--color-surface-bright: oklch(
|
|
32
|
-
--color-surface-container-lowest: oklch(
|
|
33
|
-
--color-surface-container-low: oklch(
|
|
34
|
-
--color-surface-container: oklch(
|
|
35
|
-
--color-surface-container-high: oklch(
|
|
36
|
-
--color-surface-container-highest: oklch(
|
|
37
|
-
--color-surface-variant: oklch(
|
|
38
|
-
--color-on-surface: oklch(
|
|
39
|
-
--color-on-surface-variant: oklch(
|
|
40
|
-
--color-base-100: oklch(
|
|
41
|
-
--color-base-200: oklch(
|
|
42
|
-
--color-base-300: oklch(
|
|
43
|
-
--color-base-400: oklch(55% 0.
|
|
44
|
-
--color-base-500: oklch(
|
|
45
|
-
--color-base-600: oklch(35% 0.
|
|
46
|
-
--color-base-700: oklch(
|
|
47
|
-
--color-base-800: oklch(18% 0.
|
|
48
|
-
--color-base-900: oklch(
|
|
49
|
-
--color-base-content: oklch(
|
|
50
|
-
--color-outline: oklch(
|
|
51
|
-
--color-outline-variant: oklch(85% 0.
|
|
52
|
-
--color-inverse-surface: oklch(
|
|
53
|
-
--color-inverse-on-surface: oklch(
|
|
54
|
-
--color-inverse-primary: oklch(
|
|
55
|
-
--color-shadow: oklch(0% 0 0);
|
|
56
|
-
--color-scrim: oklch(0% 0 0 / 50%);
|
|
57
|
-
--color-info: oklch(
|
|
58
|
-
--color-info-content: oklch(
|
|
59
|
-
--color-info-container: oklch(95% 0.
|
|
60
|
-
--color-on-info-container: oklch(
|
|
61
|
-
--color-success: oklch(
|
|
62
|
-
--color-success-content: oklch(
|
|
63
|
-
--color-success-container: oklch(
|
|
64
|
-
--color-on-success-container: oklch(
|
|
65
|
-
--color-warning: oklch(
|
|
66
|
-
--color-warning-content: oklch(
|
|
67
|
-
--color-warning-container: oklch(
|
|
68
|
-
--color-on-warning-container: oklch(
|
|
69
|
-
--color-error: oklch(
|
|
70
|
-
--color-error-content: oklch(
|
|
71
|
-
--color-error-container: oklch(93% 0.
|
|
72
|
-
--color-on-error-container: oklch(
|
|
11
|
+
--theme-description: "Sunlit ivory with golden amber, muted lavender and sky blue";
|
|
12
|
+
--color-primary: oklch(82.60893044% 0.1414340166 83.31858015);
|
|
13
|
+
--color-primary-content: oklch(28.28953512% 0.0448991160 80.63639668);
|
|
14
|
+
--color-primary-container: oklch(95.57475591% 0.0614713639 92.12872653);
|
|
15
|
+
--color-on-primary-container: oklch(38.72869883% 0.0701556434 81.75114485);
|
|
16
|
+
--color-secondary: oklch(75.54657159% 0.0738680191 298.09280514);
|
|
17
|
+
--color-secondary-content: oklch(30.09347875% 0.0578718110 298.71400821);
|
|
18
|
+
--color-secondary-container: oklch(94.77129416% 0.0180917690 303.41223942);
|
|
19
|
+
--color-on-secondary-container: oklch(37.75435631% 0.0773343740 301.23088405);
|
|
20
|
+
--color-tertiary: oklch(76.94385339% 0.0640284924 221.04480848);
|
|
21
|
+
--color-tertiary-content: oklch(30.82709477% 0.0391899830 225.86055898);
|
|
22
|
+
--color-tertiary-container: oklch(95.11671506% 0.0167909766 215.45868624);
|
|
23
|
+
--color-on-tertiary-container: oklch(37.64053450% 0.0461503944 221.94991006);
|
|
24
|
+
--color-accent: oklch(90.26749798% 0.1105427306 93.87593258);
|
|
25
|
+
--color-accent-content: oklch(35.60101539% 0.0588941318 87.79310558);
|
|
26
|
+
--color-neutral: oklch(34.78392925% 0.0173048639 78.03949200);
|
|
27
|
+
--color-neutral-content: oklch(98.35030566% 0.0170577608 84.58657624);
|
|
28
|
+
--color-neutral-variant: oklch(48.47267982% 0.0259043741 73.78871657);
|
|
29
|
+
--color-surface: oklch(99.14473089% 0.0097633072 87.46952653);
|
|
30
|
+
--color-surface-dim: oklch(93.02387608% 0.0258398160 84.59321482);
|
|
31
|
+
--color-surface-bright: oklch(99.99999935% 0 0);
|
|
32
|
+
--color-surface-container-lowest: oklch(99.99999935% 0 0);
|
|
33
|
+
--color-surface-container-low: oklch(97.37543141% 0.0167153184 87.99753171);
|
|
34
|
+
--color-surface-container: oklch(95.32878442% 0.0224695782 87.15156842);
|
|
35
|
+
--color-surface-container-high: oklch(93.02387608% 0.0258398160 84.59321482);
|
|
36
|
+
--color-surface-container-highest: oklch(90.04844636% 0.0317371513 84.59011110);
|
|
37
|
+
--color-surface-variant: oklch(90.04844636% 0.0317371513 84.59011110);
|
|
38
|
+
--color-on-surface: oklch(28.54323950% 0.0202535180 76.57676498);
|
|
39
|
+
--color-on-surface-variant: oklch(48.47267982% 0.0259043741 73.78871657);
|
|
40
|
+
--color-base-100: oklch(99.14473089% 0.0097633072 87.46952653);
|
|
41
|
+
--color-base-200: oklch(97.37543141% 0.0167153184 87.99753171);
|
|
42
|
+
--color-base-300: oklch(93.02387608% 0.0258398160 84.59321482);
|
|
43
|
+
--color-base-400: oklch(55.01199157% 0.0351909086 74.88191474);
|
|
44
|
+
--color-base-500: oklch(44.93783706% 0.0295877832 74.85638734);
|
|
45
|
+
--color-base-600: oklch(35.00292970% 0.0249407737 76.85509951);
|
|
46
|
+
--color-base-700: oklch(24.86662243% 0.0194041154 73.70277146);
|
|
47
|
+
--color-base-800: oklch(18.07521115% 0.0118517040 73.14319887);
|
|
48
|
+
--color-base-900: oklch(11.73198826% 0.0090103504 73.47505765);
|
|
49
|
+
--color-base-content: oklch(28.54323950% 0.0202535180 76.57676498);
|
|
50
|
+
--color-outline: oklch(57.87187705% 0.0396997009 75.20078373);
|
|
51
|
+
--color-outline-variant: oklch(85.83658493% 0.0325359084 82.75783875);
|
|
52
|
+
--color-inverse-surface: oklch(28.54323950% 0.0202535180 76.57676498);
|
|
53
|
+
--color-inverse-on-surface: oklch(98.35030566% 0.0170577608 84.58657624);
|
|
54
|
+
--color-inverse-primary: oklch(90.26749798% 0.1105427306 93.87593258);
|
|
55
|
+
--color-shadow: oklch(0.00000000% 0 0);
|
|
56
|
+
--color-scrim: oklch(0.00000000% 0 0 / 50%);
|
|
57
|
+
--color-info: oklch(50.82237171% 0.0901951310 235.77699072);
|
|
58
|
+
--color-info-content: oklch(99.99999935% 0 0);
|
|
59
|
+
--color-info-container: oklch(95.09147873% 0.0151283794 228.96415080);
|
|
60
|
+
--color-on-info-container: oklch(39.58659448% 0.0609008792 232.98919080);
|
|
61
|
+
--color-success: oklch(52.17594416% 0.0995342775 154.56738341);
|
|
62
|
+
--color-success-content: oklch(99.99999935% 0 0);
|
|
63
|
+
--color-success-container: oklch(94.93242285% 0.0208030926 140.89790892);
|
|
64
|
+
--color-on-success-container: oklch(39.51234051% 0.0596350615 156.43156459);
|
|
65
|
+
--color-warning: oklch(55.13077016% 0.1354192110 53.04846323);
|
|
66
|
+
--color-warning-content: oklch(99.99999935% 0 0);
|
|
67
|
+
--color-warning-container: oklch(94.03448323% 0.0406430766 74.46372929);
|
|
68
|
+
--color-on-warning-container: oklch(40.76011391% 0.0954501128 54.71444706);
|
|
69
|
+
--color-error: oklch(54.21677601% 0.1543098528 27.29045200);
|
|
70
|
+
--color-error-content: oklch(99.99999935% 0 0);
|
|
71
|
+
--color-error-container: oklch(93.88397486% 0.0266133029 34.97748526);
|
|
72
|
+
--color-on-error-container: oklch(38.73080591% 0.0993593486 27.58854513);
|
|
73
73
|
|
|
74
74
|
--radius-selector: 0.25rem;
|
|
75
75
|
--radius-field: 0.625rem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duskmoon-dev/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.0",
|
|
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;
|