@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
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  Object.defineProperty(exports, "default", {
6
6
  enumerable: true,
7
7
  get: function() {
8
- return hr;
8
+ return Bt;
9
9
  }
10
10
  });
11
11
  const _jsxruntime = require("react/jsx-runtime");
@@ -23,6 +23,7 @@ const _imagecssmistica = require("./image.css-mistica.js");
23
23
  const _gridlayout = /*#__PURE__*/ _interop_require_default(require("./grid-layout.js"));
24
24
  const _coverheromedia = require("./cover-hero-media.js");
25
25
  const _dom = require("./utils/dom.js");
26
+ const _headings = require("./utils/headings.js");
26
27
  function _interop_require_default(obj) {
27
28
  return obj && obj.__esModule ? obj : {
28
29
  default: obj
@@ -148,16 +149,17 @@ function _object_without_properties_loose(source, excluded) {
148
149
  }
149
150
  return target;
150
151
  }
151
- const $ = (e)=>!e || e === "auto" ? 0 : typeof e == "number" ? e : ({
152
+ const nt = (e)=>!e || e === "auto" ? 0 : typeof e == "number" ? e : ({
152
153
  "1:1": 1,
153
154
  "16:9": 16 / 9,
154
155
  "7:10": 7 / 10,
155
156
  "4:3": 9 / 10
156
- })[e], rr = /*#__PURE__*/ _react.forwardRef((_param, R)=>{
157
- var { headline: e, pretitle: d, pretitleLinesMax: H, title: y, titleLinesMax: B, titleAs: N = "h1", description: u, descriptionLinesMax: S, extra: w, sideExtra: o, button: A, secondaryButton: T, buttonLink: j, minHeight: G, aspectRatio: c = "auto", variant: p, centered: t, noPaddingY: f, dataAttributes: L, "aria-label": M } = _param, l = _object_without_properties(_param, [
157
+ })[e], dt = /*#__PURE__*/ _react.forwardRef((_param, I)=>{
158
+ var { headline: e, pretitle: p, pretitleLinesMax: j, pretitleAs: h, title: d, titleLinesMax: G, titleAs: f = "h1", description: v, descriptionLinesMax: L, extra: b, sideExtra: o, button: M, secondaryButton: R, buttonLink: V, minHeight: z, aspectRatio: c = "auto", variant: g, centered: i, noPaddingY: x, dataAttributes: D, "aria-label": F } = _param, s = _object_without_properties(_param, [
158
159
  "headline",
159
160
  "pretitle",
160
161
  "pretitleLinesMax",
162
+ "pretitleAs",
161
163
  "title",
162
164
  "titleLinesMax",
163
165
  "titleAs",
@@ -176,87 +178,126 @@ const $ = (e)=>!e || e === "auto" ? 0 : typeof e == "number" ? e : ({
176
178
  "dataAttributes",
177
179
  "aria-label"
178
180
  ]);
179
- const a = l.backgroundVideo || l.backgroundImage, V = a ? "none" : l.background || ({
181
+ const a = s.backgroundVideo || s.backgroundImage, q = a ? "none" : s.background || ({
180
182
  default: _skincontractcssmistica.vars.colors.background,
181
183
  inverse: _skincontractcssmistica.vars.colors.backgroundBrand,
182
184
  alternative: _skincontractcssmistica.vars.colors.backgroundAlternative,
183
185
  media: "none"
184
- })[p !== null && p !== void 0 ? p : "default"], m = a ? "0 0 15px rgba(0, 0, 0, 0.4)" : void 0, h = /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
186
+ })[g !== null && g !== void 0 ? g : "default"], m = a ? "0 0 15px rgba(0, 0, 0, 0.4)" : void 0, l = p ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text3, {
187
+ regular: !0,
188
+ as: h,
189
+ truncate: j,
190
+ textShadow: m,
191
+ dataAttributes: {
192
+ testid: "pretitle"
193
+ },
194
+ children: p
195
+ }) : void 0, k = d ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text8, {
196
+ as: f,
197
+ truncate: G,
198
+ textShadow: m,
199
+ dataAttributes: {
200
+ testid: "title"
201
+ },
202
+ children: d
203
+ }) : void 0, C = e ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
204
+ style: {
205
+ order: -1
206
+ },
207
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
208
+ dataAttributes: {
209
+ testid: "headline"
210
+ },
211
+ paddingBottom: {
212
+ desktop: 8,
213
+ tablet: 8,
214
+ mobile: 16
215
+ },
216
+ children: e
217
+ })
218
+ }) : void 0, y = /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
185
219
  className: _coverherocssmistica.mainContent,
186
220
  children: [
187
- e && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
188
- paddingBottom: {
189
- desktop: 8,
190
- tablet: 8,
191
- mobile: 16
192
- },
193
- children: e
194
- }),
195
221
  /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
196
222
  space: 16,
197
223
  children: [
198
- /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
199
- space: 8,
200
- children: [
201
- d && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
202
- className: _coverherocssmistica.sixColumns,
203
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text3, {
204
- regular: !0,
205
- truncate: H,
206
- textShadow: m,
207
- children: d
224
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
225
+ className: _coverherocssmistica.flexColumn,
226
+ children: (0, _headings.isBiggerHeading)(f, h) ? /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
227
+ children: [
228
+ k,
229
+ C,
230
+ l && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
231
+ className: _coverherocssmistica.sixColumns,
232
+ style: {
233
+ paddingBottom: d ? 8 : 0,
234
+ order: -1
235
+ },
236
+ children: l
208
237
  })
209
- }),
210
- /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text8, {
211
- as: N,
212
- truncate: B,
213
- textShadow: m,
214
- children: y
215
- })
216
- ]
238
+ ]
239
+ }) : /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
240
+ children: [
241
+ l && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
242
+ className: _coverherocssmistica.sixColumns,
243
+ style: {
244
+ paddingBottom: d ? 8 : 0
245
+ },
246
+ children: l
247
+ }),
248
+ C,
249
+ k
250
+ ]
251
+ })
217
252
  }),
