@telefonica/mistica 16.5.0 → 16.6.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 (74) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/callout.js +27 -15
  3. package/dist/card.css-mistica.js +5 -5
  4. package/dist/card.d.ts +9 -1
  5. package/dist/card.js +611 -475
  6. package/dist/community/advanced-data-card.css-mistica.js +14 -11
  7. package/dist/community/advanced-data-card.css.d.ts +1 -0
  8. package/dist/community/advanced-data-card.d.ts +1 -1
  9. package/dist/community/advanced-data-card.js +172 -85
  10. package/dist/cover-hero.css-mistica.js +14 -11
  11. package/dist/cover-hero.css.d.ts +1 -0
  12. package/dist/cover-hero.d.ts +1 -0
  13. package/dist/cover-hero.js +101 -59
  14. package/dist/empty-state.js +24 -15
  15. package/dist/header.css-mistica.js +6 -3
  16. package/dist/header.css.d.ts +1 -0
  17. package/dist/header.d.ts +3 -2
  18. package/dist/header.js +148 -79
  19. package/dist/hero.css-mistica.js +11 -8
  20. package/dist/hero.css.d.ts +1 -0
  21. package/dist/hero.d.ts +2 -1
  22. package/dist/hero.js +102 -68
  23. package/dist/highlighted-card.js +32 -23
  24. package/dist/index.d.ts +1 -0
  25. package/dist/index.js +4 -0
  26. package/dist/maybe-dismissable.js +8 -5
  27. package/dist/meter.d.ts +23 -0
  28. package/dist/meter.js +400 -0
  29. package/dist/package-version.js +1 -1
  30. package/dist/sheet-common.css-mistica.js +16 -10
  31. package/dist/sheet-common.css.d.ts +3 -1
  32. package/dist/sheet-common.js +78 -70
  33. package/dist/sheet-info.css-mistica.js +15 -4
  34. package/dist/sheet-info.css.d.ts +2 -0
  35. package/dist/sheet-info.d.ts +3 -0
  36. package/dist/sheet-info.js +61 -43
  37. package/dist/sheet-native.js +59 -48
  38. package/dist/sheet-types.d.ts +6 -1
  39. package/dist/sheet-web.js +6 -4
  40. package/dist/text-tokens.d.ts +10 -0
  41. package/dist/text-tokens.js +54 -38
  42. package/dist/theme-context-provider.js +60 -50
  43. package/dist/theme.d.ts +3 -2
  44. package/dist/utils/headings.d.ts +2 -0
  45. package/dist/utils/headings.js +11 -0
  46. package/dist/utils/types.d.ts +1 -0
  47. package/dist-es/callout.js +55 -43
  48. package/dist-es/card.css-mistica.js +2 -2
  49. package/dist-es/card.js +721 -588
  50. package/dist-es/community/advanced-data-card.css-mistica.js +3 -3
  51. package/dist-es/community/advanced-data-card.js +217 -130
  52. package/dist-es/cover-hero.css-mistica.js +3 -3
  53. package/dist-es/cover-hero.js +132 -90
  54. package/dist-es/empty-state.js +40 -31
  55. package/dist-es/header.css-mistica.js +2 -2
  56. package/dist-es/header.js +174 -104
  57. package/dist-es/hero.css-mistica.js +2 -2
  58. package/dist-es/hero.js +150 -115
  59. package/dist-es/highlighted-card.js +36 -27
  60. package/dist-es/index.js +1839 -1838
  61. package/dist-es/maybe-dismissable.js +17 -14
  62. package/dist-es/meter.js +346 -0
  63. package/dist-es/package-version.js +1 -1
  64. package/dist-es/sheet-common.css-mistica.js +2 -2
  65. package/dist-es/sheet-common.js +124 -116
  66. package/dist-es/sheet-info.css-mistica.js +2 -2
  67. package/dist-es/sheet-info.js +74 -56
  68. package/dist-es/sheet-native.js +59 -48
  69. package/dist-es/sheet-web.js +10 -8
  70. package/dist-es/style.css +1 -1
  71. package/dist-es/text-tokens.js +30 -20
  72. package/dist-es/theme-context-provider.js +88 -78
  73. package/dist-es/utils/headings.js +2 -0
  74. package/package.json +2 -1
