@uzum-tech/ui 1.5.3 → 1.5.5

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 (84) hide show
  1. package/dist/index.js +153 -85
  2. package/dist/index.prod.js +3 -3
  3. package/es/_utils/css/index.d.ts +1 -0
  4. package/es/_utils/css/index.js +1 -0
  5. package/es/_utils/css/normalize-size.d.ts +1 -0
  6. package/es/_utils/css/normalize-size.js +6 -0
  7. package/es/_utils/index.d.ts +1 -1
  8. package/es/_utils/index.js +1 -1
  9. package/es/avatar/src/Avatar.js +1 -7
  10. package/es/badge/src/Badge.d.ts +13 -0
  11. package/es/badge/src/Badge.js +5 -4
  12. package/es/badge/src/styles/index.cssr.js +5 -6
  13. package/es/badge/styles/light.d.ts +1 -0
  14. package/es/badge/styles/light.js +2 -1
  15. package/es/collapse/src/Collapse.d.ts +47 -14
  16. package/es/collapse/src/Collapse.js +6 -3
  17. package/es/collapse/src/CollapseItem.js +3 -2
  18. package/es/collapse/src/styles/index.cssr.js +27 -7
  19. package/es/collapse/styles/light.d.ts +4 -1
  20. package/es/collapse/styles/light.js +6 -3
  21. package/es/data-table/src/DataTable.d.ts +2 -0
  22. package/es/data-table/src/DataTable.js +1 -0
  23. package/es/data-table/src/TableParts/Body.d.ts +1 -0
  24. package/es/data-table/src/TableParts/Body.js +5 -4
  25. package/es/data-table/src/interface.d.ts +3 -0
  26. package/es/data-table/src/interface.js +1 -1
  27. package/es/date-picker/src/DatePicker.d.ts +3 -0
  28. package/es/date-picker/src/DatePicker.js +2 -2
  29. package/es/date-picker/src/interface.d.ts +1 -0
  30. package/es/date-picker/src/panel/use-calendar.js +5 -2
  31. package/es/date-picker/src/panel/use-dual-calendar.js +6 -3
  32. package/es/date-picker/src/utils.d.ts +1 -1
  33. package/es/date-picker/src/utils.js +3 -2
  34. package/es/dynamic-tags/src/DynamicTags.d.ts +10 -0
  35. package/es/dynamic-tags/styles/light.d.ts +1 -0
  36. package/es/tag/src/Tag.d.ts +27 -13
  37. package/es/tag/src/Tag.js +7 -2
  38. package/es/tag/src/styles/index.cssr.js +13 -3
  39. package/es/tag/styles/light.d.ts +1 -0
  40. package/es/tag/styles/light.js +7 -6
  41. package/es/version.d.ts +1 -1
  42. package/es/version.js +1 -1
  43. package/lib/_utils/css/index.d.ts +1 -0
  44. package/lib/_utils/css/index.js +3 -1
  45. package/lib/_utils/css/normalize-size.d.ts +1 -0
  46. package/lib/_utils/css/normalize-size.js +10 -0
  47. package/lib/_utils/index.d.ts +1 -1
  48. package/lib/_utils/index.js +2 -1
  49. package/lib/avatar/src/Avatar.js +1 -7
  50. package/lib/badge/src/Badge.d.ts +13 -0
  51. package/lib/badge/src/Badge.js +4 -3
  52. package/lib/badge/src/styles/index.cssr.js +5 -6
  53. package/lib/badge/styles/light.d.ts +1 -0
  54. package/lib/badge/styles/light.js +2 -1
  55. package/lib/collapse/src/Collapse.d.ts +47 -14
  56. package/lib/collapse/src/Collapse.js +6 -3
  57. package/lib/collapse/src/CollapseItem.js +3 -2
  58. package/lib/collapse/src/styles/index.cssr.js +27 -7
  59. package/lib/collapse/styles/light.d.ts +4 -1
  60. package/lib/collapse/styles/light.js +6 -3
  61. package/lib/data-table/src/DataTable.d.ts +2 -0
  62. package/lib/data-table/src/DataTable.js +1 -0
  63. package/lib/data-table/src/TableParts/Body.d.ts +1 -0
  64. package/lib/data-table/src/TableParts/Body.js +5 -4
  65. package/lib/data-table/src/interface.d.ts +3 -0
  66. package/lib/data-table/src/interface.js +1 -1
  67. package/lib/date-picker/src/DatePicker.d.ts +3 -0
  68. package/lib/date-picker/src/DatePicker.js +2 -2
  69. package/lib/date-picker/src/interface.d.ts +1 -0
  70. package/lib/date-picker/src/panel/use-calendar.js +5 -2
  71. package/lib/date-picker/src/panel/use-dual-calendar.js +6 -3
  72. package/lib/date-picker/src/utils.d.ts +1 -1
  73. package/lib/date-picker/src/utils.js +3 -2
  74. package/lib/dynamic-tags/src/DynamicTags.d.ts +10 -0
  75. package/lib/dynamic-tags/styles/light.d.ts +1 -0
  76. package/lib/tag/src/Tag.d.ts +27 -13
  77. package/lib/tag/src/Tag.js +7 -2
  78. package/lib/tag/src/styles/index.cssr.js +13 -3
  79. package/lib/tag/styles/light.d.ts +1 -0
  80. package/lib/tag/styles/light.js +7 -6
  81. package/lib/version.d.ts +1 -1
  82. package/lib/version.js +1 -1
  83. package/package.json +1 -1
  84. package/web-types.json +23 -1
