@telefonica/mistica 15.9.0 → 15.11.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 (114) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/boxed.css-mistica.js +35 -2
  3. package/dist/boxed.css.d.ts +29 -0
  4. package/dist/boxed.d.ts +6 -4
  5. package/dist/boxed.js +30 -24
  6. package/dist/button-group.css-mistica.js +14 -5
  7. package/dist/button-group.css.d.ts +3 -0
  8. package/dist/button-group.d.ts +2 -1
  9. package/dist/button-group.js +29 -16
  10. package/dist/button-layout.css-mistica.js +7 -7
  11. package/dist/button-layout.css.d.ts +1 -1
  12. package/dist/button-layout.js +9 -9
  13. package/dist/button.d.ts +4 -24
  14. package/dist/button.js +6 -4
  15. package/dist/card.d.ts +8 -1
  16. package/dist/card.js +567 -501
  17. package/dist/carousel.css-mistica.js +19 -16
  18. package/dist/carousel.css.d.ts +1 -0
  19. package/dist/carousel.js +41 -39
  20. package/dist/chip.js +37 -44
  21. package/dist/circle.d.ts +11 -4
  22. package/dist/circle.js +10 -11
  23. package/dist/community/advanced-data-card.css-mistica.js +24 -21
  24. package/dist/community/advanced-data-card.css.d.ts +1 -0
  25. package/dist/community/advanced-data-card.d.ts +1 -0
  26. package/dist/community/advanced-data-card.js +20 -17
  27. package/dist/counter.js +26 -22
  28. package/dist/cover-hero-media.d.ts +12 -0
  29. package/dist/cover-hero-media.js +44 -0
  30. package/dist/cover-hero.css-mistica.js +56 -0
  31. package/dist/cover-hero.css.d.ts +14 -0
  32. package/dist/cover-hero.css.ts.vanilla.css-mistica.js +11 -0
  33. package/dist/cover-hero.d.ts +38 -0
  34. package/dist/cover-hero.js +296 -0
  35. package/dist/empty-state.js +6 -6
  36. package/dist/grid-layout.css-mistica.js +11 -8
  37. package/dist/grid-layout.css.d.ts +1 -0
  38. package/dist/grid-layout.d.ts +12 -22
  39. package/dist/grid-layout.js +63 -49
  40. package/dist/header.js +18 -18
  41. package/dist/highlighted-card.d.ts +1 -0
  42. package/dist/highlighted-card.js +22 -18
  43. package/dist/icon-button.d.ts +7 -6
  44. package/dist/image.js +69 -48
  45. package/dist/index.d.ts +4 -1
  46. package/dist/index.js +15 -0
  47. package/dist/list.d.ts +1 -0
  48. package/dist/navigation-bar.d.ts +1 -1
  49. package/dist/navigation-bar.js +1 -1
  50. package/dist/package-version.js +1 -1
  51. package/dist/select.js +16 -12
  52. package/dist/skins/movistar.d.ts +13 -0
  53. package/dist/skins/movistar.js +112 -99
  54. package/dist/spinner.js +19 -18
  55. package/dist/table.css-mistica.js +58 -0
  56. package/dist/table.css.d.ts +13 -0
  57. package/dist/table.css.ts.vanilla.css-mistica.js +11 -0
  58. package/dist/table.d.ts +39 -0
  59. package/dist/table.js +269 -0
  60. package/dist/text.d.ts +1 -1
  61. package/dist/theme.d.ts +20 -0
  62. package/dist/theme.js +80 -20
  63. package/dist/timer.css-mistica.js +39 -0
  64. package/dist/timer.css.d.ts +8 -0
  65. package/dist/timer.css.ts.vanilla.css-mistica.js +11 -0
  66. package/dist/timer.d.ts +27 -0
  67. package/dist/timer.js +370 -0
  68. package/dist/tooltip.js +13 -13
  69. package/dist/touchable.d.ts +2 -0
  70. package/dist/touchable.js +35 -31
  71. package/dist/utils/helpers.js +32 -32
  72. package/dist-es/boxed.css-mistica.js +29 -2
  73. package/dist-es/boxed.js +37 -31
  74. package/dist-es/button-group.css-mistica.js +2 -2
  75. package/dist-es/button-group.js +37 -24
  76. package/dist-es/button-layout.css-mistica.js +2 -2
  77. package/dist-es/button-layout.js +16 -16
  78. package/dist-es/button.js +24 -22
  79. package/dist-es/card.js +681 -618
  80. package/dist-es/carousel.css-mistica.js +7 -7
  81. package/dist-es/carousel.js +75 -73
  82. package/dist-es/chip.js +57 -64
  83. package/dist-es/circle.js +15 -16
  84. package/dist-es/community/advanced-data-card.css-mistica.js +4 -4
  85. package/dist-es/community/advanced-data-card.js +59 -56
  86. package/dist-es/counter.js +62 -58
  87. package/dist-es/cover-hero-media.js +30 -0
  88. package/dist-es/cover-hero.css-mistica.js +9 -0
  89. package/dist-es/cover-hero.css.ts.vanilla.css-mistica.js +2 -0
  90. package/dist-es/cover-hero.js +241 -0
  91. package/dist-es/empty-state.js +13 -13
  92. package/dist-es/grid-layout.css-mistica.js +3 -3
  93. package/dist-es/grid-layout.js +80 -66
  94. package/dist-es/header.js +37 -37
  95. package/dist-es/highlighted-card.js +35 -31
  96. package/dist-es/image.js +88 -67
  97. package/dist-es/index.js +1817 -1814
  98. package/dist-es/navigation-bar.js +1 -1
  99. package/dist-es/package-version.js +1 -1
  100. package/dist-es/select.js +23 -18
  101. package/dist-es/skins/movistar.js +112 -99
  102. package/dist-es/spinner.js +38 -37
  103. package/dist-es/style.css +1 -1
  104. package/dist-es/table.css-mistica.js +14 -0
  105. package/dist-es/table.css.ts.vanilla.css-mistica.js +2 -0
  106. package/dist-es/table.js +214 -0
  107. package/dist-es/theme.js +77 -17
  108. package/dist-es/timer.css-mistica.js +4 -0
  109. package/dist-es/timer.css.ts.vanilla.css-mistica.js +2 -0
  110. package/dist-es/timer.js +307 -0
  111. package/dist-es/tooltip.js +16 -16
  112. package/dist-es/touchable.js +47 -43
  113. package/dist-es/utils/helpers.js +31 -31
  114. package/package.json +1 -1
