@uniai-fe/uds-primitives 0.12.12 → 0.12.13
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniai-fe/uds-primitives",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.13",
|
|
4
4
|
"description": "UNIAI Design System; Primitives Components Package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -88,10 +88,10 @@
|
|
|
88
88
|
"sass": "^1.102.0",
|
|
89
89
|
"typescript": "6.0.3",
|
|
90
90
|
"@uniai-fe/eslint-config": "0.4.4",
|
|
91
|
+
"@uniai-fe/uds-foundation": "0.6.0",
|
|
91
92
|
"@uniai-fe/util-functions": "0.4.3",
|
|
92
93
|
"@uniai-fe/tsconfig": "0.2.0",
|
|
93
|
-
"@uniai-fe/next-devkit": "0.4.1"
|
|
94
|
-
"@uniai-fe/uds-foundation": "0.6.0"
|
|
94
|
+
"@uniai-fe/next-devkit": "0.4.1"
|
|
95
95
|
},
|
|
96
96
|
"scripts": {
|
|
97
97
|
"check:pre-commit": "pnpm --dir ../../.. run check:pre-commit",
|
|
@@ -319,11 +319,10 @@ export function SelectDefault<OptionData = unknown>({
|
|
|
319
319
|
setOpen(false);
|
|
320
320
|
};
|
|
321
321
|
|
|
322
|
-
// 16)
|
|
322
|
+
// 16) 명시된 native value는 빈 문자열과 0도 controlled 값으로 사용하고, undefined일 때만 내부 입력값을 유지한다.
|
|
323
323
|
const labelInputValue = isCustomInputActive
|
|
324
|
-
?
|
|
325
|
-
|
|
326
|
-
? String(inputProps.value) || customInputState.value
|
|
324
|
+
? inputProps?.value !== undefined
|
|
325
|
+
? String(inputProps.value)
|
|
327
326
|
: customInputState.value
|
|
328
327
|
: toSelectInputText(resolvedDisplayLabel);
|
|
329
328
|
|
|
@@ -144,9 +144,18 @@ export interface SelectCustomOptions {
|
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
146
|
* Select custom input props
|
|
147
|
-
* @property {
|
|
147
|
+
* @property {string | number | readonly string[]} [value] 빈 문자열과 0을 포함한 controlled 표시값; undefined면 내부 입력값 유지
|
|
148
|
+
* @property {never} [placeholder] customOptions.placeholder를 사용하므로 전달 불가
|
|
149
|
+
* @desc label input native 속성에서 placeholder를 제외한 직접입력 계약
|
|
148
150
|
*/
|
|
149
151
|
export interface SelectCustomInputProps extends ComponentPropsWithoutRef<"input"> {
|
|
152
|
+
/**
|
|
153
|
+
* 빈 문자열과 0을 포함한 controlled 표시값; undefined면 내부 입력값 유지
|
|
154
|
+
*/
|
|
155
|
+
value?: string | number | readonly string[];
|
|
156
|
+
/**
|
|
157
|
+
* customOptions.placeholder를 사용하므로 전달 불가
|
|
158
|
+
*/
|
|
150
159
|
placeholder?: never;
|
|
151
160
|
}
|
|
152
161
|
|