@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.
@@ -76,6 +76,7 @@ interface BaseProps {
76
76
  bleedLeft?: boolean;
77
77
  bleedRight?: boolean;
78
78
  bleedY?: boolean;
79
+ role?: string;
79
80
  }
80
81
  interface IconButtonBaseProps {
81
82
  Icon: React.FC<IconProps>;
@@ -230,6 +231,7 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
230
231
  bleedLeft?: boolean | undefined;
231
232
  bleedRight?: boolean | undefined;
232
233
  bleedY?: boolean | undefined;
234
+ role?: string | undefined;
233
235
  Icon: React.FC<IconProps>;
234
236
  type?: IconButtonType | undefined;
235
237
  backgroundType?: IconButtonBackgroundType | undefined;
@@ -243,7 +245,6 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
243
245
  loadOnTop?: undefined;
244
246
  onNavigate?: undefined;
245
247
  fullPageOnWebView?: undefined;
246
- role?: string | undefined;
247
248
  isOverMedia?: boolean | undefined;
248
249
  hasOverlay?: boolean | undefined;
249
250
  backgroundColor?: undefined;
@@ -263,6 +264,7 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
263
264
  bleedLeft?: boolean | undefined;
264
265
  bleedRight?: boolean | undefined;
265
266
  bleedY?: boolean | undefined;
267
+ role?: string | undefined;
266
268
  Icon: React.FC<IconProps>;
267
269
  type?: IconButtonType | undefined;
268
270
  backgroundType?: IconButtonBackgroundType | undefined;
@@ -276,7 +278,6 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
276
278
  loadOnTop?: undefined;
277
279
  onNavigate?: undefined;
278
280
  fullPageOnWebView?: undefined;
279
- role?: string | undefined;
280
281
  isOverMedia?: boolean | undefined;
281
282
  hasOverlay?: boolean | undefined;
282
283
  backgroundColor?: undefined;
@@ -297,6 +298,7 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
297
298
  bleedLeft?: boolean | undefined;
298
299
  bleedRight?: boolean | undefined;
299
300
  bleedY?: boolean | undefined;
301
+ role?: string | undefined;
300
302
  Icon: React.FC<IconProps>;
301
303
  type?: IconButtonType | undefined;
302
304
  backgroundType?: IconButtonBackgroundType | undefined;
@@ -309,7 +311,6 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
309
311
  loadOnTop?: undefined;
310
312
  onNavigate?: undefined;
311
313
  fullPageOnWebView?: undefined;
312
- role?: string | undefined;
313
314
  isOverMedia?: boolean | undefined;
314
315
  hasOverlay?: boolean | undefined;
315
316
  backgroundColor?: undefined;
@@ -330,6 +331,7 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
330
331
  bleedLeft?: boolean | undefined;
331
332
  bleedRight?: boolean | undefined;
332
333
  bleedY?: boolean | undefined;
334
+ role?: string | undefined;
333
335
  Icon: React.FC<IconProps>;
334
336
  type?: IconButtonType | undefined;
335
337
  backgroundType?: IconButtonBackgroundType | undefined;
@@ -342,7 +344,6 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
342
344
  loadOnTop?: undefined;
343
345
  onNavigate?: undefined;
344
346
  fullPageOnWebView?: undefined;
345
- role?: string | undefined;
346
347
  isOverMedia?: boolean | undefined;
347
348
  hasOverlay?: boolean | undefined;
348
349
  backgroundColor?: undefined;
@@ -366,6 +367,7 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
366
367
  bleedLeft?: boolean | undefined;
367
368
  bleedRight?: boolean | undefined;
368
369
  bleedY?: boolean | undefined;
370
+ role?: string | undefined;
369
371
  Icon: React.FC<IconProps>;
370
372
  type?: IconButtonType | undefined;
371
373
  backgroundType?: IconButtonBackgroundType | undefined;
@@ -375,7 +377,6 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
375
377
  to?: undefined;
376
378
  onPress?: undefined;
377
379
  fullPageOnWebView?: undefined;
378
- role?: string | undefined;
379
380
  isOverMedia?: boolean | undefined;
380
381
  hasOverlay?: boolean | undefined;
381
382
  backgroundColor?: undefined;
@@ -399,6 +400,7 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
399
400
  bleedLeft?: boolean | undefined;
400
401
  bleedRight?: boolean | undefined;
401
402
  bleedY?: boolean | undefined;
403
+ role?: string | undefined;
402
404
  Icon: React.FC<IconProps>;
403
405
  type?: IconButtonType | undefined;
404
406
  backgroundType?: IconButtonBackgroundType | undefined;
@@ -408,7 +410,6 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
408
410
  to?: undefined;
409
411
  onPress?: undefined;
410
412
  fullPageOnWebView?: undefined;
411
- role?: string | undefined;
412
413
  isOverMedia?: boolean | undefined;
413
414
  hasOverlay?: boolean | undefined;
414
415
  backgroundColor?: undefined;
@@ -432,6 +433,7 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
432
433
  bleedLeft?: boolean | undefined;
433
434
  bleedRight?: boolean | undefined;
434
435
  bleedY?: boolean | undefined;
436
+ role?: string | undefined;
435
437
  Icon: React.FC<IconProps>;
436
438
  type?: IconButtonType | undefined;
437
439
  backgroundType?: IconButtonBackgroundType | undefined;
@@ -441,7 +443,6 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
441
443
  onPress?: undefined;
442
444
  newTab?: undefined;
443
445
  loadOnTop?: undefined;
444
- role?: string | undefined;
445
446
  isOverMedia?: boolean | undefined;
446
447
  hasOverlay?: boolean | undefined;
447
448
  backgroundColor?: undefined;
@@ -465,6 +466,7 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
465
466
  bleedLeft?: boolean | undefined;
466
467
  bleedRight?: boolean | undefined;
467
468
  bleedY?: boolean | undefined;
469
+ role?: string | undefined;
468
470
  Icon: React.FC<IconProps>;
469
471
  type?: IconButtonType | undefined;
470
472
  backgroundType?: IconButtonBackgroundType | undefined;
@@ -474,7 +476,6 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
474
476
  onPress?: undefined;
475
477
  newTab?: undefined;
476
478
  loadOnTop?: undefined;
477
- role?: string | undefined;
478
479
  isOverMedia?: boolean | undefined;
479
480
  hasOverlay?: boolean | undefined;
480
481
  backgroundColor?: undefined;
@@ -619,6 +620,7 @@ export declare const IconButton: React.ForwardRefExoticComponent<({
619
620
  bleedLeft?: boolean | undefined;
620
621
  bleedRight?: boolean | undefined;
621
622
  bleedY?: boolean | undefined;
623
+ role?: string | undefined;
622
624
  Icon: React.FC<IconProps>;
623
625
  type?: IconButtonType | undefined;
624
626
  backgroundType?: IconButtonBackgroundType | undefined;
@@ -632,7 +634,6 @@ export declare const IconButton: React.ForwardRefExoticComponent<({
632
634
  loadOnTop?: undefined;
633
635
  onNavigate?: undefined;
634
636
  fullPageOnWebView?: undefined;
635
- role?: string | undefined;
636
637
  backgroundColor?: undefined;
637
638
  size?: undefined;
638
639
  style?: undefined;
@@ -650,6 +651,7 @@ export declare const IconButton: React.ForwardRefExoticComponent<({
650
651
  bleedLeft?: boolean | undefined;
651
652
  bleedRight?: boolean | undefined;
652
653
  bleedY?: boolean | undefined;
654
+ role?: string | undefined;
653
655
  Icon: React.FC<IconProps>;
654
656
  type?: IconButtonType | undefined;
655
657
  backgroundType?: IconButtonBackgroundType | undefined;
@@ -663,7 +665,6 @@ export declare const IconButton: React.ForwardRefExoticComponent<({
663
665
  loadOnTop?: undefined;
664
666
  onNavigate?: undefined;
665
667
  fullPageOnWebView?: undefined;
666
- role?: string | undefined;
667
668
  backgroundColor?: undefined;
668
669
  size?: undefined;
669
670
  style?: undefined;
@@ -682,6 +683,7 @@ export declare const IconButton: React.ForwardRefExoticComponent<({
682
683
  bleedLeft?: boolean | undefined;
683
684
  bleedRight?: boolean | undefined;
684
685
  bleedY?: boolean | undefined;
686
+ role?: string | undefined;
685
687
  Icon: React.FC<IconProps>;
686
688
  type?: IconButtonType | undefined;
687
689
  backgroundType?: IconButtonBackgroundType | undefined;
@@ -694,7 +696,6 @@ export declare const IconButton: React.ForwardRefExoticComponent<({
694
696
  loadOnTop?: undefined;
695
697
  onNavigate?: undefined;
696
698
  fullPageOnWebView?: undefined;
697
- role?: string | undefined;
698
699
  backgroundColor?: undefined;
699
700
  size?: undefined;
700
701
  style?: undefined;
@@ -713,6 +714,7 @@ export declare const IconButton: React.ForwardRefExoticComponent<({
713
714
  bleedLeft?: boolean | undefined;
714
715
  bleedRight?: boolean | undefined;
715
716
  bleedY?: boolean | undefined;
717
+ role?: string | undefined;
716
718
  Icon: React.FC<IconProps>;
717
719
  type?: IconButtonType | undefined;
718
720
  backgroundType?: IconButtonBackgroundType | undefined;
@@ -725,7 +727,6 @@ export declare const IconButton: React.ForwardRefExoticComponent<({
725
727
  loadOnTop?: undefined;
726
728
  onNavigate?: undefined;
727
729
  fullPageOnWebView?: undefined;
728
- role?: string | undefined;
729
730
  backgroundColor?: undefined;
730
731
  size?: undefined;
731
732
  style?: undefined;
@@ -747,6 +748,7 @@ export declare const IconButton: React.ForwardRefExoticComponent<({
747
748
  bleedLeft?: boolean | undefined;
748
749
  bleedRight?: boolean | undefined;
749
750
  bleedY?: boolean | undefined;
751
+ role?: string | undefined;
750
752
  Icon: React.FC<IconProps>;
751
753
  type?: IconButtonType | undefined;
752
754
  backgroundType?: IconButtonBackgroundType | undefined;
@@ -756,7 +758,6 @@ export declare const IconButton: React.ForwardRefExoticComponent<({
756
758
  to?: undefined;
757
759
  onPress?: undefined;
758
760
  fullPageOnWebView?: undefined;
759
- role?: string | undefined;
760
761
  backgroundColor?: undefined;
761
762
  size?: undefined;
762
763
  style?: undefined;
@@ -778,6 +779,7 @@ export declare const IconButton: React.ForwardRefExoticComponent<({
778
779
  bleedLeft?: boolean | undefined;
779
780
  bleedRight?: boolean | undefined;
780
781
  bleedY?: boolean | undefined;
782
+ role?: string | undefined;
781
783
  Icon: React.FC<IconProps>;
782
784
  type?: IconButtonType | undefined;
783
785
  backgroundType?: IconButtonBackgroundType | undefined;
@@ -787,7 +789,6 @@ export declare const IconButton: React.ForwardRefExoticComponent<({
787
789
  to?: undefined;
788
790
  onPress?: undefined;
789
791
  fullPageOnWebView?: undefined;
790
- role?: string | undefined;
791
792
  backgroundColor?: undefined;
792
793
  size?: undefined;
793
794
  style?: undefined;
@@ -809,6 +810,7 @@ export declare const IconButton: React.ForwardRefExoticComponent<({
809
810
  bleedLeft?: boolean | undefined;
810
811
  bleedRight?: boolean | undefined;
811
812
  bleedY?: boolean | undefined;
813
+ role?: string | undefined;
812
814
  Icon: React.FC<IconProps>;
813
815
  type?: IconButtonType | undefined;
814
816
  backgroundType?: IconButtonBackgroundType | undefined;
@@ -818,7 +820,6 @@ export declare const IconButton: React.ForwardRefExoticComponent<({
818
820
  onPress?: undefined;
819
821
  newTab?: undefined;
820
822
  loadOnTop?: undefined;
821
- role?: string | undefined;
822
823
  backgroundColor?: undefined;
823
824
  size?: undefined;
824
825
  style?: undefined;
@@ -840,6 +841,7 @@ export declare const IconButton: React.ForwardRefExoticComponent<({
840
841
  bleedLeft?: boolean | undefined;
841
842
  bleedRight?: boolean | undefined;
842
843
  bleedY?: boolean | undefined;
844
+ role?: string | undefined;
843
845
  Icon: React.FC<IconProps>;
844
846
  type?: IconButtonType | undefined;
845
847
  backgroundType?: IconButtonBackgroundType | undefined;
@@ -849,7 +851,6 @@ export declare const IconButton: React.ForwardRefExoticComponent<({
849
851
  onPress?: undefined;
850
852
  newTab?: undefined;
851
853
  loadOnTop?: undefined;
852
- role?: string | undefined;
853
854
  backgroundColor?: undefined;
854
855
  size?: undefined;
855
856
  style?: undefined;
@@ -11,22 +11,22 @@ function _export(target, all) {
11
11
  }
12
12
  _export(exports, {
13
13
  IconButton: function() {
14
- return de;
14
+ return ue;
15
15
  },
16
16
  InternalIconButton: function() {
17
- return ne;
17
+ return re;
18
18
  },
19
19
  InternalToggleIconButton: function() {
20
- return re;
20
+ return oe;
21
21
  },
22
22
  RawDeprecatedIconButton: function() {
23
- return te;
23
+ return ne;
24
24
  },
25
25
  RawIconButton: function() {
26
- return P;
26
+ return T;
27
27
  },
28
28
  ToggleIconButton: function() {
29
- return ue;
29
+ return me;
30
30
  }
31
31
  });
32
32
  const _jsxruntime = require("react/jsx-runtime");
@@ -161,8 +161,8 @@ function _object_without_properties_loose(source, excluded) {
161
161
  }
162
162
  return target;
163
163
  }
164
- const U = 24, ee = (e, t, i, r, n)=>{
165
- const c = r ? `${r}px ${r}px` : "100% 100%";
164
+ const ee = 24, te = (e, t, i, o, n)=>{
165
+ const c = o ? `${o}px ${o}px` : "100% 100%";
166
166
  return {
167
167
  padding: 0,
168
168
  backgroundColor: i,
@@ -174,8 +174,8 @@ const U = 24, ee = (e, t, i, r, n)=>{
174
174
  verticalAlign: "middle",
175
175
  textAlign: "center"
176
176
  };
177
- }, te = /*#__PURE__*/ _react.forwardRef((e, t)=>{
178
- const { icon: i, children: r } = e, n = _object_without_properties(e, [
177
+ }, ne = /*#__PURE__*/ _react.forwardRef((e, t)=>{
178
+ const { icon: i, children: o } = e, n = _object_without_properties(e, [
179
179
  "icon",
180
180
  "children"
181
181
  ]);
@@ -187,12 +187,13 @@ const U = 24, ee = (e, t, i, r, n)=>{
187
187
  dataAttributes: _object_spread({
188
188
  "component-name": "IconButton"
189
189
  }, e.dataAttributes),
190
- children: !i && _react.Children.only(r)
190
+ children: !i && _react.Children.only(o)
191
191
  }));
192
- }), P = /*#__PURE__*/ _react.forwardRef((_param, A)=>{
193
- var { disabled: e, trackingEvent: t, dataAttributes: i, type: r = "neutral", backgroundType: n = "transparent", isOverMedia: c, hasOverlay: S = !0, "aria-label": B, "aria-labelledby": m, small: f, Icon: R, bleedLeft: u, bleedRight: d, bleedY: v, showSpinner: T } = _param, b = _object_without_properties(_param, [
192
+ }), T = /*#__PURE__*/ _react.forwardRef((_param, x)=>{
193
+ var { disabled: e, trackingEvent: t, role: i, dataAttributes: o, type: n = "neutral", backgroundType: c = "transparent", isOverMedia: S, hasOverlay: B = !0, "aria-label": u, "aria-labelledby": m, small: R, Icon: f, bleedLeft: d, bleedRight: v, bleedY: h, showSpinner: A } = _param, b = _object_without_properties(_param, [
194
194
  "disabled",
195
195
  "trackingEvent",
196
+ "role",
196
197
  "dataAttributes",
197
198
  "type",
198
199
  "backgroundType",
@@ -207,42 +208,43 @@ const U = 24, ee = (e, t, i, r, n)=>{
207
208
  "bleedY",
208
209
  "showSpinner"
209
210
  ]);
210
- const x = (0, _themevariantcontext.useThemeVariant)(), [z, h] = _react.useState(!1), a = T || z, [I, p] = _react.useState(!!a);
211
+ const z = (0, _themevariantcontext.useThemeVariant)(), [k, p] = _react.useState(!1), a = A || k, [I, y] = _react.useState(!!a);
211
212
  _react.useEffect(()=>{
212
- a && !I && p(!0);
213
+ a && !I && y(!0);
213
214
  }, [
214
215
  a,
215
216
  I
216
217
  ]);
217
- const l = f ? "small" : "default", k = c ? `${r}-media` : `${r}-${n}-${x}`, O = {
218
+ const l = R ? "small" : "default", O = S ? `${n}-media` : `${n}-${c}-${z}`, E = {
218
219
  disabled: e || a,
219
- ref: A,
220
+ ref: x,
220
221
  trackingEvent: t,
221
- "aria-label": B,
222
+ role: i,
223
+ "aria-label": u,
222
224
  "aria-labelledby": m,
223
225
  dataAttributes: _object_spread({
224
226
  "component-name": "IconButton"
225
- }, i),
226
- className: (0, _classnames.default)(_iconbuttoncssmistica.buttonContainer[l], _iconbuttoncssmistica.iconButtonTokens[k], _iconbuttoncssmistica.minimumInteractiveArea, {
227
+ }, o),
228
+ className: (0, _classnames.default)(_iconbuttoncssmistica.buttonContainer[l], _iconbuttoncssmistica.iconButtonTokens[O], _iconbuttoncssmistica.minimumInteractiveArea, {
227
229
  [_iconbuttoncssmistica.disabled]: e,
228
230
  [_iconbuttoncssmistica.overlayContainer]: !e && !a,
229
- [_iconbuttoncssmistica.bleedLeft[l]]: u,
230
- [_iconbuttoncssmistica.bleedRight[l]]: d,
231
- [_iconbuttoncssmistica.bleedY[l]]: v
231
+ [_iconbuttoncssmistica.bleedLeft[l]]: d,
232
+ [_iconbuttoncssmistica.bleedRight[l]]: v,
233
+ [_iconbuttoncssmistica.bleedY[l]]: h
232
234
  }),
233
- resetMargin: !u && !d && !v
234
- }, E = /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
235
+ resetMargin: !d && !v && !h
236
+ }, j = /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
235
237
  className: (0, _classnames.default)(_iconbuttoncssmistica.iconContainer[l], {
236
238
  [_iconbuttoncssmistica.isLoading]: a
237
239
  }),
238
240
  children: [
239
- S && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
241
+ B && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
240
242
  className: _iconbuttoncssmistica.overlay
241
243
  }),
242
244
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
243
245
  "aria-hidden": a ? !0 : void 0,
244
246
  className: _iconbuttoncssmistica.icon,
245
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(R, {
247
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(f, {
246
248
  size: _iconbuttoncssmistica.iconSize[l],
247
249
  color: "currentColor"
248
250
  })
@@ -251,7 +253,7 @@ const U = 24, ee = (e, t, i, r, n)=>{
251
253
  "aria-hidden": a ? void 0 : !0,
252
254
  className: _iconbuttoncssmistica.spinner,
253
255
  onTransitionEnd: ()=>{
254
- a !== I && p(a);
256
+ a !== I && y(a);
255
257
  },
256
258
  children: I && /* @__PURE__ */ (0, _jsxruntime.jsx)(_spinner.default, {
257
259
  size: _iconbuttoncssmistica.iconSize[l],
@@ -262,31 +264,31 @@ const U = 24, ee = (e, t, i, r, n)=>{
262
264
  ]
263
265
  });
264
266
  if (b.onPress) {
265
- const j = b.onPress;
266
- b.onPress = (L)=>{
267
- const y = j(L);
268
- y && (h(!0), y.finally(()=>h(!1)));
267
+ const L = b.onPress;
268
+ b.onPress = (V)=>{
269
+ const w = L(V);
270
+ w && (p(!0), w.finally(()=>p(!1)));
269
271
  };
270
272
  }
271
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({}, O, b), {
273
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({}, E, b), {
272
274
  maybe: !0,
273
- children: E
275
+ children: j
274
276
  }));
275
- }), ne = /*#__PURE__*/ _react.forwardRef((e, t)=>{
276
- if (e.Icon) return /* @__PURE__ */ (0, _jsxruntime.jsx)(P, _object_spread({
277
+ }), re = /*#__PURE__*/ _react.forwardRef((e, t)=>{
278
+ if (e.Icon) return /* @__PURE__ */ (0, _jsxruntime.jsx)(T, _object_spread({
277
279
  ref: t
278
280
  }, e));
279
- const { icon: i, backgroundColor: r = "transparent", iconSize: n, size: c = U } = e;
280
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(te, _object_spread_props(_object_spread({
281
+ const { icon: i, backgroundColor: o = "transparent", iconSize: n, size: c = ee } = e;
282
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(ne, _object_spread_props(_object_spread({
281
283
  ref: t
282
284
  }, e), {
283
285
  className: (0, _classnames.default)(_iconbuttoncssmistica.deprecatedIconButtonBase, e.className),
284
- style: _object_spread({}, ee(i, c, r, n, e.disabled), e.style)
286
+ style: _object_spread({}, te(i, c, o, n, e.disabled), e.style)
285
287
  }));
286
- }), de = /*#__PURE__*/ _react.forwardRef((e, t)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(ne, _object_spread({
288
+ }), ue = /*#__PURE__*/ _react.forwardRef((e, t)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(re, _object_spread({
287
289
  ref: t
288
- }, e))), re = /*#__PURE__*/ _react.forwardRef((_param, B)=>{
289
- var { checked: e, defaultChecked: t, checkedProps: i, uncheckedProps: r, onChange: n, dataAttributes: c } = _param, S = _object_without_properties(_param, [
290
+ }, e))), oe = /*#__PURE__*/ _react.forwardRef((_param, B)=>{
291
+ var { checked: e, defaultChecked: t, checkedProps: i, uncheckedProps: o, onChange: n, dataAttributes: c } = _param, S = _object_without_properties(_param, [
290
292
  "checked",
291
293
  "defaultChecked",
292
294
  "checkedProps",
@@ -294,21 +296,21 @@ const U = 24, ee = (e, t, i, r, n)=>{
294
296
  "onChange",
295
297
  "dataAttributes"
296
298
  ]);
297
- const [m, f] = _react.useState(!!t), R = ()=>{
299
+ const [u, m] = _react.useState(!!t), R = ()=>{
298
300
  if (e === void 0) {
299
- const u = n == null ? void 0 : n(!m);
300
- if (u) return u.then(()=>f((d)=>!d)).catch(()=>{});
301
- f((d)=>!d);
301
+ const f = n == null ? void 0 : n(!u);
302
+ if (f) return f.then(()=>m((d)=>!d)).catch(()=>{});
303
+ m((d)=>!d);
302
304
  } else return n == null ? void 0 : n(!e);
303
305
  };
304
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(P, _object_spread_props(_object_spread({
306
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(T, _object_spread_props(_object_spread({
305
307
  ref: B
306
- }, S, (e !== null && e !== void 0 ? e : m) ? i : r), {
308
+ }, S, (e !== null && e !== void 0 ? e : u) ? i : o), {
307
309
  dataAttributes: _object_spread({
308
310
  "component-name": "ToggleIconButton"
309
311
  }, c),
310
312
  onPress: R
311
313
  }));
312
- }), ue = /*#__PURE__*/ _react.forwardRef((e, t)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(re, _object_spread({
314
+ }), me = /*#__PURE__*/ _react.forwardRef((e, t)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(oe, _object_spread({
313
315
  ref: t
314
316
  }, e)));
@@ -31,31 +31,31 @@ _export(exports, {
31
31
  return t;
32
32
  },
33
33
  dualActionContainer: function() {
34
- return o;
34
+ return h;
35
35
  },
36
36
  dualActionDivider: function() {
37
- return e;
37
+ return o;
38
38
  },
39
39
  dualActionLeft: function() {
40
- return h;
40
+ return e;
41
41
  },
42
42
  dualActionRight: function() {
43
- return d;
43
+ return b;
44
44
  },
45
45
  pointer: function() {
46
- return b;
46
+ return d;
47
47
  },
48
- right: function() {
49
- return u;
48
+ rightContent: function() {
49
+ return k;
50
50
  },
51
51
  rightRestrictedWidth: function() {
52
- return g;
52
+ return u;
53
53
  },
54
54
  rowBody: function() {
55
- return c;
55
+ return g;
56
56
  },
57
57
  rowContent: function() {
58
- return k;
58
+ return c;
59
59
  },
60
60
  touchableBackground: function() {
61
61
  return j;
@@ -66,4 +66,4 @@ _export(exports, {
66
66
  });
67
67
  require("./sprinkles.css.ts.vanilla.css-mistica.js");
68
68
  require("./list.css.ts.vanilla.css-mistica.js");
69
- var _ = "_1y2v1nfhk _1y2v1nfi2 _1y2v1nfi4", f = "_1y2v1nfht _1y2v1nfja _1y2v1nfio _1y2v1nfi2", y = "_1y2v1nfhk _1y2v1nfhz", a = "_1y2v1nfhk _1y2v1nfi7 _1y2v1nfjx", r = "_2buj9gf", i = "_2buj9ge", t = "_2buj9g0", o = "_1y2v1nfhk _1y2v1nfhp _1y2v1nfio", e = "_2buj9gm _1y2v1nfhk", h = "_1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfk2 _1y2v1nf7c _1y2v1nfaa _1y2v1nfbj _1y2v1nfhm _1y2v1nfi5", d = "_2buj9go _1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfk2 _1y2v1nf7c _1y2v1nfaa _1y2v1nfbj _1y2v1nfhk _1y2v1nfhz _1y2v1nfi4 _1y2v1nfi8 _1y2v1nfio", b = "_1y2v1nfkk", u = "_2buj9gc", g = "_2buj9gd", c = "_1y2v1nfhk _1y2v1nfhq _1y2v1nfi6", k = "_1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfi7 _1y2v1nfk2 _1y2v1nf7c _1y2v1nfhm _1y2v1nfio", j = "_2buj9g1", l = "_2buj9g2";
69
+ var _ = "_1y2v1nfhk _1y2v1nfi2 _1y2v1nfi4", f = "_1y2v1nfhk _1y2v1nfhz _1y2v1nfht _1y2v1nfja _1y2v1nfio _1y2v1nfi2", y = "_1y2v1nfhk _1y2v1nfhz", a = "_1y2v1nfhk _1y2v1nfi7 _1y2v1nfjx", r = "_2buj9ge _1y2v1nfhk _1y2v1nfhz", i = "_2buj9gd", t = "_2buj9g0", h = "_1y2v1nfhk _1y2v1nfhp _1y2v1nfio", o = "_2buj9gk _1y2v1nfhk", e = "_1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfk2 _1y2v1nf7c _1y2v1nfaa _1y2v1nfbj _1y2v1nfhm _1y2v1nfi5", b = "_2buj9gm _1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfk2 _1y2v1nf7c _1y2v1nfaa _1y2v1nfbj _1y2v1nfhk _1y2v1nfhz _1y2v1nfi4 _1y2v1nfi8 _1y2v1nfio", d = "_1y2v1nfkk", k = "_2buj9gb", u = "_2buj9gc", g = "_1y2v1nfhk _1y2v1nfhq _1y2v1nfi6", c = "_1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfi7 _1y2v1nfk2 _1y2v1nf7c _1y2v1nfhm _1y2v1nfio", j = "_2buj9g1", l = "_2buj9g2";
@@ -8,12 +8,10 @@ export declare const asset: string;
8
8
  export declare const rowBody: string;
9
9
  export declare const center: string;
10
10
  export declare const badge: string;
11
- export declare const control: string;
12
- export declare const right: string;
11
+ export declare const rightContent: string;
13
12
  export declare const rightRestrictedWidth: string;
14
13
  export declare const detailRight: string;
15
14
  export declare const detail: string;
16
- export declare const centeredControl: string;
17
15
  export declare const dualActionContainer: string;
18
16
  export declare const dualActionLeft: string;
19
17
  export declare const dualActionDivider: string;
package/dist/list.d.ts CHANGED
@@ -3,6 +3,9 @@ import type { IconButtonProps, ToggleIconButtonProps } from './icon-button';
3
3
  import type { TouchableElement } from './touchable';
4
4
  import type { DataAttributes, TrackingEvent } from './utils/types';
5
5
  import type { ExclusifyUnion } from './utils/utility-types';
6
+ type Right = (({ centerY }: {
7
+ centerY: boolean;
8
+ }) => React.ReactNode) | React.ReactNode;
6
9
  interface CommonProps {
7
10
  children?: void;
8
11
  headline?: string | React.ReactNode;
@@ -22,17 +25,13 @@ interface CommonProps {
22
25
  disabled?: boolean;
23
26
  withChevron?: boolean;
24
27
  'aria-label'?: string;
25
- }
26
- type Right = (({ centerY }: {
27
- centerY: boolean;
28
- }) => React.ReactNode) | React.ReactNode;
29
- interface ContentProps extends CommonProps {
30
- isClickable?: boolean;
31
- type?: 'chevron' | 'basic' | 'custom' | 'control';
32
28
  right?: Right;
33
29
  danger?: boolean;
30
+ }
31
+ interface ContentProps extends CommonProps {
34
32
  headlineRef?: React.Ref<HTMLDivElement>;
35
33
  extraRef?: React.Ref<HTMLDivElement>;
34
+ control?: React.ReactNode;
36
35
  /** This id is to link the title with the related control */
37
36
  labelId?: string;
38
37
  }
@@ -43,9 +42,7 @@ type ControlProps = {
43
42
  defaultValue?: boolean;
44
43
  onChange?: (checked: boolean) => void;
45
44
  };
46
- interface BasicRowContentProps extends CommonProps {
47
- right?: Right;
48
- }
45
+ type BasicRowContentProps = CommonProps;
49
46
  interface SwitchRowContentProps extends CommonProps {
50
47
  onPress?: (() => void) | undefined;
51
48
  trackingEvent?: TrackingEvent | ReadonlyArray<TrackingEvent>;
@@ -72,7 +69,6 @@ interface HrefRowContentProps extends CommonProps {
72
69
  newTab?: boolean;
73
70
  loadOnTop?: boolean;
74
71
  onNavigate?: () => void | Promise<void>;
75
- right?: Right;
76
72
  }
77
73
  interface ToRowContentProps extends CommonProps {
78
74
  trackingEvent?: TrackingEvent | ReadonlyArray<TrackingEvent>;
@@ -80,16 +76,12 @@ interface ToRowContentProps extends CommonProps {
80
76
  fullPageOnWebView?: boolean;
81
77
  replace?: boolean;
82
78
  onNavigate?: () => void | Promise<void>;
83
- right?: Right;
84
79
  }
85
80
  interface OnPressRowContentProps extends CommonProps {
86
81
  trackingEvent?: TrackingEvent | ReadonlyArray<TrackingEvent>;
87
82
  onPress: (() => void) | undefined;
88
- right?: Right;
89
83
  }
90
- type RowContentProps = ExclusifyUnion<BasicRowContentProps | SwitchRowContentProps | RadioRowContentProps | IconButtonRowContentProps | CheckboxRowContentProps | HrefRowContentProps | ToRowContentProps | OnPressRowContentProps> & {
91
- danger?: boolean;
92
- };
84
+ type RowContentProps = ExclusifyUnion<BasicRowContentProps | SwitchRowContentProps | RadioRowContentProps | IconButtonRowContentProps | CheckboxRowContentProps | HrefRowContentProps | ToRowContentProps | OnPressRowContentProps>;
93
85
  export declare const Row: React.ForwardRefExoticComponent<RowContentProps & React.RefAttributes<TouchableElement>>;
94
86
  type RowListProps = {
95
87
  children: React.ReactNode;