yuyeon 0.0.42-rc6 → 0.0.42-rc8
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 +3129 -2941
- package/dist/yuyeon.umd.cjs +6 -6
- 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/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 +1 -0
- package/lib/components/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/menu/YMenu.mjs +16 -4
- 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/composables/icon.mjs +141 -0
- package/lib/composables/icon.mjs.map +1 -1
- package/lib/composables/theme/index.mjs.map +1 -1
- package/lib/index.mjs +3 -0
- package/lib/index.mjs.map +1 -1
- package/lib/types/index.mjs.map +1 -1
- package/lib/util/date/adapters/yuyeon-date-adapter.mjs +1 -1
- package/lib/util/date/adapters/yuyeon-date-adapter.mjs.map +1 -1
- package/lib/util/date/built-in.mjs +6 -2
- package/lib/util/date/built-in.mjs.map +1 -1
- package/package.json +2 -2
- 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 +1 -1
- package/types/components/dialog/YDialog.d.ts +1 -0
- 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 +1 -0
- package/types/components/input/YInput.d.ts +7 -7
- package/types/components/layer/YLayer.d.ts +20 -19
- package/types/components/layer/active-stack.d.ts +1 -2
- package/types/components/list/YListItem.d.ts +2 -2
- package/types/components/menu/YMenu.d.ts +8 -3
- 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 +74 -58
- 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/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 +10 -10
- package/types/components/tooltip/YTooltip.d.ts +9 -8
- package/types/components/tree-view/YTreeView.d.ts +4 -4
- package/types/components/tree-view/YTreeViewNode.d.ts +9 -9
- package/types/composables/choice.d.ts +1 -1
- package/types/composables/coordinate/index.d.ts +6 -6
- package/types/composables/icon.d.ts +96 -0
- package/types/composables/list-items.d.ts +10 -10
- package/types/composables/theme/index.d.ts +2 -2
- package/types/globals.d.ts +12 -7
- package/types/shims.d.ts +88 -87
- package/types/types/index.d.ts +5 -0
- package/types/util/date/built-in.d.ts +2 -2
|
@@ -42,7 +42,7 @@ export declare const pressYTextareaPropsOptions: <Defaults extends {
|
|
|
42
42
|
type: PropType<string | number>;
|
|
43
43
|
} : Omit<{
|
|
44
44
|
type: PropType<string | number>;
|
|
45
|
-
}, "
|
|
45
|
+
}, "type" | "default"> & {
|
|
46
46
|
type: PropType<unknown extends Defaults["width"] ? string | number : NonNullable<string | number> | Defaults["width"]>;
|
|
47
47
|
default: unknown extends Defaults["width"] ? string | number : NonNullable<string | number> | Defaults["width"];
|
|
48
48
|
};
|
|
@@ -56,7 +56,7 @@ export declare const pressYTextareaPropsOptions: <Defaults extends {
|
|
|
56
56
|
} : Omit<{
|
|
57
57
|
type: PropType<string>;
|
|
58
58
|
default: string;
|
|
59
|
-
}, "
|
|
59
|
+
}, "type" | "default"> & {
|
|
60
60
|
type: PropType<unknown extends Defaults["displayTag"] ? string : string | Defaults["displayTag"]>;
|
|
61
61
|
default: unknown extends Defaults["displayTag"] ? string : string | Defaults["displayTag"];
|
|
62
62
|
};
|
|
@@ -68,7 +68,7 @@ export declare const pressYTextareaPropsOptions: <Defaults extends {
|
|
|
68
68
|
type: PropType<any>;
|
|
69
69
|
} : Omit<{
|
|
70
70
|
type: PropType<any>;
|
|
71
|
-
}, "
|
|
71
|
+
}, "type" | "default"> & {
|
|
72
72
|
type: PropType<unknown extends Defaults["modelValue"] ? any : any>;
|
|
73
73
|
default: unknown extends Defaults["modelValue"] ? any : any;
|
|
74
74
|
};
|
|
@@ -78,7 +78,7 @@ export declare const pressYTextareaPropsOptions: <Defaults extends {
|
|
|
78
78
|
} : Omit<{
|
|
79
79
|
type: PropType<boolean>;
|
|
80
80
|
default: boolean;
|
|
81
|
-
}, "
|
|
81
|
+
}, "type" | "default"> & {
|
|
82
82
|
type: PropType<unknown extends Defaults["autoSelect"] ? boolean : boolean | Defaults["autoSelect"]>;
|
|
83
83
|
default: unknown extends Defaults["autoSelect"] ? boolean : boolean | Defaults["autoSelect"];
|
|
84
84
|
};
|
|
@@ -88,7 +88,7 @@ export declare const pressYTextareaPropsOptions: <Defaults extends {
|
|
|
88
88
|
} : Omit<{
|
|
89
89
|
type: PropType<boolean>;
|
|
90
90
|
default: boolean;
|
|
91
|
-
}, "
|
|
91
|
+
}, "type" | "default"> & {
|
|
92
92
|
type: PropType<unknown extends Defaults["floating"] ? boolean : boolean | Defaults["floating"]>;
|
|
93
93
|
default: unknown extends Defaults["floating"] ? boolean : boolean | Defaults["floating"];
|
|
94
94
|
};
|
|
@@ -98,7 +98,7 @@ export declare const pressYTextareaPropsOptions: <Defaults extends {
|
|
|
98
98
|
} : Omit<{
|
|
99
99
|
type: PropType<boolean>;
|
|
100
100
|
default: () => false;
|
|
101
|
-
}, "
|
|
101
|
+
}, "type" | "default"> & {
|
|
102
102
|
type: PropType<unknown extends Defaults["floated"] ? boolean : boolean | Defaults["floated"]>;
|
|
103
103
|
default: unknown extends Defaults["floated"] ? boolean : boolean | Defaults["floated"];
|
|
104
104
|
};
|
|
@@ -120,7 +120,7 @@ export declare const pressYTextareaPropsOptions: <Defaults extends {
|
|
|
120
120
|
} : Omit<{
|
|
121
121
|
type: PropType<string>;
|
|
122
122
|
default: string;
|
|
123
|
-
}, "
|
|
123
|
+
}, "type" | "default"> & {
|
|
124
124
|
type: PropType<unknown extends Defaults["variation"] ? string : string | Defaults["variation"]>;
|
|
125
125
|
default: unknown extends Defaults["variation"] ? string : string | Defaults["variation"];
|
|
126
126
|
};
|
|
@@ -150,7 +150,7 @@ export declare const pressYTextareaPropsOptions: <Defaults extends {
|
|
|
150
150
|
} : Omit<{
|
|
151
151
|
type: PropType<"success" | "warning" | "error" | undefined>;
|
|
152
152
|
validator(value: string): boolean;
|
|
153
|
-
}, "
|
|
153
|
+
}, "type" | "default"> & {
|
|
154
154
|
type: PropType<unknown extends Defaults["status"] ? "success" | "warning" | "error" | undefined : NonNullable<"success" | "warning" | "error" | undefined> | Defaults["status"]>;
|
|
155
155
|
default: unknown extends Defaults["status"] ? "success" | "warning" | "error" | undefined : NonNullable<"success" | "warning" | "error" | undefined> | Defaults["status"];
|
|
156
156
|
};
|
|
@@ -232,13 +232,14 @@ export declare const YTextarea: import("vue").DefineComponent<{
|
|
|
232
232
|
floated?: boolean | undefined;
|
|
233
233
|
focused?: boolean | undefined;
|
|
234
234
|
readonly name?: string | undefined;
|
|
235
|
+
readonly required?: boolean | undefined;
|
|
236
|
+
readonly disabled?: boolean | undefined;
|
|
235
237
|
readonly theme?: string | undefined;
|
|
236
238
|
class?: unknown;
|
|
237
239
|
readonly loading?: boolean | undefined;
|
|
238
240
|
readonly variation?: string | undefined;
|
|
239
241
|
readonly outlined?: boolean | undefined;
|
|
240
242
|
readonly filled?: boolean | undefined;
|
|
241
|
-
readonly disabled?: boolean | undefined;
|
|
242
243
|
readonly width?: string | number | undefined;
|
|
243
244
|
readonly height?: string | number | undefined;
|
|
244
245
|
readonly modelValue?: any;
|
|
@@ -246,7 +247,6 @@ export declare const YTextarea: import("vue").DefineComponent<{
|
|
|
246
247
|
'onUpdate:focused'?: (((v: boolean) => void) & ((...args: any[]) => any)) | undefined;
|
|
247
248
|
readonly label?: string | undefined;
|
|
248
249
|
readonly placeholder?: string | undefined;
|
|
249
|
-
readonly required?: boolean | undefined;
|
|
250
250
|
readonly ceramic?: boolean | undefined;
|
|
251
251
|
readonly readonly?: boolean | undefined;
|
|
252
252
|
readonly validators?: string[] | ((v: any) => string | boolean)[] | undefined;
|
|
@@ -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
|
};
|
|
@@ -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
|
};
|
|
@@ -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;
|
|
@@ -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
|
};
|
|
@@ -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
|
};
|
|
@@ -54,7 +54,7 @@ export declare const YTreeView: import("vue").DefineComponent<{
|
|
|
54
54
|
default: string;
|
|
55
55
|
};
|
|
56
56
|
returnItem: BooleanConstructor;
|
|
57
|
-
defaultExpand: (
|
|
57
|
+
defaultExpand: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
58
58
|
filter: PropType<TreeviewFilterFn>;
|
|
59
59
|
searchDebounceWait: {
|
|
60
60
|
type: PropType<number>;
|
|
@@ -76,7 +76,7 @@ export declare const YTreeView: import("vue").DefineComponent<{
|
|
|
76
76
|
itemKey: Omit<{
|
|
77
77
|
type: PropType<string>;
|
|
78
78
|
default: string;
|
|
79
|
-
}, "
|
|
79
|
+
}, "type" | "default"> & {
|
|
80
80
|
type: PropType<string>;
|
|
81
81
|
default: string;
|
|
82
82
|
};
|
|
@@ -121,7 +121,7 @@ export declare const YTreeView: import("vue").DefineComponent<{
|
|
|
121
121
|
default: string;
|
|
122
122
|
};
|
|
123
123
|
returnItem: BooleanConstructor;
|
|
124
|
-
defaultExpand: (
|
|
124
|
+
defaultExpand: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
125
125
|
filter: PropType<TreeviewFilterFn>;
|
|
126
126
|
searchDebounceWait: {
|
|
127
127
|
type: PropType<number>;
|
|
@@ -19,23 +19,23 @@ export declare const pressYTreeViewNodeProps: <Defaults extends {
|
|
|
19
19
|
} : Omit<{
|
|
20
20
|
type: PropType<any[]>;
|
|
21
21
|
default: () => never[];
|
|
22
|
-
}, "
|
|
22
|
+
}, "type" | "default"> & {
|
|
23
23
|
type: PropType<unknown extends Defaults["items"] ? any[] : any[] | Defaults["items"]>;
|
|
24
24
|
default: unknown extends Defaults["items"] ? any[] : any[] | Defaults["items"];
|
|
25
25
|
};
|
|
26
26
|
itemKey: unknown extends Defaults["itemKey"] ? Omit<{
|
|
27
27
|
type: PropType<string>;
|
|
28
28
|
default: string;
|
|
29
|
-
}, "
|
|
29
|
+
}, "type" | "default"> & {
|
|
30
30
|
type: PropType<string>;
|
|
31
31
|
default: string;
|
|
32
32
|
} : Omit<Omit<{
|
|
33
33
|
type: PropType<string>;
|
|
34
34
|
default: string;
|
|
35
|
-
}, "
|
|
35
|
+
}, "type" | "default"> & {
|
|
36
36
|
type: PropType<string>;
|
|
37
37
|
default: string;
|
|
38
|
-
}, "
|
|
38
|
+
}, "type" | "default"> & {
|
|
39
39
|
type: PropType<unknown extends Defaults["itemKey"] ? string : string | Defaults["itemKey"]>;
|
|
40
40
|
default: unknown extends Defaults["itemKey"] ? string : string | Defaults["itemKey"];
|
|
41
41
|
};
|
|
@@ -45,7 +45,7 @@ export declare const pressYTreeViewNodeProps: <Defaults extends {
|
|
|
45
45
|
} : Omit<{
|
|
46
46
|
type: PropType<string>;
|
|
47
47
|
default: string;
|
|
48
|
-
}, "
|
|
48
|
+
}, "type" | "default"> & {
|
|
49
49
|
type: PropType<unknown extends Defaults["itemText"] ? string : string | Defaults["itemText"]>;
|
|
50
50
|
default: unknown extends Defaults["itemText"] ? string : string | Defaults["itemText"];
|
|
51
51
|
};
|
|
@@ -55,7 +55,7 @@ export declare const pressYTreeViewNodeProps: <Defaults extends {
|
|
|
55
55
|
} : Omit<{
|
|
56
56
|
type: PropType<string | boolean>;
|
|
57
57
|
default: string;
|
|
58
|
-
}, "
|
|
58
|
+
}, "type" | "default"> & {
|
|
59
59
|
type: PropType<unknown extends Defaults["itemChildren"] ? string | boolean : NonNullable<string | boolean> | Defaults["itemChildren"]>;
|
|
60
60
|
default: unknown extends Defaults["itemChildren"] ? string | boolean : NonNullable<string | boolean> | Defaults["itemChildren"];
|
|
61
61
|
};
|
|
@@ -89,7 +89,7 @@ export declare const pressYTreeViewNodeProps: <Defaults extends {
|
|
|
89
89
|
} : Omit<{
|
|
90
90
|
type: StringConstructor;
|
|
91
91
|
default: string;
|
|
92
|
-
}, "
|
|
92
|
+
}, "type" | "default"> & {
|
|
93
93
|
type: PropType<unknown extends Defaults["activeColor"] ? string : string | Defaults["activeColor"]>;
|
|
94
94
|
default: unknown extends Defaults["activeColor"] ? string : string | Defaults["activeColor"];
|
|
95
95
|
};
|
|
@@ -106,7 +106,7 @@ export declare const YTreeViewNode: import("vue").DefineComponent<{
|
|
|
106
106
|
itemKey: Omit<{
|
|
107
107
|
type: PropType<string>;
|
|
108
108
|
default: string;
|
|
109
|
-
}, "
|
|
109
|
+
}, "type" | "default"> & {
|
|
110
110
|
type: PropType<string>;
|
|
111
111
|
default: string;
|
|
112
112
|
};
|
|
@@ -151,7 +151,7 @@ export declare const YTreeViewNode: import("vue").DefineComponent<{
|
|
|
151
151
|
itemKey: Omit<{
|
|
152
152
|
type: PropType<string>;
|
|
153
153
|
default: string;
|
|
154
|
-
}, "
|
|
154
|
+
}, "type" | "default"> & {
|
|
155
155
|
type: PropType<string>;
|
|
156
156
|
default: string;
|
|
157
157
|
};
|
|
@@ -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
|
};
|
|
@@ -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,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
|
};
|
|
@@ -4,11 +4,11 @@ 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>>;
|
package/types/globals.d.ts
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import type { VNode } from "vue";
|
|
2
|
+
import type {NativeElements, ReservedProps} from "@vue/runtime-dom";
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
4
|
+
export namespace JSX {
|
|
5
|
+
export interface Element extends VNode {}
|
|
6
|
+
export interface ElementClass {
|
|
7
|
+
$props: {}
|
|
8
|
+
}
|
|
9
|
+
export interface ElementAttributesProperty {
|
|
10
|
+
$props: {}
|
|
11
|
+
}
|
|
12
|
+
export interface IntrinsicElements extends NativeElements {
|
|
13
|
+
[name: string]: any
|
|
10
14
|
}
|
|
15
|
+
export interface IntrinsicAttributes extends ReservedProps {}
|
|
11
16
|
}
|