@telefonica/mistica 15.15.0 → 15.16.1

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.
package/dist/table.js CHANGED
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  Object.defineProperty(exports, "Table", {
6
6
  enumerable: true,
7
7
  get: function() {
8
- return we;
8
+ return xe;
9
9
  }
10
10
  });
11
11
  const _jsxruntime = require("react/jsx-runtime");
@@ -147,10 +147,10 @@ function _object_without_properties_loose(source, excluded) {
147
147
  }
148
148
  return target;
149
149
  }
150
- const C = {
150
+ const P = {
151
151
  default: "8px",
152
152
  boxed: "16px"
153
- }, F = "1px", ge = (a)=>a.Icon ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.IconButton, _object_spread_props(_object_spread({}, a), {
153
+ }, Z = "1px", ke = (a)=>a.Icon ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.IconButton, _object_spread_props(_object_spread({}, a), {
154
154
  "aria-label": a.label,
155
155
  small: !0,
156
156
  type: "neutral",
@@ -169,8 +169,8 @@ const C = {
169
169
  }),
170
170
  small: !0,
171
171
  bleedY: !0
172
- })), G = "left", we = /*#__PURE__*/ _react.forwardRef((_param, R)=>{
173
- var { dataAttributes: a, heading: i = [], content: f = [], boxed: p, responsive: Z, fullWidth: b = !0, maxHeight: k, emptyCase: I, columnTextAlign: x = G, rowVerticalAlign: A = "middle", columnWidth: c, hideHeaders: h, scrollOverResponsiveLayout: q } = _param, T = _object_without_properties(_param, [
172
+ })), q = "left", xe = /*#__PURE__*/ _react.forwardRef((_param, $)=>{
173
+ var { dataAttributes: a, heading: m = [], content: k = [], boxed: b, responsive: J, fullWidth: u = !0, maxHeight: v, emptyCase: A, columnTextAlign: T = q, rowVerticalAlign: C = "middle", columnWidth: p, hideHeaders: g, scrollOverResponsiveLayout: K, rowHeaderIndex: s } = _param, S = _object_without_properties(_param, [
174
174
  "dataAttributes",
175
175
  "heading",
176
176
  "content",
@@ -183,24 +183,25 @@ const C = {
183
183
  "rowVerticalAlign",
184
184
  "columnWidth",
185
185
  "hideHeaders",
186
- "scrollOverResponsiveLayout"
186
+ "scrollOverResponsiveLayout",
187
+ "rowHeaderIndex"
187
188
  ]);
188
- const w = (t)=>{
189
- var _x_t;
190
- return Array.isArray(x) ? (_x_t = x[t]) !== null && _x_t !== void 0 ? _x_t : G : x;
191
- }, l = Z === "collapse-rows", P = h === !0 || h === "mobile", J = h === !0 || h === "desktop", u = f.some((t)=>!Array.isArray(t) && t.actions.length > 0), $ = /* @__PURE__ */ (0, _jsxruntime.jsxs)("table", {
189
+ const z = (l)=>{
190
+ var _T_l;
191
+ return Array.isArray(T) ? (_T_l = T[l]) !== null && _T_l !== void 0 ? _T_l : q : T;
192
+ }, r = J === "collapse-rows", B = g === !0 || g === "mobile", Q = g === !0 || g === "desktop", y = k.some((l)=>!Array.isArray(l) && l.actions.length > 0), w = /* @__PURE__ */ (0, _jsxruntime.jsxs)("table", {
192
193
  className: (0, _classnames.default)(_tablecssmistica.table, {
193
- [_tablecssmistica.boxed]: p,
194
- [_tablecssmistica.collapsedRowsInMobile]: l,
195
- [_tablecssmistica.fullWidth]: b,
196
- [_tablecssmistica.hiddenHeadersInDesktop]: J,
197
- [_tablecssmistica.hiddenHeadersInMobile]: P || l
194
+ [_tablecssmistica.boxed]: b,
195
+ [_tablecssmistica.collapsedRowsInMobile]: r,
196
+ [_tablecssmistica.fullWidth]: u,
197
+ [_tablecssmistica.hiddenHeadersInDesktop]: Q,
198
+ [_tablecssmistica.hiddenHeadersInMobile]: B || r
198
199
  }),
199
- "aria-label": T["aria-label"],
200
- "aria-labelledby": T["aria-labelledby"],
201
- "aria-describedby": T["aria-describedby"],
200
+ "aria-label": S["aria-label"],
201
+ "aria-labelledby": S["aria-labelledby"],
202
+ "aria-describedby": S["aria-describedby"],
202
203
  children: [
203
- i.length > 0 && /* @__PURE__ */ (0, _jsxruntime.jsx)("thead", {
204
+ m.length > 0 && /* @__PURE__ */ (0, _jsxruntime.jsx)("thead", {
204
205
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_text.Text1, {
205
206
  as: "tr",
206
207
  medium: !0,
@@ -208,59 +209,65 @@ const C = {
208
209
  color: _skincontractcssmistica.vars.colors.textSecondary,
209
210
  wordBreak: !1,
210
211
  children: [
211
- i.map((t, o)=>/* @__PURE__ */ (0, _jsxruntime.jsx)("th", {
212
+ m.map((l, o)=>/* @__PURE__ */ (0, _jsxruntime.jsx)("th", {
212
213
  scope: "col",
213
- className: (0, _classnames.default)(_tablecssmistica.cellTextAlign[w(o)], _tablecssmistica.verticalAlign[A], {
214
+ className: (0, _classnames.default)(_tablecssmistica.cellTextAlign[z(o)], _tablecssmistica.verticalAlign[C], {
214
215
  [_tablecssmistica.rowFirstItem]: o === 0,
215
- [_tablecssmistica.rowLastItem]: o === i.length - 1 && !u
216
+ [_tablecssmistica.rowLastItem]: o === m.length - 1 && !y
216
217
  }),
217
218
  style: {
218
- minWidth: c == null ? void 0 : c[o],
219
- width: c == null ? void 0 : c[o]
219
+ minWidth: p == null ? void 0 : p[o],
220
+ width: p == null ? void 0 : p[o]
220
221
  },
221
- children: t
222
+ children: l
222
223
  }, o)),
223
- u && /* @__PURE__ */ (0, _jsxruntime.jsx)(_tableactionsheader.TableActionsHeader, {})
224
+ y && /* @__PURE__ */ (0, _jsxruntime.jsx)(_tableactionsheader.TableActionsHeader, {})
224
225
  ]
225
226
  })
226
227
  }),
227
228
  /* @__PURE__ */ (0, _jsxruntime.jsx)("tbody", {
228
- children: f.length > 0 ? f.map((t, o)=>{
229
- var _t_actions;
230
- const g = Array.isArray(t) ? t : t.cells, s = Array.isArray(t) ? [] : (_t_actions = t.actions) !== null && _t_actions !== void 0 ? _t_actions : [], B = /* @__PURE__ */ (0, _jsxruntime.jsx)(_inline.default, {
229
+ children: k.length > 0 ? k.map((l, o)=>{
230
+ var _l_actions;
231
+ const n = Array.isArray(l) ? l : l.cells, i = Array.isArray(l) ? [] : (_l_actions = l.actions) !== null && _l_actions !== void 0 ? _l_actions : [], D = /* @__PURE__ */ (0, _jsxruntime.jsx)(_inline.default, {
231
232
  space: 16,
232
- children: s.map((d, r)=>"Icon" in d || "checkedProps" in d ? /* @__PURE__ */ (0, _jsxruntime.jsx)(ge, _object_spread({}, d), r) : d)
233
- }), v = s.length ? `calc(${_iconbuttoncssmistica.iconContainerSize.small} * ${s.length} + 16px * ${s.length - 1})` : "0px";
233
+ children: i.map((d, t)=>"Icon" in d || "checkedProps" in d ? /* @__PURE__ */ (0, _jsxruntime.jsx)(ke, _object_spread({}, d), t) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_react.Fragment, {
234
+ children: d
235
+ }, t))
236
+ }), I = i.length ? `calc(${_iconbuttoncssmistica.iconContainerSize.small} * ${i.length} + 16px * ${i.length - 1})` : "0px";
234
237
  return /* @__PURE__ */ (0, _jsxruntime.jsxs)("tr", {
235
238
  style: {
236
239
  position: "relative"
237
240
  },
238
241
  children: [
239
- g.map((d, r)=>/* @__PURE__ */ (0, _jsxruntime.jsxs)("td", {
240
- className: (0, _classnames.default)(_tablecssmistica.verticalAlign[A], {
241
- [_tablecssmistica.rowFirstItem]: r === 0,
242
- [_tablecssmistica.rowLastItem]: r === g.length - 1 && !u,
243
- [_tablecssmistica.rowLastCollapsedItem]: r === g.length - 1 && l
242
+ n.map((d, t)=>{
243
+ const U = s === n.length - 1 ? t === n.length - 2 || n.length === 1 : t === n.length - 1;
244
+ return /* @__PURE__ */ (0, _jsxruntime.jsxs)(t === s ? "th" : "td", {
245
+ className: (0, _classnames.default)(_tablecssmistica.verticalAlign[C], {
246
+ [_tablecssmistica.rowFirstItem]: t === 0,
247
+ [_tablecssmistica.rowLastItem]: t === n.length - 1 && !y,
248
+ [_tablecssmistica.rowLastCollapsedItem]: U && r,
249
+ [_tablecssmistica.collapsedRowHeaderItem]: t === s && r
244
250
  }),
245
251
  style: {
246
252
  // add space between top actions and content
247
- marginRight: l && s.length ? `calc(${v} + 8px)` : void 0
253
+ marginRight: r && i.length ? `calc(${I} + 8px)` : void 0
248
254
  },
255
+ scope: t === s ? "row" : void 0,
249
256
  children: [
250
- r !== 0 && l && i[r] && !P && // this is aria-hidden because screen readers already read the column heading from the th
257
+ t !== s && r && m[t] && !B && // this is aria-hidden because screen readers already read the column heading from the th
251
258
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
252
259
  className: _tablecssmistica.mobileCellHeading,
253
260
  "aria-hidden": !0,
254
261
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text1, {
255
262
  medium: !0,
256
263
  color: _skincontractcssmistica.vars.colors.textSecondary,
257
- children: i[r]
264
+ children: m[t]
258
265
  })
259
266
  }),
260
267
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.default, _object_spread_props(_object_spread({
261
268
  desktopSize: _text.textProps.text2.desktopSize,
262
269
  desktopLineHeight: _text.textProps.text2.desktopLineHeight
263
- }, r === 0 && l ? {
270
+ }, t === s && r ? {
264
271
  mobileSize: _text.textProps.text4.mobileSize,
265
272
  mobileLineHeight: _text.textProps.text4.mobileLineHeight
266
273
  } : {
@@ -270,88 +277,89 @@ const C = {
270
277
  as: "div",
271
278
  wordBreak: !1,
272
279
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
273
- className: (0, _classnames.default)(_tablecssmistica.cellTextAlign[w(r)], {
274
- [_tablecssmistica.collapsedRowTitle]: r === 0 && l
280
+ className: (0, _classnames.default)(_tablecssmistica.cellTextAlign[z(t)], {
281
+ [_tablecssmistica.collapsedRowTitle]: t === s && r
275
282
  }),
276
283
  children: d
277
284
  })
278
285
  }))
279
286
  ]
280
- }, r)),
281
- s.length > 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)("td", {
282
- className: (0, _classnames.default)(_tablecssmistica.verticalAlign[A], _tablecssmistica.actionsTableCell, _tablecssmistica.rowLastItem, {
283
- [_tablecssmistica.rowFirstItem]: g.length === 0
287
+ }, t);
288
+ }),
289
+ i.length > 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)("td", {
290
+ className: (0, _classnames.default)(_tablecssmistica.verticalAlign[C], _tablecssmistica.actionsTableCell, _tablecssmistica.rowLastItem, {
291
+ [_tablecssmistica.rowFirstItem]: n.length === 0
284
292
  }),
285
293
  align: "right",
286
294
  style: {
287
- width: `calc(${v} + 12px)`
295
+ width: `calc(${I} + 12px)`
288
296
  },
289
- children: B
290
- }) : u && /* @__PURE__ */ (0, _jsxruntime.jsx)("td", {
297
+ children: D
298
+ }) : y && /* @__PURE__ */ (0, _jsxruntime.jsx)("td", {
291
299
  className: _tablecssmistica.actionsTableCell
292
300
  }),
293
- l && s.length > 0 && /* @__PURE__ */ (0, _jsxruntime.jsx)("td", {
301
+ r && i.length > 0 && /* @__PURE__ */ (0, _jsxruntime.jsx)("td", {
294
302
  className: _tablecssmistica.topActions,
295
303
  style: {
296
304
  position: "absolute",
297
- top: `calc(${p ? C.boxed : C.default} - ${F} + (${_iconbuttoncssmistica.iconContainerSize.small} - ${_iconbuttoncssmistica.iconSize.small}) / 2)`,
298
- right: p ? `calc(${C.boxed} - ${F})` : 0,
299
- width: v
305
+ top: `calc(${b ? P.boxed : P.default} - ${Z} + (${_iconbuttoncssmistica.iconContainerSize.small} - ${_iconbuttoncssmistica.iconSize.small}) / 2)`,
306
+ right: b ? `calc(${P.boxed} - ${Z})` : 0,
307
+ width: I
300
308
  },
301
- children: B
309
+ children: D
302
310
  })
303
311
  ]
304
312
  }, o);
305
313
  }) : /* @__PURE__ */ (0, _jsxruntime.jsx)("tr", {
306
314
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("td", {
307
- colSpan: i.length,
315
+ colSpan: m.length,
308
316
  className: (0, _classnames.default)({
309
- [_tablecssmistica.rowLastCollapsedItem]: l
317
+ [_tablecssmistica.rowLastCollapsedItem]: r
310
318
  }),
311
- children: typeof I == "string" ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
319
+ children: typeof A == "string" ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
312
320
  paddingY: 56,
313
321
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
314
322
  regular: !0,
315
323
  textAlign: "center",
316
324
  as: "div",
317
- children: I
325
+ children: A
318
326
  })
319
- }) : I
327
+ }) : A
320
328
  })
321
329
  })
322
330
  })
323
331
  ]
324
- }), z = function() {
325
- let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
332
+ }), x = function() {
333
+ let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
326
334
  return {
327
335
  className: (0, _classnames.default)(_tablecssmistica.scrollContainer, {
328
- [_tablecssmistica.scrollOverResponsiveLayout]: t,
329
- [_tablecssmistica.collapsedRowsInMobile]: l,
330
- [_tablecssmistica.fullWidth]: b
336
+ [_tablecssmistica.scrollOverResponsiveLayout]: l,
337
+ [_tablecssmistica.collapsedRowsInMobile]: r,
338
+ [_tablecssmistica.fullWidth]: u
331
339
  }),
332
340
  style: (0, _css.applyCssVars)({
333
- [_tablecssmistica.vars.maxHeight]: typeof k == "number" ? `${k}px` : k !== null && k !== void 0 ? k : "auto"
341
+ [_tablecssmistica.vars.maxHeight]: typeof v == "number" ? `${v}px` : v !== null && v !== void 0 ? v : "auto"
334
342
  })
335
343
  };
336
344
  };
337
- return p ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.InternalBoxed, {
338
- desktopOnly: l,
345
+ return b ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.InternalBoxed, {
346
+ desktopOnly: r,
339
347
  width: "fit-content",
340
348
  maxWidth: "100%",
341
349
  minWidth: {
342
- desktop: b ? "100%" : "auto",
343
- mobile: l || b ? "100%" : "auto"
350
+ desktop: u ? "100%" : "auto",
351
+ mobile: r || u ? "100%" : "auto"
344
352
  },
345
- ref: R,
353
+ ref: $,
346
354
  dataAttributes: _object_spread({
347
355
  "component-name": "Table"
348
356
  }, a),
349
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({}, z()), {
350
- children: $
357
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({}, x()), {
358
+ children: w
351
359
  }))
352
360
  }) : /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({
353
- ref: R
354
- }, (0, _dom.getPrefixedDataAttributes)(a, "Table"), z(q)), {
355
- children: $
361
+ ref: $
362
+ }, (0, _dom.getPrefixedDataAttributes)(a, "Table"), x(K)), {
363
+ children: w
356
364
  }));
357
365
  });
@@ -1,4 +1,5 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
+ import "./icon-button.css.ts.vanilla.css-mistica.js";
2
3
  import "./callout.css.ts.vanilla.css-mistica.js";
3
- var y = "_14g0jmy1 _1y2v1nf7s _1y2v1nf91 _1y2v1nfaa _1y2v1nfbj _1y2v1nfhk _1y2v1nfkb _1y2v1nfkl", _ = "_14g0jmy3 _1y2v1nfi6";
4
- export { y as container, _ as content };
4
+ var _ = "_14g0jmy5 _1y2v1nfhf _1y2v1nfll", t = "_14g0jmy6", f = "_14g0jmy1 _1y2v1nf7s _1y2v1nf91 _1y2v1nfaa _1y2v1nfbj _1y2v1nfhk _1y2v1nfkb _1y2v1nfkl", o = "_14g0jmy3 _1y2v1nfi6 _1y2v1nfhe";
5
+ export { _ as closeButtonContainer, t as closeButtonContainerSize, f as container, o as content };
@@ -51,98 +51,103 @@ 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 n from "./stack.js";
56
- import g from "./inline.js";
57
- import b from "./box.js";
58
- import { useTheme as v } from "./hooks.js";
59
- import { useThemeVariant as x, ThemeVariant as C } from "./theme-variant-context.js";
54
+ import { jsx as r, jsxs as e } from "react/jsx-runtime";
55
+ import m from "./stack.js";
56
+ import b from "./inline.js";
57
+ import v from "./box.js";
58
+ import { useTheme as x } from "./hooks.js";
59
+ import { useThemeVariant as C, ThemeVariant as B } from "./theme-variant-context.js";
60
60
  import { Text3 as k, Text2 as I } from "./text.js";
61
- import T from "./generated/mistica-icons/icon-close-regular.js";
62
- import { IconButton as B } from "./icon-button.js";
63
- import R from "classnames";
64
- import y from "./button-group.js";
65
- import { container as S, content as V } from "./callout.css-mistica.js";
66
- import { vars as j } from "./image.css-mistica.js";
67
- import { sprinkles as A } from "./sprinkles.css-mistica.js";
68
- import { vars as e } from "./skins/skin-contract.css-mistica.js";
69
- import { getPrefixedDataAttributes as N } from "./utils/dom.js";
70
- import { applyCssVars as P } from "./utils/css.js";
71
- const $ = (param)=>{
72
- let { title: t, titleAs: c = "h2", description: d, icon: a, onClose: i, button: l, secondaryButton: s, buttonLink: m, "aria-label": p, dataAttributes: u } = param;
73
- const f = x(), { texts: h } = v();
61
+ import R from "./generated/mistica-icons/icon-close-regular.js";
62
+ import { IconButton as T } from "./icon-button.js";
63
+ import N from "classnames";
64
+ import S from "./button-group.js";
65
+ import { container as y, content as V, closeButtonContainerSize as j, closeButtonContainer as A } from "./callout.css-mistica.js";
66
+ import { vars as P } from "./image.css-mistica.js";
67
+ import { sprinkles as $ } from "./sprinkles.css-mistica.js";
68
+ import { vars as o } from "./skins/skin-contract.css-mistica.js";
69
+ import { getPrefixedDataAttributes as w } from "./utils/dom.js";
70
+ import { applyCssVars as z } from "./utils/css.js";
71
+ const D = (param)=>{
72
+ let { title: a, titleAs: c = "h2", description: d, icon: i, onClose: t, button: l, secondaryButton: s, buttonLink: n, "aria-label": p, dataAttributes: u, role: f } = param;
73
+ const h = C(), { texts: g } = x();
74
74
  return /* @__PURE__ */ r("section", _object_spread_props(_object_spread({
75
- className: R(S, A({
75
+ className: N(y, $({
76
76
  background: {
77
- inverse: e.colors.backgroundContainer,
78
- alternative: e.colors.backgroundContainer,
79
- default: e.colors.backgroundContainerAlternative
80
- }[f]
77
+ inverse: o.colors.backgroundContainer,
78
+ alternative: o.colors.backgroundContainer,
79
+ default: o.colors.backgroundContainerAlternative
80
+ }[h]
81
81
  })),
82
- style: P({
83
- [j.mediaBorderRadius]: e.borderRadii.mediaSmall
82
+ style: z({
83
+ [P.mediaBorderRadius]: o.borderRadii.mediaSmall
84
84
  }),
85
- "aria-label": p !== null && p !== void 0 ? p : t
86
- }, N(u, "Callout")), {
87
- children: /* @__PURE__ */ o(C, {
85
+ "aria-label": p !== null && p !== void 0 ? p : a,
86
+ role: f
87
+ }, w(u, "Callout")), {
88
+ children: /* @__PURE__ */ e(B, {
88
89
  isInverse: !1,
89
90
  children: [
90
- a && /* @__PURE__ */ r(b, {
91
+ i && /* @__PURE__ */ r(v, {
91
92
  paddingRight: 16,
92
- children: a
93
+ children: i
93
94
  }),
94
- /* @__PURE__ */ r("div", {
95
+ /* @__PURE__ */ e("div", {
95
96
  className: V,
96
- children: /* @__PURE__ */ o(n, {
97
- space: 16,
98
- children: [
99
- /* @__PURE__ */ o(g, {
100
- fullWidth: !0,
101
- alignItems: "flex-start",
102
- space: "between",
103
- children: [
104
- /* @__PURE__ */ o(n, {
105
- space: 4,
106
- children: [
107
- /* @__PURE__ */ r(k, {
108
- as: c,
109
- regular: !0,
110
- children: t
111
- }),
112
- /* @__PURE__ */ r(I, {
113
- as: "p",
114
- regular: !0,
115
- color: e.colors.textSecondary,
116
- children: d
117
- })
118
- ]
119
- }),
120
- i && /* @__PURE__ */ r("div", {
121
- style: {
122
- // Align the X with the text content
123
- marginTop: "0.125rem"
124
- },
125
- children: /* @__PURE__ */ r(B, {
126
- small: !0,
127
- bleedY: !0,
128
- bleedRight: !0,
129
- Icon: T,
130
- onPress: i,
131
- "aria-label": h.closeButtonLabel
97
+ children: [
98
+ /* @__PURE__ */ e(m, {
99
+ space: 16,
100
+ children: [
101
+ /* @__PURE__ */ e(b, {
102
+ fullWidth: !0,
103
+ alignItems: "flex-start",
104
+ space: "between",
105
+ children: [
106
+ /* @__PURE__ */ e(m, {
107
+ space: 4,
108
+ children: [
109
+ /* @__PURE__ */ r(k, {
110
+ as: c,
111
+ regular: !0,
112
+ children: a
113
+ }),
114
+ /* @__PURE__ */ r(I, {
115
+ as: "p",
116
+ regular: !0,
117
+ color: o.colors.textSecondary,
118
+ children: d
119
+ })
120
+ ]
121
+ }),
122
+ t && // Create empty div in order to fill space that iconButton occupies.
123
+ // Without this, the content's vertical alignment can be affected
124
+ /* @__PURE__ */ r("div", {
125
+ className: j
132
126
  })
133
- })
134
- ]
135
- }),
136
- (l || s || m) && /* @__PURE__ */ r(y, {
137
- primaryButton: l,
138
- secondaryButton: s,
139
- link: m
127
+ ]
128
+ }),
129
+ (l || s || n) && /* @__PURE__ */ r(S, {
130
+ primaryButton: l,
131
+ secondaryButton: s,
132
+ link: n
133
+ })
134
+ ]
135
+ }),
136
+ t && /* @__PURE__ */ r("div", {
137
+ className: A,
138
+ children: /* @__PURE__ */ r(T, {
139
+ small: !0,
140
+ bleedY: !0,
141
+ bleedRight: !0,
142
+ Icon: R,
143
+ onPress: t,
144
+ "aria-label": g.closeButtonLabel
140
145
  })
141
- ]
142
- })
146
+ })
147
+ ]
143
148
  })
144
149
  ]
145
150
  })
146
151
  }));
147
- }, X = $;
148
- export { X as default };
152
+ }, rr = D;
153
+ export { rr as default };