@telefonica/mistica 16.1.0 → 16.2.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 (148) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/accordion.css-mistica.js +12 -9
  3. package/dist/accordion.css.d.ts +1 -0
  4. package/dist/accordion.js +36 -39
  5. package/dist/align.css-mistica.js +12 -0
  6. package/dist/align.css.d.ts +1 -0
  7. package/dist/align.css.ts.vanilla.css-mistica.js +11 -0
  8. package/dist/align.d.ts +12 -0
  9. package/dist/align.js +79 -0
  10. package/dist/box.css-mistica.js +41 -0
  11. package/dist/box.css.d.ts +23 -0
  12. package/dist/box.css.ts.vanilla.css-mistica.js +11 -0
  13. package/dist/box.d.ts +4 -0
  14. package/dist/box.js +39 -31
  15. package/dist/boxed.css-mistica.js +10 -5
  16. package/dist/boxed.css.d.ts +3 -0
  17. package/dist/boxed.js +20 -24
  18. package/dist/callout.css-mistica.js +12 -4
  19. package/dist/callout.css.d.ts +1 -0
  20. package/dist/callout.js +14 -22
  21. package/dist/card.css-mistica.js +26 -23
  22. package/dist/card.css.d.ts +1 -0
  23. package/dist/card.js +17 -23
  24. package/dist/community/advanced-data-card.css-mistica.js +32 -23
  25. package/dist/community/advanced-data-card.css.d.ts +3 -0
  26. package/dist/community/advanced-data-card.js +46 -55
  27. package/dist/empty-state.css-mistica.js +11 -8
  28. package/dist/empty-state.css.d.ts +1 -0
  29. package/dist/empty-state.js +10 -13
  30. package/dist/form.css-mistica.js +12 -0
  31. package/dist/form.css.d.ts +1 -0
  32. package/dist/form.js +8 -10
  33. package/dist/grid.css-mistica.js +143 -126
  34. package/dist/grid.css.d.ts +13 -0
  35. package/dist/grid.js +35 -38
  36. package/dist/hero.css-mistica.js +14 -8
  37. package/dist/hero.css.d.ts +2 -0
  38. package/dist/hero.js +17 -25
  39. package/dist/image.js +23 -25
  40. package/dist/index.d.ts +1 -0
  41. package/dist/index.js +4 -0
  42. package/dist/inline.js +10 -11
  43. package/dist/list.css-mistica.js +12 -9
  44. package/dist/list.css.d.ts +1 -0
  45. package/dist/list.js +43 -46
  46. package/dist/loading-screen.js +16 -16
  47. package/dist/logo-blau.d.ts +1 -1
  48. package/dist/logo-blau.js +10 -10
  49. package/dist/logo-common.d.ts +1 -0
  50. package/dist/logo-movistar.d.ts +1 -1
  51. package/dist/logo-movistar.js +4 -4
  52. package/dist/logo-o2-new.d.ts +1 -1
  53. package/dist/logo-o2-new.js +5 -5
  54. package/dist/logo-o2.d.ts +1 -1
  55. package/dist/logo-o2.js +5 -5
  56. package/dist/logo-telefonica.d.ts +1 -1
  57. package/dist/logo-telefonica.js +4 -4
  58. package/dist/logo-tu.d.ts +1 -1
  59. package/dist/logo-tu.js +5 -5
  60. package/dist/logo-vivo.d.ts +1 -1
  61. package/dist/logo-vivo.js +7 -7
  62. package/dist/logo.d.ts +9 -8
  63. package/dist/logo.js +125 -102
  64. package/dist/navigation-bar.css-mistica.js +23 -20
  65. package/dist/navigation-bar.css.d.ts +1 -0
  66. package/dist/navigation-bar.js +30 -37
  67. package/dist/package-version.js +1 -1
  68. package/dist/phone-number-field.d.ts +1 -4
  69. package/dist/phone-number-field.js +52 -82
  70. package/dist/popover.d.ts +1 -0
  71. package/dist/popover.js +9 -10
  72. package/dist/sheet-common.css-mistica.js +5 -5
  73. package/dist/skeleton-base.js +10 -12
  74. package/dist/skeletons.css-mistica.js +11 -5
  75. package/dist/skeletons.css.d.ts +1 -0
  76. package/dist/snackbar.css-mistica.js +20 -14
  77. package/dist/snackbar.css.d.ts +3 -1
  78. package/dist/snackbar.js +65 -75
  79. package/dist/tag.css-mistica.js +15 -4
  80. package/dist/tag.css.d.ts +2 -0
  81. package/dist/tag.js +20 -24
  82. package/dist/text-field-base.d.ts +1 -1
  83. package/dist/text-field-components.css-mistica.js +16 -10
  84. package/dist/text-field-components.css.d.ts +1 -0
  85. package/dist/text-field-components.js +32 -35
  86. package/dist/timer.js +42 -43
  87. package/dist/tooltip.d.ts +3 -1
  88. package/dist/tooltip.js +106 -106
  89. package/dist/touchable.js +47 -42
  90. package/dist-es/accordion.css-mistica.js +3 -3
  91. package/dist-es/accordion.js +58 -61
  92. package/dist-es/align.css-mistica.js +3 -0
  93. package/dist-es/align.css.ts.vanilla.css-mistica.js +2 -0
  94. package/dist-es/align.js +70 -0
  95. package/dist-es/box.css-mistica.js +24 -0
  96. package/dist-es/box.css.ts.vanilla.css-mistica.js +2 -0
  97. package/dist-es/box.js +43 -35
  98. package/dist-es/boxed.css-mistica.js +5 -3
  99. package/dist-es/boxed.js +28 -32
  100. package/dist-es/callout.css-mistica.js +7 -2
  101. package/dist-es/callout.js +44 -52
  102. package/dist-es/card.css-mistica.js +4 -4
  103. package/dist-es/card.js +11 -17
  104. package/dist-es/community/advanced-data-card.css-mistica.js +7 -7
  105. package/dist-es/community/advanced-data-card.js +90 -99
  106. package/dist-es/empty-state.css-mistica.js +3 -3
  107. package/dist-es/empty-state.js +19 -22
  108. package/dist-es/form.css-mistica.js +3 -0
  109. package/dist-es/form.js +12 -14
  110. package/dist-es/grid.css-mistica.js +123 -112
  111. package/dist-es/grid.js +38 -41
  112. package/dist-es/hero.css-mistica.js +2 -2
  113. package/dist-es/hero.js +36 -44
  114. package/dist-es/image.js +28 -30
  115. package/dist-es/index.js +1844 -1843
  116. package/dist-es/inline.js +19 -20
  117. package/dist-es/list.css-mistica.js +2 -2
  118. package/dist-es/list.js +75 -78
  119. package/dist-es/loading-screen.js +30 -30
  120. package/dist-es/logo-blau.js +11 -11
  121. package/dist-es/logo-movistar.js +5 -5
  122. package/dist-es/logo-o2-new.js +8 -8
  123. package/dist-es/logo-o2.js +8 -8
  124. package/dist-es/logo-telefonica.js +4 -4
  125. package/dist-es/logo-tu.js +8 -8
  126. package/dist-es/logo-vivo.js +16 -16
  127. package/dist-es/logo.js +132 -109
  128. package/dist-es/navigation-bar.css-mistica.js +11 -11
  129. package/dist-es/navigation-bar.js +80 -87
  130. package/dist-es/package-version.js +1 -1
  131. package/dist-es/phone-number-field.js +59 -89
  132. package/dist-es/popover.js +17 -18
  133. package/dist-es/sheet-common.css-mistica.js +2 -2
  134. package/dist-es/skeleton-base.js +15 -17
  135. package/dist-es/skeletons.css-mistica.js +5 -2
  136. package/dist-es/snackbar.css-mistica.js +4 -4
  137. package/dist-es/snackbar.js +93 -103
  138. package/dist-es/style.css +1 -1
  139. package/dist-es/tag.css-mistica.js +2 -2
  140. package/dist-es/tag.js +34 -38
  141. package/dist-es/text-field-components.css-mistica.js +5 -2
  142. package/dist-es/text-field-components.js +48 -51
  143. package/dist-es/timer.js +80 -81
  144. package/dist-es/tooltip.js +148 -148
  145. package/dist-es/touchable.js +55 -50
  146. package/package.json +1 -1
  147. package/dist/sprinkles.css-mistica.js +0 -2494
  148. package/dist-es/sprinkles.css-mistica.js +0 -2485
