@uniai-fe/uds-primitives 0.3.27 → 0.3.28
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
|
@@ -336,9 +336,9 @@ export type SelectProps = SelectStyleOptions &
|
|
|
336
336
|
* @property {boolean} [readOnly] readOnly 여부
|
|
337
337
|
* @property {SelectTriggerButtonType} [buttonType] button type
|
|
338
338
|
* @property {FormFieldWidth} [width] width preset 옵션
|
|
339
|
-
* @property {SelectDropdownOption<OptionData
|
|
340
|
-
* @property {SelectCallbackParams<OptionData
|
|
341
|
-
* @property {SelectCallbackParams<OptionData
|
|
339
|
+
* @property {SelectDropdownOption<OptionData>[]} [items] dropdown item 리스트
|
|
340
|
+
* @property {SelectCallbackParams<OptionData>} [onSelectOption] option 선택 액션 콜백
|
|
341
|
+
* @property {SelectCallbackParams<OptionData>} [onSelectChange] 선택값 변경 콜백
|
|
342
342
|
* @property {SelectDropdownExtension} [dropdown] dropdown 확장 옵션
|
|
343
343
|
* @property {boolean} [open] dropdown open 상태
|
|
344
344
|
* @property {boolean} [defaultOpen] uncontrolled 초기 open 상태
|
|
@@ -349,25 +349,18 @@ export type SelectProps = SelectStyleOptions &
|
|
|
349
349
|
* @property {UseFormRegisterReturn} [register] source field register
|
|
350
350
|
* @property {UseFormRegisterReturn} [customRegister] custom field register
|
|
351
351
|
* @example
|
|
352
|
-
* type
|
|
353
|
-
*
|
|
354
|
-
*
|
|
355
|
-
* >;
|
|
356
|
-
* type DefaultRequired = SelectDefaultComponentProps<
|
|
357
|
-
* { metaKey: number },
|
|
358
|
-
* "required"
|
|
359
|
-
* >;
|
|
352
|
+
* type DefaultProps = SelectDefaultComponentProps<{ metaKey: number }>;
|
|
353
|
+
* type RequiredChange = SelectCallbackParams<{ metaKey: number }, "required">;
|
|
354
|
+
* // optionality 제어는 콜백/옵션 타입에서 필요할 때만 명시적으로 사용한다.
|
|
360
355
|
*/
|
|
361
|
-
export type SelectDefaultComponentProps<
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
SelectCustomOptionExtension &
|
|
370
|
-
SelectFormRegisterExtension;
|
|
356
|
+
export type SelectDefaultComponentProps<OptionData = unknown> =
|
|
357
|
+
SelectTriggerDefaultProps &
|
|
358
|
+
SelectDropdownConfigProps<OptionData> &
|
|
359
|
+
SelectDropdownBehaviorProps &
|
|
360
|
+
SelectWidthOption &
|
|
361
|
+
SelectTriggerEventProps &
|
|
362
|
+
SelectCustomOptionExtension &
|
|
363
|
+
SelectFormRegisterExtension;
|
|
371
364
|
|
|
372
365
|
/**
|
|
373
366
|
* Select.Multiple 전체 선택 옵션 props
|
|
@@ -398,9 +391,9 @@ export interface SelectMultipleAllOptionProps {
|
|
|
398
391
|
* @property {boolean} [disabled] disabled 여부
|
|
399
392
|
* @property {boolean} [readOnly] readOnly 여부
|
|
400
393
|
* @property {FormFieldWidth} [width] width preset 옵션
|
|
401
|
-
* @property {SelectDropdownOption<OptionData
|
|
402
|
-
* @property {SelectCallbackParams<OptionData
|
|
403
|
-
* @property {SelectCallbackParams<OptionData
|
|
394
|
+
* @property {SelectDropdownOption<OptionData>[]} [items] dropdown item 리스트
|
|
395
|
+
* @property {SelectCallbackParams<OptionData>} [onSelectOption] option 선택 액션 콜백
|
|
396
|
+
* @property {SelectCallbackParams<OptionData>} [onSelectChange] 선택값 변경 콜백
|
|
404
397
|
* @property {SelectDropdownExtension} [dropdown] dropdown 확장 옵션
|
|
405
398
|
* @property {boolean} [open] dropdown open 상태
|
|
406
399
|
* @property {boolean} [defaultOpen] uncontrolled 초기 open 상태
|
|
@@ -409,17 +402,14 @@ export interface SelectMultipleAllOptionProps {
|
|
|
409
402
|
* @property {boolean} [showSelectAllOption] dropdown 첫 행에 "전체" 옵션 노출 여부
|
|
410
403
|
* @property {ReactNode} [selectAllLabel] "전체" 옵션 라벨 커스터마이징
|
|
411
404
|
* @example
|
|
412
|
-
* type
|
|
413
|
-
*
|
|
414
|
-
*
|
|
415
|
-
* >;
|
|
405
|
+
* type MultipleProps = SelectMultipleComponentProps<{ metaKey: number }>;
|
|
406
|
+
* type RequiredChange = SelectCallbackParams<{ metaKey: number }, "required">;
|
|
407
|
+
* // optionality 제어는 콜백/옵션 타입에서 필요할 때만 명시적으로 사용한다.
|
|
416
408
|
*/
|
|
417
|
-
export type SelectMultipleComponentProps<
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
SelectMultipleAllOptionProps &
|
|
425
|
-
SelectTriggerEventProps;
|
|
409
|
+
export type SelectMultipleComponentProps<OptionData = unknown> =
|
|
410
|
+
SelectTriggerMultipleProps &
|
|
411
|
+
SelectDropdownConfigProps<OptionData> &
|
|
412
|
+
SelectDropdownBehaviorProps &
|
|
413
|
+
SelectWidthOption &
|
|
414
|
+
SelectMultipleAllOptionProps &
|
|
415
|
+
SelectTriggerEventProps;
|