@telefonica/mistica 13.1.2 → 13.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 (147) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/avatar.css-mistica.js +3 -3
  3. package/dist/badge.css-mistica.js +2 -2
  4. package/dist/button-group.css-mistica.js +1 -1
  5. package/dist/button-layout.css-mistica.js +8 -8
  6. package/dist/button.css-mistica.js +20 -20
  7. package/dist/callout.css-mistica.js +2 -2
  8. package/dist/card.css-mistica.js +7 -7
  9. package/dist/carousel.css-mistica.js +15 -15
  10. package/dist/checkbox.css-mistica.js +8 -8
  11. package/dist/chip.css-mistica.js +4 -4
  12. package/dist/circle.css-mistica.js +2 -2
  13. package/dist/credit-card-number-field.css-mistica.js +3 -3
  14. package/dist/cvv-field.css-mistica.js +3 -3
  15. package/dist/dialog.css-mistica.js +6 -6
  16. package/dist/double-field.css-mistica.js +4 -4
  17. package/dist/empty-state-card.css-mistica.js +4 -4
  18. package/dist/empty-state.css-mistica.js +7 -7
  19. package/dist/feedback.css-mistica.js +1 -1
  20. package/dist/fixed-footer-layout.css-mistica.js +4 -4
  21. package/dist/header.d.ts +20 -1
  22. package/dist/header.js +60 -59
  23. package/dist/highlighted-card.css-mistica.js +6 -6
  24. package/dist/hooks.js +47 -44
  25. package/dist/icon-button.css-mistica.js +1 -1
  26. package/dist/image.css-mistica.js +2 -2
  27. package/dist/image.d.ts +2 -2
  28. package/dist/image.js +63 -48
  29. package/dist/list.css-mistica.js +12 -12
  30. package/dist/loading-bar.css-mistica.js +6 -6
  31. package/dist/maybe-dismissable.css-mistica.js +3 -3
  32. package/dist/menu.css-mistica.js +2 -2
  33. package/dist/navigation-bar.css-mistica.js +12 -12
  34. package/dist/navigation-breadcrumbs.css-mistica.js +3 -3
  35. package/dist/package-version.js +1 -1
  36. package/dist/password-field.css-mistica.js +2 -2
  37. package/dist/popover.css-mistica.js +9 -9
  38. package/dist/progress-bar.css-mistica.js +3 -3
  39. package/dist/radio-button.css-mistica.js +5 -5
  40. package/dist/responsive-layout.css-mistica.js +3 -3
  41. package/dist/screen-reader-only.css-mistica.js +1 -1
  42. package/dist/select.css-mistica.js +13 -13
  43. package/dist/select.js +73 -73
  44. package/dist/skeleton-base.d.ts +2 -1
  45. package/dist/skeleton-base.js +6 -6
  46. package/dist/skeletons.css-mistica.js +3 -3
  47. package/dist/skeletons.d.ts +2 -1
  48. package/dist/skeletons.js +21 -20
  49. package/dist/skins/blau.js +19 -9
  50. package/dist/skins/movistar.js +17 -7
  51. package/dist/skins/o2-classic.js +17 -7
  52. package/dist/skins/o2.js +17 -7
  53. package/dist/skins/skin-contract.css-mistica.js +133 -123
  54. package/dist/skins/skin-contract.css.d.ts +10 -0
  55. package/dist/skins/telefonica.d.ts +1 -1
  56. package/dist/skins/telefonica.js +18 -8
  57. package/dist/skins/types.d.ts +5 -0
  58. package/dist/skins/vivo.js +17 -7
  59. package/dist/snackbar.css-mistica.js +5 -5
  60. package/dist/spinner.css-mistica.js +1 -1
  61. package/dist/sprinkles.css-mistica.js +336 -306
  62. package/dist/stepper.css-mistica.js +9 -9
  63. package/dist/switch-component.css-mistica.js +22 -22
  64. package/dist/tabs.css-mistica.js +14 -14
  65. package/dist/tag.css-mistica.js +2 -2
  66. package/dist/tag.js +21 -16
  67. package/dist/text-field-base.css-mistica.js +6 -6
  68. package/dist/text-field-components.css-mistica.js +8 -8
  69. package/dist/text-link.css-mistica.js +3 -3
  70. package/dist/text.js +5 -5
  71. package/dist/theme-context-provider.js +8 -7
  72. package/dist/theme.d.ts +2 -0
  73. package/dist/tooltip.css-mistica.js +4 -4
  74. package/dist/touchable.css-mistica.js +1 -1
  75. package/dist/utils/aspect-ratio-support.css-mistica.js +3 -3
  76. package/dist/utils/aspect-ratio-support.js +2 -3
  77. package/dist/video.css-mistica.js +2 -2
  78. package/dist-es/avatar.css-mistica.js +2 -2
  79. package/dist-es/badge.css-mistica.js +2 -2
  80. package/dist-es/button-group.css-mistica.js +1 -1
  81. package/dist-es/button-layout.css-mistica.js +7 -7
  82. package/dist-es/button.css-mistica.js +9 -9
  83. package/dist-es/callout.css-mistica.js +2 -2
  84. package/dist-es/card.css-mistica.js +2 -2
  85. package/dist-es/carousel.css-mistica.js +2 -2
  86. package/dist-es/checkbox.css-mistica.js +6 -6
  87. package/dist-es/chip.css-mistica.js +4 -4
  88. package/dist-es/circle.css-mistica.js +2 -2
  89. package/dist-es/credit-card-number-field.css-mistica.js +3 -3
  90. package/dist-es/cvv-field.css-mistica.js +2 -2
  91. package/dist-es/dialog.css-mistica.js +5 -5
  92. package/dist-es/double-field.css-mistica.js +4 -4
  93. package/dist-es/empty-state-card.css-mistica.js +2 -2
  94. package/dist-es/empty-state.css-mistica.js +3 -3
  95. package/dist-es/feedback.css-mistica.js +1 -1
  96. package/dist-es/fixed-footer-layout.css-mistica.js +3 -3
  97. package/dist-es/header.js +89 -88
  98. package/dist-es/highlighted-card.css-mistica.js +5 -5
  99. package/dist-es/hooks.js +43 -40
  100. package/dist-es/icon-button.css-mistica.js +1 -1
  101. package/dist-es/image.css-mistica.js +2 -2
  102. package/dist-es/image.js +74 -59
  103. package/dist-es/list.css-mistica.js +2 -2
  104. package/dist-es/loading-bar.css-mistica.js +2 -2
  105. package/dist-es/maybe-dismissable.css-mistica.js +2 -2
  106. package/dist-es/menu.css-mistica.js +2 -2
  107. package/dist-es/navigation-bar.css-mistica.js +9 -9
  108. package/dist-es/navigation-breadcrumbs.css-mistica.js +2 -2
  109. package/dist-es/package-version.js +1 -1
  110. package/dist-es/password-field.css-mistica.js +2 -2
  111. package/dist-es/popover.css-mistica.js +2 -2
  112. package/dist-es/progress-bar.css-mistica.js +2 -2
  113. package/dist-es/radio-button.css-mistica.js +4 -4
  114. package/dist-es/responsive-layout.css-mistica.js +2 -2
  115. package/dist-es/screen-reader-only.css-mistica.js +1 -1
  116. package/dist-es/select.css-mistica.js +10 -10
  117. package/dist-es/select.js +84 -84
  118. package/dist-es/skeleton-base.js +12 -12
  119. package/dist-es/skeletons.css-mistica.js +2 -2
  120. package/dist-es/skeletons.js +38 -37
  121. package/dist-es/skins/blau.js +19 -9
  122. package/dist-es/skins/movistar.js +19 -9
  123. package/dist-es/skins/o2-classic.js +17 -7
  124. package/dist-es/skins/o2.js +17 -7
  125. package/dist-es/skins/skin-contract.css-mistica.js +133 -123
  126. package/dist-es/skins/telefonica.js +20 -10
  127. package/dist-es/skins/vivo.js +19 -9
  128. package/dist-es/snackbar.css-mistica.js +2 -2
  129. package/dist-es/spinner.css-mistica.js +1 -1
  130. package/dist-es/sprinkles.css-mistica.js +336 -306
  131. package/dist-es/stepper.css-mistica.js +2 -2
  132. package/dist-es/style.css +1 -1
  133. package/dist-es/switch-component.css-mistica.js +19 -19
  134. package/dist-es/tabs.css-mistica.js +10 -10
  135. package/dist-es/tag.css-mistica.js +2 -2
  136. package/dist-es/tag.js +36 -31
  137. package/dist-es/text-field-base.css-mistica.js +2 -2
  138. package/dist-es/text-field-components.css-mistica.js +2 -2
  139. package/dist-es/text-link.css-mistica.js +3 -3
  140. package/dist-es/text.js +5 -5
  141. package/dist-es/theme-context-provider.js +10 -9
  142. package/dist-es/tooltip.css-mistica.js +3 -3
  143. package/dist-es/touchable.css-mistica.js +1 -1
  144. package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
  145. package/dist-es/utils/aspect-ratio-support.js +2 -3
  146. package/dist-es/video.css-mistica.js +2 -2
  147. package/package.json +1 -1
