@uniai-fe/uds-primitives 0.3.6 → 0.3.7
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 +160 -40
- package/package.json +1 -1
- package/src/components/input/markup/address/Template.tsx +11 -2
- package/src/components/input/markup/foundation/Input.tsx +10 -2
- package/src/components/input/styles/foundation.scss +68 -30
- package/src/components/input/styles/variables.scss +32 -0
- package/src/components/select/markup/Default.tsx +16 -1
- package/src/components/select/markup/foundation/Base.tsx +7 -1
- package/src/components/select/markup/multiple/Multiple.tsx +14 -2
- package/src/components/select/styles/select.scss +57 -14
- package/src/components/select/styles/variables.scss +26 -1
- package/src/components/select/types/props.ts +2 -0
- package/src/components/select/types/trigger.ts +13 -0
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
/* layout presets */
|
|
4
4
|
--select-width: 100%;
|
|
5
5
|
--select-flex: 0 1 auto;
|
|
6
|
+
--select-layout-gap: var(--spacing-gap-2);
|
|
7
|
+
--select-value-gap: var(--spacing-gap-2);
|
|
6
8
|
|
|
7
9
|
--select-primary-height-small: var(--input-default-height-small);
|
|
8
10
|
--select-primary-height-medium: var(--input-default-height-medium);
|
|
@@ -28,9 +30,16 @@
|
|
|
28
30
|
--select-table-border-default-color: var(--input-border-table-default-color);
|
|
29
31
|
--select-table-border-focus-color: var(--input-border-active-color);
|
|
30
32
|
--select-table-border-disabled-color: var(--input-border-disabled-color);
|
|
33
|
+
--select-table-border-readonly-color: var(
|
|
34
|
+
--select-table-border-disabled-color
|
|
35
|
+
);
|
|
31
36
|
--select-table-surface-color: transparent;
|
|
32
37
|
--select-table-surface-disabled-color: var(--input-surface-disabled-color);
|
|
38
|
+
--select-table-surface-readonly-color: var(
|
|
39
|
+
--select-table-surface-disabled-color
|
|
40
|
+
);
|
|
33
41
|
--select-table-color-text: var(--input-text-color);
|
|
42
|
+
--select-table-color-text-readonly: var(--select-primary-color-text-readonly);
|
|
34
43
|
--select-table-color-placeholder: var(--input-placeholder-color);
|
|
35
44
|
--select-table-icon-color-default: var(--select-icon-color-default);
|
|
36
45
|
--select-table-icon-color-focused: var(--select-icon-color-focused);
|
|
@@ -68,9 +77,11 @@
|
|
|
68
77
|
--select-icon-size-large: 2rem;
|
|
69
78
|
|
|
70
79
|
--select-primary-color-placeholder: var(--input-placeholder-color);
|
|
80
|
+
--select-primary-color-surface: var(--input-surface-color);
|
|
71
81
|
--select-primary-color-text: var(--color-label-alternative);
|
|
72
82
|
--select-primary-color-text-focused: var(--color-label-strong);
|
|
73
83
|
--select-primary-color-text-disabled: var(--color-label-disabled);
|
|
84
|
+
--select-primary-color-text-readonly: var(--color-label-strong);
|
|
74
85
|
--select-primary-color-border: var(--input-border-color);
|
|
75
86
|
--select-primary-color-border-focused: var(--input-border-active-color);
|
|
76
87
|
--select-primary-color-border-disabled: var(--input-border-disabled-color);
|
|
@@ -82,7 +93,15 @@
|
|
|
82
93
|
);
|
|
83
94
|
--select-primary-color-surface-disabled: var(--input-surface-disabled-color);
|
|
84
95
|
--select-secondary-color-text: var(--color-label-standard);
|
|
96
|
+
--select-secondary-color-text-disabled: var(--color-label-disabled);
|
|
97
|
+
--select-secondary-color-text-readonly: var(
|
|
98
|
+
--select-primary-color-text-readonly
|
|
99
|
+
);
|
|
85
100
|
--select-secondary-color-placeholder: var(--color-label-alternative);
|
|
101
|
+
--select-secondary-color-placeholder-disabled: var(--color-label-disabled);
|
|
102
|
+
--select-secondary-color-placeholder-readonly: var(
|
|
103
|
+
--select-secondary-color-placeholder-disabled
|
|
104
|
+
);
|
|
86
105
|
--select-color-surface-secondary: transparent;
|
|
87
106
|
--select-color-surface-secondary-hover: var(--color-surface-static-cool-gray);
|
|
88
107
|
--select-color-surface-secondary-active: var(--color-surface-standard);
|
|
@@ -94,8 +113,10 @@
|
|
|
94
113
|
|
|
95
114
|
/* Multi select chip */
|
|
96
115
|
--select-multiple-chip-gap: var(--spacing-gap-2);
|
|
116
|
+
--select-multiple-tag-label-gap: var(--spacing-gap-1);
|
|
97
117
|
--select-multiple-chip-padding-inline: var(--spacing-padding-4);
|
|
98
118
|
--select-multiple-chip-padding-block: 0px;
|
|
119
|
+
--select-multiple-chip-removable-padding-right: var(--spacing-padding-2);
|
|
99
120
|
--select-multiple-chip-radius: var(--theme-radius-medium-2);
|
|
100
121
|
--select-multiple-chip-font-size: var(--font-body-small-size);
|
|
101
122
|
--select-multiple-chip-line-height: var(--font-body-small-line-height);
|
|
@@ -104,9 +125,10 @@
|
|
|
104
125
|
--select-multiple-chip-color: var(--color-primary-default);
|
|
105
126
|
--select-multiple-chip-suffix-color: var(--color-label-alternative);
|
|
106
127
|
--select-multiple-chip-surface: var(--color-surface-static-blue);
|
|
107
|
-
--select-multiple-chip-border-color: transparent;
|
|
128
|
+
--select-multiple-chip-border-color: transparent;
|
|
108
129
|
--select-multiple-chip-remove-color: var(--color-label-strong);
|
|
109
130
|
--select-multiple-chip-remove-hover-color: var(--color-label-strong);
|
|
131
|
+
--select-multiple-chip-remove-focus-outline-color: var(--color-border-strong);
|
|
110
132
|
--select-multiple-chip-summary-color: var(--color-label-standard);
|
|
111
133
|
--select-multiple-chip-summary-surface: var(--color-surface-standard);
|
|
112
134
|
--select-multiple-chip-summary-border-color: transparent;
|
|
@@ -118,4 +140,7 @@
|
|
|
118
140
|
--font-body-medium-line-height
|
|
119
141
|
);
|
|
120
142
|
--select-multiple-chip-summary-font-weight: 400;
|
|
143
|
+
|
|
144
|
+
/* Typography tokens */
|
|
145
|
+
--select-text-font-family: var(--font-body-medium-family);
|
|
121
146
|
}
|
|
@@ -223,6 +223,7 @@ export interface SelectDropdownBehaviorProps {
|
|
|
223
223
|
* @property {boolean} [block] block 여부
|
|
224
224
|
* @property {boolean} [isOpen] dropdown open 여부
|
|
225
225
|
* @property {boolean} [disabled] disabled 여부
|
|
226
|
+
* @property {boolean} [readOnly] readOnly 여부
|
|
226
227
|
* @property {SelectTriggerButtonType} [buttonType] button type
|
|
227
228
|
* @property {FormFieldWidth} [width] width preset 옵션
|
|
228
229
|
* @property {SelectDropdownOption[]} [options] dropdown option 리스트
|
|
@@ -255,6 +256,7 @@ export type SelectDefaultComponentProps = SelectTriggerDefaultProps &
|
|
|
255
256
|
* @property {boolean} [block] block 여부
|
|
256
257
|
* @property {boolean} [isOpen] dropdown open 여부
|
|
257
258
|
* @property {boolean} [disabled] disabled 여부
|
|
259
|
+
* @property {boolean} [readOnly] readOnly 여부
|
|
258
260
|
* @property {FormFieldWidth} [width] width preset 옵션
|
|
259
261
|
* @property {SelectDropdownOption[]} [options] dropdown option 리스트
|
|
260
262
|
* @property {string[]} [selectedOptionIds] 선택된 option id 리스트
|
|
@@ -17,6 +17,7 @@ import type { SelectMultipleTag } from "./multiple";
|
|
|
17
17
|
* @property {boolean} [block] block 여부
|
|
18
18
|
* @property {boolean} [multiple] multi select 여부
|
|
19
19
|
* @property {boolean} [disabled] disabled 여부
|
|
20
|
+
* @property {boolean} [readOnly] readOnly 여부
|
|
20
21
|
* @property {ElementType} [as] polymorphic element
|
|
21
22
|
* @property {SelectTriggerButtonType} [buttonType] button type
|
|
22
23
|
* @property {ReactNode} children 콘텐츠
|
|
@@ -59,6 +60,10 @@ export interface SelectTriggerBaseProps extends HTMLAttributes<HTMLElement> {
|
|
|
59
60
|
* disabled 여부
|
|
60
61
|
*/
|
|
61
62
|
disabled?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* readOnly 여부
|
|
65
|
+
*/
|
|
66
|
+
readOnly?: boolean;
|
|
62
67
|
/**
|
|
63
68
|
* polymorphic element
|
|
64
69
|
*/
|
|
@@ -120,6 +125,10 @@ export interface SelectTriggerDefaultProps extends HTMLAttributes<HTMLElement> {
|
|
|
120
125
|
* disabled 여부
|
|
121
126
|
*/
|
|
122
127
|
disabled?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* readOnly 여부
|
|
130
|
+
*/
|
|
131
|
+
readOnly?: boolean;
|
|
123
132
|
/**
|
|
124
133
|
* button type
|
|
125
134
|
*/
|
|
@@ -176,6 +185,10 @@ export interface SelectTriggerMultipleProps extends HTMLAttributes<HTMLElement>
|
|
|
176
185
|
* disabled 여부
|
|
177
186
|
*/
|
|
178
187
|
disabled?: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* readOnly 여부
|
|
190
|
+
*/
|
|
191
|
+
readOnly?: boolean;
|
|
179
192
|
}
|
|
180
193
|
|
|
181
194
|
/**
|