218
- u && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
253
+ v && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
219
254
  className: _coverherocssmistica.sixColumns,
220
255
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text3, {
221
256
  as: "p",
222
257
  regular: !0,
223
- truncate: S,
258
+ truncate: L,
224
259
  color: a ? _skincontractcssmistica.vars.colors.textPrimary : _skincontractcssmistica.vars.colors.textSecondary,
225
260
  textShadow: m,
226
- children: u
261
+ dataAttributes: {
262
+ testid: "description"
263
+ },
264
+ children: v
227
265
  })
228
266
  })
229
267
  ]
230
268
  }),
231
- w
269
+ b && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
270
+ "data-testid": "slot",
271
+ children: b
272
+ })
232
273
  ]
233
- }), b = c && c !== "auto";
234
- return /* @__PURE__ */ (0, _jsxruntime.jsx)("section", _object_spread_props(_object_spread({}, (0, _dom.getPrefixedDataAttributes)(L, "CoverHero")), {
235
- "aria-label": M,
236
- ref: R,
274
+ }), B = c && c !== "auto";
275
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)("section", _object_spread_props(_object_spread({}, (0, _dom.getPrefixedDataAttributes)(D, "CoverHero")), {
276
+ "aria-label": F,
277
+ ref: I,
237
278
  className: (0, _classnames.default)(_coverherocssmistica.coverHeroContainer, {
238
- [_coverherocssmistica.minHeight]: !f,
239
- [_coverherocssmistica.withAspectRatio]: b
279
+ [_coverherocssmistica.minHeight]: !x,
280
+ [_coverherocssmistica.withAspectRatio]: B
240
281
  }),
241
282
  style: _object_spread({
242
- minHeight: b ? "auto" : G,
283
+ minHeight: B ? "auto" : z,
243
284
  boxSizing: "border-box",
244
- background: V
285
+ background: q
245
286
  }, (0, _css.applyCssVars)({
246
- [_coverherocssmistica.vars.aspectRatio]: String($(c)),
287
+ [_coverherocssmistica.vars.aspectRatio]: String(nt(c)),
247
288
  [_imagecssmistica.vars.mediaBorderRadius]: "0px"
248
289
  })),
249
290
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
250
291
  className: (0, _classnames.default)(_coverherocssmistica.coverHero, {
251
- [_coverherocssmistica.centered]: t,
292
+ [_coverherocssmistica.centered]: i,
252
293
  [_coverherocssmistica.hasSideExtra]: o
253
294
  }),
254
295
  children: [
255
- a ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_coverheromedia.CoverHeroMedia, _object_spread({}, l)) : null,
296
+ a ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_coverheromedia.CoverHeroMedia, _object_spread({}, s)) : null,
256
297
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_responsivelayout.default, {
257
- variant: a ? "media" : p,
298
+ variant: a ? "media" : g,
258
299
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
259
- paddingY: f ? 0 : {
300
+ paddingY: x ? 0 : {
260
301
  desktop: 56,
261
302
  tablet: 56,
262
303
  mobile: 24
@@ -264,27 +305,28 @@ const $ = (e)=>!e || e === "auto" ? 0 : typeof e == "number" ? e : ({
264
305
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
265
306
  space: 24,
266
307
  children: [
267
- t && !o ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_gridlayout.default, {
308
+ i && !o ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_gridlayout.default, {
268
309
  template: "8",
269
- children: h
310
+ children: y
270
311
  }) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_gridlayout.default, {
271
312
  template: "8+4",
272
313
  collapseBreakpoint: "mobile",
273
- left: h,
314
+ left: y,
274
315
  right: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
275
316
  className: _coverherocssmistica.sideExtra,
317
+ "data-testid": "sideSlot",
276
318
  children: o
277
319
  })
278
320
  }),
279
321
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, {
280
322
  align: {
281
- mobile: t ? "center" : "left",
282
- tablet: t && !o ? "center" : "left",
283
- desktop: t && !o ? "center" : "left"
323
+ mobile: i ? "center" : "left",
324
+ tablet: i && !o ? "center" : "left",
325
+ desktop: i && !o ? "center" : "left"
284
326
  },
285
- primaryButton: A,
286
- secondaryButton: T,
287
- link: j
327
+ primaryButton: M,
328
+ secondaryButton: R,
329
+ link: V
288
330
  })
289
331
  ]
290
332
  })
@@ -293,4 +335,4 @@ const $ = (e)=>!e || e === "auto" ? 0 : typeof e == "number" ? e : ({
293
335
  ]
294
336
  })
