@uzum-tech/ui 1.4.2 → 1.5.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 (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
@@ -1,76 +1,75 @@
1
- import { h, defineComponent, computed } from 'vue';
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { h, defineComponent, warn, computed } from 'vue';
2
13
  import { useCompitable } from 'vooks';
3
- import { useConfig, useTheme, useThemeClass } from '../../_mixins';
4
- import { warn, createKey } from '../../_utils';
5
- import { typographyLight } from '../styles';
6
- import style from './styles/text.cssr';
7
- export const textProps = Object.assign(Object.assign({}, useTheme.props), { code: Boolean, type: {
8
- type: String,
9
- default: 'default'
10
- }, delete: Boolean, strong: Boolean, italic: Boolean, underline: Boolean, depth: [String, Number], tag: String,
11
- // deprecated
12
- as: {
13
- type: String,
14
- validator: () => {
15
- if (process.env.NODE_ENV !== 'production') {
16
- warn('text', '`as` is deprecated, please use `tag` instead.');
17
- }
18
- return true;
19
- },
20
- default: undefined
21
- } });
14
+ import { InternalUText, internalTextProps } from '../../_internal';
15
+ export const textProps = internalTextProps;
22
16
  export default defineComponent({
23
17
  name: 'Text',
24
- props: textProps,
25
- setup(props) {
26
- const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
27
- const themeRef = useTheme('Typography', '-text', style, typographyLight, props, mergedClsPrefixRef);
28
- const cssVarsRef = computed(() => {
29
- const { depth, type } = props;
30
- const textColorKey = type === 'default'
31
- ? depth === undefined
32
- ? 'textColor'
33
- : `textColor${depth}Depth`
34
- : createKey('textColor', type);
35
- const { common: { fontWeightStrong, fontFamilyMono, cubicBezierEaseInOut }, self: { codeTextColor, codeBorderRadius, codeColor, codeBorder, [textColorKey]: textColor } } = themeRef.value;
36
- return {
37
- '--u-bezier': cubicBezierEaseInOut,
38
- '--u-text-color': textColor,
39
- '--u-font-weight-strong': fontWeightStrong,
40
- '--u-font-famliy-mono': fontFamilyMono,
41
- '--u-code-border-radius': codeBorderRadius,
42
- '--u-code-text-color': codeTextColor,
43
- '--u-code-color': codeColor,
44
- '--u-code-border': codeBorder
45
- };
18
+ props: Object.assign(Object.assign({}, textProps), {
19
+ // deprecated
20
+ code: {
21
+ type: Boolean,
22
+ validator: (value) => {
23
+ if (process.env.NODE_ENV !== 'production' && value) {
24
+ warn('text', '`code` is deprecated, please use tag="code" instead');
25
+ }
26
+ return true;
27
+ }
28
+ }, as: {
29
+ type: String,
30
+ validator: (value) => {
31
+ if (process.env.NODE_ENV !== 'production' && value) {
32
+ warn('text', '`as` is deprecated, please use `tag` instead.');
33
+ }
34
+ return true;
35
+ },
36
+ default: undefined
37
+ }, delete: {
38
+ type: Boolean,
39
+ validator: (value) => {
40
+ if (process.env.NODE_ENV !== 'production' && value) {
41
+ warn('text', '`delete` is deprecated, please use tag="del" instead');
42
+ }
43
+ return true;
44
+ }
45
+ }, depth: {
46
+ type: [String, Number],
47
+ validator: (value) => {
48
+ if (process.env.NODE_ENV !== 'production' && value) {
49
+ warn('text', '`depth` is deprecated, please use custom classes to define styles');
50
+ }
51
+ return true;
52
+ }
53
+ } }),
54
+ setup(props, { slots, attrs }) {
55
+ const compitableTagRef = useCompitable(props, ['as', 'tag']);
56
+ // deprecated props
57
+ const finalTagRef = computed(() => {
58
+ // Priority: explicit tag > as > code > delete > default
59
+ if (compitableTagRef.value) {
60
+ return compitableTagRef.value;
61
+ }
62
+ if (props.code) {
63
+ return 'code';
64
+ }
65
+ if (props.delete) {
66
+ return 'del';
67
+ }
68
+ return undefined;
46
69
  });
47
- const themeClassHandle = inlineThemeDisabled
48
- ? useThemeClass('text', computed(() => `${props.type[0]}${props.depth || ''}`), cssVarsRef, props)
49
- : undefined;
50
- return {
51
- mergedClsPrefix: mergedClsPrefixRef,
52
- compitableTag: useCompitable(props, ['as', 'tag']),
53
- cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
54
- themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
55
- onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
70
+ return () => {
71
+ const { code, as, delete: deleteProp, depth } = props, validProps = __rest(props, ["code", "as", "delete", "depth"]);
72
+ return h(InternalUText, Object.assign(Object.assign(Object.assign({}, validProps), attrs), { tag: finalTagRef.value }), slots);
56
73
  };
57
- },
58
- render() {
59
- var _a, _b, _c;
60
- const { mergedClsPrefix } = this;
61
- (_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
62
- const textClass = [
63
- `${mergedClsPrefix}-text`,
64
- this.themeClass,
65
- {
66
- [`${mergedClsPrefix}-text--code`]: this.code,
67
- [`${mergedClsPrefix}-text--delete`]: this.delete,
68
- [`${mergedClsPrefix}-text--strong`]: this.strong,
69
- [`${mergedClsPrefix}-text--italic`]: this.italic,
70
- [`${mergedClsPrefix}-text--underline`]: this.underline
71
- }
72
- ];
73
- const children = (_c = (_b = this.$slots).default) === null || _c === void 0 ? void 0 : _c.call(_b);
74
- return this.code ? (h("code", { class: textClass, style: this.cssVars }, this.delete ? h("del", null, children) : children)) : this.delete ? (h("del", { class: textClass, style: this.cssVars }, children)) : (h(this.compitableTag || 'span', { class: textClass, style: this.cssVars }, children));
75
74
  }
76
75
  });
@@ -27,6 +27,7 @@ export declare const ulProps: {
27
27
  headerBarWidth5: string;
28
28
  headerBarWidth6: string;
29
29
  pMargin: string;
30
+ margin: string;
30
31
  liMargin: string;
31
32
  olPadding: string;
32
33
  ulPadding: string;
@@ -48,6 +49,8 @@ export declare const ulProps: {
48
49
  pTextColor3Depth: string;
49
50
  pLineHeight: string;
50
51
  pFontSize: string;
52
+ fontSize: string;
53
+ lineHeight: string;
51
54
  headerBarColor: string;
52
55
  headerBarColorPrimary: string;
53
56
  headerBarColorInfo: string;
@@ -93,6 +96,7 @@ export declare const ulProps: {
93
96
  headerBarWidth5: string;
94
97
  headerBarWidth6: string;
95
98
  pMargin: string;
99
+ margin: string;
96
100
  liMargin: string;
97
101
  olPadding: string;
98
102
  ulPadding: string;
@@ -114,6 +118,8 @@ export declare const ulProps: {
114
118
  pTextColor3Depth: string;
115
119
  pLineHeight: string;
116
120
  pFontSize: string;
121
+ fontSize: string;
122
+ lineHeight: string;
117
123
  headerBarColor: string;
118
124
  headerBarColorPrimary: string;
119
125
  headerBarColorInfo: string;
@@ -159,6 +165,7 @@ export declare const ulProps: {
159
165
  headerBarWidth5: string;
160
166
  headerBarWidth6: string;
161
167
  pMargin: string;
168
+ margin: string;
162
169
  liMargin: string;
163
170
  olPadding: string;
164
171
  ulPadding: string;
@@ -180,6 +187,8 @@ export declare const ulProps: {
180
187
  pTextColor3Depth: string;
181
188
  pLineHeight: string;
182
189
  pFontSize: string;
190
+ fontSize: string;
191
+ lineHeight: string;
183
192
  headerBarColor: string;
184
193
  headerBarColorPrimary: string;
185
194
  headerBarColorInfo: string;
@@ -229,6 +238,7 @@ declare const _default: import("vue").DefineComponent<{
229
238
  headerBarWidth5: string;
230
239
  headerBarWidth6: string;
231
240
  pMargin: string;
241
+ margin: string;
232
242
  liMargin: string;
233
243
  olPadding: string;
234
244
  ulPadding: string;
@@ -250,6 +260,8 @@ declare const _default: import("vue").DefineComponent<{
250
260
  pTextColor3Depth: string;
251
261
  pLineHeight: string;
252
262
  pFontSize: string;
263
+ fontSize: string;
264
+ lineHeight: string;
253
265
  headerBarColor: string;
254
266
  headerBarColorPrimary: string;
255
267
  headerBarColorInfo: string;
@@ -295,6 +307,7 @@ declare const _default: import("vue").DefineComponent<{
295
307
  headerBarWidth5: string;
296
308
  headerBarWidth6: string;
297
309
  pMargin: string;
310
+ margin: string;
298
311
  liMargin: string;
299
312
  olPadding: string;
300
313
  ulPadding: string;
@@ -316,6 +329,8 @@ declare const _default: import("vue").DefineComponent<{
316
329
  pTextColor3Depth: string;
317
330
  pLineHeight: string;
318
331
  pFontSize: string;
332
+ fontSize: string;
333
+ lineHeight: string;
319
334
  headerBarColor: string;
320
335
  headerBarColorPrimary: string;
321
336
  headerBarColorInfo: string;
@@ -361,6 +376,7 @@ declare const _default: import("vue").DefineComponent<{
361
376
  headerBarWidth5: string;
362
377
  headerBarWidth6: string;
363
378
  pMargin: string;
379
+ margin: string;
364
380
  liMargin: string;
365
381
  olPadding: string;
366
382
  ulPadding: string;
@@ -382,6 +398,8 @@ declare const _default: import("vue").DefineComponent<{
382
398
  pTextColor3Depth: string;
383
399
  pLineHeight: string;
384
400
  pFontSize: string;
401
+ fontSize: string;
402
+ lineHeight: string;
385
403
  headerBarColor: string;
386
404
  headerBarColorPrimary: string;
387
405
  headerBarColorInfo: string;
@@ -442,6 +460,7 @@ declare const _default: import("vue").DefineComponent<{
442
460
  headerBarWidth5: string;
443
461
  headerBarWidth6: string;
444
462
  pMargin: string;
463
+ margin: string;
445
464
  liMargin: string;
446
465
  olPadding: string;
447
466
  ulPadding: string;
@@ -463,6 +482,8 @@ declare const _default: import("vue").DefineComponent<{
463
482
  pTextColor3Depth: string;
464
483
  pLineHeight: string;
465
484
  pFontSize: string;
485
+ fontSize: string;
486
+ lineHeight: string;
466
487
  headerBarColor: string;
467
488
  headerBarColorPrimary: string;
468
489
  headerBarColorInfo: string;
@@ -508,6 +529,7 @@ declare const _default: import("vue").DefineComponent<{
508
529
  headerBarWidth5: string;
509
530
  headerBarWidth6: string;
510
531
  pMargin: string;
532
+ margin: string;
511
533
  liMargin: string;
512
534
  olPadding: string;
513
535
  ulPadding: string;
@@ -529,6 +551,8 @@ declare const _default: import("vue").DefineComponent<{
529
551
  pTextColor3Depth: string;
530
552
  pLineHeight: string;
531
553
  pFontSize: string;
554
+ fontSize: string;
555
+ lineHeight: string;
532
556
  headerBarColor: string;
533
557
  headerBarColorPrimary: string;
534
558
  headerBarColorInfo: string;
@@ -574,6 +598,7 @@ declare const _default: import("vue").DefineComponent<{
574
598
  headerBarWidth5: string;
575
599
  headerBarWidth6: string;
576
600
  pMargin: string;
601
+ margin: string;
577
602
  liMargin: string;
578
603
  olPadding: string;
579
604
  ulPadding: string;
@@ -595,6 +620,8 @@ declare const _default: import("vue").DefineComponent<{
595
620
  pTextColor3Depth: string;
596
621
  pLineHeight: string;
597
622
  pFontSize: string;
623
+ fontSize: string;
624
+ lineHeight: string;
598
625
  headerBarColor: string;
599
626
  headerBarColorPrimary: string;
600
627
  headerBarColorInfo: string;
@@ -1,4 +1,4 @@
1
- import { h, defineComponent, computed } from 'vue';
1
+ import { h, defineComponent, computed, warn } from 'vue';
2
2
  import { useConfig, useTheme, useThemeClass } from '../../_mixins';
3
3
  import { typographyLight } from '../styles';
4
4
  import style from './styles/list.cssr';
@@ -7,6 +7,9 @@ export default defineComponent({
7
7
  name: 'Ul',
8
8
  props: ulProps,
9
9
  setup(props) {
10
+ if (process.env.NODE_ENV !== 'production') {
11
+ warn('ul', 'Ul component is deprecated, you should implement Ul locally in your component instead.');
12
+ }
10
13
  const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
11
14
  const themeRef = useTheme('Typography', '-xl', style, typographyLight, props, mergedClsPrefixRef);
12
15
  const cssVarsRef = computed(() => {
@@ -26,6 +26,7 @@ export declare const self: (vars: ThemeCommonVars) => {
26
26
  headerBarWidth5: string;
27
27
  headerBarWidth6: string;
28
28
  pMargin: string;
29
+ margin: string;
29
30
  liMargin: string;
30
31
  olPadding: string;
31
32
  ulPadding: string;
@@ -47,6 +48,8 @@ export declare const self: (vars: ThemeCommonVars) => {
47
48
  pTextColor3Depth: string;
48
49
  pLineHeight: string;
49
50
  pFontSize: string;
51
+ fontSize: string;
52
+ lineHeight: string;
50
53
  headerBarColor: string;
51
54
  headerBarColorPrimary: string;
52
55
  headerBarColorInfo: string;
@@ -27,6 +27,7 @@ export const self = (vars) => {
27
27
  headerBarWidth5: '3px',
28
28
  headerBarWidth6: '3px',
29
29
  pMargin: '16px 0 16px 0',
30
+ margin: '16px 0 16px 0',
30
31
  liMargin: '.25em 0 0 0',
31
32
  olPadding: '0 0 0 2em',
32
33
  ulPadding: '0 0 0 2em',
@@ -48,6 +49,8 @@ export const self = (vars) => {
48
49
  pTextColor3Depth: textTertiary,
49
50
  pLineHeight: lineHeightBodyMedium,
50
51
  pFontSize: fontBodyMedium,
52
+ fontSize: fontBodyMedium,
53
+ lineHeight: lineHeightBodyMedium,
51
54
  headerBarColor: brandPrimary500,
52
55
  headerBarColorPrimary: brandPrimary500,
53
56
  headerBarColorInfo: brandQuaternary500,
package/es/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "1.4.2";
1
+ declare const _default: "1.5.0";
2
2
  export default _default;
package/es/version.js CHANGED
@@ -1 +1 @@
1
- export default '1.4.2';
1
+ export default '1.5.0';
@@ -23,3 +23,5 @@ export type { CheckboxBaseProps, UseCheckbox, OnUpdateChecked, OnUpdateCheckedIm
23
23
  export { radioBaseProps, radioGroupInjectionKey, useRadio } from './radio';
24
24
  export type { OnUpdateValue, OnUpdateValueImpl, RadioGroupInjection, UseRadio, RadioBaseProps } from './radio';
25
25
  export { default as UBaseAccountOption } from './account-option';
26
+ export { default as InternalUText, internalTextProps } from './typography/src/text';
27
+ export type { InternalTextProps } from './typography/src/text';
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.UBaseAccountOption = exports.useRadio = exports.radioGroupInjectionKey = exports.radioBaseProps = exports.useCheckbox = exports.checkboxBaseProps = exports.checkboxGroupInjectionKey = exports.UxScrollbar = exports.UScrollbar = exports.UBaseSuffix = exports.UBaseClear = exports.UBaseSlotMachine = exports.UInternalSelection = exports.UBaseMenuMask = exports.UBaseWave = exports.UInternalSelectMenu = exports.UBaseSkeleton = exports.UBaseLoading = exports.UBaseFocusDetector = exports.UBaseIcon = exports.UBaseClose = exports.UFadeInExpandTransition = exports.UIconSwitchTransition = void 0;
6
+ exports.internalTextProps = exports.InternalUText = exports.UBaseAccountOption = exports.useRadio = exports.radioGroupInjectionKey = exports.radioBaseProps = exports.useCheckbox = exports.checkboxBaseProps = exports.checkboxGroupInjectionKey = exports.UxScrollbar = exports.UScrollbar = exports.UBaseSuffix = exports.UBaseClear = exports.UBaseSlotMachine = exports.UInternalSelection = exports.UBaseMenuMask = exports.UBaseWave = exports.UInternalSelectMenu = exports.UBaseSkeleton = exports.UBaseLoading = exports.UBaseFocusDetector = exports.UBaseIcon = exports.UBaseClose = exports.UFadeInExpandTransition = exports.UIconSwitchTransition = void 0;
7
7
  var icon_switch_transition_1 = require("./icon-switch-transition");
8
8
  Object.defineProperty(exports, "UIconSwitchTransition", { enumerable: true, get: function () { return __importDefault(icon_switch_transition_1).default; } });
9
9
  var fade_in_expand_transition_1 = require("./fade-in-expand-transition");
@@ -45,3 +45,6 @@ Object.defineProperty(exports, "radioGroupInjectionKey", { enumerable: true, get
45
45
  Object.defineProperty(exports, "useRadio", { enumerable: true, get: function () { return radio_1.useRadio; } });
46
46
  var account_option_1 = require("./account-option");
47
47
  Object.defineProperty(exports, "UBaseAccountOption", { enumerable: true, get: function () { return __importDefault(account_option_1).default; } });
48
+ var text_1 = require("./typography/src/text");
49
+ Object.defineProperty(exports, "InternalUText", { enumerable: true, get: function () { return __importDefault(text_1).default; } });
50
+ Object.defineProperty(exports, "internalTextProps", { enumerable: true, get: function () { return text_1.internalTextProps; } });
@@ -0,0 +1,2 @@
1
+ export { default as InternalUText, internalTextProps } from './src/text';
2
+ export type { InternalTextProps } from './src/text';
@@ -0,0 +1,9 @@
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.internalTextProps = exports.InternalUText = void 0;
7
+ var text_1 = require("./src/text");
8
+ Object.defineProperty(exports, "InternalUText", { enumerable: true, get: function () { return __importDefault(text_1).default; } });
9
+ Object.defineProperty(exports, "internalTextProps", { enumerable: true, get: function () { return text_1.internalTextProps; } });
@@ -0,0 +1,2 @@
1
+ declare const _default: import("css-render").CNode;
2
+ export default _default;
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ const cssr_1 = require("../../../../_utils/cssr");
7
+ // vars:
8
+ // --u-text-color
9
+ // --u-font-weight-strong
10
+ // --u-font-famliy-mono
11
+ // --u-code-border-radius
12
+ // --u-code-text-color
13
+ // --u-code-color
14
+ // --u-code-border
15
+ exports.default = (0, cssr_1.cB)('text', `
16
+ transition: color .3s var(--u-bezier);
17
+ color: var(--u-text-color);
18
+ margin: 0;
19
+ padding: 0;
20
+ `, [(0, cssr_1.cM)('strong', `
21
+ font-weight: var(--u-font-weight-strong);
22
+ `), (0, cssr_1.cM)('italic', {
23
+ fontStyle: 'italic'
24
+ }), (0, cssr_1.cM)('underline', {
25
+ textDecoration: 'underline'
26
+ }), (0, cssr_1.cM)('strikethrough', {
27
+ textDecoration: 'line-through'
28
+ }), (0, cssr_1.cM)('variant', `
29
+ font-family: var(--u-variant-font-family);
30
+ font-size: var(--u-variant-font-size);
31
+ font-weight: var(--u-variant-font-weight);
32
+ line-height: var(--u-variant-line-height);
33
+ letter-spacing: var(--u-variant-letter-spacing);
34
+ font-style: var(--u-variant-font-style);
35
+ `), (0, cssr_1.c)('code&', `
36
+ line-height: 1.4;
37
+ display: inline-block;
38
+ font-family: var(--u-font-famliy-mono);
39
+ transition:
40
+ color .3s var(--u-bezier),
41
+ border-color .3s var(--u-bezier),
42
+ background-color .3s var(--u-bezier);
43
+ box-sizing: border-box;
44
+ padding: .05em .35em 0 .35em;
45
+ border-radius: var(--u-code-border-radius);
46
+ font-size: .9em;
47
+ color: var(--u-code-text-color);
48
+ background-color: var(--u-code-color);
49
+ border: var(--u-code-border);
50
+ `), (0, cssr_1.c)('blockquote&', `
51
+ font-size: var(--u-font-size);
52
+ line-height: var(--u-line-height);
53
+ margin: 0;
54
+ margin-top: 12px;
55
+ margin-bottom: 12px;
56
+ box-sizing: border-box;
57
+ padding-left: 12px;
58
+ border-left: 4px solid var(--u-prefix-color);
59
+ color: var(--u-text-color);
60
+ transition:
61
+ color .3s var(--u-bezier),
62
+ border-color .3s var(--u-bezier);
63
+ `, [(0, cssr_1.c)('&:first-child', {
64
+ marginTop: 0
65
+ }), (0, cssr_1.c)('&:last-child', {
66
+ marginBottom: 0
67
+ }), (0, cssr_1.cM)('align-text', {
68
+ marginLeft: '-16px'
69
+ })]), (0, cssr_1.c)('a&', `
70
+ cursor: pointer;
71
+ transition:
72
+ color .3s var(--u-bezier),
73
+ text-decoration-color .3s var(--u-bezier);
74
+ text-decoration-color: var(--u-text-color);
75
+ color: var(--u-a-text-color);
76
+ `), (0, cssr_1.c)('p&', `
77
+ box-sizing: border-box;
78
+ transition: color .3s var(--u-bezier);
79
+ margin: var(--u-margin);
80
+ font-size: var(--u-font-size);
81
+ line-height: var(--u-line-height);
82
+ color: var(--u-text-color);
83
+ `, [(0, cssr_1.c)('&:first-child', 'margin-top: 0;'), (0, cssr_1.c)('&:last-child', 'margin-bottom: 0;')])]);