@uzum-tech/ui 1.4.2 → 1.5.1

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 (221) hide show
  1. package/dist/index.js +65404 -64355
  2. package/dist/index.prod.js +3 -3
  3. package/es/_internal/index.d.ts +2 -0
  4. package/es/_internal/index.js +1 -0
  5. package/es/_internal/typography/index.d.ts +2 -0
  6. package/es/_internal/typography/index.js +1 -0
  7. package/es/_internal/typography/src/styles/text.cssr.d.ts +2 -0
  8. package/es/_internal/typography/src/styles/text.cssr.js +78 -0
  9. package/es/_internal/typography/src/text.d.ts +246 -0
  10. package/es/_internal/typography/src/text.js +79 -0
  11. package/es/_internal/typography/src/variants.d.ts +13 -0
  12. package/es/_internal/typography/src/variants.js +132 -0
  13. package/es/_internal/typography/styles/dark.d.ts +3 -0
  14. package/es/_internal/typography/styles/dark.js +8 -0
  15. package/es/_internal/typography/styles/index.d.ts +3 -0
  16. package/es/_internal/typography/styles/index.js +2 -0
  17. package/es/_internal/typography/styles/light.d.ts +24 -0
  18. package/es/_internal/typography/styles/light.js +28 -0
  19. package/es/_styles/common/_common.d.ts +2 -0
  20. package/es/_styles/common/_common.js +3 -1
  21. package/es/_styles/common/light.d.ts +2 -0
  22. package/es/action-card/index.d.ts +4 -0
  23. package/es/action-card/index.js +2 -0
  24. package/es/action-card/src/ActionCard.d.ts +313 -0
  25. package/es/action-card/src/ActionCard.js +101 -0
  26. package/es/action-card/src/styles/index.cssr.d.ts +2 -0
  27. package/es/action-card/src/styles/index.cssr.js +113 -0
  28. package/es/action-card/styles/dark.d.ts +3 -0
  29. package/es/action-card/styles/dark.js +11 -0
  30. package/es/action-card/styles/index.d.ts +3 -0
  31. package/es/action-card/styles/index.js +2 -0
  32. package/es/action-card/styles/light.d.ts +29 -0
  33. package/es/action-card/styles/light.js +33 -0
  34. package/es/avatar/src/Avatar.d.ts +13 -3
  35. package/es/avatar/src/Avatar.js +4 -3
  36. package/es/avatar/src/styles/index.cssr.js +3 -2
  37. package/es/avatar/styles/light.d.ts +1 -0
  38. package/es/avatar/styles/light.js +4 -3
  39. package/es/avatar-group/src/AvatarGroup.d.ts +10 -0
  40. package/es/avatar-group/styles/light.d.ts +1 -0
  41. package/es/badge/src/Badge.d.ts +10 -0
  42. package/es/badge/src/Badge.js +3 -2
  43. package/es/badge/src/styles/index.cssr.js +19 -1
  44. package/es/badge/styles/light.d.ts +1 -0
  45. package/es/badge/styles/light.js +4 -3
  46. package/es/components.d.ts +1 -0
  47. package/es/components.js +1 -0
  48. package/es/config-provider/src/internal-interface.d.ts +2 -0
  49. package/es/data-table/src/DataTable.d.ts +14 -0
  50. package/es/data-table/src/DataTable.js +3 -3
  51. package/es/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
  52. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
  53. package/es/data-table/src/TableParts/Body.d.ts +2 -0
  54. package/es/data-table/src/TableParts/Body.js +10 -1
  55. package/es/data-table/src/TableParts/BodySkeleton.d.ts +18 -0
  56. package/es/data-table/src/TableParts/BodySkeleton.js +52 -0
  57. package/es/data-table/src/TableParts/Header.d.ts +2 -0
  58. package/es/data-table/src/interface.d.ts +6 -0
  59. package/es/data-table/src/styles/index.cssr.js +1 -1
  60. package/es/data-table/styles/light.d.ts +2 -0
  61. package/es/data-table/styles/light.js +1 -1
  62. package/es/dialog/src/DialogProvider.d.ts +4 -0
  63. package/es/icon-wrapper/src/IconWrapper.d.ts +1 -1
  64. package/es/modal/src/BodyWrapper.d.ts +1 -0
  65. package/es/modal/src/Modal.d.ts +9 -0
  66. package/es/modal/styles/light.d.ts +2 -0
  67. package/es/modal/styles/light.js +2 -1
  68. package/es/pagination/src/Pagination.d.ts +22 -0
  69. package/es/pagination/src/Pagination.js +4 -2
  70. package/es/pagination/src/styles/index.cssr.js +11 -0
  71. package/es/pagination/styles/light.d.ts +4 -0
  72. package/es/pagination/styles/light.js +7 -5
  73. package/es/spin/styles/light.js +3 -3
  74. package/es/steps/src/Step.d.ts +17 -0
  75. package/es/steps/src/Step.js +81 -25
  76. package/es/steps/src/Steps.d.ts +127 -1
  77. package/es/steps/src/Steps.js +4 -1
  78. package/es/steps/src/interface.d.ts +10 -2
  79. package/es/steps/src/interface.js +10 -1
  80. package/es/steps/src/styles/index.cssr.js +115 -3
  81. package/es/steps/styles/light.d.ts +14 -0
  82. package/es/steps/styles/light.js +16 -2
  83. package/es/theme-editor/src/ThemeEditor.d.ts +2 -0
  84. package/es/themes/dark.js +2 -0
  85. package/es/themes/light.js +2 -0
  86. package/es/toggle-button/src/ToggleButton.d.ts +13 -0
  87. package/es/toggle-button/src/ToggleButton.js +5 -2
  88. package/es/toggle-button/src/styles/toggle-button.cssr.js +3 -0
  89. package/es/typography/src/a.d.ts +27 -0
  90. package/es/typography/src/a.js +4 -1
  91. package/es/typography/src/blockquote.d.ts +27 -0
  92. package/es/typography/src/blockquote.js +4 -1
  93. package/es/typography/src/create-header.d.ts +27 -0
  94. package/es/typography/src/create-header.js +4 -1
  95. package/es/typography/src/headers.d.ts +108 -0
  96. package/es/typography/src/hr.d.ts +18 -0
  97. package/es/typography/src/hr.js +4 -0
  98. package/es/typography/src/li.js +4 -1
  99. package/es/typography/src/ol.d.ts +27 -0
  100. package/es/typography/src/ol.js +4 -1
  101. package/es/typography/src/p.d.ts +27 -0
  102. package/es/typography/src/p.js +4 -1
  103. package/es/typography/src/text.d.ts +128 -524
  104. package/es/typography/src/text.js +68 -69
  105. package/es/typography/src/ul.d.ts +27 -0
  106. package/es/typography/src/ul.js +4 -1
  107. package/es/typography/styles/light.d.ts +3 -0
  108. package/es/typography/styles/light.js +3 -0
  109. package/es/version.d.ts +1 -1
  110. package/es/version.js +1 -1
  111. package/lib/_internal/index.d.ts +2 -0
  112. package/lib/_internal/index.js +4 -1
  113. package/lib/_internal/typography/index.d.ts +2 -0
  114. package/lib/_internal/typography/index.js +9 -0
  115. package/lib/_internal/typography/src/styles/text.cssr.d.ts +2 -0
  116. package/lib/_internal/typography/src/styles/text.cssr.js +83 -0
  117. package/lib/_internal/typography/src/text.d.ts +246 -0
  118. package/lib/_internal/typography/src/text.js +85 -0
  119. package/lib/_internal/typography/src/variants.d.ts +13 -0
  120. package/lib/_internal/typography/src/variants.js +137 -0
  121. package/lib/_internal/typography/styles/dark.d.ts +3 -0
  122. package/lib/_internal/typography/styles/dark.js +10 -0
  123. package/lib/_internal/typography/styles/index.d.ts +3 -0
  124. package/lib/_internal/typography/styles/index.js +10 -0
  125. package/lib/_internal/typography/styles/light.d.ts +24 -0
  126. package/lib/_internal/typography/styles/light.js +32 -0
  127. package/lib/_styles/common/_common.d.ts +2 -0
  128. package/lib/_styles/common/_common.js +3 -1
  129. package/lib/_styles/common/light.d.ts +2 -0
  130. package/lib/action-card/index.d.ts +4 -0
  131. package/lib/action-card/index.js +11 -0
  132. package/lib/action-card/src/ActionCard.d.ts +313 -0
  133. package/lib/action-card/src/ActionCard.js +107 -0
  134. package/lib/action-card/src/styles/index.cssr.d.ts +2 -0
  135. package/lib/action-card/src/styles/index.cssr.js +118 -0
  136. package/lib/action-card/styles/dark.d.ts +3 -0
  137. package/lib/action-card/styles/dark.js +13 -0
  138. package/lib/action-card/styles/index.d.ts +3 -0
  139. package/lib/action-card/styles/index.js +10 -0
  140. package/lib/action-card/styles/light.d.ts +29 -0
  141. package/lib/action-card/styles/light.js +37 -0
  142. package/lib/avatar/src/Avatar.d.ts +13 -3
  143. package/lib/avatar/src/Avatar.js +4 -3
  144. package/lib/avatar/src/styles/index.cssr.js +3 -2
  145. package/lib/avatar/styles/light.d.ts +1 -0
  146. package/lib/avatar/styles/light.js +4 -3
  147. package/lib/avatar-group/src/AvatarGroup.d.ts +10 -0
  148. package/lib/avatar-group/styles/light.d.ts +1 -0
  149. package/lib/badge/src/Badge.d.ts +10 -0
  150. package/lib/badge/src/Badge.js +3 -2
  151. package/lib/badge/src/styles/index.cssr.js +19 -1
  152. package/lib/badge/styles/light.d.ts +1 -0
  153. package/lib/badge/styles/light.js +4 -3
  154. package/lib/components.d.ts +1 -0
  155. package/lib/components.js +1 -0
  156. package/lib/config-provider/src/internal-interface.d.ts +2 -0
  157. package/lib/data-table/src/DataTable.d.ts +14 -0
  158. package/lib/data-table/src/DataTable.js +3 -3
  159. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
  160. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
  161. package/lib/data-table/src/TableParts/Body.d.ts +2 -0
  162. package/lib/data-table/src/TableParts/Body.js +10 -1
  163. package/lib/data-table/src/TableParts/BodySkeleton.d.ts +18 -0
  164. package/lib/data-table/src/TableParts/BodySkeleton.js +54 -0
  165. package/lib/data-table/src/TableParts/Header.d.ts +2 -0
  166. package/lib/data-table/src/interface.d.ts +6 -0
  167. package/lib/data-table/src/styles/index.cssr.js +1 -1
  168. package/lib/data-table/styles/light.d.ts +2 -0
  169. package/lib/data-table/styles/light.js +1 -1
  170. package/lib/dialog/src/DialogProvider.d.ts +4 -0
  171. package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -1
  172. package/lib/modal/src/BodyWrapper.d.ts +1 -0
  173. package/lib/modal/src/Modal.d.ts +9 -0
  174. package/lib/modal/styles/light.d.ts +2 -0
  175. package/lib/modal/styles/light.js +2 -1
  176. package/lib/pagination/src/Pagination.d.ts +22 -0
  177. package/lib/pagination/src/Pagination.js +4 -2
  178. package/lib/pagination/src/styles/index.cssr.js +11 -0
  179. package/lib/pagination/styles/light.d.ts +4 -0
  180. package/lib/pagination/styles/light.js +7 -5
  181. package/lib/spin/styles/light.js +3 -3
  182. package/lib/steps/src/Step.d.ts +17 -0
  183. package/lib/steps/src/Step.js +81 -25
  184. package/lib/steps/src/Steps.d.ts +127 -1
  185. package/lib/steps/src/Steps.js +4 -1
  186. package/lib/steps/src/interface.d.ts +10 -2
  187. package/lib/steps/src/interface.js +11 -0
  188. package/lib/steps/src/styles/index.cssr.js +115 -3
  189. package/lib/steps/styles/light.d.ts +14 -0
  190. package/lib/steps/styles/light.js +16 -2
  191. package/lib/theme-editor/src/ThemeEditor.d.ts +2 -0
  192. package/lib/themes/dark.js +2 -0
  193. package/lib/themes/light.js +2 -0
  194. package/lib/toggle-button/src/ToggleButton.d.ts +13 -0
  195. package/lib/toggle-button/src/ToggleButton.js +5 -2
  196. package/lib/toggle-button/src/styles/toggle-button.cssr.js +3 -0
  197. package/lib/typography/src/a.d.ts +27 -0
  198. package/lib/typography/src/a.js +3 -0
  199. package/lib/typography/src/blockquote.d.ts +27 -0
  200. package/lib/typography/src/blockquote.js +3 -0
  201. package/lib/typography/src/create-header.d.ts +27 -0
  202. package/lib/typography/src/create-header.js +3 -0
  203. package/lib/typography/src/headers.d.ts +108 -0
  204. package/lib/typography/src/hr.d.ts +18 -0
  205. package/lib/typography/src/hr.js +4 -0
  206. package/lib/typography/src/li.js +3 -0
  207. package/lib/typography/src/ol.d.ts +27 -0
  208. package/lib/typography/src/ol.js +3 -0
  209. package/lib/typography/src/p.d.ts +27 -0
  210. package/lib/typography/src/p.js +3 -0
  211. package/lib/typography/src/text.d.ts +128 -524
  212. package/lib/typography/src/text.js +66 -70
  213. package/lib/typography/src/ul.d.ts +27 -0
  214. package/lib/typography/src/ul.js +3 -0
  215. package/lib/typography/styles/light.d.ts +3 -0
  216. package/lib/typography/styles/light.js +3 -0
  217. package/lib/version.d.ts +1 -1
  218. package/lib/version.js +1 -1
  219. package/package.json +1 -1
  220. package/volar.d.ts +1 -0
  221. package/web-types.json +126 -96