@@ -36,7 +36,7 @@ exports.datePickerProps = Object.assign(Object.assign({}, _mixins_1.useTheme.pro
36
36
  }, value: [Number, Array], formattedValue: [String, Array], size: String, type: {
37
37
  type: String,
38
38
  default: 'date'
39
- }, valueFormat: String, separator: String, placeholder: String, startPlaceholder: String, endPlaceholder: String, format: String, dateFormat: String, timeFormat: String, actions: Array, shortcuts: Object, defaultShortcuts: Boolean, isDateDisabled: Function, isTimeDisabled: Function, show: {
39
+ }, valueFormat: String, separator: String, placeholder: String, startPlaceholder: String, endPlaceholder: String, format: String, dateFormat: String, timeFormat: String, actions: Array, shortcuts: Object, defaultShortcuts: Boolean, isDateDisabled: Function, maxDate: Number, isTimeDisabled: Function, show: {
40
40
  type: Boolean,
41
41
  default: undefined
42
42
  }, panel: Boolean, ranges: Object, firstDayOfWeek: Number, inputReadonly: Boolean, closeOnSelect: Boolean, status: String, timePickerProps: [Object, Array], onClear: Function, onConfirm: Function, defaultCalendarStartTime: Number, defaultCalendarEndTime: Number, bindCalendarMonths: Boolean, 'onUpdate:show': [Function, Array], onUpdateShow: [Function, Array], 'onUpdate:formattedValue': [Function, Array], onUpdateFormattedValue: [Function, Array], 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array], onFocus: [Function, Array], onBlur: [Function, Array],
