@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
@@ -0,0 +1,246 @@
1
+ import { type PropType, ExtractPublicPropTypes } from 'vue';
2
+ import { TypographyVariant } from './variants';
3
+ export declare const internalTextProps: {
4
+ readonly variant: {
5
+ readonly type: PropType<TypographyVariant>;
6
+ readonly default: undefined;
7
+ };
8
+ readonly tag: {
9
+ readonly type: PropType<keyof HTMLElementTagNameMap>;
10
+ readonly default: undefined;
11
+ };
12
+ readonly text: {
13
+ readonly type: StringConstructor;
14
+ readonly default: undefined;
15
+ };
16
+ readonly type: {
17
+ readonly type: PropType<"default" | "success" | "info" | "warning" | "error">;
18
+ readonly default: "default";
19
+ };
20
+ readonly strong: BooleanConstructor;
21
+ readonly italic: BooleanConstructor;
22
+ readonly underline: BooleanConstructor;
23
+ readonly strikethrough: BooleanConstructor;
24
+ readonly theme: PropType<import("../../../_mixins").Theme<"Typography", {
25
+ margin: string;
26
+ aTextColor: string;
27
+ blockquoteTextColor: string;
28
+ blockquotePrefixColor: string;
29
+ codeBorderRadius: string;
30
+ fontSize: string;
31
+ lineHeight: string;
32
+ textColor: string;
33
+ textColorPrimary: string;
34
+ textColorInfo: string;
35
+ textColorSuccess: string;
36
+ textColorWarning: string;
37
+ textColorError: string;
38
+ codeTextColor: string;
39
+ codeColor: string;
40
+ codeBorder: string;
41
+ }, any>>;
42
+ readonly themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Typography", {
43
+ margin: string;
44
+ aTextColor: string;
45
+ blockquoteTextColor: string;
46
+ blockquotePrefixColor: string;
47
+ codeBorderRadius: string;
48
+ fontSize: string;
49
+ lineHeight: string;
50
+ textColor: string;
51
+ textColorPrimary: string;
52
+ textColorInfo: string;
53
+ textColorSuccess: string;
54
+ textColorWarning: string;
55
+ textColorError: string;
56
+ codeTextColor: string;
57
+ codeColor: string;
58
+ codeBorder: string;
59
+ }, any>>>;
60
+ readonly builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Typography", {
61
+ margin: string;
62
+ aTextColor: string;
63
+ blockquoteTextColor: string;
64
+ blockquotePrefixColor: string;
65
+ codeBorderRadius: string;
66
+ fontSize: string;
67
+ lineHeight: string;
68
+ textColor: string;
69
+ textColorPrimary: string;
70
+ textColorInfo: string;
71
+ textColorSuccess: string;
72
+ textColorWarning: string;
73
+ textColorError: string;
74
+ codeTextColor: string;
75
+ codeColor: string;
76
+ codeBorder: string;
77
+ }, any>>>;
78
+ };
79
+ export type InternalTextProps = ExtractPublicPropTypes<typeof internalTextProps>;
80
+ declare const _default: import("vue").DefineComponent<{
81
+ readonly variant: {
82
+ readonly type: PropType<TypographyVariant>;
83
+ readonly default: undefined;
84
+ };
85
+ readonly tag: {
86
+ readonly type: PropType<keyof HTMLElementTagNameMap>;
87
+ readonly default: undefined;
88
+ };
89
+ readonly text: {
90
+ readonly type: StringConstructor;
91
+ readonly default: undefined;
92
+ };
93
+ readonly type: {
94
+ readonly type: PropType<"default" | "success" | "info" | "warning" | "error">;
95
+ readonly default: "default";
96
+ };
97
+ readonly strong: BooleanConstructor;
98
+ readonly italic: BooleanConstructor;
99
+ readonly underline: BooleanConstructor;
100
+ readonly strikethrough: BooleanConstructor;
101
+ readonly theme: PropType<import("../../../_mixins").Theme<"Typography", {
102
+ margin: string;
103
+ aTextColor: string;
104
+ blockquoteTextColor: string;
105
+ blockquotePrefixColor: string;
106
+ codeBorderRadius: string;
107
+ fontSize: string;
108
+ lineHeight: string;
109
+ textColor: string;
110
+ textColorPrimary: string;
111
+ textColorInfo: string;
112
+ textColorSuccess: string;
113
+ textColorWarning: string;
114
+ textColorError: string;
115
+ codeTextColor: string;
116
+ codeColor: string;
117
+ codeBorder: string;
118
+ }, any>>;
119
+ readonly themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Typography", {
120
+ margin: string;
121
+ aTextColor: string;
122
+ blockquoteTextColor: string;
123
+ blockquotePrefixColor: string;
124
+ codeBorderRadius: string;
125
+ fontSize: string;
126
+ lineHeight: string;
127
+ textColor: string;
128
+ textColorPrimary: string;
129
+ textColorInfo: string;
130
+ textColorSuccess: string;
131
+ textColorWarning: string;
132
+ textColorError: string;
133
+ codeTextColor: string;
134
+ codeColor: string;
135
+ codeBorder: string;
136
+ }, any>>>;
137
+ readonly builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Typography", {
138
+ margin: string;
139
+ aTextColor: string;
140
+ blockquoteTextColor: string;
141
+ blockquotePrefixColor: string;
142
+ codeBorderRadius: string;
143
+ fontSize: string;
144
+ lineHeight: string;
145
+ textColor: string;
146
+ textColorPrimary: string;
147
+ textColorInfo: string;
148
+ textColorSuccess: string;
149
+ textColorWarning: string;
150
+ textColorError: string;
151
+ codeTextColor: string;
152
+ codeColor: string;
153
+ codeBorder: string;
154
+ }, any>>>;
155
+ }, {
156
+ mergedClsPrefix: import("vue").Ref<string>;
157
+ tagToRender: keyof HTMLElementTagNameMap;
158
+ cssVars: import("vue").ComputedRef<Record<string, string>> | undefined;
159
+ themeClass: import("vue").Ref<string> | undefined;
160
+ onRender: (() => void) | undefined;
161
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
162
+ readonly variant: {
163
+ readonly type: PropType<TypographyVariant>;
164
+ readonly default: undefined;
165
+ };
166
+ readonly tag: {
167
+ readonly type: PropType<keyof HTMLElementTagNameMap>;
168
+ readonly default: undefined;
169
+ };
170
+ readonly text: {
171
+ readonly type: StringConstructor;
172
+ readonly default: undefined;
173
+ };
174
+ readonly type: {
175
+ readonly type: PropType<"default" | "success" | "info" | "warning" | "error">;
176
+ readonly default: "default";
177
+ };
178
+ readonly strong: BooleanConstructor;
179
+ readonly italic: BooleanConstructor;
180
+ readonly underline: BooleanConstructor;
181
+ readonly strikethrough: BooleanConstructor;
182
+ readonly theme: PropType<import("../../../_mixins").Theme<"Typography", {
183
+ margin: string;
184
+ aTextColor: string;
185
+ blockquoteTextColor: string;
186
+ blockquotePrefixColor: string;
187
+ codeBorderRadius: string;
188
+ fontSize: string;
189
+ lineHeight: string;
190
+ textColor: string;
191
+ textColorPrimary: string;
192
+ textColorInfo: string;
193
+ textColorSuccess: string;
194
+ textColorWarning: string;
195
+ textColorError: string;
196
+ codeTextColor: string;
197
+ codeColor: string;
198
+ codeBorder: string;
199
+ }, any>>;
200
+ readonly themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Typography", {
201
+ margin: string;
202
+ aTextColor: string;
203
+ blockquoteTextColor: string;
204
+ blockquotePrefixColor: string;
205
+ codeBorderRadius: string;
206
+ fontSize: string;
207
+ lineHeight: string;
208
+ textColor: string;
209
+ textColorPrimary: string;
210
+ textColorInfo: string;
211
+ textColorSuccess: string;
212
+ textColorWarning: string;
213
+ textColorError: string;
214
+ codeTextColor: string;
215
+ codeColor: string;
216
+ codeBorder: string;
217
+ }, any>>>;
218
+ readonly builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Typography", {
219
+ margin: string;
220
+ aTextColor: string;
221
+ blockquoteTextColor: string;
222
+ blockquotePrefixColor: string;
223
+ codeBorderRadius: string;
224
+ fontSize: string;
225
+ lineHeight: string;
226
+ textColor: string;
227
+ textColorPrimary: string;
228
+ textColorInfo: string;
229
+ textColorSuccess: string;
230
+ textColorWarning: string;
231
+ textColorError: string;
232
+ codeTextColor: string;
233
+ codeColor: string;
234
+ codeBorder: string;
235
+ }, any>>>;
236
+ }>>, {
237
+ readonly type: "default" | "info" | "success" | "warning" | "error";
238
+ readonly tag: keyof HTMLElementTagNameMap;
239
+ readonly strong: boolean;
240
+ readonly text: string;
241
+ readonly italic: boolean;
242
+ readonly underline: boolean;
243
+ readonly strikethrough: boolean;
244
+ readonly variant: TypographyVariant;
245
+ }, {}>;
246
+ export default _default;
@@ -0,0 +1,85 @@
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 = void 0;
7
+ const vue_1 = require("vue");
8
+ const styles_1 = require("../styles");
9
+ const text_cssr_1 = __importDefault(require("./styles/text.cssr"));
10
+ const variants_1 = require("./variants");
11
+ const _mixins_1 = require("../../../_mixins");
12
+ const cssr_1 = require("../../../_utils/cssr");
13
+ exports.internalTextProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { variant: {
14
+ type: String,
15
+ default: undefined
16
+ }, tag: {
17
+ type: String,
18
+ default: undefined
19
+ }, text: {
20
+ type: String,
21
+ default: undefined
22
+ }, type: {
23
+ type: String,
24
+ default: 'default'
25
+ }, strong: Boolean, italic: Boolean, underline: Boolean, strikethrough: Boolean });
26
+ exports.default = (0, vue_1.defineComponent)({
27
+ name: 'InternalUText',
28
+ props: exports.internalTextProps,
29
+ setup(props) {
30
+ const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
31
+ const themeRef = (0, _mixins_1.useTheme)('Typography', '-text', text_cssr_1.default, styles_1.typographyLight, props, mergedClsPrefixRef);
32
+ const cssVarsRef = (0, vue_1.computed)(() => {
33
+ const { variant } = props;
34
+ const textColorKey = props.type === 'default'
35
+ ? 'textColor'
36
+ : (0, cssr_1.createKey)('textColor', props.type);
37
+ const { common: { fontWeightStrong, fontFamilyMono, cubicBezierEaseInOut, fontFamilyWixMadeforDisplay }, self: { aTextColor, codeTextColor, codeBorderRadius, codeColor, codeBorder, [textColorKey]: textColor, fontSize, lineHeight, margin, blockquotePrefixColor } } = themeRef.value;
38
+ const baseVars = {
39
+ '--u-bezier': cubicBezierEaseInOut,
40
+ '--u-a-text-color': aTextColor,
41
+ '--u-text-color': textColor,
42
+ '--u-font-weight-strong': fontWeightStrong,
43
+ '--u-font-famliy-mono': fontFamilyMono,
44
+ '--u-code-border-radius': codeBorderRadius,
45
+ '--u-code-text-color': codeTextColor,
46
+ '--u-code-color': codeColor,
47
+ '--u-code-border': codeBorder,
48
+ '--u-font-size': fontSize,
49
+ '--u-line-height': lineHeight,
50
+ '--u-margin': margin,
51
+ '--u-prefix-color': blockquotePrefixColor
52
+ };
53
+ return (0, variants_1.getVariantCssVars)(variant, baseVars, fontFamilyWixMadeforDisplay);
54
+ });
55
+ const themeClassHandle = inlineThemeDisabled
56
+ ? (0, _mixins_1.useThemeClass)('text', (0, vue_1.computed)(() => `${(props === null || props === void 0 ? void 0 : props.variant) || ''}${(props === null || props === void 0 ? void 0 : props.tag) || ''}`), cssVarsRef, props)
57
+ : undefined;
58
+ const tagToRender = props.tag || (props.variant && (0, variants_1.getVariantTag)(props.variant)) || 'span';
59
+ return {
60
+ mergedClsPrefix: mergedClsPrefixRef,
61
+ tagToRender,
62
+ cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
63
+ themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
64
+ onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
65
+ };
66
+ },
67
+ render() {
68
+ var _a, _b, _c;
69
+ const { mergedClsPrefix } = this;
70
+ (_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
71
+ const textClass = [
72
+ `${mergedClsPrefix}-text`,
73
+ this.themeClass,
74
+ {
75
+ [`${mergedClsPrefix}-text--variant`]: this.variant,
76
+ [`${mergedClsPrefix}-text--strong`]: this.strong,
77
+ [`${mergedClsPrefix}-text--italic`]: this.italic,
78
+ [`${mergedClsPrefix}-text--underline`]: this.underline,
79
+ [`${mergedClsPrefix}-text--strikethrough`]: this.strikethrough
80
+ }
81
+ ];
82
+ const children = this.text || ((_c = (_b = this.$slots).default) === null || _c === void 0 ? void 0 : _c.call(_b));
83
+ return (0, vue_1.h)(this.tagToRender, { class: textClass, style: this.cssVars }, children);
84
+ }
85
+ });
@@ -0,0 +1,13 @@
1
+ export type TypographyVariant = 'display-l' | 'display-s' | 'heading-l-semi-bold' | 'heading-l-bold' | 'heading-m-semi-bold' | 'heading-m-bold' | 'heading-s-semi-bold' | 'heading-s-bold' | 'title-l-medium' | 'title-l-semi-bold' | 'title-l-bold' | 'title-m-medium' | 'title-m-semi-bold' | 'title-m-bold' | 'title-s-medium' | 'title-s-semi-bold' | 'title-s-bold' | 'body-l-medium' | 'body-l-semi-bold' | 'body-l-bold' | 'body-m-medium' | 'body-m-semi-bold' | 'body-m-bold' | 'body-s-medium' | 'body-s-semi-bold' | 'body-s-bold';
2
+ export interface TypographyVariantConfig {
3
+ fontFamily: string;
4
+ fontSize: string;
5
+ fontWeight: string;
6
+ fontStyle: string;
7
+ lineHeight: string;
8
+ letterSpacing: string;
9
+ tag: keyof HTMLElementTagNameMap;
10
+ }
11
+ export declare function getVariantCssVars(variant: TypographyVariant | undefined, baseVars: Record<string, string>, fontFamilyVariant: string): Record<string, string>;
12
+ export declare function getVariantTag(variant: TypographyVariant): keyof HTMLElementTagNameMap;
13
+ export declare const variantToCssVars: Record<TypographyVariant, TypographyVariantConfig>;
@@ -0,0 +1,137 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.variantToCssVars = void 0;
4
+ exports.getVariantCssVars = getVariantCssVars;
5
+ exports.getVariantTag = getVariantTag;
6
+ const fontFamily = 'var(--u-font-famliy-variant)';
7
+ const baseStyles = {
8
+ display: {
9
+ l: {
10
+ fontSize: '42px',
11
+ lineHeight: '48px',
12
+ letterSpacing: '-0.014em',
13
+ tag: 'h1'
14
+ },
15
+ s: {
16
+ fontSize: '36px',
17
+ lineHeight: '44px',
18
+ letterSpacing: '-0.013em',
19
+ tag: 'h1'
20
+ }
21
+ },
22
+ heading: {
23
+ l: {
24
+ fontSize: '32px',
25
+ lineHeight: '40px',
26
+ letterSpacing: '-0.01em',
27
+ tag: 'h2'
28
+ },
29
+ m: {
30
+ fontSize: '28px',
31
+ lineHeight: '36px',
32
+ letterSpacing: '-0.009em',
33
+ tag: 'h2'
34
+ },
35
+ s: {
36
+ fontSize: '24px',
37
+ lineHeight: '30px',
38
+ letterSpacing: '-0.01em',
39
+ tag: 'h2'
40
+ }
41
+ },
42
+ title: {
43
+ l: {
44
+ fontSize: '22px',
45
+ lineHeight: '32px',
46
+ letterSpacing: '-0.01em',
47
+ tag: 'h3'
48
+ },
49
+ m: {
50
+ fontSize: '20px',
51
+ lineHeight: '30px',
52
+ letterSpacing: '-0.009em',
53
+ tag: 'h3'
54
+ },
55
+ s: { fontSize: '18px', lineHeight: '28px', letterSpacing: '0', tag: 'h3' }
56
+ },
57
+ body: {
58
+ l: {
59
+ fontSize: '16px',
60
+ lineHeight: '24px',
61
+ letterSpacing: '0.004em',
62
+ tag: 'p'
63
+ },
64
+ m: {
65
+ fontSize: '14px',
66
+ lineHeight: '21px',
67
+ letterSpacing: '0.006em',
68
+ tag: 'p'
69
+ },
70
+ s: {
71
+ fontSize: '12px',
72
+ lineHeight: '16px',
73
+ letterSpacing: '0.008em',
74
+ tag: 'p'
75
+ }
76
+ }
77
+ };
78
+ const fontWeights = {
79
+ medium: { weight: '500', style: 'medium' },
80
+ 'semi-bold': { weight: '600', style: 'semibold' },
81
+ bold: { weight: '700', style: 'bold' }
82
+ };
83
+ function createVariant(category, size, weight) {
84
+ const base = baseStyles[category][size];
85
+ const { weight: fontWeight, style: fontStyle } = fontWeights[weight];
86
+ return {
87
+ fontFamily,
88
+ fontSize: base.fontSize,
89
+ fontWeight,
90
+ fontStyle,
91
+ lineHeight: base.lineHeight,
92
+ letterSpacing: base.letterSpacing,
93
+ tag: base.tag
94
+ };
95
+ }
96
+ function getVariantCssVars(variant, baseVars, fontFamilyVariant) {
97
+ if (!variant || !exports.variantToCssVars[variant]) {
98
+ return baseVars;
99
+ }
100
+ const variantStyles = exports.variantToCssVars[variant];
101
+ return Object.assign(Object.assign({}, baseVars), { '--u-font-famliy-variant': fontFamilyVariant, '--u-variant-font-size': variantStyles.fontSize, '--u-variant-font-weight': variantStyles.fontWeight, '--u-variant-line-height': variantStyles.lineHeight, '--u-variant-font-family': variantStyles.fontFamily, '--u-variant-font-style': variantStyles.fontStyle, '--u-variant-letter-spacing': variantStyles.letterSpacing });
102
+ }
103
+ function getVariantTag(variant) {
104
+ return exports.variantToCssVars[variant].tag;
105
+ }
106
+ exports.variantToCssVars = {
107
+ // Display variants
108
+ 'display-l': createVariant('display', 'l', 'bold'),
109
+ 'display-s': createVariant('display', 's', 'bold'),
110
+ // Heading variants
111
+ 'heading-l-semi-bold': createVariant('heading', 'l', 'semi-bold'),
112
+ 'heading-l-bold': createVariant('heading', 'l', 'bold'),
113
+ 'heading-m-semi-bold': createVariant('heading', 'm', 'semi-bold'),
114
+ 'heading-m-bold': createVariant('heading', 'm', 'bold'),
115
+ 'heading-s-semi-bold': createVariant('heading', 's', 'semi-bold'),
116
+ 'heading-s-bold': createVariant('heading', 's', 'bold'),
117
+ // Title variants
118
+ 'title-l-medium': createVariant('title', 'l', 'medium'),
119
+ 'title-l-semi-bold': createVariant('title', 'l', 'semi-bold'),
120
+ 'title-l-bold': createVariant('title', 'l', 'bold'),
121
+ 'title-m-medium': createVariant('title', 'm', 'medium'),
122
+ 'title-m-semi-bold': createVariant('title', 'm', 'semi-bold'),
123
+ 'title-m-bold': createVariant('title', 'm', 'bold'),
124
+ 'title-s-medium': createVariant('title', 's', 'medium'),
125
+ 'title-s-semi-bold': createVariant('title', 's', 'semi-bold'),
126
+ 'title-s-bold': createVariant('title', 's', 'bold'),
127
+ // Body variants
128
+ 'body-l-medium': createVariant('body', 'l', 'medium'),
129
+ 'body-l-semi-bold': createVariant('body', 'l', 'semi-bold'),
130
+ 'body-l-bold': createVariant('body', 'l', 'bold'),
131
+ 'body-m-medium': createVariant('body', 'm', 'medium'),
132
+ 'body-m-semi-bold': createVariant('body', 'm', 'semi-bold'),
133
+ 'body-m-bold': createVariant('body', 'm', 'bold'),
134
+ 'body-s-medium': createVariant('body', 's', 'medium'),
135
+ 'body-s-semi-bold': createVariant('body', 's', 'semi-bold'),
136
+ 'body-s-bold': createVariant('body', 's', 'bold')
137
+ };
@@ -0,0 +1,3 @@
1
+ import type { TypographyTheme } from './light';
2
+ declare const typographyDark: TypographyTheme;
3
+ export default typographyDark;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const styles_1 = require("../../../styles");
4
+ const light_1 = require("./light");
5
+ const typographyDark = {
6
+ name: 'Typography',
7
+ common: styles_1.commonDark,
8
+ self: light_1.self
9
+ };
10
+ exports.default = typographyDark;
@@ -0,0 +1,3 @@
1
+ export { default as typographyDark } from './dark';
2
+ export { default as typographyLight } from './light';
3
+ export type { TypographyThemeVars, TypographyTheme } 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.typographyLight = exports.typographyDark = void 0;
7
+ var dark_1 = require("./dark");
8
+ Object.defineProperty(exports, "typographyDark", { enumerable: true, get: function () { return __importDefault(dark_1).default; } });
9
+ var light_1 = require("./light");
10
+ Object.defineProperty(exports, "typographyLight", { enumerable: true, get: function () { return __importDefault(light_1).default; } });
@@ -0,0 +1,24 @@
1
+ import { Theme } from '../../../_mixins';
2
+ import { ThemeCommonVars } from '../../../config-provider';
3
+ export declare const self: (vars: ThemeCommonVars) => {
4
+ margin: string;
5
+ aTextColor: string;
6
+ blockquoteTextColor: string;
7
+ blockquotePrefixColor: string;
8
+ codeBorderRadius: string;
9
+ fontSize: string;
10
+ lineHeight: string;
11
+ textColor: string;
12
+ textColorPrimary: string;
13
+ textColorInfo: string;
14
+ textColorSuccess: string;
15
+ textColorWarning: string;
16
+ textColorError: string;
17
+ codeTextColor: string;
18
+ codeColor: string;
19
+ codeBorder: string;
20
+ };
21
+ export type TypographyThemeVars = ReturnType<typeof self>;
22
+ declare const typographyLight: Theme<'Typography', TypographyThemeVars>;
23
+ export default typographyLight;
24
+ export type TypographyTheme = typeof typographyLight;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.self = void 0;
4
+ const styles_1 = require("../../../styles");
5
+ const self = (vars) => {
6
+ const { borderRadiusSmall, brandPrimary500, elementsQuaternary, textPrimary, brandQuaternary500, staticRed, staticOrange, staticGreen, elementsTertiary, fontBodyMedium, lineHeightBodyMedium, codeBorder } = vars;
7
+ return {
8
+ margin: '16px 0 16px 0',
9
+ aTextColor: brandPrimary500,
10
+ blockquoteTextColor: textPrimary,
11
+ blockquotePrefixColor: elementsQuaternary,
12
+ codeBorderRadius: borderRadiusSmall,
13
+ fontSize: fontBodyMedium,
14
+ lineHeight: lineHeightBodyMedium,
15
+ textColor: textPrimary,
16
+ textColorPrimary: brandPrimary500,
17
+ textColorInfo: brandQuaternary500,
18
+ textColorSuccess: staticGreen,
19
+ textColorWarning: staticOrange,
20
+ textColorError: staticRed,
21
+ codeTextColor: textPrimary,
22
+ codeColor: elementsTertiary,
23
+ codeBorder
24
+ };
25
+ };
26
+ exports.self = self;
27
+ const typographyLight = {
28
+ name: 'Typography',
29
+ common: styles_1.commonLight,
30
+ self: exports.self
31
+ };
32
+ exports.default = typographyLight;
@@ -1,6 +1,7 @@
1
1
  declare const _default: {
2
2
  fontFamily: string;
3
3
  fontFamilyMono: string;
4
+ fontFamilyWixMadeforDisplay: string;
4
5
  cubicBezierEaseInOut: string;
5
6
  cubicBezierEaseOut: string;
6
7
  cubicBezierEaseIn: string;
@@ -49,5 +50,6 @@ declare const _default: {
49
50
  closeLarge: string;
50
51
  closeHuge: string;
51
52
  closeBorderRadius: string;
53
+ codeBorder: string;
52
54
  };
53
55
  export default _default;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = {
4
4
  fontFamily: 'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
5
5
  fontFamilyMono: 'v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace',
6
+ fontFamilyWixMadeforDisplay: '"Wix Madefor Display", v-sans, system-ui, sans-serif',
6
7
  cubicBezierEaseInOut: 'cubic-bezier(.4, 0, .2, 1)',
7
8
  cubicBezierEaseOut: 'cubic-bezier(0, 0, .2, 1)',
8
9
  cubicBezierEaseIn: 'cubic-bezier(.4, 0, 1, 1)',
@@ -50,5 +51,6 @@ exports.default = {
50
51
  closeMedium: '32px',
51
52
  closeLarge: '56px',
52
53
  closeHuge: '96px',
53
- closeBorderRadius: '100%'
54
+ closeBorderRadius: '100%',
55
+ codeBorder: '1px solid #0000'
54
56
  };
@@ -60,6 +60,7 @@ declare const derived: {
60
60
  shadowDepth: string;
61
61
  fontFamily: string;
62
62
  fontFamilyMono: string;
63
+ fontFamilyWixMadeforDisplay: string;
63
64
  cubicBezierEaseInOut: string;
64
65
  cubicBezierEaseOut: string;
65
66
  cubicBezierEaseIn: string;
@@ -108,6 +109,7 @@ declare const derived: {
108
109
  closeLarge: string;
109
110
  closeHuge: string;
110
111
  closeBorderRadius: string;
112
+ codeBorder: string;
111
113
  name: "common";
112
114
  };
113
115
  export default derived;
@@ -0,0 +1,4 @@
1
+ export { default as UActionCard } from './src/ActionCard';
2
+ export type { ActionCardProps } from './src/ActionCard';
3
+ export { actionCardLight, actionCardDark } from './styles';
4
+ export type { ActionCardTheme, ActionCardThemeVars } from './styles';
@@ -0,0 +1,11 @@
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.actionCardDark = exports.actionCardLight = exports.UActionCard = void 0;
7
+ var ActionCard_1 = require("./src/ActionCard");
8
+ Object.defineProperty(exports, "UActionCard", { enumerable: true, get: function () { return __importDefault(ActionCard_1).default; } });
9
+ var styles_1 = require("./styles");
10
+ Object.defineProperty(exports, "actionCardLight", { enumerable: true, get: function () { return styles_1.actionCardLight; } });
11
+ Object.defineProperty(exports, "actionCardDark", { enumerable: true, get: function () { return styles_1.actionCardDark; } });