@telefonica/mistica 16.1.0 → 16.2.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 (148) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/accordion.css-mistica.js +12 -9
  3. package/dist/accordion.css.d.ts +1 -0
  4. package/dist/accordion.js +36 -39
  5. package/dist/align.css-mistica.js +12 -0
  6. package/dist/align.css.d.ts +1 -0
  7. package/dist/align.css.ts.vanilla.css-mistica.js +11 -0
  8. package/dist/align.d.ts +12 -0
  9. package/dist/align.js +79 -0
  10. package/dist/box.css-mistica.js +41 -0
  11. package/dist/box.css.d.ts +23 -0
  12. package/dist/box.css.ts.vanilla.css-mistica.js +11 -0
  13. package/dist/box.d.ts +4 -0
  14. package/dist/box.js +39 -31
  15. package/dist/boxed.css-mistica.js +10 -5
  16. package/dist/boxed.css.d.ts +3 -0
  17. package/dist/boxed.js +20 -24
  18. package/dist/callout.css-mistica.js +12 -4
  19. package/dist/callout.css.d.ts +1 -0
  20. package/dist/callout.js +14 -22
  21. package/dist/card.css-mistica.js +26 -23
  22. package/dist/card.css.d.ts +1 -0
  23. package/dist/card.js +17 -23
  24. package/dist/community/advanced-data-card.css-mistica.js +32 -23
  25. package/dist/community/advanced-data-card.css.d.ts +3 -0
  26. package/dist/community/advanced-data-card.js +46 -55
  27. package/dist/empty-state.css-mistica.js +11 -8
  28. package/dist/empty-state.css.d.ts +1 -0
  29. package/dist/empty-state.js +10 -13
  30. package/dist/form.css-mistica.js +12 -0
  31. package/dist/form.css.d.ts +1 -0
  32. package/dist/form.js +8 -10
  33. package/dist/grid.css-mistica.js +143 -126
  34. package/dist/grid.css.d.ts +13 -0
  35. package/dist/grid.js +35 -38
  36. package/dist/hero.css-mistica.js +14 -8
  37. package/dist/hero.css.d.ts +2 -0
  38. package/dist/hero.js +17 -25
  39. package/dist/image.js +23 -25
  40. package/dist/index.d.ts +1 -0
  41. package/dist/index.js +4 -0
  42. package/dist/inline.js +10 -11
  43. package/dist/list.css-mistica.js +12 -9
  44. package/dist/list.css.d.ts +1 -0
  45. package/dist/list.js +43 -46
  46. package/dist/loading-screen.js +16 -16
  47. package/dist/logo-blau.d.ts +1 -1
  48. package/dist/logo-blau.js +10 -10
  49. package/dist/logo-common.d.ts +1 -0
  50. package/dist/logo-movistar.d.ts +1 -1
  51. package/dist/logo-movistar.js +4 -4
  52. package/dist/logo-o2-new.d.ts +1 -1
  53. package/dist/logo-o2-new.js +5 -5
  54. package/dist/logo-o2.d.ts +1 -1
  55. package/dist/logo-o2.js +5 -5
  56. package/dist/logo-telefonica.d.ts +1 -1
  57. package/dist/logo-telefonica.js +4 -4
  58. package/dist/logo-tu.d.ts +1 -1
  59. package/dist/logo-tu.js +5 -5
  60. package/dist/logo-vivo.d.ts +1 -1
  61. package/dist/logo-vivo.js +7 -7
  62. package/dist/logo.d.ts +9 -8
  63. package/dist/logo.js +125 -102
  64. package/dist/navigation-bar.css-mistica.js +23 -20
  65. package/dist/navigation-bar.css.d.ts +1 -0
  66. package/dist/navigation-bar.js +30 -37
  67. package/dist/package-version.js +1 -1
  68. package/dist/phone-number-field.d.ts +1 -4
  69. package/dist/phone-number-field.js +52 -82
  70. package/dist/popover.d.ts +1 -0
  71. package/dist/popover.js +9 -10
  72. package/dist/sheet-common.css-mistica.js +5 -5
  73. package/dist/skeleton-base.js +10 -12
  74. package/dist/skeletons.css-mistica.js +11 -5
  75. package/dist/skeletons.css.d.ts +1 -0
  76. package/dist/snackbar.css-mistica.js +20 -14
  77. package/dist/snackbar.css.d.ts +3 -1
  78. package/dist/snackbar.js +65 -75
  79. package/dist/tag.css-mistica.js +15 -4
  80. package/dist/tag.css.d.ts +2 -0
  81. package/dist/tag.js +20 -24
  82. package/dist/text-field-base.d.ts +1 -1
  83. package/dist/text-field-components.css-mistica.js +16 -10
  84. package/dist/text-field-components.css.d.ts +1 -0
  85. package/dist/text-field-components.js +32 -35
  86. package/dist/timer.js +42 -43
  87. package/dist/tooltip.d.ts +3 -1
  88. package/dist/tooltip.js +106 -106
  89. package/dist/touchable.js +47 -42
  90. package/dist-es/accordion.css-mistica.js +3 -3
  91. package/dist-es/accordion.js +58 -61
  92. package/dist-es/align.css-mistica.js +3 -0
  93. package/dist-es/align.css.ts.vanilla.css-mistica.js +2 -0
  94. package/dist-es/align.js +70 -0
  95. package/dist-es/box.css-mistica.js +24 -0
  96. package/dist-es/box.css.ts.vanilla.css-mistica.js +2 -0
  97. package/dist-es/box.js +43 -35
  98. package/dist-es/boxed.css-mistica.js +5 -3
  99. package/dist-es/boxed.js +28 -32
  100. package/dist-es/callout.css-mistica.js +7 -2
  101. package/dist-es/callout.js +44 -52
  102. package/dist-es/card.css-mistica.js +4 -4
  103. package/dist-es/card.js +11 -17
  104. package/dist-es/community/advanced-data-card.css-mistica.js +7 -7
  105. package/dist-es/community/advanced-data-card.js +90 -99
  106. package/dist-es/empty-state.css-mistica.js +3 -3
  107. package/dist-es/empty-state.js +19 -22
  108. package/dist-es/form.css-mistica.js +3 -0
  109. package/dist-es/form.js +12 -14
  110. package/dist-es/grid.css-mistica.js +123 -112
  111. package/dist-es/grid.js +38 -41
  112. package/dist-es/hero.css-mistica.js +2 -2
  113. package/dist-es/hero.js +36 -44
  114. package/dist-es/image.js +28 -30
  115. package/dist-es/index.js +1844 -1843
  116. package/dist-es/inline.js +19 -20
  117. package/dist-es/list.css-mistica.js +2 -2
  118. package/dist-es/list.js +75 -78
  119. package/dist-es/loading-screen.js +30 -30
  120. package/dist-es/logo-blau.js +11 -11
  121. package/dist-es/logo-movistar.js +5 -5
  122. package/dist-es/logo-o2-new.js +8 -8
  123. package/dist-es/logo-o2.js +8 -8
  124. package/dist-es/logo-telefonica.js +4 -4
  125. package/dist-es/logo-tu.js +8 -8
  126. package/dist-es/logo-vivo.js +16 -16
  127. package/dist-es/logo.js +132 -109
  128. package/dist-es/navigation-bar.css-mistica.js +11 -11
  129. package/dist-es/navigation-bar.js +80 -87
  130. package/dist-es/package-version.js +1 -1
  131. package/dist-es/phone-number-field.js +59 -89
  132. package/dist-es/popover.js +17 -18
  133. package/dist-es/sheet-common.css-mistica.js +2 -2
  134. package/dist-es/skeleton-base.js +15 -17
  135. package/dist-es/skeletons.css-mistica.js +5 -2
  136. package/dist-es/snackbar.css-mistica.js +4 -4
  137. package/dist-es/snackbar.js +93 -103
  138. package/dist-es/style.css +1 -1
  139. package/dist-es/tag.css-mistica.js +2 -2
  140. package/dist-es/tag.js +34 -38
  141. package/dist-es/text-field-components.css-mistica.js +5 -2
  142. package/dist-es/text-field-components.js +48 -51
  143. package/dist-es/timer.js +80 -81
  144. package/dist-es/tooltip.js +148 -148
  145. package/dist-es/touchable.js +55 -50
  146. package/package.json +1 -1
  147. package/dist/sprinkles.css-mistica.js +0 -2494
  148. package/dist-es/sprinkles.css-mistica.js +0 -2485