@@ -10,19 +10,19 @@ function _export(target, all) {
10
10
  }
11
11
  _export(exports, {
12
12
  container: ()=>n,
13
- contentVariants: ()=>v,
14
- iconContainer: ()=>e,
15
- inverseBorder: ()=>f,
13
+ contentVariants: ()=>f,
14
+ iconContainer: ()=>v,
15
+ inverseBorder: ()=>e,
16
16
  largeImage: ()=>_,
17
17
  largeImageContainer: ()=>o,
18
- smallImage: ()=>t,
19
- vars: ()=>u
18
+ smallImage: ()=>u,
19
+ vars: ()=>t
20
20
  });
21
21
  require("./sprinkles.css.ts.vanilla.js");
22
22
  require("./empty-state.css.ts.vanilla.js");
23
- var n = "_13fzrua2 _1y2v1nf56 _1y2v1nf50", v = {
23
+ var n = "_13fzrua2 _1y2v1nf5g _1y2v1nf5a", f = {
24
24
  default: "_13fzrua3",
25
25
  largeImage: "_13fzrua4"
26
- }, e = "_13fzrua9 _1y2v1nf7q _1y2v1nf85", f = "_13fzruac", _ = "_13fzrua7 _1y2v1nf7t", o = "_13fzrua5", t = "_13fzruab _1y2v1nf58", u = {
26
+ }, v = "_13fzrua9 _1y2v1nf80 _1y2v1nf8f", e = "_13fzruac", _ = "_13fzrua7 _1y2v1nf83", o = "_13fzrua5", u = "_13fzruab _1y2v1nf5i", t = {
27
27
  backgroundColor: "var(--_13fzrua0)"
28
28
  };
@@ -19,4 +19,4 @@ _export(exports, {
19
19
  });
20
20
  require("./sprinkles.css.ts.vanilla.js");
21
21
  require("./feedback.css.ts.vanilla.js");
22
- var n = "gx6h6a3 _1y2v1nf56 _1y2v1nf7t _1y2v1nf7d", r = "_1y2v1nf99 _1y2v1nf56 _1y2v1nf5i", t = "gx6h6a1", v = "gx6h6a7", f = "gx6h6a5", o = "gx6h6a6", p = "gx6h6a4";
22
+ var n = "gx6h6a3 _1y2v1nf5g _1y2v1nf83 _1y2v1nf7n", r = "_1y2v1nf9j _1y2v1nf5g _1y2v1nf5s", t = "gx6h6a1", v = "gx6h6a7", f = "gx6h6a5", o = "gx6h6a6", p = "gx6h6a4";
@@ -10,15 +10,15 @@ function _export(target, all) {
10
10
  }
11
11
  _export(exports, {
12
12
  container: ()=>v,
13
- elevated: ()=>j,
14
- fixedFooter: ()=>a,
13
+ elevated: ()=>a,
14
+ fixedFooter: ()=>j,
15
15
  footer: ()=>t,
16
16
  vars: ()=>e,
17
17
  withoutFooter: ()=>p
18
18
  });
19
19
  require("./sprinkles.css.ts.vanilla.js");
20
20
  require("./fixed-footer-layout.css.ts.vanilla.js");
21
- var v = "p5j8j58", j = "p5j8j56 _1y2v1nf2k", a = "p5j8j54", t = "p5j8j53 _1y2v1nf7d _1y2v1nf2j", e = {
21
+ var v = "p5j8j58", a = "p5j8j56 _1y2v1nf2p", j = "p5j8j54", t = "p5j8j53 _1y2v1nf7n _1y2v1nf2o", e = {
22
22
  footerHeight: "var(--p5j8j50)",
23
23
  backgroundColor: "var(--p5j8j51)"
24
- }, p = "_1y2v1nf55";
24
+ }, p = "_1y2v1nf5f";
package/dist/header.d.ts CHANGED
@@ -14,13 +14,32 @@ type RichText = string | ({
14
14
  type HeaderProps = {
15
15
  pretitle?: RichText;
16
16
  title?: string;
17
+ description?: string;
18
+ dataAttributes?: DataAttributes;
19
+ /**
20
+ * @deprecated This field is deprecated, please use the extra slot in the HeaderLayout component instead.
21
+ */
17
22
  preamount?: RichText;
23
+ /**
24
+ * @deprecated This field is deprecated, please use the extra slot in the HeaderLayout component instead.
25
+ */
18
26
  amount?: string;
27
+ /**
28
+ * @deprecated This field is deprecated, please use the extra slot in the HeaderLayout component instead.
29
+ */
19
30
  button?: RendersNullableElement<typeof ButtonPrimary>;
31
+ /**
32
+ * @deprecated This field is deprecated, please use the extra slot in the HeaderLayout component instead.
33
+ */
20
34
  secondaryButton?: RendersNullableElement<typeof ButtonSecondary>;
35
+ /**
36
+ * @deprecated This field is deprecated, please use the extra slot in the HeaderLayout component instead.
37
+ */
21
38
  subtitle?: RichText;
39
+ /**
40
+ * @deprecated This field is deprecated, please use the extra slot in the HeaderLayout component instead.
41
+ */
22
42
  isErrorAmount?: boolean;
23
- dataAttributes?: DataAttributes;
24
43
  };
25
44
  export declare const Header: React.FC<HeaderProps>;
26
45
  type MainSectionHeaderProps = {
package/dist/header.js CHANGED
@@ -9,10 +9,10 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- Header: ()=>F,
13
- HeaderLayout: ()=>K,
14
- MainSectionHeader: ()=>J,
15
- MainSectionHeaderLayout: ()=>N
12
+ Header: ()=>J,
13
+ HeaderLayout: ()=>N,
14
+ MainSectionHeader: ()=>K,
15
+ MainSectionHeaderLayout: ()=>Q
16
16
  });
17
17
  const _boxJs = /*#__PURE__*/ _interopRequireDefault(require("./box.js"));
18
18
  const _stackJs = /*#__PURE__*/ _interopRequireDefault(require("./stack.js"));
@@ -109,75 +109,80 @@ function _objectWithoutPropertiesLoose(source, excluded) {
109
109
  }
110
110
  return target;
111
111
  }
112
- const F = (param)=>{
113
- let { pretitle: i , title: e , preamount: o , amount: l , button: c , subtitle: d , isErrorAmount: h , secondaryButton: u , dataAttributes: B } = param;
114
- const { isTabletOrSmaller: H } = (0, _hooksJs.useScreenSize)(), L = (0, _themeVariantContextJs.useIsInverseVariant)(), g = (p, x)=>{
115
- if (typeof p == "string") return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text3, _objectSpreadProps(_objectSpread({
112
+ const J = (param)=>{
113
+ let { pretitle: i , title: e , description: t , dataAttributes: n , preamount: a , amount: s , button: c , subtitle: g , isErrorAmount: H , secondaryButton: x } = param;
114
+ const { isTabletOrSmaller: L } = (0, _hooksJs.useScreenSize)(), O = (0, _themeVariantContextJs.useIsInverseVariant)(), f = (m, y)=>{
115
+ if (typeof m == "string") return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text3, _objectSpreadProps(_objectSpread({
116
116
  regular: !0
117
- }, x), {
118
- children: p
117
+ }, y), {
118
+ children: m
119
119
  }));
120
- const { text: G } = p, O = _objectWithoutProperties(p, [
120
+ const { text: M } = m, I = _objectWithoutProperties(m, [
121
121
  "text"
122
122
  ]);
123
123
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text3, _objectSpreadProps(_objectSpread({
124
124
  regular: !0
125
- }, x, O), {
126
- children: p.text
125
+ }, y, I), {
126
+ children: m.text
127
127
  }));
128
128
  };
129
129
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
130
- space: H ? 24 : 32,
131
- dataAttributes: B,
130
+ space: L ? 24 : 32,
131
+ dataAttributes: n,
132
132
  children: [
133
- (e || i) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
133
+ (e || i || t) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
134
134
  paddingRight: 16,
135
135
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
136
136
  space: 8,
137
137
  children: [
138
- i && g(i, {
138
+ i && f(i, {
139
139
  color: _skinContractCssMisticaJs.vars.colors.textPrimary
140
140
  }),
141
141
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text6, {
142
142
  role: "heading",
143
143
  "aria-level": 2,
144
144
  children: e
145
+ }),
146
+ t && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text3, {
147
+ regular: !0,
148
+ color: _skinContractCssMisticaJs.vars.colors.textSecondary,
149
+ children: t
145
150
  })
146
151
  ]
147
152
  })
148
153
  }),
149
- (o || l || c || d) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
154
+ (a || s || c || g) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
150
155
  space: 16,
151
156
  children: [
152
- (o || l) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
157
+ (a || s) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
153
158
  space: 8,
154
159
  children: [
155
- o && g(o, {
160
+ a && f(a, {
156
161
  color: _skinContractCssMisticaJs.vars.colors.textPrimary
157
162
  }),
158
163
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text8, {
159
- color: h && !L ? _skinContractCssMisticaJs.vars.colors.highlight : _skinContractCssMisticaJs.vars.colors.textPrimary,
160
- children: l
164
+ color: H && !O ? _skinContractCssMisticaJs.vars.colors.highlight : _skinContractCssMisticaJs.vars.colors.textPrimary,
165
+ children: s
161
166
  })
162
167
  ]
163
168
  }),
164
- (c || u) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_buttonGroupJs.default, {
169
+ (c || x) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_buttonGroupJs.default, {
165
170
  primaryButton: c,
166
- secondaryButton: u
171
+ secondaryButton: x
167
172
  }),
168
- d && g(d, {})
173
+ g && f(g, {})
169
174
  ]
170
175
  })
