@300codes/design-system 1.2.16 → 1.2.17
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/package.json
CHANGED
|
@@ -171,6 +171,6 @@ const model = defineModel<boolean>({ required: true });
|
|
|
171
171
|
/* ── focus ───────────────────────────────────────────────────────────────── */
|
|
172
172
|
|
|
173
173
|
input:focus-visible + .checkboxInput__label .checkboxInput__box {
|
|
174
|
-
outline-color: var(--
|
|
174
|
+
outline-color: var(--checkboxInput-outline, #3b82f6);
|
|
175
175
|
}
|
|
176
176
|
</style>
|
|
@@ -124,9 +124,9 @@ const model = defineModel<string>({ required: true });
|
|
|
124
124
|
height: var(--_size);
|
|
125
125
|
border-radius: 50%;
|
|
126
126
|
background-color: var(--input-bg, #ffffff);
|
|
127
|
-
border: var(--
|
|
127
|
+
border: var(--radioInput-border-width, 1.5px) solid var(--input-border-color, #d6dde1);
|
|
128
128
|
outline: var(--input-outline-width, 4px) solid transparent;
|
|
129
|
-
outline-offset: var(--
|
|
129
|
+
outline-offset: var(--radioInput-outline-offset, -2px);
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
.radioInput__label:not(.radioInput__label--disabled):hover .radioInput__box {
|
|
@@ -155,7 +155,7 @@ const model = defineModel<string>({ required: true });
|
|
|
155
155
|
|
|
156
156
|
.radioInput__label--disabled .radioInput__box {
|
|
157
157
|
background-color: var(--input-bg-disabled, #d6dde1);
|
|
158
|
-
border-color: var(--
|
|
158
|
+
border-color: var(--radioInput-border-color-disabled, #89979f);
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
.radioInput__label--disabled .radioInput__box--checked {
|
|
@@ -169,6 +169,6 @@ const model = defineModel<string>({ required: true });
|
|
|
169
169
|
/* ── focus ───────────────────────────────────────────────────────────────── */
|
|
170
170
|
|
|
171
171
|
input:focus-visible + .radioInput__label .radioInput__box {
|
|
172
|
-
outline-color: var(--
|
|
172
|
+
outline-color: var(--radioInput-outline, #3b82f6);
|
|
173
173
|
}
|
|
174
174
|
</style>
|
package/src/css/tokens.css
CHANGED
|
@@ -293,6 +293,7 @@
|
|
|
293
293
|
--checkboxInput-border-color-disabled: #89979f;
|
|
294
294
|
--checkboxInput-checked-disabled-bg: #89979f;
|
|
295
295
|
--checkboxInput-outline-offset: -2px;
|
|
296
|
+
--checkboxInput-outline: theme(--color-primary);
|
|
296
297
|
|
|
297
298
|
/* md (default) */
|
|
298
299
|
--checkboxInput-size: theme(--spacing-6); /* 24px */
|
|
@@ -326,6 +327,9 @@
|
|
|
326
327
|
--radioInput-checked-dot: #09865e;
|
|
327
328
|
--radioInput-checked-disabled-bg: theme(--color-white);
|
|
328
329
|
--radioInput-checked-disabled-dot: #89979f;
|
|
330
|
+
--radioInput-border-width: 1.5px;
|
|
331
|
+
--radioInput-outline-offset: -2px;
|
|
332
|
+
--radioInput-outline: theme(--color-primary);
|
|
329
333
|
|
|
330
334
|
/* md (default) */
|
|
331
335
|
--radioInput-size: theme(--spacing-6); /* 24px */
|