@@ -11,10 +11,10 @@ function _export(target, all) {
11
11
  }
12
12
  _export(exports, {
13
13
  AdvancedDataCard: function() {
14
- return xe;
14
+ return Ce;
15
15
  },
16
16
  default: function() {
17
- return We;
17
+ return Me;
18
18
  }
19
19
  });
20
20
  const _jsxruntime = require("react/jsx-runtime");
@@ -225,7 +225,7 @@ const ye = (_param)=>{
225
225
  })
226
226
  ]
227
227
  });
228
- }, Ne = (param)=>{
228
+ }, xe = (param)=>{
229
229
  let { button: a, footerImage: i, footerText: n, footerTextLinesMax: p, buttonLink: d } = param;
230
230
  const c = !!a, l = !!i, m = !!n, o = !!d, r = c && (l || m) && o, u = o && !r ? "178px" : "";
231
231
  return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
@@ -280,8 +280,8 @@ const ye = (_param)=>{
280
280
  })
281
281
  ]
282
282
  });
283
- }, xe = /*#__PURE__*/ _react.forwardRef((_param, E)=>{
284
- var { stackingGroup: a, headline: i, pretitle: n, pretitleAs: p, pretitleLinesMax: d, title: c, titleAs: l, titleLinesMax: m, subtitle: o, subtitleLinesMax: r, description: u, descriptionLinesMax: x, extra: s, extraDividerPadding: C = 24, button: A, footerImage: T, footerText: B, footerTextLinesMax: V, buttonLink: R, dataAttributes: W, actions: g, "aria-label": S, onClose: D } = _param, f = _object_without_properties(_param, [
283
+ }, Ce = /*#__PURE__*/ _react.forwardRef((_param, M)=>{
284
+ var { stackingGroup: a, headline: i, pretitle: n, pretitleAs: p, pretitleLinesMax: d, title: c, titleAs: l, titleLinesMax: m, subtitle: o, subtitleLinesMax: r, description: u, descriptionLinesMax: x, extra: s, extraDividerPadding: C = 24, button: A, footerImage: T, footerText: B, footerTextLinesMax: E, buttonLink: R, dataAttributes: G, actions: g, "aria-label": S, onClose: w } = _param, f = _object_without_properties(_param, [
285
285
  "stackingGroup",
286
286
  "headline",
287
287
  "pretitle",
@@ -306,32 +306,35 @@ const ye = (_param)=>{
306
306
  "aria-label",
307
307
  "onClose"
308
308
  ]);
309
- const G = !!f.href || !!f.onPress || !!f.to, L = {
309
+ const V = !!f.href || !!f.onPress || !!f.to, W = {
310
310
  button: A,
311
311
  footerImage: T,
312
312
  footerText: B,
313
- footerTextLinesMax: V,
313
+ footerTextLinesMax: E,
314
314
  buttonLink: R
315
- }, w = !!A || !!T || !!B || !!R, F = !!(s != null && s.length), M = ((g == null ? void 0 : g.length) || 0) + (D ? 1 : 0);
315
+ }, D = !!A || !!T || !!B || !!R, H = !!(s != null && s.length), L = ((g == null ? void 0 : g.length) || 0) + (w ? 1 : 0);
316
316
  return /* @__PURE__ */ (0, _jsxruntime.jsx)("section", _object_spread_props(_object_spread({
317
317
  className: (0, _sprinklescssmistica.sprinkles)({
318
318
  position: "relative",
319
319
  height: "100%"
320
320
  })
321
- }, (0, _dom.getPrefixedDataAttributes)(W, "AdvancedDataCard")), {
322
- ref: E,
321
+ }, (0, _dom.getPrefixedDataAttributes)(G, "AdvancedDataCard")), {
322
+ ref: M,
323
323
  "aria-label": S,
324
324
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_boxed.Boxed, {
325
325
  className: _advanceddatacardcssmistica.dataCard,
326
+ width: "100%",
327
+ height: "100%",
328
+ minHeight: _advanceddatacardcssmistica.MIN_HEIGHT,
326
329
  children: [
327
330
  /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
328
331
  className: _advanceddatacardcssmistica.touchableContainer,
329
332
  children: [
330
- G && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
333
+ V && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
331
334
  className: _advanceddatacardcssmistica.touchableCardOverlay
332
335
  }),
333
336
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
334
- className: (0, _classnames.default)(_advanceddatacardcssmistica.cardContentStyle, !w && !F ? _advanceddatacardcssmistica.minHeight : ""),
337
+ className: (0, _classnames.default)(_advanceddatacardcssmistica.cardContentStyle, !D && !H ? _advanceddatacardcssmistica.minHeight : ""),
335
338
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
336
339
  paddingTop: 8,
337
340
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
@@ -359,7 +362,7 @@ const ye = (_param)=>{
359
362
  }),
360
363
  !a && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
361
364
  style: (0, _css.applyCssVars)({
362
- [_advanceddatacardcssmistica.vars.topActionsCount]: String(M)
365
+ [_advanceddatacardcssmistica.vars.topActionsCount]: String(L)
363
366
  }),
364
367
  className: _advanceddatacardcssmistica.topActionsWithoutIcon
365
368
  })
@@ -372,7 +375,7 @@ const ye = (_param)=>{
372
375
  flexGrow: 1
373
376
  }
374
377
  }),
375
- F && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
378
+ H && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
376
379
  paddingTop: 16,
377
380
  paddingBottom: 24,
378
381
  width: "100%",
@@ -392,13 +395,13 @@ const ye = (_param)=>{
392
395
  }),
393
396
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_card.CardActionsGroup, {
394
397
  actions: g,
395
- onClose: D,
398
+ onClose: w,
396
399
  padding: 15
397
400
  })
398
401
  ]
399
402
  }),