171
176
  ]
172
177
  });
173
- }, J = (param)=>{
174
- let { title: i , description: e , button: o } = param;
175
- const { isTabletOrSmaller: l } = (0, _hooksJs.useScreenSize)();
178
+ }, K = (param)=>{
179
+ let { title: i , description: e , button: t } = param;
180
+ const { isTabletOrSmaller: n } = (0, _hooksJs.useScreenSize)();
176
181
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
177
182
  space: 32,
178
183
  children: [
179
184
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
180
- space: l ? 12 : 16,
185
+ space: n ? 12 : 16,
181
186
  children: [
182
187
  i && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text7, {
183
188
  role: "heading",
@@ -189,30 +194,30 @@ const F = (param)=>{
189
194
  })
190
195
  ]
191
196
  }),
192
- o
197
+ t
193
198
  ]
194
199
  });
195
- }, K = (param)=>{
196
- let { isInverse: i = !0 , breadcrumbs: e , header: o , extra: l , sideBySideExtraOnDesktop: c = !1 , dataAttributes: d } = param;
197
- const { isTabletOrSmaller: h } = (0, _hooksJs.useScreenSize)();
200
+ }, N = (param)=>{
201
+ let { isInverse: i = !0 , breadcrumbs: e , header: t , extra: n , sideBySideExtraOnDesktop: a = !1 , dataAttributes: s } = param;
202
+ const { isTabletOrSmaller: c } = (0, _hooksJs.useScreenSize)();
198
203
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_responsiveLayoutJs.default, {
199
204
  isInverse: i,
200
205
  dataAttributes: _objectSpread({
201
206
  "component-name": "HeaderLayout"
202
- }, d),
207
+ }, s),
203
208
  children: [
204
209
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_overscrollColorContextJs.default, {}),
205
- h ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
210
+ c ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
206
211
  paddingTop: 32,