package/dist-es/inline.js CHANGED
@@ -52,15 +52,14 @@ function _object_spread_props(target, source) {
52
52
  return target;
53
53
  }
54
54
  import { jsx as m } from "react/jsx-runtime";
55
- import * as g from "react";
56
- import y from "classnames";
57
- import { sprinkles as v } from "./sprinkles.css-mistica.js";
58
- import { getPrefixedDataAttributes as h } from "./utils/dom.js";
59
- import { inline as I, wrap as S, fullWidth as W, noFullWidth as x, stringSpaceWithWrap as k, stringSpace as T, marginInline as V, vars as r } from "./inline.css-mistica.js";
60
- import { applyCssVars as $ } from "./utils/css.js";
61
- import { isIos as A, isRunningAcceptanceTest as C } from "./utils/platform.js";
62
- import { useTheme as D } from "./hooks.js";
63
- const i = (t)=>typeof t == "number" ? `${t}px` : `space-${t}`, R = (t)=>{
55
+ import * as b from "react";
56
+ import g from "classnames";
57
+ import { getPrefixedDataAttributes as y } from "./utils/dom.js";
58
+ import { inline as v, wrap as h, fullWidth as S, noFullWidth as I, stringSpaceWithWrap as W, stringSpace as x, marginInline as T, vars as r } from "./inline.css-mistica.js";
59
+ import { applyCssVars as V } from "./utils/css.js";
60
+ import { isIos as $, isRunningAcceptanceTest as k } from "./utils/platform.js";
61
+ import { useTheme as A } from "./hooks.js";
62
+ const i = (t)=>typeof t == "number" ? `${t}px` : `space-${t}`, C = (t)=>{
64
63
  if (typeof t == "number" || typeof t == "string") return {
65
64
  [r.space]: i(t)
66
65
  };
@@ -69,27 +68,27 @@ const i = (t)=>typeof t == "number" ? `${t}px` : `space-${t}`, R = (t)=>{
69
68
  [r.spaceDesktop]: i(t.desktop)
70
69
  };
71
70
  return t.tablet && (e[r.spaceTablet] = i(t.tablet)), e;
72
- }, j = (param)=>{
73
- let { space: t, className: e, children: p, role: l, alignItems: f = "stretch", "aria-label": o, "aria-labelledby": c, fullWidth: d, wrap: s, dataAttributes: u } = param;
74
- const { platformOverrides: a } = D(), b = typeof t == "string";
71
+ }, D = (param)=>{
72
+ let { space: t, className: e, children: p, role: l, alignItems: f = "stretch", "aria-label": o, "aria-labelledby": c, fullWidth: d, wrap: a, dataAttributes: u } = param;
73
+ const { platformOverrides: s } = A();
75
74
  return /* @__PURE__ */ m("div", _object_spread_props(_object_spread({
76
- className: y(e, I, v({
75
+ className: g(e, v, a ? h : d ? S : I, typeof t == "string" ? a ? W : x : T),
76
+ style: _object_spread_props(_object_spread({}, V(C(t))), {
77
77
  alignItems: f
78
- }), s ? S : d ? W : x, b ? s ? k : T : V),
79
- style: $(R(t)),
78
+ }),
80
79
  role: l,
81
80
  "aria-label": o,
82
81
  "aria-labelledby": o ? void 0 : c
83
- }, h(u, "Inline")), {
84
- children: g.Children.map(p, (n)=>n || n === 0 ? /* @__PURE__ */ m("div", {
82
+ }, y(u, "Inline")), {
83
+ children: b.Children.map(p, (n)=>n || n === 0 ? /* @__PURE__ */ m("div", {
85
84
  role: l === "list" ? "listitem" : void 0,
86
85
  style: {
87
86
  // Hack to fix https://jira.tid.es/browse/WEB-1683
88
87
  // In iOS the inline component sometimes cuts the last line of the content
89
- paddingBottom: A(a) && !C(a) ? 1 : void 0
88
+ paddingBottom: $(s) && !k(s) ? 1 : void 0
90
89
  },
91
90
  children: n
92
91
  }) : null)
93
92
  }));
94
- }, z = j;
95
- export { z as default };
93
+ }, P = D;
94
+ export { P as default };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./list.css.ts.vanilla.css-mistica.js";
3
- var _ = "_1y2v1nfhk _1y2v1nfi2 _1y2v1nfi4", f = "_1y2v1nfhk _1y2v1nfhz _1y2v1nfht _1y2v1nfja _1y2v1nfio _1y2v1nfi2", y = "_1y2v1nfhk _1y2v1nfhz", a = "_1y2v1nfhk _1y2v1nfi7 _1y2v1nfjx", r = "_2buj9ge _1y2v1nfhk _1y2v1nfhz", i = "_2buj9gd", t = "_2buj9g0", h = "_1y2v1nfhk _1y2v1nfhp _1y2v1nfio", o = "_2buj9gk _1y2v1nfhk", e = "_1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfk2 _1y2v1nf7c _1y2v1nfaa _1y2v1nfbj _1y2v1nfhm _1y2v1nfi5", b = "_2buj9gm _1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfk2 _1y2v1nf7c _1y2v1nfaa _1y2v1nfbj _1y2v1nfhk _1y2v1nfhz _1y2v1nfi4 _1y2v1nfi8 _1y2v1nfio", d = "_1y2v1nfkk", k = "_2buj9gb", u = "_2buj9gc", g = "_1y2v1nfhk _1y2v1nfhq _1y2v1nfi6", c = "_1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfi7 _1y2v1nfk2 _1y2v1nf7c _1y2v1nfhm _1y2v1nfio", j = "_2buj9g1", l = "_2buj9g2";
4
- export { _ as asset, f as badge, y as center, a as content, r as detail, i as detailRight, t as disabled, h as dualActionContainer, o as dualActionDivider, e as dualActionLeft, b as dualActionRight, d as pointer, k as rightContent, u as rightRestrictedWidth, g as rowBody, c as rowContent, j as touchableBackground, l as touchableBackgroundInverse };
3
+ var _ = "_1y2v1nfhk _1y2v1nfi2 _1y2v1nfi4", f = "_1y2v1nfhk _1y2v1nfhz _1y2v1nfht _1y2v1nfja _1y2v1nfio _1y2v1nfi2", y = "_1y2v1nfhk _1y2v1nfhz", a = "_1y2v1nfhk _1y2v1nfi7 _1y2v1nfjx", r = "_2buj9gf _1y2v1nfhk _1y2v1nfhz", i = "_2buj9ge", t = "_2buj9g0", h = "_1y2v1nfhk _1y2v1nfhp _1y2v1nfio", o = "_2buj9gl _1y2v1nfhk", e = "_1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfk2 _1y2v1nf7c _1y2v1nfaa _1y2v1nfbj _1y2v1nfhm _1y2v1nfi5", d = "_2buj9gn _1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfk2 _1y2v1nf7c _1y2v1nfaa _1y2v1nfbj _1y2v1nfhk _1y2v1nfhz _1y2v1nfi4 _1y2v1nfi8 _1y2v1nfio", b = "_1y2v1nfkk", u = "_2buj9gc", g = "_2buj9gd", k = "_1y2v1nfi7", c = "_1y2v1nfhk _1y2v1nfhq _1y2v1nfi6", j = "_1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfi7 _1y2v1nfk2 _1y2v1nf7c _1y2v1nfhm _1y2v1nfio", l = "_2buj9g2", m = "_2buj9g3";
4
+ export { _ as asset, f as badge, y as center, a as content, r as detail, i as detailRight, t as disabled, h as dualActionContainer, o as dualActionDivider, e as dualActionLeft, d as dualActionRight, b as pointer, u as rightContent, g as rightRestrictedWidth, k as row, c as rowBody, j as rowContent, l as touchableBackground, m as touchableBackgroundInverse };
package/dist-es/list.js CHANGED
@@ -79,8 +79,8 @@ function _object_without_properties_loose(source, excluded) {
79
79
  return target;
80
80
  }
81
81
  import { jsx as t, jsxs as X } from "react/jsx-runtime";
82
- import * as u from "react";
83
- import m from "classnames";
82
+ import * as m from "react";
83
+ import u from "classnames";
84
84
  import { BaseTouchable as te } from "./touchable.js";
85
85
  import { Text3 as xe, Text1 as ve, Text2 as Y } from "./text.js";
86
86
  import o from "./box.js";
@@ -94,12 +94,11 @@ import Re from "./checkbox.js";
94
94
  import { Boxed as Ie } from "./boxed.js";
95
95
  import Ce from "./divider.js";
96
96
  import { getPrefixedDataAttributes as K } from "./utils/dom.js";
97
- import { rowContent as q, touchableBackground as z, touchableBackgroundInverse as G, pointer as re, content as Te, center as J, disabled as I, asset as Ne, rowBody as ke, badge as Le, rightContent as Ae, rightRestrictedWidth as Se, detail as Ve, detailRight as Xe, dualActionContainer as Ee, dualActionLeft as Pe, dualActionDivider as De, dualActionRight as Me } from "./list.css-mistica.js";
98
- import { vars as Oe } from "./image.css-mistica.js";
97
+ import { rowContent as q, touchableBackground as z, touchableBackgroundInverse as G, pointer as re, row as Te, content as Ne, center as J, disabled as I, asset as Le, rowBody as ke, badge as Ae, rightContent as Se, rightRestrictedWidth as Ve, detail as Xe, detailRight as Ee, dualActionContainer as Pe, dualActionLeft as De, dualActionDivider as Me, dualActionRight as Oe } from "./list.css-mistica.js";
98
+ import { vars as We } from "./image.css-mistica.js";
99
99
  import { vars as d } from "./skins/skin-contract.css-mistica.js";
100
- import { applyCssVars as We } from "./utils/css.js";
101
- import { IconButton as ie, ToggleIconButton as ne } from "./icon-button.js";
102
- import { sprinkles as je } from "./sprinkles.css-mistica.js";
100
+ import { applyCssVars as je } from "./utils/css.js";
101
+ import { IconButton as ne, ToggleIconButton as ie } from "./icon-button.js";
103
102
  const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
104
103
  centerY: a
105
104
  }) : a ? /* @__PURE__ */ t("div", {
@@ -112,37 +111,37 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
112
111
  children: e
113
112
  })
