@uzum-tech/ui 2.1.4 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/index.js +1213 -527
  2. package/dist/index.mjs +1210 -528
  3. package/dist/index.prod.js +2 -2
  4. package/dist/index.prod.mjs +2 -2
  5. package/es/_internal/icon/src/UIcon.mjs +17 -9
  6. package/es/_internal/icons/SearchOutline.d.ts +2 -0
  7. package/es/_internal/icons/SearchOutline.mjs +18 -0
  8. package/es/_internal/icons/index.d.ts +1 -0
  9. package/es/_internal/icons/index.mjs +1 -0
  10. package/es/_utils/dom/copy-to-clipboard.d.ts +1 -0
  11. package/es/_utils/dom/copy-to-clipboard.mjs +8 -0
  12. package/es/_utils/dom/index.d.ts +1 -0
  13. package/es/_utils/dom/index.mjs +1 -0
  14. package/es/components.d.ts +1079 -4
  15. package/es/components.mjs +3 -0
  16. package/es/config-provider/src/internal-interface.d.ts +4 -0
  17. package/es/data-table/src/use-table-data.d.ts +1 -1
  18. package/es/icon-pack/index.d.ts +5 -0
  19. package/es/icon-pack/index.mjs +3 -0
  20. package/es/icon-pack/src/IconPack.d.ts +1047 -0
  21. package/es/icon-pack/src/IconPack.mjs +300 -0
  22. package/es/icon-pack/src/interface.d.ts +465 -0
  23. package/es/icon-pack/src/interface.mjs +75 -0
  24. package/es/icon-pack/src/styles/index.cssr.d.ts +2 -0
  25. package/es/icon-pack/src/styles/index.cssr.mjs +131 -0
  26. package/es/icon-pack/styles/dark.d.ts +123 -0
  27. package/es/icon-pack/styles/dark.mjs +20 -0
  28. package/es/icon-pack/styles/index.d.ts +3 -0
  29. package/es/icon-pack/styles/index.mjs +2 -0
  30. package/es/icon-pack/styles/light.d.ts +143 -0
  31. package/es/icon-pack/styles/light.mjs +64 -0
  32. package/es/icon-wrapper/src/IconWrapper.d.ts +1 -1
  33. package/es/input/src/Input.mjs +3 -1
  34. package/es/pagination/index.d.ts +3 -3
  35. package/es/pagination/index.mjs +2 -1
  36. package/es/pagination/src/Pagination.d.ts +74 -1379
  37. package/es/pagination/src/Pagination.mjs +28 -63
  38. package/es/pagination/src/interface.d.ts +1345 -1
  39. package/es/pagination/src/interface.mjs +68 -1
  40. package/es/themes/dark.mjs +2 -0
  41. package/es/themes/light.mjs +2 -0
  42. package/es/version.d.ts +1 -1
  43. package/es/version.mjs +1 -1
  44. package/lib/_internal/icon/src/UIcon.js +15 -8
  45. package/lib/_internal/icons/SearchOutline.d.ts +2 -0
  46. package/lib/_internal/icons/SearchOutline.js +10 -0
  47. package/lib/_internal/icons/index.d.ts +1 -0
  48. package/lib/_internal/icons/index.js +3 -1
  49. package/lib/_utils/dom/copy-to-clipboard.d.ts +1 -0
  50. package/lib/_utils/dom/copy-to-clipboard.js +11 -0
  51. package/lib/_utils/dom/index.d.ts +1 -0
  52. package/lib/_utils/dom/index.js +3 -1
  53. package/lib/components.d.ts +1079 -4
  54. package/lib/components.js +11 -5
  55. package/lib/config-provider/src/internal-interface.d.ts +4 -0
  56. package/lib/data-table/src/use-table-data.d.ts +1 -1
  57. package/lib/icon-pack/index.d.ts +5 -0
  58. package/lib/icon-pack/index.js +13 -0
  59. package/lib/icon-pack/src/IconPack.d.ts +1047 -0
  60. package/lib/icon-pack/src/IconPack.js +240 -0
  61. package/lib/icon-pack/src/interface.d.ts +465 -0
  62. package/lib/icon-pack/src/interface.js +49 -0
  63. package/lib/icon-pack/src/styles/index.cssr.d.ts +2 -0
  64. package/lib/icon-pack/src/styles/index.cssr.js +136 -0
  65. package/lib/icon-pack/styles/dark.d.ts +123 -0
  66. package/lib/icon-pack/styles/dark.js +22 -0
  67. package/lib/icon-pack/styles/index.d.ts +3 -0
  68. package/lib/icon-pack/styles/index.js +10 -0
  69. package/lib/icon-pack/styles/light.d.ts +143 -0
  70. package/lib/icon-pack/styles/light.js +46 -0
  71. package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -1
  72. package/lib/input/src/Input.js +3 -1
  73. package/lib/pagination/index.d.ts +3 -3
  74. package/lib/pagination/index.js +2 -1
  75. package/lib/pagination/src/Pagination.d.ts +74 -1379
  76. package/lib/pagination/src/Pagination.js +27 -40
  77. package/lib/pagination/src/interface.d.ts +1345 -1
  78. package/lib/pagination/src/interface.js +37 -0
  79. package/lib/themes/dark.js +110 -108
  80. package/lib/themes/light.js +110 -108
  81. package/lib/version.d.ts +1 -1
  82. package/lib/version.js +1 -1
  83. package/package.json +1 -1
  84. package/volar.d.ts +1 -0
  85. package/web-types.json +258 -1
