@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
@@ -51,72 +51,64 @@ function _object_spread_props(target, source) {
51
51
  }
52
52
  return target;
53
53
  }
54
- import { jsx as r, jsxs as o } from "react/jsx-runtime";
55
- import m from "./stack.js";
56
- import x from "./inline.js";
57
- import B from "./box.js";
58
- import { useTheme as C } from "./hooks.js";
59
- import { useThemeVariant as k, ThemeVariant as I } 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, content as A, closeButtonContainerSize as L, closeButtonContainer as P } from "./callout.css-mistica.js";
66
- import { vars as $ } from "./image.css-mistica.js";
67
- import { sprinkles as w } from "./sprinkles.css-mistica.js";
68
- import { vars as e } from "./skins/skin-contract.css-mistica.js";
69
- import { getPrefixedDataAttributes as z } from "./utils/dom.js";
54
+ import { jsx as r, jsxs as e } from "react/jsx-runtime";
55
+ import s from "./stack.js";
56
+ import B from "./inline.js";
57
+ import v from "./box.js";
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";
67
+ import { vars as n } from "./skins/skin-contract.css-mistica.js";
68
+ import { getPrefixedDataAttributes as A } from "./utils/dom.js";
70
69
  import { applyCssVars as D } from "./utils/css.js";
71
70
  import { closeButtonLabel as G } from "./text-tokens.js";