207
212
  paddingBottom: 24,
208
213
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
209
214
  space: 24,
210
215
  children: [
211
- o,
212
- l
216
+ t,
217
+ n
213
218
  ]
214
219
  })
215
- }) : c ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
220
+ }) : a ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
216
221
  paddingTop: e ? 16 : 48,
217
222
  paddingBottom: 48,
218
223
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_gridLayoutJs.default, {
@@ -221,42 +226,38 @@ const F = (param)=>{
221
226
  space: 32,
222
227
  children: [
223
228
  e,
224
- o
229
+ t
225
230
  ]
226
231
  }),
227
- right: l
232
+ right: n
228
233
  })
229
234
  }) : /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
230
235
  paddingTop: e ? 16 : 48,
231
236
  paddingBottom: 48,
232
- children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_gridLayoutJs.default, {
233
- template: "6+6",
234
- left: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
235
- space: 24,
236
- children: [
237
- /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
238
- space: 32,
239
- children: [
240
- e,
241
- o
242
- ]
243
- }),
244
- l
245
- ]
246
- }),
247
- right: null
237
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
238
+ space: c ? 24 : 32,
239
+ children: [
240
+ /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
241
+ space: 32,
242
+ children: [
243
+ e,
244
+ t
245
+ ]
246
+ }),
247
+ n
248
+ ]
248
249
  })