@@ -0,0 +1,123 @@
1
+ declare const iconPackDark: import("../../_mixins").Theme<"IconPack", {
2
+ containerColor: string;
3
+ borderRadius: string;
4
+ titleTextColor: string;
5
+ descriptionTextColor: string;
6
+ groupTitleTextColor: string;
7
+ groupCounterTextColor: string;
8
+ cardColor: string;
9
+ cardColorHover: string;
10
+ cardColorPressed: string;
11
+ cardColorSelected: string;
12
+ cardBorderRadius: string;
13
+ cardIconColor: string;
14
+ cardIconColorSelected: string;
15
+ cardLabelTextColor: string;
16
+ cardLabelTextColorSelected: string;
17
+ dividerColor: string;
18
+ }, {
19
+ Input: import("../../_mixins").Theme<"Input", {
20
+ paddingTiny: string;
21
+ paddingSmall: string;
22
+ paddingMedium: string;
23
+ paddingLarge: string;
24
+ paddingHuge: string;
25
+ clearSize: string;
26
+ countTextColorDisabled: string;
27
+ countTextColor: string;
28
+ heightTiny: string;
29
+ heightSmall: string;
30
+ heightMedium: string;
31
+ heightLarge: string;
32
+ heightHuge: string;
33
+ fontSizeTiny: string;
34
+ fontSizeSmall: string;
35
+ fontSizeMedium: string;
36
+ fontSizeLarge: string;
37
+ fontSizeHuge: string;
38
+ lineHeight: string;
39
+ lineHeightTextarea: string;
40
+ borderRadius: string;
41
+ iconSize: string;
42
+ groupLabelTextColor: string;
43
+ textColor: string;
44
+ textColorDisabled: string;
45
+ textDecorationColor: string;
46
+ caretColor: string;
47
+ placeholderColor: string;
48
+ placeholderColorDisabled: string;
49
+ color: string;
50
+ colorDisabled: string;
51
+ colorFocus: string;
52
+ groupLabelBorder: string;
53
+ border: string;
54
+ borderHover: string;
55
+ borderDisabled: string;
56
+ borderFocus: string;
57
+ boxShadowFocus: string;
58
+ loadingColor: string;
59
+ loadingColorSuccess: string;
60
+ borderSuccess: string;
61
+ borderHoverSuccess: string;
62
+ colorFocusSuccess: string;
63
+ borderFocusSuccess: string;
64
+ boxShadowFocusSuccess: string;
65
+ caretColorSuccess: string;
66
+ loadingColorWarning: string;
67
+ borderWarning: string;
68
+ borderHoverWarning: string;
69
+ colorFocusWarning: string;
70
+ borderFocusWarning: string;
71
+ boxShadowFocusWarning: string;
72
+ caretColorWarning: string;
73
+ loadingColorError: string;
74
+ borderError: string;
75
+ borderHoverError: string;
76
+ colorFocusError: string;
77
+ borderFocusError: string;
78
+ boxShadowFocusError: string;
79
+ caretColorError: string;
80
+ clearColor: string;
81
+ clearColorHover: string;
82
+ clearColorPressed: string;
83
+ iconColor: string;
84
+ iconColorDisabled: string;
85
+ iconColorHover: string;
86
+ iconColorPressed: string;
87
+ suffixTextColor: string;
88
+ selectionColor: string;
89
+ }, any>;
90
+ Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
91
+ height: string;
92
+ width: string;
93
+ borderRadius: string;
94
+ color: string;
95
+ colorHover: string;
96
+ railInsetHorizontalBottom: string;
97
+ railInsetHorizontalTop: string;
98
+ railInsetVerticalRight: string;
99
+ railInsetVerticalLeft: string;
100
+ railColor: string;
101
+ }, any>;
102
+ Empty: import("../../_mixins").Theme<"Empty", {
103
+ iconSizeSmall: string;
104
+ iconSizeMedium: string;
105
+ iconSizeLarge: string;
106
+ iconSizeHuge: string;
107
+ titleFontSizeSmall: string;
108
+ titleFontSizeMedium: string;
109
+ titleFontSizeLarge: string;
110
+ titleFontSizeHuge: string;
111
+ descriptionFontSizeSmall: string;
112
+ descriptionFontSizeMedium: string;
113
+ descriptionFontSizeLarge: string;
114
+ descriptionFontSizeHuge: string;
115
+ titleColor: string;
116
+ descriptionColor: string;
117
+ iconColor: string;
118
+ iconBgColor: string;
119
+ extraTextColor: string;
120
+ }, any>;
121
+ }>;
122
+ export default iconPackDark;
123
+ export type IconPackTheme = typeof iconPackDark;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const styles_1 = require("../../_internal/scrollbar/styles");
4
+ const _mixins_1 = require("../../_mixins");
5
+ const common_1 = require("../../_styles/common");
6
+ const styles_2 = require("../../empty/styles");
7
+ const styles_3 = require("../../input/styles");
8
+ const light_1 = require("./light");
9
+ const iconPackDark = (0, _mixins_1.createTheme)({
10
+ name: 'IconPack',
11
+ common: common_1.commonDark,
12
+ peers: {
13
+ Input: styles_3.inputDark,
14
+ Scrollbar: styles_1.scrollbarDark,
15
+ Empty: styles_2.emptyDark
16
+ },
17
+ self: (vars) => {
18
+ const lightVars = (0, light_1.self)(vars);
19
+ return Object.assign({}, lightVars);
20
+ }
21
+ });
22
+ exports.default = iconPackDark;
@@ -0,0 +1,3 @@
1
+ export { default as iconPackDark } from './dark';
2
+ export { default as iconPackLight } from './light';
3
+ export type { IconPackTheme, IconPackThemeVars } from './light';
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.iconPackLight = exports.iconPackDark = void 0;
7
+ var dark_1 = require("./dark");
8
+ Object.defineProperty(exports, "iconPackDark", { enumerable: true, get: function () { return __importDefault(dark_1).default; } });
9
+ var light_1 = require("./light");
10
+ Object.defineProperty(exports, "iconPackLight", { enumerable: true, get: function () { return __importDefault(light_1).default; } });
@@ -0,0 +1,143 @@
1
+ import type { ThemeCommonVars } from '../../_styles/common';
2
+ export declare function self(vars: ThemeCommonVars): {
3
+ containerColor: string;
4
+ borderRadius: string;
5
+ titleTextColor: string;
6
+ descriptionTextColor: string;
7
+ groupTitleTextColor: string;
8
+ groupCounterTextColor: string;
9
+ cardColor: string;
10
+ cardColorHover: string;
11
+ cardColorPressed: string;
12
+ cardColorSelected: string;
13
+ cardBorderRadius: string;
14
+ cardIconColor: string;
15
+ cardIconColorSelected: string;
16
+ cardLabelTextColor: string;
17
+ cardLabelTextColorSelected: string;
18
+ dividerColor: string;
19
+ };
20
+ declare const iconPackLight: import("../../_mixins").Theme<"IconPack", {
21
+ containerColor: string;
22
+ borderRadius: string;
23
+ titleTextColor: string;
24
+ descriptionTextColor: string;
25
+ groupTitleTextColor: string;
26
+ groupCounterTextColor: string;
27
+ cardColor: string;
28
+ cardColorHover: string;
29
+ cardColorPressed: string;
30
+ cardColorSelected: string;
31
+ cardBorderRadius: string;
32
+ cardIconColor: string;
33
+ cardIconColorSelected: string;
34
+ cardLabelTextColor: string;
35
+ cardLabelTextColorSelected: string;
36
+ dividerColor: string;
37
+ }, {
38
+ Input: import("../../_mixins").Theme<"Input", {
39
+ paddingTiny: string;
40
+ paddingSmall: string;
41
+ paddingMedium: string;
42
+ paddingLarge: string;
43
+ paddingHuge: string;
44
+ clearSize: string;
45
+ countTextColorDisabled: string;
46
+ countTextColor: string;
47
+ heightTiny: string;
48
+ heightSmall: string;
49
+ heightMedium: string;
50
+ heightLarge: string;
51
+ heightHuge: string;
52
+ fontSizeTiny: string;
53
+ fontSizeSmall: string;
54
+ fontSizeMedium: string;
55
+ fontSizeLarge: string;
56
+ fontSizeHuge: string;
57
+ lineHeight: string;
58
+ lineHeightTextarea: string;
59
+ borderRadius: string;
60
+ iconSize: string;
61
+ groupLabelTextColor: string;
62
+ textColor: string;
63
+ textColorDisabled: string;
64
+ textDecorationColor: string;
65
+ caretColor: string;
66
+ placeholderColor: string;
67
+ placeholderColorDisabled: string;
68
+ color: string;
69
+ colorDisabled: string;
70
+ colorFocus: string;
71
+ groupLabelBorder: string;
72
+ border: string;
73
+ borderHover: string;
74
+ borderDisabled: string;
75
+ borderFocus: string;
76
+ boxShadowFocus: string;
77
+ loadingColor: string;
78
+ loadingColorSuccess: string;
79
+ borderSuccess: string;
80
+ borderHoverSuccess: string;
81
+ colorFocusSuccess: string;
82
+ borderFocusSuccess: string;
83
+ boxShadowFocusSuccess: string;
84
+ caretColorSuccess: string;
85
+ loadingColorWarning: string;
86
+ borderWarning: string;
87
+ borderHoverWarning: string;
88
+ colorFocusWarning: string;
89
+ borderFocusWarning: string;
90
+ boxShadowFocusWarning: string;
91
+ caretColorWarning: string;
92
+ loadingColorError: string;
93
+ borderError: string;
94
+ borderHoverError: string;
95
+ colorFocusError: string;
96
+ borderFocusError: string;
97
+ boxShadowFocusError: string;
98
+ caretColorError: string;
99
+ clearColor: string;
100
+ clearColorHover: string;
101
+ clearColorPressed: string;
102
+ iconColor: string;
103
+ iconColorDisabled: string;
104
+ iconColorHover: string;
105
+ iconColorPressed: string;
106
+ suffixTextColor: string;
107
+ selectionColor: string;
108
+ }, any>;
109
+ Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
110
+ height: string;
111
+ width: string;
112
+ borderRadius: string;
113
+ color: string;
114
+ colorHover: string;
115
+ railInsetHorizontalBottom: string;
116
+ railInsetHorizontalTop: string;
117
+ railInsetVerticalRight: string;
118
+ railInsetVerticalLeft: string;
119
+ railColor: string;
120
+ }, any>;
121
+ Empty: import("../../_mixins").Theme<"Empty", {
122
+ iconSizeSmall: string;
123
+ iconSizeMedium: string;
124
+ iconSizeLarge: string;
125
+ iconSizeHuge: string;
126
+ titleFontSizeSmall: string;
127
+ titleFontSizeMedium: string;
128
+ titleFontSizeLarge: string;
129
+ titleFontSizeHuge: string;
130
+ descriptionFontSizeSmall: string;
131
+ descriptionFontSizeMedium: string;
132
+ descriptionFontSizeLarge: string;
133
+ descriptionFontSizeHuge: string;
134
+ titleColor: string;
135
+ descriptionColor: string;
136
+ iconColor: string;
137
+ iconBgColor: string;
138
+ extraTextColor: string;
139
+ }, any>;
140
+ }>;
141
+ export default iconPackLight;
142
+ export type IconPackThemeVars = ReturnType<typeof self>;
143
+ export type IconPackTheme = typeof iconPackLight;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.self = self;
4
+ const styles_1 = require("../../_internal/scrollbar/styles");
5
+ const _mixins_1 = require("../../_mixins");
6
+ const common_1 = require("../../_styles/common");
7
+ const styles_2 = require("../../empty/styles");
8
+ const styles_3 = require("../../input/styles");
9
+ const light_1 = require("../../input/styles/light");
10
+ const iconPackInputLight = Object.assign(Object.assign({}, styles_3.inputLight), { self(vars) {
11
+ const originalInputSelf = (0, light_1.self)(vars);
12
+ const { elementsDarkQuinary, elementsPrimary } = vars;
13
+ return Object.assign(Object.assign({}, originalInputSelf), { heightMedium: '44px', borderRadius: '12px', paddingMedium: '0 20px', border: `2px solid ${elementsDarkQuinary}`, borderHover: `2px solid ${elementsPrimary}`, borderFocus: `2px solid ${elementsPrimary}`, boxShadowFocus: 'none' });
14
+ } });
15
+ function self(vars) {
16
+ const { staticWhite, textPrimary, textSecondary, elementsTertiary, elementsQuaternary, elementsQuinary, brandPrimary500 } = vars;
17
+ return {
18
+ containerColor: staticWhite,
19
+ borderRadius: '24px',
20
+ titleTextColor: textPrimary,
21
+ descriptionTextColor: textSecondary,
22
+ groupTitleTextColor: textPrimary,
23
+ groupCounterTextColor: textSecondary,
24
+ cardColor: elementsTertiary,
25
+ cardColorHover: elementsQuaternary,
26
+ cardColorPressed: elementsQuinary,
27
+ cardColorSelected: brandPrimary500,
28
+ cardBorderRadius: '20px',
29
+ cardIconColor: textPrimary,
30
+ cardIconColorSelected: staticWhite,
31
+ cardLabelTextColor: textPrimary,
32
+ cardLabelTextColorSelected: staticWhite,
33
+ dividerColor: elementsQuaternary
34
+ };
35
+ }
36
+ const iconPackLight = (0, _mixins_1.createTheme)({
37
+ name: 'IconPack',
38
+ common: common_1.commonLight,
39
+ peers: {
40
+ Input: iconPackInputLight,
41
+ Scrollbar: styles_1.scrollbarLight,
42
+ Empty: styles_2.emptyLight
43
+ },
44
+ self
45
+ });
46
+ exports.default = iconPackLight;
@@ -102,6 +102,6 @@ export declare const UIconWrapper: import("vue").DefineComponent<import("vue").E
102
102
  }>> & Readonly<{}>, {
103
103
  readonly borderRadius: number;
104
104
  readonly size: number;
105
- readonly pulseSize: number;
106
105
  readonly variant: IconWrapperVariant;
106
+ readonly pulseSize: number;
107
107
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -370,10 +370,12 @@ exports.default = (0, vue_1.defineComponent)({
370
370
  }
371
371
  function handleInput(e, index = 0, event = 'input') {
372
372
  let targetValue = e.target.value;
373
+ const sourceValue = targetValue;
373
374
  if (props.uppercase)
374
375
  targetValue = targetValue.toUpperCase();
375
376
  if (props.formatter)
376
377
  targetValue = props.formatter(targetValue);
378
+ const valueTransformed = targetValue !== sourceValue;
377
379
  syncMirror(targetValue);
378
380
  if (e instanceof InputEvent && !e.isComposing) {
379
381
  isComposingRef.value = false;
@@ -412,7 +414,7 @@ exports.default = (0, vue_1.defineComponent)({
412
414
  // force update to sync input's view with value
413
415
  // if not set, after input, input value won't sync with dom input value
414
416
  vm.$forceUpdate();
415
- if (!isIncomingValueValid) {
417
+ if (!isIncomingValueValid || valueTransformed) {
416
418
  void (0, vue_1.nextTick)(focusedInputCursorControl.restoreCursor);
417
419
  }
418
420
  }
@@ -1,4 +1,4 @@
1
- export type { PaginationInfo, PaginationRenderLabel, PaginationSizeOption } from './src/interface';
2
- export { paginationProps, default as UPagination } from './src/Pagination';
3
- export type { PaginationProps, PaginationSlots } from './src/Pagination';
1
+ export { paginationProps } from './src/interface';
2
+ export type { PaginationDisplayOrder, PaginationInfo, PaginationProps, PaginationRenderLabel, PaginationSizeOption, PaginationSlots, PaginationVariant } from './src/interface';
3
+ export { default as UPagination } from './src/Pagination';
4
4
  export type * from './src/public-types';
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.UPagination = exports.paginationProps = void 0;
7
+ var interface_1 = require("./src/interface");
8
+ Object.defineProperty(exports, "paginationProps", { enumerable: true, get: function () { return interface_1.paginationProps; } });
7
9
  var Pagination_1 = require("./src/Pagination");
8
- Object.defineProperty(exports, "paginationProps", { enumerable: true, get: function () { return Pagination_1.paginationProps; } });
9
10
  Object.defineProperty(exports, "UPagination", { enumerable: true, get: function () { return __importDefault(Pagination_1).default; } });