72
71
  const W = (param)=>{
73
- let { title: a, titleAs: c = "h2", description: d, asset: i, onClose: t, closeButtonLabel: u, button: l, secondaryButton: n, buttonLink: s, "aria-label": p, dataAttributes: f, role: h } = param;
74
- const b = k(), { texts: g, t: v } = C();
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();
75
74
  return /* @__PURE__ */ r("section", _object_spread_props(_object_spread({
76
- className: y(j, w({
77
- background: {
78
- inverse: e.colors.backgroundContainer,
79
- alternative: e.colors.backgroundContainer,
80
- default: e.colors.backgroundContainerAlternative,
81
- media: e.colors.backgroundContainer
82
- }[b]
83
- })),
75
+ className: V(k, L[b]),
84
76
  style: D({
85
- [$.mediaBorderRadius]: e.borderRadii.mediaSmall
77
+ [z.mediaBorderRadius]: n.borderRadii.mediaSmall
86
78
  }),
87
- "aria-label": p !== null && p !== void 0 ? p : a,
79
+ "aria-label": u !== null && u !== void 0 ? u : o,
88
80
  role: h
89
- }, z(f, "Callout")), {
90
- children: /* @__PURE__ */ o(I, {
81
+ }, A(f, "Callout")), {
82
+ children: /* @__PURE__ */ e(R, {
91
83
  isInverse: !1,
92
84
  children: [
93
- i && /* @__PURE__ */ r(B, {
85
+ a && /* @__PURE__ */ r(v, {
94
86
  paddingRight: 16,
95
- children: i
87
+ children: a
96
88
  }),
97
- /* @__PURE__ */ o("div", {
98
- className: A,
89
+ /* @__PURE__ */ e("div", {
90
+ className: P,
99
91
  children: [
100
- /* @__PURE__ */ o(m, {
92
+ /* @__PURE__ */ e(s, {
101
93
  space: 16,
102
94
  children: [
103
- /* @__PURE__ */ o(x, {
95
+ /* @__PURE__ */ e(B, {
104
96
  fullWidth: !0,
105
97
  alignItems: "flex-start",
106
98
  space: "between",
107
99
  children: [
108
- /* @__PURE__ */ o(m, {
100
+ /* @__PURE__ */ e(s, {
109
101
  space: 4,
110
102
  children: [
111
- /* @__PURE__ */ r(R, {
103
+ /* @__PURE__ */ r(T, {
112
104
  as: c,
113
105
  regular: !0,
114
- children: a
106
+ children: o
115
107
  }),
116
- /* @__PURE__ */ r(T, {
108
+ /* @__PURE__ */ r(N, {
117
109
  as: "p",
118
110
  regular: !0,
119
- color: e.colors.textSecondary,
111
+ color: n.colors.textSecondary,
120
112
  children: d
121
113
  })
122
114
  ]
@@ -124,26 +116,26 @@ const W = (param)=>{
124
116
  t && // Create empty div in order to fill space that iconButton occupies.
125
117
  // Without this, the content's vertical alignment can be affected
126
118
  /* @__PURE__ */ r("div", {
127
- className: L
119
+ className: $
128
120
  })
129
121
  ]
130
122
  }),
131
- (l || n || s) && /* @__PURE__ */ r(V, {
132
- primaryButton: l,
133
- secondaryButton: n,
134
- link: s
123
+ (i || l || m) && /* @__PURE__ */ r(j, {
124
+ primaryButton: i,
125
+ secondaryButton: l,
126
+ link: m
135
127
  })
136
128
  ]
137
129
  }),
138
130
  t && /* @__PURE__ */ r("div", {
139
- className: P,
140
- children: /* @__PURE__ */ r(S, {
131
+ className: w,
132
+ children: /* @__PURE__ */ r(y, {
141
133
  small: !0,
142
134
  bleedY: !0,
143
135
  bleedRight: !0,
144
- Icon: N,
136
+ Icon: S,
145
137
  onPress: t,
146
- "aria-label": u || g.closeButtonLabel || v(G)
138
+ "aria-label": p || x.closeButtonLabel || g(G)
147
139
  })
148
140
  })
149
141
  ]
@@ -151,5 +143,5 @@ const W = (param)=>{
151
143
  ]
152
144
  })
153
145
  }));
154
- }, ar = W;
155
- export { ar as default };
146
+ }, or = W;
147
+ export { or 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 n = "_15e54s91 _1y2v1nfhk _1y2v1nfi6 _1y2v1nfi0", e = "_15e54s93 _1y2v1nfhk _1y2v1nfhe", r = "_15e54s9v", y = "_15e54s98", f = "_15e54s9k _1y2v1nfaa _1y2v1nfbj _1y2v1nf7y _1y2v1nf97 _1y2v1nfhk _1y2v1nfi6 _1y2v1nfhe _1y2v1nfhq _1y2v1nfi7", s = "_15e54s9w", i = "_15e54s9r", d = "_1y2v1nfi7 _1y2v1nfio _1y2v1nfhk _1y2v1nfhe", t = "_15e54s9q", o = "_15e54s9s", h = "_15e54s9x", C = "_1y2v1nfhk _1y2v1nfhq _1y2v1nfio _1y2v1nfi7 _1y2v1nfi6", l = "_15e54s9g", c = "_15e54s9f _1y2v1nfaa _1y2v1nfbj _1y2v1nfhk _1y2v1nfi6 _1y2v1nfhe _1y2v1nf7s _1y2v1nf97 _1y2v1nfhq _1y2v1nfhw", b = "_15e54s9i _1y2v1nfhk _1y2v1nfi6 _1y2v1nfhe _1y2v1nfhq _1y2v1nfhw _1y2v1nf7s _1y2v1nfbj", u = "_15e54s9m _1y2v1nf7s _1y2v1nf91 _1y2v1nfaa _1y2v1nfbj _1y2v1nfhk _1y2v1nfhe _1y2v1nfio _1y2v1nfhq _1y2v1nfhw _1y2v1nfi7 _1y2v1nfi6", k = "_15e54s95", p = "_15e54s9a _15e54s96", m = "_15e54s9b _15e54s96", q = "_15e54s9c _15e54s96", O = "_15e54s94", j = "_15e54s97 _15e54s96", w = "_15e54s99 _15e54s96", x = {
5
- aspectRatio: "var(--_15e54s9t)",
6
- topActionsCount: "var(--_15e54s9u)"
4
+ var _ = "_15e54s91 _1y2v1nfhk _1y2v1nfi6 _1y2v1nfi0", e = "_15e54s93 _1y2v1nfhk _1y2v1nfhe", y = "_15e54s9w", r = "_1y2v1nfhk _1y2v1nfi6 _1y2v1nfhw _1y2v1nfhq", f = "_15e54s99", s = "_15e54s9l _1y2v1nfaa _1y2v1nfbj _1y2v1nf7y _1y2v1nf97 _1y2v1nfhk _1y2v1nfi6 _1y2v1nfhe _1y2v1nfhq _1y2v1nfi7", i = "_15e54s9x", t = "_15e54s9s", d = "_1y2v1nfi7 _1y2v1nfio _1y2v1nfhk _1y2v1nfhe", h = "_15e54s9r", o = "_15e54s9t", C = "_15e54s9y", l = "_1y2v1nfhk _1y2v1nfhq _1y2v1nfio _1y2v1nfi7 _1y2v1nfi6", c = "_15e54s9h", b = "_15e54s9g _1y2v1nfaa _1y2v1nfbj _1y2v1nfhk _1y2v1nfi6 _1y2v1nfhe _1y2v1nf7s _1y2v1nf97 _1y2v1nfhq _1y2v1nfhw", u = "_15e54s9j _1y2v1nfhk _1y2v1nfi6 _1y2v1nfhe _1y2v1nfhq _1y2v1nfhw _1y2v1nf7s _1y2v1nfbj", k = "_15e54s9n _1y2v1nf7s _1y2v1nf91 _1y2v1nfaa _1y2v1nfbj _1y2v1nfhk _1y2v1nfhe _1y2v1nfio _1y2v1nfhq _1y2v1nfhw _1y2v1nfi7 _1y2v1nfi6", p = "_15e54s96", m = "_15e54s9b _15e54s97", q = "_15e54s9c _15e54s97", O = "_15e54s9d _15e54s97", j = "_15e54s95", w = "_15e54s98 _15e54s97", x = "_15e54s9a _15e54s97", M = {
5
+ aspectRatio: "var(--_15e54s9u)",
6
+ topActionsCount: "var(--_15e54s9v)"
7
7
  };
8
- export { n as actions, e as boxed, r as cardContainer, y as circularMediaOverlay, f as dataCard, s as dataCardTopActionsWithoutIcon, i as displayCardBackground, d as displayCardContainer, t as displayCardContent, o as displayCardGradient, h as flexColumn, C as mediaCard, l as mediaCardAsset, c as mediaCardContent, b as nakedCardContent, u as snapCard, k as touchable, p as touchableCardOverlay, m as touchableCardOverlayInverse, q as touchableCardOverlayMedia, O as touchableContainer, j as touchableMediaCardOverlay, w as touchableNakedMediaOverlay, x as vars };
8
+ export { _ as actions, e as boxed, y as cardContainer, r as cardContentContainer, f as circularMediaOverlay, s as dataCard, i as dataCardTopActionsWithoutIcon, t as displayCardBackground, d as displayCardContainer, h as displayCardContent, o as displayCardGradient, C as flexColumn, l as mediaCard, c as mediaCardAsset, b as mediaCardContent, u as nakedCardContent, k as snapCard, p as touchable, m as touchableCardOverlay, q as touchableCardOverlayInverse, O as touchableCardOverlayMedia, j as touchableContainer, w as touchableMediaCardOverlay, x as touchableNakedMediaOverlay, M as vars };
package/dist-es/card.js CHANGED
@@ -89,10 +89,9 @@ import he from "./button-group.js";
89
89
  import ue from "./image.js";
90
90
  import { BaseTouchable as F } from "./touchable.js";
91
91
  import { vars as v } from "./skins/skin-contract.css-mistica.js";
92
- import { cardContainer as qe, touchableContainer as W, boxed as Y, touchable as _, touchableMediaCardOverlay as Je, mediaCard as ve, mediaCardContent as Ke, mediaCardAsset as Ce, touchableNakedMediaOverlay as Te, circularMediaOverlay as Ne, nakedCardContent as be, touchableCardOverlay as ne, dataCard as Qe, vars as Be, dataCardTopActionsWithoutIcon as Ue, actions as Re, snapCard as Ye, displayCardContainer as Se, displayCardBackground as we, displayCardContent as Ae, displayCardGradient as ke, flexColumn as Ie, touchableCardOverlayInverse as fe, touchableCardOverlayMedia as Me } from "./card.css-mistica.js";
92
+ import { cardContainer as qe, touchableContainer as W, boxed as Y, touchable as _, touchableMediaCardOverlay as Je, mediaCard as ve, mediaCardContent as Ke, mediaCardAsset as Ce, touchableNakedMediaOverlay as Te, circularMediaOverlay as Ne, nakedCardContent as be, touchableCardOverlay as ne, dataCard as Qe, vars as Be, dataCardTopActionsWithoutIcon as Ue, actions as Re, snapCard as Ye, displayCardContainer as Se, displayCardBackground as we, displayCardContent as Ae, displayCardGradient as ke, cardContentContainer as Ze, flexColumn as Ie, touchableCardOverlayInverse as fe, touchableCardOverlayMedia as Me } from "./card.css-mistica.js";
93
93
  import { vars as X } from "./image.css-mistica.js";
94
94
  import { useTheme as Q } from "./hooks.js";
95
- import { sprinkles as Ze } from "./sprinkles.css-mistica.js";
96
95
  import { IconButton as Pe, ToggleIconButton as ea } from "./icon-button.js";
97
96
  import aa from "./generated/mistica-icons/icon-close-regular.js";
98
97
  import ra from "./generated/mistica-icons/icon-pause-filled.js";
@@ -288,12 +287,7 @@ const M = ()=>{
288
287
  let { headline: a, headlineRef: r, pretitle: t, pretitleLinesMax: n, title: o, titleAs: d = "h3", titleLinesMax: l, subtitle: i, subtitleLinesMax: h, description: c, descriptionLinesMax: p, extra: m, extraRef: u, button: f, buttonLink: x } = param;
289
288
  const { textPresets: b } = Q();
290
289
  return /* @__PURE__ */ s("div", {
291
- className: Ze({
292
- display: "flex",
293
- flex: 1,
294
- justifyContent: "space-between",
295
- flexDirection: "column"
296
- }),
290
+ className: Ze,
297
291
  children: [
298
292
  /* @__PURE__ */ s("div", {
299
293
  className: Ie,
@@ -377,7 +371,7 @@ const M = ()=>{
377
371
  })
378
372
  ]
379
373
  });
380
- }, Ka = /*#__PURE__*/ B.forwardRef((_param, D)=>{
374
+ }, Ja = /*#__PURE__*/ B.forwardRef((_param, D)=>{
381
375
  var { media: a, asset: r, headline: t, pretitle: n, pretitleLinesMax: o, subtitle: d, subtitleLinesMax: l, title: i, titleAs: h = "h3", titleLinesMax: c, description: p, descriptionLinesMax: m, extra: u, actions: f, button: x, buttonLink: b, dataAttributes: C, "aria-label": T, onClose: S, closeButtonLabel: N } = _param, y = _object_without_properties(_param, [
382
376
  "media",
383
377
  "asset",
@@ -488,7 +482,7 @@ const M = ()=>{
488
482
  })
489
483
  ]
490
484
  });
491
- }), Qa = /*#__PURE__*/ B.forwardRef((_param, D)=>{
485
+ }), Ka = /*#__PURE__*/ B.forwardRef((_param, D)=>{
492
486
  var { media: a, asset: r, headline: t, pretitle: n, pretitleLinesMax: o, subtitle: d, subtitleLinesMax: l, title: i, titleAs: h = "h3", titleLinesMax: c, description: p, descriptionLinesMax: m, extra: u, actions: f, button: x, buttonLink: b, dataAttributes: C, "aria-label": T, onClose: S, closeButtonLabel: N } = _param, y = _object_without_properties(_param, [
493
487
  "media",
494
488
  "asset",
@@ -596,7 +590,7 @@ const M = ()=>{
596
590
  })
597
591
  ]
598
592
  });
599
- }), Ua = /*#__PURE__*/ B.forwardRef((_param, u)=>{
593
+ }), Qa = /*#__PURE__*/ B.forwardRef((_param, u)=>{
600
594
  var { media: a, title: r, titleAs: t = "h3", titleLinesMax: n, subtitle: o, subtitleLinesMax: d, description: l, descriptionLinesMax: i, extra: h, dataAttributes: c, "aria-label": p } = _param, m = _object_without_properties(_param, [
601
595
  "media",
602
596
  "title",
@@ -686,7 +680,7 @@ const M = ()=>{
686
680
  })
687
681
  }))
688
682
  });
689
- }), Ya = /*#__PURE__*/ B.forwardRef((_param, D)=>{
683
+ }), Ua = /*#__PURE__*/ B.forwardRef((_param, D)=>{
690
684
  var { asset: a, headline: r, pretitle: t, pretitleLinesMax: n, title: o, titleAs: d = "h3", titleLinesMax: l, subtitle: i, subtitleLinesMax: h, description: c, descriptionLinesMax: p, extra: m, actions: u, button: f, buttonLink: x, dataAttributes: b, "aria-label": C, onClose: T, closeButtonLabel: S, aspectRatio: N } = _param, y = _object_without_properties(_param, [
691
685
  "asset",
692
686
  "headline",
@@ -800,7 +794,7 @@ const M = ()=>{
800
794
  })
801
795
  ]
802
796
  });
803
- }), Za = /*#__PURE__*/ B.forwardRef((_param, x)=>{
797
+ }), Ya = /*#__PURE__*/ B.forwardRef((_param, x)=>{
804
798
  var { asset: a, title: r, titleAs: t = "h3", titleLinesMax: n, subtitle: o, subtitleLinesMax: d, description: l, descriptionLinesMax: i, dataAttributes: h, "aria-label": c, extra: p, isInverse: m = !1, aspectRatio: u } = _param, f = _object_without_properties(_param, [
805
799
  "asset",
806
800
  "title",
@@ -1102,7 +1096,7 @@ const M = ()=>{
1102
1096
  })
1103
1097
  ]
1104
1098
  });
1105
- }), Pa = /*#__PURE__*/ B.forwardRef((_param, t)=>{
1099
+ }), Za = /*#__PURE__*/ B.forwardRef((_param, t)=>{
1106
1100
  var { dataAttributes: a } = _param, r = _object_without_properties(_param, [
1107
1101
  "dataAttributes"
1108
1102
  ]);
@@ -1113,7 +1107,7 @@ const M = ()=>{
1113
1107
  "component-name": "DisplayMediaCard"
1114
1108
  }, a)
1115
1109
  }));
1116
- }), er = /*#__PURE__*/ B.forwardRef((_param, t)=>{
1110
+ }), Pa = /*#__PURE__*/ B.forwardRef((_param, t)=>{
1117
1111
  var { dataAttributes: a } = _param, r = _object_without_properties(_param, [
1118
1112
  "dataAttributes"
1119
1113
  ]);
@@ -1123,7 +1117,7 @@ const M = ()=>{
1123
1117
  "component-name": "DisplayDataCard"
1124
1118
  }, a)
1125
1119
  }));
1126
- }), ar = /*#__PURE__*/ B.forwardRef((_param, I)=>{
1120
+ }), er = /*#__PURE__*/ B.forwardRef((_param, I)=>{
1127
1121
  var { dataAttributes: a, backgroundImage: r, backgroundVideo: t, poster: n, backgroundVideoRef: o, width: d, height: l, aspectRatio: i = "7:10", "aria-label": h, actions: c, onClose: p, closeButtonLabel: m, asset: u, headline: f, pretitle: x, pretitleLinesMax: b, title: C, titleAs: T = "h3", titleLinesMax: S, subtitle: N, subtitleLinesMax: y, description: D, descriptionLinesMax: R, extra: z, variant: H, isInverse: E, backgroundColor: w } = _param, k = _object_without_properties(_param, [
1128
1122
  "dataAttributes",
1129
1123
  "backgroundImage",
@@ -1292,4 +1286,4 @@ const M = ()=>{
1292
1286
  ]
1293
1287
  });
1294
1288
  });
1295
- export { ua as CardActionIconButton, ya as CardActionSpinner, Z as CardActionsGroup, Ya as DataCard, er as DisplayDataCard, Pa as DisplayMediaCard, Ka as MediaCard, Qa as NakedCard, ar as PosterCard, Ua as SmallNakedCard, Za as SnapCard, Ve as useVideoWithControls };
1289
+ export { ua as CardActionIconButton, ya as CardActionSpinner, Z as CardActionsGroup, Ua as DataCard, Pa as DisplayDataCard, Za as DisplayMediaCard, Ja as MediaCard, Ka as NakedCard, er as PosterCard, Qa as SmallNakedCard, Ya as SnapCard, Ve as useVideoWithControls };
@@ -1,10 +1,10 @@
1
1
  import "../sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "../icon-button.css.ts.vanilla.css-mistica.js";
3
3
  import "./advanced-data-card.css.ts.vanilla.css-mistica.js";
4
- var a = 216, _ = "_1x00fru3 _1x00fru1 _1y2v1nfaa _1y2v1nfbj _1y2v1nfhk _1y2v1nfhw _1y2v1nf97", n = {
5
- default: "_1x00frui",
6
- mobile: "_1x00fruj"
7
- }, t = "_1x00frup", u = "_1x00frul", o = "_1x00frum _1x00frul", i = "_1x00fru7 _1x00fru1 _1y2v1nfaa _1y2v1nfbj _1y2v1nf7m _1y2v1nf97", x = "_1x00frub _1y2v1nfhe _1y2v1nfhk _1y2v1nfi6 _1y2v1nfhq", y = "_1x00frug", e = "_1x00fruo _1y2v1nfhk _1y2v1nfhp", h = "_1y2v1nfhk _1y2v1nfi6 _1y2v1nfhz _1y2v1nfjt", d = "_1x00fruk", b = "_1x00fruq", c = "_1x00fru9", l = "_1x00fru1 _1y2v1nfaa _1y2v1nfbj", m = "_1x00frus", p = "_1x00fru4", s = "_1x00fru5", g = {
8
- topActionsCount: "var(--_1x00frur)"
9
- }, j = "_1x00fru8";
10
- export { a as MIN_HEIGHT, _ as actions, n as actionsVariants, t as adjustButtonLink, u as button, o as buttonMobile, i as cardContentStyle, x as dataCard, y as divider, e as footerDirection, h as footerText, d as marginRightAuto, b as marginRightButton, c as minHeight, l as paddingX, m as topActionsWithoutIcon, p as touchable, s as touchableCardHoverOverlay, g as vars, j as zindex };
4
+ var f = 216, n = "_1x00fru4 _1x00fru2 _1y2v1nfaa _1y2v1nfbj _1y2v1nfhk _1y2v1nfhw _1y2v1nf97", _ = {
5
+ default: "_1x00fruj",
6
+ mobile: "_1x00fruk"
7
+ }, t = "_1x00frus", o = "_1x00frun", u = "_1x00fruo _1x00frun", i = "_1x00fru8 _1x00fru2 _1y2v1nfaa _1y2v1nfbj _1y2v1nf7m _1y2v1nf97", y = "_1y2v1nfhe _1y2v1nfio", x = "_1x00fruc _1y2v1nfhe _1y2v1nfhk _1y2v1nfi6 _1y2v1nfhq", e = "_1x00fruh", h = "_1x00frur _1y2v1nfhk _1y2v1nfhp", d = "_1y2v1nfhz _1y2v1nfhk", c = "_1y2v1nfhk _1y2v1nfi6 _1y2v1nfhz _1y2v1nfjt", b = "_1x00frul", m = "_1x00frut", p = "_1x00frua", s = "_1x00fru2 _1y2v1nfaa _1y2v1nfbj", g = "_1x00fruv", l = "_1x00fru5", k = "_1x00fru6", j = {
8
+ topActionsCount: "var(--_1x00fruu)"
9
+ }, C = "_1y2v1nf7s", H = "_1x00fru9";
10
+ export { f as MIN_HEIGHT, n as actions, _ as actionsVariants, t as adjustButtonLink, o as button, u as buttonMobile, i as cardContentStyle, y as container, x as dataCard, e as divider, h as footerDirection, d as footerImage, c as footerText, b as marginRightAuto, m as marginRightButton, p as minHeight, s as paddingX, g as topActionsWithoutIcon, l as touchable, k as touchableCardHoverOverlay, j as vars, C as withPaddingTop, H as zindex };
@@ -78,104 +78,98 @@ function _object_without_properties_loose(source, excluded) {
78
78
  }
79
79
  return target;
80
80
  }
81
- import { jsxs as e, jsx as r, Fragment as Y } from "react/jsx-runtime";
81
+ import { jsxs as t, jsx as r, Fragment as Y } from "react/jsx-runtime";
82
82
  import * as _ from "react";
83
- import { Boxed as $ } from "../boxed.js";
84
- import { sprinkles as T } from "../sprinkles.css-mistica.js";
83
+ import { Boxed as k } from "../boxed.js";
85
84
  import P from "../stack.js";
86
- import { dataCard as q, MIN_HEIGHT as J, touchable as K, touchableCardHoverOverlay as Q, cardContentStyle as U, minHeight as Z, topActionsWithoutIcon as L, zindex as rr, paddingX as er, divider as tr, actions as ar, actionsVariants as ir, marginRightButton as or, buttonMobile as S, footerDirection as sr, marginRightAuto as nr, footerText as dr, adjustButtonLink as cr, button as lr, vars as mr } from "./advanced-data-card.css-mistica.js";
87
- import { vars as hr } from "../image.css-mistica.js";
88
- import j from "../divider.js";
89
- import { Text2 as g, Text as pr, textProps as ur } from "../text.js";
90
- import { vars as y } from "../skins/skin-contract.css-mistica.js";
91
- import N from "../box.js";
85
+ import { container as q, dataCard as J, MIN_HEIGHT as K, touchable as Q, touchableCardHoverOverlay as U, cardContentStyle as Z, minHeight as $, topActionsWithoutIcon as L, zindex as rr, paddingX as tr, divider as er, actions as ar, actionsVariants as or, marginRightButton as ir, buttonMobile as H, footerDirection as sr, marginRightAuto as nr, withPaddingTop as dr, footerImage as cr, footerText as lr, adjustButtonLink as mr, button as hr, vars as pr } from "./advanced-data-card.css-mistica.js";
86
+ import { vars as ur } from "../image.css-mistica.js";
87
+ import S from "../divider.js";
88
+ import { Text2 as v, Text as fr, textProps as gr } from "../text.js";
89
+ import { vars as N } from "../skins/skin-contract.css-mistica.js";
90
+ import y from "../box.js";
92
91
  import vr from "../touchable.js";
93
92
  import u from "classnames";
94
- import { CardActionsGroup as fr } from "../card.js";
95
- import { useTheme as gr } from "../hooks.js";
96
- import { getPrefixedDataAttributes as yr } from "../utils/dom.js";
97
- import Nr from "../inline.js";
98
- import { applyCssVars as E } from "../utils/css.js";
99
- const xr = (param)=>{
100
- let { headline: a, pretitle: i, pretitleAs: s = "p", pretitleLinesMax: m, title: n, titleAs: d = "h3", titleLinesMax: c, subtitle: l, subtitleLinesMax: o, description: t, descriptionLinesMax: h } = param;
101
- const { textPresets: x } = gr();
102
- return /* @__PURE__ */ e(P, {
93
+ import { CardActionsGroup as Nr } from "../card.js";
94
+ import { useTheme as yr } from "../hooks.js";
95
+ import { getPrefixedDataAttributes as xr } from "../utils/dom.js";
96
+ import Cr from "../inline.js";
97
+ import { applyCssVars as j } from "../utils/css.js";
98
+ const Tr = (param)=>{
99
+ let { headline: a, pretitle: o, pretitleAs: s = "p", pretitleLinesMax: m, title: n, titleAs: d = "h3", titleLinesMax: c, subtitle: l, subtitleLinesMax: i, description: e, descriptionLinesMax: h } = param;
100
+ const { textPresets: x } = yr();
101
+ return /* @__PURE__ */ t(P, {
103
102
  space: 4,
104
103
  children: [
105
104
  a,
106
- i && /* @__PURE__ */ r(g, {
107
- color: y.colors.textPrimary,
105
+ o && /* @__PURE__ */ r(v, {
106
+ color: N.colors.textPrimary,
108
107
  truncate: m,
109
108
  as: s,
110
109
  regular: !0,
111
110
  hyphens: "auto",
112
- children: i
111
+ children: o
113
112
  }),
114
- /* @__PURE__ */ r(pr, _object_spread_props(_object_spread({}, ur.text4), {
113
+ /* @__PURE__ */ r(fr, _object_spread_props(_object_spread({}, gr.text4), {
115
114
  truncate: c,
116
115
  weight: x.cardTitle.weight,
117
116
  as: d,
118
117
  hyphens: "auto",
119
118
  children: n
120
119
  })),
121
- /* @__PURE__ */ r(g, {
122
- color: y.colors.textPrimary,
123
- truncate: o,
120
+ /* @__PURE__ */ r(v, {
121
+ color: N.colors.textPrimary,
122
+ truncate: i,
124
123
  as: "p",
125
124
  regular: !0,
126
125
  hyphens: "auto",
127
126
  children: l
128
127
  }),
129
- t && /* @__PURE__ */ r(g, {
128
+ e && /* @__PURE__ */ r(v, {
130
129
  truncate: h,
131
130
  as: "p",
132
131
  regular: !0,
133
- color: y.colors.textSecondary,
132
+ color: N.colors.textSecondary,
134
133
  hyphens: "auto",
135
- children: t
134
+ children: e
136
135
  })
137
136
  ]
138
137
  });
139
- }, Cr = (param)=>{
140
- let { button: a, footerImage: i, footerText: s, footerTextLinesMax: m, buttonLink: n } = param;
141
- const d = !!a, c = !!i, l = !!s, o = !!n, t = d && (c || l) && o, h = o && !t ? "178px" : "";
142
- return /* @__PURE__ */ e(Y, {
138
+ }, Ar = (param)=>{
139
+ let { button: a, footerImage: o, footerText: s, footerTextLinesMax: m, buttonLink: n } = param;
140
+ const d = !!a, c = !!o, l = !!s, i = !!n, e = d && (c || l) && i, h = i && !e ? "178px" : "";
141
+ return /* @__PURE__ */ t(Y, {
143
142
  children: [
144
143
  /* @__PURE__ */ r("div", {
145
- className: tr,
146
- children: /* @__PURE__ */ r(j, {})
144
+ className: er,
145
+ children: /* @__PURE__ */ r(S, {})
147
146
  }),
148
- /* @__PURE__ */ e("div", {
149
- className: u(ar, ir[t ? "mobile" : "default"]),
147
+ /* @__PURE__ */ t("div", {
148
+ className: u(ar, or[e ? "mobile" : "default"]),
150
149
  children: [
151
150
  d && /* @__PURE__ */ r("div", {
152
- className: u(or, S),
151
+ className: u(ir, H),
153
152
  children: a
154
153
  }),
155
- /* @__PURE__ */ e("div", {
156
- className: u(sr, t ? nr : T({
157
- paddingTop: 16
158
- })),
154
+ /* @__PURE__ */ t("div", {
155
+ className: u(sr, e ? nr : dr),
159
156
  children: [
160
- c && /* @__PURE__ */ r(N, {
157
+ c && /* @__PURE__ */ r(y, {
161
158
  paddingRight: 16,
162
- className: T({
163
- alignItems: "center",
164
- display: "flex"
165
- }),
159
+ className: cr,
166
160
  children: /* @__PURE__ */ r("div", {
167
- style: E({
168
- [hr.mediaBorderRadius]: y.borderRadii.mediaSmall
161
+ style: j({
162
+ [ur.mediaBorderRadius]: N.borderRadii.mediaSmall
169
163
  }),
170
- children: i
164
+ children: o
171
165
  })
172
166
  }),
173
167
  l && /* @__PURE__ */ r("div", {
174
168
  style: {
175
169
  maxWidth: h
176
170
  },
177
- className: dr,
178
- children: /* @__PURE__ */ r(g, {
171
+ className: lr,
172
+ children: /* @__PURE__ */ r(v, {
179
173
  truncate: m,
180
174
  regular: !0,
181
175
  children: s
@@ -183,16 +177,16 @@ const xr = (param)=>{
183
177
  })
184
178
  ]
185
179
  }),
186
- o && /* @__PURE__ */ r("div", {
187
- className: u(cr, t ? lr : S),
180
+ i && /* @__PURE__ */ r("div", {
181
+ className: u(mr, e ? hr : H),
188
182
  children: n
189
183
  })
190
184
  ]
191
185
  })
192
186
  ]
193
187
  });
194
- }, Tr = /*#__PURE__*/ _.forwardRef((_param, k)=>{
195
- var { stackingGroup: a, headline: i, pretitle: s, pretitleAs: m, pretitleLinesMax: n, title: d, titleAs: c, titleLinesMax: l, subtitle: o, subtitleLinesMax: t, description: h, descriptionLinesMax: x, extra: p, extraDividerPadding: G = 24, noExtraDivider: M = !1, button: A, footerImage: B, footerText: b, footerTextLinesMax: V, buttonLink: R, dataAttributes: W, actions: v, "aria-label": w, onClose: D } = _param, f = _object_without_properties(_param, [
188
+ }, Br = /*#__PURE__*/ _.forwardRef((_param, W)=>{
189
+ var { stackingGroup: a, headline: o, pretitle: s, pretitleAs: m, pretitleLinesMax: n, title: d, titleAs: c, titleLinesMax: l, subtitle: i, subtitleLinesMax: e, description: h, descriptionLinesMax: x, extra: p, extraDividerPadding: E = 24, noExtraDivider: G = !1, button: T, footerImage: A, footerText: B, footerTextLinesMax: M, buttonLink: b, dataAttributes: V, actions: f, "aria-label": w, onClose: R } = _param, g = _object_without_properties(_param, [
196
190
  "stackingGroup",
197
191
  "headline",
198
192
  "pretitle",
@@ -218,66 +212,63 @@ const xr = (param)=>{
218
212
  "aria-label",
219
213
  "onClose"
220
214
  ]);
221
- const C = !!f.href || !!f.onPress || !!f.to, z = {
222
- button: A,
223
- footerImage: B,
224
- footerText: b,
225
- footerTextLinesMax: V,
226
- buttonLink: R
227
- }, F = !!A || !!B || !!b || !!R, H = !!(p != null && p.length), O = ((v == null ? void 0 : v.length) || 0) + (D ? 1 : 0);
228
- return /* @__PURE__ */ e("section", _object_spread_props(_object_spread({
229
- className: T({
230
- position: "relative",
231
- height: "100%"
232
- })
233
- }, yr(W, "AdvancedDataCard")), {
234
- ref: k,
215
+ const C = !!g.href || !!g.onPress || !!g.to, z = {
216
+ button: T,
217
+ footerImage: A,
218
+ footerText: B,
219
+ footerTextLinesMax: M,
220
+ buttonLink: b
221
+ }, D = !!T || !!A || !!B || !!b, I = !!(p != null && p.length), O = ((f == null ? void 0 : f.length) || 0) + (R ? 1 : 0);
222
+ return /* @__PURE__ */ t("section", _object_spread_props(_object_spread({
223
+ className: q
224
+ }, xr(V, "AdvancedDataCard")), {
225
+ ref: W,
235
226
  "aria-label": C ? void 0 : w,
236
227
  children: [
237
- /* @__PURE__ */ e($, {
238
- className: q,
228
+ /* @__PURE__ */ t(k, {
229
+ className: J,
239
230
  width: "100%",
240
231
  height: "100%",
241
- minHeight: J,
232
+ minHeight: K,
242
233
  children: [
243
- /* @__PURE__ */ e(vr, _object_spread_props(_object_spread({
234
+ /* @__PURE__ */ t(vr, _object_spread_props(_object_spread({
244
235
  maybe: !0
245
- }, f), {
236
+ }, g), {
246
237
  "aria-label": C ? w : void 0,
247
- className: K,
238
+ className: Q,
248
239
  children: [
249
240
  C && /* @__PURE__ */ r("div", {
250
- className: Q
241
+ className: U
251
242
  }),
252
243
  /* @__PURE__ */ r("div", {
253
- className: u(U, !F && !H ? Z : ""),
254
- children: /* @__PURE__ */ r(N, {
244
+ className: u(Z, !D && !I ? $ : ""),
245
+ children: /* @__PURE__ */ r(y, {
255
246
  paddingTop: 8,
256
- children: /* @__PURE__ */ e(Nr, {
247
+ children: /* @__PURE__ */ t(Cr, {
257
248
  space: 0,
258
249
  children: [
259
- /* @__PURE__ */ e(P, {
250
+ /* @__PURE__ */ t(P, {
260
251
  space: 8,
261
252
  children: [
262
253
  a,
263
- /* @__PURE__ */ r(xr, {
264
- headline: i,
254
+ /* @__PURE__ */ r(Tr, {
255
+ headline: o,
265
256
  pretitle: s,
266
257
  pretitleAs: m,
267
258
  pretitleLinesMax: n,
268
259
  title: d,
269
260
  titleAs: c,
270
261
  titleLinesMax: l,
271
- subtitle: o,
272
- subtitleLinesMax: t,
262
+ subtitle: i,
263
+ subtitleLinesMax: e,
273
264
  description: h,
274
265
  descriptionLinesMax: x
275
266
  })
276
267
  ]
277
268
  }),
278
269
  !a && /* @__PURE__ */ r("div", {
279
- style: E({
280
- [mr.topActionsCount]: String(O)
270
+ style: j({
271
+ [pr.topActionsCount]: String(O)
281
272
  }),
282
273
  className: L
283
274
  })
@@ -290,34 +281,34 @@ const xr = (param)=>{
290
281
  flexGrow: 1
291
282
  }
292
283
  }),
293
- H && /* @__PURE__ */ r(N, {
284
+ I && /* @__PURE__ */ r(y, {
294
285
  paddingTop: 16,
295
286
  paddingBottom: 24,
296
287
  width: "100%",
297
288
  className: rr,
298
- children: p.map((X, I)=>/* @__PURE__ */ e("div", {
289
+ children: p.map((X, F)=>/* @__PURE__ */ t("div", {
299
290
  children: [
300
291
  /* @__PURE__ */ r("div", {
301
- className: er,
292
+ className: tr,
302
293
  children: X
303
294
  }),
304
- I + 1 !== p.length && /* @__PURE__ */ r(N, {
305
- paddingY: G,
306
- children: !M && /* @__PURE__ */ r(j, {})
295
+ F + 1 !== p.length && /* @__PURE__ */ r(y, {
296
+ paddingY: E,
297
+ children: !G && /* @__PURE__ */ r(S, {})
307
298
  })
308
299
  ]
309
- }, I))
300
+ }, F))
310
301
  })
311
302
  ]
312
303
  })),
313
- F && /* @__PURE__ */ r(Cr, _object_spread({}, z))
304
+ D && /* @__PURE__ */ r(Ar, _object_spread({}, z))
314
305
  ]
315
306
  }),
316
- /* @__PURE__ */ r(fr, {
317
- actions: v,
318
- onClose: D
307
+ /* @__PURE__ */ r(Nr, {
308
+ actions: f,
309
+ onClose: R
319
310
  })
320
311
  ]
321
312
  }));
322
- }), kr = Tr;
323
- export { Tr as AdvancedDataCard, kr as default };
313
+ }), Or = Br;
314
+ export { Br as AdvancedDataCard, Or as default };