@telefonica/mistica 15.8.0 → 15.9.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.
package/dist-es/list.js CHANGED
@@ -78,557 +78,449 @@ function _object_without_properties_loose(source, excluded) {
78
78
  }
79
79
  return target;
80
80
  }
81
- import { jsx as t, jsxs as L } from "react/jsx-runtime";
82
- import * as I from "react";
83
- import i from "classnames";
84
- import { BaseTouchable as S } from "./touchable.js";
85
- import { Text3 as me, Text1 as ue, Text2 as K } from "./text.js";
86
- import c from "./box.js";
87
- import X from "./stack.js";
88
- import ne from "./badge.js";
89
- import { useAriaId as ge } from "./hooks.js";
90
- import { useIsInverseVariant as le } from "./theme-variant-context.js";
91
- import be from "./icons/icon-chevron.js";
92
- import ve from "./switch-component.js";
93
- import re, { useRadioContext as fe } from "./radio-button.js";
94
- import xe from "./checkbox.js";
95
- import { Boxed as ye } from "./boxed.js";
96
- import Ne from "./divider.js";
97
- import { getPrefixedDataAttributes as we } from "./utils/dom.js";
98
- import { rowContent as T, touchableBackground as C, touchableBackgroundInverse as k, pointer as W, dualActionContainer as Q, dualActionLeft as U, dualActionDivider as Z, content as Be, center as F, disabled as V, asset as Re, rowBody as Ce, right as ke, rightRestrictedWidth as Ie, detail as Pe, detailRight as ae, dualActionRight as Te, badge as Le } from "./list.css-mistica.js";
99
- import { vars as Ee } from "./image.css-mistica.js";
81
+ import { jsx as t, jsxs as V } from "react/jsx-runtime";
82
+ import * as x from "react";
83
+ import m from "classnames";
84
+ import { BaseTouchable as ee } from "./touchable.js";
85
+ import { Text3 as fe, Text1 as be, Text2 as F } from "./text.js";
86
+ import i from "./box.js";
87
+ import N from "./stack.js";
88
+ import ve from "./badge.js";
89
+ import { useAriaId as xe } from "./hooks.js";
90
+ import { useIsInverseVariant as ie } from "./theme-variant-context.js";
91
+ import ge from "./icons/icon-chevron.js";
92
+ import ye from "./switch-component.js";
93
+ import te, { useRadioContext as we } from "./radio-button.js";
94
+ import Be from "./checkbox.js";
95
+ import { Boxed as Re } from "./boxed.js";
96
+ import Ie from "./divider.js";
97
+ import { getPrefixedDataAttributes as J } from "./utils/dom.js";
98
+ import { rowContent as Y, touchableBackground as q, touchableBackgroundInverse as z, pointer as ae, content as Ce, center as G, disabled as C, asset as Ne, rowBody as Te, badge as ke, rightContent as Le, rightRestrictedWidth as Ae, detail as Se, detailRight as Ve, dualActionContainer as Xe, dualActionLeft as Ee, dualActionDivider as Pe, dualActionRight as De } from "./list.css-mistica.js";
99
+ import { vars as We } from "./image.css-mistica.js";
100
100
  import { vars as d } from "./skins/skin-contract.css-mistica.js";