package/dist/image.js CHANGED
@@ -11,16 +11,16 @@ function _export(target, all) {
11
11
  }
12
12
  _export(exports, {
13
13
  ImageContent: function() {
14
- return Y;
14
+ return X;
15
15
  },
16
16
  ImageError: function() {
17
- return X;
17
+ return Q;
18
18
  },
19
19
  RATIO: function() {
20
20
  return H;
21
21
  },
22
22
  default: function() {
23
- return f1;
23
+ return h1;
24
24
  }
25
25
  });
26
26
  const _jsxruntime = require("react/jsx-runtime");
@@ -32,7 +32,6 @@ const _dom = require("./utils/dom.js");
32
32
  const _themevariantcontext = require("./theme-variant-context.js");
33
33
  const _hooks = require("./hooks.js");
34
34
  const _constants = require("./skins/constants.js");
35
- const _sprinklescssmistica = require("./sprinkles.css-mistica.js");
36
35
  const _imagecssmistica = require("./image.css-mistica.js");
37
36
  const _skincontractcssmistica = require("./skins/skin-contract.css-mistica.js");
38
37
  const _common = require("./utils/common.js");
@@ -163,7 +162,7 @@ function _object_without_properties_loose(source, excluded) {
163
162
  }
164
163
  return target;
165
164
  }