114
113
  }) : e, Fe = (param)=>{
115
- let { withChevron: e, headline: a, headlineRef: r, extraRef: l, title: c, titleAs: v, titleLinesMax: g, subtitle: x, subtitleLinesMax: P, description: w, descriptionLinesMax: D, detail: h, asset: E, danger: T, badge: N, right: y, rightRef: f, extra: k, labelId: M, disabled: s, control: L } = param;
114
+ let { withChevron: e, headline: a, headlineRef: r, extraRef: l, title: c, titleAs: v, titleLinesMax: g, subtitle: x, subtitleLinesMax: P, description: w, descriptionLinesMax: D, detail: h, asset: E, danger: T, badge: N, right: y, rightRef: f, extra: L, labelId: M, disabled: s, control: k } = param;
116
115
  const A = oe(), S = [
117
116
  a,
118
117
  c,
119
118
  x,
120
119
  w,
121
- k
120
+ L
122
121
  ].filter(Boolean).length === 1;
123
122
  return /* @__PURE__ */ X(o, {
124
123
  paddingY: 16,
125
- className: Te,
124
+ className: Ne,
126
125
  id: M,
127
126
  children: [
128
127
  E && /* @__PURE__ */ t(o, {
129
128
  paddingRight: 16,
130
- className: m({
129
+ className: u({
131
130
  [J]: S,
132
131
  [I]: s
133
132
  }),
134
133
  "aria-hidden": !0,
135
134
  children: /* @__PURE__ */ t("div", {
136
- className: Ne,
137
- style: We({
135
+ className: Le,
136
+ style: je({
138
137
  color: T ? A ? d.colors.textErrorInverse : d.colors.textError : A ? d.colors.textPrimaryInverse : d.colors.textPrimary,
139
- [Oe.mediaBorderRadius]: d.borderRadii.mediaSmall
138
+ [We.mediaBorderRadius]: d.borderRadii.mediaSmall
140
139
  }),
141
140
  children: E
142
141
  })
143
142
  }),
144
143
  /* @__PURE__ */ X("div", {
145
- className: m(ke, {
144
+ className: u(ke, {
146
145
  [I]: s
147
146
  }),
148
147
  style: {
@@ -190,17 +189,17 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
190
189
  children: w
191
190
  })
192
191
  }),
193
- k && /* @__PURE__ */ t(o, {
192
+ L && /* @__PURE__ */ t(o, {
194
193
  ref: l,
195
194
  paddingTop: 2,
196
- children: k
195
+ children: L
197
196
  })
198
197
  ]
199
198
  }),
200
199
  N && /* @__PURE__ */ t(o, {
201
200
  paddingLeft: 16,
202
201
  children: /* @__PURE__ */ t("div", {
203
- className: m(Le, {
202
+ className: u(Ae, {
204
203
  [I]: s
205
204
  }),
206
205
  children: /* @__PURE__ */ t(ge, {
@@ -208,13 +207,13 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
208
207
  })
209
208
  })
210
209
  }),
211
- (h || y || e || L) && /* @__PURE__ */ X("div", {
212
- className: m(Ae, {
213
- [Se]: !!h
210
+ (h || y || e || k) && /* @__PURE__ */ X("div", {
211
+ className: u(Se, {
212
+ [Ve]: !!h
214
213
  }),
215
214
  children: [
216
215
  h && /* @__PURE__ */ t("div", {
217
- className: m(Ve, {
216
+ className: u(Xe, {
218
217
  [I]: s
219
218
  }),
220
219
  children: /* @__PURE__ */ t(Y, {
@@ -225,8 +224,8 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
225
224
  })
226
225
  }),
227
226
  y && /* @__PURE__ */ t("div", {
228
- className: m({
229
- [Xe]: !!h,
227
+ className: u({
228
+ [Ee]: !!h,
230
229
  [I]: s
231
230
  }),
232
231
  ref: f,
@@ -234,7 +233,7 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
234
233
  }),
235
234
  e && /* @__PURE__ */ t(o, {
236
235
  paddingLeft: h || y ? 4 : 0,
237
- className: m(J, {
236
+ className: u(J, {
238
237
  [I]: s
239
238
  }),
240
239
  children: /* @__PURE__ */ t(ye, {
@@ -242,10 +241,10 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
242
241
  direction: "right"
243
242
  })
244
243
  }),
245
- L && /* @__PURE__ */ t(o, {
244
+ k && /* @__PURE__ */ t(o, {
246
245
  paddingLeft: h || y ? 8 : 0,
247
246
  className: J,
248
- children: L
247
+ children: k
249
248
  })
250
249
  ]
251
250
  })
@@ -253,7 +252,7 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
253
252
  });
254
253
  }, Ye = (param)=>{
255
254
  let { value: e, defaultValue: a, onChange: r } = param;
256
- const l = e !== void 0, [c, v] = u.useState(!!a);
255
+ const l = e !== void 0, [c, v] = m.useState(!!a);
257
256
  return [
258
257
  l ? !!e : c,
259
258
  ()=>{
@@ -265,9 +264,9 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
265
264
  "checkbox",
266
265
  "radioValue",
267
266
  "iconButton"
268
- ].some((a)=>e[a] !== void 0), le = /*#__PURE__*/ u.forwardRef((e, a)=>{
267
+ ].some((a)=>e[a] !== void 0), le = /*#__PURE__*/ m.forwardRef((e, a)=>{
269
268
  var p, ee;
270
- const r = u.useId(), l = oe(), { asset: c, headline: v, title: g, titleAs: x, titleLinesMax: P, subtitle: w, subtitleLinesMax: D, description: h, descriptionLinesMax: E, detail: T, danger: N, badge: y, role: f, extra: k, withChevron: M, dataAttributes: s, right: L, "aria-label": A } = e, [Q, S] = u.useState(""), [de, ce] = u.useState(""), [se, he] = u.useState(""), me = [
269
+ const r = m.useId(), l = oe(), { asset: c, headline: v, title: g, titleAs: x, titleLinesMax: P, subtitle: w, subtitleLinesMax: D, description: h, descriptionLinesMax: E, detail: T, danger: N, badge: y, role: f, extra: L, withChevron: M, dataAttributes: s, right: k, "aria-label": A } = e, [Q, S] = m.useState(""), [de, ce] = m.useState(""), [se, he] = m.useState(""), ue = [
271
270
  g,
272
271
  Q,
273
272
  w,
@@ -275,7 +274,7 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
275
274
  de,
276
275
  T,
277
276
  se
278
- ].filter(Boolean).join(" "), B = A !== null && A !== void 0 ? A : e.href || e.to ? me : void 0, ue = Be(), b = e.disabled || e.radioValue !== void 0 && ue.disabled, O = !b && !l, W = !b && l, U = qe(e), V = !!e.onPress || !!e.href || !!e.to, fe = U ? !1 : M !== null && M !== void 0 ? M : V, Z = {
277
+ ].filter(Boolean).join(" "), B = A !== null && A !== void 0 ? A : e.href || e.to ? ue : void 0, me = Be(), b = e.disabled || e.radioValue !== void 0 && me.disabled, O = !b && !l, W = !b && l, U = qe(e), V = !!e.onPress || !!e.href || !!e.to, fe = U ? !1 : M !== null && M !== void 0 ? M : V, Z = {
279
278
  href: e.href,
280
279
  newTab: e.newTab,
281
280
  loadOnTop: e.loadOnTop,
@@ -285,11 +284,11 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
285
284
  onNavigate: e.onNavigate,
286
285
  onPress: e.onPress,
287
286
  trackingEvent: e.trackingEvent
288
- }, [_, $] = Ye(e.switch || e.checkbox || {}), R = (i)=>/* @__PURE__ */ t(Fe, {
287
+ }, [_, $] = Ye(e.switch || e.checkbox || {}), R = (n)=>/* @__PURE__ */ t(Fe, {
289
288
  asset: c,
290
289
  headline: v,
291
- headlineRef: (n)=>{
292
- n && S(n.textContent || "");
290
+ headlineRef: (i)=>{
291
+ i && S(i.textContent || "");
293
292
  },
294
293
  title: g,
295
294
  titleAs: x,
@@ -301,22 +300,22 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
301
300
  descriptionLinesMax: E,
302
301
  detail: T,
303
302
  danger: N,
304
- right: L,
305
- rightRef: (n)=>{
306
- n && he(n.innerText || n.textContent || "");
303
+ right: k,
304
+ rightRef: (i)=>{
305
+ i && he(i.innerText || i.textContent || "");
307
306
  },
308
- control: i == null ? void 0 : i.control,
309
- extra: k,
310
- extraRef: (n)=>{
311
- n && ce(n.innerText || n.textContent || "");
307
+ control: n == null ? void 0 : n.control,
308
+ extra: L,
309
+ extraRef: (i)=>{
310
+ i && ce(i.innerText || i.textContent || "");
312
311
  },
313
- labelId: i == null ? void 0 : i.labelId,
312
+ labelId: n == null ? void 0 : n.labelId,
314
313
  disabled: b,
315
314
  withChevron: fe
316
315
  });
317
316
  if (V && !U) return /* @__PURE__ */ t(te, _object_spread_props(_object_spread({
318
317
  ref: a,
319
- className: m(q, {
318
+ className: u(q, {
320
319
  [z]: O,
321
320
  [G]: W,
322
321
  [re]: !b
@@ -332,8 +331,8 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
332
331
  children: R()
333
332
  })
334
333
  }));
335
- const j = (i)=>/* @__PURE__ */ X("div", _object_spread_props(_object_spread({
336
- className: Ee,
334
+ const j = (n)=>/* @__PURE__ */ X("div", _object_spread_props(_object_spread({
335
+ className: Pe,
337
336
  ref: a
338
337
  }, K(s)), {
339
338
  children: [
@@ -341,7 +340,7 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
341
340
  disabled: b
342
341
  }, Z), {
343
342
  role: f,
344
- className: m(Pe, {
343
+ className: u(De, {
345
344
  [z]: O,
346
345
  [G]: W
347
346
  }),
@@ -351,26 +350,26 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
351
350
  })
352
351
  })),
353
352
  /* @__PURE__ */ t("div", {
354
- className: De
353
+ className: Me
355
354
  }),
356
- i
355
+ n
357
356
  ]
358
- })), H = (i, n)=>/* @__PURE__ */ t("div", _object_spread_props(_object_spread({
359
- className: m(q, {
360
- [z]: O && n,
361
- [G]: W && n,
362
- [re]: !b && n
357
+ })), H = (n, i)=>/* @__PURE__ */ t("div", _object_spread_props(_object_spread({
358
+ className: u(q, {
359
+ [z]: O && i,
360
+ [G]: W && i,
361
+ [re]: !b && i
363
362
  }),
364
363
  ref: a
365
364
  }, K(s)), {
366
- children: i
365
+ children: n
367
366
  }));
368
367
  if (e.switch || e.checkbox) {
369
368
  var _ref, _ref1;
370
- const i = e.switch ? we : Re, n = (_ref1 = (_ref = (p = e.switch) == null ? void 0 : p.name) !== null && _ref !== void 0 ? _ref : (ee = e.checkbox) == null ? void 0 : ee.name) !== null && _ref1 !== void 0 ? _ref1 : r;
371
- return V ? j(/* @__PURE__ */ t(i, {
369
+ const n = e.switch ? we : Re, i = (_ref1 = (_ref = (p = e.switch) == null ? void 0 : p.name) !== null && _ref !== void 0 ? _ref : (ee = e.checkbox) == null ? void 0 : ee.name) !== null && _ref1 !== void 0 ? _ref1 : r;
370
+ return V ? j(/* @__PURE__ */ t(n, {
372
371
  disabled: b,
373
- name: n,
372
+ name: i,
374
373
  checked: _,
375
374
  "aria-label": B,
376
375
  "aria-labelledby": r,
@@ -378,13 +377,13 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
378
377
  render: (param)=>{
379
378
  let { controlElement: F } = param;
380
379
  return /* @__PURE__ */ t("div", {
381
- className: Me,
380
+ className: Oe,
382
381
  children: F
383
382
  });
384
383
  }
385
- })) : H(/* @__PURE__ */ t(i, {
384
+ })) : H(/* @__PURE__ */ t(n, {
386
385
  disabled: b,
387
- name: n,
386
+ name: i,
388
387
  checked: _,
389
388
  "aria-label": B,
390
389
  "aria-labelledby": r,
@@ -410,12 +409,12 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
410
409
  "aria-label": B,
411
410
  "aria-labelledby": r,
412
411
  render: (param)=>{
413
- let { controlElement: i } = param;
412
+ let { controlElement: n } = param;
414
413
  return /* @__PURE__ */ t(C, {
415
414
  space: "around",
416
415
  children: /* @__PURE__ */ t(o, {
417
416
  paddingX: 16,
418
- children: i
417
+ children: n
419
418
  })
420
419
  });
421
420
  }
@@ -424,7 +423,7 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
424
423
  "aria-label": B,
425
424
  "aria-labelledby": r,
426
425
  render: (param)=>{
427
- let { controlElement: i } = param;
426
+ let { controlElement: n } = param;
428
427
  return /* @__PURE__ */ t(o, {
429
428
  paddingX: 16,
430
429
  role: f,
@@ -432,7 +431,7 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
432
431
  labelId: r,
433
432
  control: /* @__PURE__ */ t(C, {
434
433
  space: "around",
435
- children: i
434
+ children: n
436
435
  })
437
436
  })
438
437
  });
@@ -441,9 +440,9 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
441
440
  padding: 16,
442
441
  children: /* @__PURE__ */ t(C, {
443
442
  space: "around",
444
- children: e.iconButton.Icon ? /* @__PURE__ */ t(ie, _object_spread_props(_object_spread({}, e.iconButton), {
443
+ children: e.iconButton.Icon ? /* @__PURE__ */ t(ne, _object_spread_props(_object_spread({}, e.iconButton), {
445
444
  disabled: e.disabled
446
- })) : /* @__PURE__ */ t(ne, _object_spread_props(_object_spread({}, e.iconButton), {
445
+ })) : /* @__PURE__ */ t(ie, _object_spread_props(_object_spread({}, e.iconButton), {
447
446
  disabled: e.disabled
448
447
  }))
449
448
  })
@@ -453,10 +452,10 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
453
452
  labelId: r,
454
453
  control: /* @__PURE__ */ t(C, {
455
454
  space: "around",
456
- children: e.iconButton.Icon ? /* @__PURE__ */ t(ie, _object_spread_props(_object_spread({}, e.iconButton), {
455
+ children: e.iconButton.Icon ? /* @__PURE__ */ t(ne, _object_spread_props(_object_spread({}, e.iconButton), {
457
456
  disabled: e.disabled,
458
457
  role: f
459
- })) : /* @__PURE__ */ t(ne, _object_spread_props(_object_spread({}, e.iconButton), {
458
+ })) : /* @__PURE__ */ t(ie, _object_spread_props(_object_spread({}, e.iconButton), {
460
459
  disabled: e.disabled,
461
460
  role: f
462
461
  }))
@@ -470,16 +469,14 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
470
469
  ref: a,
471
470
  children: R()
472
471
  });
473
- }), ht = /*#__PURE__*/ u.forwardRef((_param, l)=>{
472
+ }), st = /*#__PURE__*/ m.forwardRef((_param, l)=>{
474
473
  var { dataAttributes: e, role: a = "listitem" } = _param, r = _object_without_properties(_param, [
475
474
  "dataAttributes",
476
475
  "role"
477
476
  ]);
478
477
  return /* @__PURE__ */ t("div", {
479
478
  role: a,
480
- className: je({
481
- width: "100%"
482
- }),
479
+ className: Te,
483
480
  children: /* @__PURE__ */ t(le, _object_spread_props(_object_spread({}, r), {
484
481
  ref: l,
485
482
  dataAttributes: _object_spread({
@@ -487,14 +484,14 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
487
484
  }, e)
488
485
  }))
489
486
  });
490
- }), mt = (param)=>{
487
+ }), ht = (param)=>{
491
488
  let { children: e, ariaLabelledby: a, role: r = "list", dataAttributes: l } = param;
492
- const c = u.Children.toArray(e).filter(Boolean), v = c.length - 1;
489
+ const c = m.Children.toArray(e).filter(Boolean), v = c.length - 1;
493
490
  return /* @__PURE__ */ t("div", _object_spread_props(_object_spread({
494
491
  role: r,
495
492
  "aria-labelledby": a
496
493
  }, K(l, "RowList")), {
497
- children: c.map((g, x)=>/* @__PURE__ */ X(u.Fragment, {
494
+ children: c.map((g, x)=>/* @__PURE__ */ X(m.Fragment, {
498
495
  children: [
499
496
  g,
500
497
  x < v && /* @__PURE__ */ t(o, {
@@ -504,7 +501,7 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
504
501
  ]
505
502
  }, x))
506
503
  }));
507
- }, ut = /*#__PURE__*/ u.forwardRef((_param, r)=>{
504
+ }, ut = /*#__PURE__*/ m.forwardRef((_param, r)=>{
508
505
  var { dataAttributes: e } = _param, a = _object_without_properties(_param, [
509
506
  "dataAttributes"
510
507
  ]);
@@ -516,7 +513,7 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
516
513
  }, e),
517
514
  children: /* @__PURE__ */ t(le, _object_spread({}, a))
518
515
  });
519
- }), ft = (param)=>{
516
+ }), mt = (param)=>{
520
517
  let { children: e, ariaLabelledby: a, role: r = "list", dataAttributes: l } = param;
521
518
  return /* @__PURE__ */ t(C, {
522
519
  space: 16,
@@ -528,4 +525,4 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
528
525
  children: e
529
526
  });
530
527
  };
531
- export { ut as BoxedRow, ft as BoxedRowList, Fe as Content, ht as Row, mt as RowList };
528
+ export { ut as BoxedRow, mt as BoxedRowList, Fe as Content, st as Row, ht as RowList };
@@ -86,23 +86,22 @@ import { vars as f } from "./skins/skin-contract.css-mistica.js";
86
86
  import E from "./responsive-layout.js";
87
87
  import { Text4 as I, Text2 as O } from "./text.js";
88
88
  import w from "./stack.js";
89
- import { inOutAnimationMs as k, loadingScreen as V, screenBackground as j, screenBackgroundFadeOut as z, screenBackgroundAnimated as D, loadingScreenChildren as P, loadingScreenText as _, loadingScreenTextAnimatedOut as F, loadingScreenTextAnimated as y, logo as K, pulseLogo as M } from "./loading-screen.css-mistica.js";
89
+ import { inOutAnimationMs as y, loadingScreen as V, screenBackground as j, screenBackgroundFadeOut as z, screenBackgroundAnimated as D, loadingScreenChildren as P, loadingScreenText as _, loadingScreenTextAnimatedOut as F, loadingScreenTextAnimated as k, logo as K, pulseLogo as M } from "./loading-screen.css-mistica.js";
90
90
  import W from "./spinner.js";
91
91
  import T from "classnames";
92
- import { sprinkles as $ } from "./sprinkles.css-mistica.js";
93
- import { Logo as q } from "./logo.js";
94
- import G from "./screen-reader-only.js";
92
+ import { Logo as $ } from "./logo.js";
93
+ import q from "./screen-reader-only.js";
95
94
  import { useTheme as R } from "./hooks.js";
96
- import { VIVO_NEW_SKIN as H } from "./skins/constants.js";
97
- import { getPrefixedDataAttributes as J } from "./utils/dom.js";
98
- import { loading as L } from "./text-tokens.js";
99
- const Q = (param)=>{
95
+ import { VIVO_NEW_SKIN as G } from "./skins/constants.js";
96
+ import { getPrefixedDataAttributes as H } from "./utils/dom.js";
97
+ import { loading as J } from "./text-tokens.js";
98
+ const L = (param)=>{
100
99
  let { isInverse: e } = param;
101
100
  const r = `body {background:${e ? f.colors.backgroundBrand : f.colors.background}}`;
102
101
  return /* @__PURE__ */ n("style", {
103
102
  children: r
104
103
  });
105
- }, U = (param)=>{
104
+ }, Q = (param)=>{
106
105
  let { animateText: e, isLoading: r, onClose: t, texts: i } = param;
107
106
  const [c, s] = o.useState(0), [a, u] = o.useState(!1), l = o.useCallback(()=>{
108
107
  s((c + 1) % i.length), u(!1);
@@ -144,7 +143,7 @@ const Q = (param)=>{
144
143
  space: 8,
145
144
  children: [
146
145
  d && /* @__PURE__ */ n("div", {
147
- className: e ? y : void 0,
146
+ className: e ? k : void 0,
148
147
  children: /* @__PURE__ */ n(I, {
149
148
  textAlign: "center",
150
149
  regular: !0,
@@ -153,7 +152,7 @@ const Q = (param)=>{
153
152
  })
154
153
  }),
155
154
  p && /* @__PURE__ */ n("div", {
156
- className: e ? y : void 0,
155
+ className: e ? k : void 0,
157
156
  style: {
158
157
  animationDelay: "200ms"
159
158
  },
@@ -181,7 +180,7 @@ const Q = (param)=>{
181
180
  if (!t) return;
182
181
  const A = setTimeout(()=>{
183
182
  h(!0);
184
- }, k);
183
+ }, y);
185
184
  return ()=>{
186
185
  clearTimeout(A);
187
186
  };
@@ -202,7 +201,7 @@ const Q = (param)=>{
202
201
  }
203
202
  const A = setTimeout(()=>{
204
203
  g();
205
- }, k);
204
+ }, y);
206
205
  return ()=>{
207
206
  clearTimeout(A);
208
207
  };
@@ -221,13 +220,14 @@ const Q = (param)=>{
221
220
  children: [
222
221
  /* @__PURE__ */ S("div", _object_spread_props(_object_spread({
223
222
  ref: d
224
- }, J(a)), {
223
+ }, H(a)), {
225
224
  className: T(V, j[e ? "inverse" : "default"], {
226
225
  [z]: !t && c,
227
226
  [D]: c
228
- }, $({
227
+ }),
228
+ style: {
229
229
  justifyContent: b ? "center" : "space-between"
230
- })),
230
+ },
231
231
  onAnimationEnd: ()=>{
232
232
  h(!0);
233
233
  },
@@ -241,7 +241,7 @@ const Q = (param)=>{
241
241
  size: 32,
242
242
  color: e ? f.colors.inverse : void 0
243
243
  }),
244
- /* @__PURE__ */ n(U, {
244
+ /* @__PURE__ */ n(Q, {
245
245
  animateText: i,
246
246
  isLoading: t,
247
247
  texts: m,
@@ -254,19 +254,19 @@ const Q = (param)=>{
254
254
  })
255
255
  ]
256
256
  })),
257
- t && p && /* @__PURE__ */ n(Q, {
257
+ t && p && /* @__PURE__ */ n(L, {
258
258
  isInverse: !!e
259
259
  })
260
260
  ]
261
261
  });
262
- }), ge = /*#__PURE__*/ o.forwardRef((e, r)=>/* @__PURE__ */ n(x, _object_spread_props(_object_spread({
262
+ }), pe = /*#__PURE__*/ o.forwardRef((e, r)=>/* @__PURE__ */ n(x, _object_spread_props(_object_spread({
263
263
  ref: r
264
264
  }, e), {
265
265
  dataAttributes: _object_spread({
266
266
  "component-name": "LoadingScreen"
267
267
  }, e.dataAttributes),
268
268
  animateBackground: !0
269
- }))), X = (param)=>{
269
+ }))), U = (param)=>{
270
270
  let { isLoading: e, onCloseStart: r, onCloseEnd: t } = param;
271
271
  const { texts: i, t: c } = R(), [s, a] = o.useState(!0), u = ()=>{
272
272
  e || (r == null || r(), a(!1), t == null || t());
@@ -277,32 +277,32 @@ const Q = (param)=>{
277
277
  }),
278
278
  onAnimationIteration: u,
279
279
  children: [
280
- /* @__PURE__ */ n(G, {
280
+ /* @__PURE__ */ n(q, {
281
281
  children: /* @__PURE__ */ n("div", {
282
- children: i.loading || c(L)
282
+ children: i.loading || c(J)
283
283
  })
284
284
  }),
285
- /* @__PURE__ */ n(q, {
285
+ /* @__PURE__ */ n($, {
286
286
  size: 128
287
287
  })
288
288
  ]
289
289
  });
290
- }, Y = /*#__PURE__*/ o.lazy(()=>import("./vivinho-loading-animation/index.js")), Z = (param)=>{
290
+ }, X = /*#__PURE__*/ o.lazy(()=>import("./vivinho-loading-animation/index.js")), Y = (param)=>{
291
291
  let { isLoading: e, onCloseStart: r, onCloseEnd: t } = param;
292
292
  const { skinName: i } = R();
293
- return i === H ? /* @__PURE__ */ n(o.Suspense, {
293
+ return i === G ? /* @__PURE__ */ n(o.Suspense, {
294
294
  fallback: null,
295
- children: /* @__PURE__ */ n(Y, {
295
+ children: /* @__PURE__ */ n(X, {
296
296
  isLoading: e,
297
297
  onCloseStart: r,
298
298
  onCloseEnd: t
299
299
  })
300
- }) : /* @__PURE__ */ n(X, {
300
+ }) : /* @__PURE__ */ n(U, {
301
301
  isLoading: e,
302
302
  onCloseStart: r,
303
303
  onCloseEnd: t
304
304
  });
305
- }, Se = /*#__PURE__*/ o.forwardRef((_param, c)=>{
305
+ }, he = /*#__PURE__*/ o.forwardRef((_param, c)=>{
306
306
  var { isLoading: e = !0, onClose: r, dataAttributes: t } = _param, i = _object_without_properties(_param, [
307
307
  "isLoading",
308
308
  "onClose",
@@ -325,7 +325,7 @@ const Q = (param)=>{
325
325
  dataAttributes: _object_spread({
326
326
  "component-name": "BrandLoadingScreen"
327
327
  }, t),
328
- children: /* @__PURE__ */ n(Z, {
328
+ children: /* @__PURE__ */ n(Y, {
329
329
  isLoading: e,
330
330
  onCloseStart: m,
331
331
  onCloseEnd: ()=>{
@@ -334,4 +334,4 @@ const Q = (param)=>{
334
334
  })
335
335
  }));
336
336
  });
337
- export { Se as BrandLoadingScreen, ge as LoadingScreen };
337
+ export { he as BrandLoadingScreen, pe as LoadingScreen };