@uzum-tech/ui 1.12.21 → 1.13.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 (95) hide show
  1. package/dist/index.js +2789 -510
  2. package/dist/index.prod.js +4 -4
  3. package/es/_styles/common/dark.js +1 -1
  4. package/es/_styles/common/light.d.ts +1 -0
  5. package/es/_styles/common/light.js +1 -1
  6. package/es/chat/src/ChatMessages.js +6 -1
  7. package/es/chat/src/styles/index.cssr.js +5 -1
  8. package/es/components.d.ts +1 -0
  9. package/es/components.js +1 -0
  10. package/es/config-provider/src/internal-interface.d.ts +3 -0
  11. package/es/date-picker-v2/index.d.ts +5 -0
  12. package/es/date-picker-v2/index.js +2 -0
  13. package/es/date-picker-v2/src/DatePickerV2.d.ts +4765 -0
  14. package/es/date-picker-v2/src/DatePickerV2.js +750 -0
  15. package/es/date-picker-v2/src/composables/useCalendarScroll.d.ts +1133 -0
  16. package/es/date-picker-v2/src/composables/useCalendarScroll.js +61 -0
  17. package/es/date-picker-v2/src/config.d.ts +14 -0
  18. package/es/date-picker-v2/src/config.js +34 -0
  19. package/es/date-picker-v2/src/interface.d.ts +42 -0
  20. package/es/date-picker-v2/src/interface.js +1 -0
  21. package/es/date-picker-v2/src/panel/CalendarPanel.d.ts +1222 -0
  22. package/es/date-picker-v2/src/panel/CalendarPanel.js +186 -0
  23. package/es/date-picker-v2/src/panel/CalendarRangePanel.d.ts +1246 -0
  24. package/es/date-picker-v2/src/panel/CalendarRangePanel.js +205 -0
  25. package/es/date-picker-v2/src/styles/index.cssr.d.ts +2 -0
  26. package/es/date-picker-v2/src/styles/index.cssr.js +190 -0
  27. package/es/date-picker-v2/src/utils.d.ts +12 -0
  28. package/es/date-picker-v2/src/utils.js +92 -0
  29. package/es/date-picker-v2/styles/dark.d.ts +447 -0
  30. package/es/date-picker-v2/styles/dark.js +19 -0
  31. package/es/date-picker-v2/styles/index.d.ts +3 -0
  32. package/es/date-picker-v2/styles/index.js +2 -0
  33. package/es/date-picker-v2/styles/light.d.ts +477 -0
  34. package/es/date-picker-v2/styles/light.js +56 -0
  35. package/es/dialog/src/DialogProvider.d.ts +2 -0
  36. package/es/header/src/Header.js +4 -1
  37. package/es/header/src/HeaderSearchDesktop.d.ts +12 -0
  38. package/es/header/src/HeaderSearchDesktop.js +21 -4
  39. package/es/header/src/HeaderSearchMobile.d.ts +12 -0
  40. package/es/header/src/HeaderSearchMobile.js +8 -2
  41. package/es/header/src/mobile/HeaderMobile.js +18 -3
  42. package/es/locales/common/enUS.js +1 -1
  43. package/es/theme-editor/src/ThemeEditor.d.ts +1 -0
  44. package/es/themes/dark.js +2 -0
  45. package/es/themes/light.js +2 -0
  46. package/es/version.d.ts +1 -1
  47. package/es/version.js +1 -1
  48. package/lib/_styles/common/dark.js +1 -1
  49. package/lib/_styles/common/light.d.ts +1 -0
  50. package/lib/_styles/common/light.js +1 -1
  51. package/lib/chat/src/ChatMessages.js +6 -1
  52. package/lib/chat/src/styles/index.cssr.js +5 -1
  53. package/lib/components.d.ts +1 -0
  54. package/lib/components.js +1 -0
  55. package/lib/config-provider/src/internal-interface.d.ts +3 -0
  56. package/lib/date-picker-v2/index.d.ts +5 -0
  57. package/lib/date-picker-v2/index.js +11 -0
  58. package/lib/date-picker-v2/src/DatePickerV2.d.ts +4765 -0
  59. package/lib/date-picker-v2/src/DatePickerV2.js +756 -0
  60. package/lib/date-picker-v2/src/composables/useCalendarScroll.d.ts +1133 -0
  61. package/lib/date-picker-v2/src/composables/useCalendarScroll.js +64 -0
  62. package/lib/date-picker-v2/src/config.d.ts +14 -0
  63. package/lib/date-picker-v2/src/config.js +37 -0
  64. package/lib/date-picker-v2/src/interface.d.ts +42 -0
  65. package/lib/date-picker-v2/src/interface.js +4 -0
  66. package/lib/date-picker-v2/src/panel/CalendarPanel.d.ts +1222 -0
  67. package/lib/date-picker-v2/src/panel/CalendarPanel.js +188 -0
  68. package/lib/date-picker-v2/src/panel/CalendarRangePanel.d.ts +1246 -0
  69. package/lib/date-picker-v2/src/panel/CalendarRangePanel.js +207 -0
  70. package/lib/date-picker-v2/src/styles/index.cssr.d.ts +2 -0
  71. package/lib/date-picker-v2/src/styles/index.cssr.js +195 -0
  72. package/lib/date-picker-v2/src/utils.d.ts +12 -0
  73. package/lib/date-picker-v2/src/utils.js +101 -0
  74. package/lib/date-picker-v2/styles/dark.d.ts +447 -0
  75. package/lib/date-picker-v2/styles/dark.js +21 -0
  76. package/lib/date-picker-v2/styles/index.d.ts +3 -0
  77. package/lib/date-picker-v2/styles/index.js +10 -0
  78. package/lib/date-picker-v2/styles/light.d.ts +477 -0
  79. package/lib/date-picker-v2/styles/light.js +60 -0
  80. package/lib/dialog/src/DialogProvider.d.ts +2 -0
  81. package/lib/header/src/Header.js +4 -1
  82. package/lib/header/src/HeaderSearchDesktop.d.ts +12 -0
  83. package/lib/header/src/HeaderSearchDesktop.js +20 -3
  84. package/lib/header/src/HeaderSearchMobile.d.ts +12 -0
  85. package/lib/header/src/HeaderSearchMobile.js +7 -1
  86. package/lib/header/src/mobile/HeaderMobile.js +18 -3
  87. package/lib/locales/common/enUS.js +1 -1
  88. package/lib/theme-editor/src/ThemeEditor.d.ts +1 -0
  89. package/lib/themes/dark.js +2 -0
  90. package/lib/themes/light.js +2 -0
  91. package/lib/version.d.ts +1 -1
  92. package/lib/version.js +1 -1
  93. package/package.json +1 -1
  94. package/volar.d.ts +1 -0
  95. package/web-types.json +161 -1