295
337
  }));
296
- }), hr = rr;
338
+ }), Bt = dt;
@@ -80,26 +80,27 @@ function _object_spread_props(target, source) {
80
80
  return target;
81
81
  }
82
82
  const w = (param)=>{
83
- let { title: l, titleAs: d = "h1", description: p, button: e, buttonLink: f, largeImageUrl: o, imageUrl: i, asset: m, "aria-label": h, dataAttributes: v } = param;
84
- const { isDarkMode: g } = (0, _hooks.useTheme)(), t = (0, _themevariantcontext.useIsInverseOrMediaVariant)(), u = i ? /* @__PURE__ */ (0, _jsxruntime.jsx)("img", {
83
+ let { title: l, titleAs: d = "h1", description: p, button: r, buttonLink: f, largeImageUrl: a, imageUrl: o, asset: m, "aria-label": g, dataAttributes: u } = param;
84
+ const { isDarkMode: h } = (0, _hooks.useTheme)(), s = (0, _themevariantcontext.useIsInverseOrMediaVariant)(), v = o ? /* @__PURE__ */ (0, _jsxruntime.jsx)("img", {
85
+ "data-testid": "image",
85
86
  className: _emptystatecssmistica.smallImage,
86
87
  alt: "",
87
- src: i
88
- }) : void 0, y = _object_spread_props(_object_spread({}, (e == null ? void 0 : e.type) === _button.ButtonPrimary ? {
89
- primaryButton: e
88
+ src: o
89
+ }) : void 0, y = _object_spread_props(_object_spread({}, (r == null ? void 0 : r.type) === _button.ButtonPrimary ? {
90
+ primaryButton: r
90
91
  } : {
91
- secondaryButton: e
92
+ secondaryButton: r
92
93
  }), {
93
94
  link: f
94
95
  });
95
96
  return /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", _object_spread_props(_object_spread({
96
- className: (0, _classnames.default)(_emptystatecssmistica.container, t ? _emptystatecssmistica.inverseBorder : _emptystatecssmistica.border),
97
+ className: (0, _classnames.default)(_emptystatecssmistica.container, s ? _emptystatecssmistica.inverseBorder : _emptystatecssmistica.border),
97
98
  style: (0, _css.applyCssVars)({
98
- [_emptystatecssmistica.vars.backgroundColor]: t && !g ? _skincontractcssmistica.vars.colors.backgroundBrand : _skincontractcssmistica.vars.colors.backgroundContainer
99
+ [_emptystatecssmistica.vars.backgroundColor]: s && !h ? _skincontractcssmistica.vars.colors.backgroundBrand : _skincontractcssmistica.vars.colors.backgroundContainer
99
100
  }),
100
- "aria-label": h,
101
+ "aria-label": g,
101
102
  role: "region"
102
- }, (0, _dom.getPrefixedDataAttributes)(v, "EmptyState")), {
103
+ }, (0, _dom.getPrefixedDataAttributes)(u, "EmptyState")), {
103
104
  children: [
104
105
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
105
106
  style: {
@@ -107,9 +108,10 @@ const w = (param)=>{
107
108
  },
108
109
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
109
110
  space: 24,
110
- className: o ? _emptystatecssmistica.contentVariants.largeImage : _emptystatecssmistica.contentVariants.default,
111
+ className: a ? _emptystatecssmistica.contentVariants.largeImage : _emptystatecssmistica.contentVariants.default,
111
112
  children: [
112
- u !== null && u !== void 0 ? u : m && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
113
+ v !== null && v !== void 0 ? v : m && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
114
+ "data-testid": "asset",
113
115
  className: _emptystatecssmistica.assetContainer,
114
116
  children: m
115
117
  }),
@@ -118,12 +120,18 @@ const w = (param)=>{
118
120
  children: [
119
121
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text6, {
120
122
  as: d,
123
+ dataAttributes: {
124
+ testid: "title"
125
+ },
121
126
  children: l
122
127
  }),
123
128
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text3, {
124
129
  regular: !0,
125
130
  as: "p",
126
- color: t ? _skincontractcssmistica.vars.colors.inverse : _skincontractcssmistica.vars.colors.textSecondary,
131
+ color: s ? _skincontractcssmistica.vars.colors.inverse : _skincontractcssmistica.vars.colors.textSecondary,
132
+ dataAttributes: {
133
+ testid: "description"
134
+ },
127
135
  children: p
128
136
  })
129
137
  ]
@@ -137,15 +145,16 @@ const w = (param)=>{
137
145
  flex: 1,
138
146
  position: "relative"
139
147
  },
140
- children: o && /* @__PURE__ */ (0, _jsxruntime.jsx)(_aspectratiosupport.AspectRatioContainer, {
148
+ children: a && /* @__PURE__ */ (0, _jsxruntime.jsx)(_aspectratiosupport.AspectRatioContainer, {
141
149
  aspectRatio: 16 / 9,
142
150
  className: _emptystatecssmistica.largeImageContainer,
143
151
  height: "100%",
144
152
  width: "100%",
145
153
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
154
+ "data-testid": "image",
146
155
  className: _emptystatecssmistica.largeImage,
147
156
  style: {
148
- backgroundImage: `url(${o})`
157
+ backgroundImage: `url(${a})`
149
158
  }
150
159
  })
151
160
  })
@@ -10,15 +10,18 @@ function _export(target, all) {
10
10
  }
11
11
  _export(exports, {
12
12
  breadcrumbs: function() {
13
+ return m;
14
+ },
15
+ flexColumn: function() {
13
16
  return t;
14
17
  },
15
18
  hideOnDesktop: function() {
16
- return m;
19
+ return a;
17
20
  },
18
21
  hideOnTabletOrSmaller: function() {
19
- return a;
22
+ return v;
20
23
  }
21
24
  });
22
25
  require("./sprinkles.css.ts.vanilla.css-mistica.js");
23
26
  require("./header.css.ts.vanilla.css-mistica.js");
24
- var t = "mtk7e90 _1y2v1nf9g", m = "mtk7e93", a = "mtk7e90";
27
+ var m = "mtk7e90 _1y2v1nf9g", t = "_1y2v1nfho _1y2v1nfhu", a = "mtk7e93", v = "mtk7e90";
@@ -1,3 +1,4 @@
1
1
  export declare const hideOnTabletOrSmaller: string;
2
2
  export declare const breadcrumbs: string;
3
3
  export declare const hideOnDesktop: string;
4
+ export declare const flexColumn: string;
package/dist/header.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
+ import { type DataAttributes, type HeadingType, type RendersElement, type RendersNullableElement } from './utils/types';
2
3
  import type NavigationBreadcrumbs from './navigation-breadcrumbs';
3
4
  import type { ButtonPrimary, ButtonSecondary } from './button';
4
- import type { DataAttributes, HeadingType, RendersElement, RendersNullableElement } from './utils/types';
5
5
  import type { TextPresetProps } from './text';
6
6
  type OverridableTextProps = {
7
7
  color?: TextPresetProps['color'];
@@ -27,8 +27,9 @@ type MainSectionHeaderProps = {
27
27
  titleAs?: HeadingType;
28
28
  description?: string;
29
29
  button?: RendersNullableElement<typeof ButtonPrimary> | RendersNullableElement<typeof ButtonSecondary>;
30
+ dataAttributes?: DataAttributes;
30
31
  };
31
- export declare const MainSectionHeader: ({ title, titleAs, description, button, }: MainSectionHeaderProps) => JSX.Element;
32
+ export declare const MainSectionHeader: ({ title, titleAs, description, button, dataAttributes, }: MainSectionHeaderProps) => JSX.Element;
32
33
  type HeaderLayoutProps = {
33
34
  isInverse?: boolean;
34
35
  breadcrumbs?: RendersNullableElement<typeof NavigationBreadcrumbs>;