@uzum-tech/ui 1.5.3 → 1.5.4

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 (46) hide show
  1. package/dist/index.js +119 -66
  2. package/dist/index.prod.js +2 -2
  3. package/es/collapse/src/Collapse.d.ts +47 -14
  4. package/es/collapse/src/Collapse.js +6 -3
  5. package/es/collapse/src/CollapseItem.js +3 -2
  6. package/es/collapse/src/styles/index.cssr.js +27 -7
  7. package/es/collapse/styles/light.d.ts +4 -1
  8. package/es/collapse/styles/light.js +6 -3
  9. package/es/data-table/src/DataTable.d.ts +2 -0
  10. package/es/data-table/src/DataTable.js +1 -0
  11. package/es/data-table/src/TableParts/Body.d.ts +1 -0
  12. package/es/data-table/src/TableParts/Body.js +5 -4
  13. package/es/data-table/src/interface.d.ts +3 -0
  14. package/es/data-table/src/interface.js +1 -1
  15. package/es/dynamic-tags/src/DynamicTags.d.ts +10 -0
  16. package/es/dynamic-tags/styles/light.d.ts +1 -0
  17. package/es/tag/src/Tag.d.ts +27 -13
  18. package/es/tag/src/Tag.js +7 -2
  19. package/es/tag/src/styles/index.cssr.js +13 -3
  20. package/es/tag/styles/light.d.ts +1 -0
  21. package/es/tag/styles/light.js +7 -6
  22. package/es/version.d.ts +1 -1
  23. package/es/version.js +1 -1
  24. package/lib/collapse/src/Collapse.d.ts +47 -14
  25. package/lib/collapse/src/Collapse.js +6 -3
  26. package/lib/collapse/src/CollapseItem.js +3 -2
  27. package/lib/collapse/src/styles/index.cssr.js +27 -7
  28. package/lib/collapse/styles/light.d.ts +4 -1
  29. package/lib/collapse/styles/light.js +6 -3
  30. package/lib/data-table/src/DataTable.d.ts +2 -0
  31. package/lib/data-table/src/DataTable.js +1 -0
  32. package/lib/data-table/src/TableParts/Body.d.ts +1 -0
  33. package/lib/data-table/src/TableParts/Body.js +5 -4
  34. package/lib/data-table/src/interface.d.ts +3 -0
  35. package/lib/data-table/src/interface.js +1 -1
  36. package/lib/dynamic-tags/src/DynamicTags.d.ts +10 -0
  37. package/lib/dynamic-tags/styles/light.d.ts +1 -0
  38. package/lib/tag/src/Tag.d.ts +27 -13
  39. package/lib/tag/src/Tag.js +7 -2
  40. package/lib/tag/src/styles/index.cssr.js +13 -3
  41. package/lib/tag/styles/light.d.ts +1 -0
  42. package/lib/tag/styles/light.js +7 -6
  43. package/lib/version.d.ts +1 -1
  44. package/lib/version.js +1 -1
  45. package/package.json +1 -1
  46. package/web-types.json +13 -1