@@ -0,0 +1,477 @@
1
+ import { ThemeCommonVars } from '../../_styles/common';
2
+ export declare const self: (vars: ThemeCommonVars) => {
3
+ panelColor: string;
4
+ panelBoxShadow: string;
5
+ panelBorderRadius: string;
6
+ panelTextColor: string;
7
+ dividerColor: string;
8
+ itemTextColor: string;
9
+ itemTextColorOtherMonth: string;
10
+ itemTextColorDisabled: string;
11
+ itemColorHover: string;
12
+ itemColorActive: string;
13
+ itemColorIncluded: string;
14
+ itemTextColorActive: string;
15
+ itemBorderRadius: string;
16
+ iconColor: string;
17
+ iconColorDisabled: string;
18
+ weekdayTextColor: string;
19
+ weekendTextColor: string;
20
+ monthItemHeight: string;
21
+ monthItemColorHover: string;
22
+ monthItemColorActive: string;
23
+ monthItemTextColorActive: string;
24
+ yearTriggerColor: string;
25
+ yearTriggerColorHover: string;
26
+ yearTriggerTextColor: string;
27
+ currentDateIndicatorColor: string;
28
+ };
29
+ export type DatePickerV2ThemeVars = ReturnType<typeof self>;
30
+ declare const datePickerV2Light: import("../../_mixins").Theme<"DatePickerV2", {
31
+ panelColor: string;
32
+ panelBoxShadow: string;
33
+ panelBorderRadius: string;
34
+ panelTextColor: string;
35
+ dividerColor: string;
36
+ itemTextColor: string;
37
+ itemTextColorOtherMonth: string;
38
+ itemTextColorDisabled: string;
39
+ itemColorHover: string;
40
+ itemColorActive: string;
41
+ itemColorIncluded: string;
42
+ itemTextColorActive: string;
43
+ itemBorderRadius: string;
44
+ iconColor: string;
45
+ iconColorDisabled: string;
46
+ weekdayTextColor: string;
47
+ weekendTextColor: string;
48
+ monthItemHeight: string;
49
+ monthItemColorHover: string;
50
+ monthItemColorActive: string;
51
+ monthItemTextColorActive: string;
52
+ yearTriggerColor: string;
53
+ yearTriggerColorHover: string;
54
+ yearTriggerTextColor: string;
55
+ currentDateIndicatorColor: string;
56
+ }, {
57
+ Button: import("../../_mixins").Theme<"Button", {
58
+ heightTiny: string;
59
+ heightSmall: string;
60
+ heightMedium: string;
61
+ heightLarge: string;
62
+ borderRadiusTiny: string;
63
+ borderRadiusSmall: string;
64
+ borderRadiusMedium: string;
65
+ borderRadiusLarge: string;
66
+ fontSizeTiny: string;
67
+ fontSizeSmall: string;
68
+ fontSizeMedium: string;
69
+ fontSizeLarge: string;
70
+ opacityDisabled: string;
71
+ colorOpacitySecondary: string;
72
+ colorOpacitySecondaryHover: string;
73
+ colorOpacitySecondaryPressed: string;
74
+ colorOpacitySecondaryFocus: string;
75
+ colorSecondary: string;
76
+ colorSecondaryHover: string;
77
+ colorSecondaryPressed: string;
78
+ colorSecondaryFocus: string;
79
+ colorSecondaryDisabled: string;
80
+ textColorSecondaryDisabled: string;
81
+ waveColorSecondary: string;
82
+ colorTertiary: string;
83
+ colorTertiaryHover: string;
84
+ colorTertiaryPressed: string;
85
+ colorTertiaryFocus: string;
86
+ colorTertiaryDisalbed: string;
87
+ waveColorTertiary: string;
88
+ textColorTextTertiary: string;
89
+ rippleColorTertiary: string;
90
+ colorQuaternary: string;
91
+ colorQuaternaryHover: string;
92
+ colorQuaternaryPressed: string;
93
+ colorQuaternaryFocus: string;
94
+ rippleColorQuaternary: string;
95
+ waveColorQuaternary: string;
96
+ color: string;
97
+ colorHover: string;
98
+ colorPressed: string;
99
+ colorFocus: string;
100
+ colorDisabled: string;
101
+ textColor: string;
102
+ textTertiary: string;
103
+ textColorTertiary: string;
104
+ textColorHover: string;
105
+ textColorPressed: string;
106
+ textColorFocus: string;
107
+ textColorDisabled: string;
108
+ textColorText: string;
109
+ textColorTextHover: string;
110
+ textColorTextPressed: string;
111
+ textColorTextFocus: string;
112
+ textColorTextDisabled: string;
113
+ textColorGhost: string;
114
+ textColorGhostHover: string;
115
+ textColorGhostPressed: string;
116
+ textColorGhostFocus: string;
117
+ textColorGhostDisabled: string;
118
+ border: string;
119
+ borderHover: string;
120
+ borderPressed: string;
121
+ borderFocus: string;
122
+ borderDisabled: string;
123
+ rippleColor: string;
124
+ colorPrimary: string;
125
+ colorHoverPrimary: string;
126
+ colorPressedPrimary: string;
127
+ colorFocusPrimary: string;
128
+ colorDisabledPrimary: string;
129
+ waveColorPrimary: string;
130
+ textColorPrimary: string;
131
+ textColorHoverPrimary: string;
132
+ textColorPressedPrimary: string;
133
+ textColorFocusPrimary: string;
134
+ textColorDisabledPrimary: string;
135
+ textColorTextPrimary: string;
136
+ textColorTextHoverPrimary: string;
137
+ textColorTextPressedPrimary: string;
138
+ textColorTextFocusPrimary: string;
139
+ textColorTextDisabledPrimary: string;
140
+ textColorGhostPrimary: string;
141
+ textColorGhostHoverPrimary: string;
142
+ textColorGhostPressedPrimary: string;
143
+ textColorGhostFocusPrimary: string;
144
+ textColorGhostDisabledPrimary: string;
145
+ borderPrimary: string;
146
+ borderHoverPrimary: string;
147
+ borderPressedPrimary: string;
148
+ borderFocusPrimary: string;
149
+ borderDisabledPrimary: string;
150
+ rippleColorPrimary: string;
151
+ colorInfo: string;
152
+ colorHoverInfo: string;
153
+ colorPressedInfo: string;
154
+ colorFocusInfo: string;
155
+ colorDisabledInfo: string;
156
+ textColorInfo: string;
157
+ textColorHoverInfo: string;
158
+ textColorPressedInfo: string;
159
+ textColorFocusInfo: string;
160
+ textColorDisabledInfo: string;
161
+ textColorTextInfo: string;
162
+ textColorTextHoverInfo: string;
163
+ textColorTextPressedInfo: string;
164
+ textColorTextFocusInfo: string;
165
+ textColorTextDisabledInfo: string;
166
+ textColorGhostInfo: string;
167
+ textColorGhostHoverInfo: string;
168
+ textColorGhostPressedInfo: string;
169
+ textColorGhostFocusInfo: string;
170
+ textColorGhostDisabledInfo: string;
171
+ borderInfo: string;
172
+ borderHoverInfo: string;
173
+ borderPressedInfo: string;
174
+ borderFocusInfo: string;
175
+ borderDisabledInfo: string;
176
+ rippleColorInfo: string;
177
+ colorSuccess: string;
178
+ colorHoverSuccess: string;
179
+ colorPressedSuccess: string;
180
+ colorFocusSuccess: string;
181
+ colorDisabledSuccess: string;
182
+ textColorSuccess: string;
183
+ textColorHoverSuccess: string;
184
+ textColorPressedSuccess: string;
185
+ textColorFocusSuccess: string;
186
+ textColorDisabledSuccess: string;
187
+ textColorTextSuccess: string;
188
+ textColorTextHoverSuccess: string;
189
+ textColorTextPressedSuccess: string;
190
+ textColorTextFocusSuccess: string;
191
+ textColorTextDisabledSuccess: string;
192
+ textColorGhostSuccess: string;
193
+ textColorGhostHoverSuccess: string;
194
+ textColorGhostPressedSuccess: string;
195
+ textColorGhostFocusSuccess: string;
196
+ textColorGhostDisabledSuccess: string;
197
+ borderSuccess: string;
198
+ borderHoverSuccess: string;
199
+ borderPressedSuccess: string;
200
+ borderFocusSuccess: string;
201
+ borderDisabledSuccess: string;
202
+ rippleColorSuccess: string;
203
+ colorWarning: string;
204
+ colorHoverWarning: string;
205
+ colorPressedWarning: string;
206
+ colorFocusWarning: string;
207
+ colorDisabledWarning: string;
208
+ textColorWarning: string;
209
+ textColorHoverWarning: string;
210
+ textColorPressedWarning: string;
211
+ textColorFocusWarning: string;
212
+ textColorDisabledWarning: string;
213
+ textColorTextWarning: string;
214
+ textColorTextHoverWarning: string;
215
+ textColorTextPressedWarning: string;
216
+ textColorTextFocusWarning: string;
217
+ textColorTextDisabledWarning: string;
218
+ textColorGhostWarning: string;
219
+ textColorGhostHoverWarning: string;
220
+ textColorGhostPressedWarning: string;
221
+ textColorGhostFocusWarning: string;
222
+ textColorGhostDisabledWarning: string;
223
+ borderWarning: string;
224
+ borderHoverWarning: string;
225
+ borderPressedWarning: string;
226
+ borderFocusWarning: string;
227
+ borderDisabledWarning: string;
228
+ rippleColorWarning: string;
229
+ colorError: string;
230
+ colorHoverError: string;
231
+ colorPressedError: string;
232
+ colorFocusError: string;
233
+ colorDisabledError: string;
234
+ textColorError: string;
235
+ textColorHoverError: string;
236
+ textColorPressedError: string;
237
+ textColorFocusError: string;
238
+ textColorDisabledError: string;
239
+ textColorTextError: string;
240
+ textColorTextHoverError: string;
241
+ textColorTextPressedError: string;
242
+ textColorTextFocusError: string;
243
+ textColorTextDisabledError: string;
244
+ textColorGhostError: string;
245
+ textColorGhostHoverError: string;
246
+ textColorGhostPressedError: string;
247
+ textColorGhostFocusError: string;
248
+ textColorGhostDisabledError: string;
249
+ borderError: string;
250
+ borderHoverError: string;
251
+ borderPressedError: string;
252
+ borderFocusError: string;
253
+ borderDisabledError: string;
254
+ rippleColorError: string;
255
+ waveOpacity: string;
256
+ fontWeight: string;
257
+ fontWeightStrong: string;
258
+ paddingTiny: string;
259
+ paddingSmall: string;
260
+ paddingMedium: string;
261
+ paddingLarge: string;
262
+ paddingRoundTiny: string;
263
+ paddingRoundSmall: string;
264
+ paddingRoundMedium: string;
265
+ paddingRoundLarge: string;
266
+ iconMarginTiny: string;
267
+ iconMarginSmall: string;
268
+ iconMarginMedium: string;
269
+ iconMarginLarge: string;
270
+ iconSizeTiny: string;
271
+ iconSizeSmall: string;
272
+ iconSizeMedium: string;
273
+ iconSizeLarge: string;
274
+ rippleDuration: string;
275
+ }, any>;
276
+ Input: import("../../_mixins").Theme<"Input", {
277
+ paddingTiny: string;
278
+ paddingSmall: string;
279
+ paddingMedium: string;
280
+ paddingLarge: string;
281
+ paddingHuge: string;
282
+ clearSize: string;
283
+ countTextColorDisabled: string;
284
+ countTextColor: string;
285
+ heightTiny: string;
286
+ heightSmall: string;
287
+ heightMedium: string;
288
+ heightLarge: string;
289
+ heightHuge: string;
290
+ fontSizeTiny: string;
291
+ fontSizeSmall: string;
292
+ fontSizeMedium: string;
293
+ fontSizeLarge: string;
294
+ fontSizeHuge: string;
295
+ lineHeight: string;
296
+ lineHeightTextarea: string;
297
+ borderRadius: string;
298
+ iconSize: string;
299
+ groupLabelTextColor: string;
300
+ textColor: string;
301
+ textColorDisabled: string;
302
+ textDecorationColor: string;
303
+ caretColor: string;
304
+ placeholderColor: string;
305
+ placeholderColorDisabled: string;
306
+ color: string;
307
+ colorDisabled: string;
308
+ colorFocus: string;
309
+ groupLabelBorder: string;
310
+ border: string;
311
+ borderHover: string;
312
+ borderDisabled: string;
313
+ borderFocus: string;
314
+ boxShadowFocus: string;
315
+ loadingColor: string;
316
+ loadingColorWarning: string;
317
+ borderWarning: string;
318
+ borderHoverWarning: string;
319
+ colorFocusWarning: string;
320
+ borderFocusWarning: string;
321
+ boxShadowFocusWarning: string;
322
+ caretColorWarning: string;
323
+ loadingColorError: string;
324
+ borderError: string;
325
+ borderHoverError: string;
326
+ colorFocusError: string;
327
+ borderFocusError: string;
328
+ boxShadowFocusError: string;
329
+ caretColorError: string;
330
+ clearColor: string;
331
+ clearColorHover: string;
332
+ clearColorPressed: string;
333
+ iconColor: string;
334
+ iconColorDisabled: string;
335
+ iconColorHover: string;
336
+ iconColorPressed: string;
337
+ suffixTextColor: string;
338
+ selectionColor: string;
339
+ }, any>;
340
+ Select: import("../../_mixins").Theme<"InternalSelection", {
341
+ paddingTiny: string;
342
+ paddingSmall: string;
343
+ paddingMedium: string;
344
+ paddingLarge: string;
345
+ paddingHuge: string;
346
+ clearSizeTiny: string;
347
+ clearSizeSmall: string;
348
+ clearSizeMedium: string;
349
+ clearSizeLarge: string;
350
+ clearSizeHuge: string;
351
+ arrowSizeTiny: string;
352
+ arrowSizeSmall: string;
353
+ arrowSizeMedium: string;
354
+ arrowSizeLarge: string;
355
+ arrowSizeHuge: string;
356
+ fontSizeTiny: string;
357
+ fontSizeSmall: string;
358
+ fontSizeMedium: string;
359
+ fontSizeLarge: string;
360
+ fontSizeHuge: string;
361
+ lineHeightTiny: string;
362
+ lineHeightSmall: string;
363
+ lineHeightMedium: string;
364
+ lineHeightLarge: string;
365
+ lineHeightHuge: string;
366
+ heightTiny: string;
367
+ heightSmall: string;
368
+ heightMedium: string;
369
+ heightLarge: string;
370
+ heightHuge: string;
371
+ borderRadiusTiny: string;
372
+ borderRadiusSmall: string;
373
+ borderRadiusMedium: string;
374
+ borderRadiusLarge: string;
375
+ borderRadiusHuge: string;
376
+ textColor: string;
377
+ textColorDisabled: string;
378
+ placeholderColor: string;
379
+ placeholderColorDisabled: string;
380
+ color: string;
381
+ colorFilled: string;
382
+ colorDisabled: string;
383
+ colorActive: string;
384
+ border: string;
385
+ borderFilled: string;
386
+ borderHover: string;
387
+ borderActive: string;
388
+ borderFocus: string;
389
+ borderDisabled: string;
390
+ boxShadowHover: string;
391
+ boxShadowActive: string;
392
+ boxShadowFocus: string;
393
+ caretColor: string;
394
+ arrowColor: string;
395
+ arrowColorHover: string;
396
+ arrowColorDisabled: string;
397
+ loadingColor: string;
398
+ borderWarning: string;
399
+ borderHoverWarning: string;
400
+ borderActiveWarning: string;
401
+ borderFocusWarning: string;
402
+ boxShadowHoverWarning: string;
403
+ boxShadowActiveWarning: string;
404
+ boxShadowFocusWarning: string;
405
+ colorActiveWarning: string;
406
+ caretColorWarning: string;
407
+ borderError: string;
408
+ borderHoverError: string;
409
+ borderActiveError: string;
410
+ borderFocusError: string;
411
+ boxShadowHoverError: string;
412
+ boxShadowActiveError: string;
413
+ boxShadowFocusError: string;
414
+ colorActiveError: string;
415
+ caretColorError: string;
416
+ clearColor: string;
417
+ clearColorHover: string;
418
+ clearColorPressed: string;
419
+ caretColorSecondary: string;
420
+ filterCounterTextColor: string;
421
+ filterCounterTextColorDisabled: string;
422
+ arrowColorSecondary: string;
423
+ clearColorSecondary: string;
424
+ colorSecondary: string;
425
+ textColorSecondary: string;
426
+ borderSecondary: string;
427
+ arrowColorDisabledSecondary: string;
428
+ clearColorDisabledSecondary: string;
429
+ colorDisabledSecondary: string;
430
+ textColorDisabledSecondary: string;
431
+ borderDisabledSecondary: string;
432
+ arrowColorHoverSecondary: string;
433
+ clearColorHoverSecondary: string;
434
+ colorHoverSecondary: string;
435
+ textColorHoverSecondary: string;
436
+ borderHoverSecondary: string;
437
+ arrowColorFocusSecondary: string;
438
+ clearColorFocusSecondary: string;
439
+ colorFocusSecondary: string;
440
+ textColorFocusSecondary: string;
441
+ borderFocusSecondary: string;
442
+ arrowColorActiveSecondary: string;
443
+ clearColorActiveSecondary: string;
444
+ colorActiveSecondary: string;
445
+ textColorActiveSecondary: string;
446
+ borderActiveSecondary: string;
447
+ }, {
448
+ Popover: import("../../_mixins").Theme<"Popover", {
449
+ space: string;
450
+ spaceArrow: string;
451
+ arrowOffset: string;
452
+ arrowOffsetVertical: string;
453
+ arrowHeight: string;
454
+ padding: string;
455
+ fontSize: string;
456
+ borderRadius: string;
457
+ color: string;
458
+ dividerColor: string;
459
+ textColor: string;
460
+ boxShadow: string;
461
+ }, any>;
462
+ }>;
463
+ Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
464
+ height: string;
465
+ width: string;
466
+ borderRadius: string;
467
+ color: string;
468
+ colorHover: string;
469
+ railInsetHorizontalBottom: string;
470
+ railInsetHorizontalTop: string;
471
+ railInsetVerticalRight: string;
472
+ railInsetVerticalLeft: string;
473
+ railColor: string;
474
+ }, any>;
475
+ }>;
476
+ export default datePickerV2Light;
477
+ export type DatePickerV2Theme = typeof datePickerV2Light;
@@ -0,0 +1,56 @@
1
+ import { inputLight } from '../../input/styles';
2
+ import { buttonLight } from '../../button/styles';
3
+ import { internalSelectionLight } from '../../_internal/selection/styles';
4
+ import { commonLight } from '../../_styles/common';
5
+ import { scrollbarLight } from '../../_internal/scrollbar/styles';
6
+ import { createTheme } from '../../_mixins';
7
+ export const self = (vars) => {
8
+ const { brandPrimary100, brandPrimary500, transparencySecondary, elementsTertiary, elementsQuaternary, textPrimary, textSecondary, borderRadiusSmall, borderRadiusLarge, containerPrimary, elementsPrimary, shadowDepth2, brandQuinary500, brandPrimary10 } = vars;
9
+ return {
10
+ // Panel
11
+ panelColor: containerPrimary,
12
+ panelBoxShadow: shadowDepth2,
13
+ panelBorderRadius: borderRadiusLarge,
14
+ panelTextColor: textPrimary,
15
+ // Divider
16
+ dividerColor: elementsQuaternary,
17
+ // Item (date cell)
18
+ itemTextColor: textPrimary,
19
+ itemTextColorOtherMonth: textSecondary,
20
+ itemTextColorDisabled: transparencySecondary,
21
+ itemColorHover: elementsTertiary,
22
+ itemColorActive: brandPrimary100,
23
+ itemColorIncluded: brandPrimary10,
24
+ itemTextColorActive: textPrimary,
25
+ itemBorderRadius: borderRadiusSmall,
26
+ // Icons
27
+ iconColor: elementsPrimary,
28
+ iconColorDisabled: transparencySecondary,
29
+ // Weekdays
30
+ weekdayTextColor: textPrimary,
31
+ weekendTextColor: brandQuinary500,
32
+ // Month items
33
+ monthItemHeight: '48px',
34
+ monthItemColorHover: elementsTertiary,
35
+ monthItemColorActive: brandPrimary100,
36
+ monthItemTextColorActive: brandPrimary500,
37
+ // Year trigger
38
+ yearTriggerColor: elementsTertiary,
39
+ yearTriggerColorHover: elementsQuaternary,
40
+ yearTriggerTextColor: textSecondary,
41
+ // Current date indicator
42
+ currentDateIndicatorColor: textPrimary
43
+ };
44
+ };
45
+ const datePickerV2Light = createTheme({
46
+ name: 'DatePickerV2',
47
+ common: commonLight,
48
+ peers: {
49
+ Button: buttonLight,
50
+ Input: inputLight,
51
+ Select: internalSelectionLight,
52
+ Scrollbar: scrollbarLight
53
+ },
54
+ self
55
+ });
56
+ export default datePickerV2Light;
@@ -288,6 +288,7 @@ export declare const UDialogProvider: import("vue").DefineComponent<{
288
288
  brand150: string;
289
289
  brand350: string;
290
290
  brand550: string;
291
+ brandPrimary10: string;
291
292
  brandPrimary50: string;
292
293
  brandPrimary100: string;
293
294
  brandPrimary200: string;
@@ -656,6 +657,7 @@ export declare const UDialogProvider: import("vue").DefineComponent<{
656
657
  brand150: string;
657
658
  brand350: string;
658
659
  brand550: string;
660
+ brandPrimary10: string;
659
661
  brandPrimary50: string;
660
662
  brandPrimary100: string;
661
663
  brandPrimary200: string;
@@ -318,7 +318,10 @@ export default defineComponent({
318
318
  const navigationNode = resolveWrappedSlot($slots.navigation, (children) => children !== null && children !== void 0 ? children : null) || (h(HeaderNavigation, { menuOptions: this.menuOptions, menuPlacement: this.menuPlacement, menuTrigger: this.menuTrigger, menuValue: this.mergedMenuValue, menuTabsProps: this.menuTabsProps, menuCardMinColumnWidth: this.menuCardMinColumnWidth, mergedClsPrefix: mergedClsPrefix, menuPaneClass: this.menuPaneClass, menuPaneWrapperClass: this.menuPaneWrapperClass, activeMenuKey: this.mergedActiveMenuKey, onUpdateMenuValue: this.handleMenuValueUpdate, onUpdateActiveMenuKey: this.handleUpdateActiveMenuKey }));
319
319
  const mobileNode = this.responsive && this.isMobile ? (h(HeaderMobile, { visible: this.mobileMenuVisible, menuOptions: this.normalizedMenuItems, activeMenuValue: this.mergedMenuValue, langOptions: this.langOptions || defaultLangOptions, currentLang: this.currentLang, mergedClsPrefix: mergedClsPrefix, cssVars: this.cssVars, menuType: this.mobileMenuType, showFooterActions: this.mobileShowFooterActions, showHeaderActions: this.mobileShowHeaderActions, primaryActionText: this.mobilePrimaryActionText, secondaryActionText: this.mobileSecondaryActionText, onToggle: this.toggleMobileMenu, onClose: this.closeMobileMenu, onMenuItemClick: this.handleMobileMenuItemClick, onLanguageSelect: this.handleSelectLang, onPrimaryAction: this.handleMobilePrimaryAction, onSecondaryAction: this.handleMobileSecondaryAction, onSearchClick: this.handleSearchClick, onPreview: this.handlePreviewClick, onLogout: this.handleLogoutClick }, {
320
320
  actions: $slots['mobile-actions'],
321
- footer: $slots['mobile-footer']
321
+ footer: $slots['mobile-footer'],
322
+ search: $slots['mobile-search'],
323
+ preview: $slots['mobile-preview'],
324
+ logout: $slots['mobile-logout']
322
325
  })) : null;
323
326
  const langNode = resolveWrappedSlot($slots.lang, (children) => children);
324
327
  const searchNode = resolveWrappedSlot($slots.search, (children) => children);
@@ -49,6 +49,18 @@ declare const _default: import("vue").DefineComponent<{
49
49
  search: import("vue").Ref<string>;
50
50
  searchText: import("vue").ComputedRef<string>;
51
51
  placeholder: import("vue").ComputedRef<string>;
52
+ inputInstRef: import("vue").Ref<{
53
+ wrapperElRef: HTMLElement | null;
54
+ textareaElRef: HTMLTextAreaElement | null;
55
+ inputElRef: HTMLInputElement | null;
56
+ isCompositing: boolean;
57
+ blur: () => void;
58
+ focus: () => void;
59
+ select: () => void;
60
+ activate: () => void;
61
+ deactivate: () => void;
62
+ scrollTo: (options: ScrollToOptions) => void;
63
+ } | null>;
52
64
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
53
65
  readonly searchValue: {
54
66
  readonly type: StringConstructor;
@@ -1,4 +1,5 @@
1
- import { h, defineComponent, computed, ref } from 'vue';
1
+ import { h, defineComponent, computed, ref, withDirectives, onMounted } from 'vue';
2
+ import { clickoutside } from 'vdirs';
2
3
  import { UButton } from '../../button';
3
4
  import { UIcon } from '../../icon';
4
5
  import { UInput } from '../../input';
@@ -38,15 +39,21 @@ export default defineComponent({
38
39
  const search = ref('');
39
40
  const searchText = computed(() => localeRef.value.desktopSearchTitle);
40
41
  const placeholder = computed(() => localeRef.value.searchPlaceholder);
42
+ const inputInstRef = ref(null);
43
+ onMounted(() => {
44
+ var _a;
45
+ (_a = inputInstRef.value) === null || _a === void 0 ? void 0 : _a.focus();
46
+ });
41
47
  return {
42
48
  search,
43
49
  searchText,
44
- placeholder
50
+ placeholder,
51
+ inputInstRef
45
52
  };
46
53
  },
47
54
  render() {
48
55
  const blockClass = `${this.mergedClsPrefix}-header-search-desktop`;
49
- return (h("div", { class: blockClass, style: this.cssVars },
56
+ const content = (h("div", { class: blockClass, style: this.cssVars },
50
57
  h(UButton, { text: true, class: `${blockClass}__close`, onClick: this.onSearchClose }, {
51
58
  default: () => (h(UIcon, { size: 24, color: "#C5C7CA" }, { default: () => h(CloseIcon, null) }))
52
59
  }),
@@ -54,7 +61,7 @@ export default defineComponent({
54
61
  h(UText, { variant: "title-l-medium", text: this.searchText })),
55
62
  h("div", { class: `${blockClass}__content` },
56
63
  h("div", { class: `${blockClass}__input-wrapper` },
57
- h(UInput, { value: this.searchValue, class: `${blockClass}__input`, placeholder: this.placeholder, autofocus: true, onKeyup: (e) => {
64
+ h(UInput, { ref: "inputInstRef", value: this.searchValue, class: `${blockClass}__input`, placeholder: this.placeholder, autofocus: true, onKeyup: (e) => {
58
65
  var _a, _b;
59
66
  if (e.key === 'Enter') {
60
67
  (_a = this.onSearchSubmit) === null || _a === void 0 ? void 0 : _a.call(this);
@@ -73,5 +80,15 @@ export default defineComponent({
73
80
  cssVars: this.cssVars,
74
81
  onSelect: this.onResultSelect
75
82
  })));
83
+ if (!this.onSearchClose)
84
+ return content;
85
+ return withDirectives(content, [
86
+ [
87
+ clickoutside,
88
+ this.onSearchClose,
89
+ undefined,
90
+ { capture: true }
91
+ ]
92
+ ]);
76
93
  }
77
94
  });
@@ -46,6 +46,18 @@ declare const _default: import("vue").DefineComponent<{
46
46
  disabled?: boolean | undefined;
47
47
  }[]>;
48
48
  searchLoading: import("vue").Ref<boolean>;
49
+ inputInstRef: import("vue").Ref<{
50
+ wrapperElRef: HTMLElement | null;
51
+ textareaElRef: HTMLTextAreaElement | null;
52
+ inputElRef: HTMLInputElement | null;
53
+ isCompositing: boolean;
54
+ blur: () => void;
55
+ focus: () => void;
56
+ select: () => void;
57
+ activate: () => void;
58
+ deactivate: () => void;
59
+ scrollTo: (options: ScrollToOptions) => void;
60
+ } | null>;
49
61
  handleSearchInput: (value: string) => void;
50
62
  handleSearch: () => Promise<void>;
51
63
  handleClose: () => void;