@uniai-fe/uds-primitives 0.3.24 → 0.3.25
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
|
@@ -169,9 +169,9 @@ export interface SelectFormRegisterExtension {
|
|
|
169
169
|
* @property {SelectDropdownOption} [prevOption] 이전 기준 option
|
|
170
170
|
* @property {Event} [event] 원본 메뉴 선택 이벤트
|
|
171
171
|
*/
|
|
172
|
-
export type SelectCallbackParams = (
|
|
173
|
-
nextOption?: SelectDropdownOption
|
|
174
|
-
prevOption?: SelectDropdownOption
|
|
172
|
+
export type SelectCallbackParams<OptionData = unknown> = (
|
|
173
|
+
nextOption?: SelectDropdownOption<OptionData>,
|
|
174
|
+
prevOption?: SelectDropdownOption<OptionData>,
|
|
175
175
|
event?: Event,
|
|
176
176
|
) => void;
|
|
177
177
|
|
|
@@ -218,19 +218,19 @@ export interface SelectDropdownExtension {
|
|
|
218
218
|
* @property {SelectCallbackParams} [onSelectChange] 선택값 변경 콜백
|
|
219
219
|
* @property {SelectDropdownExtension} [dropdown] dropdown 확장 옵션
|
|
220
220
|
*/
|
|
221
|
-
export interface SelectDropdownConfigProps {
|
|
221
|
+
export interface SelectDropdownConfigProps<OptionData = unknown> {
|
|
222
222
|
/**
|
|
223
223
|
* dropdown item 리스트
|
|
224
224
|
*/
|
|
225
|
-
items: SelectDropdownOption[];
|
|
225
|
+
items: SelectDropdownOption<OptionData>[];
|
|
226
226
|
/**
|
|
227
227
|
* option 선택 액션 콜백
|
|
228
228
|
*/
|
|
229
|
-
onSelectOption?: SelectCallbackParams
|
|
229
|
+
onSelectOption?: SelectCallbackParams<OptionData>;
|
|
230
230
|
/**
|
|
231
231
|
* 선택값 변경 콜백
|
|
232
232
|
*/
|
|
233
|
-
onSelectChange?: SelectCallbackParams
|
|
233
|
+
onSelectChange?: SelectCallbackParams<OptionData>;
|
|
234
234
|
/**
|
|
235
235
|
* dropdown 확장 옵션
|
|
236
236
|
*/
|
|
@@ -329,13 +329,14 @@ export type SelectProps = SelectStyleOptions &
|
|
|
329
329
|
* @property {UseFormRegisterReturn} [register] source field register
|
|
330
330
|
* @property {UseFormRegisterReturn} [customRegister] custom field register
|
|
331
331
|
*/
|
|
332
|
-
export type SelectDefaultComponentProps =
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
332
|
+
export type SelectDefaultComponentProps<OptionData = unknown> =
|
|
333
|
+
SelectTriggerDefaultProps &
|
|
334
|
+
SelectDropdownConfigProps<OptionData> &
|
|
335
|
+
SelectDropdownBehaviorProps &
|
|
336
|
+
SelectWidthOption &
|
|
337
|
+
SelectTriggerEventProps &
|
|
338
|
+
SelectCustomOptionExtension &
|
|
339
|
+
SelectFormRegisterExtension;
|
|
339
340
|
|
|
340
341
|
/**
|
|
341
342
|
* Select.Multiple 전체 선택 옵션 props
|
|
@@ -377,9 +378,10 @@ export interface SelectMultipleAllOptionProps {
|
|
|
377
378
|
* @property {boolean} [showSelectAllOption] dropdown 첫 행에 "전체" 옵션 노출 여부
|
|
378
379
|
* @property {ReactNode} [selectAllLabel] "전체" 옵션 라벨 커스터마이징
|
|
379
380
|
*/
|
|
380
|
-
export type SelectMultipleComponentProps =
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
381
|
+
export type SelectMultipleComponentProps<OptionData = unknown> =
|
|
382
|
+
SelectTriggerMultipleProps &
|
|
383
|
+
SelectDropdownConfigProps<OptionData> &
|
|
384
|
+
SelectDropdownBehaviorProps &
|
|
385
|
+
SelectWidthOption &
|
|
386
|
+
SelectMultipleAllOptionProps &
|
|
387
|
+
SelectTriggerEventProps;
|