@telefonica/mistica 12.11.0 → 12.12.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 (333) 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 +15 -12
  14. package/dist/button-layout.css.d.ts +1 -0
  15. package/dist/button-layout.css.js.flow +1 -0
  16. package/dist/button-layout.js +10 -10
  17. package/dist/button.css-mistica.js +26 -26
  18. package/dist/button.js +127 -77
  19. package/dist/callout.css-mistica.js +2 -2
  20. package/dist/callout.d.ts +2 -1
  21. package/dist/callout.js +68 -16
  22. package/dist/callout.js.flow +2 -1
  23. package/dist/card.css-mistica.js +5 -5
  24. package/dist/card.js +47 -41
  25. package/dist/carousel.css-mistica.js +16 -19
  26. package/dist/carousel.js +153 -143
  27. package/dist/checkbox.css-mistica.js +6 -6
  28. package/dist/checkbox.js +1 -1
  29. package/dist/chip.css-mistica.js +2 -2
  30. package/dist/chip.d.ts +7 -11
  31. package/dist/chip.js +65 -22
  32. package/dist/chip.js.flow +11 -6
  33. package/dist/circle.css-mistica.js +1 -1
  34. package/dist/credit-card-number-field.css-mistica.js +3 -3
  35. package/dist/cvv-field.css-mistica.js +1 -1
  36. package/dist/date-time-picker.js +2 -2
  37. package/dist/dialog.css-mistica.js +6 -6
  38. package/dist/dialog.d.ts +2 -10
  39. package/dist/dialog.js +1 -0
  40. package/dist/dialog.js.flow +6 -4
  41. package/dist/double-field.css-mistica.js +5 -4
  42. package/dist/empty-state-card.css-mistica.js +1 -1
  43. package/dist/empty-state.css-mistica.js +2 -2
  44. package/dist/empty-state.js +5 -5
  45. package/dist/fade-in.d.ts +2 -0
  46. package/dist/fade-in.js +59 -6
  47. package/dist/fade-in.js.flow +2 -0
  48. package/dist/feedback.css-mistica.js +1 -1
  49. package/dist/feedback.js +130 -115
  50. package/dist/fixed-footer-layout.css-mistica.js +36 -0
  51. package/dist/fixed-footer-layout.css.d.ts +9 -0
  52. package/dist/fixed-footer-layout.css.js.flow +17 -0
  53. package/dist/fixed-footer-layout.css.ts.vanilla.js +11 -0
  54. package/dist/fixed-footer-layout.js +35 -84
  55. package/dist/header.js +99 -129
  56. package/dist/highlighted-card.css-mistica.js +5 -5
  57. package/dist/highlighted-card.d.ts +1 -1
  58. package/dist/highlighted-card.js +20 -15
  59. package/dist/highlighted-card.js.flow +1 -1
  60. package/dist/icon-button.css-mistica.js +13 -0
  61. package/dist/icon-button.css.d.ts +1 -0
  62. package/dist/icon-button.css.js.flow +3 -0
  63. package/dist/icon-button.css.ts.vanilla.js +11 -0
  64. package/dist/icon-button.d.ts +2 -1
  65. package/dist/icon-button.js +51 -28
  66. package/dist/icon-button.js.flow +2 -1
  67. package/dist/icons/icon-error.css-mistica.js +20 -0
  68. package/dist/icons/icon-error.css.d.ts +2 -0
  69. package/dist/icons/icon-error.css.js.flow +4 -0
  70. package/dist/icons/icon-error.css.ts.vanilla.js +11 -0
  71. package/dist/icons/icon-error.js +22 -33
  72. package/dist/icons/icon-info.js +16 -28
  73. package/dist/icons/icon-success-vivo.js +10 -20
  74. package/dist/icons/icon-success.js +28 -44
  75. package/dist/image.css-mistica.js +3 -3
  76. package/dist/index.d.ts +2 -0
  77. package/dist/index.js +8 -0
  78. package/dist/index.js.flow +2 -0
  79. package/dist/list.css-mistica.js +7 -7
  80. package/dist/list.js +112 -71
  81. package/dist/loading-bar.css-mistica.js +6 -6
  82. package/dist/loading-bar.d.ts +2 -0
  83. package/dist/loading-bar.js +60 -6
  84. package/dist/loading-bar.js.flow +5 -1
  85. package/dist/maybe-dismissable.css-mistica.js +24 -0
  86. package/dist/maybe-dismissable.css.d.ts +3 -0
  87. package/dist/maybe-dismissable.css.js.flow +5 -0
  88. package/dist/maybe-dismissable.css.ts.vanilla.js +11 -0
  89. package/dist/maybe-dismissable.js +16 -51
  90. package/dist/media-queries.css-mistica.js +37 -5
  91. package/dist/menu.css-mistica.js +34 -0
  92. package/dist/menu.css.d.ts +11 -0
  93. package/dist/menu.css.js.flow +19 -0
  94. package/dist/menu.css.ts.vanilla.js +11 -0
  95. package/dist/menu.d.ts +2 -0
  96. package/dist/menu.js +53 -99
  97. package/dist/menu.js.flow +2 -0
  98. package/dist/navigation-bar.css-mistica.js +79 -0
  99. package/dist/navigation-bar.css.d.ts +17 -0
  100. package/dist/navigation-bar.css.js.flow +26 -0
  101. package/dist/navigation-bar.css.ts.vanilla.js +11 -0
  102. package/dist/navigation-bar.js +206 -334
  103. package/dist/navigation-breadcrumbs.css-mistica.js +27 -0
  104. package/dist/navigation-breadcrumbs.css.d.ts +5 -0
  105. package/dist/navigation-breadcrumbs.css.js.flow +7 -0
  106. package/dist/navigation-breadcrumbs.css.ts.vanilla.js +11 -0
  107. package/dist/navigation-breadcrumbs.js +20 -38
  108. package/dist/overlay.d.ts +2 -0
  109. package/dist/overlay.js +37 -11
  110. package/dist/overlay.js.flow +2 -0
  111. package/dist/package-version.js +1 -1
  112. package/dist/password-field.css-mistica.js +13 -0
  113. package/dist/password-field.css.d.ts +1 -0
  114. package/dist/password-field.css.js.flow +3 -0
  115. package/dist/password-field.css.ts.vanilla.js +11 -0
  116. package/dist/password-field.js +39 -55
  117. package/dist/popover.css-mistica.js +51 -0
  118. package/dist/popover.css.d.ts +12 -0
  119. package/dist/popover.css.js.flow +14 -0
  120. package/dist/popover.css.ts.vanilla.js +11 -0
  121. package/dist/popover.d.ts +2 -1
  122. package/dist/popover.js +97 -118
  123. package/dist/popover.js.flow +2 -1
  124. package/dist/progress-bar.css-mistica.js +3 -3
  125. package/dist/progress-bar.d.ts +2 -0
  126. package/dist/progress-bar.js +60 -7
  127. package/dist/progress-bar.js.flow +2 -0
  128. package/dist/radio-button.css-mistica.js +39 -0
  129. package/dist/radio-button.css.d.ts +6 -0
  130. package/dist/radio-button.css.js.flow +8 -0
  131. package/dist/radio-button.css.ts.vanilla.js +11 -0
  132. package/dist/radio-button.d.ts +1 -0
  133. package/dist/radio-button.js +81 -125
  134. package/dist/radio-button.js.flow +1 -0
  135. package/dist/responsive-layout.css-mistica.js +7 -4
  136. package/dist/responsive-layout.css.d.ts +1 -0
  137. package/dist/responsive-layout.css.js.flow +1 -0
  138. package/dist/responsive-layout.d.ts +2 -0
  139. package/dist/responsive-layout.js +19 -11
  140. package/dist/responsive-layout.js.flow +2 -0
  141. package/dist/screen-reader-only.css-mistica.js +2 -2
  142. package/dist/select.css-mistica.js +60 -0
  143. package/dist/select.css.d.ts +16 -0
  144. package/dist/select.css.js.flow +30 -0
  145. package/dist/select.css.ts.vanilla.js +11 -0
  146. package/dist/select.js +150 -272
  147. package/dist/skeleton-base.js +13 -32
  148. package/dist/skeletons.css-mistica.js +1 -1
  149. package/dist/skeletons.js +52 -42
  150. package/dist/skins/skin-contract.css.js.flow +1 -0
  151. package/dist/snackbar.css-mistica.js +4 -4
  152. package/dist/snackbar.d.ts +2 -0
  153. package/dist/snackbar.js +70 -23
  154. package/dist/snackbar.js.flow +2 -0
  155. package/dist/spinner.css-mistica.js +2 -2
  156. package/dist/spinner.js +14 -11
  157. package/dist/sprinkles.css-mistica.js +217 -479
  158. package/dist/sprinkles.css.d.ts +0 -25
  159. package/dist/stepper.css-mistica.js +7 -7
  160. package/dist/stepper.d.ts +2 -0
  161. package/dist/stepper.js +52 -11
  162. package/dist/stepper.js.flow +2 -0
  163. package/dist/switch-component.css-mistica.js +54 -0
  164. package/dist/switch-component.css.d.ts +14 -0
  165. package/dist/switch-component.css.js.flow +43 -0
  166. package/dist/switch-component.css.ts.vanilla.js +11 -0
  167. package/dist/switch-component.js +35 -96
  168. package/dist/tabs.css-mistica.js +6 -6
  169. package/dist/tabs.js +16 -15
  170. package/dist/tag.css-mistica.js +2 -2
  171. package/dist/tag.js +5 -5
  172. package/dist/text-field-base.css-mistica.js +63 -0
  173. package/dist/text-field-base.css.d.ts +17 -0
  174. package/dist/text-field-base.css.js.flow +19 -0
  175. package/dist/text-field-base.css.ts.vanilla.js +11 -0
  176. package/dist/text-field-base.js +120 -314
  177. package/dist/text-field-components.css-mistica.js +69 -0
  178. package/dist/text-field-components.css.d.ts +18 -0
  179. package/dist/text-field-components.css.js.flow +20 -0
  180. package/dist/text-field-components.css.ts.vanilla.js +11 -0
  181. package/dist/text-field-components.d.ts +0 -4
  182. package/dist/text-field-components.js +46 -159
  183. package/dist/text-field-components.js.flow +0 -4
  184. package/dist/text-link.css-mistica.js +3 -3
  185. package/dist/text.js +159 -92
  186. package/dist/theme-context-provider.js +1 -1
  187. package/dist/title.js +44 -12
  188. package/dist/tooltip.css-mistica.js +7 -7
  189. package/dist/tooltip.d.ts +2 -0
  190. package/dist/tooltip.js +62 -36
  191. package/dist/tooltip.js.flow +2 -0
  192. package/dist/touchable.css-mistica.js +3 -3
  193. package/dist/touchable.js +10 -10
  194. package/dist/utils/animation.d.ts +0 -6
  195. package/dist/utils/animation.js +18 -55
  196. package/dist/utils/animation.js.flow +0 -8
  197. package/dist/utils/aspect-ratio-support.css-mistica.js +29 -0
  198. package/dist/utils/aspect-ratio-support.css.d.ts +6 -0
  199. package/dist/utils/aspect-ratio-support.css.js.flow +11 -0
  200. package/dist/utils/aspect-ratio-support.css.ts.vanilla.js +11 -0
  201. package/dist/utils/aspect-ratio-support.js +37 -56
  202. package/dist/utils/color.d.ts +1 -1
  203. package/dist/utils/color.js.flow +1 -1
  204. package/dist/utils/dom.d.ts +1 -1
  205. package/dist/utils/dom.js +7 -5
  206. package/dist/utils/dom.js.flow +2 -1
  207. package/dist/video.css-mistica.js +2 -2
  208. package/dist-es/avatar.css-mistica.js +2 -2
  209. package/dist-es/avatar.js +77 -22
  210. package/dist-es/badge.css-mistica.js +2 -2
  211. package/dist-es/badge.js +56 -15
  212. package/dist-es/boxed.js +5 -5
  213. package/dist-es/button-group.css-mistica.js +1 -1
  214. package/dist-es/button-group.js +10 -10
  215. package/dist-es/button-layout.css-mistica.js +7 -7
  216. package/dist-es/button-layout.js +19 -19
  217. package/dist-es/button.css-mistica.js +9 -9
  218. package/dist-es/button.js +152 -102
  219. package/dist-es/callout.css-mistica.js +2 -2
  220. package/dist-es/callout.js +79 -27
  221. package/dist-es/card.css-mistica.js +2 -2
  222. package/dist-es/card.js +78 -72
  223. package/dist-es/carousel.css-mistica.js +2 -2
  224. package/dist-es/carousel.js +191 -181
  225. package/dist-es/checkbox.css-mistica.js +5 -5
  226. package/dist-es/checkbox.js +1 -1
  227. package/dist-es/chip.css-mistica.js +2 -2
  228. package/dist-es/chip.js +79 -36
  229. package/dist-es/circle.css-mistica.js +1 -1
  230. package/dist-es/credit-card-number-field.css-mistica.js +3 -3
  231. package/dist-es/cvv-field.css-mistica.js +1 -1
  232. package/dist-es/date-time-picker.js +1 -1
  233. package/dist-es/dialog.css-mistica.js +5 -5
  234. package/dist-es/dialog.js +1 -0
  235. package/dist-es/double-field.css-mistica.js +5 -4
  236. package/dist-es/empty-state-card.css-mistica.js +1 -1
  237. package/dist-es/empty-state.css-mistica.js +2 -2
  238. package/dist-es/empty-state.js +18 -18
  239. package/dist-es/fade-in.js +60 -7
  240. package/dist-es/feedback.css-mistica.js +1 -1
  241. package/dist-es/feedback.js +170 -155
  242. package/dist-es/fixed-footer-layout.css-mistica.js +7 -0
  243. package/dist-es/fixed-footer-layout.css.ts.vanilla.js +2 -0
  244. package/dist-es/fixed-footer-layout.js +47 -96
  245. package/dist-es/header.js +116 -146
  246. package/dist-es/highlighted-card.css-mistica.js +5 -5
  247. package/dist-es/highlighted-card.js +44 -39
  248. package/dist-es/icon-button.css-mistica.js +4 -0
  249. package/dist-es/icon-button.css.ts.vanilla.js +2 -0
  250. package/dist-es/icon-button.js +41 -26
  251. package/dist-es/icons/icon-error.css-mistica.js +3 -0
  252. package/dist-es/icons/icon-error.css.ts.vanilla.js +2 -0
  253. package/dist-es/icons/icon-error.js +46 -57
  254. package/dist-es/icons/icon-info.js +28 -40
  255. package/dist-es/icons/icon-success-vivo.js +18 -28
  256. package/dist-es/icons/icon-success.js +45 -56
  257. package/dist-es/image.css-mistica.js +2 -2
  258. package/dist-es/index.js +1738 -1736
  259. package/dist-es/list.css-mistica.js +2 -2
  260. package/dist-es/list.js +126 -85
  261. package/dist-es/loading-bar.css-mistica.js +2 -2
  262. package/dist-es/loading-bar.js +73 -19
  263. package/dist-es/maybe-dismissable.css-mistica.js +4 -0
  264. package/dist-es/maybe-dismissable.css.ts.vanilla.js +2 -0
  265. package/dist-es/maybe-dismissable.js +24 -59
  266. package/dist-es/media-queries.css-mistica.js +3 -3
  267. package/dist-es/menu.css-mistica.js +11 -0
  268. package/dist-es/menu.css.ts.vanilla.js +2 -0
  269. package/dist-es/menu.js +61 -107
  270. package/dist-es/navigation-bar.css-mistica.js +17 -0
  271. package/dist-es/navigation-bar.css.ts.vanilla.js +2 -0
  272. package/dist-es/navigation-bar.js +253 -381
  273. package/dist-es/navigation-breadcrumbs.css-mistica.js +4 -0
  274. package/dist-es/navigation-breadcrumbs.css.ts.vanilla.js +2 -0
  275. package/dist-es/navigation-breadcrumbs.js +34 -52
  276. package/dist-es/overlay.js +41 -15
  277. package/dist-es/package-version.js +1 -1
  278. package/dist-es/password-field.css-mistica.js +4 -0
  279. package/dist-es/password-field.css.ts.vanilla.js +2 -0
  280. package/dist-es/password-field.js +45 -61
  281. package/dist-es/popover.css-mistica.js +4 -0
  282. package/dist-es/popover.css.ts.vanilla.js +2 -0
  283. package/dist-es/popover.js +121 -141
  284. package/dist-es/progress-bar.css-mistica.js +2 -2
  285. package/dist-es/progress-bar.js +68 -15
  286. package/dist-es/radio-button.css-mistica.js +10 -0
  287. package/dist-es/radio-button.css.ts.vanilla.js +2 -0
  288. package/dist-es/radio-button.js +99 -143
  289. package/dist-es/responsive-layout.css-mistica.js +2 -2
  290. package/dist-es/responsive-layout.js +23 -15
  291. package/dist-es/screen-reader-only.css-mistica.js +2 -2
  292. package/dist-es/select.css-mistica.js +22 -0
  293. package/dist-es/select.css.ts.vanilla.js +2 -0
  294. package/dist-es/select.js +177 -299
  295. package/dist-es/skeleton-base.js +17 -36
  296. package/dist-es/skeletons.css-mistica.js +1 -1
  297. package/dist-es/skeletons.js +66 -56
  298. package/dist-es/snackbar.css-mistica.js +2 -2
  299. package/dist-es/snackbar.js +89 -42
  300. package/dist-es/spinner.css-mistica.js +2 -2
  301. package/dist-es/spinner.js +14 -11
  302. package/dist-es/sprinkles.css-mistica.js +217 -479
  303. package/dist-es/stepper.css-mistica.js +2 -2
  304. package/dist-es/stepper.js +68 -27
  305. package/dist-es/style.css +1 -1
  306. package/dist-es/switch-component.css-mistica.js +22 -0
  307. package/dist-es/switch-component.css.ts.vanilla.js +2 -0
  308. package/dist-es/switch-component.js +51 -112
  309. package/dist-es/tabs.css-mistica.js +6 -6
  310. package/dist-es/tabs.js +24 -23
  311. package/dist-es/tag.css-mistica.js +2 -2
  312. package/dist-es/tag.js +11 -11
  313. package/dist-es/text-field-base.css-mistica.js +4 -0
  314. package/dist-es/text-field-base.css.ts.vanilla.js +2 -0
  315. package/dist-es/text-field-base.js +134 -328
  316. package/dist-es/text-field-components.css-mistica.js +4 -0
  317. package/dist-es/text-field-components.css.ts.vanilla.js +2 -0
  318. package/dist-es/text-field-components.js +56 -157
  319. package/dist-es/text-link.css-mistica.js +3 -3
  320. package/dist-es/text.js +159 -92
  321. package/dist-es/theme-context-provider.js +1 -1
  322. package/dist-es/title.js +50 -18
  323. package/dist-es/tooltip.css-mistica.js +3 -3
  324. package/dist-es/tooltip.js +90 -64
  325. package/dist-es/touchable.css-mistica.js +2 -2
  326. package/dist-es/touchable.js +10 -10
  327. package/dist-es/utils/animation.js +28 -62
  328. package/dist-es/utils/aspect-ratio-support.css-mistica.js +6 -0
  329. package/dist-es/utils/aspect-ratio-support.css.ts.vanilla.js +2 -0
  330. package/dist-es/utils/aspect-ratio-support.js +34 -58
  331. package/dist-es/utils/dom.js +7 -5
  332. package/dist-es/video.css-mistica.js +2 -2
  333. package/package.json +2 -1