101
- import { applyCssVars as Ae } from "./utils/css.js";
102
- import { IconButton as ie, ToggleIconButton as oe } from "./icon-button.js";
103
- import { sprinkles as Se } from "./sprinkles.css-mistica.js";
104
- const ce = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
105
- centerY: n
106
- }) : n ? /* @__PURE__ */ t("div", {
101
+ import { applyCssVars as je } from "./utils/css.js";
102
+ import { IconButton as re, ToggleIconButton as ne } from "./icon-button.js";
103
+ import { sprinkles as Me } from "./sprinkles.css-mistica.js";
104
+ const Oe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
105
+ centerY: a
106
+ }) : a ? /* @__PURE__ */ t("div", {
107
107
  style: {
108
108
  display: "flex",
109
109
  alignItems: "center",
110
110
  height: "100%"
111
111
  },
112
- children: e
113
- }) : e, Ve = (param)=>{
114
- let { withChevron: e, headline: n, headlineRef: r, extraRef: l, title: h, titleAs: P, titleLinesMax: b, subtitle: x, subtitleLinesMax: Y, description: E, descriptionLinesMax: q, detail: u, asset: H, danger: j, type: y = "basic", badge: D, right: s, extra: M, labelId: m, disabled: a } = param;
115
- const O = le(), A = [
116
- n,
117
- h,
118
- x,
119
- E,
120
- M
121
- ].filter(Boolean).length === 1, z = ()=>D ? /* @__PURE__ */ t(c, {
122
- paddingLeft: 16,
123
- children: /* @__PURE__ */ t("div", {
124
- className: i(F, Le, {
125
- [V]: a
126
- }),
127
- children: D === !0 ? /* @__PURE__ */ t(ne, {}) : /* @__PURE__ */ t(ne, {
128
- value: D
129
- })
130
- })
131
- }) : null;
132
- return /* @__PURE__ */ L(c, {
112
+ children: /* @__PURE__ */ t("div", {
113
+ children: e
114
+ })
115
+ }) : e, He = (param)=>{
116
+ let { withChevron: e, headline: a, headlineRef: r, extraRef: o, title: c, titleAs: g, titleLinesMax: y, subtitle: f, subtitleLinesMax: E, description: B, descriptionLinesMax: P, detail: h, asset: X, danger: T, badge: k, right: w, extra: s, labelId: D, disabled: b, control: v } = param;
117
+ const L = ie(), A = [
118
+ a,
119
+ c,
120
+ f,
121
+ B,
122
+ s
123
+ ].filter(Boolean).length === 1;
124
+ return /* @__PURE__ */ V(i, {
133
125
  paddingY: 16,
134
- className: Be,
126
+ className: Ce,
135
127
  children: [
136
- H && /* @__PURE__ */ t(c, {
128
+ X && /* @__PURE__ */ t(i, {
137
129
  paddingRight: 16,
138
- className: i({
139
- [F]: A,
140
- [V]: a
130
+ className: m({
131
+ [G]: A,
132
+ [C]: b
141
133
  }),
142
134
  children: /* @__PURE__ */ t("div", {
143
- className: Re,
144
- style: Ae({
145
- color: j ? O ? d.colors.textErrorInverse : d.colors.textError : O ? d.colors.textPrimaryInverse : d.colors.textPrimary,
146
- [Ee.mediaBorderRadius]: d.borderRadii.mediaSmall
135
+ className: Ne,
136
+ style: je({
137
+ color: T ? L ? d.colors.textErrorInverse : d.colors.textError : L ? d.colors.textPrimaryInverse : d.colors.textPrimary,
138
+ [We.mediaBorderRadius]: d.borderRadii.mediaSmall
147
139
  }),
148
- children: H
140
+ children: X
149
141
  })
150
142
  }),
151
- /* @__PURE__ */ L("div", {
152
- className: i(Ce, {
153
- [V]: a
143
+ /* @__PURE__ */ V("div", {
144
+ className: m(Te, {
145
+ [C]: b
154
146
  }),
155
147
  style: {
156
148
  justifyContent: A ? "center" : "flex-start"
157
149
  },
158
- id: m,
150
+ id: D,
159
151
  children: [
160
- /* @__PURE__ */ t(me, {
152
+ /* @__PURE__ */ t(fe, {
161
153
  regular: !0,
162
- color: j ? d.colors.textError : d.colors.textPrimary,
163
- truncate: b,
154
+ color: T ? d.colors.textError : d.colors.textPrimary,
155
+ truncate: y,
164
156
  hyphens: "auto",
165
- as: P,
166
- children: h
157
+ as: g,
158
+ children: c
167
159
  }),
168
- n && /* @__PURE__ */ t("div", {
160
+ a && /* @__PURE__ */ t("div", {
169
161
  ref: r,
170
162
  style: {
171
163
  order: -1,
172
164
  paddingBottom: 4
173
165
  },
174
- children: /* @__PURE__ */ t(ue, {
166
+ children: /* @__PURE__ */ t(be, {
175
167
  regular: !0,
176
168
  color: d.colors.textPrimary,
177
169
  hyphens: "auto",
178
- children: n
170
+ children: a
179
171
  })
180
172
  }),
181
- x && /* @__PURE__ */ t(c, {
173
+ f && /* @__PURE__ */ t(i, {
182
174
  paddingTop: 2,
183
- children: /* @__PURE__ */ t(K, {
175
+ children: /* @__PURE__ */ t(F, {
184
176
  regular: !0,
185
177
  color: d.colors.textPrimary,
186
- truncate: Y,
178
+ truncate: E,
187
179
  hyphens: "auto",
188
- children: x
180
+ children: f
189
181
  })
190
182
  }),
191
- E && /* @__PURE__ */ t(c, {
183
+ B && /* @__PURE__ */ t(i, {
192
184
  paddingTop: 2,
193
- children: /* @__PURE__ */ t(K, {
185
+ children: /* @__PURE__ */ t(F, {
194
186
  regular: !0,
195
187
  color: d.colors.textSecondary,
196
- truncate: q,
188
+ truncate: P,
197
189
  hyphens: "auto",
198
- children: E
190
+ children: B
199
191
  })
200
192
  }),
201
- M && /* @__PURE__ */ t(c, {
202
- ref: l,
193
+ s && /* @__PURE__ */ t(i, {
194
+ ref: o,
203
195
  paddingTop: 2,
204
- children: M
196
+ children: s
205
197
  })
206
198
  ]
207
199
  }),
208
- z(),
209
- /* @__PURE__ */ L("div", {
210
- className: i({
211
- [ke]: !!u || y !== "basic",
212
- [Ie]: !!u
200
+ k && /* @__PURE__ */ t(i, {
201
+ paddingLeft: 16,
202
+ children: /* @__PURE__ */ t("div", {
203
+ className: m(ke, {
204
+ [C]: b
205
+ }),
206
+ children: /* @__PURE__ */ t(ve, {
207
+ value: k === !0 ? void 0 : k
208
+ })
209
+ })
210
+ }),
211
+ (h || w || e || v) && /* @__PURE__ */ V("div", {
212
+ className: m(Le, {
213
+ [Ae]: !!h
213
214
  }),
214
215
  children: [
215
- u && /* @__PURE__ */ t("div", {
216
- className: i(F, Pe, {
217
- [V]: a
216
+ h && /* @__PURE__ */ t("div", {
217
+ className: m(Se, {
218
+ [C]: b
218
219
  }),
219
- children: /* @__PURE__ */ t(K, {
220
+ children: /* @__PURE__ */ t(F, {
220
221
  regular: !0,
221
222
  color: d.colors.textSecondary,
222
223
  hyphens: "auto",
223
- children: u
224
+ children: h
224
225
  })
225
226
  }),
226
- y === "control" && /* @__PURE__ */ t("div", {
227
- className: i({
228
- [ae]: !!u
227
+ w && /* @__PURE__ */ t("div", {
228
+ className: m({
229
+ [Ve]: !!h,
230
+ [C]: b
229
231
  }),
230
- children: ce(s, A)
232
+ children: Oe(w, A)
231
233
  }),
232
- y === "custom" && /* @__PURE__ */ t("div", {
233
- className: i({
234
- [ae]: !!u,
235
- [V]: a
234
+ e && /* @__PURE__ */ t(i, {
235
+ paddingLeft: h || w ? 4 : 0,
236
+ className: m(G, {
237
+ [C]: b
236
238
  }),
237
- children: ce(s, A)
238
- }),
239
- (y === "chevron" || y === "custom" && e) && /* @__PURE__ */ t(c, {
240
- paddingLeft: u || y === "custom" ? 4 : 0,
241
- className: i(F, {
242
- [V]: a
243
- }),
244
- children: /* @__PURE__ */ t(be, {
245
- color: O ? d.colors.inverse : d.colors.neutralMedium,
239
+ children: /* @__PURE__ */ t(ge, {
240
+ color: L ? d.colors.inverse : d.colors.neutralMedium,
246
241
  direction: "right"
247
242
  })
243
+ }),
244
+ v && /* @__PURE__ */ t(i, {
245
+ paddingLeft: h || w ? 8 : 0,
246
+ className: G,
247
+ children: v
248
248
  })
249
249
  ]
250
250
  })
251
251
  ]
252
252
  });
253
- }, Xe = (param)=>{
254
- let { value: e, defaultValue: n, onChange: r } = param;
255
- const l = e !== void 0, [h, P] = I.useState(!!n), b = ()=>{
256
- l || P(!h), r && r(l ? !e : !h);
257
- };
258
- return l ? [
259
- !!e,
260
- b
261
- ] : [
262
- h,
263
- b
253
+ }, Fe = (param)=>{
254
+ let { value: e, defaultValue: a, onChange: r } = param;
255
+ const o = e !== void 0, [c, g] = x.useState(!!a);
256
+ return [
257
+ o ? !!e : c,
258
+ ()=>{
259
+ o || g(!c), r == null || r(o ? !e : !c);
260
+ }
264
261
  ];
265
- }, je = (e)=>e.switch !== void 0, De = (e)=>e.checkbox !== void 0, Me = (e)=>e.radioValue !== void 0, Oe = (e)=>e.iconButton !== void 0, de = /*#__PURE__*/ I.forwardRef((e, n)=>{
266
- const r = ge(), l = le(), { asset: h, headline: P, title: b, titleAs: x, titleLinesMax: Y, subtitle: E, subtitleLinesMax: q, description: u, descriptionLinesMax: H, detail: j, danger: y, badge: D, role: s, extra: M, dataAttributes: m, "aria-label": a } = e, [O, _] = I.useState(""), [A, z] = I.useState(""), $ = [
267
- b,
268
- O,
269
- E,
270
- u,
262
+ }, Ye = (e)=>[
263
+ "switch",
264
+ "checkbox",
265
+ "radioValue",
266
+ "iconButton"
267
+ ].some((a)=>e[a] !== void 0), oe = /*#__PURE__*/ x.forwardRef((e, a)=>{
268
+ var $, p;
269
+ const r = xe(), o = ie(), { asset: c, headline: g, title: y, titleAs: f, titleLinesMax: E, subtitle: B, subtitleLinesMax: P, description: h, descriptionLinesMax: X, detail: T, danger: k, badge: w, role: s, extra: D, withChevron: b, dataAttributes: v, right: L, "aria-label": K } = e, [A, le] = x.useState(""), [de, ce] = x.useState(""), se = [
270
+ y,
271
271
  A,
272
- j
273
- ].filter(Boolean).join(" "), se = fe(), o = e.disabled || e.radioValue !== void 0 && se.disabled, N = !o && !l, w = !o && l, [p, ee] = Xe(e.switch || e.checkbox || {}), v = (param)=>{
274
- let { type: g, right: B, labelId: R } = param;
275
- return /* @__PURE__ */ t(Ve, {
276
- asset: h,
277
- headline: P,
278
- headlineRef: (f)=>{
279
- f && _(f.textContent || "");
280
- },
281
- title: b,
282
- titleAs: x,
283
- subtitle: E,
284
- description: u,
285
- badge: D,
286
- titleLinesMax: Y,
287
- subtitleLinesMax: q,
288
- descriptionLinesMax: H,
289
- detail: j,
290
- danger: y,
291
- type: g,
292
- right: B,
293
- extra: M,
294
- extraRef: (f)=>{
295
- f && z(f.innerText || f.textContent || "");
296
- },
297
- labelId: R,
298
- disabled: o,
299
- withChevron: !!e.onPress || !!e.href || !!e.to
300
- });
301
- }, G = function() {
302
- let { hidden: g, right: B } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
303
- let R = "chevron";
304
- return B === null && (R = "basic"), B && (R = "custom"), /* @__PURE__ */ t(c, {
305
- paddingX: 16,
306
- "aria-hidden": g || void 0,
307
- children: v({
308
- type: R,
309
- right: B
310
- })
311
- });
312
- };
313
- if (e.onPress && !je(e) && !De(e) && !Me(e) && !Oe(e)) return /* @__PURE__ */ t(S, {
314
- ref: n,
315
- className: i(T, {
316
- [C]: N,
317
- [k]: w,
318
- [W]: !o
319
- }),
320
- trackingEvent: e.trackingEvent,
321
- onPress: e.onPress,
322
- role: s,
323
- dataAttributes: m,
324
- disabled: o,
325
- "aria-label": a,
326
- children: G({
327
- right: e.right
328
- })
329
- });
330
- if (e.to) return /* @__PURE__ */ t(S, {
331
- ref: n,
332
- className: i(T, {
333
- [C]: N,
334
- [k]: w,
335
- [W]: !o
336
- }),
337
- trackingEvent: e.trackingEvent,
272
+ B,
273
+ h,
274
+ de,
275
+ T
276
+ ].filter(Boolean).join(" "), R = K !== null && K !== void 0 ? K : e.href || e.to ? se : void 0, he = we(), u = e.disabled || e.radioValue !== void 0 && he.disabled, W = !u && !o, j = !u && o, Q = Ye(e), S = !!e.onPress || !!e.href || !!e.to, me = Q ? !1 : b !== null && b !== void 0 ? b : S, U = {
277
+ href: e.href,
278
+ newTab: e.newTab,
279
+ loadOnTop: e.loadOnTop,
338
280
  to: e.to,
339
281
  fullPageOnWebView: e.fullPageOnWebView,
282
+ replace: e.replace,
340
283
  onNavigate: e.onNavigate,
341
- role: s,
342
- dataAttributes: m,
343
- disabled: o,
344
- "aria-label": a !== null && a !== void 0 ? a : $,
345
- children: G({
346
- right: e.right,
347
- hidden: !0
284
+ onPress: e.onPress,
285
+ trackingEvent: e.trackingEvent
286
+ }, [Z, _] = Fe(e.switch || e.checkbox || {}), I = (n)=>/* @__PURE__ */ t(He, {
287
+ asset: c,
288
+ headline: g,
289
+ headlineRef: (l)=>{
290
+ l && le(l.textContent || "");
291
+ },
292
+ title: y,
293
+ titleAs: f,
294
+ subtitle: B,
295
+ description: h,
296
+ badge: w,
297
+ titleLinesMax: E,
298
+ subtitleLinesMax: P,
299
+ descriptionLinesMax: X,
300
+ detail: T,
301
+ danger: k,
302
+ right: L,
303
+ control: n == null ? void 0 : n.control,
304
+ extra: D,
305
+ extraRef: (l)=>{
306
+ l && ce(l.innerText || l.textContent || "");
307
+ },
308
+ labelId: n == null ? void 0 : n.labelId,
309
+ disabled: u,
310
+ withChevron: me
311
+ });
312
+ if (S && !Q) return /* @__PURE__ */ t(ee, _object_spread_props(_object_spread({
313
+ ref: a,
314
+ className: m(Y, {
315
+ [q]: W,
316
+ [z]: j,
317
+ [ae]: !u
348
318
  })
349
- });
350
- if (e.href) return /* @__PURE__ */ t(S, {
351
- ref: n,
352
- className: i(T, {
353
- [C]: N,
354
- [k]: w,
355
- [W]: !o
356
- }),
357
- trackingEvent: e.trackingEvent,
358
- href: e.href,
359
- newTab: e.newTab,
360
- onNavigate: e.onNavigate,
361
- loadOnTop: e.loadOnTop,
319
+ }, U), {
362
320
  role: s,
363
- dataAttributes: m,
364
- disabled: o,
365
- "aria-label": a !== null && a !== void 0 ? a : $,
366
- children: G({
367
- right: e.right,
368
- hidden: !0
321
+ dataAttributes: v,
322
+ disabled: u,
323
+ "aria-label": R,
324
+ children: /* @__PURE__ */ t(i, {
325
+ paddingX: 16,
326
+ "aria-hidden": !!e.to || !!e.href || void 0,
327
+ children: I()
369
328
  })
370
- });
371
- const te = (g)=>{
372
- var R, f;
373
- var _ref, _ref1;
374
- const B = (_ref1 = (_ref = (R = e.switch) == null ? void 0 : R.name) !== null && _ref !== void 0 ? _ref : (f = e.checkbox) == null ? void 0 : f.name) !== null && _ref1 !== void 0 ? _ref1 : r;
375
- return e.onPress ? /* @__PURE__ */ L("div", {
376
- className: Q,
329
+ }));
330
+ const M = (n)=>/* @__PURE__ */ V("div", _object_spread_props(_object_spread({
331
+ className: Xe,
332
+ ref: a
333
+ }, J(v)), {
377
334
  children: [
378
- /* @__PURE__ */ t(S, {
379
- dataAttributes: m,
380
- disabled: o,
381
- onPress: e.onPress,
382
- trackingEvent: e.trackingEvent,
335
+ /* @__PURE__ */ t(ee, _object_spread_props(_object_spread({
336
+ disabled: u
337
+ }, U), {
383
338
  role: s,
384
- className: i(U, {
385
- [C]: N,
386
- [k]: w
339
+ className: m(Ee, {
340
+ [q]: W,
341
+ [z]: j
387
342
  }),
388
- "aria-label": a,
389
- children: v({
390
- type: "basic",
343
+ "aria-label": R,
344
+ children: I({
391
345
  labelId: r
392
346
  })
393
- }),
347
+ })),
394
348
  /* @__PURE__ */ t("div", {
395
- className: Z
349
+ className: Pe
396
350
  }),
397
- /* @__PURE__ */ t(g, {
398
- disabled: o,
399
- name: B,
400
- checked: p,
401
- "aria-label": a,
402
- "aria-labelledby": r,
403
- onChange: ee,
404
- render: (param)=>{
405
- let { controlElement: J } = param;
406
- return /* @__PURE__ */ t("div", {
407
- className: Te,
408
- children: J
409
- });
410
- }
411
- })
351
+ n
412
352
  ]
413
- }) : /* @__PURE__ */ t("div", {
414
- className: i(T, {
415
- [C]: N,
416
- [k]: w,
417
- [W]: !o
353
+ })), O = (n, l)=>/* @__PURE__ */ t("div", _object_spread_props(_object_spread({
354
+ className: m(Y, {
355
+ [q]: W && l,
356
+ [z]: j && l,
357
+ [ae]: !u && l
418
358
  }),
419
- children: /* @__PURE__ */ t(g, {
420
- disabled: o,
421
- dataAttributes: m,
422
- name: B,
423
- checked: p,
424
- onChange: ee,
425
- "aria-label": a,
426
- render: (param)=>{
427
- let { controlElement: J, labelId: he } = param;
428
- return /* @__PURE__ */ t(c, {
429
- paddingX: 16,
430
- role: s,
431
- children: v({
432
- labelId: he,
433
- type: "control",
434
- right: ()=>/* @__PURE__ */ t(X, {
435
- space: "around",
436
- children: J
437
- })
438
- })
439
- });
440
- }
441
- })
442
- });
443
- };
444
- return e.switch ? te(ve) : e.checkbox ? te(xe) : e.iconButton ? e.onPress ? /* @__PURE__ */ L("div", {
445
- className: Q,
446
- children: [
447
- /* @__PURE__ */ t(S, {
448
- dataAttributes: m,
449
- disabled: o,
450
- onPress: e.onPress,
451
- trackingEvent: e.trackingEvent,
452
- role: s,
453
- className: i(U, {
454
- [C]: N,
455
- [k]: w
456
- }),
457
- "aria-label": a,
458
- children: v({
459
- type: "basic",
460
- labelId: r
461
- })
462
- }),
463
- /* @__PURE__ */ t("div", {
464
- className: Z
465
- }),
466
- /* @__PURE__ */ t(c, {
467
- padding: 16,
468
- children: /* @__PURE__ */ t(X, {
469
- space: "around",
470
- children: e.iconButton.Icon ? /* @__PURE__ */ t(ie, _object_spread_props(_object_spread({}, e.iconButton), {
471
- disabled: e.disabled,
472
- ref: n
473
- })) : /* @__PURE__ */ t(oe, _object_spread_props(_object_spread({}, e.iconButton), {
474
- disabled: e.disabled,
475
- ref: n
476
- }))
477
- })
478
- })
479
- ]
480
- }) : /* @__PURE__ */ t("div", {
481
- className: i(T),
482
- children: /* @__PURE__ */ t(c, {
483
- paddingX: 16,
484
- children: v({
485
- labelId: r,
486
- type: "control",
487
- right: /* @__PURE__ */ t(X, {
488
- space: "around",
489
- children: e.iconButton.Icon ? /* @__PURE__ */ t(ie, _object_spread_props(_object_spread({}, e.iconButton), {
490
- disabled: e.disabled,
491
- ref: n
492
- })) : /* @__PURE__ */ t(oe, _object_spread_props(_object_spread({}, e.iconButton), {
493
- disabled: e.disabled,
494
- ref: n
495
- }))
496
- })
497
- })
498
- })
499
- }) : e.radioValue ? e.onPress ? /* @__PURE__ */ L("div", {
500
- className: Q,
501
- children: [
502
- /* @__PURE__ */ t(S, {
503
- disabled: o,
504
- onPress: e.onPress,
505
- role: s,
506
- className: i(U, {
507
- [C]: N,
508
- [k]: w
509
- }),
510
- "aria-label": a,
511
- children: v({
512
- type: "basic",
513
- labelId: r
514
- })
515
- }),
516
- /* @__PURE__ */ t("div", {
517
- className: Z
518
- }),
519
- /* @__PURE__ */ t(re, {
520
- dataAttributes: m,
521
- value: e.radioValue,
522
- "aria-labelledby": r,
523
- "aria-label": a,
524
- render: (param)=>{
525
- let { controlElement: g } = param;
526
- return /* @__PURE__ */ t(X, {
527
- space: "around",
528
- children: /* @__PURE__ */ t(c, {
529
- paddingX: 16,
530
- children: g
531
- })
532
- });
533
- }
534
- })
535
- ]
536
- }) : /* @__PURE__ */ t("div", {
537
- className: i(T, {
538
- [C]: N,
539
- [k]: w,
540
- [W]: !o
541
- }),
542
- role: s,
543
- ref: n,
544
- children: /* @__PURE__ */ t(re, {
545
- dataAttributes: m,
546
- value: e.radioValue,
359
+ ref: a
360
+ }, J(v)), {
361
+ children: n
362
+ }));
363
+ if (e.switch || e.checkbox) {
364
+ var _ref, _ref1;
365
+ const n = e.switch ? ye : Be, l = (_ref1 = (_ref = ($ = e.switch) == null ? void 0 : $.name) !== null && _ref !== void 0 ? _ref : (p = e.checkbox) == null ? void 0 : p.name) !== null && _ref1 !== void 0 ? _ref1 : r;
366
+ return S ? M(/* @__PURE__ */ t(n, {
367
+ disabled: u,
368
+ name: l,
369
+ checked: Z,
370
+ "aria-label": R,
547
371
  "aria-labelledby": r,
548
- "aria-label": a,
372
+ onChange: _,
549
373
  render: (param)=>{
550
- let { controlElement: g } = param;
551
- return /* @__PURE__ */ t(c, {
374
+ let { controlElement: H } = param;
375
+ return /* @__PURE__ */ t("div", {
376
+ className: De,
377
+ children: H
378
+ });
379
+ }
380
+ })) : O(/* @__PURE__ */ t(n, {
381
+ disabled: u,
382
+ name: l,
383
+ checked: Z,
384
+ "aria-label": R,
385
+ "aria-labelledby": r,
386
+ onChange: _,
387
+ render: (param)=>{
388
+ let { controlElement: H, labelId: ue } = param;
389
+ return /* @__PURE__ */ t(i, {
552
390
  paddingX: 16,
553
- children: v({
554
- labelId: r,
555
- type: "control",
556
- right: ()=>/* @__PURE__ */ t(X, {
557
- space: "around",
558
- children: g
559
- })
391
+ role: s,
392
+ children: I({
393
+ labelId: ue,
394
+ control: /* @__PURE__ */ t(N, {
395
+ space: "around",
396
+ children: H
397
+ })
560
398
  })
561
399
  });
562
400
  }
401
+ }), !0);
402
+ }
403
+ return e.radioValue ? S ? M(/* @__PURE__ */ t(te, {
404
+ value: e.radioValue,
405
+ "aria-label": R,
406
+ "aria-labelledby": r,
407
+ render: (param)=>{
408
+ let { controlElement: n } = param;
409
+ return /* @__PURE__ */ t(N, {
410
+ space: "around",
411
+ children: /* @__PURE__ */ t(i, {
412
+ paddingX: 16,
413
+ children: n
414
+ })
415
+ });
416
+ }
417
+ })) : O(/* @__PURE__ */ t(te, {
418
+ value: e.radioValue,
419
+ "aria-label": R,
420
+ "aria-labelledby": r,
421
+ render: (param)=>{
422
+ let { controlElement: n } = param;
423
+ return /* @__PURE__ */ t(i, {
424
+ paddingX: 16,
425
+ role: s,
426
+ children: I({
427
+ labelId: r,
428
+ control: /* @__PURE__ */ t(N, {
429
+ space: "around",
430
+ children: n
431
+ })
432
+ })
433
+ });
434
+ }
435
+ }), !0) : e.iconButton ? S ? M(/* @__PURE__ */ t(i, {
436
+ padding: 16,
437
+ children: /* @__PURE__ */ t(N, {
438
+ space: "around",
439
+ children: e.iconButton.Icon ? /* @__PURE__ */ t(re, _object_spread_props(_object_spread({}, e.iconButton), {
440
+ disabled: e.disabled
441
+ })) : /* @__PURE__ */ t(ne, _object_spread_props(_object_spread({}, e.iconButton), {
442
+ disabled: e.disabled
443
+ }))
563
444
  })
564
- }) : /* @__PURE__ */ t(c, {
445
+ })) : O(/* @__PURE__ */ t(i, {
565
446
  paddingX: 16,
566
- className: T,
567
- role: s,
568
- dataAttributes: m,
569
- children: e.right ? v({
570
- type: "custom",
571
- right: e.right
572
- }) : v({
573
- type: "basic"
447
+ children: I({
448
+ labelId: r,
449
+ control: /* @__PURE__ */ t(N, {
450
+ space: "around",
451
+ children: e.iconButton.Icon ? /* @__PURE__ */ t(re, _object_spread_props(_object_spread({}, e.iconButton), {
452
+ disabled: e.disabled,
453
+ role: s
454
+ })) : /* @__PURE__ */ t(ne, _object_spread_props(_object_spread({}, e.iconButton), {
455
+ disabled: e.disabled,
456
+ role: s
457
+ }))
458
+ })
574
459
  })
460
+ })) : /* @__PURE__ */ t(i, {
461
+ paddingX: 16,
462
+ className: Y,
463
+ role: s,
464
+ dataAttributes: v,
465
+ ref: a,
466
+ children: I()
575
467
  });
576
- }), ct = /*#__PURE__*/ I.forwardRef((_param, l)=>{
577
- var { dataAttributes: e, role: n = "listitem" } = _param, r = _object_without_properties(_param, [
468
+ }), ht = /*#__PURE__*/ x.forwardRef((_param, o)=>{
469
+ var { dataAttributes: e, role: a = "listitem" } = _param, r = _object_without_properties(_param, [
578
470
  "dataAttributes",
579
471
  "role"
580
472
  ]);
581
473
  return /* @__PURE__ */ t("div", {
582
- role: n,
583
- className: Se({
474
+ role: a,
475
+ className: Me({
584
476
  width: "100%"
585
477
  }),
586
- children: /* @__PURE__ */ t(de, _object_spread_props(_object_spread({}, r), {
587
- ref: l,
478
+ children: /* @__PURE__ */ t(oe, _object_spread_props(_object_spread({}, r), {
479
+ ref: o,
588
480
  dataAttributes: _object_spread({
589
481
  "component-name": "Row"
590
482
  }, e)
591
483
  }))
592
484
  });
593
- }), lt = (param)=>{
594
- let { children: e, ariaLabelledby: n, role: r = "list", dataAttributes: l } = param;
595
- const h = I.Children.toArray(e).filter(Boolean), P = h.length - 1;
485
+ }), mt = (param)=>{
486
+ let { children: e, ariaLabelledby: a, role: r = "list", dataAttributes: o } = param;
487
+ const c = x.Children.toArray(e).filter(Boolean), g = c.length - 1;
596
488
  return /* @__PURE__ */ t("div", _object_spread_props(_object_spread({
597
489
  role: r,
598
- "aria-labelledby": n
599
- }, we(l, "RowList")), {
600
- children: h.map((b, x)=>/* @__PURE__ */ L(I.Fragment, {
490
+ "aria-labelledby": a
491
+ }, J(o, "RowList")), {
492
+ children: c.map((y, f)=>/* @__PURE__ */ V(x.Fragment, {
601
493
  children: [
602
- b,
603
- x < P && /* @__PURE__ */ t(c, {
494
+ y,
495
+ f < g && /* @__PURE__ */ t(i, {
604
496
  paddingX: 16,
605
- children: /* @__PURE__ */ t(Ne, {})
497
+ children: /* @__PURE__ */ t(Ie, {})
606
498
  })
607
499
  ]
608
- }, x))
500
+ }, f))
609
501
  }));
610
- }, dt = /*#__PURE__*/ I.forwardRef((_param, r)=>{
611
- var { dataAttributes: e } = _param, n = _object_without_properties(_param, [
502
+ }, ut = /*#__PURE__*/ x.forwardRef((_param, r)=>{
503
+ var { dataAttributes: e } = _param, a = _object_without_properties(_param, [
612
504
  "dataAttributes"
613
505
  ]);
614
- return /* @__PURE__ */ t(ye, {
615
- isInverse: n.isInverse,
506
+ return /* @__PURE__ */ t(Re, {
507
+ isInverse: a.isInverse,
616
508
  ref: r,
617
509
  dataAttributes: _object_spread({
618
510
  "component-name": "BoxedRow"
619
511
  }, e),
620
- children: /* @__PURE__ */ t(de, _object_spread({}, n))
512
+ children: /* @__PURE__ */ t(oe, _object_spread({}, a))
621
513
  });
622
- }), st = (param)=>{
623
- let { children: e, ariaLabelledby: n, role: r = "list", dataAttributes: l } = param;
624
- return /* @__PURE__ */ t(X, {
514
+ }), ft = (param)=>{
515
+ let { children: e, ariaLabelledby: a, role: r = "list", dataAttributes: o } = param;
516
+ return /* @__PURE__ */ t(N, {
625
517
  space: 16,
626
518
  role: r,
627
- "aria-labelledby": n,
519
+ "aria-labelledby": a,
628
520
  dataAttributes: _object_spread({
629
521
  "component-name": "BoxedRowList"
630
- }, l),
522
+ }, o),
631
523
  children: e
632
524
  });
633
525
  };
634
- export { dt as BoxedRow, st as BoxedRowList, Ve as Content, ct as Row, lt as RowList };
526
+ export { ut as BoxedRow, ft as BoxedRowList, He as Content, ht as Row, mt as RowList };