@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.
Files changed (111) hide show
  1. package/dist/index.js +1236 -530
  2. package/dist/index.mjs +1232 -531
  3. package/dist/index.prod.js +2 -2
  4. package/dist/index.prod.mjs +2 -2
  5. package/es/_internal/icon/index.d.ts +1 -1
  6. package/es/_internal/icon/index.mjs +1 -1
  7. package/es/_internal/icon/src/UIcon.d.ts +11 -1
  8. package/es/_internal/icon/src/UIcon.mjs +20 -8
  9. package/es/_internal/icon/src/interface.d.ts +11 -4
  10. package/es/_internal/icon/src/interface.mjs +4 -0
  11. package/es/_internal/icon/src/render-icon.d.ts +1 -0
  12. package/es/_internal/icon/src/render-icon.mjs +5 -0
  13. package/es/_internal/icons/SearchOutline.d.ts +2 -0
  14. package/es/_internal/icons/SearchOutline.mjs +18 -0
  15. package/es/_internal/icons/index.d.ts +1 -0
  16. package/es/_internal/icons/index.mjs +1 -0
  17. package/es/_mixins/use-form-item.mjs +5 -0
  18. package/es/_utils/dom/copy-to-clipboard.d.ts +1 -0
  19. package/es/_utils/dom/copy-to-clipboard.mjs +8 -0
  20. package/es/_utils/dom/index.d.ts +1 -0
  21. package/es/_utils/dom/index.mjs +1 -0
  22. package/es/components.d.ts +1169 -76
  23. package/es/components.mjs +4 -1
  24. package/es/config-provider/src/internal-interface.d.ts +4 -0
  25. package/es/data-table/src/use-table-data.d.ts +1 -1
  26. package/es/date-picker/src/DatePicker.mjs +7 -4
  27. package/es/icon/index.d.ts +1 -1
  28. package/es/icon/index.mjs +1 -1
  29. package/es/icon/src/Icon.d.ts +1 -1
  30. package/es/icon/src/Icon.mjs +1 -1
  31. package/es/icon-pack/index.d.ts +5 -0
  32. package/es/icon-pack/index.mjs +3 -0
  33. package/es/icon-pack/src/IconPack.d.ts +1047 -0
  34. package/es/icon-pack/src/IconPack.mjs +300 -0
  35. package/es/icon-pack/src/interface.d.ts +465 -0
  36. package/es/icon-pack/src/interface.mjs +75 -0
  37. package/es/icon-pack/src/styles/index.cssr.d.ts +2 -0
  38. package/es/icon-pack/src/styles/index.cssr.mjs +131 -0
  39. package/es/icon-pack/styles/dark.d.ts +123 -0
  40. package/es/icon-pack/styles/dark.mjs +20 -0
  41. package/es/icon-pack/styles/index.d.ts +3 -0
  42. package/es/icon-pack/styles/index.mjs +2 -0
  43. package/es/icon-pack/styles/light.d.ts +143 -0
  44. package/es/icon-pack/styles/light.mjs +64 -0
  45. package/es/icon-wrapper/src/IconWrapper.d.ts +1 -1
  46. package/es/input/src/Input.mjs +3 -1
  47. package/es/pagination/index.d.ts +3 -3
  48. package/es/pagination/index.mjs +2 -1
  49. package/es/pagination/src/Pagination.d.ts +74 -1379
  50. package/es/pagination/src/Pagination.mjs +28 -63
  51. package/es/pagination/src/interface.d.ts +1345 -1
  52. package/es/pagination/src/interface.mjs +68 -1
  53. package/es/themes/dark.mjs +2 -0
  54. package/es/themes/light.mjs +2 -0
  55. package/es/version.d.ts +1 -1
  56. package/es/version.mjs +1 -1
  57. package/lib/_internal/icon/index.d.ts +1 -1
  58. package/lib/_internal/icon/index.js +2 -1
  59. package/lib/_internal/icon/src/UIcon.d.ts +11 -1
  60. package/lib/_internal/icon/src/UIcon.js +17 -6
  61. package/lib/_internal/icon/src/interface.d.ts +11 -4
  62. package/lib/_internal/icon/src/interface.js +1 -1
  63. package/lib/_internal/icon/src/render-icon.d.ts +1 -0
  64. package/lib/_internal/icon/src/render-icon.js +4 -0
  65. package/lib/_internal/icons/SearchOutline.d.ts +2 -0
  66. package/lib/_internal/icons/SearchOutline.js +10 -0
  67. package/lib/_internal/icons/index.d.ts +1 -0
  68. package/lib/_internal/icons/index.js +3 -1
  69. package/lib/_mixins/use-form-item.js +5 -0
  70. package/lib/_utils/dom/copy-to-clipboard.d.ts +1 -0
  71. package/lib/_utils/dom/copy-to-clipboard.js +11 -0
  72. package/lib/_utils/dom/index.d.ts +1 -0
  73. package/lib/_utils/dom/index.js +3 -1
  74. package/lib/components.d.ts +1169 -76
  75. package/lib/components.js +12 -5
  76. package/lib/config-provider/src/internal-interface.d.ts +4 -0
  77. package/lib/data-table/src/use-table-data.d.ts +1 -1
  78. package/lib/date-picker/src/DatePicker.js +5 -4
  79. package/lib/icon/index.d.ts +1 -1
  80. package/lib/icon/index.js +2 -1
  81. package/lib/icon/src/Icon.d.ts +1 -1
  82. package/lib/icon/src/Icon.js +2 -1
  83. package/lib/icon-pack/index.d.ts +5 -0
  84. package/lib/icon-pack/index.js +13 -0
  85. package/lib/icon-pack/src/IconPack.d.ts +1047 -0
  86. package/lib/icon-pack/src/IconPack.js +240 -0
  87. package/lib/icon-pack/src/interface.d.ts +465 -0
  88. package/lib/icon-pack/src/interface.js +49 -0
  89. package/lib/icon-pack/src/styles/index.cssr.d.ts +2 -0
  90. package/lib/icon-pack/src/styles/index.cssr.js +136 -0
  91. package/lib/icon-pack/styles/dark.d.ts +123 -0
  92. package/lib/icon-pack/styles/dark.js +22 -0
  93. package/lib/icon-pack/styles/index.d.ts +3 -0
  94. package/lib/icon-pack/styles/index.js +10 -0
  95. package/lib/icon-pack/styles/light.d.ts +143 -0
  96. package/lib/icon-pack/styles/light.js +46 -0
  97. package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -1
  98. package/lib/input/src/Input.js +3 -1
  99. package/lib/pagination/index.d.ts +3 -3
  100. package/lib/pagination/index.js +2 -1
  101. package/lib/pagination/src/Pagination.d.ts +74 -1379
  102. package/lib/pagination/src/Pagination.js +27 -40
  103. package/lib/pagination/src/interface.d.ts +1345 -1
  104. package/lib/pagination/src/interface.js +37 -0
  105. package/lib/themes/dark.js +110 -108
  106. package/lib/themes/light.js +110 -108
  107. package/lib/version.d.ts +1 -1
  108. package/lib/version.js +1 -1
  109. package/package.json +1 -1
  110. package/volar.d.ts +1 -0
  111. 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,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.iconPackInjectionKey = exports.iconPackProps = void 0;