package/dist-es/chip.js CHANGED
@@ -11,69 +11,112 @@ function _defineProperty(obj, key, value) {
11
11
  }
12
12
  return obj;
13
13
  }
14
- import h from "classnames";
15
- import { useTheme as g } from "./hooks.js";
16
- import o from "./box.js";
17
- import { Text2 as p } from "./text.js";
18
- import v from "./icon-button.js";
19
- import x from "./generated/mistica-icons/icon-close-regular.js";
20
- import { pxToRem as C } from "./utils/css.js";
21
- import { iconActive as I, icon as y, chipVariants as c, chipInteractiveVariants as R } from "./chip.css-mistica.js";
22
- import { jsxs as a, Fragment as b, jsx as e } from "./_virtual/jsx-runtime.js";
23
- var A = function(t) {
24
- var ref = g(), l = ref.texts, s = ref.isDarkMode, m = ref.colors, i = t.Icon, d = t.children, f = t.id, r = /* @__PURE__ */ a(b, {
14
+ function _objectSpread(target) {
15
+ for(var i = 1; i < arguments.length; i++){
16
+ var source = arguments[i] != null ? arguments[i] : {};
17
+ var ownKeys = Object.keys(source);
18
+ if (typeof Object.getOwnPropertySymbols === "function") {
19
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
+ }));
22
+ }
23
+ ownKeys.forEach(function(key) {
24
+ _defineProperty(target, key, source[key]);
25
+ });
26
+ }
27
+ return target;
28
+ }
29
+ function ownKeys(object, enumerableOnly) {
30
+ var keys = Object.keys(object);
31
+ if (Object.getOwnPropertySymbols) {
32
+ var symbols = Object.getOwnPropertySymbols(object);
33
+ if (enumerableOnly) {
34
+ symbols = symbols.filter(function(sym) {
35
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
36
+ });
37
+ }
38
+ keys.push.apply(keys, symbols);
39
+ }
40
+ return keys;
41
+ }
42
+ function _objectSpreadProps(target, source) {
43
+ source = source != null ? source : {};
44
+ if (Object.getOwnPropertyDescriptors) {
45
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
46
+ } else {
47
+ ownKeys(Object(source)).forEach(function(key) {
48
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
49
+ });
50
+ }
51
+ return target;
52
+ }
53
+ import x from "classnames";
54
+ import { useTheme as C } from "./hooks.js";
55
+ import r from "./box.js";
56
+ import { Text2 as y } from "./text.js";
57
+ import R from "./icon-button.js";
58
+ import b from "./generated/mistica-icons/icon-close-regular.js";
59
+ import { pxToRem as j } from "./utils/css.js";
60
+ import { iconActive as v, icon as z, chipVariants as c, chipInteractiveVariants as B } from "./chip.css-mistica.js";
61
+ import { getPrefixedDataAttributes as l } from "./utils/dom.js";
62
+ import { jsxs as m, Fragment as I, jsx as e } from "./_virtual/jsx-runtime.js";
63
+ var q = function(param) {
64
+ var t = param.Icon, d = param.children, p = param.id, i = param.dataAttributes, o = param.active, n = param.onClose;
65
+ var ref = C(), f = ref.texts, u = ref.isDarkMode, h = ref.colors, s = /* @__PURE__ */ m(I, {
25
66
  children: [
26
- i && /* @__PURE__ */ e(o, {
67
+ t && /* @__PURE__ */ e(r, {
27
68
  paddingRight: 4,
28
- className: t.active ? I : y,
29
- children: /* @__PURE__ */ e(i, {
69
+ className: o ? v : z,
70
+ children: /* @__PURE__ */ e(t, {
30
71
  color: "currentColor",
31
- size: C(16)
72
+ size: j(16)
32
73
  })
33
74
  }),
34
- /* @__PURE__ */ e(p, {
35
- id: f,
75
+ /* @__PURE__ */ e(y, {
76
+ id: p,
36
77
  medium: !0,
37
78
  truncate: 1,
38
79
  color: "currentColor",
39
80
  children: d
40
81
  })
41
82
  ]
42
- }), n = i ? 8 : 12;
43
- if (t.onClose) return /* @__PURE__ */ a(o, {
83
+ }), a = t ? 8 : 12;
84
+ if (n) return /* @__PURE__ */ m(r, _objectSpreadProps(_objectSpread({
44
85
  className: c.default,
45
- paddingLeft: n,
86
+ paddingLeft: a
87
+ }, l(i, "Chip")), {
46
88
  children: [
47
- r,
48
- /* @__PURE__ */ e(o, {
89
+ s,
90
+ /* @__PURE__ */ e(r, {
49
91
  paddingLeft: 4,
50
- children: /* @__PURE__ */ e(v, {
92
+ children: /* @__PURE__ */ e(R, {
51
93
  size: 24,
52
94
  style: {
53
95
  display: "flex",
54
96
  justifyContent: "center",
55
97
  alignItems: "center"
56
98
  },
57
- "aria-label": l.closeButtonLabel,
99
+ "aria-label": f.closeButtonLabel,
58
100
  onPress: function() {
59
- return t.onClose();
101
+ return n();
60
102
  },
61
- children: /* @__PURE__ */ e(x, {
103
+ children: /* @__PURE__ */ e(b, {
62
104
  size: 16,
63
- color: m.neutralMedium
105
+ color: h.neutralMedium
64
106
  })
65
107
  })
66
108
  })
67
109
  ]
68
- });
110
+ }));
69
111
  {
70
- var u = t.active !== void 0;
71
- return /* @__PURE__ */ e(o, {
72
- className: h(c[t.active ? "active" : "default"], _defineProperty({}, R[s ? "dark" : "light"], u)),
73
- paddingLeft: n,
74
- paddingRight: 12,
75
- children: r
76
- });
112
+ var g = o !== void 0;
113
+ return /* @__PURE__ */ e(r, _objectSpreadProps(_objectSpread({
114
+ className: x(c[o ? "active" : "default"], _defineProperty({}, B[u ? "dark" : "light"], g)),
115
+ paddingLeft: a,
116
+ paddingRight: 12
117
+ }, l(i, "Chip")), {
118
+ children: s
119
+ }));
77
120
  }
78
121
  };
79
- export { A as default };
122
+ export { q as default };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
2
  import "./circle.css.ts.vanilla.js";
3
- var r = "_1wpwyyp1 _1y2v1nf7b _1y2v1nf7q _1y2v1nf7k _1y2v1nfba";
3
+ var r = "_1wpwyyp1 _1y2v1nf4y _1y2v1nf5d _1y2v1nf57 _1y2v1nf8x";
4
4
  export { r as circle };
@@ -1,7 +1,7 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
2
  import "./credit-card-number-field.css.ts.vanilla.js";
3
- var a = "yvyo3q0", o = "yvyo3q2", r = "_1y2v1nf77", f = {
4
- default: "yvyo3q4 _1y2v1nf76 yvyo3q5",
5
- backface: "yvyo3q4 _1y2v1nf76 yvyo3q6"
3
+ var a = "yvyo3q0", o = "yvyo3q2", r = "_1y2v1nf4u", f = {
4
+ default: "yvyo3q4 _1y2v1nf4t yvyo3q5",
5
+ backface: "yvyo3q4 _1y2v1nf4t yvyo3q6"
6
6
  };
7
7
  export { a as flip, o as flipBack, r as flipFront, f as variants };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
2
  import "./cvv-field.css.ts.vanilla.js";
3
- var v = "_10ijton2 _1y2v1nf1i", i = "_1y2v1nf7b _1y2v1nf7q";
3
+ var v = "_10ijton2 _1y2v1nf1i", i = "_1y2v1nf4y _1y2v1nf5d";
4
4
  export { v as cvvText, i as tooltipContainer };
@@ -128,7 +128,7 @@ import { TextFieldBaseAutosuggest as M } from "./text-field-base.js";
128
128
  import R from "./generated/mistica-icons/icon-calendar-regular.js";
129
129
  import H from "react-datetime";
130
130
  import S from "./overlay.js";
131
- import { DEFAULT_WIDTH as I } from "./text-field-components.js";
131
+ import { DEFAULT_WIDTH as I } from "./text-field-components.css-mistica.js";
132
132
  import g from "./icon-button.js";
133
133
  import { cancelEvent as B, createChangeEvent as E } from "./utils/dom.js";
134
134
  import { useTheme as F, useElementDimensions as L } from "./hooks.js";
@@ -1,7 +1,7 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
2
  import "./dialog.css.ts.vanilla.js";
3
- var _ = "_3dl29lb", y = "_3dl29l6", f = "_3dl29ll _1y2v1nf84", l = "_3dl29lj _1y2v1nf7x _1y2v1nfas", a = "_3dl29lm", d = "_3dl29l8 _1y2v1nf83 _1y2v1nf8h _1y2v1nf8v _1y2v1nf99 _1y2v1nf77 _1y2v1nfbj _1y2v1nfcb", o = "_3dl29la _1y2v1nf2f _1y2v1nfbd", r = "_3dl29l5 _1y2v1nf78 _1y2v1nf7b _1y2v1nf7k _1y2v1nf7q _1y2v1nf7h _1y2v1nfbj _1y2v1nfcb _1y2v1nfcp _1y2v1nfbx _1y2v1nf2i", t = {
4
- dialog: "_3dl29ld _1y2v1nf7b _1y2v1nf7h _1y2v1nf7n _1y2v1nf8w _1y2v1nf9a _1y2v1nf86 _1y2v1nf8i",
5
- default: "_3dl29ld _1y2v1nf7b _1y2v1nf7h _1y2v1nf7n _1y2v1nf84 _1y2v1nf8i _1y2v1nf8w _1y2v1nf9a"
6
- }, i = "_3dl29l3 _1y2v1nf76";
7
- export { _ as closedModalContent, y as closedOpactityLayer, f as dialogActions, l as dialogContent, a as iconContainer, d as modalCloseButtonContainer, o as modalContent, r as modalOpacityLayer, t as variants, i as wrapper };
3
+ var _ = "_3dl29lb", y = "_3dl29l6", f = "_3dl29ll _1y2v1nf5r", l = "_3dl29lj _1y2v1nf5k _1y2v1nf8f", a = "_3dl29lm", d = "_3dl29l8 _1y2v1nf5q _1y2v1nf64 _1y2v1nf6i _1y2v1nf6w _1y2v1nf4u _1y2v1nf96 _1y2v1nf9y", r = "_3dl29la _1y2v1nf2f _1y2v1nf90", o = "_3dl29l5 _1y2v1nf4v _1y2v1nf4y _1y2v1nf57 _1y2v1nf5d _1y2v1nf54 _1y2v1nf96 _1y2v1nf9y _1y2v1nfac _1y2v1nf9k _1y2v1nf2i", t = {
4
+ dialog: "_3dl29ld _1y2v1nf4y _1y2v1nf54 _1y2v1nf5a _1y2v1nf6j _1y2v1nf6x _1y2v1nf5t _1y2v1nf65",
5
+ default: "_3dl29ld _1y2v1nf4y _1y2v1nf54 _1y2v1nf5a _1y2v1nf5r _1y2v1nf65 _1y2v1nf6j _1y2v1nf6x"
6
+ }, i = "_3dl29l3 _1y2v1nf4t";
7
+ export { _ as closedModalContent, y as closedOpactityLayer, f as dialogActions, l as dialogContent, a as iconContainer, d as modalCloseButtonContainer, r as modalContent, o as modalOpacityLayer, t as variants, i as wrapper };
package/dist-es/dialog.js CHANGED
@@ -371,6 +371,7 @@ var A = function(e) {
371
371
  onClick: B,
372
372
  className: T($, _defineProperty({}, ee, a)),
373
373
  role: "dialog",
374
+ "data-component-name": "Dialog",
374
375
  children: /* @__PURE__ */ o("div", {
375
376
  onClick: function(h) {
376
377
  return h.stopPropagation();
@@ -1,7 +1,8 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
+ import "./text-field-components.css.ts.vanilla.js";
2
3
  import "./double-field.css.ts.vanilla.js";
3
- var n = {
4
- default: "skrulh1 _1y2v1nf7b _1y2v1nf7g _1y2v1nf9i",
5
- fullWidth: "skrulh2 _1y2v1nf7b _1y2v1nf7g _1y2v1nf9i"
4
+ var y = {
5
+ default: "skrulh1 _1y2v1nf4y _1y2v1nf53 _1y2v1nf75",
6
+ fullWidth: "skrulh2 _1y2v1nf4y _1y2v1nf53 _1y2v1nf75"
6
7
  };
7
- export { n as variants };
8
+ export { y as variants };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
2
  import "./empty-state-card.css.ts.vanilla.js";
3
- var n = "_1azor6p0", o = "_1azor6p4 _1y2v1nf9t _1y2v1nfa8", v = "_1azor6p2 _1y2v1nf7d _1y2v1nfaa";
3
+ var n = "_1azor6p0", o = "_1azor6p4 _1y2v1nf7g _1y2v1nf7v", v = "_1azor6p2 _1y2v1nf50 _1y2v1nf7x";
4
4
  export { n as container, o as iconContainer, v as image };
@@ -1,9 +1,9 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
2
  import "./empty-state.css.ts.vanilla.js";
3
- var n = "_13fzrua2 _1y2v1nf7b _1y2v1nf74", v = {
3
+ var n = "_13fzrua2 _1y2v1nf4y _1y2v1nf4s", v = {
4
4
  default: "_13fzrua3",
5
5
  largeImage: "_13fzrua4"
6
- }, e = "_13fzrua9 _1y2v1nf9v _1y2v1nfaa", f = "_13fzruac", _ = "_13fzrua7 _1y2v1nf9y", o = "_13fzrua5", u = "_13fzruab _1y2v1nf7d", t = {
6
+ }, e = "_13fzrua9 _1y2v1nf7i _1y2v1nf7x", f = "_13fzruac", _ = "_13fzrua7 _1y2v1nf7l", o = "_13fzrua5", u = "_13fzruab _1y2v1nf50", t = {
7
7
  backgroundColor: "var(--_13fzrua0)"
8
8
  };
9
9
  export { n as container, v as contentVariants, e as iconContainer, f as inverseBorder, _ as largeImage, o as largeImageContainer, u as smallImage, t as vars };
@@ -55,21 +55,21 @@ import k from "classnames";
55
55
  import { useIsInverseVariant as I } from "./theme-variant-context.js";
56
56
  import { ButtonPrimary as B } from "./button.js";
57
57
  import { useTheme as N } from "./hooks.js";
58
- import m from "./stack.js";
58
+ import l from "./stack.js";
59
59
  import { Text6 as C, Text3 as S } from "./text.js";
60
- import T from "./button-group.js";
61
- import { container as V, inverseBorder as b, vars as j, contentVariants as c, iconContainer as A, largeImageContainer as D, largeImage as E, smallImage as P } from "./empty-state.css-mistica.js";
60
+ import E from "./button-group.js";
61
+ import { container as T, inverseBorder as V, vars as b, contentVariants as c, iconContainer as j, largeImageContainer as A, largeImage as D, smallImage as P } from "./empty-state.css-mistica.js";
62
62
  import { vars as d } from "./skins/skin-contract.css-mistica.js";
63
63
  import { AspectRatioElement as R } from "./utils/aspect-ratio-support.js";
64
64
  import { getPrefixedDataAttributes as $ } from "./utils/dom.js";
65
65
  import { sprinkles as G } from "./sprinkles.css-mistica.js";
66
- import { jsxs as i, jsx as r } from "./_virtual/jsx-runtime.js";
66
+ import { jsxs as t, jsx as r } from "./_virtual/jsx-runtime.js";
67
67
  var Z = function(param) {
68
- var p = param.title, f = param.description, e = param.button, v = param.buttonLink, a = param.largeImageUrl, t = param.imageUrl, n = param.icon, g = param["aria-label"], h = param.dataAttributes;
69
- var ref = N(), l = ref.colors, u = ref.isDarkMode, o = I(), s = t ? /* @__PURE__ */ r("img", {
68
+ var p = param.title, f = param.description, e = param.button, v = param.buttonLink, a = param.largeImageUrl, i = param.imageUrl, n = param.icon, g = param["aria-label"], h = param.dataAttributes;
69
+ var ref = N(), m = ref.colors, u = ref.isDarkMode, o = I(), s = i ? /* @__PURE__ */ r("img", {
70
70
  className: P,
71
71
  alt: "",
72
- src: t
72
+ src: i
73
73
  }) : void 0, y = _objectSpreadProps(_objectSpread({}, (e == null ? void 0 : e.type) === B ? {
74
74
  primaryButton: e
75
75
  } : {
@@ -77,28 +77,28 @@ var Z = function(param) {
77
77
  }), {
78
78
  link: v
79
79
  });
80
- return /* @__PURE__ */ i("div", _objectSpreadProps(_objectSpread({
81
- className: k(V, o ? b : G({
80
+ return /* @__PURE__ */ t("div", _objectSpreadProps(_objectSpread({
81
+ className: k(T, o ? V : G({
82
82
  border: "regular"
83
83
  })),
84
- style: x(_defineProperty({}, j.backgroundColor, o && !u ? d.colors.backgroundBrand : d.colors.backgroundContainer)),
84
+ style: x(_defineProperty({}, b.backgroundColor, o && !u ? d.colors.backgroundBrand : d.colors.backgroundContainer)),
85
85
  "aria-label": g,
86
86
  role: "region"
87
- }, $(h)), {
87
+ }, $(h, "EmptyState")), {
88
88
  children: [
89
89
  /* @__PURE__ */ r("div", {
90
90
  style: {
91
91
  flex: 1
92
92
  },
93
- children: /* @__PURE__ */ i(m, {
93
+ children: /* @__PURE__ */ t(l, {
94
94
  space: 24,
95
95
  className: a ? c.largeImage : c.default,
96
96
  children: [
97
97
  s != null ? s : n && /* @__PURE__ */ r("div", {
98
- className: A,
98
+ className: j,
99
99
  children: n
100
100
  }),
101
- /* @__PURE__ */ i(m, {
101
+ /* @__PURE__ */ t(l, {
102
102
  space: 16,
103
103
  children: [
104
104
  /* @__PURE__ */ r(C, {
@@ -108,12 +108,12 @@ var Z = function(param) {
108
108
  /* @__PURE__ */ r(S, {
109
109
  regular: !0,
110
110
  as: "p",
111
- color: o ? l.inverse : l.textSecondary,
111
+ color: o ? m.inverse : m.textSecondary,
112
112
  children: f
113
113
  })
114
114
  ]
115
115
  }),
116
- e && /* @__PURE__ */ r(T, _objectSpread({}, y))
116
+ e && /* @__PURE__ */ r(E, _objectSpread({}, y))
117
117
  ]
118
118
  })
119
119
  }),
@@ -124,10 +124,10 @@ var Z = function(param) {
124
124
  },
125
125
  children: a && /* @__PURE__ */ r(R, {
126
126
  aspectRatio: 16 / 9,
127
- className: D,
127
+ className: A,
128
128
  height: "100%",
129
129
  children: /* @__PURE__ */ r("div", {
130
- className: E,
130
+ className: D,
131
131
  style: {
132
132
  backgroundImage: "url(".concat(a, ")")
133
133
  }
@@ -1,9 +1,62 @@
1
+ function _defineProperty(obj, key, value) {
2
+ if (key in obj) {
3
+ Object.defineProperty(obj, key, {
4
+ value: value,
5
+ enumerable: true,
6
+ configurable: true,
7
+ writable: true
8
+ });
9
+ } else {
10
+ obj[key] = value;
11
+ }
12
+ return obj;
13
+ }
14
+ function _objectSpread(target) {
15
+ for(var i = 1; i < arguments.length; i++){
16
+ var source = arguments[i] != null ? arguments[i] : {};
17
+ var ownKeys = Object.keys(source);
18
+ if (typeof Object.getOwnPropertySymbols === "function") {
19
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
+ }));
22
+ }
23
+ ownKeys.forEach(function(key) {
24
+ _defineProperty(target, key, source[key]);
25
+ });
26
+ }
27
+ return target;
28
+ }
29
+ function ownKeys(object, enumerableOnly) {
30
+ var keys = Object.keys(object);
31
+ if (Object.getOwnPropertySymbols) {
32
+ var symbols = Object.getOwnPropertySymbols(object);
33
+ if (enumerableOnly) {
34
+ symbols = symbols.filter(function(sym) {
35
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
36
+ });
37
+ }
38
+ keys.push.apply(keys, symbols);
39
+ }
40
+ return keys;
41
+ }
42
+ function _objectSpreadProps(target, source) {
43
+ source = source != null ? source : {};
44
+ if (Object.getOwnPropertyDescriptors) {
45
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
46
+ } else {
47
+ ownKeys(Object(source)).forEach(function(key) {
48
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
49
+ });
50
+ }
51
+ return target;
52
+ }
1
53
  import { wrapper as o } from "./fade-in.css-mistica.js";
2
- import { jsx as e } from "./_virtual/jsx-runtime.js";
3
- var r = "0.3s", l = function(param) {
4
- var i = param.children, tmp = param.className, n = tmp === void 0 ? "" : tmp, tmp1 = param.duration, t = tmp1 === void 0 ? r : tmp1, tmp2 = param.delay, a = tmp2 === void 0 ? "0" : tmp2;
5
- return /* @__PURE__ */ e("div", {
6
- className: "".concat(o, " ").concat(n),
54
+ import { getPrefixedDataAttributes as r } from "./utils/dom.js";
55
+ import { jsx as m } from "./_virtual/jsx-runtime.js";
56
+ var s = "0.3s", D = function(param) {
57
+ var i = param.children, tmp = param.className, e = tmp === void 0 ? "" : tmp, tmp1 = param.duration, t = tmp1 === void 0 ? s : tmp1, tmp2 = param.delay, a = tmp2 === void 0 ? "0" : tmp2, n = param.dataAttributes;
58
+ return /* @__PURE__ */ m("div", _objectSpreadProps(_objectSpread({}, r(n, "FadeIn")), {
59
+ className: "".concat(o, " ").concat(e),
7
60
  style: {
8
61
  animationDelay: a,
9
62
  WebkitAnimationDelay: a,
@@ -11,6 +64,6 @@ var r = "0.3s", l = function(param) {
11
64
  WebkitAnimationDuration: t
12
65
  },
13
66
  children: i
14
- });
67
+ }));
15
68
  };
16
- export { l as default };
69
+ export { D as default };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
2
  import "./feedback.css.ts.vanilla.js";
3
- var n = "gx6h6a3 _1y2v1nf7b _1y2v1nf9y _1y2v1nf9i", r = "_1y2v1nfbe _1y2v1nf7b _1y2v1nf7n", t = "gx6h6a1", v = "gx6h6a7", f = "gx6h6a5", o = "gx6h6a6", p = "gx6h6a4";
3
+ var n = "gx6h6a3 _1y2v1nf4y _1y2v1nf7l _1y2v1nf75", r = "_1y2v1nf91 _1y2v1nf4y _1y2v1nf5a", t = "gx6h6a1", v = "gx6h6a7", f = "gx6h6a5", o = "gx6h6a6", p = "gx6h6a4";
4
4
  export { n as container, r as desktopContainer, t as desktopContent, v as feedbackData, f as feedbackDataAppear, o as feedbackDataAppearActive, p as innerContainer };