400
- w && /* @__PURE__ */ (0, _jsxruntime.jsx)(Ne, _object_spread({}, L))
403
+ D && /* @__PURE__ */ (0, _jsxruntime.jsx)(xe, _object_spread({}, W))
401
404
  ]
402
405
  })
403
406
  }));
404
- }), We = xe;
407
+ }), Me = Ce;
package/dist/counter.js CHANGED
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "default", {
7
7
  enumerable: true,
8
8
  get: function() {
9
- return hr;
9
+ return vr;
10
10
  }
11
11
  });
12
12
  const _jsxruntime = require("react/jsx-runtime");
@@ -122,34 +122,34 @@ function _object_spread_props(target, source) {
122
122
  }
123
123
  return target;
124
124
  }
125
- const x = 20, W = (param)=>{
125
+ const C = 20, Y = (param)=>{
126
126
  let { value: h, defaultValue: b, min: m, max: s, onChangeValue: a } = param;
127
- const i = h !== void 0, f = _react.useCallback((n)=>n === void 0 ? m : Math.max(m, Math.min(s, n)), [
127
+ const i = h !== void 0, p = _react.useCallback((n)=>n === void 0 ? m : Math.max(m, Math.min(s, n)), [
128
128
  m,
129
129
  s
130
- ]), [e, p] = _react.useState(f(b)), v = (n)=>{
131
- i || p(n), a == null || a(n);
130
+ ]), [e, v] = _react.useState(p(b)), f = (n)=>{
131
+ i || v(n), a == null || a(n);
132
132
  };
133
133
  return [
134
- i ? f(h) : e,
135
- v
134
+ i ? p(h) : e,
135
+ f
136
136
  ];
137
- }, X = (param)=>{
138
- let { value: h, defaultValue: b, onChangeValue: m, onRemove: s, min: a, max: i, dataAttributes: f, disabled: e, removeLabel: p, increaseLabel: v, decreaseLabel: n, valueLabel: C } = param;
139
- const A = (0, _themevariantcontext.useThemeVariant)(), { texts: u } = (0, _hooks.useTheme)(), l = a === void 0 ? 0 : a, d = Math.max(l, i === void 0 ? 999 : i), [t, T] = W({
137
+ }, rr = (param)=>{
138
+ let { value: h, defaultValue: b, onChangeValue: m, onRemove: s, min: a, max: i, dataAttributes: p, disabled: e, removeLabel: v, increaseLabel: f, decreaseLabel: n, valueLabel: T } = param;
139
+ const D = (0, _themevariantcontext.useThemeVariant)(), g = (0, _hooks.useAriaId)(), { texts: u } = (0, _hooks.useTheme)(), l = a === void 0 ? 0 : a, d = Math.max(l, i === void 0 ? 999 : i), [t, V] = Y({
140
140
  value: h,
141
141
  defaultValue: b,
142
142
  min: l,
143
143
  max: d,
144
144
  onChangeValue: m
145
- }), o = !!s && t === l, D = ()=>p === void 0 ? u.counterRemoveLabel : p, $ = ()=>v === void 0 ? u.counterIncreaseLabel : v, k = ()=>n === void 0 ? u.counterDecreaseLabel : n, z = ()=>`${t}, ${C === void 0 ? u.counterQuantity : C}${a !== void 0 ? `, ${u.counterMinValue} ${a}` : ""}${i !== void 0 ? `, ${u.counterMaxValue} ${i}` : ""}`;
145
+ }), o = !!s && t === l, $ = ()=>v === void 0 ? u.counterRemoveLabel : v, k = ()=>f === void 0 ? u.counterIncreaseLabel : f, z = ()=>n === void 0 ? u.counterDecreaseLabel : n, L = ()=>`${t}, ${T === void 0 ? u.counterQuantity : T}${a !== void 0 ? `, ${u.counterMinValue} ${a}` : ""}${i !== void 0 ? `, ${u.counterMaxValue} ${i}` : ""}`;
146
146
  return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({
147
147
  className: (0, _classnames.default)(_countercssmistica.counter, {
148
148
  [_countercssmistica.disabled]: e
149
149
  })
150
- }, (0, _dom.getPrefixedDataAttributes)(f, "Counter")), {
150
+ }, (0, _dom.getPrefixedDataAttributes)(p, "Counter")), {
151
151
  style: {
152
- border: `1px solid ${A === "inverse" ? _skincontractcssmistica.vars.colors.backgroundContainer : _skincontractcssmistica.vars.colors.border}`
152
+ border: `1px solid ${D === "inverse" ? _skincontractcssmistica.vars.colors.backgroundContainer : _skincontractcssmistica.vars.colors.border}`
153
153
  },
154
154
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
155
155
  space: 8,
@@ -164,8 +164,9 @@ const x = 20, W = (param)=>{
164
164
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, {
165
165
  className: _countercssmistica.button,
166
166
  disabled: !o && t === l || e,
167
- onPress: ()=>o ? s == null ? void 0 : s() : T(t - 1),
168
- "aria-label": o ? D() : k(),
167
+ onPress: ()=>o ? s == null ? void 0 : s() : V(t - 1),
168
+ "aria-label": o ? $() : z(),
169
+ "aria-controls": g,
169
170
  children: [
170
171
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
171
172
  className: _countercssmistica.buttonBackground
@@ -174,7 +175,7 @@ const x = 20, W = (param)=>{
174
175
  className: _countercssmistica.decreaseButtonIcon,
175
176
  "aria-hidden": o,
176
177
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconsubtractregular.default, {
177
- size: x,
178
+ size: C,
178
179
  color: t === l && !o || e ? _skincontractcssmistica.vars.colors.control : _skincontractcssmistica.vars.colors.controlActivated
179
180
  })
180
181
  }),
@@ -182,7 +183,7 @@ const x = 20, W = (param)=>{
182
183
  className: _countercssmistica.trashButtonIcon,
183
184
  "aria-hidden": !o,
184
185
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_icontrashcanregular.default, {
185
- size: x,
186
+ size: C,
186
187
  color: _skincontractcssmistica.vars.colors.controlError
187
188
  })
188
189
  })
@@ -194,6 +195,8 @@ const x = 20, W = (param)=>{
194
195
  style: {
195
196
  width: `${Math.max(3, String(d).length) * 1.25}ch`
196
197
  },
198
+ id: g,
199
+ "aria-live": "polite",
197
200
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_themevariantcontext.ThemeVariant, {
198
201
  variant: "default",
199
202
  children: [
@@ -207,7 +210,7 @@ const x = 20, W = (param)=>{
207
210
  }),
208
211
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_screenreaderonly.default, {
209
212
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("span", {
210
- children: z()
213
+ children: L()
211
214
  })
212
215
  })
213
216
  ]
@@ -221,8 +224,9 @@ const x = 20, W = (param)=>{
221
224
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, {
222
225
  className: _countercssmistica.button,
223
226
  disabled: t === d || e,
224
- onPress: ()=>T(t + 1),
225
- "aria-label": $(),
227
+ onPress: ()=>V(t + 1),
228
+ "aria-label": k(),
229
+ "aria-controls": g,
226
230
  children: [
227
231
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
228
232
  className: _countercssmistica.buttonBackground
@@ -230,7 +234,7 @@ const x = 20, W = (param)=>{
230
234
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
231
235
  className: _countercssmistica.defaultButtonIcon,
232
236
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconaddmoreregular.default, {
233
- size: x,
237
+ size: C,
234
238
  color: t === d || e ? _skincontractcssmistica.vars.colors.control : _skincontractcssmistica.vars.colors.controlActivated
235
239
  })
236
240
  })
@@ -240,4 +244,4 @@ const x = 20, W = (param)=>{
240
244
  ]
241
245
  })
242
246
  }));