@@ -121,52 +121,61 @@ if (process.env.NODE_ENV !== "production" && (0, _environment.isClientSide)()) {
121
121
  window.__mistica_version__ = _packageversion.PACKAGE_VERSION;
122
122
  }
123
123
  const re = "(prefers-color-scheme: dark)", oe = ()=>{
124
- const [e, l] = _react.useState(!1);
124
+ const [e, c] = _react.useState(!1);
125
125
  return (0, _hooks.useIsomorphicLayoutEffect)(()=>{
126
126
  if (!window.matchMedia) return;
127
- const n = window.matchMedia(re), s = ()=>{
128
- l(n.matches);
127
+ const a = window.matchMedia(re), i = ()=>{
128
+ c(a.matches);
129
129
  };
130
- return n.addEventListener("change", s), s(), ()=>{
131
- n.removeEventListener("change", s);
130
+ return a.addEventListener("change", i), i(), ()=>{
131
+ a.removeEventListener("change", i);
132
132
  };
133
133
  }, []), e;
134
134
  }, se = ()=>(e)=>e, ie = (e)=>({
135
135
  headerMobileHeight: (e == null ? void 0 : e.headerMobileHeight) === "mistica" ? _theme.NAVBAR_HEIGHT_MOBILE : e == null ? void 0 : e.headerMobileHeight
136
136
  }), ne = ()=>{
137
- const e = _react.useRef(null), [l, n] = _react.useState(!1), [s, h] = _react.useState(!0);
137
+ const e = _react.useRef(null), [c, a] = _react.useState(!1), [i, g] = _react.useState(!0);
138
138
  return (0, _hooks.useIsomorphicLayoutEffect)(()=>{
139
- var m;
140
- if (s) h(!1);
139
+ var d;
140
+ if (i) g(!1);
141
141
  else {
142
- const p = (m = e.current) == null ? void 0 : m.parentElement;
143
- p && (p.style.isolation = "isolate", n(!0));
142
+ const u = (d = e.current) == null ? void 0 : d.parentElement;
143
+ u && (u.style.isolation = "isolate", a(!0));
144
144
  }
145
145
  }, [
146
- s
147
- ]), l || !(0, _environment.isClientSide)() || s ? null : /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
146
+ i
147
+ ]), c || !(0, _environment.isClientSide)() || i ? null : /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
148
148
  ref: e,
149
149
  style: {
150
150
  display: "none"
151
151
  }
152
152
  });