@@ -99,7 +99,7 @@ exports.default = (0, vue_1.defineComponent)({
99
99
  bodyStyle: Object
100
100
  },
101
101
  setup(props) {
102
- const { slots: dataTableSlots, bodyWidthRef, mergedExpandedRowKeysRef, mergedClsPrefixRef, mergedThemeRef, scrollXRef, colsRef, paginatedDataRef, rawPaginatedDataRef, fixedColumnLeftMapRef, fixedColumnRightMapRef, mergedCurrentPageRef, rowClassNameRef, leftActiveFixedColKeyRef, leftActiveFixedChildrenColKeysRef, rightActiveFixedColKeyRef, rightActiveFixedChildrenColKeysRef, renderExpandRef, hoverKeyRef, summaryRef, mergedSortStateRef, virtualScrollRef, componentId, mergedTableLayoutRef, childTriggerColIndexRef, indentRef, rowPropsRef, maxHeightRef, stripedRef, loadingRef, loadingSkeletonRef, onLoadRef, loadingKeySetRef, expandableRef, stickyExpandedRowsRef, renderExpandIconRef, summaryPlacementRef, treeMateRef, scrollbarPropsRef, setHeaderScrollLeft, doUpdateExpandedRowKeys, handleTableBodyScroll, doCheck, doUncheck, renderCell
102
+ const { slots: dataTableSlots, bodyWidthRef, mergedExpandedRowKeysRef, mergedClsPrefixRef, mergedThemeRef, scrollXRef, colsRef, paginatedDataRef, rawPaginatedDataRef, fixedColumnLeftMapRef, fixedColumnRightMapRef, mergedCurrentPageRef, rowClassNameRef, leftActiveFixedColKeyRef, leftActiveFixedChildrenColKeysRef, rightActiveFixedColKeyRef, rightActiveFixedChildrenColKeysRef, renderExpandRef, hoverKeyRef, summaryRef, mergedSortStateRef, virtualScrollRef, componentId, mergedTableLayoutRef, childTriggerColIndexRef, indentRef, rowPropsRef, maxHeightRef, stripedRef, loadingRef, loadingSkeletonRef, onLoadRef, loadingKeySetRef, expandableRef, stickyExpandedRowsRef, renderExpandIconRef, summaryPlacementRef, treeMateRef, scrollbarPropsRef, setHeaderScrollLeft, doUpdateExpandedRowKeys, handleTableBodyScroll, doCheck, doUncheck, renderCell, emptyPropsRef
103
103
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
104
104
  } = (0, vue_1.inject)(interface_1.dataTableInjectionKey);
105
105
  const scrollbarInstRef = (0, vue_1.ref)(null);
@@ -347,10 +347,11 @@ exports.default = (0, vue_1.defineComponent)({
347
347
  handleCheckboxUpdateChecked,
348
348
  handleRadioUpdateChecked,
349
349
  handleUpdateExpanded,
350
- renderCell }, exposedMethods);
350
+ renderCell,
351
+ emptyPropsRef }, exposedMethods);
351
352
  },
352
353
  render() {
353
- const { mergedTheme, scrollX, mergedClsPrefix, virtualScroll, maxHeight, mergedTableLayout, flexHeight, loadingKeySet, onResize, setHeaderScrollLeft } = this;
354
+ const { mergedTheme, scrollX, mergedClsPrefix, virtualScroll, maxHeight, mergedTableLayout, flexHeight, loadingKeySet, onResize, setHeaderScrollLeft, emptyPropsRef } = this;
354
355
  const scrollable = scrollX !== undefined || maxHeight !== undefined || flexHeight;
355
356
  // For a basic table with auto layout whose content may overflow we will
356
357
  // make it scrollable, which differs from browser's native behavior.
@@ -626,7 +627,7 @@ exports.default = (0, vue_1.defineComponent)({
626
627
  `${mergedClsPrefix}-data-table-empty`,
627
628
  this.loading && `${mergedClsPrefix}-data-table-empty--hide`
628
629
  ], style: this.bodyStyle, ref: "emptyElRef" }, (0, _utils_1.resolveSlot)(this.dataTableSlots.empty, () => [
629
- (0, vue_1.h)(empty_1.UEmpty, { size: "large", theme: this.mergedTheme.peers.Empty, themeOverrides: this.mergedTheme.peerOverrides.Empty })
630
+ (0, vue_1.h)(empty_1.UEmpty, Object.assign({ size: "large", theme: this.mergedTheme.peers.Empty, themeOverrides: this.mergedTheme.peerOverrides.Empty }, emptyPropsRef))
630
631
  ])));