166
- const Q = (param)=>{
165
+ const J = (param)=>{
167
166
  let { style: e } = param;
168
167
  return /* @__PURE__ */ (0, _jsxruntime.jsx)("svg", {
169
168
  width: "48",
@@ -177,9 +176,9 @@ const Q = (param)=>{
177
176
  strokeWidth: "2"
178
177
  })
179
178
  });
180
- }, X = /*#__PURE__*/ _react.forwardRef((param, s)=>{
179
+ }, Q = /*#__PURE__*/ _react.forwardRef((param, n)=>{
181
180
  let { borderRadius: e, withIcon: C = !0, border: d, className: m } = param;
182
- const a = (0, _themevariantcontext.useIsInverseVariant)(), { skinName: n } = (0, _hooks.useTheme)();
181
+ const a = (0, _themevariantcontext.useIsInverseVariant)(), { skinName: s } = (0, _hooks.useTheme)();
183
182
  return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
184
183
  style: {
185
184
  height: "100%",
@@ -192,15 +191,15 @@ const Q = (param)=>{
192
191
  border: d ? `1px solid ${_skincontractcssmistica.vars.colors.borderLow}` : "none",
193
192
  borderRadius: e
194
193
  },
195
- ref: s,
194
+ ref: n,
196
195
  className: m,
197
- children: C ? n === _constants.VIVO_SKIN ? /* @__PURE__ */ (0, _jsxruntime.jsx)(Q, {
196
+ children: C ? s === _constants.VIVO_SKIN ? /* @__PURE__ */ (0, _jsxruntime.jsx)(J, {
198
197
  style: {
199
198
  width: "10%",
200
199
  minWidth: 24,
201
200
  maxWidth: 48
202
201
  }
203
- }) : n === _constants.VIVO_NEW_SKIN ? /* @__PURE__ */ (0, _jsxruntime.jsxs)("svg", {
202
+ }) : s === _constants.VIVO_NEW_SKIN ? /* @__PURE__ */ (0, _jsxruntime.jsxs)("svg", {
204
203
  viewBox: "0 0 24 24",
205
204
  role: "presentation",
206
205
  style: {
@@ -241,8 +240,8 @@ const Q = (param)=>{
241
240
  "16:9": 16 / 9,
242
241
  "7:10": 7 / 10,
243
242
  "4:3": 4 / 3
244
- }, Y = /*#__PURE__*/ _react.forwardRef((_param, S)=>{
245
- var { aspectRatio: e = 0, alt: C = "", dataAttributes: d, noBorderRadius: m, src: s, srcSet: a, onError: n, onLoad: l, loadingFallback: M = !0, errorFallback: x = !0 } = _param, i = _object_without_properties(_param, [
243
+ }, X = /*#__PURE__*/ _react.forwardRef((_param, S)=>{
244
+ var { aspectRatio: e = 0, alt: C = "", dataAttributes: d, noBorderRadius: m, src: n, srcSet: a, onError: s, onLoad: l, loadingFallback: M = !0, errorFallback: x = !0 } = _param, i = _object_without_properties(_param, [
246
245
  "aspectRatio",
247
246
  "alt",
248
247
  "dataAttributes",
@@ -255,7 +254,7 @@ const Q = (param)=>{
255
254
  "errorFallback"
256
255
  ]);
257
256
  var I;
258
- const h = _react.useId(), c = _react.useRef(), u = i.circular ? _imagecssmistica.circularBorderRadius : m ? _imagecssmistica.noBorderRadius : _imagecssmistica.defaultBorderRadius, [y, f] = _react.useState(!s), [B, g] = _react.useState(!1), L = i.width && i.height ? void 0 : i.circular ? 1 : typeof e == "number" ? e : H[e], b = M && !!(L !== 0 || i.width && i.height), A = x && !!(L !== 0 || i.width && i.height), v = _react.useCallback(()=>{
257
+ const h = _react.useId(), c = _react.useRef(), u = i.circular ? _imagecssmistica.circularBorderRadius : m ? _imagecssmistica.noBorderRadius : _imagecssmistica.defaultBorderRadius, [y, f] = _react.useState(!n), [B, g] = _react.useState(!1), L = i.width && i.height ? void 0 : i.circular ? 1 : typeof e == "number" ? e : H[e], b = M && !!(L !== 0 || i.width && i.height), A = x && !!(L !== 0 || i.width && i.height), v = _react.useCallback(()=>{
259
258
  f(!1), c.current && (c.current.style.opacity = "1"), setTimeout(()=>{
260
259
  g(!0);
261
260
  }, _imagecssmistica.FADE_IN_DURATION_MS), l == null || l();
@@ -263,9 +262,9 @@ const Q = (param)=>{
263
262
  l
264
263
  ]);
265
264
  _react.useEffect(()=>{
266
- f(!s), g(!1);
265
+ f(!n), g(!1);
267
266
  }, [
268
- s
267
+ n
269
268
  ]), _react.useEffect(()=>{
270
269
  var R;
271
270
  (R = c.current) != null && R.complete && v();
@@ -278,19 +277,18 @@ const Q = (param)=>{
278
277
  suppressHydrationWarning: !0,
279
278
  id: h,
280
279
  style: {
281
- opacity: N && b ? 0 : 1
280
+ opacity: N && b ? 0 : 1,
281
+ position: L !== 0 ? "absolute" : "static"
282
282
  },
283
283
  ref: (0, _common.combineRefs)(c, S),
284
- src: s,
284
+ src: n,
285
285
  srcSet: a,
286
286
  className: (0, _classnames.default)(u, _imagecssmistica.image, {
287
287
  [_imagecssmistica.imageWithBorder]: i.border
288
- }, (0, _sprinklescssmistica.sprinkles)({
289
- position: L !== 0 ? "absolute" : "static"
290
- })),
288
+ }),
291
289
  alt: C,
292
290
  onError: ()=>{
293
- f(!0), g(!0), n == null || n();
291
+ f(!0), g(!0), s == null || s();
294
292
  },
295
293
  onLoad: v,
296
294
  decoding: "async"
@@ -329,7 +327,7 @@ const Q = (param)=>{
329
327
  width: "100%",
330
328
  height: "100%"
331
329
  },
332
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(X, {
330
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(Q, {
333
331
  border: i.border,
334
332
  className: u
335
333
  })
@@ -337,7 +335,7 @@ const Q = (param)=>{
337
335
  !y && W
338
336
  ]
339
337
  });
340
- }), e1 = /*#__PURE__*/ _react.forwardRef((e, C)=>{
338
+ }), Y = /*#__PURE__*/ _react.forwardRef((e, C)=>{
341
339
  var _e_aspectRatio;
342
340
  const d = e.width && e.height ? void 0 : e.circular ? 1 : typeof e.aspectRatio == "number" || !e.aspectRatio ? (_e_aspectRatio = e.aspectRatio) !== null && _e_aspectRatio !== void 0 ? _e_aspectRatio : 0 : H[e.aspectRatio];
343
341
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(_aspectratiosupport.AspectRatioContainer, {
@@ -349,8 +347,8 @@ const Q = (param)=>{
349
347
  height: e.height,
350
348
  dataAttributes: (0, _dom.getPrefixedDataAttributes)(e.dataAttributes, "Image"),
351
349
  forceNonCssAspectRatio: e.forceNonCssAspectRatio,
352
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(Y, _object_spread_props(_object_spread({}, e), {
350
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(X, _object_spread_props(_object_spread({}, e), {
353
351
  ref: C
354
352
  }))
355
353
  });
356
- }), f1 = e1;
354
+ }), h1 = Y;
package/dist/index.d.ts CHANGED
@@ -34,6 +34,7 @@ export { default as Overlay } from './overlay';
34
34
  export { default as Tooltip } from './tooltip';
35
35
  export { default as Stack } from './stack';
36
36
  export { default as Box } from './box';
37
+ export { default as Align } from './align';
37
38
  export { Boxed } from './boxed';
38
39
  export { Header, HeaderLayout, MainSectionHeader, MainSectionHeaderLayout } from './header';
39
40
  export { default as GridLayout } from './grid-layout';
package/dist/index.js CHANGED
@@ -21,6 +21,9 @@ _export(exports, {
21
21
  ActionsSheet: function() {
22
22
  return _sheetactions.default;
23
23
  },
24
+ Align: function() {
25
+ return _align.default;
26
+ },
24
27
  Avatar: function() {
25
28
  return _avatar.default;
26
29
  },
@@ -5987,6 +5990,7 @@ const _overlay = /*#__PURE__*/ _interop_require_default(require("./overlay.js"))
5987
5990
  const _tooltip = /*#__PURE__*/ _interop_require_default(require("./tooltip.js"));
5988
5991
  const _stack = /*#__PURE__*/ _interop_require_default(require("./stack.js"));
5989
5992
  const _box = /*#__PURE__*/ _interop_require_default(require("./box.js"));
5993
+ const _align = /*#__PURE__*/ _interop_require_default(require("./align.js"));
5990
5994
  const _boxed = require("./boxed.js");
5991
5995
  const _header = require("./header.js");
5992
5996
  const _gridlayout = /*#__PURE__*/ _interop_require_default(require("./grid-layout.js"));
package/dist/inline.js CHANGED
@@ -6,13 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "default", {
7
7
  enumerable: true,
8
8
  get: function() {
9
- return z;
9
+ return P;
10
10
  }
11
11
  });
12
12
  const _jsxruntime = require("react/jsx-runtime");
13
13
  const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
14
14
  const _classnames = /*#__PURE__*/ _interop_require_default(require("classnames"));
15
- const _sprinklescssmistica = require("./sprinkles.css-mistica.js");
16
15
  const _dom = require("./utils/dom.js");
17
16
  const _inlinecssmistica = require("./inline.css-mistica.js");
18
17
  const _css = require("./utils/css.js");
@@ -116,7 +115,7 @@ function _object_spread_props(target, source) {
116
115
  }
117
116
  return target;
118
117
  }
119
- const i = (t)=>typeof t == "number" ? `${t}px` : `space-${t}`, R = (t)=>{
118
+ const i = (t)=>typeof t == "number" ? `${t}px` : `space-${t}`, C = (t)=>{
120
119
  if (typeof t == "number" || typeof t == "string") return {
121
120
  [_inlinecssmistica.vars.space]: i(t)
122
121
  };
@@ -125,14 +124,14 @@ const i = (t)=>typeof t == "number" ? `${t}px` : `space-${t}`, R = (t)=>{
125
124
  [_inlinecssmistica.vars.spaceDesktop]: i(t.desktop)
126
125
  };
127
126
  return t.tablet && (e[_inlinecssmistica.vars.spaceTablet] = i(t.tablet)), e;
128
- }, j = (param)=>{
129
- let { space: t, className: e, children: p, role: l, alignItems: f = "stretch", "aria-label": o, "aria-labelledby": c, fullWidth: d, wrap: s, dataAttributes: u } = param;
130
- const { platformOverrides: a } = (0, _hooks.useTheme)(), b = typeof t == "string";
127
+ }, D = (param)=>{
128
+ let { space: t, className: e, children: p, role: l, alignItems: f = "stretch", "aria-label": o, "aria-labelledby": c, fullWidth: d, wrap: a, dataAttributes: u } = param;
129
+ const { platformOverrides: s } = (0, _hooks.useTheme)();
131
130
  return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({
132
- className: (0, _classnames.default)(e, _inlinecssmistica.inline, (0, _sprinklescssmistica.sprinkles)({
131
+ className: (0, _classnames.default)(e, _inlinecssmistica.inline, a ? _inlinecssmistica.wrap : d ? _inlinecssmistica.fullWidth : _inlinecssmistica.noFullWidth, typeof t == "string" ? a ? _inlinecssmistica.stringSpaceWithWrap : _inlinecssmistica.stringSpace : _inlinecssmistica.marginInline),
132
+ style: _object_spread_props(_object_spread({}, (0, _css.applyCssVars)(C(t))), {
133
133
  alignItems: f
134
- }), s ? _inlinecssmistica.wrap : d ? _inlinecssmistica.fullWidth : _inlinecssmistica.noFullWidth, b ? s ? _inlinecssmistica.stringSpaceWithWrap : _inlinecssmistica.stringSpace : _inlinecssmistica.marginInline),
135
- style: (0, _css.applyCssVars)(R(t)),
134
+ }),
136
135
  role: l,
137
136
  "aria-label": o,
138
137
  "aria-labelledby": o ? void 0 : c
@@ -142,9 +141,9 @@ const i = (t)=>typeof t == "number" ? `${t}px` : `space-${t}`, R = (t)=>{
142
141
  style: {
143
142
  // Hack to fix https://jira.tid.es/browse/WEB-1683
144
143
  // In iOS the inline component sometimes cuts the last line of the content
145
- paddingBottom: (0, _platform.isIos)(a) && !(0, _platform.isRunningAcceptanceTest)(a) ? 1 : void 0
144
+ paddingBottom: (0, _platform.isIos)(s) && !(0, _platform.isRunningAcceptanceTest)(s) ? 1 : void 0
146
145
  },
147
146
  children: n
148
147
  }) : null)
149
148
  }));
150
- }, z = j;
149
+ }, P = D;
@@ -40,30 +40,33 @@ _export(exports, {
40
40
  return e;
41
41
  },
42
42
  dualActionRight: function() {
43
- return b;
43
+ return d;
44
44
  },
45
45
  pointer: function() {
46
- return d;
46
+ return b;
47
47
  },
48
48
  rightContent: function() {
49
- return k;
49
+ return u;
50
50
  },
51
51
  rightRestrictedWidth: function() {
52
- return u;
52
+ return g;
53
+ },
54
+ row: function() {
55
+ return k;
53
56
  },
54
57
  rowBody: function() {
55
- return g;
58
+ return c;
56
59
  },
57
60
  rowContent: function() {
58
- return c;
61
+ return j;
59
62
  },
60
63
  touchableBackground: function() {
61
- return j;
64
+ return l;
62
65
  },
63
66
  touchableBackgroundInverse: function() {
64
- return l;
67
+ return m;
65
68
  }
66
69
  });
67
70
  require("./sprinkles.css.ts.vanilla.css-mistica.js");
68
71
  require("./list.css.ts.vanilla.css-mistica.js");
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";
72
+ var _ = "_1y2v1nfhk _1y2v1nfi2 _1y2v1nfi4", f = "_1y2v1nfhk _1y2v1nfhz _1y2v1nfht _1y2v1nfja _1y2v1nfio _1y2v1nfi2", y = "_1y2v1nfhk _1y2v1nfhz", a = "_1y2v1nfhk _1y2v1nfi7 _1y2v1nfjx", r = "_2buj9gf _1y2v1nfhk _1y2v1nfhz", i = "_2buj9ge", t = "_2buj9g0", h = "_1y2v1nfhk _1y2v1nfhp _1y2v1nfio", o = "_2buj9gl _1y2v1nfhk", e = "_1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfk2 _1y2v1nf7c _1y2v1nfaa _1y2v1nfbj _1y2v1nfhm _1y2v1nfi5", d = "_2buj9gn _1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfk2 _1y2v1nf7c _1y2v1nfaa _1y2v1nfbj _1y2v1nfhk _1y2v1nfhz _1y2v1nfi4 _1y2v1nfi8 _1y2v1nfio", b = "_1y2v1nfkk", u = "_2buj9gc", g = "_2buj9gd", k = "_1y2v1nfi7", c = "_1y2v1nfhk _1y2v1nfhq _1y2v1nfi6", j = "_1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfi7 _1y2v1nfk2 _1y2v1nf7c _1y2v1nfhm _1y2v1nfio", l = "_2buj9g2", m = "_2buj9g3";
@@ -1,4 +1,5 @@
1
1
  export declare const disabled: string;
2
+ export declare const row: string;
2
3
  export declare const touchableBackground: string;
3
4
  export declare const touchableBackgroundInverse: string;
4
5
  export declare const pointer: string;
package/dist/list.js CHANGED
@@ -14,16 +14,16 @@ _export(exports, {
14
14
  return ut;
15
15
  },
16
16
  BoxedRowList: function() {
17
- return ft;
17
+ return mt;
18
18
  },
19
19
  Content: function() {
20
20
  return Fe;
21
21
  },
22
22
  Row: function() {
23
- return ht;
23
+ return st;
24
24
  },
25
25
  RowList: function() {
26
- return mt;
26
+ return ht;
27
27
  }
28
28
  });
29
29
  const _jsxruntime = require("react/jsx-runtime");
@@ -47,7 +47,6 @@ const _imagecssmistica = require("./image.css-mistica.js");
47
47
  const _skincontractcssmistica = require("./skins/skin-contract.css-mistica.js");
48
48
  const _css = require("./utils/css.js");
49
49
  const _iconbutton = require("./icon-button.js");
50
- const _sprinklescssmistica = require("./sprinkles.css-mistica.js");
51
50
  function _interop_require_default(obj) {
52
51
  return obj && obj.__esModule ? obj : {
53
52
  default: obj
@@ -185,13 +184,13 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
185
184
  children: e
186
185
  })
187
186
  }) : e, Fe = (param)=>{
188
- let { withChevron: e, headline: a, headlineRef: r, extraRef: l, title: c, titleAs: v, titleLinesMax: g, subtitle: x, subtitleLinesMax: P, description: w, descriptionLinesMax: D, detail: h, asset: E, danger: T, badge: N, right: y, rightRef: f, extra: k, labelId: M, disabled: s, control: L } = param;
187
+ let { withChevron: e, headline: a, headlineRef: r, extraRef: l, title: c, titleAs: v, titleLinesMax: g, subtitle: x, subtitleLinesMax: P, description: w, descriptionLinesMax: D, detail: h, asset: E, danger: T, badge: N, right: y, rightRef: f, extra: L, labelId: M, disabled: s, control: k } = param;
189
188
  const A = (0, _themevariantcontext.useIsInverseOrMediaVariant)(), S = [
190
189
  a,
191
190
  c,
192
191
  x,
193
192
  w,
194
- k
193
+ L
195
194
  ].filter(Boolean).length === 1;
196
195
  return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_box.default, {
197
196
  paddingY: 16,
@@ -263,10 +262,10 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
263
262
  children: w
264
263
  })
265
264
  }),
266
- k && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
265
+ L && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
267
266
  ref: l,
268
267
  paddingTop: 2,
269
- children: k
268
+ children: L
270
269
  })
271
270
  ]
272
271
  }),
@@ -281,7 +280,7 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
281
280
  })
282
281
  })
283
282
  }),