243
- }, hr = X;
247
+ }, vr = rr;
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ import type { ExclusifyUnion } from './utils/utility-types';
3
+ import type { VideoElement, VideoSource } from './video';
4
+ export type ImageProps = {
5
+ backgroundImage: string;
6
+ };
7
+ export type VideoProps = {
8
+ backgroundVideo: VideoSource;
9
+ poster?: string;
10
+ backgroundVideoRef?: React.RefObject<VideoElement>;
11
+ };
12
+ export declare const CoverHeroMedia: ({ backgroundVideo, backgroundImage, poster, backgroundVideoRef, }: ExclusifyUnion<ImageProps | VideoProps>) => React.ReactElement;
@@ -0,0 +1,44 @@
1
+ "use client";
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "CoverHeroMedia", {
7
+ enumerable: true,
8
+ get: function() {
9
+ return y;
10
+ }
11
+ });
12
+ const _jsxruntime = require("react/jsx-runtime");
13
+ const _card = require("./card.js");
14
+ const _coverherocssmistica = require("./cover-hero.css-mistica.js");
15
+ const _image = /*#__PURE__*/ _interop_require_default(require("./image.js"));
16
+ function _interop_require_default(obj) {
17
+ return obj && obj.__esModule ? obj : {
18
+ default: obj
19
+ };
20
+ }
21
+ const y = (param)=>{
22
+ let { backgroundVideo: o, backgroundImage: e, poster: t, backgroundVideoRef: s } = param;
23
+ const { video: m, videoAction: r } = (0, _card.useVideoWithControls)(o, t, s);
24
+ return /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
25
+ className: _coverherocssmistica.mediaLayer,
26
+ children: [
27
+ e && /* @__PURE__ */ (0, _jsxruntime.jsx)(_image.default, {
28
+ width: "100%",
29
+ height: "100%",
30
+ src: e
31
+ }),
32
+ o && m,
33
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
34
+ className: _coverherocssmistica.mediaOverlay
35
+ }),
36
+ r && /* @__PURE__ */ (0, _jsxruntime.jsx)(_card.CardActionsGroup, {
37
+ actions: [
38
+ r
39
+ ],
40
+ type: "media"
41
+ })
42
+ ]
43
+ });
44
+ };
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ centered: function() {
13
+ return n;
14
+ },
15
+ coverHero: function() {
16
+ return o;
17
+ },
18
+ coverHeroContainer: function() {
19
+ return f;
20
+ },
21
+ hasSideExtra: function() {
22
+ return y;
23
+ },
24
+ mainContent: function() {
25
+ return _;
26
+ },
27
+ mediaLayer: function() {
28
+ return m;
29
+ },
30
+ mediaOverlay: function() {
31
+ return t;
32
+ },
33
+ minHeight: function() {
34
+ return h;
35
+ },
36
+ sideExtra: function() {
37
+ return z;
38
+ },
39
+ sixColumns: function() {
40
+ return p;
41
+ },
42
+ vars: function() {
43
+ return s;
44
+ },
45
+ withAspectRatio: function() {
46
+ return c;
47
+ }
48
+ });
49
+ require("./sprinkles.css.ts.vanilla.css-mistica.js");
50
+ require("./responsive-layout.css.ts.vanilla.css-mistica.js");
51
+ require("./grid-layout.css.ts.vanilla.css-mistica.js");
52
+ require("./carousel.css.ts.vanilla.css-mistica.js");
53
+ require("./cover-hero.css.ts.vanilla.css-mistica.js");
54
+ var n = "moeazi9 _1y2v1nfhz", o = "moeazi2 _1y2v1nfhe _1y2v1nfhk _1y2v1nfhq _1y2v1nfht _1y2v1nfi7 _1y2v1nfkr _1y2v1nfm0", f = "moeazi4 _1y2v1nfhe _1y2v1nfhk _1y2v1nfi7", y = "moeazi7", _ = "_1y2v1nfhe", m = "_1y2v1nfhf _1y2v1nfmf _1y2v1nfi7 _1y2v1nfio", t = "moeazic _1y2v1nfhf _1y2v1nfkr _1y2v1nfl6 _1y2v1nfi7 _1y2v1nfio", h = "moeazi6", z = "_1y2v1nfhe", p = "moeazie", s = {
55
+ aspectRatio: "var(--moeazi0)"
56
+ }, c = "moeazi5";
@@ -0,0 +1,14 @@
1
+ export declare const vars: {
2
+ aspectRatio: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
3
+ };
4
+ export declare const coverHero: string;
5
+ export declare const coverHeroContainer: string;
6
+ export declare const withAspectRatio: string;
7
+ export declare const minHeight: string;
8
+ export declare const hasSideExtra: string;
9
+ export declare const centered: string;
10
+ export declare const mediaLayer: string;
11
+ export declare const mediaOverlay: string;
12
+ export declare const mainContent: string;
13
+ export declare const sixColumns: string;
14
+ export declare const sideExtra: string;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return s;
9
+ }
10
+ });
11
+ const s = "";
@@ -0,0 +1,38 @@
1
+ import * as React from 'react';
2
+ import type { DataAttributes } from './utils/types';
3
+ import type { ImageProps, VideoProps } from './cover-hero-media';
4
+ import type { AspectRatio } from './image';
5
+ import type { ExclusifyUnion } from './utils/utility-types';
6
+ import type { ButtonLink, ButtonPrimary, ButtonSecondary } from './button';
7
+ import type Tag from './tag';
8
+ import type { RendersNullableElement } from './utils/renders-element';
9
+ import type { Variant } from './theme-variant-context';
10
+ type BaseProps = {
11
+ headline?: RendersNullableElement<typeof Tag>;
12
+ pretitle?: string;
13
+ pretitleLinesMax?: number;
14
+ title: string;
15
+ titleLinesMax?: number;
16
+ titleAs?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
17
+ description?: string;
18
+ descriptionLinesMax?: number;
19
+ extra?: React.ReactNode;
20
+ sideExtra?: React.ReactNode;
21
+ button?: RendersNullableElement<typeof ButtonPrimary>;
22
+ secondaryButton?: RendersNullableElement<typeof ButtonSecondary>;
23
+ buttonLink?: RendersNullableElement<typeof ButtonLink>;
24
+ minHeight?: string | number;
25
+ aspectRatio?: AspectRatio | number | 'auto';
26
+ centered?: boolean;
27
+ noPaddingY?: boolean;
28
+ /** "data-" prefix is automatically added. For example, use "testid" instead of "data-testid" */
29
+ dataAttributes?: DataAttributes;
30
+ 'aria-label'?: string;
31
+ };
32
+ type BackgroundProps = {
33
+ background?: string;
34
+ variant?: Variant;
35
+ };
36
+ type CoverHeroProps = BaseProps & ExclusifyUnion<ImageProps | VideoProps | BackgroundProps>;
37
+ declare const CoverHero: React.ForwardRefExoticComponent<CoverHeroProps & React.RefAttributes<HTMLDivElement>>;
38
+ export default CoverHero;