249
250
  })
250
251
  ]
251
252
  });
252
- }, N = (param)=>{
253
+ }, Q = (param)=>{
253
254
  let { isInverse: i = !0 , children: e } = param;
254
- const { isTabletOrSmaller: o } = (0, _hooksJs.useScreenSize)();
255
+ const { isTabletOrSmaller: t } = (0, _hooksJs.useScreenSize)();
255
256
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_responsiveLayoutJs.default, {
256
257
  isInverse: i,
257
258
  children: [
258
259
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_overscrollColorContextJs.default, {}),
259
- o ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
260
+ t ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
260
261
  paddingTop: 12,
261
262
  paddingBottom: 24,
262
263
  children: e
@@ -9,14 +9,14 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- container: ()=>f,
13
- imageContent: ()=>y,
12
+ container: ()=>y,
13
+ imageContent: ()=>f,
14
14
  textContainerVariant: ()=>_,
15
15
  touchableContainer: ()=>r
16
16
  });
17
17
  require("./sprinkles.css.ts.vanilla.js");
18
18
  require("./highlighted-card.css.ts.vanilla.js");
19
- var f = "wrb8722 _1y2v1nf56 _1y2v1nf5b _1y2v1nf5i _1y2v1nf5o", y = "wrb8725 _1y2v1nf56", _ = {
20
- withImage: "wrb8728 wrb8727 _1y2v1nf56 _1y2v1nf5c _1y2v1nf5k _1y2v1nf5z _1y2v1nf6d _1y2v1nf6q",
21
- withoutImage: "wrb8729 wrb8727 _1y2v1nf56 _1y2v1nf5c _1y2v1nf5k _1y2v1nf5z _1y2v1nf6d _1y2v1nf6q"
22
- }, r = "_1y2v1nf5t _1y2v1nf67 _1y2v1nf6l _1y2v1nf6z _1y2v1nf56 _1y2v1nf5o _1y2v1nf94 _1y2v1nf7d _1y2v1nf50";
19
+ var y = "wrb8722 _1y2v1nf5g _1y2v1nf5l _1y2v1nf5s _1y2v1nf5y", f = "wrb8725 _1y2v1nf5g", _ = {
20
+ withImage: "wrb8728 wrb8727 _1y2v1nf5g _1y2v1nf5m _1y2v1nf5u _1y2v1nf69 _1y2v1nf6n _1y2v1nf70",
21
+ withoutImage: "wrb8729 wrb8727 _1y2v1nf5g _1y2v1nf5m _1y2v1nf5u _1y2v1nf69 _1y2v1nf6n _1y2v1nf70"
22
+ }, r = "_1y2v1nf63 _1y2v1nf6h _1y2v1nf6v _1y2v1nf79 _1y2v1nf5g _1y2v1nf5y _1y2v1nf9e _1y2v1nf7n _1y2v1nf5a";
package/dist/hooks.js CHANGED
@@ -9,17 +9,17 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- useAriaId: ()=>R,
13
- useDisableBodyScroll: ()=>T,
14
- useElementDimensions: ()=>C,
15
- useIsInViewport: ()=>D,
16
- useIsomorphicLayoutEffect: ()=>M,
17
- useScreenHeight: ()=>L,
18
- useScreenSize: ()=>z,
19
- useTheme: ()=>H,
20
- useWindowHeight: ()=>A,
12
+ useAriaId: ()=>z,
13
+ useDisableBodyScroll: ()=>I,
14
+ useElementDimensions: ()=>T,
15
+ useIsInViewport: ()=>M,
16
+ useIsomorphicLayoutEffect: ()=>L,
17
+ useScreenHeight: ()=>B,
18
+ useScreenSize: ()=>H,
19
+ useTheme: ()=>S,
20
+ useWindowHeight: ()=>C,
21
21
  useWindowSize: ()=>l,
