@uniai-fe/uds-primitives 0.1.10 → 0.1.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/package.json +1 -1
- package/src/components/badge/markup/Badge.tsx +5 -1
- package/src/components/badge/styles/index.scss +4 -4
- package/src/components/button/styles/button.scss +16 -16
- package/src/components/button/styles/text-button.scss +1 -1
- package/src/components/checkbox/styles/index.scss +1 -1
- package/src/components/chip/styles/index.scss +4 -4
- package/src/components/drawer/styles/index.scss +1 -1
- package/src/components/input/styles/index.scss +1 -3
- package/src/components/navigation/styles/index.scss +1 -1
- package/src/components/pagination/styles/index.scss +1 -1
- package/src/components/radio/styles/index.scss +4 -4
package/package.json
CHANGED
|
@@ -50,7 +50,11 @@ const Badge = forwardRef<HTMLElementTagNameMap["figure"], BadgeProps>(
|
|
|
50
50
|
data-has-label={hasLabel ? "true" : undefined}
|
|
51
51
|
>
|
|
52
52
|
{renderDot}
|
|
53
|
-
{
|
|
53
|
+
{["string", "number"].includes(typeof children) ? (
|
|
54
|
+
<span className="badge-label">{children}</span>
|
|
55
|
+
) : (
|
|
56
|
+
children
|
|
57
|
+
)}
|
|
54
58
|
</figure>
|
|
55
59
|
);
|
|
56
60
|
},
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.badge:where([data-style="outlined"]) {
|
|
57
|
-
background-color: var(--color-
|
|
57
|
+
background-color: var(--color-surface-static-white, #ffffff);
|
|
58
58
|
border-width: 1px;
|
|
59
59
|
border-style: solid;
|
|
60
60
|
border-color: var(--badge-outline-border-color);
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
.badge:where([data-style="fill"][data-intent="gray"]) {
|
|
114
|
-
--badge-fill-bg-color: var(--color-
|
|
114
|
+
--badge-fill-bg-color: var(--color-surface-neutral, #f2f2f2);
|
|
115
115
|
--badge-fill-label-color: var(--color-label-neutral, #797e86);
|
|
116
116
|
}
|
|
117
117
|
|
|
@@ -147,12 +147,12 @@
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
.badge:where([data-style="outlined"][data-intent="tertiary"]) {
|
|
150
|
-
--badge-outline-border-color: var(--color-border-
|
|
150
|
+
--badge-outline-border-color: var(--color-border-heavy, #313235);
|
|
151
151
|
--badge-outline-label-color: var(--color-label-strong, #18191b);
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
.badge:where([data-style="outlined"][data-intent="gray"]) {
|
|
155
|
-
--badge-outline-border-color: var(--color-border-
|
|
155
|
+
--badge-outline-border-color: var(--color-border-assistive, #e4e5e7);
|
|
156
156
|
--badge-outline-label-color: var(--color-label-standard, #3d3f43);
|
|
157
157
|
}
|
|
158
158
|
|
|
@@ -99,11 +99,11 @@
|
|
|
99
99
|
--theme-button-color-blue-90: var(--color-blue-90);
|
|
100
100
|
--theme-button-color-blue-50: var(--color-blue-50);
|
|
101
101
|
--theme-button-color-blue-45: var(--color-blue-45);
|
|
102
|
-
--theme-button-overlay-solid-tertiary-bg: var(--color-
|
|
102
|
+
--theme-button-overlay-solid-tertiary-bg: var(--color-surface-strong);
|
|
103
103
|
/* Confirm dialog cancel 버튼을 위한 solid tertiary 색상 정의 */
|
|
104
|
-
--theme-button-tertiary-solid-bg: var(--color-
|
|
105
|
-
--theme-button-tertiary-solid-hover-bg: var(--color-
|
|
106
|
-
--theme-button-tertiary-solid-pressed-bg: var(--color-
|
|
104
|
+
--theme-button-tertiary-solid-bg: var(--color-surface-neutral);
|
|
105
|
+
--theme-button-tertiary-solid-hover-bg: var(--color-surface-strong);
|
|
106
|
+
--theme-button-tertiary-solid-pressed-bg: var(--color-surface-strong);
|
|
107
107
|
--theme-button-tertiary-solid-foreground: var(--color-label-neutral);
|
|
108
108
|
--theme-button-secondary-solid-bg: var(--color-blue-95, #e5eeff);
|
|
109
109
|
--theme-button-secondary-solid-hover-bg: #dbe9ff;
|
|
@@ -111,11 +111,11 @@
|
|
|
111
111
|
--theme-button-color-cool-gray-90: var(--color-cool-gray-90);
|
|
112
112
|
--theme-button-color-cool-gray-95: var(--color-cool-gray-95);
|
|
113
113
|
--theme-button-color-cool-gray-10: var(--color-cool-gray-10);
|
|
114
|
-
--theme-button-color-bg-surface-standard: var(--color-
|
|
114
|
+
--theme-button-color-bg-surface-standard: var(--color-surface-standard);
|
|
115
115
|
--theme-button-color-bg-alternative-cool-gray: var(
|
|
116
116
|
--color-bg-alternative-cool-gray
|
|
117
117
|
);
|
|
118
|
-
--theme-button-color-bg-surface-strong: var(--color-
|
|
118
|
+
--theme-button-color-bg-surface-strong: var(--color-surface-strong);
|
|
119
119
|
--theme-button-color-label-disabled: var(--color-label-disabled);
|
|
120
120
|
|
|
121
121
|
/* overlays */
|
|
@@ -181,15 +181,15 @@ $button-priorities: (
|
|
|
181
181
|
tertiary: (
|
|
182
182
|
solid-bg: var(
|
|
183
183
|
--theme-button-tertiary-solid-bg,
|
|
184
|
-
var(--color-
|
|
184
|
+
var(--color-surface-neutral)
|
|
185
185
|
),
|
|
186
186
|
solid-hover: var(
|
|
187
187
|
--theme-button-tertiary-solid-hover-bg,
|
|
188
|
-
var(--color-
|
|
188
|
+
var(--color-surface-static-cool-gray)
|
|
189
189
|
),
|
|
190
190
|
solid-active: var(
|
|
191
191
|
--theme-button-tertiary-solid-pressed-bg,
|
|
192
|
-
var(--color-
|
|
192
|
+
var(--color-surface-strong)
|
|
193
193
|
),
|
|
194
194
|
solid-foreground: var(
|
|
195
195
|
--theme-button-tertiary-solid-foreground,
|
|
@@ -366,11 +366,11 @@ $button-priorities: (
|
|
|
366
366
|
&[aria-disabled="true"] {
|
|
367
367
|
background-color: var(
|
|
368
368
|
--theme-button-color-bg-surface-standard,
|
|
369
|
-
var(--color-
|
|
369
|
+
var(--color-surface-standard)
|
|
370
370
|
);
|
|
371
371
|
border-color: var(
|
|
372
372
|
--theme-button-color-bg-surface-standard,
|
|
373
|
-
var(--color-
|
|
373
|
+
var(--color-surface-standard)
|
|
374
374
|
);
|
|
375
375
|
color: var(
|
|
376
376
|
--theme-button-color-label-disabled,
|
|
@@ -400,11 +400,11 @@ $button-priorities: (
|
|
|
400
400
|
&[aria-disabled="true"] {
|
|
401
401
|
background-color: var(
|
|
402
402
|
--theme-button-color-bg-surface-standard,
|
|
403
|
-
var(--color-
|
|
403
|
+
var(--color-surface-standard)
|
|
404
404
|
);
|
|
405
405
|
border-color: var(
|
|
406
406
|
--theme-button-color-bg-surface-standard,
|
|
407
|
-
var(--color-
|
|
407
|
+
var(--color-surface-standard)
|
|
408
408
|
);
|
|
409
409
|
color: var(
|
|
410
410
|
--theme-button-color-label-disabled,
|
|
@@ -587,7 +587,7 @@ $button-size-map: (
|
|
|
587
587
|
@include button-overlay-state(
|
|
588
588
|
"solid",
|
|
589
589
|
"tertiary",
|
|
590
|
-
var(--color-border-
|
|
590
|
+
var(--color-border-strong, var(--color-surface-strong)),
|
|
591
591
|
0.68,
|
|
592
592
|
0.48,
|
|
593
593
|
priority-token(tertiary, solid-bg)
|
|
@@ -624,11 +624,11 @@ $button-size-map: (
|
|
|
624
624
|
:where(.button[aria-disabled="true"]) {
|
|
625
625
|
background-color: var(
|
|
626
626
|
--theme-button-color-bg-surface-standard,
|
|
627
|
-
var(--color-
|
|
627
|
+
var(--color-surface-standard)
|
|
628
628
|
);
|
|
629
629
|
border-color: var(
|
|
630
630
|
--theme-button-color-bg-surface-standard,
|
|
631
|
-
var(--color-
|
|
631
|
+
var(--color-surface-standard)
|
|
632
632
|
);
|
|
633
633
|
color: var(--theme-button-color-label-disabled, var(--color-label-disabled));
|
|
634
634
|
cursor: not-allowed;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
--theme-checkbox-control-radius-medium: var(--theme-radius-xsmall-3, 3px);
|
|
7
7
|
--theme-checkbox-control-radius-large: var(--theme-radius-small-1, 4px);
|
|
8
8
|
--theme-checkbox-border-width: 1.4px;
|
|
9
|
-
--theme-checkbox-border-color: var(--color-border-
|
|
9
|
+
--theme-checkbox-border-color: var(--color-border-assistive);
|
|
10
10
|
--theme-checkbox-border-selected: var(--color-primary-default);
|
|
11
11
|
--theme-checkbox-surface: var(--color-common-100);
|
|
12
12
|
--theme-checkbox-surface-selected: var(--color-primary-default);
|
|
@@ -56,14 +56,14 @@ figure.chip {
|
|
|
56
56
|
|
|
57
57
|
.chip:where([data-kind="filter"]),
|
|
58
58
|
.chip:where([data-kind="filter-rounded"]) {
|
|
59
|
-
--chip-bg: var(--color-
|
|
59
|
+
--chip-bg: var(--color-surface-standard, #f2f2f3);
|
|
60
60
|
--chip-label-color: var(--color-label-neutral, #797e86);
|
|
61
61
|
--chip-border-color: transparent;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.chip:where([data-kind="filter"][data-selected="true"]),
|
|
65
65
|
.chip:where([data-kind="filter-rounded"][data-selected="true"]) {
|
|
66
|
-
--chip-bg: var(--color-
|
|
66
|
+
--chip-bg: var(--color-surface-heavy, #313235);
|
|
67
67
|
--chip-label-color: var(--color-common-100, #ffffff);
|
|
68
68
|
}
|
|
69
69
|
|
|
@@ -72,7 +72,7 @@ figure.chip {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
.chip:where([data-kind="assist"]) {
|
|
75
|
-
--chip-bg: var(--color-
|
|
75
|
+
--chip-bg: var(--color-surface-static-neutral, #f2f2f2);
|
|
76
76
|
--chip-label-color: var(--color-label-strong, #18191b);
|
|
77
77
|
--chip-gap: var(--spacing-gap-2, 8px);
|
|
78
78
|
--chip-border-color: transparent;
|
|
@@ -86,7 +86,7 @@ figure.chip {
|
|
|
86
86
|
--chip-gap: var(--spacing-gap-1, 4px);
|
|
87
87
|
--chip-bg: var(--color-common-100, #ffffff);
|
|
88
88
|
--chip-label-color: var(--color-label-standard, #3d3f43);
|
|
89
|
-
--chip-border-color: var(--color-border-
|
|
89
|
+
--chip-border-color: var(--color-border-assistive, #e4e5e7);
|
|
90
90
|
padding-inline-start: var(--spacing-padding-4, 8px);
|
|
91
91
|
padding-inline-end: var(--spacing-padding-2, 4px);
|
|
92
92
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
// Figma 기준 bottom sheet 여백/톤을 전역 변수로 정리한다.
|
|
3
3
|
--drawer-overlay-bg: rgba(0, 0, 0, 0.44);
|
|
4
|
-
--drawer-surface-bg: var(--color-
|
|
4
|
+
--drawer-surface-bg: var(--color-surface-static-white);
|
|
5
5
|
--drawer-radius-large: var(--theme-radius-large-2);
|
|
6
6
|
--drawer-radius-medium: var(--theme-radius-large-1);
|
|
7
7
|
--drawer-body-color: var(--color-label-standard);
|
|
@@ -26,9 +26,7 @@
|
|
|
26
26
|
// error 상태는 Figma 기준 44% alpha 레드 보더 사용
|
|
27
27
|
--theme-input-border-error: rgba(218, 29, 11, 0.44);
|
|
28
28
|
--theme-input-border-disabled: var(--color-border-standard-cool-gray);
|
|
29
|
-
--theme-input-border-underline-disabled: var(
|
|
30
|
-
--color-border-standard-assistive
|
|
31
|
-
);
|
|
29
|
+
--theme-input-border-underline-disabled: var(--color-border-assistive);
|
|
32
30
|
--theme-input-surface: var(--color-common-100);
|
|
33
31
|
--theme-input-surface-muted: var(--color-neutral-99);
|
|
34
32
|
--theme-input-surface-disabled: var(--color-neutral-95);
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
--theme-navigation-label-font-weight: 500;
|
|
11
11
|
--theme-navigation-label-letter-spacing: -0.12px;
|
|
12
12
|
--theme-navigation-bg: var(--color-common-100, #ffffff);
|
|
13
|
-
--theme-navigation-border: var(--color-border-
|
|
13
|
+
--theme-navigation-border: var(--color-border-assistive, #e4e5e7);
|
|
14
14
|
--theme-navigation-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
|
|
15
15
|
--theme-navigation-color: var(--color-label-strong, #3d3f43);
|
|
16
16
|
--theme-navigation-color-active: var(--color-primary-default, #0061ff);
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
--pagination-dot-bg: var(--color-cool-gray-85, #d2d3d7);
|
|
13
13
|
--pagination-dot-active-bg: var(--color-primary-default, #0061ff);
|
|
14
14
|
--pagination-dot-active-bg-secondary: var(
|
|
15
|
-
--color-
|
|
15
|
+
--color-surface-heavy,
|
|
16
16
|
#313235
|
|
17
17
|
); // semantic surface heavy
|
|
18
18
|
--pagination-carousel-height: 8px;
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
--theme-radio-indicator-border-width: 1.4px;
|
|
7
7
|
--theme-radio-indicator-border-width-selected-medium: 4px;
|
|
8
8
|
--theme-radio-indicator-border-width-selected-large: 6px;
|
|
9
|
-
--theme-radio-border-color: var(--color-border-
|
|
9
|
+
--theme-radio-border-color: var(--color-border-assistive);
|
|
10
10
|
--theme-radio-border-selected: var(--color-primary-default);
|
|
11
11
|
--theme-radio-surface-selected: var(--color-primary-default);
|
|
12
|
-
--theme-radio-surface-disabled: var(--color-border-
|
|
13
|
-
--theme-radio-border-disabled: var(--color-border-
|
|
12
|
+
--theme-radio-surface-disabled: var(--color-border-assistive);
|
|
13
|
+
--theme-radio-border-disabled: var(--color-border-assistive);
|
|
14
14
|
--theme-radio-disabled-selected-fill: var(--color-primary-default);
|
|
15
15
|
--theme-radio-label-color: var(--color-label-strong);
|
|
16
16
|
--theme-radio-label-disabled: var(--color-label-disabled);
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
--theme-radio-card-background: var(--color-common-100);
|
|
20
20
|
--theme-radio-card-title-color: var(--color-label-strong);
|
|
21
21
|
--theme-radio-card-description-color: var(--color-label-neutral);
|
|
22
|
-
--theme-radio-card-badge-background: var(--color-
|
|
22
|
+
--theme-radio-card-badge-background: var(--color-surface-static-blue);
|
|
23
23
|
--theme-radio-card-badge-color: var(--color-primary-default);
|
|
24
24
|
--theme-radio-focus-ring: rgba(2, 84, 255, 0.32);
|
|
25
25
|
--theme-radio-disabled-selected-opacity: 0.28;
|