@@ -12,7 +12,7 @@ export declare const avatarProps: {
12
12
  readonly objectFit: PropType<ObjectFit>;
13
13
  readonly round: {
14
14
  readonly type: BooleanConstructor;
15
- readonly default: true;
15
+ readonly default: false;
16
16
  };
17
17
  readonly bordered: {
18
18
  readonly type: BooleanConstructor;
@@ -40,6 +40,7 @@ export declare const avatarProps: {
40
40
  textColor: string;
41
41
  iconColor: string;
42
42
  color: string;
43
+ iconSize: string;
43
44
  }, any>>;
44
45
  readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Avatar", {
45
46
  borderRadius: string;
@@ -53,6 +54,7 @@ export declare const avatarProps: {
53
54
  textColor: string;
54
55
  iconColor: string;
55
56
  color: string;
57
+ iconSize: string;
56
58
  }, any>>>;
57
59
  readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Avatar", {
58
60
  borderRadius: string;
@@ -66,6 +68,7 @@ export declare const avatarProps: {
66
68
  textColor: string;
67
69
  iconColor: string;
68
70
  color: string;
71
+ iconSize: string;
69
72
  }, any>>>;
70
73
  };
71
74
  export type AvatarProps = ExtractPublicPropTypes<typeof avatarProps>;
@@ -79,7 +82,7 @@ declare const _default: import("vue").DefineComponent<{
79
82
  readonly objectFit: PropType<ObjectFit>;
80
83
  readonly round: {
81
84
  readonly type: BooleanConstructor;
82
- readonly default: true;
85
+ readonly default: false;
83
86
  };
84
87
  readonly bordered: {
85
88
  readonly type: BooleanConstructor;
@@ -107,6 +110,7 @@ declare const _default: import("vue").DefineComponent<{
107
110
  textColor: string;
108
111
  iconColor: string;
109
112
  color: string;
113
+ iconSize: string;
110
114
  }, any>>;
111
115
  readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Avatar", {
112
116
  borderRadius: string;
@@ -120,6 +124,7 @@ declare const _default: import("vue").DefineComponent<{
120
124
  textColor: string;
121
125
  iconColor: string;
122
126
  color: string;
127
+ iconSize: string;
123
128
  }, any>>>;
124
129
  readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Avatar", {
125
130
  borderRadius: string;
@@ -133,6 +138,7 @@ declare const _default: import("vue").DefineComponent<{
133
138
  textColor: string;
134
139
  iconColor: string;
135
140
  color: string;
141
+ iconSize: string;
136
142
  }, any>>>;
137
143
  }, {
138
144
  textRef: import("vue").Ref<HTMLElement | null>;
@@ -150,6 +156,7 @@ declare const _default: import("vue").DefineComponent<{
150
156
  '--u-icon-color': string;
151
157
  '--u-bezier': string;
152
158
  '--u-merged-size': string;
159
+ '--u-icon-size': string;
153
160
  }> | undefined;
154
161
  themeClass: import("vue").Ref<string> | undefined;
155
162
  onRender: (() => void) | undefined;
@@ -168,7 +175,7 @@ declare const _default: import("vue").DefineComponent<{
168
175
  readonly objectFit: PropType<ObjectFit>;
169
176
  readonly round: {
170
177
  readonly type: BooleanConstructor;
171
- readonly default: true;
178
+ readonly default: false;
172
179
  };
173
180
  readonly bordered: {
174
181
  readonly type: BooleanConstructor;
@@ -196,6 +203,7 @@ declare const _default: import("vue").DefineComponent<{
196
203
  textColor: string;
197
204
  iconColor: string;
198
205
  color: string;
206
+ iconSize: string;
199
207
  }, any>>;
200
208
  readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Avatar", {
201
209
  borderRadius: string;
@@ -209,6 +217,7 @@ declare const _default: import("vue").DefineComponent<{
209
217
  textColor: string;
210
218
  iconColor: string;
211
219
  color: string;
220
+ iconSize: string;
212
221
  }, any>>>;
213
222
  readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Avatar", {
214
223
  borderRadius: string;
@@ -222,6 +231,7 @@ declare const _default: import("vue").DefineComponent<{
222
231
  textColor: string;
223
232
  iconColor: string;
224
233
  color: string;
234
+ iconSize: string;
225
235
  }, any>>>;
226
236
  }>>, {
227
237
  readonly disabled: boolean;
@@ -14,7 +14,7 @@ export const avatarProps = Object.assign(Object.assign({}, useTheme.props), { si
14
14
  default: undefined
15
15
  }, objectFit: String, round: {
16
16
  type: Boolean,
17
- default: true
17
+ default: false
18
18
  }, bordered: {
19
19
  type: Boolean,
20
20
  default: undefined
@@ -92,7 +92,7 @@ export default defineComponent({
92
92
  const size = mergedSizeRef.value;
93
93
  const round = mergedRoundRef.value;
94
94
  const bordered = mergedBorderedRef.value;
95
- const { self: { borderRadius, fontSize, fontWeight, color, border, textColor, iconColor }, common: { cubicBezierEaseInOut } } = themeRef.value;
95
+ const { self: { borderRadius, fontSize, fontWeight, color, border, textColor, iconColor, iconSize }, common: { cubicBezierEaseInOut } } = themeRef.value;
96
96
  let height;
97
97
  if (typeof size === 'number') {
98
98
  height = `${size}px`;
@@ -112,7 +112,8 @@ export default defineComponent({
112
112
  '--u-text-color': textColor,
113
113
  '--u-icon-color': iconColor,
114
114
  '--u-bezier': cubicBezierEaseInOut,
115
- '--u-merged-size': `var(--u-avatar-size-override, ${height})`
115
+ '--u-merged-size': `var(--u-avatar-size-override, ${height})`,
116
+ '--u-icon-size': iconSize
116
117
  };
117
118
  });
118
119
  const themeClassHandle = inlineThemeDisabled
@@ -5,6 +5,7 @@ import { c, cE, cB } from '../../../_utils/cssr';
5
5
  // --u-color
6
6
  // --u-bezier
7
7
  // --u-merged-size
8
+ // --u-icon-size
8
9
  export default cB('avatar', `
9
10
  width: var(--u-merged-size);
10
11
  height: var(--u-merged-size);
@@ -35,7 +36,7 @@ export default cB('avatar', `
35
36
  `), cB('icon', `
36
37
  color: var(--u-icon-color);
37
38
  vertical-align: bottom;
38
- width: 24px;
39
- height: 24px;
39
+ width: var(--u-icon-size);
40
+ height: var(--u-icon-size);
40
41
  display: block;
41
42
  `), cE('text', 'line-height: 1.25')]);
@@ -12,6 +12,7 @@ export declare const self: (vars: ThemeCommonVars) => {
12
12
  textColor: string;
13
13
  iconColor: string;
14
14
  color: string;
15
+ iconSize: string;
15
16
  };
16
17
  export type AvatarThemeVars = ReturnType<typeof self>;
17
18
  declare const avatarLight: Theme<'Avatar', AvatarThemeVars>;
@@ -1,18 +1,19 @@
1
1
  import { commonLight } from '../../_styles/common';
2
2
  export const self = (vars) => {
3
- const { borderRadius, heightTiny, heightSmall, heightMedium, heightLarge, fontBodyLarge, fontWeight, elementsSecondary, textSecondary, elementsPrimary, elementsTertiary } = vars;
3
+ const { borderRadius, heightSmall, heightMedium, heightLarge, fontBodyLarge, fontWeight, elementsSecondary, textSecondary, elementsPrimary, elementsTertiary, fontTitleMedium } = vars;
4
4
  return {
5
5
  borderRadius,
6
6
  fontSize: fontBodyLarge,
7
7
  fontWeight,
8
8
  border: `2px solid ${elementsSecondary}`,
9
- heightTiny,
9
+ heightTiny: '36px',
10
10
  heightSmall,
11
11
  heightMedium,
12
12
  heightLarge,
13
13
  textColor: textSecondary,
14
14
  iconColor: elementsPrimary,
15
- color: elementsTertiary
15
+ color: elementsTertiary,
16
+ iconSize: fontTitleMedium
16
17
  };
17
18
  };
18
19
  const avatarLight = {
@@ -32,6 +32,7 @@ export declare const avatarGroupProps: {
32
32
  textColor: string;
33
33
  iconColor: string;
34
34
  color: string;
35
+ iconSize: string;
35
36
  }, any>;
36
37
  }>>;
37
38
  readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"AvatarGroup", {
@@ -49,6 +50,7 @@ export declare const avatarGroupProps: {
49
50
  textColor: string;
50
51
  iconColor: string;
51
52
  color: string;
53
+ iconSize: string;
52
54
  }, any>;
53
55
  }>>>;
54
56
  readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"AvatarGroup", {
@@ -66,6 +68,7 @@ export declare const avatarGroupProps: {
66
68
  textColor: string;
67
69
  iconColor: string;
68
70
  color: string;
71
+ iconSize: string;
69
72
  }, any>;
70
73
  }>>>;
71
74
  };
@@ -95,6 +98,7 @@ declare const _default: import("vue").DefineComponent<{
95
98
  textColor: string;
96
99
  iconColor: string;
97
100
  color: string;
101
+ iconSize: string;
98
102
  }, any>;
99
103
  }>>;
100
104
  readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"AvatarGroup", {
@@ -112,6 +116,7 @@ declare const _default: import("vue").DefineComponent<{
112
116
  textColor: string;
113
117
  iconColor: string;
114
118
  color: string;
119
+ iconSize: string;
115
120
  }, any>;
116
121
  }>>>;
117
122
  readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"AvatarGroup", {
@@ -129,6 +134,7 @@ declare const _default: import("vue").DefineComponent<{
129
134
  textColor: string;
130
135
  iconColor: string;
131
136
  color: string;
137
+ iconSize: string;
132
138
  }, any>;
133
139
  }>>>;
134
140
  }, {
@@ -150,6 +156,7 @@ declare const _default: import("vue").DefineComponent<{
150
156
  textColor: string;
151
157
  iconColor: string;
152
158
  color: string;
159
+ iconSize: string;
153
160
  }, any>;
154
161
  };
155
162
  peerOverrides: {
@@ -192,6 +199,7 @@ declare const _default: import("vue").DefineComponent<{
192
199
  textColor: string;
193
200
  iconColor: string;
194
201
  color: string;
202
+ iconSize: string;
195
203
  }, any>;
196
204
  }>>;
197
205
  readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"AvatarGroup", {
@@ -209,6 +217,7 @@ declare const _default: import("vue").DefineComponent<{
209
217
  textColor: string;
210
218
  iconColor: string;
211
219
  color: string;
220
+ iconSize: string;
212
221
  }, any>;
213
222
  }>>>;
214
223
  readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"AvatarGroup", {
@@ -226,6 +235,7 @@ declare const _default: import("vue").DefineComponent<{
226
235
  textColor: string;
227
236
  iconColor: string;
228
237
  color: string;
238
+ iconSize: string;
229
239
  }, any>;
230
240
  }>>>;
231
241
  }>>, {
@@ -17,6 +17,7 @@ declare const avatarGroupLight: import("../../_mixins").Theme<"AvatarGroup", {
17
17
  textColor: string;
18
18
  iconColor: string;
19
19
  color: string;
20
+ iconSize: string;
20
21
  }, any>;
21
22
  }>;
22
23
  export default avatarGroupLight;
@@ -31,6 +31,7 @@ export declare const badgeProps: {
31
31
  textColorSuccess: string;
32
32
  textColorError: string;
33
33
  textColorWarning: string;
34
+ borderColor: string;
34
35
  }, any>>;
35
36
  readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Badge", {
36
37
  color: string;
@@ -46,6 +47,7 @@ export declare const badgeProps: {
46
47
  textColorSuccess: string;
47
48
  textColorError: string;
48
49
  textColorWarning: string;
50
+ borderColor: string;
49
51
  }, any>>>;
50
52
  readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Badge", {
51
53
  color: string;
@@ -61,6 +63,7 @@ export declare const badgeProps: {
61
63
  textColorSuccess: string;
62
64
  textColorError: string;
63
65
  textColorWarning: string;
66
+ borderColor: string;
64
67
  }, any>>>;
65
68
  };
66
69
  export type BadgeProps = ExtractPublicPropTypes<typeof badgeProps>;
@@ -95,6 +98,7 @@ declare const _default: import("vue").DefineComponent<{
95
98
  textColorSuccess: string;
96
99
  textColorError: string;
97
100
  textColorWarning: string;
101
+ borderColor: string;
98
102
  }, any>>;
99
103
  readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Badge", {
100
104
  color: string;
@@ -110,6 +114,7 @@ declare const _default: import("vue").DefineComponent<{
110
114
  textColorSuccess: string;
111
115
  textColorError: string;
112
116
  textColorWarning: string;
117
+ borderColor: string;
113
118
  }, any>>>;
114
119
  readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Badge", {
115
120
  color: string;
@@ -125,6 +130,7 @@ declare const _default: import("vue").DefineComponent<{
125
130
  textColorSuccess: string;
126
131
  textColorError: string;
127
132
  textColorWarning: string;
133
+ borderColor: string;
128
134
  }, any>>>;
129
135
  }, {
130
136
  rtlEnabled: import("vue").Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined;
@@ -140,6 +146,7 @@ declare const _default: import("vue").DefineComponent<{
140
146
  '--u-bezier': string;
141
147
  '--u-ripple-bezier': string;
142
148
  '--u-text-color': string;
149
+ '--u-border-color': string;
143
150
  }> | undefined;
144
151
  themeClass: import("vue").Ref<string> | undefined;
145
152
  onRender: (() => void) | undefined;
@@ -177,6 +184,7 @@ declare const _default: import("vue").DefineComponent<{
177
184
  textColorSuccess: string;
178
185
  textColorError: string;
179
186
  textColorWarning: string;
187
+ borderColor: string;
180
188
  }, any>>;
181
189
  readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Badge", {
182
190
  color: string;
@@ -192,6 +200,7 @@ declare const _default: import("vue").DefineComponent<{
192
200
  textColorSuccess: string;
193
201
  textColorError: string;
194
202
  textColorWarning: string;
203
+ borderColor: string;
195
204
  }, any>>>;
196
205
  readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Badge", {
197
206
  color: string;
@@ -207,6 +216,7 @@ declare const _default: import("vue").DefineComponent<{
207
216
  textColorSuccess: string;
208
217
  textColorError: string;
209
218
  textColorWarning: string;
219
+ borderColor: string;
210
220
  }, any>>>;
211
221
  }>>, {
212
222
  readonly type: "default" | "info" | "success" | "warning" | "error" | "prime";
@@ -39,14 +39,15 @@ export default defineComponent({
39
39
  const rtlEnabledRef = useRtl('Badge', mergedRtlRef, mergedClsPrefixRef);
40
40
  const cssVarsRef = computed(() => {
41
41
  const { type, color: propColor, textColor: propTextColor } = props;
42
- const { common: { cubicBezierEaseInOut, cubicBezierEaseOut }, self: { [createKey('color', type)]: color, [createKey('textColor', type)]: textColor, fontSize } } = themeRef.value;
42
+ const { common: { cubicBezierEaseInOut, cubicBezierEaseOut }, self: { [createKey('color', type)]: color, [createKey('textColor', type)]: textColor, fontSize, borderColor } } = themeRef.value;
43
43
  return {
44
44
  '--u-font-size': fontSize,
45
45
  '--u-color': propColor || color,
46
46
  '--u-ripple-color': propColor || color,
47
47
  '--u-bezier': cubicBezierEaseInOut,
48
48
  '--u-ripple-bezier': cubicBezierEaseOut,
49
- '--u-text-color': propTextColor || textColor
49
+ '--u-text-color': propTextColor || textColor,
50
+ '--u-border-color': borderColor
50
51
  };
51
52
  });
52
53
  const themeClassHandle = inlineThemeDisabled
@@ -6,6 +6,7 @@ import { fadeInScaleUpTransition } from '../../../_styles/transitions/fade-in-sc
6
6
  // --u-bezier
7
7
  // --u-ripple-bezier
8
8
  // --u-font-size
9
+ // --u-border-color
9
10
  export default c([c('@keyframes badge-wave-spread', {
10
11
  from: {
11
12
  boxShadow: '0 0 0.5px 0px var(--u-ripple-color)',
@@ -74,4 +75,21 @@ export default c([c('@keyframes badge-wave-spread', {
74
75
  right: 0;
75
76
  top: 0;
76
77
  bottom: 0;
77
- `)])])]);
78
+ `)]), c('&:has(span)', '', [cB('badge-sup', `
79
+ border: 2px solid var(--u-border-color);
80
+ top: -5px;
81
+ transform: translateX(-18px);
82
+ bottom: 0;
83
+ height: 20px;
84
+ padding: 2px 12px;
85
+ box-sizing: border-box;
86
+ border-radius: 100px;
87
+ `), cM('dot', [cB('badge-sup', `
88
+ transform: none;
89
+ width: 12px;
90
+ height: 12px;
91
+ transform: none;
92
+ left: auto;
93
+ right: 0;
94
+ top: 0;
95
+ `)])])])]);
@@ -14,6 +14,7 @@ export declare const self: (vars: ThemeCommonVars) => {
14
14
  textColorSuccess: string;
15
15
  textColorError: string;
16
16
  textColorWarning: string;
17
+ borderColor: string;
17
18
  };
18
19
  export type BadgeThemeVars = ReturnType<typeof self>;
19
20
  declare const badgeLight: Theme<'Badge', BadgeThemeVars>;
@@ -1,6 +1,6 @@
1
1
  import { commonLight } from '../../_styles/common';
2
2
  export const self = (vars) => {
3
- const { brandQuaternary500, elementsPrimary, staticGreen, staticRed, staticOrange, fontBodySmall, textPrimary, textQuaternary } = vars;
3
+ const { brandQuaternary500, elementsPrimary, staticGreen, staticRed, staticOrange, fontBodySmall, textPrimary, textQuaternary, staticWhite } = vars;
4
4
  return {
5
5
  color: staticRed,
6
6
  colorPrime: elementsPrimary,
@@ -9,12 +9,13 @@ export const self = (vars) => {
9
9
  colorError: staticRed,
10
10
  colorWarning: staticOrange,
11
11
  fontSize: fontBodySmall,
12
- textColor: textPrimary,
12
+ textColor: staticWhite,
13
13
  textColorPrime: textQuaternary,
14
14
  textColorInfo: textPrimary,
15
15
  textColorSuccess: textQuaternary,
16
16
  textColorError: textQuaternary,
17
- textColorWarning: textQuaternary
17
+ textColorWarning: textQuaternary,
18
+ borderColor: staticWhite
18
19
  };
19
20
  };
20
21
  const badgeLight = {
@@ -12,6 +12,7 @@ export * from './button-group';
12
12
  export * from './calendar';
13
13
  export * from './color-picker';
14
14
  export * from './card';
15
+ export * from './action-card';
15
16
  export * from './card-list';
16
17
  export * from './carousel';
17
18
  export * from './cascader';
package/es/components.js CHANGED
@@ -12,6 +12,7 @@ export * from './button-group';
12
12
  export * from './calendar';
13
13
  export * from './color-picker';
14
14
  export * from './card';
15
+ export * from './action-card';
15
16
  export * from './card-list';
16
17
  export * from './carousel';
17
18
  export * from './cascader';
@@ -99,6 +99,7 @@ import type { ToggleButtonTheme } from '../../toggle-button/styles';
99
99
  import type { AccountOptionTheme } from '../../_internal/account-option/styles';
100
100
  import type { FlexTheme } from '../../flex/styles';
101
101
  import { CardListTheme } from '../../card-list/styles';
102
+ import { ActionCardTheme } from '../../action-card';
102
103
  export interface GlobalThemeWithoutCommon {
103
104
  Alert?: AlertTheme;
104
105
  Anchor?: AnchorTheme;
@@ -111,6 +112,7 @@ export interface GlobalThemeWithoutCommon {
111
112
  Button?: ButtonTheme;
112
113
  ButtonGroup?: ButtonGroupTheme;
113
114
  Calendar?: CalendarTheme;
115
+ ActionCard?: ActionCardTheme;
114
116
  Card?: CardTheme;
115
117
  Carousel?: CarouselTheme;
116
118
  Cascader?: CascaderTheme;
@@ -555,6 +555,8 @@ declare const _default: import("vue").DefineComponent<{
555
555
  jumperFontSizeLarge: string;
556
556
  jumperTextColor: string;
557
557
  jumperTextColorDisabled: string;
558
+ paginationSizePickerBackground: string;
559
+ paginationSizePickerBorder: string;
558
560
  }, {
559
561
  Select: import("../../_mixins").Theme<"Select", {
560
562
  menuBoxShadow: string;
@@ -1471,6 +1473,8 @@ declare const _default: import("vue").DefineComponent<{
1471
1473
  jumperFontSizeLarge: string;
1472
1474
  jumperTextColor: string;
1473
1475
  jumperTextColorDisabled: string;
1476
+ paginationSizePickerBackground: string;
1477
+ paginationSizePickerBorder: string;
1474
1478
  }, {
1475
1479
  Select: import("../../_mixins").Theme<"Select", {
1476
1480
  menuBoxShadow: string;
@@ -2387,6 +2391,8 @@ declare const _default: import("vue").DefineComponent<{
2387
2391
  jumperFontSizeLarge: string;
2388
2392
  jumperTextColor: string;
2389
2393
  jumperTextColorDisabled: string;
2394
+ paginationSizePickerBackground: string;
2395
+ paginationSizePickerBorder: string;
2390
2396
  }, {
2391
2397
  Select: import("../../_mixins").Theme<"Select", {
2392
2398
  menuBoxShadow: string;
@@ -3321,6 +3327,8 @@ declare const _default: import("vue").DefineComponent<{
3321
3327
  jumperFontSizeLarge: string;
3322
3328
  jumperTextColor: string;
3323
3329
  jumperTextColorDisabled: string;
3330
+ paginationSizePickerBackground: string;
3331
+ paginationSizePickerBorder: string;
3324
3332
  }, {
3325
3333
  Select: import("../../_mixins").Theme<"Select", {
3326
3334
  menuBoxShadow: string;
@@ -4818,6 +4826,8 @@ declare const _default: import("vue").DefineComponent<{
4818
4826
  jumperFontSizeLarge: string;
4819
4827
  jumperTextColor: string;
4820
4828
  jumperTextColorDisabled: string;
4829
+ paginationSizePickerBackground: string;
4830
+ paginationSizePickerBorder: string;
4821
4831
  }, {
4822
4832
  Select: import("../../_mixins").Theme<"Select", {
4823
4833
  menuBoxShadow: string;
@@ -5734,6 +5744,8 @@ declare const _default: import("vue").DefineComponent<{
5734
5744
  jumperFontSizeLarge: string;
5735
5745
  jumperTextColor: string;
5736
5746
  jumperTextColorDisabled: string;
5747
+ paginationSizePickerBackground: string;
5748
+ paginationSizePickerBorder: string;
5737
5749
  }, {
5738
5750
  Select: import("../../_mixins").Theme<"Select", {
5739
5751
  menuBoxShadow: string;
@@ -6650,6 +6662,8 @@ declare const _default: import("vue").DefineComponent<{
6650
6662
  jumperFontSizeLarge: string;
6651
6663
  jumperTextColor: string;
6652
6664
  jumperTextColorDisabled: string;
6665
+ paginationSizePickerBackground: string;
6666
+ paginationSizePickerBorder: string;
6653
6667
  }, {
6654
6668
  Select: import("../../_mixins").Theme<"Select", {
6655
6669
  menuBoxShadow: string;
@@ -323,7 +323,7 @@ export default defineComponent({
323
323
  };
324
324
  const cssVarsRef = computed(() => {
325
325
  const { size } = props;
326
- const { common: { cubicBezierEaseInOut }, self: { borderColor, tdColorHover, thColor, thColorHover, tdColor, tdTextColor, thTextColor, thFontWeight, thButtonColorHover, thIconColor, thIconColorActive, filterSize, borderRadius, lineHeight, tdColorModal, thColorModal, borderColorModal, thColorHoverModal, tdColorHoverModal, borderColorPopover, thColorPopover, tdColorPopover, tdColorHoverPopover, thColorHoverPopover, paginationMargin, emptyPadding, fixedBoxShadow, sorterSize, resizableContainerSize, resizableSize, loadingColor, loadingSize, opacityLoading, opacityDisabled, tdColorStriped, tdColorStripedModal, tdColorStripedPopover, thSubFontSize, thSubColor, thSubFontWeight, [createKey('fontSize', size)]: fontSize, [createKey('thPadding', size)]: thPadding, [createKey('tdPadding', size)]: tdPadding, [createKey('thHeight', size)]: thHeight, [createKey('tdHeight', size)]: tdHeight } } = themeRef.value;
326
+ const { common: { cubicBezierEaseInOut }, self: { borderColor, tdColorHover, thColor, thColorHover, tdColor, tdTextColor, thTextColor, thFontWeight, thButtonColorHover, thIconColor, thIconColorActive, filterSize, borderRadius, lineHeight, tdColorModal, thColorModal, borderColorModal, thColorHoverModal, tdColorHoverModal, borderColorPopover, thColorPopover, tdColorPopover, tdColorHoverPopover, thColorHoverPopover, paginationMargin, emptyPadding, fixedBoxShadow, sorterSize, resizableContainerSize, resizableSize, loadingColor, loadingSize, opacityLoading, tdColorStriped, tdColorStripedModal, tdColorStripedPopover, thSubFontSize, thSubColor, thSubFontWeight, [createKey('fontSize', size)]: fontSize, [createKey('thPadding', size)]: thPadding, [createKey('tdPadding', size)]: tdPadding, [createKey('thHeight', size)]: thHeight, [createKey('tdHeight', size)]: tdHeight } } = themeRef.value;
327
327
  return {
328
328
  '--u-th-height': thHeight,
329
329
  '--u-td-height': tdHeight,
@@ -367,7 +367,7 @@ export default defineComponent({
367
367
  '--u-loading-size': loadingSize,
368
368
  '--u-loading-color': loadingColor,
369
369
  '--u-opacity-loading': opacityLoading,
370
- '--u-td-opacity-disabled': opacityDisabled,
370
+ '--u-td-opacity-disabled': tdTextColor,
371
371
  '--u-td-color-striped': tdColorStriped,
372
372
  '--u-td-color-striped-modal': tdColorStripedModal,
373
373
  '--u-td-color-striped-popover': tdColorStripedPopover
@@ -410,7 +410,7 @@ export default defineComponent({
410
410
  h(MainTable, { ref: "mainTableInstRef", onEdit: (...args) => {
411
411
  this.$emit('edit', ...args);
412
412
  } })),
413
- this.mergedShowPagination ? (h("div", { class: `${mergedClsPrefix}-data-table__pagination` },
413
+ !this.loading && this.mergedShowPagination ? (h("div", { class: `${mergedClsPrefix}-data-table__pagination` },
414
414
  h(UPagination, Object.assign({ theme: this.mergedTheme.peers.Pagination, themeOverrides: this.mergedTheme.peerOverrides.Pagination, disabled: this.loading }, this.mergedPagination)))) : null,
415
415
  h(Transition, { name: "fade-in-scale-up-transition" }, {
416
416
  default: () => {
@@ -459,6 +459,8 @@ declare const _default: import("vue").DefineComponent<{
459
459
  jumperFontSizeLarge: string;
460
460
  jumperTextColor: string;
461
461
  jumperTextColorDisabled: string;
462
+ paginationSizePickerBackground: string;
463
+ paginationSizePickerBorder: string;
462
464
  }, {
463
465
  Select: import("../../../_mixins").Theme<"Select", {
464
466
  menuBoxShadow: string;
@@ -484,6 +484,8 @@ declare const _default: import("vue").DefineComponent<{
484
484
  jumperFontSizeLarge: string;
485
485
  jumperTextColor: string;
486
486
  jumperTextColorDisabled: string;
487
+ paginationSizePickerBackground: string;
488
+ paginationSizePickerBorder: string;
487
489
  }, {
488
490
  Select: import("../../../_mixins").Theme<"Select", {
489
491
  menuBoxShadow: string;
@@ -485,6 +485,8 @@ declare const _default: import("vue").DefineComponent<{
485
485
  jumperFontSizeLarge: string;
486
486
  jumperTextColor: string;
487
487
  jumperTextColorDisabled: string;
488
+ paginationSizePickerBackground: string;
489
+ paginationSizePickerBorder: string;
488
490
  }, {
489
491
  Select: import("../../../_mixins").Theme<"Select", {
490
492
  menuBoxShadow: string;
@@ -26,6 +26,7 @@ import ExpandTrigger from './ExpandTrigger';
26
26
  import RenderSafeCheckbox from './BodyCheckbox';
27
27
  import RenderSafeRadio from './BodyRadio';
28
28
  import TableHeader from './Header';
29
+ import BodySkeleton from './BodySkeleton';
29
30
  function flatten(rowInfos, expandedRowKeys) {
30
31
  const fRows = [];
31
32
  function traverse(rs, rootIndex) {
@@ -590,11 +591,19 @@ export default defineComponent({
590
591
  } },
591
592
  h("colgroup", null, cols.map((col) => (h("col", { key: col.key, style: col.style })))),
592
593
  this.showHeader ? h(TableHeader, { discrete: false }) : null,
593
- !this.empty ? (h("tbody", { "data-u-id": componentId, class: `${mergedClsPrefix}-data-table-tbody` }, displayedData.map((rowInfo, displayedRowIndex) => {
594
+ this.loading ? (h(BodySkeleton, null)) : !this.empty ? (h("tbody", { "data-u-id": componentId, class: `${mergedClsPrefix}-data-table-tbody` }, displayedData.map((rowInfo, displayedRowIndex) => {
594
595
  return renderRow(rowInfo, displayedRowIndex, false);
595
596
  }))) : null));
596
597
  }
597
598
  else {
599
+ if (this.loading) {
600
+ return (h("table", { class: `${mergedClsPrefix}-data-table-table`, onMouseleave: handleMouseleaveTable, style: {
601
+ tableLayout: this.mergedTableLayout
602
+ } },
603
+ h("colgroup", null, cols.map((col) => (h("col", { key: col.key, style: col.style })))),
604
+ this.showHeader ? h(TableHeader, { discrete: false }) : null,
605
+ h(BodySkeleton, null)));
606
+ }
598
607
  return (h(VirtualList, { ref: "virtualListRef", items: displayedData, itemSize: 28, visibleItemsTag: VirtualListItemWrapper, visibleItemsProps: {
599
608
  clsPrefix: mergedClsPrefix,
600
609
  id: componentId,
@@ -0,0 +1,18 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ rowCount: {
3
+ type: NumberConstructor;
4
+ default: number;
5
+ };
6
+ }, {
7
+ mergedClsPrefix: import("vue").Ref<string>;
8
+ cols: import("vue").Ref<import("../use-group-header").ColItem[]>;
9
+ skeletonRowCount: import("vue").ComputedRef<number>;
10
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
11
+ rowCount: {
12
+ type: NumberConstructor;
13
+ default: number;
14
+ };
15
+ }>>, {
16
+ rowCount: number;
17
+ }, {}>;
18
+ export default _default;