22
- useWindowWidth: ()=>B
22
+ useWindowWidth: ()=>R
23
23
  });
24
24
  const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
25
25
  const _themeContextJs = /*#__PURE__*/ _interopRequireDefault(require("./theme-context.js"));
@@ -70,22 +70,22 @@ function _interopRequireWildcard(obj, nodeInterop) {
70
70
  }
71
71
  return newObj;
72
72
  }
73
- const H = ()=>{
73
+ const S = ()=>{
74
74
  const t = _react.useContext(_themeContextJs.default);
75
75
  if (!t) throw Error("To use @telefonica/mistica components you must instantiate <ThemeContextProvider> as their parent.");
76
76
  return t;
77
- }, T = (t)=>{
77
+ }, I = (t)=>{
78
78
  _react.useEffect(()=>{
79
79
  if (t) {
80
- let i = "", e = 0, s = 0;
80
+ let i = "", e = 0, o = 0;
81
81
  const r = document.scrollingElement || document.documentElement, c = ()=>{
82
- var u, o, h, w;
83
- if (s++, !(s > 1) && (e = (u = r == null ? void 0 : r.scrollTop) != null ? u : 0, i = (h = (o = document.body) == null ? void 0 : o.style.cssText) != null ? h : "", document.body)) {
84
- const a = window.innerWidth > ((w = r == null ? void 0 : r.clientWidth) != null ? w : window.innerWidth) ? "scroll" : "hidden";
85
- document.body.style.cssText = `overflow:hidden;overflow-y:${a};position:fixed;top:${-e}px;left:0px;right:0px;bottom:0px`;
82
+ var u, s, h, w;
83
+ if (o++, !(o > 1) && (e = (u = r == null ? void 0 : r.scrollTop) != null ? u : 0, i = (h = (s = document.body) == null ? void 0 : s.style.cssText) != null ? h : "", document.body)) {
84
+ const f = window.innerWidth > ((w = r == null ? void 0 : r.clientWidth) != null ? w : window.innerWidth) ? "scroll" : "hidden";
85
+ document.body.style.cssText = `overflow:hidden;overflow-y:${f};position:fixed;top:${-e}px;left:0px;right:0px;bottom:0px`;
86
86
  }
87
87
  }, d = ()=>{
88
- s--, !(s > 0) && (document.body && (document.body.style.cssText = i), r && (r.scrollTop = e));
88
+ o--, !(o > 0) && (document.body && (document.body.style.cssText = i), r && (r.scrollTop = e));
89
89
  };
90
90
  return c(), d;
91
91
  }
@@ -93,20 +93,20 @@ const H = ()=>{
93
93
  }, [
94
94
  t
95
95
  ]);
96
- }, z = ()=>_react.useContext(_screenSizeContextJs.default), C = ()=>{
97
- const [t, i] = _react.useState(0), [e, s] = _react.useState(0), [r, c] = _react.useState(null), d = _react.useCallback((o)=>{
98
- if (!o) {
99
- i(0), s(0);
96
+ }, H = ()=>_react.useContext(_screenSizeContextJs.default), T = ()=>{
97
+ const [t, i] = _react.useState(0), [e, o] = _react.useState(0), [r, c] = _react.useState(null), d = _react.useCallback((s)=>{
98
+ if (!s) {
99
+ i(0), o(0);
100
100
  return;
101
101
  }
102
- const { width: h , height: w } = o[0].contentRect;
103
- i(h), s(w);
104
- }, []), u = _react.useCallback((o)=>{
105
- c(o);
102
+ const { width: h , height: w } = s[0].contentRect;
103
+ i(h), o(w);
104
+ }, []), u = _react.useCallback((s)=>{
105
+ c(s);
106
106
  }, []);
107
107
  return _react.useEffect(()=>{
108
108
  if (!r) {
109
- i(0), s(0);
109
+ i(0), o(0);
110
110
  return;
111
111
  }
112
112
  return (0, _domJs.listenResize)(r, d);
@@ -118,20 +118,23 @@ const H = ()=>{
118
118
  height: e,
119
119
  ref: u
120
120
  };
121
- }, S = (t)=>{
122
- const i = _react.useId();
123
- return t || i;
124
- }, b = _react.useId !== void 0, R = b ? S : (t)=>{
125
- const i = _react.useContext(_ariaIdGetterContextJs.default);
126
- return _react.useRef(t || i()).current;
121
+ }, z = (t)=>{
122
+ const { useId: i } = S();
123
+ if (i) {
124
+ const e = i();
125
+ return t || e;
126
+ } else {
127
+ const e1 = _react.useContext(_ariaIdGetterContextJs.default);
128
+ return _react.useRef(t || e1()).current;
129
+ }
127
130
  }, l = ()=>{
128
- const [t, i] = _react.useState(typeof window < "u" ? window.innerHeight : 1200), [e, s] = _react.useState(typeof window < "u" ? window.innerWidth : 800), [r, c] = _react.useState(typeof window < "u" ? window.screen.availHeight : 1200), [d, u] = _react.useState(typeof window < "u" ? window.screen.availWidth : 800);
131
+ const [t, i] = _react.useState(typeof window < "u" ? window.innerHeight : 1200), [e, o] = _react.useState(typeof window < "u" ? window.innerWidth : 800), [r, c] = _react.useState(typeof window < "u" ? window.screen.availHeight : 1200), [d, u] = _react.useState(typeof window < "u" ? window.screen.availWidth : 800);
129
132
  return _react.useEffect(()=>{
130
- const o = ()=>{
131
- i(window.innerHeight), s(window.innerWidth), c(window.screen.availHeight), u(window.screen.availWidth);
133
+ const s = ()=>{
134
+ i(window.innerHeight), o(window.innerWidth), c(window.screen.availHeight), u(window.screen.availWidth);
132
135
  };
133
- return window.addEventListener("resize", o), ()=>{
134
- window.removeEventListener("resize", o);
136
+ return window.addEventListener("resize", s), ()=>{
137
+ window.removeEventListener("resize", s);
135
138
  };
136
139
  }, []), _react.useMemo(()=>({
137
140
  height: t,
@@ -144,17 +147,17 @@ const H = ()=>{
144
147
  r,
145
148
  d
146
149
  ]);
147
- }, A = ()=>{
150
+ }, C = ()=>{
148
151
  const { height: t } = l();
149
152
  return t;
150
- }, B = ()=>{
153
+ }, R = ()=>{
151
154
  const { width: t } = l();
152
155
  return t;
153
- }, L = ()=>{
156
+ }, B = ()=>{
154
157
  const { screenHeight: t } = l();
155
158
  return t;
156
- }, M = typeof window < "u" ? _react.useLayoutEffect : _react.useEffect, D = (t, i, e)=>{
157
- const [s, r] = _react.useState(i);
159
+ }, L = typeof window < "u" ? _react.useLayoutEffect : _react.useEffect, M = (t, i, e)=>{
160
+ const [o, r] = _react.useState(i);
158
161
  return _react.useEffect(()=>{
159
162
  if (!t.current) return;
160
163
  if (typeof window.IntersectionObserver > "u") return ()=>{};
@@ -173,5 +176,5 @@ const H = ()=>{
173
176
  e == null ? void 0 : e.root,
174
177
  e == null ? void 0 : e.rootMargin,
175
178
  e == null ? void 0 : e.threshold
176
- ]), s;
179
+ ]), o;
177
180
  };
@@ -8,4 +8,4 @@ Object.defineProperty(exports, "base", {
8
8
  });
9
9
  require("./sprinkles.css.ts.vanilla.js");
10
10
  require("./icon-button.css.ts.vanilla.js");
11
- var t = "yqt1oe1 _1y2v1nf5a";
11
+ var t = "yqt1oe1 _1y2v1nf5k";
@@ -9,9 +9,9 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- FADE_IN_DURATION_MS: ()=>y,
12
+ FADE_IN_DURATION_MS: ()=>n,
13
13
  image: ()=>f
14
14
  });
15
15
  require("./sprinkles.css.ts.vanilla.js");
16
16
  require("./image.css.ts.vanilla.js");
17
- var y = 300, f = "_17tt25r1 _1y2v1nf9e _1y2v1nf9s _1y2v1nf58 _1y2v1nf7d _1y2v1nf7t _1y2v1nfay _1y2v1nf91 _1y2v1nf92";
17
+ var n = 300, f = "_17tt25r1 _1y2v1nf9o _1y2v1nfa2 _1y2v1nf5i _1y2v1nf7n _1y2v1nf83 _1y2v1nfb8 _1y2v1nf9b _1y2v1nf9c";
package/dist/image.d.ts CHANGED
@@ -23,8 +23,8 @@ export type ImageProps = {
23
23
  children?: void;
24
24
  dataAttributes?: DataAttributes;
25
25
  noBorderRadius?: boolean;
26
- onError?: (event: React.SyntheticEvent) => void;
27
- onLoad?: (event: React.SyntheticEvent) => void;
26
+ onError?: () => void;
27
+ onLoad?: () => void;
28
28
  loadingFallback?: boolean;
29
29
  errorFallback?: boolean;
30
30
  };