@uzum-tech/ui 2.1.3 → 2.2.0
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/index.js +1236 -530
- package/dist/index.mjs +1232 -531
- package/dist/index.prod.js +2 -2
- package/dist/index.prod.mjs +2 -2
- package/es/_internal/icon/index.d.ts +1 -1
- package/es/_internal/icon/index.mjs +1 -1
- package/es/_internal/icon/src/UIcon.d.ts +11 -1
- package/es/_internal/icon/src/UIcon.mjs +20 -8
- package/es/_internal/icon/src/interface.d.ts +11 -4
- package/es/_internal/icon/src/interface.mjs +4 -0
- package/es/_internal/icon/src/render-icon.d.ts +1 -0
- package/es/_internal/icon/src/render-icon.mjs +5 -0
- package/es/_internal/icons/SearchOutline.d.ts +2 -0
- package/es/_internal/icons/SearchOutline.mjs +18 -0
- package/es/_internal/icons/index.d.ts +1 -0
- package/es/_internal/icons/index.mjs +1 -0
- package/es/_mixins/use-form-item.mjs +5 -0
- package/es/_utils/dom/copy-to-clipboard.d.ts +1 -0
- package/es/_utils/dom/copy-to-clipboard.mjs +8 -0
- package/es/_utils/dom/index.d.ts +1 -0
- package/es/_utils/dom/index.mjs +1 -0
- package/es/components.d.ts +1169 -76
- package/es/components.mjs +4 -1
- package/es/config-provider/src/internal-interface.d.ts +4 -0
- package/es/data-table/src/use-table-data.d.ts +1 -1
- package/es/date-picker/src/DatePicker.mjs +7 -4
- package/es/icon/index.d.ts +1 -1
- package/es/icon/index.mjs +1 -1
- package/es/icon/src/Icon.d.ts +1 -1
- package/es/icon/src/Icon.mjs +1 -1
- package/es/icon-pack/index.d.ts +5 -0
- package/es/icon-pack/index.mjs +3 -0
- package/es/icon-pack/src/IconPack.d.ts +1047 -0
- package/es/icon-pack/src/IconPack.mjs +300 -0
- package/es/icon-pack/src/interface.d.ts +465 -0
- package/es/icon-pack/src/interface.mjs +75 -0
- package/es/icon-pack/src/styles/index.cssr.d.ts +2 -0
- package/es/icon-pack/src/styles/index.cssr.mjs +131 -0
- package/es/icon-pack/styles/dark.d.ts +123 -0
- package/es/icon-pack/styles/dark.mjs +20 -0
- package/es/icon-pack/styles/index.d.ts +3 -0
- package/es/icon-pack/styles/index.mjs +2 -0
- package/es/icon-pack/styles/light.d.ts +143 -0
- package/es/icon-pack/styles/light.mjs +64 -0
- package/es/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/es/input/src/Input.mjs +3 -1
- package/es/pagination/index.d.ts +3 -3
- package/es/pagination/index.mjs +2 -1
- package/es/pagination/src/Pagination.d.ts +74 -1379
- package/es/pagination/src/Pagination.mjs +28 -63
- package/es/pagination/src/interface.d.ts +1345 -1
- package/es/pagination/src/interface.mjs +68 -1
- package/es/themes/dark.mjs +2 -0
- package/es/themes/light.mjs +2 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/_internal/icon/index.d.ts +1 -1
- package/lib/_internal/icon/index.js +2 -1
- package/lib/_internal/icon/src/UIcon.d.ts +11 -1
- package/lib/_internal/icon/src/UIcon.js +17 -6
- package/lib/_internal/icon/src/interface.d.ts +11 -4
- package/lib/_internal/icon/src/interface.js +1 -1
- package/lib/_internal/icon/src/render-icon.d.ts +1 -0
- package/lib/_internal/icon/src/render-icon.js +4 -0
- package/lib/_internal/icons/SearchOutline.d.ts +2 -0
- package/lib/_internal/icons/SearchOutline.js +10 -0
- package/lib/_internal/icons/index.d.ts +1 -0
- package/lib/_internal/icons/index.js +3 -1
- package/lib/_mixins/use-form-item.js +5 -0
- package/lib/_utils/dom/copy-to-clipboard.d.ts +1 -0
- package/lib/_utils/dom/copy-to-clipboard.js +11 -0
- package/lib/_utils/dom/index.d.ts +1 -0
- package/lib/_utils/dom/index.js +3 -1
- package/lib/components.d.ts +1169 -76
- package/lib/components.js +12 -5
- package/lib/config-provider/src/internal-interface.d.ts +4 -0
- package/lib/data-table/src/use-table-data.d.ts +1 -1
- package/lib/date-picker/src/DatePicker.js +5 -4
- package/lib/icon/index.d.ts +1 -1
- package/lib/icon/index.js +2 -1
- package/lib/icon/src/Icon.d.ts +1 -1
- package/lib/icon/src/Icon.js +2 -1
- package/lib/icon-pack/index.d.ts +5 -0
- package/lib/icon-pack/index.js +13 -0
- package/lib/icon-pack/src/IconPack.d.ts +1047 -0
- package/lib/icon-pack/src/IconPack.js +240 -0
- package/lib/icon-pack/src/interface.d.ts +465 -0
- package/lib/icon-pack/src/interface.js +49 -0
- package/lib/icon-pack/src/styles/index.cssr.d.ts +2 -0
- package/lib/icon-pack/src/styles/index.cssr.js +136 -0
- package/lib/icon-pack/styles/dark.d.ts +123 -0
- package/lib/icon-pack/styles/dark.js +22 -0
- package/lib/icon-pack/styles/index.d.ts +3 -0
- package/lib/icon-pack/styles/index.js +10 -0
- package/lib/icon-pack/styles/light.d.ts +143 -0
- package/lib/icon-pack/styles/light.js +46 -0
- package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/lib/input/src/Input.js +3 -1
- package/lib/pagination/index.d.ts +3 -3
- package/lib/pagination/index.js +2 -1
- package/lib/pagination/src/Pagination.d.ts +74 -1379
- package/lib/pagination/src/Pagination.js +27 -40
- package/lib/pagination/src/interface.d.ts +1345 -1
- package/lib/pagination/src/interface.js +37 -0
- package/lib/themes/dark.js +110 -108
- package/lib/themes/light.js +110 -108
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/volar.d.ts +1 -0
- package/web-types.json +263 -1
|
@@ -0,0 +1,465 @@
|
|
|
1
|
+
import type { AnyIconPack } from '@uzum-tech/icons';
|
|
2
|
+
import type { ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNodeChild } from 'vue';
|
|
3
|
+
import type { EmptyProps } from '../../empty';
|
|
4
|
+
import type { InputProps } from '../../input';
|
|
5
|
+
import type { ScrollbarProps } from '../../scrollbar';
|
|
6
|
+
export interface IconPackIcon {
|
|
7
|
+
name: string;
|
|
8
|
+
group: string;
|
|
9
|
+
label: string;
|
|
10
|
+
render: () => VNodeChild;
|
|
11
|
+
}
|
|
12
|
+
export interface IconPackGroupData {
|
|
13
|
+
key: string;
|
|
14
|
+
label: string;
|
|
15
|
+
icons: IconPackIcon[];
|
|
16
|
+
}
|
|
17
|
+
export type RenderableIconPack = AnyIconPack & {
|
|
18
|
+
renderIcon?: (name: string) => VNodeChild;
|
|
19
|
+
renderAsyncIcon?: (name: string) => VNodeChild;
|
|
20
|
+
};
|
|
21
|
+
export type IconPackValue = string | null;
|
|
22
|
+
export type OnIconPackSelect = (name: string, icon: IconPackIcon) => void;
|
|
23
|
+
export type OnIconPackCopy = (text: string, icon: IconPackIcon) => void;
|
|
24
|
+
export type IconPackFormatCopy = (name: string, icon: IconPackIcon) => string;
|
|
25
|
+
export type IconPackFormatGroupLabel = (groupKey: string) => string;
|
|
26
|
+
export type IconPackFormatIconLabel = (name: string, groupKey: string) => string;
|
|
27
|
+
export declare const iconPackProps: {
|
|
28
|
+
readonly pack: PropType<AnyIconPack | string>;
|
|
29
|
+
readonly value: PropType<IconPackValue>;
|
|
30
|
+
readonly defaultValue: {
|
|
31
|
+
readonly type: PropType<IconPackValue>;
|
|
32
|
+
readonly default: null;
|
|
33
|
+
};
|
|
34
|
+
readonly disabled: {
|
|
35
|
+
readonly type: BooleanConstructor;
|
|
36
|
+
readonly default: undefined;
|
|
37
|
+
};
|
|
38
|
+
readonly title: StringConstructor;
|
|
39
|
+
readonly description: StringConstructor;
|
|
40
|
+
readonly searchable: {
|
|
41
|
+
readonly type: BooleanConstructor;
|
|
42
|
+
readonly default: true;
|
|
43
|
+
};
|
|
44
|
+
readonly searchValue: StringConstructor;
|
|
45
|
+
readonly defaultSearchValue: {
|
|
46
|
+
readonly type: StringConstructor;
|
|
47
|
+
readonly default: "";
|
|
48
|
+
};
|
|
49
|
+
readonly searchPlaceholder: StringConstructor;
|
|
50
|
+
readonly searchDebounce: {
|
|
51
|
+
readonly type: NumberConstructor;
|
|
52
|
+
readonly default: 200;
|
|
53
|
+
};
|
|
54
|
+
readonly grouped: {
|
|
55
|
+
readonly type: BooleanConstructor;
|
|
56
|
+
readonly default: true;
|
|
57
|
+
};
|
|
58
|
+
readonly columns: {
|
|
59
|
+
readonly type: PropType<number | "auto">;
|
|
60
|
+
readonly default: "auto";
|
|
61
|
+
};
|
|
62
|
+
readonly minColumnWidth: {
|
|
63
|
+
readonly type: PropType<number | string>;
|
|
64
|
+
readonly default: 150;
|
|
65
|
+
};
|
|
66
|
+
readonly iconSize: {
|
|
67
|
+
readonly type: PropType<number | string>;
|
|
68
|
+
readonly default: 40;
|
|
69
|
+
};
|
|
70
|
+
readonly height: PropType<number | string>;
|
|
71
|
+
readonly maxBodyHeight: {
|
|
72
|
+
readonly type: PropType<number | string>;
|
|
73
|
+
readonly default: 496;
|
|
74
|
+
};
|
|
75
|
+
readonly contentPadding: {
|
|
76
|
+
readonly type: PropType<number | string>;
|
|
77
|
+
readonly default: 24;
|
|
78
|
+
};
|
|
79
|
+
readonly async: {
|
|
80
|
+
readonly type: BooleanConstructor;
|
|
81
|
+
readonly default: undefined;
|
|
82
|
+
};
|
|
83
|
+
readonly copyable: {
|
|
84
|
+
readonly type: BooleanConstructor;
|
|
85
|
+
readonly default: true;
|
|
86
|
+
};
|
|
87
|
+
readonly formatCopy: PropType<IconPackFormatCopy>;
|
|
88
|
+
readonly formatGroupLabel: PropType<IconPackFormatGroupLabel>;
|
|
89
|
+
readonly formatIconLabel: PropType<IconPackFormatIconLabel>;
|
|
90
|
+
readonly showGroupCounter: {
|
|
91
|
+
readonly type: BooleanConstructor;
|
|
92
|
+
readonly default: true;
|
|
93
|
+
};
|
|
94
|
+
readonly emptyText: StringConstructor;
|
|
95
|
+
readonly emptyProps: PropType<Partial<EmptyProps>>;
|
|
96
|
+
readonly searchInputProps: PropType<Partial<InputProps>>;
|
|
97
|
+
readonly scrollbarProps: PropType<Partial<ScrollbarProps>>;
|
|
98
|
+
readonly theme: PropType<import("../../_mixins").Theme<"IconPack", {
|
|
99
|
+
containerColor: string;
|
|
100
|
+
borderRadius: string;
|
|
101
|
+
titleTextColor: string;
|
|
102
|
+
descriptionTextColor: string;
|
|
103
|
+
groupTitleTextColor: string;
|
|
104
|
+
groupCounterTextColor: string;
|
|
105
|
+
cardColor: string;
|
|
106
|
+
cardColorHover: string;
|
|
107
|
+
cardColorPressed: string;
|
|
108
|
+
cardColorSelected: string;
|
|
109
|
+
cardBorderRadius: string;
|
|
110
|
+
cardIconColor: string;
|
|
111
|
+
cardIconColorSelected: string;
|
|
112
|
+
cardLabelTextColor: string;
|
|
113
|
+
cardLabelTextColorSelected: string;
|
|
114
|
+
dividerColor: string;
|
|
115
|
+
}, {
|
|
116
|
+
Input: import("../../_mixins").Theme<"Input", {
|
|
117
|
+
paddingTiny: string;
|
|
118
|
+
paddingSmall: string;
|
|
119
|
+
paddingMedium: string;
|
|
120
|
+
paddingLarge: string;
|
|
121
|
+
paddingHuge: string;
|
|
122
|
+
clearSize: string;
|
|
123
|
+
countTextColorDisabled: string;
|
|
124
|
+
countTextColor: string;
|
|
125
|
+
heightTiny: string;
|
|
126
|
+
heightSmall: string;
|
|
127
|
+
heightMedium: string;
|
|
128
|
+
heightLarge: string;
|
|
129
|
+
heightHuge: string;
|
|
130
|
+
fontSizeTiny: string;
|
|
131
|
+
fontSizeSmall: string;
|
|
132
|
+
fontSizeMedium: string;
|
|
133
|
+
fontSizeLarge: string;
|
|
134
|
+
fontSizeHuge: string;
|
|
135
|
+
lineHeight: string;
|
|
136
|
+
lineHeightTextarea: string;
|
|
137
|
+
borderRadius: string;
|
|
138
|
+
iconSize: string;
|
|
139
|
+
groupLabelTextColor: string;
|
|
140
|
+
textColor: string;
|
|
141
|
+
textColorDisabled: string;
|
|
142
|
+
textDecorationColor: string;
|
|
143
|
+
caretColor: string;
|
|
144
|
+
placeholderColor: string;
|
|
145
|
+
placeholderColorDisabled: string;
|
|
146
|
+
color: string;
|
|
147
|
+
colorDisabled: string;
|
|
148
|
+
colorFocus: string;
|
|
149
|
+
groupLabelBorder: string;
|
|
150
|
+
border: string;
|
|
151
|
+
borderHover: string;
|
|
152
|
+
borderDisabled: string;
|
|
153
|
+
borderFocus: string;
|
|
154
|
+
boxShadowFocus: string;
|
|
155
|
+
loadingColor: string;
|
|
156
|
+
loadingColorSuccess: string;
|
|
157
|
+
borderSuccess: string;
|
|
158
|
+
borderHoverSuccess: string;
|
|
159
|
+
colorFocusSuccess: string;
|
|
160
|
+
borderFocusSuccess: string;
|
|
161
|
+
boxShadowFocusSuccess: string;
|
|
162
|
+
caretColorSuccess: string;
|
|
163
|
+
loadingColorWarning: string;
|
|
164
|
+
borderWarning: string;
|
|
165
|
+
borderHoverWarning: string;
|
|
166
|
+
colorFocusWarning: string;
|
|
167
|
+
borderFocusWarning: string;
|
|
168
|
+
boxShadowFocusWarning: string;
|
|
169
|
+
caretColorWarning: string;
|
|
170
|
+
loadingColorError: string;
|
|
171
|
+
borderError: string;
|
|
172
|
+
borderHoverError: string;
|
|
173
|
+
colorFocusError: string;
|
|
174
|
+
borderFocusError: string;
|
|
175
|
+
boxShadowFocusError: string;
|
|
176
|
+
caretColorError: string;
|
|
177
|
+
clearColor: string;
|
|
178
|
+
clearColorHover: string;
|
|
179
|
+
clearColorPressed: string;
|
|
180
|
+
iconColor: string;
|
|
181
|
+
iconColorDisabled: string;
|
|
182
|
+
iconColorHover: string;
|
|
183
|
+
iconColorPressed: string;
|
|
184
|
+
suffixTextColor: string;
|
|
185
|
+
selectionColor: string;
|
|
186
|
+
}, any>;
|
|
187
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
188
|
+
height: string;
|
|
189
|
+
width: string;
|
|
190
|
+
borderRadius: string;
|
|
191
|
+
color: string;
|
|
192
|
+
colorHover: string;
|
|
193
|
+
railInsetHorizontalBottom: string;
|
|
194
|
+
railInsetHorizontalTop: string;
|
|
195
|
+
railInsetVerticalRight: string;
|
|
196
|
+
railInsetVerticalLeft: string;
|
|
197
|
+
railColor: string;
|
|
198
|
+
}, any>;
|
|
199
|
+
Empty: import("../../_mixins").Theme<"Empty", {
|
|
200
|
+
iconSizeSmall: string;
|
|
201
|
+
iconSizeMedium: string;
|
|
202
|
+
iconSizeLarge: string;
|
|
203
|
+
iconSizeHuge: string;
|
|
204
|
+
titleFontSizeSmall: string;
|
|
205
|
+
titleFontSizeMedium: string;
|
|
206
|
+
titleFontSizeLarge: string;
|
|
207
|
+
titleFontSizeHuge: string;
|
|
208
|
+
descriptionFontSizeSmall: string;
|
|
209
|
+
descriptionFontSizeMedium: string;
|
|
210
|
+
descriptionFontSizeLarge: string;
|
|
211
|
+
descriptionFontSizeHuge: string;
|
|
212
|
+
titleColor: string;
|
|
213
|
+
descriptionColor: string;
|
|
214
|
+
iconColor: string;
|
|
215
|
+
iconBgColor: string;
|
|
216
|
+
extraTextColor: string;
|
|
217
|
+
}, any>;
|
|
218
|
+
}>>;
|
|
219
|
+
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconPack", {
|
|
220
|
+
containerColor: string;
|
|
221
|
+
borderRadius: string;
|
|
222
|
+
titleTextColor: string;
|
|
223
|
+
descriptionTextColor: string;
|
|
224
|
+
groupTitleTextColor: string;
|
|
225
|
+
groupCounterTextColor: string;
|
|
226
|
+
cardColor: string;
|
|
227
|
+
cardColorHover: string;
|
|
228
|
+
cardColorPressed: string;
|
|
229
|
+
cardColorSelected: string;
|
|
230
|
+
cardBorderRadius: string;
|
|
231
|
+
cardIconColor: string;
|
|
232
|
+
cardIconColorSelected: string;
|
|
233
|
+
cardLabelTextColor: string;
|
|
234
|
+
cardLabelTextColorSelected: string;
|
|
235
|
+
dividerColor: string;
|
|
236
|
+
}, {
|
|
237
|
+
Input: import("../../_mixins").Theme<"Input", {
|
|
238
|
+
paddingTiny: string;
|
|
239
|
+
paddingSmall: string;
|
|
240
|
+
paddingMedium: string;
|
|
241
|
+
paddingLarge: string;
|
|
242
|
+
paddingHuge: string;
|
|
243
|
+
clearSize: string;
|
|
244
|
+
countTextColorDisabled: string;
|
|
245
|
+
countTextColor: string;
|
|
246
|
+
heightTiny: string;
|
|
247
|
+
heightSmall: string;
|
|
248
|
+
heightMedium: string;
|
|
249
|
+
heightLarge: string;
|
|
250
|
+
heightHuge: string;
|
|
251
|
+
fontSizeTiny: string;
|
|
252
|
+
fontSizeSmall: string;
|
|
253
|
+
fontSizeMedium: string;
|
|
254
|
+
fontSizeLarge: string;
|
|
255
|
+
fontSizeHuge: string;
|
|
256
|
+
lineHeight: string;
|
|
257
|
+
lineHeightTextarea: string;
|
|
258
|
+
borderRadius: string;
|
|
259
|
+
iconSize: string;
|
|
260
|
+
groupLabelTextColor: string;
|
|
261
|
+
textColor: string;
|
|
262
|
+
textColorDisabled: string;
|
|
263
|
+
textDecorationColor: string;
|
|
264
|
+
caretColor: string;
|
|
265
|
+
placeholderColor: string;
|
|
266
|
+
placeholderColorDisabled: string;
|
|
267
|
+
color: string;
|
|
268
|
+
colorDisabled: string;
|
|
269
|
+
colorFocus: string;
|
|
270
|
+
groupLabelBorder: string;
|
|
271
|
+
border: string;
|
|
272
|
+
borderHover: string;
|
|
273
|
+
borderDisabled: string;
|
|
274
|
+
borderFocus: string;
|
|
275
|
+
boxShadowFocus: string;
|
|
276
|
+
loadingColor: string;
|
|
277
|
+
loadingColorSuccess: string;
|
|
278
|
+
borderSuccess: string;
|
|
279
|
+
borderHoverSuccess: string;
|
|
280
|
+
colorFocusSuccess: string;
|
|
281
|
+
borderFocusSuccess: string;
|
|
282
|
+
boxShadowFocusSuccess: string;
|
|
283
|
+
caretColorSuccess: string;
|
|
284
|
+
loadingColorWarning: string;
|
|
285
|
+
borderWarning: string;
|
|
286
|
+
borderHoverWarning: string;
|
|
287
|
+
colorFocusWarning: string;
|
|
288
|
+
borderFocusWarning: string;
|
|
289
|
+
boxShadowFocusWarning: string;
|
|
290
|
+
caretColorWarning: string;
|
|
291
|
+
loadingColorError: string;
|
|
292
|
+
borderError: string;
|
|
293
|
+
borderHoverError: string;
|
|
294
|
+
colorFocusError: string;
|
|
295
|
+
borderFocusError: string;
|
|
296
|
+
boxShadowFocusError: string;
|
|
297
|
+
caretColorError: string;
|
|
298
|
+
clearColor: string;
|
|
299
|
+
clearColorHover: string;
|
|
300
|
+
clearColorPressed: string;
|
|
301
|
+
iconColor: string;
|
|
302
|
+
iconColorDisabled: string;
|
|
303
|
+
iconColorHover: string;
|
|
304
|
+
iconColorPressed: string;
|
|
305
|
+
suffixTextColor: string;
|
|
306
|
+
selectionColor: string;
|
|
307
|
+
}, any>;
|
|
308
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
309
|
+
height: string;
|
|
310
|
+
width: string;
|
|
311
|
+
borderRadius: string;
|
|
312
|
+
color: string;
|
|
313
|
+
colorHover: string;
|
|
314
|
+
railInsetHorizontalBottom: string;
|
|
315
|
+
railInsetHorizontalTop: string;
|
|
316
|
+
railInsetVerticalRight: string;
|
|
317
|
+
railInsetVerticalLeft: string;
|
|
318
|
+
railColor: string;
|
|
319
|
+
}, any>;
|
|
320
|
+
Empty: import("../../_mixins").Theme<"Empty", {
|
|
321
|
+
iconSizeSmall: string;
|
|
322
|
+
iconSizeMedium: string;
|
|
323
|
+
iconSizeLarge: string;
|
|
324
|
+
iconSizeHuge: string;
|
|
325
|
+
titleFontSizeSmall: string;
|
|
326
|
+
titleFontSizeMedium: string;
|
|
327
|
+
titleFontSizeLarge: string;
|
|
328
|
+
titleFontSizeHuge: string;
|
|
329
|
+
descriptionFontSizeSmall: string;
|
|
330
|
+
descriptionFontSizeMedium: string;
|
|
331
|
+
descriptionFontSizeLarge: string;
|
|
332
|
+
descriptionFontSizeHuge: string;
|
|
333
|
+
titleColor: string;
|
|
334
|
+
descriptionColor: string;
|
|
335
|
+
iconColor: string;
|
|
336
|
+
iconBgColor: string;
|
|
337
|
+
extraTextColor: string;
|
|
338
|
+
}, any>;
|
|
339
|
+
}>>>;
|
|
340
|
+
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconPack", {
|
|
341
|
+
containerColor: string;
|
|
342
|
+
borderRadius: string;
|
|
343
|
+
titleTextColor: string;
|
|
344
|
+
descriptionTextColor: string;
|
|
345
|
+
groupTitleTextColor: string;
|
|
346
|
+
groupCounterTextColor: string;
|
|
347
|
+
cardColor: string;
|
|
348
|
+
cardColorHover: string;
|
|
349
|
+
cardColorPressed: string;
|
|
350
|
+
cardColorSelected: string;
|
|
351
|
+
cardBorderRadius: string;
|
|
352
|
+
cardIconColor: string;
|
|
353
|
+
cardIconColorSelected: string;
|
|
354
|
+
cardLabelTextColor: string;
|
|
355
|
+
cardLabelTextColorSelected: string;
|
|
356
|
+
dividerColor: string;
|
|
357
|
+
}, {
|
|
358
|
+
Input: import("../../_mixins").Theme<"Input", {
|
|
359
|
+
paddingTiny: string;
|
|
360
|
+
paddingSmall: string;
|
|
361
|
+
paddingMedium: string;
|
|
362
|
+
paddingLarge: string;
|
|
363
|
+
paddingHuge: string;
|
|
364
|
+
clearSize: string;
|
|
365
|
+
countTextColorDisabled: string;
|
|
366
|
+
countTextColor: string;
|
|
367
|
+
heightTiny: string;
|
|
368
|
+
heightSmall: string;
|
|
369
|
+
heightMedium: string;
|
|
370
|
+
heightLarge: string;
|
|
371
|
+
heightHuge: string;
|
|
372
|
+
fontSizeTiny: string;
|
|
373
|
+
fontSizeSmall: string;
|
|
374
|
+
fontSizeMedium: string;
|
|
375
|
+
fontSizeLarge: string;
|
|
376
|
+
fontSizeHuge: string;
|
|
377
|
+
lineHeight: string;
|
|
378
|
+
lineHeightTextarea: string;
|
|
379
|
+
borderRadius: string;
|
|
380
|
+
iconSize: string;
|
|
381
|
+
groupLabelTextColor: string;
|
|
382
|
+
textColor: string;
|
|
383
|
+
textColorDisabled: string;
|
|
384
|
+
textDecorationColor: string;
|
|
385
|
+
caretColor: string;
|
|
386
|
+
placeholderColor: string;
|
|
387
|
+
placeholderColorDisabled: string;
|
|
388
|
+
color: string;
|
|
389
|
+
colorDisabled: string;
|
|
390
|
+
colorFocus: string;
|
|
391
|
+
groupLabelBorder: string;
|
|
392
|
+
border: string;
|
|
393
|
+
borderHover: string;
|
|
394
|
+
borderDisabled: string;
|
|
395
|
+
borderFocus: string;
|
|
396
|
+
boxShadowFocus: string;
|
|
397
|
+
loadingColor: string;
|
|
398
|
+
loadingColorSuccess: string;
|
|
399
|
+
borderSuccess: string;
|
|
400
|
+
borderHoverSuccess: string;
|
|
401
|
+
colorFocusSuccess: string;
|
|
402
|
+
borderFocusSuccess: string;
|
|
403
|
+
boxShadowFocusSuccess: string;
|
|
404
|
+
caretColorSuccess: string;
|
|
405
|
+
loadingColorWarning: string;
|
|
406
|
+
borderWarning: string;
|
|
407
|
+
borderHoverWarning: string;
|
|
408
|
+
colorFocusWarning: string;
|
|
409
|
+
borderFocusWarning: string;
|
|
410
|
+
boxShadowFocusWarning: string;
|
|
411
|
+
caretColorWarning: string;
|
|
412
|
+
loadingColorError: string;
|
|
413
|
+
borderError: string;
|
|
414
|
+
borderHoverError: string;
|
|
415
|
+
colorFocusError: string;
|
|
416
|
+
borderFocusError: string;
|
|
417
|
+
boxShadowFocusError: string;
|
|
418
|
+
caretColorError: string;
|
|
419
|
+
clearColor: string;
|
|
420
|
+
clearColorHover: string;
|
|
421
|
+
clearColorPressed: string;
|
|
422
|
+
iconColor: string;
|
|
423
|
+
iconColorDisabled: string;
|
|
424
|
+
iconColorHover: string;
|
|
425
|
+
iconColorPressed: string;
|
|
426
|
+
suffixTextColor: string;
|
|
427
|
+
selectionColor: string;
|
|
428
|
+
}, any>;
|
|
429
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
430
|
+
height: string;
|
|
431
|
+
width: string;
|
|
432
|
+
borderRadius: string;
|
|
433
|
+
color: string;
|
|
434
|
+
colorHover: string;
|
|
435
|
+
railInsetHorizontalBottom: string;
|
|
436
|
+
railInsetHorizontalTop: string;
|
|
437
|
+
railInsetVerticalRight: string;
|
|
438
|
+
railInsetVerticalLeft: string;
|
|
439
|
+
railColor: string;
|
|
440
|
+
}, any>;
|
|
441
|
+
Empty: import("../../_mixins").Theme<"Empty", {
|
|
442
|
+
iconSizeSmall: string;
|
|
443
|
+
iconSizeMedium: string;
|
|
444
|
+
iconSizeLarge: string;
|
|
445
|
+
iconSizeHuge: string;
|
|
446
|
+
titleFontSizeSmall: string;
|
|
447
|
+
titleFontSizeMedium: string;
|
|
448
|
+
titleFontSizeLarge: string;
|
|
449
|
+
titleFontSizeHuge: string;
|
|
450
|
+
descriptionFontSizeSmall: string;
|
|
451
|
+
descriptionFontSizeMedium: string;
|
|
452
|
+
descriptionFontSizeLarge: string;
|
|
453
|
+
descriptionFontSizeHuge: string;
|
|
454
|
+
titleColor: string;
|
|
455
|
+
descriptionColor: string;
|
|
456
|
+
iconColor: string;
|
|
457
|
+
iconBgColor: string;
|
|
458
|
+
extraTextColor: string;
|
|
459
|
+
}, any>;
|
|
460
|
+
}>>>;
|
|
461
|
+
};
|
|
462
|
+
export type IconPackProps = ExtractPublicPropTypes<typeof iconPackProps>;
|
|
463
|
+
export declare const iconPackInjectionKey: InjectionKey<{
|
|
464
|
+
mergedClsPrefixRef: Ref<string>;
|
|
465
|
+
}>;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { useTheme } from "../../_mixins/index.mjs";
|
|
2
|
+
import { createInjectionKey } from "../../_utils/index.mjs";
|
|
3
|
+
export const iconPackProps = Object.assign(Object.assign({}, useTheme.props), {
|
|
4
|
+
pack: [Object, String],
|
|
5
|
+
value: String,
|
|
6
|
+
defaultValue: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: null
|
|
9
|
+
},
|
|
10
|
+
disabled: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: undefined
|
|
13
|
+
},
|
|
14
|
+
title: String,
|
|
15
|
+
description: String,
|
|
16
|
+
searchable: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: true
|
|
19
|
+
},
|
|
20
|
+
searchValue: String,
|
|
21
|
+
defaultSearchValue: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: ''
|
|
24
|
+
},
|
|
25
|
+
searchPlaceholder: String,
|
|
26
|
+
searchDebounce: {
|
|
27
|
+
type: Number,
|
|
28
|
+
default: 200
|
|
29
|
+
},
|
|
30
|
+
grouped: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: true
|
|
33
|
+
},
|
|
34
|
+
columns: {
|
|
35
|
+
type: [Number, String],
|
|
36
|
+
default: 'auto'
|
|
37
|
+
},
|
|
38
|
+
minColumnWidth: {
|
|
39
|
+
type: [Number, String],
|
|
40
|
+
default: 150
|
|
41
|
+
},
|
|
42
|
+
iconSize: {
|
|
43
|
+
type: [Number, String],
|
|
44
|
+
default: 40
|
|
45
|
+
},
|
|
46
|
+
height: [Number, String],
|
|
47
|
+
maxBodyHeight: {
|
|
48
|
+
type: [Number, String],
|
|
49
|
+
default: 496
|
|
50
|
+
},
|
|
51
|
+
contentPadding: {
|
|
52
|
+
type: [Number, String],
|
|
53
|
+
default: 24
|
|
54
|
+
},
|
|
55
|
+
async: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
default: undefined
|
|
58
|
+
},
|
|
59
|
+
copyable: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: true
|
|
62
|
+
},
|
|
63
|
+
formatCopy: Function,
|
|
64
|
+
formatGroupLabel: Function,
|
|
65
|
+
formatIconLabel: Function,
|
|
66
|
+
showGroupCounter: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: true
|
|
69
|
+
},
|
|
70
|
+
emptyText: String,
|
|
71
|
+
emptyProps: Object,
|
|
72
|
+
searchInputProps: Object,
|
|
73
|
+
scrollbarProps: Object
|
|
74
|
+
});
|
|
75
|
+
export const iconPackInjectionKey = createInjectionKey('icon-pack');
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { c, cB, cE, cM } from "../../../_utils/cssr/index.mjs";
|
|
2
|
+
export default cB('icon-pack', `
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
width: 100%;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: 28px;
|
|
8
|
+
background-color: var(--u-icon-pack-container-color);
|
|
9
|
+
border-radius: var(--u-icon-pack-border-radius);
|
|
10
|
+
transition: background-color .3s var(--u-bezier);
|
|
11
|
+
`, [cM('disabled', `
|
|
12
|
+
opacity: .5;
|
|
13
|
+
`, [cB('icon-pack-card', `
|
|
14
|
+
cursor: not-allowed;
|
|
15
|
+
`)]), cE('header', `
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: flex-start;
|
|
18
|
+
gap: 32px;
|
|
19
|
+
padding: var(--u-icon-pack-content-padding) var(--u-icon-pack-content-padding) 0;
|
|
20
|
+
`, [cE('header-main', `
|
|
21
|
+
flex: 1;
|
|
22
|
+
min-width: 0;
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
gap: 16px;
|
|
26
|
+
`), cE('title', `
|
|
27
|
+
margin: 0;
|
|
28
|
+
font-size: 22px;
|
|
29
|
+
line-height: 32px;
|
|
30
|
+
font-weight: 700;
|
|
31
|
+
color: var(--u-icon-pack-title-text-color);
|
|
32
|
+
transition: color .3s var(--u-bezier);
|
|
33
|
+
`), cE('description', `
|
|
34
|
+
margin: 0;
|
|
35
|
+
font-size: 16px;
|
|
36
|
+
line-height: 24px;
|
|
37
|
+
font-weight: 500;
|
|
38
|
+
color: var(--u-icon-pack-description-text-color);
|
|
39
|
+
transition: color .3s var(--u-bezier);
|
|
40
|
+
`)]), cE('search', `
|
|
41
|
+
padding: 0 var(--u-icon-pack-content-padding);
|
|
42
|
+
`), cE('body', `
|
|
43
|
+
min-height: 0;
|
|
44
|
+
`, [c('.u-scrollbar-content', `
|
|
45
|
+
padding: 0 var(--u-icon-pack-content-padding) var(--u-icon-pack-content-padding);
|
|
46
|
+
`)]), cE('groups', `
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
gap: 28px;
|
|
50
|
+
`), cE('group', `
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
gap: 20px;
|
|
54
|
+
`), cE('group-header', `
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: flex-end;
|
|
57
|
+
gap: 8px;
|
|
58
|
+
`, [cE('group-title', `
|
|
59
|
+
margin: 0;
|
|
60
|
+
font-size: 18px;
|
|
61
|
+
line-height: 28px;
|
|
62
|
+
font-weight: 700;
|
|
63
|
+
color: var(--u-icon-pack-group-title-text-color);
|
|
64
|
+
transition: color .3s var(--u-bezier);
|
|
65
|
+
`), cE('group-counter', `
|
|
66
|
+
font-size: 14px;
|
|
67
|
+
line-height: 24px;
|
|
68
|
+
font-weight: 500;
|
|
69
|
+
color: var(--u-icon-pack-group-counter-text-color);
|
|
70
|
+
transition: color .3s var(--u-bezier);
|
|
71
|
+
`)]), cE('grid', `
|
|
72
|
+
display: grid;
|
|
73
|
+
grid-template-columns: var(--u-icon-pack-grid-template-columns);
|
|
74
|
+
gap: 20px;
|
|
75
|
+
`), cB('icon-pack-card', `
|
|
76
|
+
box-sizing: border-box;
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
align-items: center;
|
|
80
|
+
gap: 24px;
|
|
81
|
+
padding: 24px 12px;
|
|
82
|
+
border: none;
|
|
83
|
+
outline: none;
|
|
84
|
+
background-color: var(--u-icon-pack-card-color);
|
|
85
|
+
border-radius: var(--u-icon-pack-card-border-radius);
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
user-select: none;
|
|
88
|
+
transition:
|
|
89
|
+
background-color .2s var(--u-bezier),
|
|
90
|
+
color .2s var(--u-bezier);
|
|
91
|
+
`, [c('&:hover', `
|
|
92
|
+
background-color: var(--u-icon-pack-card-color-hover);
|
|
93
|
+
`), c('&:active', `
|
|
94
|
+
background-color: var(--u-icon-pack-card-color-pressed);
|
|
95
|
+
`), cM('selected', `
|
|
96
|
+
background-color: var(--u-icon-pack-card-color-selected);
|
|
97
|
+
--u-icon-pack-card-icon-color: var(--u-icon-pack-card-icon-color-selected);
|
|
98
|
+
--u-icon-pack-card-label-text-color: var(--u-icon-pack-card-label-text-color-selected);
|
|
99
|
+
`, [c('&:hover', `
|
|
100
|
+
background-color: var(--u-icon-pack-card-color-selected);
|
|
101
|
+
`)]), cE('icon', `
|
|
102
|
+
flex-shrink: 0;
|
|
103
|
+
width: var(--u-icon-pack-icon-size);
|
|
104
|
+
height: var(--u-icon-pack-icon-size);
|
|
105
|
+
display: flex;
|
|
106
|
+
align-items: center;
|
|
107
|
+
justify-content: center;
|
|
108
|
+
color: var(--u-icon-pack-card-icon-color);
|
|
109
|
+
`, [c('svg', `
|
|
110
|
+
width: var(--u-icon-pack-icon-size);
|
|
111
|
+
height: var(--u-icon-pack-icon-size);
|
|
112
|
+
`)]), cE('label', `
|
|
113
|
+
max-width: 100%;
|
|
114
|
+
padding: 0 12px;
|
|
115
|
+
font-size: 12px;
|
|
116
|
+
line-height: 16px;
|
|
117
|
+
font-weight: 600;
|
|
118
|
+
text-align: center;
|
|
119
|
+
color: var(--u-icon-pack-card-label-text-color);
|
|
120
|
+
transition: color .2s var(--u-bezier);
|
|
121
|
+
`)]), cE('empty', `
|
|
122
|
+
padding: 40px 0;
|
|
123
|
+
display: flex;
|
|
124
|
+
justify-content: center;
|
|
125
|
+
`), cE('footer', `
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
gap: 16px;
|
|
129
|
+
padding: 16px var(--u-icon-pack-content-padding) var(--u-icon-pack-content-padding);
|
|
130
|
+
border-top: 1px solid var(--u-icon-pack-divider-color);
|
|
131
|
+
`)]);
|