@uniai-fe/uds-primitives 0.3.10 → 0.3.12
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/dist/styles.css +10 -21
- package/package.json +1 -1
- package/src/components/form/styles/form-field/layout.scss +4 -2
- package/src/components/form/styles/form-field/variables.scss +2 -2
- package/src/components/input/styles/variables.scss +3 -3
- package/src/components/select/markup/foundation/Base.tsx +3 -2
- package/src/components/select/styles/select.scss +0 -14
- package/src/components/select/styles/variables.scss +0 -3
package/dist/styles.css
CHANGED
|
@@ -293,8 +293,8 @@
|
|
|
293
293
|
--form-field-helper-font-size: var(--font-caption-medium-size);
|
|
294
294
|
--form-field-helper-font-weight: 400;
|
|
295
295
|
--form-field-helper-line-height: var(--font-caption-medium-line-height);
|
|
296
|
-
--form-field-helper-color: var(--color-label-neutral);
|
|
297
|
-
--form-field-helper-error
|
|
296
|
+
--form-field-helper-color-default: var(--color-label-neutral);
|
|
297
|
+
--form-field-helper-color-error: var(--color-feedback-error);
|
|
298
298
|
--info-box-background-color: var(--color-blue-99);
|
|
299
299
|
--info-box-border-color: var(--color-secondary-standard);
|
|
300
300
|
--info-box-icon-color: var(--color-feedback-information);
|
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
--input-label-font-weight: var(--font-label-small-weight);
|
|
354
354
|
--input-helper-color: var(--color-label-neutral);
|
|
355
355
|
--input-helper-success-color: var(--color-success);
|
|
356
|
-
--input-helper-error-color: var(--color-error);
|
|
356
|
+
--input-helper-error-color: var(--color-feedback-error);
|
|
357
357
|
--input-helper-disabled-color: var(--color-label-disabled);
|
|
358
358
|
--input-helper-font-size: var(--font-label-small-size);
|
|
359
359
|
--input-helper-line-height: var(--font-label-small-line-height);
|
|
@@ -377,7 +377,7 @@
|
|
|
377
377
|
--input-border-table-default-color: transparent;
|
|
378
378
|
--input-border-table-disabled-color: var(--input-border-table-default-color);
|
|
379
379
|
--input-border-table-readonly-color: var(--input-border-table-disabled-color);
|
|
380
|
-
/* error는
|
|
380
|
+
/* error border는 기존 RGBA 스펙을 유지한다. */
|
|
381
381
|
--input-border-error-color: rgba(218, 29, 11, 0.44);
|
|
382
382
|
--input-border-disabled-color: var(--color-border-standard-cool-gray);
|
|
383
383
|
--input-border-underline-disabled-color: var(--color-border-assistive);
|
|
@@ -470,7 +470,6 @@
|
|
|
470
470
|
--select-table-surface-disabled-color
|
|
471
471
|
);
|
|
472
472
|
--select-table-color-text: var(--input-text-color);
|
|
473
|
-
--select-table-color-text-error: var(--input-label-error-color);
|
|
474
473
|
--select-table-color-text-readonly: var(--select-primary-color-text-readonly);
|
|
475
474
|
--select-table-color-placeholder: var(--input-placeholder-color);
|
|
476
475
|
--select-table-icon-color-default: var(--select-icon-color-default);
|
|
@@ -510,7 +509,6 @@
|
|
|
510
509
|
--select-primary-color-surface: var(--input-surface-color);
|
|
511
510
|
--select-primary-color-text: var(--color-label-alternative);
|
|
512
511
|
--select-primary-color-text-focused: var(--color-label-strong);
|
|
513
|
-
--select-primary-color-text-error: var(--input-label-error-color);
|
|
514
512
|
--select-primary-color-text-disabled: var(--color-label-disabled);
|
|
515
513
|
--select-primary-color-text-readonly: var(--color-label-strong);
|
|
516
514
|
--select-primary-color-border: var(--input-border-color);
|
|
@@ -526,7 +524,6 @@
|
|
|
526
524
|
);
|
|
527
525
|
--select-primary-color-surface-disabled: var(--input-surface-disabled-color);
|
|
528
526
|
--select-secondary-color-text: var(--color-label-standard);
|
|
529
|
-
--select-secondary-color-text-error: var(--input-label-error-color);
|
|
530
527
|
--select-secondary-color-text-disabled: var(--color-label-disabled);
|
|
531
528
|
--select-secondary-color-text-readonly: var(
|
|
532
529
|
--select-primary-color-text-readonly
|
|
@@ -2306,15 +2303,19 @@ figure.chip {
|
|
|
2306
2303
|
margin-top: var(--form-field-gap-y);
|
|
2307
2304
|
font-size: var(--form-field-helper-font-size);
|
|
2308
2305
|
line-height: var(--form-field-helper-line-height);
|
|
2306
|
+
color: var(--form-field-helper-color-default);
|
|
2309
2307
|
}
|
|
2310
2308
|
.form-field-footer p,
|
|
2311
2309
|
.form-field-footer span {
|
|
2312
|
-
color:
|
|
2310
|
+
color: inherit;
|
|
2313
2311
|
}
|
|
2314
2312
|
|
|
2313
|
+
.form-field-container[data-state=error] .form-field-footer {
|
|
2314
|
+
color: var(--form-field-helper-color-error);
|
|
2315
|
+
}
|
|
2315
2316
|
.form-field-container[data-state=error] .form-field-footer p,
|
|
2316
2317
|
.form-field-container[data-state=error] .form-field-footer span {
|
|
2317
|
-
color:
|
|
2318
|
+
color: inherit;
|
|
2318
2319
|
}
|
|
2319
2320
|
|
|
2320
2321
|
|
|
@@ -3700,9 +3701,6 @@ figure.chip {
|
|
|
3700
3701
|
border-color: var(--select-primary-color-border-error);
|
|
3701
3702
|
--select-icon-fill: var(--select-icon-color-default);
|
|
3702
3703
|
}
|
|
3703
|
-
.select-button[data-priority=secondary][data-state=error] {
|
|
3704
|
-
color: var(--select-secondary-color-text-error);
|
|
3705
|
-
}
|
|
3706
3704
|
.select-button[data-priority=secondary][data-state=error]::after {
|
|
3707
3705
|
height: var(--select-secondary-underline-width-focus);
|
|
3708
3706
|
background-color: var(--select-color-border-secondary-error);
|
|
@@ -3786,9 +3784,6 @@ figure.chip {
|
|
|
3786
3784
|
.select-button[data-state=focused] .select-label, .select-button[data-open=true] .select-label {
|
|
3787
3785
|
color: var(--select-primary-color-text-focused);
|
|
3788
3786
|
}
|
|
3789
|
-
.select-button[data-state=error] .select-label {
|
|
3790
|
-
color: var(--select-primary-color-text-error);
|
|
3791
|
-
}
|
|
3792
3787
|
.select-button[data-state=disabled] .select-label {
|
|
3793
3788
|
color: var(--select-primary-color-text-disabled);
|
|
3794
3789
|
}
|
|
@@ -3798,15 +3793,9 @@ figure.chip {
|
|
|
3798
3793
|
.select-button[data-priority=secondary][data-state=disabled] .select-label {
|
|
3799
3794
|
color: var(--select-secondary-color-text-disabled);
|
|
3800
3795
|
}
|
|
3801
|
-
.select-button[data-priority=secondary][data-state=error] .select-label {
|
|
3802
|
-
color: var(--select-secondary-color-text-error);
|
|
3803
|
-
}
|
|
3804
3796
|
.select-button[data-priority=secondary][data-readonly=true] .select-label {
|
|
3805
3797
|
color: var(--select-secondary-color-text-readonly);
|
|
3806
3798
|
}
|
|
3807
|
-
.select-button[data-priority=table][data-state=error] .select-label {
|
|
3808
|
-
color: var(--select-table-color-text-error);
|
|
3809
|
-
}
|
|
3810
3799
|
|
|
3811
3800
|
.select-label-placeholder {
|
|
3812
3801
|
color: var(--select-primary-color-placeholder);
|
package/package.json
CHANGED
|
@@ -60,17 +60,19 @@
|
|
|
60
60
|
margin-top: var(--form-field-gap-y);
|
|
61
61
|
font-size: var(--form-field-helper-font-size);
|
|
62
62
|
line-height: var(--form-field-helper-line-height);
|
|
63
|
+
color: var(--form-field-helper-color-default);
|
|
63
64
|
p,
|
|
64
65
|
span {
|
|
65
|
-
color:
|
|
66
|
+
color: inherit;
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
.form-field-container[data-state="error"] {
|
|
70
71
|
.form-field-footer {
|
|
72
|
+
color: var(--form-field-helper-color-error);
|
|
71
73
|
p,
|
|
72
74
|
span {
|
|
73
|
-
color:
|
|
75
|
+
color: inherit;
|
|
74
76
|
}
|
|
75
77
|
}
|
|
76
78
|
}
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
--form-field-helper-font-size: var(--font-caption-medium-size);
|
|
14
14
|
--form-field-helper-font-weight: 400;
|
|
15
15
|
--form-field-helper-line-height: var(--font-caption-medium-line-height);
|
|
16
|
-
--form-field-helper-color: var(--color-label-neutral);
|
|
17
|
-
--form-field-helper-error
|
|
16
|
+
--form-field-helper-color-default: var(--color-label-neutral);
|
|
17
|
+
--form-field-helper-color-error: var(--color-feedback-error);
|
|
18
18
|
}
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
--input-label-font-weight: var(--font-label-small-weight);
|
|
41
41
|
--input-helper-color: var(--color-label-neutral);
|
|
42
42
|
--input-helper-success-color: var(--color-success);
|
|
43
|
-
--input-helper-error-color: var(--color-error);
|
|
43
|
+
--input-helper-error-color: var(--color-feedback-error);
|
|
44
44
|
--input-helper-disabled-color: var(--color-label-disabled);
|
|
45
45
|
--input-helper-font-size: var(--font-label-small-size);
|
|
46
46
|
--input-helper-line-height: var(--font-label-small-line-height);
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
--input-border-table-default-color: transparent;
|
|
67
67
|
--input-border-table-disabled-color: var(--input-border-table-default-color);
|
|
68
68
|
--input-border-table-readonly-color: var(--input-border-table-disabled-color);
|
|
69
|
-
/* error는
|
|
70
|
-
--input-border-error-color: rgba(218, 29, 11, 0.44);
|
|
69
|
+
/* error border는 기존 RGBA 스펙을 유지한다. */
|
|
70
|
+
--input-border-error-color: rgba(218, 29, 11, 0.44);
|
|
71
71
|
--input-border-disabled-color: var(--color-border-standard-cool-gray);
|
|
72
72
|
--input-border-underline-disabled-color: var(--color-border-assistive);
|
|
73
73
|
|
|
@@ -59,8 +59,10 @@ const SelectTriggerBase = forwardRef<HTMLElement, SelectTriggerBaseProps>(
|
|
|
59
59
|
className: clsx("select-button", className),
|
|
60
60
|
"data-priority": priority,
|
|
61
61
|
"data-size": size,
|
|
62
|
-
|
|
62
|
+
...restProps,
|
|
63
|
+
// 변경: Radix Dropdown.Trigger가 주입하는 data-state(open|closed)를 최종 단계에서 덮어써 visual state를 고정한다.
|
|
63
64
|
"data-state": resolvedState,
|
|
65
|
+
// 변경: readOnly도 disabled와 동일한 시각 상태를 사용하고 텍스트 컬러만 별도 스타일로 분리한다.
|
|
64
66
|
"data-readonly": readOnly ? "true" : undefined,
|
|
65
67
|
"data-open": open || undefined,
|
|
66
68
|
"data-multiple": multiple || undefined,
|
|
@@ -68,7 +70,6 @@ const SelectTriggerBase = forwardRef<HTMLElement, SelectTriggerBaseProps>(
|
|
|
68
70
|
"aria-readonly": readOnly ? "true" : undefined,
|
|
69
71
|
"aria-haspopup": ariaHasPopup ?? "listbox",
|
|
70
72
|
"aria-expanded": ariaExpanded ?? open,
|
|
71
|
-
...restProps,
|
|
72
73
|
};
|
|
73
74
|
|
|
74
75
|
const elementSpecificProps =
|
|
@@ -139,8 +139,6 @@
|
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
&[data-priority="secondary"][data-state="error"] {
|
|
142
|
-
color: var(--select-secondary-color-text-error);
|
|
143
|
-
|
|
144
142
|
&::after {
|
|
145
143
|
height: var(--select-secondary-underline-width-focus);
|
|
146
144
|
background-color: var(--select-color-border-secondary-error);
|
|
@@ -246,10 +244,6 @@
|
|
|
246
244
|
color: var(--select-primary-color-text-focused);
|
|
247
245
|
}
|
|
248
246
|
|
|
249
|
-
.select-button[data-state="error"] & {
|
|
250
|
-
color: var(--select-primary-color-text-error);
|
|
251
|
-
}
|
|
252
|
-
|
|
253
247
|
.select-button[data-state="disabled"] & {
|
|
254
248
|
color: var(--select-primary-color-text-disabled);
|
|
255
249
|
}
|
|
@@ -262,17 +256,9 @@
|
|
|
262
256
|
color: var(--select-secondary-color-text-disabled);
|
|
263
257
|
}
|
|
264
258
|
|
|
265
|
-
.select-button[data-priority="secondary"][data-state="error"] & {
|
|
266
|
-
color: var(--select-secondary-color-text-error);
|
|
267
|
-
}
|
|
268
|
-
|
|
269
259
|
.select-button[data-priority="secondary"][data-readonly="true"] & {
|
|
270
260
|
color: var(--select-secondary-color-text-readonly);
|
|
271
261
|
}
|
|
272
|
-
|
|
273
|
-
.select-button[data-priority="table"][data-state="error"] & {
|
|
274
|
-
color: var(--select-table-color-text-error);
|
|
275
|
-
}
|
|
276
262
|
}
|
|
277
263
|
|
|
278
264
|
.select-label-placeholder {
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
--select-table-surface-disabled-color
|
|
41
41
|
);
|
|
42
42
|
--select-table-color-text: var(--input-text-color);
|
|
43
|
-
--select-table-color-text-error: var(--input-label-error-color);
|
|
44
43
|
--select-table-color-text-readonly: var(--select-primary-color-text-readonly);
|
|
45
44
|
--select-table-color-placeholder: var(--input-placeholder-color);
|
|
46
45
|
--select-table-icon-color-default: var(--select-icon-color-default);
|
|
@@ -82,7 +81,6 @@
|
|
|
82
81
|
--select-primary-color-surface: var(--input-surface-color);
|
|
83
82
|
--select-primary-color-text: var(--color-label-alternative);
|
|
84
83
|
--select-primary-color-text-focused: var(--color-label-strong);
|
|
85
|
-
--select-primary-color-text-error: var(--input-label-error-color);
|
|
86
84
|
--select-primary-color-text-disabled: var(--color-label-disabled);
|
|
87
85
|
--select-primary-color-text-readonly: var(--color-label-strong);
|
|
88
86
|
--select-primary-color-border: var(--input-border-color);
|
|
@@ -98,7 +96,6 @@
|
|
|
98
96
|
);
|
|
99
97
|
--select-primary-color-surface-disabled: var(--input-surface-disabled-color);
|
|
100
98
|
--select-secondary-color-text: var(--color-label-standard);
|
|
101
|
-
--select-secondary-color-text-error: var(--input-label-error-color);
|
|
102
99
|
--select-secondary-color-text-disabled: var(--color-label-disabled);
|
|
103
100
|
--select-secondary-color-text-readonly: var(
|
|
104
101
|
--select-primary-color-text-readonly
|