yuyeon 0.0.41 → 0.0.42-rc10
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/style.css +1 -1
- package/dist/yuyeon.js +5157 -3010
- package/dist/yuyeon.umd.cjs +8 -4
- package/lib/components/button/YButton.scss +2 -1
- package/lib/components/date-picker/YDateCalendar.mjs +235 -5
- package/lib/components/date-picker/YDateCalendar.mjs.map +1 -1
- package/lib/components/date-picker/YDateCalendar.scss +82 -0
- package/lib/components/date-picker/YDatePicker.mjs.map +1 -1
- package/lib/components/date-picker/YDatePickerControl.mjs +29 -0
- package/lib/components/date-picker/YDatePickerControl.mjs.map +1 -0
- package/lib/components/date-picker/YDatePickerControl.scss +3 -0
- package/lib/components/date-picker/index.mjs +1 -1
- package/lib/components/date-picker/index.mjs.map +1 -1
- package/lib/components/divider/YDivider.mjs +4 -2
- package/lib/components/divider/YDivider.mjs.map +1 -1
- package/lib/components/dropdown/YDropdown.mjs +11 -5
- package/lib/components/dropdown/YDropdown.mjs.map +1 -1
- package/lib/components/dropdown/YDropdown.scss +3 -8
- package/lib/components/field-input/YFieldInput.mjs +10 -10
- package/lib/components/field-input/YFieldInput.mjs.map +1 -1
- package/lib/components/icon/YIcon.mjs +62 -0
- package/lib/components/icon/YIcon.mjs.map +1 -0
- package/lib/components/icon/YIcon.scss +18 -0
- package/lib/components/icon/index.mjs +2 -0
- package/lib/components/icon/index.mjs.map +1 -0
- package/lib/components/icon/poly.mjs +57 -0
- package/lib/components/icon/poly.mjs.map +1 -0
- package/lib/components/icons/index.mjs +14 -0
- package/lib/components/icons/index.mjs.map +1 -1
- package/lib/components/index.mjs +3 -0
- package/lib/components/index.mjs.map +1 -1
- package/lib/components/input/YInput.mjs +1 -0
- package/lib/components/input/YInput.mjs.map +1 -1
- package/lib/components/input/index.mjs.map +1 -1
- package/lib/components/layer/YLayer.mjs +2 -0
- package/lib/components/layer/YLayer.mjs.map +1 -1
- package/lib/components/layer/active-stack.mjs.map +1 -1
- package/lib/components/list/YList.mjs.map +1 -1
- package/lib/components/menu/YMenu.mjs +14 -2
- package/lib/components/menu/YMenu.mjs.map +1 -1
- package/lib/components/select/YSelect.mjs +9 -6
- package/lib/components/select/YSelect.mjs.map +1 -1
- package/lib/components/select/YSelect.scss +3 -8
- package/lib/components/switch/YSwitch.mjs +2 -0
- package/lib/components/switch/YSwitch.mjs.map +1 -1
- package/lib/components/tab/types.mjs.map +1 -1
- package/lib/components/table/composibles/pagination.mjs.map +1 -1
- package/lib/components/textarea/YTextarea.mjs +159 -0
- package/lib/components/textarea/YTextarea.mjs.map +1 -0
- package/lib/components/textarea/YTextarea.scss +25 -0
- package/lib/components/textarea/index.mjs +2 -0
- package/lib/components/textarea/index.mjs.map +1 -0
- package/lib/components/tooltip/YTooltip.mjs +2 -2
- package/lib/components/tooltip/YTooltip.mjs.map +1 -1
- package/lib/components/tree-view/YTreeView.mjs +5 -0
- package/lib/components/tree-view/YTreeView.mjs.map +1 -1
- package/lib/components/tree-view/YTreeViewNode.mjs +1 -0
- package/lib/components/tree-view/YTreeViewNode.mjs.map +1 -1
- package/lib/composables/communication.mjs +9 -0
- package/lib/composables/communication.mjs.map +1 -1
- package/lib/composables/date/factory.mjs +12 -0
- package/lib/composables/date/factory.mjs.map +1 -0
- package/lib/composables/date/index.mjs +19 -1
- package/lib/composables/date/index.mjs.map +1 -1
- package/lib/composables/date/setting.mjs +11 -0
- package/lib/composables/date/setting.mjs.map +1 -0
- package/lib/composables/date/types.mjs +1 -1
- package/lib/composables/date/types.mjs.map +1 -1
- package/lib/composables/i18n/index.mjs +30 -0
- package/lib/composables/i18n/index.mjs.map +1 -0
- package/lib/composables/i18n/locale.mjs +5 -0
- package/lib/composables/i18n/locale.mjs.map +1 -0
- package/lib/composables/i18n/rtl.mjs +34 -0
- package/lib/composables/i18n/rtl.mjs.map +1 -0
- package/lib/composables/i18n/share.mjs +2 -0
- package/lib/composables/i18n/share.mjs.map +1 -0
- package/lib/composables/icon.mjs +141 -0
- package/lib/composables/icon.mjs.map +1 -1
- package/lib/composables/index.mjs +1 -0
- package/lib/composables/index.mjs.map +1 -1
- package/lib/composables/theme/index.mjs.map +1 -1
- package/lib/composables/transition.mjs.map +1 -1
- package/lib/i18n/built-in.mjs +77 -0
- package/lib/i18n/built-in.mjs.map +1 -0
- package/lib/i18n/config.mjs +82 -0
- package/lib/i18n/config.mjs.map +1 -0
- package/lib/i18n/types.mjs +2 -0
- package/lib/i18n/types.mjs.map +1 -0
- package/lib/index.mjs +24 -5
- package/lib/index.mjs.map +1 -1
- package/lib/locales/en.mjs +4 -0
- package/lib/locales/en.mjs.map +1 -0
- package/lib/locales/index.mjs +3 -0
- package/lib/locales/index.mjs.map +1 -0
- package/lib/locales/ko.mjs +4 -0
- package/lib/locales/ko.mjs.map +1 -0
- package/lib/styles/util/_mixin.scss +34 -0
- package/lib/types/index.mjs.map +1 -1
- package/lib/util/date/adapters/yuyeon-date-adapter.mjs +99 -0
- package/lib/util/date/adapters/yuyeon-date-adapter.mjs.map +1 -0
- package/lib/util/date/built-in.mjs +18 -104
- package/lib/util/date/built-in.mjs.map +1 -1
- package/lib/util/date/index.mjs +1 -0
- package/lib/util/date/index.mjs.map +1 -1
- package/lib/util/date/types.mjs.map +1 -1
- package/lib/util/index.mjs +1 -0
- package/lib/util/index.mjs.map +1 -1
- package/package.json +7 -5
- package/types/abstract/items.d.ts +4 -4
- package/types/components/button/YButton.d.ts +10 -10
- package/types/components/checkbox/YInputCheckbox.d.ts +2 -2
- package/types/components/date-picker/YDateCalendar.d.ts +136 -0
- package/types/components/date-picker/index.d.ts +1 -0
- package/types/components/dialog/YDialog.d.ts +3 -2
- package/types/components/dropdown/YDropdown.d.ts +34 -13
- package/types/components/field-input/YFieldInput.d.ts +10 -10
- package/types/components/form/YForm.d.ts +1 -1
- package/types/components/icon/YIcon.d.ts +81 -0
- package/types/components/icon/index.d.ts +1 -0
- package/types/components/icons/YIconCheckbox.d.ts +2 -2
- package/types/components/icons/YIconSort.d.ts +2 -2
- package/types/components/icons/index.d.ts +48 -0
- package/types/components/index.d.ts +3 -0
- package/types/components/input/YInput.d.ts +28 -11
- package/types/components/layer/YLayer.d.ts +23 -22
- package/types/components/layer/active-stack.d.ts +1 -2
- package/types/components/list/YList.d.ts +3 -3
- package/types/components/list/YListItem.d.ts +5 -5
- package/types/components/menu/YMenu.d.ts +13 -8
- package/types/components/pagination/YPagination.d.ts +5 -5
- package/types/components/progress-bar/YProgressBar.d.ts +1 -1
- package/types/components/select/YSelect.d.ts +80 -64
- package/types/components/switch/YSwitch.d.ts +1 -1
- package/types/components/tab/YTab.d.ts +15 -15
- package/types/components/tab/YTabs.d.ts +5 -5
- package/types/components/tab/types.d.ts +1 -0
- package/types/components/table/YDataTable.d.ts +18 -18
- package/types/components/table/YDataTableBody.d.ts +5 -5
- package/types/components/table/YDataTableControl.d.ts +2 -2
- package/types/components/table/YDataTableHead.d.ts +2 -2
- package/types/components/table/YDataTableServer.d.ts +21 -21
- package/types/components/table/YTable.d.ts +4 -4
- package/types/components/table/composibles/header.d.ts +1 -1
- package/types/components/table/composibles/items.d.ts +3 -3
- package/types/components/table/composibles/pagination.d.ts +2 -2
- package/types/components/table/composibles/selection.d.ts +2 -2
- package/types/components/table/composibles/sorting.d.ts +1 -1
- package/types/components/textarea/YTextarea.d.ts +737 -0
- package/types/components/textarea/index.d.ts +1 -0
- package/types/components/tooltip/YTooltip.d.ts +13 -12
- package/types/components/tree-view/YTreeView.d.ts +7 -4
- package/types/components/tree-view/YTreeViewNode.d.ts +17 -9
- package/types/composables/choice.d.ts +1 -1
- package/types/composables/communication.d.ts +2 -0
- package/types/composables/coordinate/index.d.ts +6 -6
- package/types/composables/date/factory.d.ts +2 -0
- package/types/composables/date/index.d.ts +11 -0
- package/types/composables/date/setting.d.ts +4 -0
- package/types/composables/date/types.d.ts +12 -0
- package/types/composables/i18n/index.d.ts +8 -0
- package/types/composables/i18n/locale.d.ts +2 -0
- package/types/composables/i18n/rtl.d.ts +20 -0
- package/types/composables/i18n/share.d.ts +1 -0
- package/types/composables/icon.d.ts +96 -0
- package/types/composables/index.d.ts +2 -0
- package/types/composables/list-items.d.ts +10 -10
- package/types/composables/theme/index.d.ts +5 -5
- package/types/globals.d.ts +12 -7
- package/types/i18n/built-in.d.ts +2 -0
- package/types/i18n/config.d.ts +81 -0
- package/types/i18n/types.d.ts +19 -0
- package/types/locales/en.d.ts +4 -0
- package/types/shims.d.ts +88 -83
- package/types/types/index.d.ts +5 -0
- package/types/util/date/adapters/yuyeon-date-adapter.d.ts +38 -0
- package/types/util/date/built-in.d.ts +35 -0
- package/types/util/date/index.d.ts +3 -0
- package/types/util/date/types.d.ts +163 -0
- package/types/util/index.d.ts +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './YTextarea';
|
|
@@ -18,7 +18,7 @@ export declare const YTooltip: import("vue").DefineComponent<{
|
|
|
18
18
|
coordinateStrategy: Omit<{
|
|
19
19
|
type: PropType<"levitation" | "arrangement" | import("../../composables/coordinate").CoordinateStrategyFn>;
|
|
20
20
|
default: string;
|
|
21
|
-
}, "
|
|
21
|
+
}, "type" | "default"> & {
|
|
22
22
|
type: PropType<string | import("../../composables/coordinate").CoordinateStrategyFn>;
|
|
23
23
|
default: string | import("../../composables/coordinate").CoordinateStrategyFn;
|
|
24
24
|
};
|
|
@@ -29,7 +29,7 @@ export declare const YTooltip: import("vue").DefineComponent<{
|
|
|
29
29
|
align: Omit<{
|
|
30
30
|
type: PropType<"end" | "start" | "center">;
|
|
31
31
|
default: string;
|
|
32
|
-
}, "
|
|
32
|
+
}, "type" | "default"> & {
|
|
33
33
|
type: PropType<string>;
|
|
34
34
|
default: string;
|
|
35
35
|
};
|
|
@@ -39,7 +39,7 @@ export declare const YTooltip: import("vue").DefineComponent<{
|
|
|
39
39
|
};
|
|
40
40
|
offset: Omit<{
|
|
41
41
|
type: (ArrayConstructor | StringConstructor | NumberConstructor)[];
|
|
42
|
-
}, "
|
|
42
|
+
}, "type" | "default"> & {
|
|
43
43
|
type: PropType<NonNullable<string | number | unknown[]>>;
|
|
44
44
|
default: NonNullable<string | number | unknown[]>;
|
|
45
45
|
};
|
|
@@ -47,7 +47,7 @@ export declare const YTooltip: import("vue").DefineComponent<{
|
|
|
47
47
|
type: NumberConstructor;
|
|
48
48
|
default: number;
|
|
49
49
|
};
|
|
50
|
-
theme:
|
|
50
|
+
theme: PropType<string>;
|
|
51
51
|
modelValue: {
|
|
52
52
|
type: PropType<boolean>;
|
|
53
53
|
};
|
|
@@ -80,7 +80,7 @@ export declare const YTooltip: import("vue").DefineComponent<{
|
|
|
80
80
|
openOnHover: Omit<{
|
|
81
81
|
type: PropType<boolean>;
|
|
82
82
|
default: boolean;
|
|
83
|
-
}, "
|
|
83
|
+
}, "type" | "default"> & {
|
|
84
84
|
type: PropType<boolean>;
|
|
85
85
|
default: boolean;
|
|
86
86
|
};
|
|
@@ -137,7 +137,7 @@ export declare const YTooltip: import("vue").DefineComponent<{
|
|
|
137
137
|
})>;
|
|
138
138
|
default: string;
|
|
139
139
|
};
|
|
140
|
-
theme:
|
|
140
|
+
theme: PropType<string>;
|
|
141
141
|
modelValue: {
|
|
142
142
|
type: PropType<boolean>;
|
|
143
143
|
};
|
|
@@ -188,6 +188,7 @@ export declare const YTooltip: import("vue").DefineComponent<{
|
|
|
188
188
|
};
|
|
189
189
|
layerGroup: import("vue").ComputedRef<HTMLElement>;
|
|
190
190
|
active: import("vue").WritableComputedRef<boolean>;
|
|
191
|
+
finish: import("vue").ShallowRef<boolean>;
|
|
191
192
|
rendered: import("vue").ComputedRef<boolean>;
|
|
192
193
|
lazyValue: import("vue").ComputedRef<any>;
|
|
193
194
|
onAfterUpdate: () => void;
|
|
@@ -1802,7 +1803,7 @@ export declare const YTooltip: import("vue").DefineComponent<{
|
|
|
1802
1803
|
})>;
|
|
1803
1804
|
default: string;
|
|
1804
1805
|
};
|
|
1805
|
-
theme:
|
|
1806
|
+
theme: PropType<string>;
|
|
1806
1807
|
modelValue: {
|
|
1807
1808
|
type: PropType<boolean>;
|
|
1808
1809
|
};
|
|
@@ -1886,7 +1887,7 @@ export declare const YTooltip: import("vue").DefineComponent<{
|
|
|
1886
1887
|
coordinateStrategy: Omit<{
|
|
1887
1888
|
type: PropType<"levitation" | "arrangement" | import("../../composables/coordinate").CoordinateStrategyFn>;
|
|
1888
1889
|
default: string;
|
|
1889
|
-
}, "
|
|
1890
|
+
}, "type" | "default"> & {
|
|
1890
1891
|
type: PropType<string | import("../../composables/coordinate").CoordinateStrategyFn>;
|
|
1891
1892
|
default: string | import("../../composables/coordinate").CoordinateStrategyFn;
|
|
1892
1893
|
};
|
|
@@ -1897,7 +1898,7 @@ export declare const YTooltip: import("vue").DefineComponent<{
|
|
|
1897
1898
|
align: Omit<{
|
|
1898
1899
|
type: PropType<"end" | "start" | "center">;
|
|
1899
1900
|
default: string;
|
|
1900
|
-
}, "
|
|
1901
|
+
}, "type" | "default"> & {
|
|
1901
1902
|
type: PropType<string>;
|
|
1902
1903
|
default: string;
|
|
1903
1904
|
};
|
|
@@ -1907,7 +1908,7 @@ export declare const YTooltip: import("vue").DefineComponent<{
|
|
|
1907
1908
|
};
|
|
1908
1909
|
offset: Omit<{
|
|
1909
1910
|
type: (ArrayConstructor | StringConstructor | NumberConstructor)[];
|
|
1910
|
-
}, "
|
|
1911
|
+
}, "type" | "default"> & {
|
|
1911
1912
|
type: PropType<NonNullable<string | number | unknown[]>>;
|
|
1912
1913
|
default: NonNullable<string | number | unknown[]>;
|
|
1913
1914
|
};
|
|
@@ -1915,7 +1916,7 @@ export declare const YTooltip: import("vue").DefineComponent<{
|
|
|
1915
1916
|
type: NumberConstructor;
|
|
1916
1917
|
default: number;
|
|
1917
1918
|
};
|
|
1918
|
-
theme:
|
|
1919
|
+
theme: PropType<string>;
|
|
1919
1920
|
modelValue: {
|
|
1920
1921
|
type: PropType<boolean>;
|
|
1921
1922
|
};
|
|
@@ -1948,7 +1949,7 @@ export declare const YTooltip: import("vue").DefineComponent<{
|
|
|
1948
1949
|
openOnHover: Omit<{
|
|
1949
1950
|
type: PropType<boolean>;
|
|
1950
1951
|
default: boolean;
|
|
1951
|
-
}, "
|
|
1952
|
+
}, "type" | "default"> & {
|
|
1952
1953
|
type: PropType<boolean>;
|
|
1953
1954
|
default: boolean;
|
|
1954
1955
|
};
|
|
@@ -9,7 +9,7 @@ export declare const YTreeView: import("vue").DefineComponent<{
|
|
|
9
9
|
itemKey: Omit<{
|
|
10
10
|
type: PropType<string>;
|
|
11
11
|
default: string;
|
|
12
|
-
}, "
|
|
12
|
+
}, "type" | "default"> & {
|
|
13
13
|
type: PropType<string>;
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
@@ -26,6 +26,7 @@ export declare const YTreeView: import("vue").DefineComponent<{
|
|
|
26
26
|
enableActive: BooleanConstructor;
|
|
27
27
|
activeClass: (ArrayConstructor | StringConstructor)[];
|
|
28
28
|
activeSingleModifier: StringConstructor;
|
|
29
|
+
requiredActive: BooleanConstructor;
|
|
29
30
|
activeColor: {
|
|
30
31
|
type: StringConstructor;
|
|
31
32
|
default: string;
|
|
@@ -53,7 +54,7 @@ export declare const YTreeView: import("vue").DefineComponent<{
|
|
|
53
54
|
default: string;
|
|
54
55
|
};
|
|
55
56
|
returnItem: BooleanConstructor;
|
|
56
|
-
defaultExpand: (
|
|
57
|
+
defaultExpand: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
57
58
|
filter: PropType<TreeviewFilterFn>;
|
|
58
59
|
searchDebounceWait: {
|
|
59
60
|
type: PropType<number>;
|
|
@@ -75,7 +76,7 @@ export declare const YTreeView: import("vue").DefineComponent<{
|
|
|
75
76
|
itemKey: Omit<{
|
|
76
77
|
type: PropType<string>;
|
|
77
78
|
default: string;
|
|
78
|
-
}, "
|
|
79
|
+
}, "type" | "default"> & {
|
|
79
80
|
type: PropType<string>;
|
|
80
81
|
default: string;
|
|
81
82
|
};
|
|
@@ -92,6 +93,7 @@ export declare const YTreeView: import("vue").DefineComponent<{
|
|
|
92
93
|
enableActive: BooleanConstructor;
|
|
93
94
|
activeClass: (ArrayConstructor | StringConstructor)[];
|
|
94
95
|
activeSingleModifier: StringConstructor;
|
|
96
|
+
requiredActive: BooleanConstructor;
|
|
95
97
|
activeColor: {
|
|
96
98
|
type: StringConstructor;
|
|
97
99
|
default: string;
|
|
@@ -119,7 +121,7 @@ export declare const YTreeView: import("vue").DefineComponent<{
|
|
|
119
121
|
default: string;
|
|
120
122
|
};
|
|
121
123
|
returnItem: BooleanConstructor;
|
|
122
|
-
defaultExpand: (
|
|
124
|
+
defaultExpand: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
123
125
|
filter: PropType<TreeviewFilterFn>;
|
|
124
126
|
searchDebounceWait: {
|
|
125
127
|
type: PropType<number>;
|
|
@@ -133,6 +135,7 @@ export declare const YTreeView: import("vue").DefineComponent<{
|
|
|
133
135
|
active: CandidateKey[];
|
|
134
136
|
disableTransition: boolean;
|
|
135
137
|
enableActive: boolean;
|
|
138
|
+
requiredActive: boolean;
|
|
136
139
|
activeColor: string;
|
|
137
140
|
enableSelect: boolean;
|
|
138
141
|
items: any[];
|
|
@@ -9,6 +9,7 @@ export declare const pressYTreeViewNodeProps: <Defaults extends {
|
|
|
9
9
|
enableActive?: unknown;
|
|
10
10
|
activeClass?: unknown;
|
|
11
11
|
activeSingleModifier?: unknown;
|
|
12
|
+
requiredActive?: unknown;
|
|
12
13
|
activeColor?: unknown;
|
|
13
14
|
enableSelect?: unknown;
|
|
14
15
|
} = {}>(defaults?: Defaults | undefined) => {
|
|
@@ -18,23 +19,23 @@ export declare const pressYTreeViewNodeProps: <Defaults extends {
|
|
|
18
19
|
} : Omit<{
|
|
19
20
|
type: PropType<any[]>;
|
|
20
21
|
default: () => never[];
|
|
21
|
-
}, "
|
|
22
|
+
}, "type" | "default"> & {
|
|
22
23
|
type: PropType<unknown extends Defaults["items"] ? any[] : any[] | Defaults["items"]>;
|
|
23
24
|
default: unknown extends Defaults["items"] ? any[] : any[] | Defaults["items"];
|
|
24
25
|
};
|
|
25
26
|
itemKey: unknown extends Defaults["itemKey"] ? Omit<{
|
|
26
27
|
type: PropType<string>;
|
|
27
28
|
default: string;
|
|
28
|
-
}, "
|
|
29
|
+
}, "type" | "default"> & {
|
|
29
30
|
type: PropType<string>;
|
|
30
31
|
default: string;
|
|
31
32
|
} : Omit<Omit<{
|
|
32
33
|
type: PropType<string>;
|
|
33
34
|
default: string;
|
|
34
|
-
}, "
|
|
35
|
+
}, "type" | "default"> & {
|
|
35
36
|
type: PropType<string>;
|
|
36
37
|
default: string;
|
|
37
|
-
}, "
|
|
38
|
+
}, "type" | "default"> & {
|
|
38
39
|
type: PropType<unknown extends Defaults["itemKey"] ? string : string | Defaults["itemKey"]>;
|
|
39
40
|
default: unknown extends Defaults["itemKey"] ? string : string | Defaults["itemKey"];
|
|
40
41
|
};
|
|
@@ -44,7 +45,7 @@ export declare const pressYTreeViewNodeProps: <Defaults extends {
|
|
|
44
45
|
} : Omit<{
|
|
45
46
|
type: PropType<string>;
|
|
46
47
|
default: string;
|
|
47
|
-
}, "
|
|
48
|
+
}, "type" | "default"> & {
|
|
48
49
|
type: PropType<unknown extends Defaults["itemText"] ? string : string | Defaults["itemText"]>;
|
|
49
50
|
default: unknown extends Defaults["itemText"] ? string : string | Defaults["itemText"];
|
|
50
51
|
};
|
|
@@ -54,7 +55,7 @@ export declare const pressYTreeViewNodeProps: <Defaults extends {
|
|
|
54
55
|
} : Omit<{
|
|
55
56
|
type: PropType<string | boolean>;
|
|
56
57
|
default: string;
|
|
57
|
-
}, "
|
|
58
|
+
}, "type" | "default"> & {
|
|
58
59
|
type: PropType<unknown extends Defaults["itemChildren"] ? string | boolean : NonNullable<string | boolean> | Defaults["itemChildren"]>;
|
|
59
60
|
default: unknown extends Defaults["itemChildren"] ? string | boolean : NonNullable<string | boolean> | Defaults["itemChildren"];
|
|
60
61
|
};
|
|
@@ -78,13 +79,17 @@ export declare const pressYTreeViewNodeProps: <Defaults extends {
|
|
|
78
79
|
type: PropType<unknown extends Defaults["activeSingleModifier"] ? string : string | Defaults["activeSingleModifier"]>;
|
|
79
80
|
default: unknown extends Defaults["activeSingleModifier"] ? string : string | Defaults["activeSingleModifier"];
|
|
80
81
|
};
|
|
82
|
+
requiredActive: unknown extends Defaults["requiredActive"] ? BooleanConstructor : {
|
|
83
|
+
type: PropType<unknown extends Defaults["requiredActive"] ? boolean : boolean | Defaults["requiredActive"]>;
|
|
84
|
+
default: unknown extends Defaults["requiredActive"] ? boolean : boolean | Defaults["requiredActive"];
|
|
85
|
+
};
|
|
81
86
|
activeColor: unknown extends Defaults["activeColor"] ? {
|
|
82
87
|
type: StringConstructor;
|
|
83
88
|
default: string;
|
|
84
89
|
} : Omit<{
|
|
85
90
|
type: StringConstructor;
|
|
86
91
|
default: string;
|
|
87
|
-
}, "
|
|
92
|
+
}, "type" | "default"> & {
|
|
88
93
|
type: PropType<unknown extends Defaults["activeColor"] ? string : string | Defaults["activeColor"]>;
|
|
89
94
|
default: unknown extends Defaults["activeColor"] ? string : string | Defaults["activeColor"];
|
|
90
95
|
};
|
|
@@ -101,7 +106,7 @@ export declare const YTreeViewNode: import("vue").DefineComponent<{
|
|
|
101
106
|
itemKey: Omit<{
|
|
102
107
|
type: PropType<string>;
|
|
103
108
|
default: string;
|
|
104
|
-
}, "
|
|
109
|
+
}, "type" | "default"> & {
|
|
105
110
|
type: PropType<string>;
|
|
106
111
|
default: string;
|
|
107
112
|
};
|
|
@@ -118,6 +123,7 @@ export declare const YTreeViewNode: import("vue").DefineComponent<{
|
|
|
118
123
|
enableActive: BooleanConstructor;
|
|
119
124
|
activeClass: (ArrayConstructor | StringConstructor)[];
|
|
120
125
|
activeSingleModifier: StringConstructor;
|
|
126
|
+
requiredActive: BooleanConstructor;
|
|
121
127
|
activeColor: {
|
|
122
128
|
type: StringConstructor;
|
|
123
129
|
default: string;
|
|
@@ -145,7 +151,7 @@ export declare const YTreeViewNode: import("vue").DefineComponent<{
|
|
|
145
151
|
itemKey: Omit<{
|
|
146
152
|
type: PropType<string>;
|
|
147
153
|
default: string;
|
|
148
|
-
}, "
|
|
154
|
+
}, "type" | "default"> & {
|
|
149
155
|
type: PropType<string>;
|
|
150
156
|
default: string;
|
|
151
157
|
};
|
|
@@ -162,6 +168,7 @@ export declare const YTreeViewNode: import("vue").DefineComponent<{
|
|
|
162
168
|
enableActive: BooleanConstructor;
|
|
163
169
|
activeClass: (ArrayConstructor | StringConstructor)[];
|
|
164
170
|
activeSingleModifier: StringConstructor;
|
|
171
|
+
requiredActive: BooleanConstructor;
|
|
165
172
|
activeColor: {
|
|
166
173
|
type: StringConstructor;
|
|
167
174
|
default: string;
|
|
@@ -177,6 +184,7 @@ export declare const YTreeViewNode: import("vue").DefineComponent<{
|
|
|
177
184
|
}>>, {
|
|
178
185
|
disableTransition: boolean;
|
|
179
186
|
enableActive: boolean;
|
|
187
|
+
requiredActive: boolean;
|
|
180
188
|
activeColor: string;
|
|
181
189
|
enableSelect: boolean;
|
|
182
190
|
items: any[];
|
|
@@ -54,7 +54,7 @@ export declare const pressChoicePropsOptions: <Defaults extends {
|
|
|
54
54
|
} : Omit<{
|
|
55
55
|
type: null;
|
|
56
56
|
default: undefined;
|
|
57
|
-
}, "
|
|
57
|
+
}, "type" | "default"> & {
|
|
58
58
|
type: PropType<unknown extends Defaults["modelValue"] ? any : any>;
|
|
59
59
|
default: unknown extends Defaults["modelValue"] ? any : any;
|
|
60
60
|
};
|
|
@@ -1 +1,3 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
1
2
|
export declare function useModelDuplex(props: any, prop?: string, defaultValue?: any, getIn?: (value?: any) => any, setOut?: (value: any) => any): import("vue").WritableComputedRef<any>;
|
|
3
|
+
export declare function useProvided<T>(props: any, prop: string, provided: Ref<T>): import("vue").WritableComputedRef<any>;
|
|
@@ -18,7 +18,7 @@ export declare const pressCoordinateProps: <Defaults extends {
|
|
|
18
18
|
} : Omit<{
|
|
19
19
|
type: PropType<"levitation" | "arrangement" | CoordinateStrategyFn>;
|
|
20
20
|
default: string;
|
|
21
|
-
}, "
|
|
21
|
+
}, "type" | "default"> & {
|
|
22
22
|
type: PropType<unknown extends Defaults["coordinateStrategy"] ? "levitation" | "arrangement" | CoordinateStrategyFn : NonNullable<"levitation" | "arrangement" | CoordinateStrategyFn> | Defaults["coordinateStrategy"]>;
|
|
23
23
|
default: unknown extends Defaults["coordinateStrategy"] ? "levitation" | "arrangement" | CoordinateStrategyFn : NonNullable<"levitation" | "arrangement" | CoordinateStrategyFn> | Defaults["coordinateStrategy"];
|
|
24
24
|
};
|
|
@@ -28,7 +28,7 @@ export declare const pressCoordinateProps: <Defaults extends {
|
|
|
28
28
|
} : Omit<{
|
|
29
29
|
type: PropType<"default" | "top" | "end" | "right" | "bottom" | "left" | "start">;
|
|
30
30
|
default: string;
|
|
31
|
-
}, "
|
|
31
|
+
}, "type" | "default"> & {
|
|
32
32
|
type: PropType<unknown extends Defaults["position"] ? "default" | "top" | "end" | "right" | "bottom" | "left" | "start" : NonNullable<"default" | "top" | "end" | "right" | "bottom" | "left" | "start"> | Defaults["position"]>;
|
|
33
33
|
default: unknown extends Defaults["position"] ? "default" | "top" | "end" | "right" | "bottom" | "left" | "start" : NonNullable<"default" | "top" | "end" | "right" | "bottom" | "left" | "start"> | Defaults["position"];
|
|
34
34
|
};
|
|
@@ -38,7 +38,7 @@ export declare const pressCoordinateProps: <Defaults extends {
|
|
|
38
38
|
} : Omit<{
|
|
39
39
|
type: PropType<"end" | "start" | "center">;
|
|
40
40
|
default: string;
|
|
41
|
-
}, "
|
|
41
|
+
}, "type" | "default"> & {
|
|
42
42
|
type: PropType<unknown extends Defaults["align"] ? "end" | "start" | "center" : NonNullable<"end" | "start" | "center"> | Defaults["align"]>;
|
|
43
43
|
default: unknown extends Defaults["align"] ? "end" | "start" | "center" : NonNullable<"end" | "start" | "center"> | Defaults["align"];
|
|
44
44
|
};
|
|
@@ -48,7 +48,7 @@ export declare const pressCoordinateProps: <Defaults extends {
|
|
|
48
48
|
} : Omit<{
|
|
49
49
|
type: StringConstructor;
|
|
50
50
|
default: string;
|
|
51
|
-
}, "
|
|
51
|
+
}, "type" | "default"> & {
|
|
52
52
|
type: PropType<unknown extends Defaults["origin"] ? string : string | Defaults["origin"]>;
|
|
53
53
|
default: unknown extends Defaults["origin"] ? string : string | Defaults["origin"];
|
|
54
54
|
};
|
|
@@ -56,7 +56,7 @@ export declare const pressCoordinateProps: <Defaults extends {
|
|
|
56
56
|
type: (ArrayConstructor | StringConstructor | NumberConstructor)[];
|
|
57
57
|
} : Omit<{
|
|
58
58
|
type: (ArrayConstructor | StringConstructor | NumberConstructor)[];
|
|
59
|
-
}, "
|
|
59
|
+
}, "type" | "default"> & {
|
|
60
60
|
type: PropType<unknown extends Defaults["offset"] ? string | number | unknown[] : NonNullable<string | number | unknown[]> | Defaults["offset"]>;
|
|
61
61
|
default: unknown extends Defaults["offset"] ? string | number | unknown[] : NonNullable<string | number | unknown[]> | Defaults["offset"];
|
|
62
62
|
};
|
|
@@ -66,7 +66,7 @@ export declare const pressCoordinateProps: <Defaults extends {
|
|
|
66
66
|
} : Omit<{
|
|
67
67
|
type: NumberConstructor;
|
|
68
68
|
default: number;
|
|
69
|
-
}, "
|
|
69
|
+
}, "type" | "default"> & {
|
|
70
70
|
type: PropType<unknown extends Defaults["viewportMargin"] ? number : number | Defaults["viewportMargin"]>;
|
|
71
71
|
default: unknown extends Defaults["viewportMargin"] ? number : number | Defaults["viewportMargin"];
|
|
72
72
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LocaleModule } from '../../i18n/types';
|
|
2
|
+
import { DateInstance, DateOptions } from './types';
|
|
3
|
+
export declare const YUYEON_DATE_KEY: unique symbol;
|
|
4
|
+
export declare const YUYEON_DATE_OPTIONS_KEY: unique symbol;
|
|
5
|
+
export declare function createDateModule(options: DateOptions, locale: LocaleModule): {
|
|
6
|
+
options: {
|
|
7
|
+
[x: string]: any;
|
|
8
|
+
};
|
|
9
|
+
instance: any;
|
|
10
|
+
};
|
|
11
|
+
export declare function useDate(): DateInstance;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DateAdapter } from '../../util/date/types';
|
|
2
|
+
export interface DateOptions {
|
|
3
|
+
adapter: any;
|
|
4
|
+
locale: Record<string, any>;
|
|
5
|
+
formats?: Record<string, any>;
|
|
6
|
+
}
|
|
7
|
+
export interface DateInstanceType {
|
|
8
|
+
instanceType: unknown;
|
|
9
|
+
}
|
|
10
|
+
export interface DateInstance<T = DateInstanceType['instanceType']> extends DateAdapter<T> {
|
|
11
|
+
locale?: any;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LocaleModule, LocaleOptions } from '../../i18n/types';
|
|
2
|
+
import { RtlModule, RtlOptions, RtlProps } from './rtl';
|
|
3
|
+
export declare function createI18nModule(options?: LocaleOptions & RtlOptions): {
|
|
4
|
+
localeModule: LocaleModule;
|
|
5
|
+
rtlModule: RtlModule;
|
|
6
|
+
};
|
|
7
|
+
export declare function useI18n(): LocaleModule & RtlModule;
|
|
8
|
+
export declare function provideI18n(props: LocaleOptions & RtlProps): any;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
import { LocaleModule } from '../../i18n/types';
|
|
3
|
+
export declare const YUYEON_RTL_KEY: unique symbol;
|
|
4
|
+
export interface RtlOptions {
|
|
5
|
+
rtlOptions: Record<string, boolean>;
|
|
6
|
+
}
|
|
7
|
+
export interface RtlProps {
|
|
8
|
+
rtl?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface RtlModule {
|
|
11
|
+
rtl: Ref<boolean>;
|
|
12
|
+
rtlOptions: Ref<Record<string, boolean>>;
|
|
13
|
+
rtlClasses: Ref<string>;
|
|
14
|
+
}
|
|
15
|
+
export declare function createRtlModule(localeModule: LocaleModule, options?: RtlOptions): RtlModule;
|
|
16
|
+
export declare function createRtlProvideValue(localeModule: LocaleModule, rtlOptions: RtlModule['rtlOptions'], props: RtlProps): RtlModule;
|
|
17
|
+
export declare function useRtl(): {
|
|
18
|
+
rtl: any;
|
|
19
|
+
rtlClasses: any;
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const YUYEON_I18N_KEY: unique symbol;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import type { InjectionKey, PropType, Ref } from 'vue';
|
|
2
|
+
import { JSXComponent } from '../types';
|
|
3
|
+
type IconComponent = JSXComponent<IconProps>;
|
|
4
|
+
export type IconValue = string | (string | [path: string, opacity: number])[] | IconComponent | {
|
|
5
|
+
component: JSXComponent;
|
|
6
|
+
props?: any;
|
|
7
|
+
} | {
|
|
8
|
+
alias: string;
|
|
9
|
+
iconProps?: any;
|
|
10
|
+
};
|
|
11
|
+
export declare const IconPropOption: PropType<IconValue>;
|
|
12
|
+
type IconProps = {
|
|
13
|
+
tag: string;
|
|
14
|
+
icon?: IconValue;
|
|
15
|
+
disabled?: Boolean;
|
|
16
|
+
};
|
|
17
|
+
export interface IconSet {
|
|
18
|
+
component: IconComponent;
|
|
19
|
+
}
|
|
20
|
+
export declare const IconValue: PropType<IconValue>;
|
|
21
|
+
export type IconModuleOptions = {
|
|
22
|
+
defaultSet?: string;
|
|
23
|
+
sets?: Record<string, IconSet>;
|
|
24
|
+
aliases?: Partial<Record<string, any>>;
|
|
25
|
+
};
|
|
26
|
+
export declare const pressIconPropsOptions: <Defaults extends {
|
|
27
|
+
icon?: unknown;
|
|
28
|
+
tag?: unknown;
|
|
29
|
+
} = {}>(defaults?: Defaults | undefined) => {
|
|
30
|
+
icon: unknown extends Defaults["icon"] ? {
|
|
31
|
+
type: PropType<IconValue>;
|
|
32
|
+
} : Omit<{
|
|
33
|
+
type: PropType<IconValue>;
|
|
34
|
+
}, "type" | "default"> & {
|
|
35
|
+
type: PropType<unknown extends Defaults["icon"] ? IconValue : Defaults["icon"] | NonNullable<IconValue>>;
|
|
36
|
+
default: unknown extends Defaults["icon"] ? IconValue : Defaults["icon"] | NonNullable<IconValue>;
|
|
37
|
+
};
|
|
38
|
+
tag: unknown extends Defaults["tag"] ? {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
required: true;
|
|
41
|
+
} : Omit<{
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
required: true;
|
|
44
|
+
}, "type" | "default"> & {
|
|
45
|
+
type: PropType<unknown extends Defaults["tag"] ? string : string | Defaults["tag"]>;
|
|
46
|
+
default: unknown extends Defaults["tag"] ? string : string | Defaults["tag"];
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export declare const YComponentIcon: import("vue").DefineComponent<{
|
|
50
|
+
icon: {
|
|
51
|
+
type: PropType<IconValue>;
|
|
52
|
+
};
|
|
53
|
+
tag: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
58
|
+
icon: {
|
|
59
|
+
type: PropType<IconValue>;
|
|
60
|
+
};
|
|
61
|
+
tag: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
required: true;
|
|
64
|
+
};
|
|
65
|
+
}>>, {}, {}>;
|
|
66
|
+
export type YComponentIcon = InstanceType<typeof YComponentIcon>;
|
|
67
|
+
export declare const YSvgIcon: import("vue").DefineComponent<{
|
|
68
|
+
icon: {
|
|
69
|
+
type: PropType<IconValue>;
|
|
70
|
+
};
|
|
71
|
+
tag: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
required: true;
|
|
74
|
+
};
|
|
75
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
76
|
+
icon: {
|
|
77
|
+
type: PropType<IconValue>;
|
|
78
|
+
};
|
|
79
|
+
tag: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
83
|
+
}>>, {}, {}>;
|
|
84
|
+
export type YSvgIcon = InstanceType<typeof YSvgIcon>;
|
|
85
|
+
export declare const YUYEON_ICON_KEY: InjectionKey<Required<IconModuleOptions>>;
|
|
86
|
+
export declare function createIconModule(options?: IconModuleOptions): {
|
|
87
|
+
[x: string]: any;
|
|
88
|
+
};
|
|
89
|
+
type IconInstance = {
|
|
90
|
+
component: IconComponent;
|
|
91
|
+
icon?: IconValue;
|
|
92
|
+
};
|
|
93
|
+
export declare function useIcon(iconProp: Ref<IconValue | undefined>): {
|
|
94
|
+
iconData: import("vue").ComputedRef<IconInstance>;
|
|
95
|
+
};
|
|
96
|
+
export {};
|
|
@@ -19,7 +19,7 @@ declare const listItemsPropsOptions: {
|
|
|
19
19
|
itemKey: Omit<{
|
|
20
20
|
type: import("vue").PropType<string>;
|
|
21
21
|
default: string;
|
|
22
|
-
}, "
|
|
22
|
+
}, "type" | "default"> & {
|
|
23
23
|
type: import("vue").PropType<string>;
|
|
24
24
|
default: string;
|
|
25
25
|
};
|
|
@@ -30,7 +30,7 @@ declare const listItemsPropsOptions: {
|
|
|
30
30
|
itemChildren: Omit<{
|
|
31
31
|
type: import("vue").PropType<string | boolean>;
|
|
32
32
|
default: string;
|
|
33
|
-
}, "
|
|
33
|
+
}, "type" | "default"> & {
|
|
34
34
|
type: import("vue").PropType<NonNullable<string | boolean>>;
|
|
35
35
|
default: NonNullable<string | boolean>;
|
|
36
36
|
};
|
|
@@ -53,23 +53,23 @@ export declare const pressListItemsPropsOptions: <Defaults extends {
|
|
|
53
53
|
} : Omit<{
|
|
54
54
|
type: import("vue").PropType<any[]>;
|
|
55
55
|
default: () => never[];
|
|
56
|
-
}, "
|
|
56
|
+
}, "type" | "default"> & {
|
|
57
57
|
type: import("vue").PropType<unknown extends Defaults["items"] ? any[] : any[] | Defaults["items"]>;
|
|
58
58
|
default: unknown extends Defaults["items"] ? any[] : any[] | Defaults["items"];
|
|
59
59
|
};
|
|
60
60
|
itemKey: unknown extends Defaults["itemKey"] ? Omit<{
|
|
61
61
|
type: import("vue").PropType<string>;
|
|
62
62
|
default: string;
|
|
63
|
-
}, "
|
|
63
|
+
}, "type" | "default"> & {
|
|
64
64
|
type: import("vue").PropType<string>;
|
|
65
65
|
default: string;
|
|
66
66
|
} : Omit<Omit<{
|
|
67
67
|
type: import("vue").PropType<string>;
|
|
68
68
|
default: string;
|
|
69
|
-
}, "
|
|
69
|
+
}, "type" | "default"> & {
|
|
70
70
|
type: import("vue").PropType<string>;
|
|
71
71
|
default: string;
|
|
72
|
-
}, "
|
|
72
|
+
}, "type" | "default"> & {
|
|
73
73
|
type: import("vue").PropType<unknown extends Defaults["itemKey"] ? string : string | Defaults["itemKey"]>;
|
|
74
74
|
default: unknown extends Defaults["itemKey"] ? string : string | Defaults["itemKey"];
|
|
75
75
|
};
|
|
@@ -79,23 +79,23 @@ export declare const pressListItemsPropsOptions: <Defaults extends {
|
|
|
79
79
|
} : Omit<{
|
|
80
80
|
type: import("vue").PropType<string>;
|
|
81
81
|
default: string;
|
|
82
|
-
}, "
|
|
82
|
+
}, "type" | "default"> & {
|
|
83
83
|
type: import("vue").PropType<unknown extends Defaults["itemText"] ? string : string | Defaults["itemText"]>;
|
|
84
84
|
default: unknown extends Defaults["itemText"] ? string : string | Defaults["itemText"];
|
|
85
85
|
};
|
|
86
86
|
itemChildren: unknown extends Defaults["itemChildren"] ? Omit<{
|
|
87
87
|
type: import("vue").PropType<string | boolean>;
|
|
88
88
|
default: string;
|
|
89
|
-
}, "
|
|
89
|
+
}, "type" | "default"> & {
|
|
90
90
|
type: import("vue").PropType<NonNullable<string | boolean>>;
|
|
91
91
|
default: NonNullable<string | boolean>;
|
|
92
92
|
} : Omit<Omit<{
|
|
93
93
|
type: import("vue").PropType<string | boolean>;
|
|
94
94
|
default: string;
|
|
95
|
-
}, "
|
|
95
|
+
}, "type" | "default"> & {
|
|
96
96
|
type: import("vue").PropType<NonNullable<string | boolean>>;
|
|
97
97
|
default: NonNullable<string | boolean>;
|
|
98
|
-
}, "
|
|
98
|
+
}, "type" | "default"> & {
|
|
99
99
|
type: import("vue").PropType<unknown extends Defaults["itemChildren"] ? NonNullable<string | boolean> : Defaults["itemChildren"] | NonNullable<NonNullable<string | boolean>>>;
|
|
100
100
|
default: unknown extends Defaults["itemChildren"] ? NonNullable<string | boolean> : Defaults["itemChildren"] | NonNullable<NonNullable<string | boolean>>;
|
|
101
101
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { App, ComputedRef, Ref } from 'vue';
|
|
1
|
+
import type { App, ComputedRef, PropType, Ref } from 'vue';
|
|
2
2
|
import { ThemeScheme } from './setting';
|
|
3
3
|
import type { ThemeOptions } from './types';
|
|
4
4
|
export type { ThemeOptions };
|
|
5
5
|
export declare const Y_THEME_PREFIX = "y-theme";
|
|
6
6
|
export interface ThemeModuleInstance {
|
|
7
|
-
scheme: keyof typeof ThemeScheme | 'auto'
|
|
7
|
+
scheme: Ref<keyof typeof ThemeScheme | 'auto'>;
|
|
8
8
|
theme: Ref<[string, string?]>;
|
|
9
9
|
readonly themes: any;
|
|
10
10
|
readonly global: {
|
|
11
|
-
scheme: keyof typeof ThemeScheme | 'auto'
|
|
11
|
+
scheme: Ref<keyof typeof ThemeScheme | 'auto'>;
|
|
12
12
|
theme: Ref<[string, string?]>;
|
|
13
13
|
};
|
|
14
14
|
readonly currentThemeKey: Readonly<ComputedRef<string>>;
|
|
@@ -22,8 +22,8 @@ export declare const YUYEON_THEME_KEY: unique symbol;
|
|
|
22
22
|
export declare const pressThemePropsOptions: <Defaults extends {
|
|
23
23
|
theme?: unknown;
|
|
24
24
|
} = {}>(defaults?: Defaults | undefined) => {
|
|
25
|
-
theme: unknown extends Defaults["theme"] ?
|
|
26
|
-
type:
|
|
25
|
+
theme: unknown extends Defaults["theme"] ? PropType<string> : {
|
|
26
|
+
type: PropType<unknown extends Defaults["theme"] ? string : string | Defaults["theme"]>;
|
|
27
27
|
default: unknown extends Defaults["theme"] ? string : string | Defaults["theme"];
|
|
28
28
|
};
|
|
29
29
|
};
|