@telefonica/mistica 12.11.1 → 12.13.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 (337) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/avatar.css-mistica.js +2 -2
  3. package/dist/avatar.d.ts +3 -2
  4. package/dist/avatar.js +72 -17
  5. package/dist/avatar.js.flow +2 -1
  6. package/dist/badge.css-mistica.js +4 -4
  7. package/dist/badge.d.ts +2 -0
  8. package/dist/badge.js +49 -8
  9. package/dist/badge.js.flow +2 -0
  10. package/dist/boxed.js +5 -5
  11. package/dist/button-group.css-mistica.js +1 -1
  12. package/dist/button-group.js +7 -7
  13. package/dist/button-layout.css-mistica.js +12 -12
  14. package/dist/button-layout.js +1 -1
  15. package/dist/button.css-mistica.js +26 -26
  16. package/dist/button.js +127 -77
  17. package/dist/callout.css-mistica.js +2 -2
  18. package/dist/callout.d.ts +2 -1
  19. package/dist/callout.js +68 -16
  20. package/dist/callout.js.flow +2 -1
  21. package/dist/card.css-mistica.js +5 -5
  22. package/dist/card.js +47 -41
  23. package/dist/carousel.css-mistica.js +23 -25
  24. package/dist/carousel.css.d.ts +1 -0
  25. package/dist/carousel.css.js.flow +4 -0
  26. package/dist/carousel.d.ts +7 -1
  27. package/dist/carousel.js +237 -209
  28. package/dist/carousel.js.flow +9 -1
  29. package/dist/checkbox.css-mistica.js +6 -6
  30. package/dist/checkbox.js +1 -1
  31. package/dist/chip.css-mistica.js +2 -2
  32. package/dist/chip.d.ts +7 -11
  33. package/dist/chip.js +65 -22
  34. package/dist/chip.js.flow +11 -6
  35. package/dist/circle.css-mistica.js +1 -1
  36. package/dist/credit-card-number-field.css-mistica.js +3 -3
  37. package/dist/cvv-field.css-mistica.js +1 -1
  38. package/dist/date-time-picker.js +2 -2
  39. package/dist/desktop-container-type-context.js +14 -4
  40. package/dist/dialog.css-mistica.js +6 -6
  41. package/dist/dialog.d.ts +2 -10
  42. package/dist/dialog.js +1 -0
  43. package/dist/dialog.js.flow +6 -4
  44. package/dist/double-field.css-mistica.js +5 -4
  45. package/dist/empty-state-card.css-mistica.js +1 -1
  46. package/dist/empty-state.css-mistica.js +2 -2
  47. package/dist/empty-state.js +5 -5
  48. package/dist/fade-in.d.ts +2 -0
  49. package/dist/fade-in.js +59 -6
  50. package/dist/fade-in.js.flow +2 -0
  51. package/dist/feedback.css-mistica.js +1 -1
  52. package/dist/feedback.js +130 -115
  53. package/dist/fixed-footer-layout.css-mistica.js +36 -0
  54. package/dist/fixed-footer-layout.css.d.ts +9 -0
  55. package/dist/fixed-footer-layout.css.js.flow +17 -0
  56. package/dist/fixed-footer-layout.css.ts.vanilla.js +11 -0
  57. package/dist/fixed-footer-layout.js +35 -84
  58. package/dist/header.js +99 -129
  59. package/dist/highlighted-card.css-mistica.js +5 -5
  60. package/dist/highlighted-card.d.ts +1 -1
  61. package/dist/highlighted-card.js +20 -15
  62. package/dist/highlighted-card.js.flow +1 -1
  63. package/dist/icon-button.css-mistica.js +13 -0
  64. package/dist/icon-button.css.d.ts +1 -0
  65. package/dist/icon-button.css.js.flow +3 -0
  66. package/dist/icon-button.css.ts.vanilla.js +11 -0
  67. package/dist/icon-button.d.ts +2 -1
  68. package/dist/icon-button.js +51 -28
  69. package/dist/icon-button.js.flow +2 -1
  70. package/dist/icons/icon-error.css-mistica.js +20 -0
  71. package/dist/icons/icon-error.css.d.ts +2 -0
  72. package/dist/icons/icon-error.css.js.flow +4 -0
  73. package/dist/icons/icon-error.css.ts.vanilla.js +11 -0
  74. package/dist/icons/icon-error.js +22 -33
  75. package/dist/icons/icon-info.js +16 -28
  76. package/dist/icons/icon-success-vivo.js +10 -20
  77. package/dist/icons/icon-success.js +28 -44
  78. package/dist/image.css-mistica.js +3 -3
  79. package/dist/index.d.ts +2 -0
  80. package/dist/index.js +8 -0
  81. package/dist/index.js.flow +2 -0
  82. package/dist/list.css-mistica.js +7 -7
  83. package/dist/list.js +112 -71
  84. package/dist/loading-bar.css-mistica.js +6 -6
  85. package/dist/loading-bar.d.ts +2 -0
  86. package/dist/loading-bar.js +60 -6
  87. package/dist/loading-bar.js.flow +5 -1
  88. package/dist/maybe-dismissable.css-mistica.js +24 -0
  89. package/dist/maybe-dismissable.css.d.ts +3 -0
  90. package/dist/maybe-dismissable.css.js.flow +5 -0
  91. package/dist/maybe-dismissable.css.ts.vanilla.js +11 -0
  92. package/dist/maybe-dismissable.js +16 -51
  93. package/dist/media-queries.css-mistica.js +37 -5
  94. package/dist/menu.css-mistica.js +34 -0
  95. package/dist/menu.css.d.ts +11 -0
  96. package/dist/menu.css.js.flow +19 -0
  97. package/dist/menu.css.ts.vanilla.js +11 -0
  98. package/dist/menu.d.ts +2 -0
  99. package/dist/menu.js +53 -99
  100. package/dist/menu.js.flow +2 -0
  101. package/dist/navigation-bar.css-mistica.js +79 -0
  102. package/dist/navigation-bar.css.d.ts +17 -0
  103. package/dist/navigation-bar.css.js.flow +26 -0
  104. package/dist/navigation-bar.css.ts.vanilla.js +11 -0
  105. package/dist/navigation-bar.js +206 -334
  106. package/dist/navigation-breadcrumbs.css-mistica.js +27 -0
  107. package/dist/navigation-breadcrumbs.css.d.ts +5 -0
  108. package/dist/navigation-breadcrumbs.css.js.flow +7 -0
  109. package/dist/navigation-breadcrumbs.css.ts.vanilla.js +11 -0
  110. package/dist/navigation-breadcrumbs.js +20 -38
  111. package/dist/overlay.d.ts +2 -0
  112. package/dist/overlay.js +37 -11
  113. package/dist/overlay.js.flow +2 -0
  114. package/dist/package-version.js +1 -1
  115. package/dist/password-field.css-mistica.js +13 -0
  116. package/dist/password-field.css.d.ts +1 -0
  117. package/dist/password-field.css.js.flow +3 -0
  118. package/dist/password-field.css.ts.vanilla.js +11 -0
  119. package/dist/password-field.js +39 -55
  120. package/dist/popover.css-mistica.js +51 -0
  121. package/dist/popover.css.d.ts +12 -0
  122. package/dist/popover.css.js.flow +14 -0
  123. package/dist/popover.css.ts.vanilla.js +11 -0
  124. package/dist/popover.d.ts +2 -1
  125. package/dist/popover.js +97 -118
  126. package/dist/popover.js.flow +2 -1
  127. package/dist/progress-bar.css-mistica.js +3 -3
  128. package/dist/progress-bar.d.ts +2 -0
  129. package/dist/progress-bar.js +60 -7
  130. package/dist/progress-bar.js.flow +2 -0
  131. package/dist/radio-button.css-mistica.js +39 -0
  132. package/dist/radio-button.css.d.ts +6 -0
  133. package/dist/radio-button.css.js.flow +8 -0
  134. package/dist/radio-button.css.ts.vanilla.js +11 -0
  135. package/dist/radio-button.d.ts +1 -0
  136. package/dist/radio-button.js +81 -125
  137. package/dist/radio-button.js.flow +1 -0
  138. package/dist/responsive-layout.css-mistica.js +7 -4
  139. package/dist/responsive-layout.css.d.ts +1 -0
  140. package/dist/responsive-layout.css.js.flow +1 -0
  141. package/dist/responsive-layout.d.ts +2 -0
  142. package/dist/responsive-layout.js +19 -11
  143. package/dist/responsive-layout.js.flow +2 -0
  144. package/dist/screen-reader-only.css-mistica.js +2 -2
  145. package/dist/select.css-mistica.js +60 -0
  146. package/dist/select.css.d.ts +16 -0
  147. package/dist/select.css.js.flow +30 -0
  148. package/dist/select.css.ts.vanilla.js +11 -0
  149. package/dist/select.js +150 -272
  150. package/dist/skeleton-base.js +13 -32
  151. package/dist/skeletons.css-mistica.js +1 -1
  152. package/dist/skeletons.js +63 -42
  153. package/dist/skins/skin-contract.css.js.flow +1 -0
  154. package/dist/snackbar.css-mistica.js +4 -4
  155. package/dist/snackbar.d.ts +2 -0
  156. package/dist/snackbar.js +70 -23
  157. package/dist/snackbar.js.flow +2 -0
  158. package/dist/spinner.css-mistica.js +2 -2
  159. package/dist/spinner.js +14 -11
  160. package/dist/sprinkles.css-mistica.js +217 -479
  161. package/dist/sprinkles.css.d.ts +0 -25
  162. package/dist/stepper.css-mistica.js +7 -7
  163. package/dist/stepper.d.ts +2 -0
  164. package/dist/stepper.js +52 -11
  165. package/dist/stepper.js.flow +2 -0
  166. package/dist/switch-component.css-mistica.js +54 -0
  167. package/dist/switch-component.css.d.ts +14 -0
  168. package/dist/switch-component.css.js.flow +43 -0
  169. package/dist/switch-component.css.ts.vanilla.js +11 -0
  170. package/dist/switch-component.js +35 -96
  171. package/dist/tabs.css-mistica.js +6 -6
  172. package/dist/tabs.js +16 -15
  173. package/dist/tag.css-mistica.js +2 -2
  174. package/dist/tag.js +5 -5
  175. package/dist/text-field-base.css-mistica.js +63 -0
  176. package/dist/text-field-base.css.d.ts +17 -0
  177. package/dist/text-field-base.css.js.flow +19 -0
  178. package/dist/text-field-base.css.ts.vanilla.js +11 -0
  179. package/dist/text-field-base.js +120 -314
  180. package/dist/text-field-components.css-mistica.js +69 -0
  181. package/dist/text-field-components.css.d.ts +18 -0
  182. package/dist/text-field-components.css.js.flow +20 -0
  183. package/dist/text-field-components.css.ts.vanilla.js +11 -0
  184. package/dist/text-field-components.d.ts +0 -4
  185. package/dist/text-field-components.js +46 -159
  186. package/dist/text-field-components.js.flow +0 -4
  187. package/dist/text-link.css-mistica.js +3 -3
  188. package/dist/text.js +159 -92
  189. package/dist/theme-context-provider.js +1 -1
  190. package/dist/title.js +44 -12
  191. package/dist/tooltip.css-mistica.js +7 -7
  192. package/dist/tooltip.d.ts +2 -0
  193. package/dist/tooltip.js +62 -36
  194. package/dist/tooltip.js.flow +2 -0
  195. package/dist/touchable.css-mistica.js +3 -3
  196. package/dist/touchable.js +10 -10
  197. package/dist/utils/animation.d.ts +0 -6
  198. package/dist/utils/animation.js +18 -55
  199. package/dist/utils/animation.js.flow +0 -8
  200. package/dist/utils/aspect-ratio-support.css-mistica.js +29 -0
  201. package/dist/utils/aspect-ratio-support.css.d.ts +6 -0
  202. package/dist/utils/aspect-ratio-support.css.js.flow +11 -0
  203. package/dist/utils/aspect-ratio-support.css.ts.vanilla.js +11 -0
  204. package/dist/utils/aspect-ratio-support.js +37 -56
  205. package/dist/utils/color.d.ts +1 -1
  206. package/dist/utils/color.js.flow +1 -1
  207. package/dist/utils/dom.d.ts +1 -1
  208. package/dist/utils/dom.js +7 -5
  209. package/dist/utils/dom.js.flow +2 -1
  210. package/dist/video.css-mistica.js +2 -2
  211. package/dist-es/avatar.css-mistica.js +2 -2
  212. package/dist-es/avatar.js +77 -22
  213. package/dist-es/badge.css-mistica.js +2 -2
  214. package/dist-es/badge.js +56 -15
  215. package/dist-es/boxed.js +5 -5
  216. package/dist-es/button-group.css-mistica.js +1 -1
  217. package/dist-es/button-group.js +10 -10
  218. package/dist-es/button-layout.css-mistica.js +7 -7
  219. package/dist-es/button-layout.js +4 -4
  220. package/dist-es/button.css-mistica.js +9 -9
  221. package/dist-es/button.js +152 -102
  222. package/dist-es/callout.css-mistica.js +2 -2
  223. package/dist-es/callout.js +79 -27
  224. package/dist-es/card.css-mistica.js +2 -2
  225. package/dist-es/card.js +78 -72
  226. package/dist-es/carousel.css-mistica.js +8 -7
  227. package/dist-es/carousel.js +286 -258
  228. package/dist-es/checkbox.css-mistica.js +5 -5
  229. package/dist-es/checkbox.js +1 -1
  230. package/dist-es/chip.css-mistica.js +2 -2
  231. package/dist-es/chip.js +79 -36
  232. package/dist-es/circle.css-mistica.js +1 -1
  233. package/dist-es/credit-card-number-field.css-mistica.js +3 -3
  234. package/dist-es/cvv-field.css-mistica.js +1 -1
  235. package/dist-es/date-time-picker.js +1 -1
  236. package/dist-es/desktop-container-type-context.js +4 -2
  237. package/dist-es/dialog.css-mistica.js +5 -5
  238. package/dist-es/dialog.js +1 -0
  239. package/dist-es/double-field.css-mistica.js +5 -4
  240. package/dist-es/empty-state-card.css-mistica.js +1 -1
  241. package/dist-es/empty-state.css-mistica.js +2 -2
  242. package/dist-es/empty-state.js +18 -18
  243. package/dist-es/fade-in.js +60 -7
  244. package/dist-es/feedback.css-mistica.js +1 -1
  245. package/dist-es/feedback.js +170 -155
  246. package/dist-es/fixed-footer-layout.css-mistica.js +7 -0
  247. package/dist-es/fixed-footer-layout.css.ts.vanilla.js +2 -0
  248. package/dist-es/fixed-footer-layout.js +47 -96
  249. package/dist-es/header.js +116 -146
  250. package/dist-es/highlighted-card.css-mistica.js +5 -5
  251. package/dist-es/highlighted-card.js +44 -39
  252. package/dist-es/icon-button.css-mistica.js +4 -0
  253. package/dist-es/icon-button.css.ts.vanilla.js +2 -0
  254. package/dist-es/icon-button.js +41 -26
  255. package/dist-es/icons/icon-error.css-mistica.js +3 -0
  256. package/dist-es/icons/icon-error.css.ts.vanilla.js +2 -0
  257. package/dist-es/icons/icon-error.js +46 -57
  258. package/dist-es/icons/icon-info.js +28 -40
  259. package/dist-es/icons/icon-success-vivo.js +18 -28
  260. package/dist-es/icons/icon-success.js +45 -56
  261. package/dist-es/image.css-mistica.js +2 -2
  262. package/dist-es/index.js +1738 -1736
  263. package/dist-es/list.css-mistica.js +2 -2
  264. package/dist-es/list.js +126 -85
  265. package/dist-es/loading-bar.css-mistica.js +2 -2
  266. package/dist-es/loading-bar.js +73 -19
  267. package/dist-es/maybe-dismissable.css-mistica.js +4 -0
  268. package/dist-es/maybe-dismissable.css.ts.vanilla.js +2 -0
  269. package/dist-es/maybe-dismissable.js +24 -59
  270. package/dist-es/media-queries.css-mistica.js +3 -3
  271. package/dist-es/menu.css-mistica.js +11 -0
  272. package/dist-es/menu.css.ts.vanilla.js +2 -0
  273. package/dist-es/menu.js +61 -107
  274. package/dist-es/navigation-bar.css-mistica.js +17 -0
  275. package/dist-es/navigation-bar.css.ts.vanilla.js +2 -0
  276. package/dist-es/navigation-bar.js +253 -381
  277. package/dist-es/navigation-breadcrumbs.css-mistica.js +4 -0
  278. package/dist-es/navigation-breadcrumbs.css.ts.vanilla.js +2 -0
  279. package/dist-es/navigation-breadcrumbs.js +34 -52
  280. package/dist-es/overlay.js +41 -15
  281. package/dist-es/package-version.js +1 -1
  282. package/dist-es/password-field.css-mistica.js +4 -0
  283. package/dist-es/password-field.css.ts.vanilla.js +2 -0
  284. package/dist-es/password-field.js +45 -61
  285. package/dist-es/popover.css-mistica.js +4 -0
  286. package/dist-es/popover.css.ts.vanilla.js +2 -0
  287. package/dist-es/popover.js +121 -141
  288. package/dist-es/progress-bar.css-mistica.js +2 -2
  289. package/dist-es/progress-bar.js +68 -15
  290. package/dist-es/radio-button.css-mistica.js +10 -0
  291. package/dist-es/radio-button.css.ts.vanilla.js +2 -0
  292. package/dist-es/radio-button.js +99 -143
  293. package/dist-es/responsive-layout.css-mistica.js +2 -2
  294. package/dist-es/responsive-layout.js +23 -15
  295. package/dist-es/screen-reader-only.css-mistica.js +2 -2
  296. package/dist-es/select.css-mistica.js +22 -0
  297. package/dist-es/select.css.ts.vanilla.js +2 -0
  298. package/dist-es/select.js +177 -299
  299. package/dist-es/skeleton-base.js +17 -36
  300. package/dist-es/skeletons.css-mistica.js +1 -1
  301. package/dist-es/skeletons.js +78 -57
  302. package/dist-es/snackbar.css-mistica.js +2 -2
  303. package/dist-es/snackbar.js +89 -42
  304. package/dist-es/spinner.css-mistica.js +2 -2
  305. package/dist-es/spinner.js +14 -11
  306. package/dist-es/sprinkles.css-mistica.js +217 -479
  307. package/dist-es/stepper.css-mistica.js +2 -2
  308. package/dist-es/stepper.js +68 -27
  309. package/dist-es/style.css +1 -1
  310. package/dist-es/switch-component.css-mistica.js +22 -0
  311. package/dist-es/switch-component.css.ts.vanilla.js +2 -0
  312. package/dist-es/switch-component.js +51 -112
  313. package/dist-es/tabs.css-mistica.js +6 -6
  314. package/dist-es/tabs.js +24 -23
  315. package/dist-es/tag.css-mistica.js +2 -2
  316. package/dist-es/tag.js +11 -11
  317. package/dist-es/text-field-base.css-mistica.js +4 -0
  318. package/dist-es/text-field-base.css.ts.vanilla.js +2 -0
  319. package/dist-es/text-field-base.js +134 -328
  320. package/dist-es/text-field-components.css-mistica.js +4 -0
  321. package/dist-es/text-field-components.css.ts.vanilla.js +2 -0
  322. package/dist-es/text-field-components.js +56 -157
  323. package/dist-es/text-link.css-mistica.js +3 -3
  324. package/dist-es/text.js +159 -92
  325. package/dist-es/theme-context-provider.js +1 -1
  326. package/dist-es/title.js +50 -18
  327. package/dist-es/tooltip.css-mistica.js +3 -3
  328. package/dist-es/tooltip.js +90 -64
  329. package/dist-es/touchable.css-mistica.js +2 -2
  330. package/dist-es/touchable.js +10 -10
  331. package/dist-es/utils/animation.js +28 -62
  332. package/dist-es/utils/aspect-ratio-support.css-mistica.js +6 -0
  333. package/dist-es/utils/aspect-ratio-support.css.ts.vanilla.js +2 -0
  334. package/dist-es/utils/aspect-ratio-support.js +34 -58
  335. package/dist-es/utils/dom.js +7 -5
  336. package/dist-es/video.css-mistica.js +2 -2
  337. package/package.json +2 -1