284
- (h || y || e || L) && /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
283
+ (h || y || e || k) && /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
285
284
  className: (0, _classnames.default)(_listcssmistica.rightContent, {
286
285
  [_listcssmistica.rightRestrictedWidth]: !!h
287
286
  }),
@@ -315,10 +314,10 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
315
314
  direction: "right"
316
315
  })
317
316
  }),
318
- L && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
317
+ k && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
319
318
  paddingLeft: h || y ? 8 : 0,
320
319
  className: _listcssmistica.center,
321
- children: L
320
+ children: k
322
321
  })
323
322
  ]
324
323
  })
@@ -340,7 +339,7 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
340
339
  "iconButton"
341
340
  ].some((a)=>e[a] !== void 0), le = /*#__PURE__*/ _react.forwardRef((e, a)=>{
342
341
  var p, ee;
343
- const r = _react.useId(), l = (0, _themevariantcontext.useIsInverseOrMediaVariant)(), { asset: c, headline: v, title: g, titleAs: x, titleLinesMax: P, subtitle: w, subtitleLinesMax: D, description: h, descriptionLinesMax: E, detail: T, danger: N, badge: y, role: f, extra: k, withChevron: M, dataAttributes: s, right: L, "aria-label": A } = e, [Q, S] = _react.useState(""), [de, ce] = _react.useState(""), [se, he] = _react.useState(""), me = [
342
+ const r = _react.useId(), l = (0, _themevariantcontext.useIsInverseOrMediaVariant)(), { asset: c, headline: v, title: g, titleAs: x, titleLinesMax: P, subtitle: w, subtitleLinesMax: D, description: h, descriptionLinesMax: E, detail: T, danger: N, badge: y, role: f, extra: L, withChevron: M, dataAttributes: s, right: k, "aria-label": A } = e, [Q, S] = _react.useState(""), [de, ce] = _react.useState(""), [se, he] = _react.useState(""), ue = [
344
343
  g,
345
344
  Q,
346
345
  w,
@@ -348,7 +347,7 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
348
347
  de,
349
348
  T,
350
349
  se
351
- ].filter(Boolean).join(" "), B = A !== null && A !== void 0 ? A : e.href || e.to ? me : void 0, ue = (0, _radiobutton.useRadioContext)(), b = e.disabled || e.radioValue !== void 0 && ue.disabled, O = !b && !l, W = !b && l, U = qe(e), V = !!e.onPress || !!e.href || !!e.to, fe = U ? !1 : M !== null && M !== void 0 ? M : V, Z = {
350
+ ].filter(Boolean).join(" "), B = A !== null && A !== void 0 ? A : e.href || e.to ? ue : void 0, me = (0, _radiobutton.useRadioContext)(), b = e.disabled || e.radioValue !== void 0 && me.disabled, O = !b && !l, W = !b && l, U = qe(e), V = !!e.onPress || !!e.href || !!e.to, fe = U ? !1 : M !== null && M !== void 0 ? M : V, Z = {
352
351
  href: e.href,
353
352
  newTab: e.newTab,
354
353
  loadOnTop: e.loadOnTop,
@@ -358,11 +357,11 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
358
357
  onNavigate: e.onNavigate,
359
358
  onPress: e.onPress,
360
359
  trackingEvent: e.trackingEvent
361
- }, [_, $] = Ye(e.switch || e.checkbox || {}), R = (i)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(Fe, {
360
+ }, [_, $] = Ye(e.switch || e.checkbox || {}), R = (n)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(Fe, {
362
361
  asset: c,
363
362
  headline: v,
364
- headlineRef: (n)=>{
365
- n && S(n.textContent || "");
363
+ headlineRef: (i)=>{
364
+ i && S(i.textContent || "");
366
365
  },
367
366
  title: g,
368
367
  titleAs: x,
@@ -374,16 +373,16 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
374
373
  descriptionLinesMax: E,
375
374
  detail: T,
376
375
  danger: N,
377
- right: L,
378
- rightRef: (n)=>{
379
- n && he(n.innerText || n.textContent || "");
376
+ right: k,
377
+ rightRef: (i)=>{
378
+ i && he(i.innerText || i.textContent || "");
380
379
  },
381
- control: i == null ? void 0 : i.control,
382
- extra: k,
383
- extraRef: (n)=>{
384
- n && ce(n.innerText || n.textContent || "");
380
+ control: n == null ? void 0 : n.control,
381
+ extra: L,
382
+ extraRef: (i)=>{
383
+ i && ce(i.innerText || i.textContent || "");
385
384
  },
386
- labelId: i == null ? void 0 : i.labelId,
385
+ labelId: n == null ? void 0 : n.labelId,
387
386
  disabled: b,
388
387
  withChevron: fe
389
388
  });
@@ -405,7 +404,7 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
405
404
  children: R()
406
405
  })
407
406
  }));
408
- const j = (i)=>/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", _object_spread_props(_object_spread({
407
+ const j = (n)=>/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", _object_spread_props(_object_spread({
409
408
  className: _listcssmistica.dualActionContainer,
410
409
  ref: a
411
410
  }, (0, _dom.getPrefixedDataAttributes)(s)), {
@@ -426,24 +425,24 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
426
425
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
427
426
  className: _listcssmistica.dualActionDivider
428
427
  }),