153
153
  }, ae = (param)=>{
154
- let { theme: e, children: l, as: n, withoutStyles: s = !1 } = param;
154
+ let { theme: e, children: c, as: a, withoutStyles: i = !1 } = param;
155
155
  var _e_colorScheme, _e_skin_borderRadii;
156
- const h = oe(), m = (_e_colorScheme = e.colorScheme) !== null && _e_colorScheme !== void 0 ? _e_colorScheme : "auto", p = e.skin.colors, R = _object_spread({}, e.skin.colors, e.skin.darkModeColors), g = m === "auto" && h || m === "dark", d = g ? R : p, b = (0, _locale.localeToLanguage)(e.i18n.locale), k = _react.useCallback((o)=>o[b] || o.en, [
156
+ const g = oe(), d = (_e_colorScheme = e.colorScheme) !== null && _e_colorScheme !== void 0 ? _e_colorScheme : "auto", u = e.skin.colors, V = _object_spread({}, e.skin.colors, e.skin.darkModeColors), h = d === "auto" && g || d === "dark", p = h ? V : u, b = (0, _locale.localeToLanguage)(e.i18n.locale), k = _react.useCallback(function(o) {
157
+ for(var _len = arguments.length, s = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
158
+ s[_key - 1] = arguments[_key];
159
+ }
160
+ const t = o[b] || o.en;
161
+ return s.length ? t.replace(/\d+\$s/g, (l)=>{
162
+ var _s_;
163
+ return String((_s_ = s[parseInt(l) - 1]) !== null && _s_ !== void 0 ? _s_ : l);
164
+ }) : t;
165
+ }, [
157
166
  b
158
- ]), c = _react.useMemo(()=>{
167
+ ]), m = _react.useMemo(()=>{
159
168
  const o = _object_spread({
160
169
  platform: (0, _platform.getPlatform)(),
161
170
  insideNovumNativeApp: (0, _platform.isInsideNovumNativeApp)()
162
- }, e.platformOverrides), a = Object.entries(_defaults.defaultTextPresetsConfig).map((param)=>{
163
- let [u, x] = param;
171
+ }, e.platformOverrides), s = Object.entries(_defaults.defaultTextPresetsConfig).map((param)=>{
172
+ let [l, x] = param;
164
173
  var f;
165
174
  return {
166
- [u]: _object_spread({}, x, (f = e.skin.textPresets) == null ? void 0 : f[u])
175
+ [l]: _object_spread({}, x, (f = e.skin.textPresets) == null ? void 0 : f[l])
167
176
  };
168
- }), t = Object.assign({}, ...a);
169
- var _e_useHrefDecorator, _e_preventCopyInFormFields;
177
+ }), t = Object.assign({}, ...s);
178
+ var _e_skin_borderRadii, _e_useHrefDecorator, _e_preventCopyInFormFields;
170
179
  return {
171
180
  skinName: e.skin.name,
172
181
  i18n: _object_spread({}, e.i18n),
@@ -176,39 +185,40 @@ const re = "(prefers-color-scheme: dark)", oe = ()=>{
176
185
  logEvent: ()=>Promise.resolve(),
177
186
  eventFormat: "universal-analytics"
178
187
  }, e.analytics),
179
- colorValues: d,
188
+ colorValues: p,
180
189
  dimensions: _object_spread({}, _theme.dimensions, ie(e.dimensions)),
181
190
  textPresets: t,
191
+ borderRadii: (_e_skin_borderRadii = e.skin.borderRadii) !== null && _e_skin_borderRadii !== void 0 ? _e_skin_borderRadii : _defaults.defaultBorderRadiiConfig,
182
192
  Link: (0, _theme.getMisticaLinkComponent)(e.Link),
183
- isDarkMode: g,
193
+ isDarkMode: h,
184
194
  isIos: (0, _platform.getPlatform)(o) === "ios",
185
195
  useHrefDecorator: (_e_useHrefDecorator = e.useHrefDecorator) !== null && _e_useHrefDecorator !== void 0 ? _e_useHrefDecorator : se,
186
196
  t: k,
187
197
  preventCopyInFormFields: (_e_preventCopyInFormFields = e.preventCopyInFormFields) !== null && _e_preventCopyInFormFields !== void 0 ? _e_preventCopyInFormFields : !1
188
198
  };
189
199
  }, [
190
- d,
200
+ p,
191
201
  e,
192
- g,
202
+ h,
193
203
  k
194
- ]), V = _react.useMemo(()=>Object.fromEntries(Object.entries(d).map((param)=>{
195
- let [o, a] = param;
204
+ ]), D = _react.useMemo(()=>Object.fromEntries(Object.entries(p).map((param)=>{
205
+ let [o, s] = param;
196
206
  let t = "";
197
- if (a.startsWith("#")) {
198
- const [u, x, f] = (0, _color.fromHexToRgb)(a);
199
- t = `${u}, ${x}, ${f}`;
207
+ if (s.startsWith("#")) {
208
+ const [l, x, f] = (0, _color.fromHexToRgb)(s);
209
+ t = `${l}, ${x}, ${f}`;
200
210
  }
201
211
  return [
202
212
  o,
203
213
  t
204
214
  ];
205
215
  })), [
206
- d
207
- ]), D = _react.useMemo(()=>{
208
- const o = Object.entries(c.textPresets).map((param)=>{
209
- let [a, t] = param;
216
+ p
217
+ ]), I = _react.useMemo(()=>{
218
+ const o = Object.entries(m.textPresets).map((param)=>{
219
+ let [s, t] = param;
210
220
  return {
211
- [a]: _object_spread({}, t.weight && {
221
+ [s]: _object_spread({}, t.weight && {
212
222
  weight: String(_text.mapToWeight[t.weight])
213
223
  }, t.size && {
214
224
  size: `${t.size.desktop}px`
@@ -219,12 +229,12 @@ const re = "(prefers-color-scheme: dark)", oe = ()=>{
219
229
  });
220
230
  return Object.assign({}, ...o);
221
231
  }, [
222
- c
232
+ m
223
233
  ]), C = _react.useMemo(()=>{
224
- const o = Object.entries(c.textPresets).map((param)=>{
225
- let [a, t] = param;
234
+ const o = Object.entries(m.textPresets).map((param)=>{
235
+ let [s, t] = param;
226
236
  return {
227
- [a]: _object_spread({}, t.weight && {
237
+ [s]: _object_spread({}, t.weight && {
228
238
  weight: String(_text.mapToWeight[t.weight])
229
239
  }, t.size && {
230
240
  size: `${t.size.mobile}px`
@@ -235,11 +245,11 @@ const re = "(prefers-color-scheme: dark)", oe = ()=>{
235
245
  });
236
246
  return Object.assign({}, ...o);
237
247
  }, [
238
- c
248
+ m
239
249
  ]), M = {
240
- textPresets: D,
241
- colors: d,
242
- rawColors: V,
250
+ textPresets: I,
251
+ colors: p,
252
+ rawColors: D,
243
253
  borderRadii: (_e_skin_borderRadii = e.skin.borderRadii) !== null && _e_skin_borderRadii !== void 0 ? _e_skin_borderRadii : _defaults.defaultBorderRadiiConfig
244
254
  };
245
255
  return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
@@ -249,22 +259,22 @@ const re = "(prefers-color-scheme: dark)", oe = ()=>{
249
259
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_modalcontextprovider.default, {
250
260
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_tooltipcontextprovider.default, {
251
261
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_themecontext.default.Provider, {
252
- value: c,
262
+ value: m,
253
263
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_analytics.TrackingConfig, {
254
- eventFormat: c.analytics.eventFormat,
264
+ eventFormat: m.analytics.eventFormat,
255
265
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_aspectratiosupport.AspectRatioSupportProvider, {
256
266
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_documentvisibility.DocumentVisibilityProvider, {
257
267
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_screensizecontextprovider.default, {
258
268
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_dialogcontext.DialogRoot, {
259
269
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_snackbarcontext.SnackbarRoot, {
260
- children: n ? /*#__PURE__*/ _react.createElement(n, {
270
+ children: a ? /*#__PURE__*/ _react.createElement(a, {
261
271
  style: _object_spread({
262
272
  isolation: "isolate"
263
273
  }, (0, _dynamic.assignInlineVars)(_themecontextcssmistica.themeVarsContract, M), (0, _dynamic.assignInlineVars)(_themecontextcssmistica.textPresetResponsiveVarsContract, C)),
264
- className: s ? void 0 : _themecontextcssmistica.themeVars
265
- }, l) : /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
274
+ className: i ? void 0 : _themecontextcssmistica.themeVars
275
+ }, c) : /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
266
276
  children: [
267
- !s && (process.env.NODE_ENV !== "test" || process.env.SSR_TEST) && /* @__PURE__ */ (0, _jsxruntime.jsx)("style", {
277
+ !i && (process.env.NODE_ENV !== "test" || process.env.SSR_TEST) && /* @__PURE__ */ (0, _jsxruntime.jsx)("style", {
268
278
  children: `
269
279
  :root {${(0, _dynamic.assignInlineVars)(_skincontractcssmistica.vars, M)}}
270
280
  @media ${_mediaqueriescssmistica.tabletOrSmaller} {
@@ -272,7 +282,7 @@ const re = "(prefers-color-scheme: dark)", oe = ()=>{
272
282
  }
273
283
  `
274
284
  }),
275
- l
285
+ c
276
286
  ]
277
287
  })
278
288
  })
@@ -285,7 +295,7 @@ const re = "(prefers-color-scheme: dark)", oe = ()=>{
285
295
  })
286
296
  })
287
297
  }),
288
- !n && /* @__PURE__ */ (0, _jsxruntime.jsx)(ne, {})
298
+ !a && /* @__PURE__ */ (0, _jsxruntime.jsx)(ne, {})
289
299
  ]
290
300
  });
291
301
  }, Ve = ae;
package/dist/theme.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import type { RegionCode } from './utils/region-code';
3
3
  import type { Locale } from './utils/locale';
4
- import type { Colors, Skin, SkinName, TextPresetsConfig } from './skins/types';
4
+ import type { BorderRadiiConfig, Colors, Skin, SkinName, TextPresetsConfig } from './skins/types';
5
5
  import type { TrackingEvent } from './utils/types';
6
6
  import type { Dictionary, TextToken } from './text-tokens';
7
7
  export declare const NAVBAR_HEIGHT_MOBILE = 56;
@@ -94,12 +94,13 @@ export type Theme = {
94
94
  headerDesktopHeight: number;
95
95
  };
96
96
  colorValues: Colors;
97
+ borderRadii: BorderRadiiConfig;
97
98
  textPresets: TextPresetsConfig;
98
99
  Link: LinkComponent;
99
100
  isDarkMode: boolean;
100
101
  isIos: boolean;
101
102
  useHrefDecorator: () => (href: string) => string;
102
- t: (token: TextToken) => string;
103
+ t: (token: TextToken, ...params: Array<string | number>) => string;
103
104
  preventCopyInFormFields: boolean;
104
105
  };
105
106
  export {};
@@ -0,0 +1,2 @@
1
+ import type { HeadingType } from './types';
2
+ export declare const isBiggerHeading: (heading: HeadingType, otherHeading?: HeadingType) => boolean;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "isBiggerHeading", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return t;
9
+ }
10
+ });
11
+ const t = (r, s)=>!s || r === s ? !0 : r === "span" ? !1 : r < s;
@@ -3,6 +3,7 @@ export type { RendersElement, RendersNullableElement } from './renders-element';
3
3
  export type { TrackingEvent } from '@tef-novum/webview-bridge';
4
4
  export type DataAttributes = {
5
5
  [name: string]: string | number | boolean | undefined;
6
+ testid?: string;
6
7
  };
7
8
  export type IconProps = {
8
9
  color?: string;
@@ -51,91 +51,103 @@ function _object_spread_props(target, source) {
51
51
  }
52
52
  return target;
53
53
  }
54
- import { jsx as r, jsxs as e } from "react/jsx-runtime";
55
- import s from "./stack.js";
56
- import B from "./inline.js";
54
+ import { jsx as t, jsxs as e } from "react/jsx-runtime";
55
+ import m from "./stack.js";
56
+ import g from "./inline.js";
57
57
  import v from "./box.js";
58
58
  import { useTheme as I } from "./hooks.js";
59
- import { useThemeVariant as C, ThemeVariant as R } from "./theme-variant-context.js";
60
- import { Text3 as T, Text2 as N } from "./text.js";
61
- import S from "./generated/mistica-icons/icon-close-regular.js";
62
- import { IconButton as y } from "./icon-button.js";
63
- import V from "classnames";
64
- import j from "./button-group.js";
65
- import { container as k, background as L, content as P, closeButtonContainerSize as $, closeButtonContainer as w } from "./callout.css-mistica.js";
66
- import { vars as z } from "./image.css-mistica.js";
59
+ import { useThemeVariant as A, ThemeVariant as C } from "./theme-variant-context.js";
60
+ import { Text3 as R, Text2 as T } from "./text.js";
61
+ import N from "./generated/mistica-icons/icon-close-regular.js";
62
+ import { IconButton as S } from "./icon-button.js";
63
+ import y from "classnames";
64
+ import V from "./button-group.js";
65
+ import { container as j, background as k, content as L, closeButtonContainerSize as P, closeButtonContainer as $ } from "./callout.css-mistica.js";
66
+ import { vars as w } from "./image.css-mistica.js";
67
67
  import { vars as n } from "./skins/skin-contract.css-mistica.js";
68
- import { getPrefixedDataAttributes as A } from "./utils/dom.js";
68
+ import { getPrefixedDataAttributes as z } from "./utils/dom.js";
69
69
  import { applyCssVars as D } from "./utils/css.js";
70
70
  import { closeButtonLabel as G } from "./text-tokens.js";
71
71
  const W = (param)=>{
72
- let { title: o, titleAs: c = "h2", description: d, asset: a, onClose: t, closeButtonLabel: p, button: i, secondaryButton: l, buttonLink: m, "aria-label": u, dataAttributes: f, role: h } = param;
73
- const b = C(), { texts: x, t: g } = I();
74
- return /* @__PURE__ */ r("section", _object_spread_props(_object_spread({
75
- className: V(k, L[b]),
72
+ let { title: a, titleAs: c = "h2", description: d, asset: o, onClose: r, closeButtonLabel: u, button: i, secondaryButton: s, buttonLink: l, "aria-label": p, dataAttributes: f, role: h } = param;
73
+ const b = A(), { texts: x, t: B } = I();
74
+ return /* @__PURE__ */ t("section", _object_spread_props(_object_spread({
75
+ className: y(j, k[b]),
76
76
  style: D({
77
- [z.mediaBorderRadius]: n.borderRadii.mediaSmall
77
+ [w.mediaBorderRadius]: n.borderRadii.mediaSmall
78
78
  }),
79
- "aria-label": u !== null && u !== void 0 ? u : o,
79
+ "aria-label": p !== null && p !== void 0 ? p : a,
80
80
  role: h
81
- }, A(f, "Callout")), {
82
- children: /* @__PURE__ */ e(R, {
81
+ }, z(f, "Callout")), {
82
+ children: /* @__PURE__ */ e(C, {
83
83
  isInverse: !1,
84
84
  children: [
85
- a && /* @__PURE__ */ r(v, {
85
+ o && /* @__PURE__ */ t(v, {
86
86
  paddingRight: 16,
87
- children: a
87
+ dataAttributes: {
88
+ testid: "asset"
89
+ },
90
+ children: o
88
91
  }),
89
92
  /* @__PURE__ */ e("div", {
90
- className: P,
93
+ className: L,
91
94
  children: [
92
- /* @__PURE__ */ e(s, {
95
+ /* @__PURE__ */ e(m, {
93
96
  space: 16,
94
97
  children: [
95
- /* @__PURE__ */ e(B, {
98
+ /* @__PURE__ */ e(g, {
96
99
  fullWidth: !0,
97
100
  alignItems: "flex-start",
98
101
  space: "between",
99
102
  children: [
100
- /* @__PURE__ */ e(s, {
103
+ /* @__PURE__ */ e(m, {
101
104
  space: 4,
102
105
  children: [
103
- /* @__PURE__ */ r(T, {
106
+ /* @__PURE__ */ t(R, {
104
107
  as: c,
105
108
  regular: !0,
106
- children: o
109
+ dataAttributes: {
110
+ testid: "title"
111
+ },
112
+ children: a
107
113
  }),
108
- /* @__PURE__ */ r(N, {
114
+ /* @__PURE__ */ t(T, {
109
115
  as: "p",
110
116
  regular: !0,
111
117
  color: n.colors.textSecondary,
118
+ dataAttributes: {
119
+ testid: "description"
120
+ },
112
121
  children: d
113
122
  })
114
123
  ]
115
124
  }),
116
- t && // Create empty div in order to fill space that iconButton occupies.
125
+ r && // Create empty div in order to fill space that iconButton occupies.
117
126
  // Without this, the content's vertical alignment can be affected
118
- /* @__PURE__ */ r("div", {
119
- className: $
127
+ /* @__PURE__ */ t("div", {
128
+ className: P
120
129
  })
121
130
  ]
122
131
  }),
123
- (i || l || m) && /* @__PURE__ */ r(j, {
132
+ (i || s || l) && /* @__PURE__ */ t(V, {
124
133
  primaryButton: i,
125
- secondaryButton: l,
126
- link: m
134
+ secondaryButton: s,
135
+ link: l
127
136
  })
128
137
  ]
129
138
  }),
130
- t && /* @__PURE__ */ r("div", {
131
- className: w,
132
- children: /* @__PURE__ */ r(y, {
139
+ r && /* @__PURE__ */ t("div", {
140
+ className: $,
141
+ children: /* @__PURE__ */ t(S, {
142
+ dataAttributes: {
143
+ testid: "closeButton"
144
+ },
133
145
  small: !0,
134
146
  bleedY: !0,
135
147
  bleedRight: !0,
136
- Icon: S,
137
- onPress: t,
138
- "aria-label": p || x.closeButtonLabel || g(G)
148
+ Icon: N,
149
+ onPress: r,
150
+ "aria-label": u || x.closeButtonLabel || B(G)
139
151
  })
140
152
  })
141
153
  ]
@@ -143,5 +155,5 @@ const W = (param)=>{
143
155
  ]
144
156
  })
145
157
  }));
146
- }, or = W;
147
- export { or as default };
158
+ }, at = W;
159
+ export { at as default };
@@ -1,8 +1,8 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./icon-button.css.ts.vanilla.css-mistica.js";
3
3
  import "./card.css.ts.vanilla.css-mistica.js";
4
- var _ = "_15e54s91 _1y2v1nfho _1y2v1nfia _1y2v1nfi4", y = "_15e54s93 _1y2v1nfho _1y2v1nfhi", e = "_15e54s912", r = "_1y2v1nfho _1y2v1nfia _1y2v1nfi0 _1y2v1nfhu", f = "_15e54s99", i = "_15e54s9m _1y2v1nfae _1y2v1nfbn _1y2v1nf82 _1y2v1nf9b _1y2v1nfho _1y2v1nfia _1y2v1nfhi _1y2v1nfhu _1y2v1nfib", s = "_15e54s913", t = "_15e54s9v", o = "_1y2v1nfib _1y2v1nfis _1y2v1nfho _1y2v1nfhi", d = "_15e54s9s", C = "_1y2v1nf7w _1y2v1nf84", h = "_1y2v1nf82", b = "_1y2v1nfak _1y2v1nfbt _1y2v1nf9b", l = "_15e54s9y _1y2v1nf88", p = "_15e54s914", c = "_1y2v1nfho _1y2v1nfhu _1y2v1nfis _1y2v1nfib _1y2v1nfia", u = "_15e54s9i _1y2v1nfae _1y2v1nfam _1y2v1nf7w _1y2v1nf84", m = "_15e54s9g _1y2v1nfae _1y2v1nfbn _1y2v1nfho _1y2v1nfia _1y2v1nfhi _1y2v1nf7w _1y2v1nf9b _1y2v1nfhu _1y2v1nfi0", O = "_15e54s9k _1y2v1nfho _1y2v1nfia _1y2v1nfhi _1y2v1nfhu _1y2v1nfi0 _1y2v1nf7w _1y2v1nfbn", k = "_1y2v1nfae _1y2v1nfam _1y2v1nfbn _1y2v1nfbv _1y2v1nf9b", w = "_15e54s9o _1y2v1nf7w _1y2v1nf95 _1y2v1nfae _1y2v1nfbn _1y2v1nfho _1y2v1nfhi _1y2v1nfis _1y2v1nfhu _1y2v1nfi0 _1y2v1nfib _1y2v1nfia", W = "_15e54s96", A = "_15e54s9b _15e54s97", M = "_15e54s9c _15e54s97", x = "_15e54s9d _15e54s97", g = "_15e54s95", I = "_15e54s98 _15e54s97", T = "_15e54s9a _15e54s97", B = {
4
+ var _ = "_15e54s91 _1y2v1nfho _1y2v1nfia _1y2v1nfi4", y = "_15e54s93 _1y2v1nfho _1y2v1nfhi", e = "_15e54s912", r = "_1y2v1nfho _1y2v1nfia _1y2v1nfi0 _1y2v1nfhu", f = "_15e54s99", i = "_15e54s9m _1y2v1nfae _1y2v1nfbn _1y2v1nf82 _1y2v1nf9b _1y2v1nfho _1y2v1nfia _1y2v1nfhi _1y2v1nfhu _1y2v1nfib", t = "_15e54s913", s = "_15e54s9v", o = "_1y2v1nfib _1y2v1nfis _1y2v1nfho _1y2v1nfhi", d = "_15e54s9s", C = "_1y2v1nf7w _1y2v1nf84", h = "_1y2v1nf82", b = "_1y2v1nfak _1y2v1nfbt _1y2v1nf9b", l = "_15e54s9y _1y2v1nf88", p = "_1y2v1nfho _1y2v1nfhu", u = "_1y2v1nfho _1y2v1nfhu _1y2v1nfis _1y2v1nfib _1y2v1nfia", c = "_15e54s9i _1y2v1nfae _1y2v1nfam _1y2v1nf7w _1y2v1nf84", m = "_15e54s9g _1y2v1nfae _1y2v1nfbn _1y2v1nfho _1y2v1nfia _1y2v1nfhi _1y2v1nf7w _1y2v1nf9b _1y2v1nfhu _1y2v1nfi0", O = "_15e54s9k _1y2v1nfho _1y2v1nfia _1y2v1nfhi _1y2v1nfhu _1y2v1nfi0 _1y2v1nf7w _1y2v1nfbn", k = "_1y2v1nfae _1y2v1nfam _1y2v1nfbn _1y2v1nfbv _1y2v1nf9b", w = "_15e54s9o _1y2v1nf7w _1y2v1nf95 _1y2v1nfae _1y2v1nfbn _1y2v1nfho _1y2v1nfhi _1y2v1nfis _1y2v1nfhu _1y2v1nfi0 _1y2v1nfib _1y2v1nfia", W = "_15e54s96", A = "_15e54s9b _15e54s97", M = "_15e54s9c _15e54s97", x = "_15e54s9d _15e54s97", g = "_15e54s95", I = "_15e54s98 _15e54s97", T = "_15e54s9a _15e54s97", B = {
5
5
  aspectRatio: "var(--_15e54s910)",
6
6
  topActionsCount: "var(--_15e54s911)"
7
7
  };
8
- export { _ as actions, y as boxed, e as cardContainer, r as cardContentContainer, f as circularMediaOverlay, i as dataCard, s as dataCardTopActionsWithoutIcon, t as displayCardBackground, o as displayCardContainer, d as displayCardContent, C as displayCardContentWithAsset, h as displayCardContentWithTopContent, b as displayCardContentWrapper, l as displayCardGradient, p as flexColumn, c as mediaCard, u as mediaCardAsset, m as mediaCardContent, O as nakedCardContent, k as posterCardContentWrapper, w as snapCard, W as touchable, A as touchableCardOverlay, M as touchableCardOverlayInverse, x as touchableCardOverlayMedia, g as touchableContainer, I as touchableMediaCardOverlay, T as touchableNakedMediaOverlay, B as vars };
8
+ export { _ as actions, y as boxed, e as cardContainer, r as cardContentContainer, f as circularMediaOverlay, i as dataCard, t as dataCardTopActionsWithoutIcon, s as displayCardBackground, o as displayCardContainer, d as displayCardContent, C as displayCardContentWithAsset, h as displayCardContentWithTopContent, b as displayCardContentWrapper, l as displayCardGradient, p as flexColumn, u as mediaCard, c as mediaCardAsset, m as mediaCardContent, O as nakedCardContent, k as posterCardContentWrapper, w as snapCard, W as touchable, A as touchableCardOverlay, M as touchableCardOverlayInverse, x as touchableCardOverlayMedia, g as touchableContainer, I as touchableMediaCardOverlay, T as touchableNakedMediaOverlay, B as vars };