631
632
  if (this.shouldDisplaySomeTablePart) {
632
633
  return ((0, vue_1.h)(vue_1.Fragment, null,
@@ -9,6 +9,7 @@ import type { PaginationProps } from '../../pagination';
9
9
  import type { DataTableTheme } from '../styles';
10
10
  import type { RowItem, ColItem } from './use-group-header';
11
11
  import type { BaseLoadingExposedProps } from '../../_internal';
12
+ import type { EmptyProps } from '../../empty';
12
13
  export declare const dataTableProps: {
13
14
  readonly onUnstableColumnResize: PropType<(resizedWidth: number, limitedWidth: number, column: TableBaseColumn, getColumnWidth: (key: ColumnKey) => number | undefined) => void>;
14
15
  readonly pagination: {
@@ -101,6 +102,7 @@ export declare const dataTableProps: {
101
102
  readonly type: PropType<BaseLoadingExposedProps>;
102
103
  readonly default: {};
103
104
  };
105
+ readonly emptyProps: PropType<Partial<EmptyProps>>;
104
106
  readonly onLoad: PropType<DataTableOnLoad>;
105
107
  readonly 'onUpdate:page': PropType<PaginationProps["onUpdate:page"]>;
106
108
  readonly onUpdatePage: PropType<PaginationProps["onUpdate:page"]>;
@@ -3083,6 +3085,7 @@ export interface DataTableInjection {
3083
3085
  syncScrollState: (deltaX?: number, deltaY?: number) => void;
3084
3086
  setHeaderScrollLeft: (scrollLeft: number) => void;
3085
3087
  renderCell: Ref<undefined | ((value: any, rowData: object, column: TableBaseColumn) => VNodeChild)>;
3088
+ emptyPropsRef: Ref<Partial<EmptyProps> | undefined>;
3086
3089
  handleEdit: (value: any, row: any, key: string) => void;
3087
3090
  }
3088
3091
  export declare const dataTableInjectionKey: import("vue").InjectionKey<DataTableInjection>;
@@ -53,7 +53,7 @@ exports.dataTableProps = Object.assign(Object.assign({}, _mixins_1.useTheme.prop
53
53
  }, paginationBehaviorOnFilter: {
54
54
  type: String,
55
55
  default: 'current'
56
- }, scrollbarProps: Object, renderCell: Function, renderExpandIcon: Function, spinProps: { type: Object, default: {} }, onLoad: Function, 'onUpdate:page': [Function, Array], onUpdatePage: [Function, Array], 'onUpdate:pageSize': [Function, Array], onUpdatePageSize: [Function, Array], 'onUpdate:sorter': [Function, Array], onUpdateSorter: [Function, Array], 'onUpdate:filters': [Function, Array], onUpdateFilters: [Function, Array], 'onUpdate:checkedRowKeys': [Function, Array], onUpdateCheckedRowKeys: [Function, Array], 'onUpdate:expandedRowKeys': [Function, Array], onUpdateExpandedRowKeys: [Function, Array], onScroll: Function,
56
+ }, scrollbarProps: Object, renderCell: Function, renderExpandIcon: Function, spinProps: { type: Object, default: {} }, emptyProps: Object, onLoad: Function, 'onUpdate:page': [Function, Array], onUpdatePage: [Function, Array], 'onUpdate:pageSize': [Function, Array], onUpdatePageSize: [Function, Array], 'onUpdate:sorter': [Function, Array], onUpdateSorter: [Function, Array], 'onUpdate:filters': [Function, Array], onUpdateFilters: [Function, Array], 'onUpdate:checkedRowKeys': [Function, Array], onUpdateCheckedRowKeys: [Function, Array], 'onUpdate:expandedRowKeys': [Function, Array], onUpdateExpandedRowKeys: [Function, Array], onScroll: Function,
57
57
  // deprecated
58
58
  onPageChange: [Function, Array], onPageSizeChange: [Function, Array], onSorterChange: [Function, Array], onFiltersChange: [Function, Array], onCheckedRowKeysChange: [Function, Array] });
59
59
  exports.dataTableInjectionKey = (0, _utils_1.createInjectionKey)('u-data-table');
@@ -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.4";
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.4';
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.4",
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.4",
6
6
  "js-types-syntax": "typescript",
7
7
  "contributions": {
8
8
  "html": {
@@ -3627,6 +3627,13 @@
3627
3627
  "description-sections": {
3628
3628
  "since": "2.34.0"
3629
3629
  }
3630
+ },
3631
+ {
3632
+ "name": "empty-props",
3633
+ "doc-url": "https://www.naiveui.com/en-US/os-theme/components/data-table",
3634
+ "type": "Partial<EmptyProps>",
3635
+ "description": "Props passed to the Empty component when data is empty.",
3636
+ "default": "undefined"
3630
3637
  }
3631
3638
  ],
3632
3639
  "js": {
@@ -13680,6 +13687,11 @@
13680
13687
  "description": "Whether the tag is checkable. Note: this nullifies the type property.",
13681
13688
  "default": "false"
13682
13689
  },
13690
+ {
13691
+ "name": "outline",
13692
+ "doc-url": "https://www.naiveui.com/en-US/os-theme/components/tag",
13693
+ "type": "boolean"
13694
+ },
13683
13695
  {
13684
13696
  "name": "strong",
13685
13697
  "doc-url": "https://www.naiveui.com/en-US/os-theme/components/tag",