@@ -570,7 +570,7 @@ exports.default = (0, vue_1.defineComponent)({
570
570
  const dualValidation = (0, validation_utils_1.dualCalendarValidation)(props, pendingValueRef);
571
571
  (0, vue_1.provide)(interface_1.datePickerInjectionKey, Object.assign(Object.assign(Object.assign({ mergedClsPrefixRef, mergedThemeRef: themeRef, timePickerSizeRef,
572
572
  localeRef,
573
- dateLocaleRef, firstDayOfWeekRef: (0, vue_1.toRef)(props, 'firstDayOfWeek'), isDateDisabledRef: (0, vue_1.toRef)(props, 'isDateDisabled'), rangesRef: (0, vue_1.toRef)(props, 'ranges'), timePickerPropsRef: (0, vue_1.toRef)(props, 'timePickerProps'), closeOnSelectRef: (0, vue_1.toRef)(props, 'closeOnSelect'), updateValueOnCloseRef: (0, vue_1.toRef)(props, 'updateValueOnClose') }, uniVaidation), dualValidation), { datePickerSlots: slots }));
573
+ dateLocaleRef, firstDayOfWeekRef: (0, vue_1.toRef)(props, 'firstDayOfWeek'), isDateDisabledRef: (0, vue_1.toRef)(props, 'isDateDisabled'), maxDateRef: (0, vue_1.toRef)(props, 'maxDate'), rangesRef: (0, vue_1.toRef)(props, 'ranges'), timePickerPropsRef: (0, vue_1.toRef)(props, 'timePickerProps'), closeOnSelectRef: (0, vue_1.toRef)(props, 'closeOnSelect'), updateValueOnCloseRef: (0, vue_1.toRef)(props, 'updateValueOnClose') }, uniVaidation), dualValidation), { datePickerSlots: slots }));
574
574
  const exposedMethods = {
575
575
  focus: () => {
576
576
  var _a;
@@ -61,6 +61,7 @@ export type DatePickerInjection = {
61
61
  localeRef: Ref<ULocale['DatePicker']>;
62
62
  dateLocaleRef: Ref<UDateLocale>;
63
63
  isDateDisabledRef: Ref<IsDateDisabled | undefined>;
64
+ maxDateRef: Ref<number | undefined>;
64
65
  rangesRef: Ref<Record<string, [number, number]> | undefined>;
65
66
  closeOnSelectRef: Ref<boolean>;
66
67
  updateValueOnCloseRef: Ref<boolean>;
@@ -16,7 +16,7 @@ exports.useCalendarProps = useCalendarProps;
16
16
  // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
17
17
  function useCalendar(props, type) {
18
18
  const panelCommon = (0, use_panel_common_1.usePanelCommon)(props);
19
- const { isValueInvalidRef, isDateDisabledRef, isDateInvalidRef, isTimeInvalidRef, isDateTimeInvalidRef, isHourDisabledRef, isMinuteDisabledRef, isSecondDisabledRef, localeRef, firstDayOfWeekRef, datePickerSlots
19
+ const { isValueInvalidRef, isDateDisabledRef, maxDateRef, isDateInvalidRef, isTimeInvalidRef, isDateTimeInvalidRef, isHourDisabledRef, isMinuteDisabledRef, isSecondDisabledRef, localeRef, firstDayOfWeekRef, datePickerSlots
20
20
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
21
21
  } = (0, vue_1.inject)(interface_1.datePickerInjectionKey);
22
22
  const validation = {
@@ -49,7 +49,7 @@ function useCalendar(props, type) {
49
49
  });
50
50
  const yearArrayRef = (0, vue_1.computed)(() => {
51
51
  const { value } = props;
52
- return (0, utils_1.yearArray)(Array.isArray(value) ? null : value, nowRef.value);
52
+ return (0, utils_1.yearArray)(Array.isArray(value) ? null : value, nowRef.value, maxDateRef.value);
53
53
  });
54
54
  const quarterArrayRef = (0, vue_1.computed)(() => {
55
55
  const { value } = props;
@@ -95,6 +95,9 @@ function useCalendar(props, type) {
95
95
  return (0, date_fns_1.getTime)((0, date_fns_1.startOfDay)(value));
96
96
  }
97
97
  function mergedIsDateDisabled(ts) {
98
+ if (maxDateRef.value && ts > maxDateRef.value) {
99
+ return true;
100
+ }
98
101
  const { isDateDisabled: { value: isDateDisabled } } = validation;
99
102
  if (!isDateDisabled)
100
103
  return false;
@@ -16,7 +16,7 @@ exports.useDualCalendarProps = useDualCalendarProps;
16
16
  // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
17
17
  function useDualCalendar(props, type) {
18
18
  var _a, _b;
19
- const { isDateDisabledRef, isStartHourDisabledRef, isEndHourDisabledRef, isStartMinuteDisabledRef, isEndMinuteDisabledRef, isStartSecondDisabledRef, isEndSecondDisabledRef, isStartDateInvalidRef, isEndDateInvalidRef, isStartTimeInvalidRef, isEndTimeInvalidRef, isStartValueInvalidRef, isEndValueInvalidRef, isRangeInvalidRef, localeRef, rangesRef, closeOnSelectRef, updateValueOnCloseRef, firstDayOfWeekRef, datePickerSlots
19
+ const { isDateDisabledRef, maxDateRef, isStartHourDisabledRef, isEndHourDisabledRef, isStartMinuteDisabledRef, isEndMinuteDisabledRef, isStartSecondDisabledRef, isEndSecondDisabledRef, isStartDateInvalidRef, isEndDateInvalidRef, isStartTimeInvalidRef, isEndTimeInvalidRef, isStartValueInvalidRef, isEndValueInvalidRef, isRangeInvalidRef, localeRef, rangesRef, closeOnSelectRef, updateValueOnCloseRef, firstDayOfWeekRef, datePickerSlots
20
20
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
21
21
  } = (0, vue_1.inject)(interface_1.datePickerInjectionKey);
22
22
  const validation = {
@@ -113,10 +113,10 @@ function useDualCalendar(props, type) {
113
113
  return shortcuts || rangesRef.value;
114
114
  });
115
115
  const startYearArrayRef = (0, vue_1.computed)(() => {
116
- return (0, utils_1.yearArray)((0, utils_1.pluckValueFromRange)(props.value, 'start'), nowRef.value);
116
+ return (0, utils_1.yearArray)((0, utils_1.pluckValueFromRange)(props.value, 'start'), nowRef.value, maxDateRef.value);
117
117
  });
118
118
  const endYearArrayRef = (0, vue_1.computed)(() => {
119
- return (0, utils_1.yearArray)((0, utils_1.pluckValueFromRange)(props.value, 'end'), nowRef.value);
119
+ return (0, utils_1.yearArray)((0, utils_1.pluckValueFromRange)(props.value, 'end'), nowRef.value, maxDateRef.value);
120
120
  });
121
121
  const startQuarterArrayRef = (0, vue_1.computed)(() => {
122
122
  const startValue = (0, utils_1.pluckValueFromRange)(props.value, 'start');
@@ -213,6 +213,9 @@ function useDualCalendar(props, type) {
213
213
  }
214
214
  // The function is used on date panel, not the date-picker value validation
215
215
  function mergedIsDateDisabled(ts) {
216
+ if (maxDateRef.value && ts > maxDateRef.value) {
217
+ return true;
218
+ }
216
219
  const isDateDisabled = isDateDisabledRef.value;
217
220
  if (!isDateDisabled)
218
221
  return false;
@@ -53,7 +53,7 @@ export type DateCommonItem = DateItem | MonthItem | YearItem | QuarterItem;
53
53
  declare function dateArray(monthTs: number, valueTs: number | [number, number] | null, currentTs: number, startDay: 0 | 1 | 2 | 3 | 4 | 5 | 6, strip?: boolean): DateItem[];
54
54
  declare function monthArray(yearAnchorTs: number, valueTs: number | null, currentTs: number): MonthItem[];
55
55
  declare function quarterArray(yearAnchorTs: number, valueTs: number | null, currentTs: number): QuarterItem[];
56
- declare function yearArray(valueTs: number | null, currentTs: number): YearItem[];
56
+ declare function yearArray(valueTs: number | null, currentTs: number, maxDate?: number): YearItem[];
57
57
  declare function strictParse(string: string, pattern: string, backup: Date, option: {
58
58
  locale: UDateLocale['locale'];
59
59
  }): Date;
@@ -164,10 +164,11 @@ function quarterArray(yearAnchorTs, valueTs, currentTs) {
164
164
  }
165
165
  return calendarQuarters;
166
166
  }
167
- function yearArray(valueTs, currentTs) {
167
+ function yearArray(valueTs, currentTs, maxDate) {
168
168
  const calendarYears = [];
169
169
  const time1900 = new Date(config_1.START_YEAR, 0, 1);
170
- let count = config_1.END_YEAR - config_1.START_YEAR + 1;
170
+ const endYear = maxDate ? new Date(maxDate).getFullYear() : config_1.END_YEAR;
171
+ let count = endYear - config_1.START_YEAR + 1;
171
172
  while (count--) {
172
173
  calendarYears.push(yearItem((0, date_fns_1.getTime)((0, date_fns_1.addYears)(time1900, count)), valueTs, currentTs));
173
174
  }
@@ -349,6 +349,7 @@ export declare const dynamicTagsProps: {
349
349
  textColorPressedCheckable: string;
350
350
  textColorChecked: string;
351
351
  colorCheckable: string;
352
+ colorCheckableOutline: string;
352
353
  colorHoverCheckable: string;
353
354
  colorPressedCheckable: string;
354
355
  colorChecked: string;
@@ -736,6 +737,7 @@ export declare const dynamicTagsProps: {
736
737
  textColorPressedCheckable: string;
737
738
  textColorChecked: string;
738
739
  colorCheckable: string;
740
+ colorCheckableOutline: string;
739
741
  colorHoverCheckable: string;
740
742
  colorPressedCheckable: string;
741
743
  colorChecked: string;
@@ -1123,6 +1125,7 @@ export declare const dynamicTagsProps: {
1123
1125
  textColorPressedCheckable: string;
1124
1126
  textColorChecked: string;
1125
1127
  colorCheckable: string;
1128
+ colorCheckableOutline: string;
1126
1129
  colorHoverCheckable: string;
1127
1130
  colorPressedCheckable: string;
1128
1131
  colorChecked: string;
@@ -1548,6 +1551,7 @@ declare const _default: import("vue").DefineComponent<{
1548
1551
  textColorPressedCheckable: string;
1549
1552
  textColorChecked: string;
1550
1553
  colorCheckable: string;
1554
+ colorCheckableOutline: string;
1551
1555
  colorHoverCheckable: string;
1552
1556
  colorPressedCheckable: string;
1553
1557
  colorChecked: string;
@@ -1935,6 +1939,7 @@ declare const _default: import("vue").DefineComponent<{
1935
1939
  textColorPressedCheckable: string;
1936
1940
  textColorChecked: string;
1937
1941
  colorCheckable: string;
1942
+ colorCheckableOutline: string;
1938
1943
  colorHoverCheckable: string;
1939
1944
  colorPressedCheckable: string;
1940
1945
  colorChecked: string;
@@ -2322,6 +2327,7 @@ declare const _default: import("vue").DefineComponent<{
2322
2327
  textColorPressedCheckable: string;
2323
2328
  textColorChecked: string;
2324
2329
  colorCheckable: string;
2330
+ colorCheckableOutline: string;
2325
2331
  colorHoverCheckable: string;
2326
2332
  colorPressedCheckable: string;
2327
2333
  colorChecked: string;
@@ -2742,6 +2748,7 @@ declare const _default: import("vue").DefineComponent<{
2742
2748
  textColorPressedCheckable: string;
2743
2749
  textColorChecked: string;
2744
2750
  colorCheckable: string;
2751
+ colorCheckableOutline: string;
2745
2752
  colorHoverCheckable: string;
2746
2753
  colorPressedCheckable: string;
2747
2754
  colorChecked: string;
@@ -3194,6 +3201,7 @@ declare const _default: import("vue").DefineComponent<{
3194
3201
  textColorPressedCheckable: string;
3195
3202
  textColorChecked: string;
3196
3203
  colorCheckable: string;
3204
+ colorCheckableOutline: string;
3197
3205
  colorHoverCheckable: string;
3198
3206
  colorPressedCheckable: string;
3199
3207
  colorChecked: string;
@@ -3581,6 +3589,7 @@ declare const _default: import("vue").DefineComponent<{
3581
3589
  textColorPressedCheckable: string;
3582
3590
  textColorChecked: string;
3583
3591
  colorCheckable: string;
3592
+ colorCheckableOutline: string;
3584
3593
  colorHoverCheckable: string;
3585
3594
  colorPressedCheckable: string;
3586
3595
  colorChecked: string;
@@ -3968,6 +3977,7 @@ declare const _default: import("vue").DefineComponent<{
3968
3977
  textColorPressedCheckable: string;
3969
3978
  textColorChecked: string;
3970
3979
  colorCheckable: string;
3980
+ colorCheckableOutline: string;
3971
3981
  colorHoverCheckable: string;
3972
3982
  colorPressedCheckable: string;
3973
3983
  colorChecked: string;
@@ -309,6 +309,7 @@ declare const dynamicTagsLight: import("../../_mixins").Theme<"DynamicTags", {
309
309
  textColorPressedCheckable: string;
310
310
  textColorChecked: string;
311
311
  colorCheckable: string;
312
+ colorCheckableOutline: string;
312
313
  colorHoverCheckable: string;
313
314
  colorPressedCheckable: string;
314
315
  colorChecked: string;
@@ -11,8 +11,13 @@ export declare const tagProps: {
11
11
  type: PropType<boolean | undefined>;
12
12
  default: undefined;
13
13
  };
14
+ size: {
15
+ type: PropType<"small" | "medium" | "large">;
16
+ default: string;
17
+ };
14
18
  checked: BooleanConstructor;
15
19
  checkable: BooleanConstructor;
20
+ outline: BooleanConstructor;
16
21
  strong: BooleanConstructor;
17
22
  triggerClickOnClose: BooleanConstructor;
18
23
  onClose: PropType<MaybeArray<(e: MouseEvent) => void>>;
@@ -35,10 +40,6 @@ export declare const tagProps: {
35
40
  readonly default: "default";
36
41
  };
37
42
  round: BooleanConstructor;
38
- size: {
39
- readonly type: PropType<"tiny" | "small" | "medium" | "large">;
40
- readonly default: "medium";
41
- };
42
43
  closable: {
43
44
  readonly type: PropType<boolean | undefined>;
44
45
  readonly default: undefined;
@@ -80,6 +81,7 @@ export declare const tagProps: {
80
81
  textColorPressedCheckable: string;
81
82
  textColorChecked: string;
82
83
  colorCheckable: string;
84
+ colorCheckableOutline: string;
83
85
  colorHoverCheckable: string;
84
86
  colorPressedCheckable: string;
85
87
  colorChecked: string;
@@ -183,6 +185,7 @@ export declare const tagProps: {
183
185
  textColorPressedCheckable: string;
184
186
  textColorChecked: string;
185
187
  colorCheckable: string;
188
+ colorCheckableOutline: string;
186
189
  colorHoverCheckable: string;
187
190
  colorPressedCheckable: string;
188
191
  colorChecked: string;
@@ -286,6 +289,7 @@ export declare const tagProps: {
286
289
  textColorPressedCheckable: string;
287
290
  textColorChecked: string;
288
291
  colorCheckable: string;
292
+ colorCheckableOutline: string;
289
293
  colorHoverCheckable: string;
290
294
  colorPressedCheckable: string;
291
295
  colorChecked: string;
@@ -367,8 +371,13 @@ declare const _default: import("vue").DefineComponent<{
367
371
  type: PropType<boolean | undefined>;
368
372
  default: undefined;
369
373
  };
374
+ size: {
375
+ type: PropType<"small" | "medium" | "large">;
376
+ default: string;
377
+ };
370
378
  checked: BooleanConstructor;
371
379
  checkable: BooleanConstructor;
380
+ outline: BooleanConstructor;
372
381
  strong: BooleanConstructor;
373
382
  triggerClickOnClose: BooleanConstructor;
374
383
  onClose: PropType<MaybeArray<(e: MouseEvent) => void>>;
@@ -391,10 +400,6 @@ declare const _default: import("vue").DefineComponent<{
391
400
  readonly default: "default";
392
401
  };
393
402
  round: BooleanConstructor;
394
- size: {
395
- readonly type: PropType<"tiny" | "small" | "medium" | "large">;
396
- readonly default: "medium";
397
- };
398
403
  closable: {
399
404
  readonly type: PropType<boolean | undefined>;
400
405
  readonly default: undefined;
@@ -436,6 +441,7 @@ declare const _default: import("vue").DefineComponent<{
436
441
  textColorPressedCheckable: string;
437
442
  textColorChecked: string;
438
443
  colorCheckable: string;
444
+ colorCheckableOutline: string;
439
445
  colorHoverCheckable: string;
440
446
  colorPressedCheckable: string;
441
447
  colorChecked: string;
@@ -539,6 +545,7 @@ declare const _default: import("vue").DefineComponent<{
539
545
  textColorPressedCheckable: string;
540
546
  textColorChecked: string;
541
547
  colorCheckable: string;
548
+ colorCheckableOutline: string;
542
549
  colorHoverCheckable: string;
543
550
  colorPressedCheckable: string;
544
551
  colorChecked: string;
@@ -642,6 +649,7 @@ declare const _default: import("vue").DefineComponent<{
642
649
  textColorPressedCheckable: string;
643
650
  textColorChecked: string;
644
651
  colorCheckable: string;
652
+ colorCheckableOutline: string;
645
653
  colorHoverCheckable: string;
646
654
  colorPressedCheckable: string;
647
655
  colorChecked: string;
@@ -739,6 +747,7 @@ declare const _default: import("vue").DefineComponent<{
739
747
  '--u-close-size': string;
740
748
  '--u-color': string;
741
749
  '--u-color-checkable': string;
750
+ '--u-color-checkable-outline': string;
742
751
  '--u-color-checked': string;
743
752
  '--u-color-checked-hover': string;
744
753
  '--u-color-checked-pressed': string;
@@ -762,8 +771,13 @@ declare const _default: import("vue").DefineComponent<{
762
771
  type: PropType<boolean | undefined>;
763
772
  default: undefined;
764
773
  };
774
+ size: {
775
+ type: PropType<"small" | "medium" | "large">;
776
+ default: string;
777
+ };
765
778
  checked: BooleanConstructor;
766
779
  checkable: BooleanConstructor;
780
+ outline: BooleanConstructor;
767
781
  strong: BooleanConstructor;
768
782
  triggerClickOnClose: BooleanConstructor;
769
783
  onClose: PropType<MaybeArray<(e: MouseEvent) => void>>;
@@ -786,10 +800,6 @@ declare const _default: import("vue").DefineComponent<{
786
800
  readonly default: "default";
787
801
  };
788
802
  round: BooleanConstructor;
789
- size: {
790
- readonly type: PropType<"tiny" | "small" | "medium" | "large">;
791
- readonly default: "medium";
792
- };
793
803
  closable: {
794
804
  readonly type: PropType<boolean | undefined>;
795
805
  readonly default: undefined;
@@ -831,6 +841,7 @@ declare const _default: import("vue").DefineComponent<{
831
841
  textColorPressedCheckable: string;
832
842
  textColorChecked: string;
833
843
  colorCheckable: string;
844
+ colorCheckableOutline: string;
834
845
  colorHoverCheckable: string;
835
846
  colorPressedCheckable: string;
836
847
  colorChecked: string;
@@ -934,6 +945,7 @@ declare const _default: import("vue").DefineComponent<{
934
945
  textColorPressedCheckable: string;
935
946
  textColorChecked: string;
936
947
  colorCheckable: string;
948
+ colorCheckableOutline: string;
937
949
  colorHoverCheckable: string;
938
950
  colorPressedCheckable: string;
939
951
  colorChecked: string;
@@ -1037,6 +1049,7 @@ declare const _default: import("vue").DefineComponent<{
1037
1049
  textColorPressedCheckable: string;
1038
1050
  textColorChecked: string;
1039
1051
  colorCheckable: string;
1052
+ colorCheckableOutline: string;
1040
1053
  colorHoverCheckable: string;
1041
1054
  colorPressedCheckable: string;
1042
1055
  colorChecked: string;
@@ -1111,11 +1124,12 @@ declare const _default: import("vue").DefineComponent<{
1111
1124
  type: "default" | "tertiary" | "primary" | "info" | "success" | "warning" | "error";
1112
1125
  disabled: boolean | undefined;
1113
1126
  bordered: boolean | undefined;
1114
- size: "small" | "tiny" | "medium" | "large";
1127
+ size: "small" | "medium" | "large";
1115
1128
  checked: boolean;
1116
1129
  round: boolean;
1117
1130
  closable: boolean | undefined;
1118
1131
  strong: boolean;
1132
+ outline: boolean;
1119
1133
  checkable: boolean;
1120
1134
  triggerClickOnClose: boolean;
1121
1135
  internalCloseFocusable: boolean;
@@ -15,7 +15,10 @@ const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
15
15
  exports.tagProps = Object.assign(Object.assign(Object.assign({}, _mixins_1.useTheme.props), common_props_1.default), { bordered: {
16
16
  type: Boolean,
17
17
  default: undefined
18
- }, checked: Boolean, checkable: Boolean, strong: Boolean, triggerClickOnClose: Boolean, onClose: [Array, Function], onMouseenter: Function, onMouseleave: Function, 'onUpdate:checked': Function, onUpdateChecked: Function,
18
+ }, size: {
19
+ type: String,
20
+ default: 'large'
21
+ }, checked: Boolean, checkable: Boolean, outline: Boolean, strong: Boolean, triggerClickOnClose: Boolean, onClose: [Array, Function], onMouseenter: Function, onMouseleave: Function, 'onUpdate:checked': Function, onUpdateChecked: Function,
19
22
  // private
20
23
  internalCloseFocusable: {
21
24
  type: Boolean,
@@ -78,7 +81,7 @@ exports.default = (0, vue_1.defineComponent)({
78
81
  const rtlEnabledRef = (0, use_rtl_1.useRtl)('Tag', mergedRtlRef, mergedClsPrefixRef);
79
82
  const cssVarsRef = (0, vue_1.computed)(() => {
80
83
  const { type, size, color: { color, textColor } = {} } = props;
81
- const { common: { cubicBezierEaseInOut }, self: { closeMargin, closeMarginRtl, borderRadius, opacityDisabled, textColorCheckable, textColorHoverCheckable, textColorPressedCheckable, textColorChecked, colorCheckable, colorHoverCheckable, colorPressedCheckable, colorChecked, colorCheckedHover, colorCheckedPressed, closeBorderRadius, fontWeightStrong, fontWeight, [(0, _utils_1.createKey)('padding', size)]: padding, [(0, _utils_1.createKey)('colorBordered', type)]: colorBordered, [(0, _utils_1.createKey)('closeSize', size)]: closeSize, [(0, _utils_1.createKey)('closeIconSize', size)]: closeIconSize, [(0, _utils_1.createKey)('fontSize', size)]: fontSize, [(0, _utils_1.createKey)('height', size)]: height, [(0, _utils_1.createKey)('color', type)]: typedColor, [(0, _utils_1.createKey)('textColor', type)]: typeTextColor, [(0, _utils_1.createKey)('border', type)]: border, [(0, _utils_1.createKey)('closeIconColor', type)]: closeIconColor, [(0, _utils_1.createKey)('closeIconColorHover', type)]: closeIconColorHover, [(0, _utils_1.createKey)('closeIconColorPressed', type)]: closeIconColorPressed, [(0, _utils_1.createKey)('closeColorHover', type)]: closeColorHover, [(0, _utils_1.createKey)('closeColorPressed', type)]: closeColorPressed } } = themeRef.value;
84
+ const { common: { cubicBezierEaseInOut }, self: { closeMargin, closeMarginRtl, borderRadius, opacityDisabled, textColorCheckable, textColorHoverCheckable, textColorPressedCheckable, textColorChecked, colorCheckable, colorCheckableOutline, colorHoverCheckable, colorPressedCheckable, colorChecked, colorCheckedHover, colorCheckedPressed, closeBorderRadius, fontWeightStrong, fontWeight, [(0, _utils_1.createKey)('padding', size)]: padding, [(0, _utils_1.createKey)('colorBordered', type)]: colorBordered, [(0, _utils_1.createKey)('closeSize', size)]: closeSize, [(0, _utils_1.createKey)('closeIconSize', size)]: closeIconSize, [(0, _utils_1.createKey)('fontSize', size)]: fontSize, [(0, _utils_1.createKey)('height', size)]: height, [(0, _utils_1.createKey)('color', type)]: typedColor, [(0, _utils_1.createKey)('textColor', type)]: typeTextColor, [(0, _utils_1.createKey)('border', type)]: border, [(0, _utils_1.createKey)('closeIconColor', type)]: closeIconColor, [(0, _utils_1.createKey)('closeIconColorHover', type)]: closeIconColorHover, [(0, _utils_1.createKey)('closeIconColorPressed', type)]: closeIconColorPressed, [(0, _utils_1.createKey)('closeColorHover', type)]: closeColorHover, [(0, _utils_1.createKey)('closeColorPressed', type)]: closeColorPressed } } = themeRef.value;
82
85
  return {
83
86
  '--u-font-weight-strong': fontWeightStrong,
84
87
  '--u-font-weight': fontWeight,
@@ -99,6 +102,7 @@ exports.default = (0, vue_1.defineComponent)({
99
102
  '--u-close-size': closeSize,
100
103
  '--u-color': color || (mergedBorderedRef.value ? colorBordered : typedColor),
101
104
  '--u-color-checkable': colorCheckable,
105
+ '--u-color-checkable-outline': colorCheckableOutline,
102
106
  '--u-color-checked': colorChecked,
103
107
  '--u-color-checked-hover': colorCheckedHover,
104
108
  '--u-color-checked-pressed': colorCheckedPressed,
@@ -150,6 +154,7 @@ exports.default = (0, vue_1.defineComponent)({
150
154
  [`${mergedClsPrefix}-tag--strong`]: this.strong,
151
155
  [`${mergedClsPrefix}-tag--disabled`]: this.disabled,
152
156
  [`${mergedClsPrefix}-tag--checkable`]: this.checkable,
157
+ [`${mergedClsPrefix}-tag--outline`]: this.checkable && this.outline,
153
158
  [`${mergedClsPrefix}-tag--checked`]: this.checkable && this.checked,
154
159
  [`${mergedClsPrefix}-tag--round`]: round,
155
160
  [`${mergedClsPrefix}-tag--avatar`]: avatarNode,
@@ -55,7 +55,9 @@ exports.default = (0, cssr_1.cB)('tag', `
55
55
  font-weight: var(--u-font-weight);
56
56
  `, [(0, cssr_1.cM)('strong', `
57
57
  font-weight: var(--u-font-weight-strong);
58
- `), (0, cssr_1.cE)('border', `
58
+ `), (0, cssr_1.cM)('closable', [(0, cssr_1.cE)('content', `
59
+ padding-left: 4px;
60
+ `)]), (0, cssr_1.cE)('border', `
59
61
  pointer-events: none;
60
62
  position: absolute;
61
63
  left: 0;
@@ -100,7 +102,11 @@ exports.default = (0, cssr_1.cB)('tag', `
100
102
  padding: 0px 8px;
101
103
  background-color: var(--u-color-checkable);
102
104
  transition: border-color .3s var(--u-bezier);
103
- `, [(0, cssr_1.cNotM)('disabled', [(0, cssr_1.c)('&:hover', 'background-color: var(--u-color-hover-checkable);', [(0, cssr_1.cNotM)('checked', 'color: var(--u-text-color-hover-checkable);')]), (0, cssr_1.c)('&:focus', `
105
+ `, [(0, cssr_1.cE)('border', `
106
+ border: unset;
107
+ `), (0, cssr_1.cE)('content', `
108
+ padding-left: 0px;
109
+ `), (0, cssr_1.cNotM)('disabled', [(0, cssr_1.c)('&:hover', 'background-color: var(--u-color-hover-checkable);', [(0, cssr_1.cNotM)('checked', 'color: var(--u-text-color-hover-checkable);')]), (0, cssr_1.c)('&:focus', `
104
110
  background-color: var(--u-color-pressed-checkable);
105
111
  transition: border-color .3s var(--u-bezier);`, [(0, cssr_1.cNotM)('checked', 'color: var(--u-text-color-pressed-checkable);')]), (0, cssr_1.c)('&:active', `
106
112
  background-color: var(--u-color-pressed-checkable);
@@ -110,4 +116,8 @@ exports.default = (0, cssr_1.cB)('tag', `
110
116
  `, [(0, cssr_1.cE)('border', `
111
117
  border-color: var(--u-color-checked);
112
118
  transition: none;
113
- `), (0, cssr_1.cNotM)('disabled', [(0, cssr_1.c)('&:hover', 'background-color: var(--u-color-checked-hover);'), (0, cssr_1.c)('&:focus', 'background-color: var(--u-color-checked-hover);'), (0, cssr_1.c)('&:active', 'background-color: var(--u-color-checked-pressed);')])])])]);
119
+ `), (0, cssr_1.cNotM)('disabled', [(0, cssr_1.c)('&:hover', 'background-color: var(--u-color-checked-hover);'), (0, cssr_1.c)('&:focus', 'background-color: var(--u-color-checked-hover);'), (0, cssr_1.c)('&:active', 'background-color: var(--u-color-checked-pressed);')])])]), (0, cssr_1.cM)('outline', `
120
+ background-color: var(--u-color-checkable-outline);
121
+ `, [(0, cssr_1.cE)('border', `
122
+ border: var(--u-border);
123
+ `)])]);
@@ -33,6 +33,7 @@ export declare const self: (vars: ThemeCommonVars) => {
33
33
  textColorPressedCheckable: string;
34
34
  textColorChecked: string;
35
35
  colorCheckable: string;
36
+ colorCheckableOutline: string;
36
37
  colorHoverCheckable: string;
37
38
  colorPressedCheckable: string;
38
39
  colorChecked: string;
@@ -15,14 +15,14 @@ const self = (vars) => {
15
15
  closeSizeSmall: '14px',
16
16
  closeSizeMedium: '16px',
17
17
  closeSizeLarge: '18px',
18
- paddingTiny: '2px 6px 2px 10px',
19
- paddingSmall: '2px 6px 2px 10px',
20
- paddingMedium: '2px 6px 2px 10px',
21
- paddingLarge: '2px 6px 2px 10px',
18
+ paddingTiny: '2px 6px',
19
+ paddingSmall: '2px 6px',
20
+ paddingMedium: '2px 6px',
21
+ paddingLarge: '6px 8px',
22
22
  closeMargin: '0 0 0 4px',
23
23
  closeMarginRtl: '0 4px 0 0',
24
24
  closeBorderRadius: borderRadius,
25
- heightTiny: '16px',
25
+ heightTiny: '20px',
26
26
  heightSmall: '20px',
27
27
  heightMedium: '24px',
28
28
  heightLarge: '32px',
@@ -39,7 +39,8 @@ const self = (vars) => {
39
39
  textColorHoverCheckable: textPrimary,
40
40
  textColorPressedCheckable: textPrimary,
41
41
  textColorChecked: textQuaternary,
42
- colorCheckable: elementsSecondary,
42
+ colorCheckable: elementsQuaternary,
43
+ colorCheckableOutline: elementsSecondary,
43
44
  colorHoverCheckable: elementsQuaternary,
44
45
  colorPressedCheckable: elementsQuaternary,
45
46
  colorChecked: elementsPrimary,
package/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "1.5.3";
1
+ declare const _default: "1.5.5";
2
2
  export default _default;
package/lib/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '1.5.3';
3
+ exports.default = '1.5.5';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uzum-tech/ui",
3
- "version": "1.5.3",
3
+ "version": "1.5.5",
4
4
  "description": "A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
package/web-types.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
4
  "name": "@uzum-tech/ui",
5
- "version": "1.5.3",
5
+ "version": "1.5.5",
6
6
  "js-types-syntax": "typescript",
7
7
  "contributions": {
8
8
  "html": {
@@ -977,6 +977,11 @@
977
977
  "since": "1.1.0"
978
978
  }
979
979
  },
980
+ {
981
+ "name": "dot-size",
982
+ "doc-url": "https://www.naiveui.com/en-US/os-theme/components/badge",
983
+ "type": "string | number"
984
+ },
980
985
  {
981
986
  "name": "offset",
982
987
  "doc-url": "https://www.naiveui.com/en-US/os-theme/components/badge",
@@ -3627,6 +3632,13 @@
3627
3632
  "description-sections": {
3628
3633
  "since": "2.34.0"
3629
3634
  }
3635
+ },
3636
+ {
3637
+ "name": "empty-props",
3638
+ "doc-url": "https://www.naiveui.com/en-US/os-theme/components/data-table",
3639
+ "type": "Partial<EmptyProps>",
3640
+ "description": "Props passed to the Empty component when data is empty.",
3641
+ "default": "undefined"
3630
3642
  }
3631
3643
  ],
3632
3644
  "js": {
@@ -3959,6 +3971,11 @@
3959
3971
  "doc-url": "https://www.naiveui.com/en-US/os-theme/components/date-picker",
3960
3972
  "type": "Function"
3961
3973
  },
3974
+ {
3975
+ "name": "max-date",
3976
+ "doc-url": "https://www.naiveui.com/en-US/os-theme/components/date-picker",
3977
+ "type": "number"
3978
+ },
3962
3979
  {
3963
3980
  "name": "is-time-disabled",
3964
3981
  "doc-url": "https://www.naiveui.com/en-US/os-theme/components/date-picker",
@@ -13680,6 +13697,11 @@
13680
13697
  "description": "Whether the tag is checkable. Note: this nullifies the type property.",
13681
13698
  "default": "false"
13682
13699
  },
13700
+ {
13701
+ "name": "outline",
13702
+ "doc-url": "https://www.naiveui.com/en-US/os-theme/components/tag",
13703
+ "type": "boolean"
13704
+ },
13683
13705
  {
13684
13706
  "name": "strong",
13685
13707
  "doc-url": "https://www.naiveui.com/en-US/os-theme/components/tag",