429
- i
428
+ n
430
429
  ]
431
- })), H = (i, n)=>/* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({
430
+ })), H = (n, i)=>/* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({
432
431
  className: (0, _classnames.default)(_listcssmistica.rowContent, {
433
- [_listcssmistica.touchableBackground]: O && n,
434
- [_listcssmistica.touchableBackgroundInverse]: W && n,
435
- [_listcssmistica.pointer]: !b && n
432
+ [_listcssmistica.touchableBackground]: O && i,
433
+ [_listcssmistica.touchableBackgroundInverse]: W && i,
434
+ [_listcssmistica.pointer]: !b && i
436
435
  }),
437
436
  ref: a
438
437
  }, (0, _dom.getPrefixedDataAttributes)(s)), {
439
- children: i
438
+ children: n
440
439
  }));
441
440
  if (e.switch || e.checkbox) {
442
441
  var _ref, _ref1;
443
- const i = e.switch ? _switchcomponent.default : _checkbox.default, n = (_ref1 = (_ref = (p = e.switch) == null ? void 0 : p.name) !== null && _ref !== void 0 ? _ref : (ee = e.checkbox) == null ? void 0 : ee.name) !== null && _ref1 !== void 0 ? _ref1 : r;
444
- return V ? j(/* @__PURE__ */ (0, _jsxruntime.jsx)(i, {
442
+ const n = e.switch ? _switchcomponent.default : _checkbox.default, i = (_ref1 = (_ref = (p = e.switch) == null ? void 0 : p.name) !== null && _ref !== void 0 ? _ref : (ee = e.checkbox) == null ? void 0 : ee.name) !== null && _ref1 !== void 0 ? _ref1 : r;
443
+ return V ? j(/* @__PURE__ */ (0, _jsxruntime.jsx)(n, {
445
444
  disabled: b,
446
- name: n,
445
+ name: i,
447
446
  checked: _,
448
447
  "aria-label": B,
449
448
  "aria-labelledby": r,
@@ -455,9 +454,9 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
455
454
  children: F
456
455
  });
457
456
  }
458
- })) : H(/* @__PURE__ */ (0, _jsxruntime.jsx)(i, {
457
+ })) : H(/* @__PURE__ */ (0, _jsxruntime.jsx)(n, {
459
458
  disabled: b,
460
- name: n,
459
+ name: i,
461
460
  checked: _,
462
461
  "aria-label": B,
463
462
  "aria-labelledby": r,
@@ -483,12 +482,12 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
483
482
  "aria-label": B,
484
483
  "aria-labelledby": r,
485
484
  render: (param)=>{
486
- let { controlElement: i } = param;
485
+ let { controlElement: n } = param;
487
486
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(_stack.default, {
488
487
  space: "around",
489
488
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
490
489
  paddingX: 16,
491
- children: i
490
+ children: n
492
491
  })
493
492
  });
494
493
  }
@@ -497,7 +496,7 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
497
496
  "aria-label": B,
498
497
  "aria-labelledby": r,
499
498
  render: (param)=>{
500
- let { controlElement: i } = param;
499
+ let { controlElement: n } = param;
501
500
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
502
501
  paddingX: 16,
503
502
  role: f,
@@ -505,7 +504,7 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
505
504
  labelId: r,
506
505
  control: /* @__PURE__ */ (0, _jsxruntime.jsx)(_stack.default, {
507
506
  space: "around",
508
- children: i
507
+ children: n
509
508
  })
510
509
  })