@@ -96,190 +96,89 @@ function _unsupportedIterableToArray(o, minLen) {
96
96
  if (n === "Map" || n === "Set") return Array.from(n);
97
97
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
98
98
  }
99
- import * as h from "react";
100
- import g from "classnames";
101
- import { createUseStyles as x } from "./jss.js";
102
- import { useIsInverseVariant as L } from "./theme-variant-context.js";
103
- import { useTheme as b } from "./hooks.js";
104
- import { Text1 as u } from "./text.js";
105
- import { jsxs as m, jsx as n } from "./_virtual/jsx-runtime.js";
106
- var C = 328, d = 12, f = parseFloat("0.78"), p = parseFloat("0.75"), w = x(function(e) {
107
- var _obj;
108
- return {
109
- labelContainer: (_obj = {
110
- position: "absolute",
111
- pointerEvents: "none",
112
- left: d,
113
- top: 0,
114
- transformOrigin: "0 0",
115
- height: 24,
116
- display: "flex",
117
- flexDirection: "row",
118
- transform: "translateY(18px) scale(1)",
119
- fontSize: 18,
120
- lineHeight: "24px",
121
- color: function(param) {
122
- var r = param.inputState, t = param.error;
123
- return t && r !== "default" ? e.colors.error : r === "focused" ? e.colors.controlActivated : e.colors.textSecondary;
124
- }
125
- }, _defineProperty(_obj, e.mq.tabletOrSmaller, {
126
- fontSize: 16,
127
- transform: "translateY(16px) scale(1)"
128
- }), _defineProperty(_obj, "width", "calc(100% - ".concat(d * 2, "px)")), _obj),
129
- labelText: {
130
- "-webkit-line-clamp": 1,
131
- lineClamp: 1,
132
- wordBreak: "break-all",
133
- display: "box",
134
- overflow: "hidden",
135
- boxOrient: "vertical",
136
- flexShrink: 1
137
- },
138
- shrinked: _defineProperty({
139
- transform: "translateY(8px) scale(".concat(f, ")"),
140
- height: 20 / f,
141
- lineHeight: "".concat(20 / f, "px"),
142
- width: "calc(100% - ".concat(d * 2, "px) / ").concat(f)
143
- }, e.mq.tabletOrSmaller, {
144
- transform: "translateY(8px) scale(".concat(p, ")"),
145
- height: 16 / p,
146
- lineHeight: "".concat(16 / p, "px"),
147
- width: "calc(100% - ".concat(d * 2, "px) / ").concat(p)
148
- })
149
- };
150
- }), _ = function(param) {
151
- var e = param.shrinkLabel, r = param.forId, t = param.inputState, s = param.error, l = param.children, o = param.style, a = param.optional;
152
- var c = e || t === "focused" || t === "filled", i = w({
153
- inputState: t,
154
- error: s
155
- }), ref = _slicedToArray(h.useState(""), 2), S = ref[0], y = ref[1], ref1 = b(), v = ref1.texts;
156
- return h.useEffect(function() {
157
- var T = setTimeout(function() {
158
- process.env.NODE_ENV !== "test" && y("transform 150ms, width 150ms");
99
+ import * as u from "react";
100
+ import c from "classnames";
101
+ import { useIsInverseVariant as g } from "./theme-variant-context.js";
102
+ import { useTheme as x } from "./hooks.js";
103
+ import { Text1 as h } from "./text.js";
104
+ import { labelContainer as C, shrinked as S, labelText as k, helperContainer as I, helperText as p, leftText as E, rightText as F, fieldContainer as L, fullWidth as W, normalWidth as j, disabled as w, field as A, fieldMulti as O, fieldSingle as P } from "./text-field-components.css-mistica.js";
105
+ import { sprinkles as v } from "./sprinkles.css-mistica.js";
106
+ import { vars as a } from "./skins/skin-contract.css-mistica.js";
107
+ import { jsxs as d, jsx as l } from "./_virtual/jsx-runtime.js";
108
+ var B = function(param) {
109
+ var o = param.shrinkLabel, t = param.forId, r = param.inputState, s = param.error, e = param.children, i = param.style, n = param.optional;
110
+ var m = o || r === "focused" || r === "filled", ref = _slicedToArray(u.useState(""), 2), T = ref[0], b = ref[1], ref1 = x(), N = ref1.texts;
111
+ u.useEffect(function() {
112
+ var y = setTimeout(function() {
113
+ process.env.NODE_ENV !== "test" && b("transform 150ms, width 150ms");
159
114
  });
160
115
  return function() {
161
- clearTimeout(T);
116
+ clearTimeout(y);
162
117
  };
163
- }, []), /* @__PURE__ */ m("label", {
164
- className: g(i.labelContainer, _defineProperty({}, i.shrinked, c)),
165
- htmlFor: r,
166
- style: _objectSpreadProps(_objectSpread({}, o), {
167
- transition: S
118
+ }, []);
119
+ var f = a.colors.textSecondary;
120
+ return s && r !== "default" ? f = a.colors.error : r === "focused" && (f = a.colors.controlActivated), /* @__PURE__ */ d("label", {
121
+ className: c(C, _defineProperty({}, S, m), v({
122
+ color: f
123
+ })),
124
+ htmlFor: t,
125
+ style: _objectSpreadProps(_objectSpread({}, i), {
126
+ transition: T
168
127
  }),
169
128
  children: [
170
- /* @__PURE__ */ n("span", {
171
- className: i.labelText,
172
- children: l
129
+ /* @__PURE__ */ l("span", {
130
+ className: k,
131
+ children: e
173
132
  }),
174
- a ? /* @__PURE__ */ m("span", {
133
+ n ? /* @__PURE__ */ d("span", {
175
134
  children: [
176
135
  "\xa0(",
177
- v.formFieldOptionalLabelSuffix,
136
+ N.formFieldOptionalLabelSuffix,
178
137
  ")"
179
138
  ]
180
139
  }) : null
181
140
  ]
182
141
  });
183
- }, E = x(function() {
184
- return {
185
- helperContainer: {
186
- paddingLeft: 12,
187
- paddingRight: 16,
188
- "& div": {
189
- margin: 0,
190
- marginTop: 4,
191
- flexGrow: 1
192
- },
193
- display: "flex"
194
- },
195
- leftText: {
196
- textAlign: "left"
197
- },
198
- rightText: {
199
- textAlign: "right"
200
- }
201
- };
202
- }), B = function(param) {
203
- var e = param.leftText, r = param.rightText, t = param.error;
204
- var s = L(), ref = b(), l = ref.colors, o = E(), a = s ? l.textPrimaryInverse : t ? l.error : l.textSecondary, c = s ? l.textPrimaryInverse : l.textSecondary;
205
- return /* @__PURE__ */ m("div", {
206
- className: o.helperContainer,
142
+ }, G = function(param) {
143
+ var o = param.leftText, t = param.rightText, r = param.error;
144
+ var s = g(), ref = x(), e = ref.colors, i = s ? e.textPrimaryInverse : r ? e.error : e.textSecondary, n = s ? e.textPrimaryInverse : e.textSecondary;
145
+ return /* @__PURE__ */ d("div", {
146
+ className: I,
207
147
  children: [
208
- e && /* @__PURE__ */ n("div", {
209
- className: o.leftText,
210
- children: /* @__PURE__ */ n(u, {
211
- color: a,
148
+ o && /* @__PURE__ */ l("div", {
149
+ className: c(p, E),
150
+ children: /* @__PURE__ */ l(h, {
151
+ color: i,
212
152
  regular: !0,
213
153
  as: "p",
214
- children: e
154
+ children: o
215
155
  })
216
156
  }),
217
- r && /* @__PURE__ */ n("div", {
218
- className: o.rightText,
219
- children: /* @__PURE__ */ n(u, {
220
- color: c,
157
+ t && /* @__PURE__ */ l("div", {
158
+ className: c(p, F),
159
+ children: /* @__PURE__ */ l(h, {
160
+ color: n,
221
161
  regular: !0,
222
162
  as: "p",
223
- children: r
163
+ children: t
224
164
  })
225
165
  })
226
166
  ]
227
167
  });
228
- }, O = x(function(e) {
229
- var _obj, _obj1;
230
- return {
231
- fieldContainer: (_obj = {
232
- opacity: function(param) {
233
- var r = param.disabled;
234
- return r ? 0.5 : 1;
235
- },
236
- display: "flex",
237
- flexDirection: "column",
238
- minWidth: 96
239
- }, _defineProperty(_obj, e.mq.tabletOrSmaller, {
240
- width: "100%"
241
- }), _defineProperty(_obj, e.mq.desktopOrBigger, {
242
- width: function(param) {
243
- var r = param.fullWidth;
244
- return r ? "100%" : C;
245
- }
246
- }), _obj),
247
- border: (_obj1 = {
248
- overflow: "hidden",
249
- border: "1px solid ".concat(e.colors.border),
250
- borderRadius: 8,
251
- height: function(param) {
252
- var r = param.multiline;
253
- return r ? 152 : 60;
254
- }
255
- }, _defineProperty(_obj1, e.mq.tabletOrSmaller, {
256
- height: function(param) {
257
- var r = param.multiline;
258
- return r ? 152 : 56;
259
- }
260
- }), _defineProperty(_obj1, "display", "flex"), _defineProperty(_obj1, "position", "relative"), _defineProperty(_obj1, "backgroundColor", function(param) {
261
- var r = param.readOnly;
262
- return r ? e.colors.neutralLow : e.colors.backgroundContainer;
263
- }), _obj1)
264
- };
265
- }), D = function(param) {
266
- var e = param.multiline, r = param.disabled, t = param.children, s = param.helperText, l = param.className, o = param.fieldRef, a = param.fullWidth, c = param.readOnly;
267
- var i = O({
268
- multiline: e,
269
- fullWidth: a,
270
- disabled: r,
271
- readOnly: c
272
- });
273
- return /* @__PURE__ */ m("div", {
274
- className: i.fieldContainer,
168
+ }, J = function(param) {
169
+ var o = param.multiline, t = param.disabled, r = param.children, s = param.helperText, e = param.className, i = param.fieldRef, n = param.fullWidth, m = param.readOnly;
170
+ return /* @__PURE__ */ d("div", {
171
+ className: c(L, n ? W : j, _defineProperty({}, w, t)),
275
172
  children: [
276
- /* @__PURE__ */ n("div", {
277
- className: g(i.border, l),
278
- ref: o,
279
- children: t
173
+ /* @__PURE__ */ l("div", {
174
+ className: c(A, o ? O : P, v({
175
+ background: m ? a.colors.neutralLow : a.colors.backgroundContainer
176
+ }), e),
177
+ ref: i,
178
+ children: r
280
179
  }),
281
180
  s
282
181
  ]
283
182
  });
284
183
  };
285
- export { C as DEFAULT_WIDTH, D as FieldContainer, B as HelperText, d as LABEL_LEFT_POSITION, f as LABEL_SCALE_DESKTOP, p as LABEL_SCALE_MOBILE, _ as Label };
184
+ export { J as FieldContainer, G as HelperText, B as Label };
@@ -1,8 +1,8 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
2
  import "./text-link.css.ts.vanilla.js";
3
3
  var v = {
4
- default: "_1m1n0pr1 _1y2v1nf9j _1y2v1nf7e _1y2v1nfbg _1y2v1nf1t",
5
- inverseLight: "_1m1n0pr6 _1m1n0pr1 _1y2v1nf9j _1y2v1nf7e _1y2v1nfbg _1y2v1nf1u",
6
- inverseDark: "_1m1n0pr7 _1m1n0pr1 _1y2v1nf9j _1y2v1nf7e _1y2v1nfbg _1y2v1nf1t"
4
+ default: "_1m1n0pr1 _1y2v1nf76 _1y2v1nf51 _1y2v1nf93 _1y2v1nf1t",
5
+ inverseLight: "_1m1n0pr6 _1m1n0pr1 _1y2v1nf76 _1y2v1nf51 _1y2v1nf93 _1y2v1nf1u",
6
+ inverseDark: "_1m1n0pr7 _1m1n0pr1 _1y2v1nf76 _1y2v1nf51 _1y2v1nf93 _1y2v1nf1t"
7
7
  };
8
8
  export { v as variants };
package/dist-es/text.js CHANGED
@@ -50,16 +50,43 @@ function _objectSpreadProps(target, source) {
50
50
  }
51
51
  return target;
52
52
  }
53
- import * as j from "react";
54
- import A from "classnames";
55
- import { assignInlineVars as f } from "@vanilla-extract/dynamic";
53
+ function _objectWithoutProperties(source, excluded) {
54
+ if (source == null) return {};
55
+ var target = _objectWithoutPropertiesLoose(source, excluded);
56
+ var key, i;
57
+ if (Object.getOwnPropertySymbols) {
58
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
59
+ for(i = 0; i < sourceSymbolKeys.length; i++){
60
+ key = sourceSymbolKeys[i];
61
+ if (excluded.indexOf(key) >= 0) continue;
62
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
63
+ target[key] = source[key];
64
+ }
65
+ }
66
+ return target;
67
+ }
68
+ function _objectWithoutPropertiesLoose(source, excluded) {
69
+ if (source == null) return {};
70
+ var target = {};
71
+ var sourceKeys = Object.keys(source);
72
+ var key, i;
73
+ for(i = 0; i < sourceKeys.length; i++){
74
+ key = sourceKeys[i];
75
+ if (excluded.indexOf(key) >= 0) continue;
76
+ target[key] = source[key];
77
+ }
78
+ return target;
79
+ }
80
+ import * as R from "react";
81
+ import j from "classnames";
82
+ import { assignInlineVars as L } from "@vanilla-extract/dynamic";
56
83
  import { useIsInverseVariant as B } from "./theme-variant-context.js";
57
- import { pxToRem as x } from "./utils/css.js";
84
+ import { pxToRem as p } from "./utils/css.js";
58
85
  import { getPrefixedDataAttributes as E } from "./utils/dom.js";
59
- import { useTheme as o } from "./hooks.js";
60
- import { vars as n } from "./skins/skin-contract.css-mistica.js";
61
- import { text as N, withWordBreak as $, withoutWordBreak as q, truncateToOneLine as F, truncateToMoreThanOneLine as G, vars as h } from "./text.css-mistica.js";
62
- import { jsx as i } from "./_virtual/jsx-runtime.js";
86
+ import { useTheme as s } from "./hooks.js";
87
+ import { vars as r } from "./skins/skin-contract.css-mistica.js";
88
+ import { text as N, withWordBreak as $, withoutWordBreak as q, truncateToOneLine as F, truncateToMoreThanOneLine as G, vars as a } from "./text.css-mistica.js";
89
+ import { jsx as o } from "./_virtual/jsx-runtime.js";
63
90
  var J = {
64
91
  light: 300,
65
92
  regular: 400,
@@ -67,139 +94,179 @@ var J = {
67
94
  bold: 700
68
95
  }, K = function(e) {
69
96
  return e === !0 ? 1 : e || "initial";
70
- }, r = function(param) {
71
- var e = param.weight, tmp = param.color, t = tmp === void 0 ? n.colors.textPrimary : tmp, c = param.decoration, s = param.truncate, z = param.transform, tmp1 = param.wordBreak, d = tmp1 === void 0 ? !0 : tmp1, w = param.hyphens, tmp2 = param.as, H = tmp2 === void 0 ? "span" : tmp2, g = param.children, a = param.size, tmp3 = param.mobileSize, u = tmp3 === void 0 ? a : tmp3, tmp4 = param.desktopSize, p = tmp4 === void 0 ? a : tmp4, S = param.lineHeight, tmp5 = param.mobileLineHeight, k = tmp5 === void 0 ? S : tmp5, tmp6 = param.desktopLineHeight, L = tmp6 === void 0 ? S : tmp6, T = param.letterSpacing, v = param.textAlign, P = param.id, y = param.role, I = param["aria-level"], W = param.dataAttributes;
72
- var b;
97
+ }, n = function(param) {
98
+ var e = param.weight, tmp = param.color, t = tmp === void 0 ? r.colors.textPrimary : tmp, i = param.decoration, m = param.truncate, f = param.transform, tmp1 = param.wordBreak, h = tmp1 === void 0 ? !0 : tmp1, z = param.hyphens, tmp2 = param.as, w = tmp2 === void 0 ? "span" : tmp2, g = param.children, c = param.size, tmp3 = param.mobileSize, u = tmp3 === void 0 ? c : tmp3, tmp4 = param.desktopSize, d = tmp4 === void 0 ? c : tmp4, b = param.lineHeight, tmp5 = param.mobileLineHeight, T = tmp5 === void 0 ? b : tmp5, tmp6 = param.desktopLineHeight, S = tmp6 === void 0 ? b : tmp6, H = param.letterSpacing, v = param.textAlign, P = param.id, y = param.role, A = param["aria-level"], I = param.dataAttributes;
99
+ var k;
73
100
  var _obj;
74
- var V = B(), C = K(s), ref = o(), l = ref.colors, D = (_obj = {}, _defineProperty(_obj, n.colors.textPrimary, n.colors.textPrimaryInverse), _defineProperty(_obj, n.colors.textSecondary, n.colors.textSecondaryInverse), _defineProperty(_obj, n.colors.textLink, n.colors.textLinkInverse), _defineProperty(_obj, l.textPrimary, l.textPrimaryInverse), _defineProperty(_obj, l.textSecondary, l.textSecondaryInverse), _defineProperty(_obj, l.textLink, l.textLinkInverse), _obj);
101
+ var W = B(), V = K(m), ref = s(), x = ref.colors, C = (_obj = {}, _defineProperty(_obj, r.colors.textPrimary, r.colors.textPrimaryInverse), _defineProperty(_obj, r.colors.textSecondary, r.colors.textSecondaryInverse), _defineProperty(_obj, r.colors.textLink, r.colors.textLinkInverse), _defineProperty(_obj, x.textPrimary, x.textPrimaryInverse), _defineProperty(_obj, x.textSecondary, x.textSecondaryInverse), _defineProperty(_obj, x.textLink, x.textLinkInverse), _obj);
75
102
  if (!g && g !== 0) return null;
76
103
  var _obj1, _obj2;
77
- var M = A(N, d ? $ : q, (_obj1 = {}, _defineProperty(_obj1, F, s === 1 || s === !0), _defineProperty(_obj1, G, s && s > 1), _obj1)), O = f((_obj2 = {}, _defineProperty(_obj2, h.mobileSize, u ? x(u) : ""), _defineProperty(_obj2, h.mobileLineHeight, k ? x(k) : ""), _defineProperty(_obj2, h.desktopSize, p ? x(p) : ""), _defineProperty(_obj2, h.desktopLineHeight, L ? x(L) : ""), _obj2)), R = s ? f(_defineProperty({}, h.lineClamp, String(C))) : {};
78
- return /*#__PURE__*/ j.createElement(H, _objectSpreadProps(_objectSpread({
79
- className: M,
104
+ var D = j(N, h ? $ : q, (_obj1 = {}, _defineProperty(_obj1, F, m === 1 || m === !0), _defineProperty(_obj1, G, m && m > 1), _obj1)), M = L((_obj2 = {}, _defineProperty(_obj2, a.mobileSize, u ? p(u) : ""), _defineProperty(_obj2, a.mobileLineHeight, T ? p(T) : ""), _defineProperty(_obj2, a.desktopSize, d ? p(d) : ""), _defineProperty(_obj2, a.desktopLineHeight, S ? p(S) : ""), _obj2)), O = m ? L(_defineProperty({}, a.lineClamp, String(V))) : {};
105
+ return /*#__PURE__*/ R.createElement(w, _objectSpreadProps(_objectSpread({
106
+ className: D,
80
107
  id: P,
81
108
  role: y,
82
- "aria-level": I
83
- }, E(W)), {
84
- style: _objectSpreadProps(_objectSpread({}, O, R), {
85
- hyphens: w,
86
- letterSpacing: T,
109
+ "aria-level": A
110
+ }, E(I)), {
111
+ style: _objectSpreadProps(_objectSpread({}, M, O), {
112
+ hyphens: z,
113
+ letterSpacing: H,
87
114
  fontWeight: e ? J[e] : "inherit",
88
- textTransform: z || "inherit",
89
- textDecoration: c != null ? c : "inherit",
90
- overflowWrap: d ? "anywhere" : "inherit",
91
- color: V && (b = D[t]) != null ? b : t,
115
+ textTransform: f || "inherit",
116
+ textDecoration: i != null ? i : "inherit",
117
+ overflowWrap: h ? "anywhere" : "inherit",
118
+ color: W && (k = C[t]) != null ? k : t,
92
119
  textAlign: v
93
120
  })
94
121
  }), g);
95
- }, m = function(e) {
122
+ }, l = function(e) {
96
123
  if (e.light) return "light";
97
124
  if (e.regular) return "regular";
98
125
  if (e.medium) return "medium";
99
- }, re = function(e) {
100
- var ref = o(), t = ref.textPresets;
101
- return /* @__PURE__ */ i(r, _objectSpreadProps(_objectSpread({
126
+ }, oe = function(_param) {
127
+ var e = _param.dataAttributes, t = _objectWithoutProperties(_param, [
128
+ "dataAttributes"
129
+ ]);
130
+ var ref = s(), i = ref.textPresets;
131
+ return /* @__PURE__ */ o(n, _objectSpread({
102
132
  mobileSize: 32,
103
133
  mobileLineHeight: "40px",
104
134
  desktopSize: 64,
105
135
  desktopLineHeight: "72px",
106
- weight: t.text10.weight
107
- }, e), {
108
- children: e.children
109
- }));
110
- }, ne = function(e) {
111
- var ref = o(), t = ref.textPresets;
112
- return /* @__PURE__ */ i(r, _objectSpreadProps(_objectSpread({
136
+ weight: i.text10.weight,
137
+ dataAttributes: _objectSpread({
138
+ "component-name": "Text10"
139
+ }, e)
140
+ }, t));
141
+ }, ne = function(_param) {
142
+ var e = _param.dataAttributes, t = _objectWithoutProperties(_param, [
143
+ "dataAttributes"
144
+ ]);
145
+ var ref = s(), i = ref.textPresets;
146
+ return /* @__PURE__ */ o(n, _objectSpread({
113
147
  mobileSize: 32,
114
148
  mobileLineHeight: "40px",
115
149
  desktopSize: 56,
116
150
  desktopLineHeight: "64px",
117
- weight: t.text9.weight
118
- }, e), {
119
- children: e.children
120
- }));
121
- }, oe = function(e) {
122
- var ref = o(), t = ref.textPresets;
123
- return /* @__PURE__ */ i(r, _objectSpreadProps(_objectSpread({
151
+ weight: i.text9.weight,
152
+ dataAttributes: _objectSpread({
153
+ "component-name": "Text9"
154
+ }, e)
155
+ }, t));
156
+ }, re = function(_param) {
157
+ var e = _param.dataAttributes, t = _objectWithoutProperties(_param, [
158
+ "dataAttributes"
159
+ ]);
160
+ var ref = s(), i = ref.textPresets;
161
+ return /* @__PURE__ */ o(n, _objectSpread({
124
162
  mobileSize: 32,
125
163
  mobileLineHeight: "40px",
126
164
  desktopSize: 48,
127
165
  desktopLineHeight: "56px",
128
- weight: t.text8.weight
129
- }, e), {
130
- children: e.children
131
- }));
132
- }, se = function(e) {
133
- var ref = o(), t = ref.textPresets;
134
- return /* @__PURE__ */ i(r, _objectSpreadProps(_objectSpread({
166
+ weight: i.text8.weight,
167
+ dataAttributes: _objectSpread({
168
+ "component-name": "Text8"
169
+ }, e)
170
+ }, t));
171
+ }, se = function(_param) {
172
+ var e = _param.dataAttributes, t = _objectWithoutProperties(_param, [
173
+ "dataAttributes"
174
+ ]);
175
+ var ref = s(), i = ref.textPresets;
176
+ return /* @__PURE__ */ o(n, _objectSpread({
135
177
  mobileSize: 28,
136
178
  mobileLineHeight: "32px",
137
179
  desktopSize: 40,
138
180
  desktopLineHeight: "48px",
139
- weight: t.text7.weight
140
- }, e), {
141
- children: e.children
142
- }));
143
- }, le = function(e) {
144
- var ref = o(), t = ref.textPresets;
145
- return /* @__PURE__ */ i(r, _objectSpreadProps(_objectSpread({
181
+ weight: i.text7.weight,
182
+ dataAttributes: _objectSpread({
183
+ "component-name": "Text7"
184
+ }, e)
185
+ }, t));
186
+ }, me = function(_param) {
187
+ var e = _param.dataAttributes, t = _objectWithoutProperties(_param, [
188
+ "dataAttributes"
189
+ ]);
190
+ var ref = s(), i = ref.textPresets;
191
+ return /* @__PURE__ */ o(n, _objectSpread({
146
192
  mobileSize: 24,
147
193
  mobileLineHeight: "32px",
148
194
  desktopSize: 32,
149
195
  desktopLineHeight: "40px",
150
- weight: t.text6.weight
151
- }, e), {
152
- children: e.children
153
- }));
154
- }, he = function(e) {
155
- var ref = o(), t = ref.textPresets;
156
- return /* @__PURE__ */ i(r, _objectSpreadProps(_objectSpread({
196
+ weight: i.text6.weight,
197
+ dataAttributes: _objectSpread({
198
+ "component-name": "Text6"
199
+ }, e)
200
+ }, t));
201
+ }, xe = function(_param) {
202
+ var e = _param.dataAttributes, t = _objectWithoutProperties(_param, [
203
+ "dataAttributes"
204
+ ]);
205
+ var ref = s(), i = ref.textPresets;
206
+ return /* @__PURE__ */ o(n, _objectSpread({
157
207
  mobileSize: 22,
158
208
  mobileLineHeight: "24px",
159
209
  desktopSize: 28,
160
210
  desktopLineHeight: "32px",
161
- weight: t.text5.weight
162
- }, e), {
163
- children: e.children
164
- }));
165
- }, xe = function(e) {
166
- return /* @__PURE__ */ i(r, _objectSpreadProps(_objectSpread({
211
+ weight: i.text5.weight,
212
+ dataAttributes: _objectSpread({
213
+ "component-name": "Text5"
214
+ }, e)
215
+ }, t));
216
+ }, ae = function(_param) /* @__PURE__ */ {
217
+ var e = _param.dataAttributes, t = _objectWithoutProperties(_param, [
218
+ "dataAttributes"
219
+ ]);
220
+ return o(n, _objectSpread({
167
221
  mobileSize: 18,
168
222
  mobileLineHeight: "24px",
169
223
  desktopSize: 20,
170
224
  desktopLineHeight: "28px",
171
- weight: m(e)
172
- }, e), {
173
- children: e.children
174
- }));
175
- }, me = function(e) {
176
- return /* @__PURE__ */ i(r, _objectSpreadProps(_objectSpread({
225
+ weight: l(t),
226
+ dataAttributes: _objectSpread({
227
+ "component-name": "Text4"
228
+ }, e)
229
+ }, t));
230
+ }, pe = function(_param) /* @__PURE__ */ {
231
+ var e = _param.dataAttributes, t = _objectWithoutProperties(_param, [
232
+ "dataAttributes"
233
+ ]);
234
+ return o(n, _objectSpread({
177
235
  mobileSize: 16,
178
236
  desktopSize: 18,
179
237
  lineHeight: "24px",
180
- weight: m(e)
181
- }, e), {
182
- children: e.children
183
- }));
184
- }, ce = function(e) {
185
- return /* @__PURE__ */ i(r, _objectSpreadProps(_objectSpread({
238
+ weight: l(t),
239
+ dataAttributes: _objectSpread({
240
+ "component-name": "Text3"
241
+ }, e)
242
+ }, t));
243
+ }, le = function(_param) /* @__PURE__ */ {
244
+ var e = _param.dataAttributes, t = _objectWithoutProperties(_param, [
245
+ "dataAttributes"
246
+ ]);
247
+ return o(n, _objectSpread({
186
248
  mobileSize: 14,
187
249
  mobileLineHeight: "20px",
188
250
  desktopSize: 16,
189
251
  desktopLineHeight: "24px",
190
- weight: m(e)
191
- }, e), {
192
- children: e.children
193
- }));
194
- }, ge = function(e) {
195
- return /* @__PURE__ */ i(r, _objectSpreadProps(_objectSpread({
252
+ weight: l(t),
253
+ dataAttributes: _objectSpread({
254
+ "component-name": "Text2"
255
+ }, e)
256
+ }, t));
257
+ }, ge = function(_param) /* @__PURE__ */ {
258
+ var e = _param.dataAttributes, t = _objectWithoutProperties(_param, [
259
+ "dataAttributes"
260
+ ]);
261
+ return o(n, _objectSpread({
196
262
  mobileSize: 12,
197
263
  mobileLineHeight: "16px",
198
264
  desktopSize: 14,
199
265
  desktopLineHeight: "20px",
200
- weight: m(e)
201
- }, e), {
202
- children: e.children
203
- }));
266
+ weight: l(t),
267
+ dataAttributes: _objectSpread({
268
+ "component-name": "Text1"
269
+ }, e)
270
+ }, t));
204
271
  };
205
- export { r as Text, ge as Text1, re as Text10, ce as Text2, me as Text3, xe as Text4, he as Text5, le as Text6, se as Text7, oe as Text8, ne as Text9, r as default };
272
+ export { n as Text, ge as Text1, oe as Text10, le as Text2, pe as Text3, ae as Text4, xe as Text5, me as Text6, se as Text7, re as Text8, ne as Text9, n as default };