4
+ const _mixins_1 = require("../../_mixins");
5
+ const _utils_1 = require("../../_utils");
6
+ exports.iconPackProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { pack: [Object, String], value: String, defaultValue: {
7
+ type: String,
8
+ default: null
9
+ }, disabled: {
10
+ type: Boolean,
11
+ default: undefined
12
+ }, title: String, description: String, searchable: {
13
+ type: Boolean,
14
+ default: true
15
+ }, searchValue: String, defaultSearchValue: {
16
+ type: String,
17
+ default: ''
18
+ }, searchPlaceholder: String, searchDebounce: {
19
+ type: Number,
20
+ default: 200
21
+ }, grouped: {
22
+ type: Boolean,
23
+ default: true
24
+ }, columns: {
25
+ type: [Number, String],
26
+ default: 'auto'
27
+ }, minColumnWidth: {
28
+ type: [Number, String],
29
+ default: 150
30
+ }, iconSize: {
31
+ type: [Number, String],
32
+ default: 40
33
+ }, height: [Number, String], maxBodyHeight: {
34
+ type: [Number, String],
35
+ default: 496
36
+ }, contentPadding: {
37
+ type: [Number, String],
38
+ default: 24
39
+ }, async: {
40
+ type: Boolean,
41
+ default: undefined
42
+ }, copyable: {
43
+ type: Boolean,
44
+ default: true
45
+ }, formatCopy: Function, formatGroupLabel: Function, formatIconLabel: Function, showGroupCounter: {
46
+ type: Boolean,
47
+ default: true
48
+ }, emptyText: String, emptyProps: Object, searchInputProps: Object, scrollbarProps: Object });
49
+ exports.iconPackInjectionKey = (0, _utils_1.createInjectionKey)('icon-pack');
@@ -0,0 +1,2 @@
1
+ declare const _default: import("css-render").CNode;
2
+ export default _default;
@@ -0,0 +1,136 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ const cssr_1 = require("../../../_utils/cssr");
7
+ exports.default = (0, cssr_1.cB)('icon-pack', `
8
+ box-sizing: border-box;
9
+ width: 100%;
10
+ display: flex;
11
+ flex-direction: column;
12
+ gap: 28px;
13
+ background-color: var(--u-icon-pack-container-color);
14
+ border-radius: var(--u-icon-pack-border-radius);
15
+ transition: background-color .3s var(--u-bezier);
16
+ `, [(0, cssr_1.cM)('disabled', `
17
+ opacity: .5;
18
+ `, [(0, cssr_1.cB)('icon-pack-card', `
19
+ cursor: not-allowed;
20
+ `)]), (0, cssr_1.cE)('header', `
21
+ display: flex;
22
+ align-items: flex-start;
23
+ gap: 32px;
24
+ padding: var(--u-icon-pack-content-padding) var(--u-icon-pack-content-padding) 0;
25
+ `, [(0, cssr_1.cE)('header-main', `
26
+ flex: 1;
27
+ min-width: 0;
28
+ display: flex;
29
+ flex-direction: column;
30
+ gap: 16px;
31
+ `), (0, cssr_1.cE)('title', `
32
+ margin: 0;
33
+ font-size: 22px;
34
+ line-height: 32px;
35
+ font-weight: 700;
36
+ color: var(--u-icon-pack-title-text-color);
37
+ transition: color .3s var(--u-bezier);
38
+ `), (0, cssr_1.cE)('description', `
39
+ margin: 0;
40
+ font-size: 16px;
41
+ line-height: 24px;
42
+ font-weight: 500;
43
+ color: var(--u-icon-pack-description-text-color);
44
+ transition: color .3s var(--u-bezier);
45
+ `)]), (0, cssr_1.cE)('search', `
46
+ padding: 0 var(--u-icon-pack-content-padding);
47
+ `), (0, cssr_1.cE)('body', `
48
+ min-height: 0;
49
+ `, [(0, cssr_1.c)('.u-scrollbar-content', `
50
+ padding: 0 var(--u-icon-pack-content-padding) var(--u-icon-pack-content-padding);
51
+ `)]), (0, cssr_1.cE)('groups', `
52
+ display: flex;
53
+ flex-direction: column;
54
+ gap: 28px;
55
+ `), (0, cssr_1.cE)('group', `
56
+ display: flex;
57
+ flex-direction: column;
58
+ gap: 20px;
59
+ `), (0, cssr_1.cE)('group-header', `
60
+ display: flex;
61
+ align-items: flex-end;
62
+ gap: 8px;
63
+ `, [(0, cssr_1.cE)('group-title', `
64
+ margin: 0;
65
+ font-size: 18px;
66
+ line-height: 28px;
67
+ font-weight: 700;
68
+ color: var(--u-icon-pack-group-title-text-color);
69
+ transition: color .3s var(--u-bezier);
70
+ `), (0, cssr_1.cE)('group-counter', `
71
+ font-size: 14px;
72
+ line-height: 24px;
73
+ font-weight: 500;
74
+ color: var(--u-icon-pack-group-counter-text-color);
75
+ transition: color .3s var(--u-bezier);
76
+ `)]), (0, cssr_1.cE)('grid', `
77
+ display: grid;
78
+ grid-template-columns: var(--u-icon-pack-grid-template-columns);
79
+ gap: 20px;
80
+ `), (0, cssr_1.cB)('icon-pack-card', `
81
+ box-sizing: border-box;
82
+ display: flex;
83
+ flex-direction: column;
84
+ align-items: center;
85
+ gap: 24px;
86
+ padding: 24px 12px;
87
+ border: none;
88
+ outline: none;
89
+ background-color: var(--u-icon-pack-card-color);
90
+ border-radius: var(--u-icon-pack-card-border-radius);
91
+ cursor: pointer;
92
+ user-select: none;
93
+ transition:
94
+ background-color .2s var(--u-bezier),
95
+ color .2s var(--u-bezier);
96
+ `, [(0, cssr_1.c)('&:hover', `
97
+ background-color: var(--u-icon-pack-card-color-hover);
98
+ `), (0, cssr_1.c)('&:active', `
99
+ background-color: var(--u-icon-pack-card-color-pressed);
100
+ `), (0, cssr_1.cM)('selected', `
101
+ background-color: var(--u-icon-pack-card-color-selected);
102
+ --u-icon-pack-card-icon-color: var(--u-icon-pack-card-icon-color-selected);
103
+ --u-icon-pack-card-label-text-color: var(--u-icon-pack-card-label-text-color-selected);
104
+ `, [(0, cssr_1.c)('&:hover', `
105
+ background-color: var(--u-icon-pack-card-color-selected);
106
+ `)]), (0, cssr_1.cE)('icon', `
107
+ flex-shrink: 0;
108
+ width: var(--u-icon-pack-icon-size);
109
+ height: var(--u-icon-pack-icon-size);
110
+ display: flex;
111
+ align-items: center;
112
+ justify-content: center;
113
+ color: var(--u-icon-pack-card-icon-color);
114
+ `, [(0, cssr_1.c)('svg', `
115
+ width: var(--u-icon-pack-icon-size);
116
+ height: var(--u-icon-pack-icon-size);
117
+ `)]), (0, cssr_1.cE)('label', `
118
+ max-width: 100%;
119
+ padding: 0 12px;
120
+ font-size: 12px;
121
+ line-height: 16px;
122
+ font-weight: 600;
123
+ text-align: center;
124
+ color: var(--u-icon-pack-card-label-text-color);
125
+ transition: color .2s var(--u-bezier);
126
+ `)]), (0, cssr_1.cE)('empty', `
127
+ padding: 40px 0;
128
+ display: flex;
129
+ justify-content: center;
130
+ `), (0, cssr_1.cE)('footer', `
131
+ display: flex;
132
+ align-items: center;
133
+ gap: 16px;
134
+ padding: 16px var(--u-icon-pack-content-padding) var(--u-icon-pack-content-padding);
135
+ border-top: 1px solid var(--u-icon-pack-divider-color);
136
+ `)]);