511
510
  });
@@ -543,16 +542,14 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
543
542
  ref: a,
544
543
  children: R()
545
544
  });
546
- }), ht = /*#__PURE__*/ _react.forwardRef((_param, l)=>{
545
+ }), st = /*#__PURE__*/ _react.forwardRef((_param, l)=>{
547
546
  var { dataAttributes: e, role: a = "listitem" } = _param, r = _object_without_properties(_param, [
548
547
  "dataAttributes",
549
548
  "role"
550
549
  ]);
551
550
  return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
552
551
  role: a,
553
- className: (0, _sprinklescssmistica.sprinkles)({
554
- width: "100%"
555
- }),
552
+ className: _listcssmistica.row,
556
553
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(le, _object_spread_props(_object_spread({}, r), {
557
554
  ref: l,
558
555
  dataAttributes: _object_spread({
@@ -560,7 +557,7 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
560
557
  }, e)
561
558
  }))
562
559
  });
563
- }), mt = (param)=>{
560
+ }), ht = (param)=>{
564
561
  let { children: e, ariaLabelledby: a, role: r = "list", dataAttributes: l } = param;
565
562
  const c = _react.Children.toArray(e).filter(Boolean), v = c.length - 1;
566
563
  return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({
@@ -589,7 +586,7 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
589
586
  }, e),
590
587
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(le, _object_spread({}, a))
591
588
  });
592
- }), ft = (param)=>{
589
+ }), mt = (param)=>{
593
590
  let { children: e, ariaLabelledby: a, role: r = "list", dataAttributes: l } = param;
594
591
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(_stack.default, {
595
592
  space: 16,