@uniai-fe/uds-templates 0.2.4 → 0.2.6
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
|
import type { CSSProperties, ReactNode, SyntheticEvent } from "react";
|
|
2
2
|
import type { SitemapBase } from "@uniai-fe/util-functions";
|
|
3
|
-
import type {
|
|
3
|
+
import type { SelectOptionValue } from "@uniai-fe/uds-primitives";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* page-frame 컴포넌트에서 공통으로 사용하는 기본 Props
|
|
@@ -49,10 +49,35 @@ export type SitemapMatchDataType = {
|
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* 헤더 프로필 선택 옵션
|
|
52
|
+
* 헤더 프로필 선택 옵션
|
|
53
|
+
* @property {string} id 렌더링/선택 추적용 고유 id
|
|
54
|
+
* @property {SelectOptionValue} value 실제 선택 값
|
|
55
|
+
* @property {ReactNode} label 사용자 노출 라벨
|
|
56
|
+
* @property {boolean} [disabled] 비활성 여부
|
|
57
|
+
* @property {OptionDataType} [data] 추가 payload
|
|
53
58
|
*/
|
|
54
|
-
export
|
|
55
|
-
|
|
59
|
+
export interface SelectOptionType<OptionDataType = unknown> {
|
|
60
|
+
/**
|
|
61
|
+
* 렌더링/선택 추적용 고유 id
|
|
62
|
+
*/
|
|
63
|
+
id: string;
|
|
64
|
+
/**
|
|
65
|
+
* 실제 선택 값
|
|
66
|
+
*/
|
|
67
|
+
value: SelectOptionValue;
|
|
68
|
+
/**
|
|
69
|
+
* 사용자 노출 라벨
|
|
70
|
+
*/
|
|
71
|
+
label: ReactNode;
|
|
72
|
+
/**
|
|
73
|
+
* 비활성 여부
|
|
74
|
+
*/
|
|
75
|
+
disabled?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* 추가 payload
|
|
78
|
+
*/
|
|
79
|
+
data?: OptionDataType;
|
|
80
|
+
}
|
|
56
81
|
|
|
57
82
|
/**
|
|
58
83
|
* 헤더 알림 항목 데이터
|