@telefonica/mistica 16.40.0 → 16.41.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 (186) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/accordion.css-mistica.js +6 -6
  3. package/dist/align.css-mistica.js +1 -1
  4. package/dist/avatar.css-mistica.js +1 -1
  5. package/dist/badge.css-mistica.js +1 -1
  6. package/dist/box.css-mistica.js +13 -13
  7. package/dist/boxed.css-mistica.js +24 -24
  8. package/dist/button-group.css-mistica.js +1 -1
  9. package/dist/button-layout.css-mistica.js +13 -13
  10. package/dist/button.css-mistica.js +23 -23
  11. package/dist/callout.css-mistica.js +5 -5
  12. package/dist/card-internal.css-mistica.js +15 -15
  13. package/dist/carousel.css-mistica.js +8 -8
  14. package/dist/checkbox.css-mistica.js +7 -7
  15. package/dist/chip.css-mistica.js +12 -12
  16. package/dist/circle.css-mistica.js +1 -1
  17. package/dist/community/advanced-data-card.css-mistica.js +6 -6
  18. package/dist/community/advanced-data-card.js +23 -22
  19. package/dist/community/blocks.css-mistica.js +1 -1
  20. package/dist/community/example-component.css-mistica.js +1 -1
  21. package/dist/counter.css-mistica.js +1 -1
  22. package/dist/cover-hero.css-mistica.js +3 -3
  23. package/dist/credit-card-number-field.css-mistica.js +3 -3
  24. package/dist/date-field.css-mistica.js +1 -1
  25. package/dist/date-time-picker.css-mistica.js +1 -1
  26. package/dist/dialog.css-mistica.js +4 -4
  27. package/dist/divider.css-mistica.js +2 -2
  28. package/dist/double-field.css-mistica.js +2 -2
  29. package/dist/drawer.css-mistica.js +1 -1
  30. package/dist/empty-state-card.css-mistica.js +1 -1
  31. package/dist/empty-state.css-mistica.js +5 -5
  32. package/dist/fade-in.css-mistica.js +1 -1
  33. package/dist/feedback.css-mistica.js +1 -1
  34. package/dist/fixed-footer-layout.css-mistica.js +4 -4
  35. package/dist/form.css-mistica.js +1 -1
  36. package/dist/grid-layout.css-mistica.js +3 -3
  37. package/dist/grid.css-mistica.js +122 -122
  38. package/dist/header.css-mistica.js +1 -1
  39. package/dist/hero.css-mistica.js +2 -2
  40. package/dist/horizontal-scroll.css-mistica.js +1 -1
  41. package/dist/icon-button.css-mistica.js +42 -42
  42. package/dist/icons/icon-chevron.css-mistica.js +2 -2
  43. package/dist/icons/icon-error.css-mistica.js +1 -1
  44. package/dist/image.css-mistica.js +3 -3
  45. package/dist/index.d.ts +2 -0
  46. package/dist/index.js +6 -0
  47. package/dist/inline.css-mistica.js +10 -10
  48. package/dist/list.css-mistica.js +1 -1
  49. package/dist/list.js +128 -123
  50. package/dist/loading-bar.css-mistica.js +1 -1
  51. package/dist/loading-screen.css-mistica.js +4 -4
  52. package/dist/logo.css-mistica.js +5 -5
  53. package/dist/menu.css-mistica.js +12 -12
  54. package/dist/mosaic.css-mistica.js +1 -1
  55. package/dist/navigation-bar.css-mistica.js +16 -16
  56. package/dist/navigation-breadcrumbs.css-mistica.js +1 -1
  57. package/dist/package-version.js +1 -1
  58. package/dist/pin-field.css-mistica.js +1 -1
  59. package/dist/popover.css-mistica.js +1 -1
  60. package/dist/progress-bar.css-mistica.js +4 -4
  61. package/dist/radio-button.css-mistica.js +14 -14
  62. package/dist/rating.css-mistica.js +2 -2
  63. package/dist/responsive-layout.css-mistica.js +4 -4
  64. package/dist/screen-reader-only.css-mistica.js +1 -1
  65. package/dist/select.css-mistica.js +15 -15
  66. package/dist/sheet-action-row.css-mistica.js +1 -1
  67. package/dist/sheet-common.css-mistica.js +1 -1
  68. package/dist/sheet-info.css-mistica.js +1 -1
  69. package/dist/skeletons.css-mistica.js +4 -4
  70. package/dist/skins/skin-contract.css-mistica.js +397 -397
  71. package/dist/skip-link.css-mistica.js +1 -1
  72. package/dist/slider.css-mistica.js +10 -10
  73. package/dist/snackbar.css-mistica.js +4 -4
  74. package/dist/spinner.css-mistica.js +1 -1
  75. package/dist/stack.css-mistica.js +5 -5
  76. package/dist/stacking-group.css-mistica.js +1 -1
  77. package/dist/stepper.css-mistica.js +2 -2
  78. package/dist/switch-component.css-mistica.js +26 -26
  79. package/dist/table.css-mistica.js +8 -8
  80. package/dist/tabs.css-mistica.js +12 -12
  81. package/dist/tag.css-mistica.js +1 -1
  82. package/dist/text-field-base.css-mistica.js +1 -1
  83. package/dist/text-field-components.css-mistica.js +3 -3
  84. package/dist/text-link.css-mistica.js +5 -5
  85. package/dist/text.css-mistica.js +7 -7
  86. package/dist/theme-context.css-mistica.js +1 -1
  87. package/dist/timeline.css-mistica.js +10 -10
  88. package/dist/timer.css-mistica.js +6 -6
  89. package/dist/tooltip.css-mistica.js +1 -1
  90. package/dist/touchable.css-mistica.js +1 -1
  91. package/dist/utils/aspect-ratio-support.css-mistica.js +3 -3
  92. package/dist/video.css-mistica.js +1 -1
  93. package/dist/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +1 -1
  94. package/dist-es/accordion.css-mistica.js +6 -6
  95. package/dist-es/align.css-mistica.js +1 -1
  96. package/dist-es/avatar.css-mistica.js +1 -1
  97. package/dist-es/badge.css-mistica.js +1 -1
  98. package/dist-es/box.css-mistica.js +13 -13
  99. package/dist-es/boxed.css-mistica.js +23 -23
  100. package/dist-es/button-group.css-mistica.js +1 -1
  101. package/dist-es/button-layout.css-mistica.js +13 -13
  102. package/dist-es/button.css-mistica.js +23 -23
  103. package/dist-es/callout.css-mistica.js +5 -5
  104. package/dist-es/card-internal.css-mistica.js +15 -15
  105. package/dist-es/carousel.css-mistica.js +8 -8
  106. package/dist-es/checkbox.css-mistica.js +7 -7
  107. package/dist-es/chip.css-mistica.js +12 -12
  108. package/dist-es/circle.css-mistica.js +1 -1
  109. package/dist-es/community/advanced-data-card.css-mistica.js +6 -6
  110. package/dist-es/community/advanced-data-card.js +34 -33
  111. package/dist-es/community/blocks.css-mistica.js +1 -1
  112. package/dist-es/community/example-component.css-mistica.js +1 -1
  113. package/dist-es/counter.css-mistica.js +1 -1
  114. package/dist-es/cover-hero.css-mistica.js +3 -3
  115. package/dist-es/credit-card-number-field.css-mistica.js +3 -3
  116. package/dist-es/date-field.css-mistica.js +1 -1
  117. package/dist-es/date-time-picker.css-mistica.js +1 -1
  118. package/dist-es/dialog.css-mistica.js +4 -4
  119. package/dist-es/divider.css-mistica.js +2 -2
  120. package/dist-es/double-field.css-mistica.js +2 -2
  121. package/dist-es/drawer.css-mistica.js +1 -1
  122. package/dist-es/empty-state-card.css-mistica.js +1 -1
  123. package/dist-es/empty-state.css-mistica.js +5 -5
  124. package/dist-es/fade-in.css-mistica.js +1 -1
  125. package/dist-es/feedback.css-mistica.js +1 -1
  126. package/dist-es/fixed-footer-layout.css-mistica.js +4 -4
  127. package/dist-es/form.css-mistica.js +1 -1
  128. package/dist-es/grid-layout.css-mistica.js +3 -3
  129. package/dist-es/grid.css-mistica.js +122 -122
  130. package/dist-es/header.css-mistica.js +1 -1
  131. package/dist-es/hero.css-mistica.js +2 -2
  132. package/dist-es/horizontal-scroll.css-mistica.js +1 -1
  133. package/dist-es/icon-button.css-mistica.js +42 -42
  134. package/dist-es/icons/icon-chevron.css-mistica.js +2 -2
  135. package/dist-es/icons/icon-error.css-mistica.js +1 -1
  136. package/dist-es/image.css-mistica.js +3 -3
  137. package/dist-es/index.js +1812 -1812
  138. package/dist-es/inline.css-mistica.js +10 -10
  139. package/dist-es/list.css-mistica.js +1 -1
  140. package/dist-es/list.js +196 -191
  141. package/dist-es/loading-bar.css-mistica.js +1 -1
  142. package/dist-es/loading-screen.css-mistica.js +4 -4
  143. package/dist-es/logo.css-mistica.js +5 -5
  144. package/dist-es/menu.css-mistica.js +12 -12
  145. package/dist-es/mosaic.css-mistica.js +1 -1
  146. package/dist-es/navigation-bar.css-mistica.js +16 -16
  147. package/dist-es/navigation-breadcrumbs.css-mistica.js +1 -1
  148. package/dist-es/package-version.js +1 -1
  149. package/dist-es/pin-field.css-mistica.js +1 -1
  150. package/dist-es/popover.css-mistica.js +1 -1
  151. package/dist-es/progress-bar.css-mistica.js +4 -4
  152. package/dist-es/radio-button.css-mistica.js +14 -14
  153. package/dist-es/rating.css-mistica.js +2 -2
  154. package/dist-es/responsive-layout.css-mistica.js +4 -4
  155. package/dist-es/screen-reader-only.css-mistica.js +1 -1
  156. package/dist-es/select.css-mistica.js +15 -15
  157. package/dist-es/sheet-action-row.css-mistica.js +1 -1
  158. package/dist-es/sheet-common.css-mistica.js +1 -1
  159. package/dist-es/sheet-info.css-mistica.js +1 -1
  160. package/dist-es/skeletons.css-mistica.js +4 -4
  161. package/dist-es/skins/skin-contract.css-mistica.js +397 -397
  162. package/dist-es/skip-link.css-mistica.js +1 -1
  163. package/dist-es/slider.css-mistica.js +10 -10
  164. package/dist-es/snackbar.css-mistica.js +4 -4
  165. package/dist-es/spinner.css-mistica.js +1 -1
  166. package/dist-es/stack.css-mistica.js +5 -5
  167. package/dist-es/stacking-group.css-mistica.js +1 -1
  168. package/dist-es/stepper.css-mistica.js +2 -2
  169. package/dist-es/style.css +1 -1
  170. package/dist-es/switch-component.css-mistica.js +26 -26
  171. package/dist-es/table.css-mistica.js +8 -8
  172. package/dist-es/tabs.css-mistica.js +12 -12
  173. package/dist-es/tag.css-mistica.js +1 -1
  174. package/dist-es/text-field-base.css-mistica.js +1 -1
  175. package/dist-es/text-field-components.css-mistica.js +3 -3
  176. package/dist-es/text-link.css-mistica.js +5 -5
  177. package/dist-es/text.css-mistica.js +7 -7
  178. package/dist-es/theme-context.css-mistica.js +1 -1
  179. package/dist-es/timeline.css-mistica.js +10 -10
  180. package/dist-es/timer.css-mistica.js +6 -6
  181. package/dist-es/tooltip.css-mistica.js +1 -1
  182. package/dist-es/touchable.css-mistica.js +1 -1
  183. package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
  184. package/dist-es/video.css-mistica.js +1 -1
  185. package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +1 -1
  186. package/package.json +1 -1
package/dist-es/list.js CHANGED
@@ -78,29 +78,30 @@ function _object_without_properties_loose(source, excluded) {
78
78
  }
79
79
  return target;
80
80
  }
81
- import { jsx as t, jsxs as N } from "react/jsx-runtime";
82
- import * as m from "react";
83
- import s from "classnames";
84
- import { BaseTouchable as ae } from "./touchable.js";
85
- import { Text3 as we, Text1 as Be, Text2 as U } from "./text.js";
86
- import c from "./box.js";
87
- import T from "./stack.js";
81
+ import { jsx as t, jsxs as C } from "react/jsx-runtime";
82
+ import * as u from "react";
83
+ import c from "classnames";
84
+ import { BaseTouchable as ie } from "./touchable.js";
85
+ import { Text as Re, Text1 as Be, Text2 as q } from "./text.js";
86
+ import s from "./box.js";
87
+ import k from "./stack.js";
88
88
  import Ne from "./badge.js";
89
- import { useIsInverseOrMediaVariant as de } from "./theme-variant-context.js";
89
+ import { useIsInverseOrMediaVariant as se } from "./theme-variant-context.js";
90
90
  import Ce from "./generated/mistica-icons/icon-chevron-right-filled.js";
91
91
  import Ie from "./switch-component.js";
92
- import ie, { useRadioContext as Le } from "./radio-button.js";
92
+ import re, { useRadioContext as Le } from "./radio-button.js";
93
93
  import Te from "./checkbox.js";
94
- import { InternalBoxed as Ae } from "./boxed.js";
95
- import ke from "./divider.js";
96
- import { getPrefixedDataAttributes as M } from "./utils/dom.js";
97
- import { rowContent as q, touchableBackground as G, touchableBackgroundInverse as J, pointer as re, rowContentPadding as Se, screenReaderOnly as Ve, row as Oe, boxed as We, ul as ce, liWithoutMarker as Ee, liContent as le, liWithCustomIcon as Me, li as Xe, content as De, assetContainer as je, center as K, disabled as L, asset as Fe, rowBody as He, badge as ze, rightContent as Pe, rightRestrictedWidth as Ue, detail as qe, detailRight as Ge, dualActionContainer as Je, dualActionLeft as Ke, dualActionDivider as Qe, dualActionRight as Ye } from "./list.css-mistica.js";
94
+ import { InternalBoxed as ke } from "./boxed.js";
95
+ import Ae from "./divider.js";
96
+ import { getPrefixedDataAttributes as E } from "./utils/dom.js";
97
+ import { rowContent as G, touchableBackground as J, touchableBackgroundInverse as K, pointer as le, rowContentPadding as Se, screenReaderOnly as Ve, row as Oe, boxed as He, ul as ce, liWithoutMarker as We, liContent as ne, liWithCustomIcon as ze, li as Ee, content as Me, assetContainer as Xe, center as Q, disabled as T, asset as De, rowBody as je, badge as Fe, rightContent as Pe, rightRestrictedWidth as Ue, detail as qe, detailRight as Ge, dualActionContainer as Je, dualActionLeft as Ke, dualActionDivider as Qe, dualActionRight as Ye } from "./list.css-mistica.js";
98
98
  import { vars as Ze } from "./image.css-mistica.js";
99
99
  import { vars as o } from "./skins/skin-contract.css-mistica.js";
100
100
  import { applyCssVars as _e } from "./utils/css.js";
101
- import { IconButton as ne, ToggleIconButton as oe } from "./icon-button.js";
101
+ import { IconButton as oe, ToggleIconButton as de } from "./icon-button.js";
102
102
  import $e from "./screen-reader-only.js";
103
- const pe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
103
+ import { useTheme as pe } from "./hooks.js";
104
+ const et = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
104
105
  centerY: a
105
106
  }) : a ? /* @__PURE__ */ t("div", {
106
107
  style: {
@@ -111,46 +112,50 @@ const pe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
111
112
  children: /* @__PURE__ */ t("div", {
112
113
  children: e
113
114
  })
114
- }) : e, et = (param)=>{
115
- let { withChevron: e, headline: a, headlineRef: i, extraRef: n, title: d, titleAs: b, titleLinesMax: x, subtitle: R, subtitleLinesMax: A, description: f, descriptionLinesMax: X, detail: u, asset: E, danger: k, badge: S, right: w, rightRef: h, extra: C, labelId: D, disabled: g, control: y } = param;
116
- const V = de(), B = [
115
+ }) : e, tt = (param)=>{
116
+ let { withChevron: e, headline: a, headlineRef: i, extraRef: n, title: d, titleAs: b, titleLinesMax: x, subtitle: w, subtitleLinesMax: A, description: f, descriptionLinesMax: M, detail: h, asset: z, danger: S, badge: V, right: R, rightRef: m, extra: I, labelId: X, disabled: g, control: y } = param;
117
+ const O = se(), B = [
117
118
  a,
118
119
  d,
119
- R,
120
+ w,
120
121
  f,
121
- C
122
- ].filter(Boolean).length === 1;
123
- return /* @__PURE__ */ N("div", {
124
- className: De,
125
- id: D,
122
+ I
123
+ ].filter(Boolean).length === 1, { textPresets: N } = pe();
124
+ return /* @__PURE__ */ C("div", {
125
+ className: Me,
126
+ id: X,
126
127
  children: [
127
- E && /* @__PURE__ */ t("div", {
128
- className: s(je, {
129
- [K]: B,
130
- [L]: g
128
+ z && /* @__PURE__ */ t("div", {
129
+ className: c(Xe, {
130
+ [Q]: B,
131
+ [T]: g
131
132
  }),
132
133
  "aria-hidden": !0,
133
134
  "data-testid": "asset",
134
135
  children: /* @__PURE__ */ t("div", {
135
- className: Fe,
136
+ className: De,
136
137
  style: _e({
137
- color: k ? V ? o.colors.textErrorInverse : o.colors.textError : V ? o.colors.textPrimaryInverse : o.colors.textPrimary,
138
+ color: S ? O ? o.colors.textErrorInverse : o.colors.textError : O ? o.colors.textPrimaryInverse : o.colors.textPrimary,
138
139
  [Ze.mediaBorderRadius]: o.borderRadii.mediaSmall
139
140
  }),
140
- children: E
141
+ children: z
141
142
  })
142
143
  }),
143
- /* @__PURE__ */ N("div", {
144
- className: s(He, {
145
- [L]: g
144
+ /* @__PURE__ */ C("div", {
145
+ className: c(je, {
146
+ [T]: g
146
147
  }),
147
148
  style: {
148
149
  justifyContent: B ? "center" : "flex-start"
149
150
  },
150
151
  children: [
151
- /* @__PURE__ */ t(we, {
152
- regular: !0,
153
- color: k ? o.colors.textError : o.colors.textPrimary,
152
+ /* @__PURE__ */ t(Re, {
153
+ mobileSize: N.text3.size.mobile,
154
+ desktopSize: N.text3.size.desktop,
155
+ mobileLineHeight: N.text3.lineHeight.mobile,
156
+ desktopLineHeight: N.text3.lineHeight.desktop,
157
+ weight: N.rowTitle.weight,
158
+ color: S ? o.colors.textError : o.colors.textPrimary,
154
159
  truncate: x,
155
160
  hyphens: "auto",
156
161
  as: b,
@@ -175,9 +180,9 @@ const pe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
175
180
  children: a
176
181
  })
177
182
  }),
178
- R && /* @__PURE__ */ t(c, {
183
+ w && /* @__PURE__ */ t(s, {
179
184
  paddingTop: 2,
180
- children: /* @__PURE__ */ t(U, {
185
+ children: /* @__PURE__ */ t(q, {
181
186
  regular: !0,
182
187
  color: o.colors.textPrimary,
183
188
  truncate: A,
@@ -185,15 +190,15 @@ const pe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
185
190
  dataAttributes: {
186
191
  testid: "subtitle"
187
192
  },
188
- children: R
193
+ children: w
189
194
  })
190
195
  }),
191
- f && /* @__PURE__ */ t(c, {
196
+ f && /* @__PURE__ */ t(s, {
192
197
  paddingTop: 2,
193
- children: /* @__PURE__ */ t(U, {
198
+ children: /* @__PURE__ */ t(q, {
194
199
  regular: !0,
195
200
  color: o.colors.textSecondary,
196
- truncate: X,
201
+ truncate: M,
197
202
  hyphens: "auto",
198
203
  dataAttributes: {
199
204
  testid: "description"
@@ -201,104 +206,104 @@ const pe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
201
206
  children: f
202
207
  })
203
208
  }),
204
- C && /* @__PURE__ */ t(c, {
209
+ I && /* @__PURE__ */ t(s, {
205
210
  ref: n,
206
211
  paddingTop: 2,
207
212
  dataAttributes: {
208
213
  testid: "slot"
209
214
  },
210
- children: C
215
+ children: I
211
216
  })
212
217
  ]
213
218
  }),
214
- S && /* @__PURE__ */ t(c, {
219
+ V && /* @__PURE__ */ t(s, {
215
220
  paddingLeft: 16,
216
221
  children: /* @__PURE__ */ t("div", {
217
- className: s(ze, {
218
- [L]: g
222
+ className: c(Fe, {
223
+ [T]: g
219
224
  }),
220
225
  children: /* @__PURE__ */ t(Ne, {
221
- value: S === !0 ? void 0 : S
226
+ value: V === !0 ? void 0 : V
222
227
  })
223
228
  })
224
229
  }),
225
- (u || w || e || y) && /* @__PURE__ */ N("div", {
226
- className: s(Pe, {
227
- [Ue]: !!u
230
+ (h || R || e || y) && /* @__PURE__ */ C("div", {
231
+ className: c(Pe, {
232
+ [Ue]: !!h
228
233
  }),
229
234
  children: [
230
- u && /* @__PURE__ */ t("div", {
231
- className: s(qe, {
232
- [L]: g
235
+ h && /* @__PURE__ */ t("div", {
236
+ className: c(qe, {
237
+ [T]: g
233
238
  }),
234
- children: /* @__PURE__ */ t(U, {
239
+ children: /* @__PURE__ */ t(q, {
235
240
  regular: !0,
236
241
  color: o.colors.textSecondary,
237
242
  hyphens: "auto",
238
243
  dataAttributes: {
239
244
  testid: "detail"
240
245
  },
241
- children: u
246
+ children: h
242
247
  })
243
248
  }),
244
- w && /* @__PURE__ */ t("div", {
245
- className: s({
246
- [Ge]: !!u,
247
- [L]: g
249
+ R && /* @__PURE__ */ t("div", {
250
+ className: c({
251
+ [Ge]: !!h,
252
+ [T]: g
248
253
  }),
249
- ref: h,
254
+ ref: m,
250
255
  "data-testid": "endSlot",
251
- children: pe(w, B)
256
+ children: et(R, B)
252
257
  }),
253
258
  e && /* @__PURE__ */ t("div", {
254
259
  style: {
255
- paddingLeft: u || w ? 4 : 0
260
+ paddingLeft: h || R ? 4 : 0
256
261
  },
257
- className: s(K, {
258
- [L]: g
262
+ className: c(Q, {
263
+ [T]: g
259
264
  }),
260
265
  "data-testid": "chevron",
261
266
  children: /* @__PURE__ */ t(Ce, {
262
267
  size: 16,
263
- color: V ? o.colors.inverse : o.colors.neutralMedium
268
+ color: O ? o.colors.inverse : o.colors.neutralMedium
264
269
  })
265
270
  }),
266
271
  y && /* @__PURE__ */ t("div", {
267
272
  style: {
268
- paddingLeft: u || w ? 8 : 0
273
+ paddingLeft: h || R ? 8 : 0
269
274
  },
270
- className: K,
275
+ className: Q,
271
276
  children: y
272
277
  })
273
278
  ]
274
279
  })
275
280
  ]
276
281
  });
277
- }, tt = (param)=>{
282
+ }, at = (param)=>{
278
283
  let { value: e, defaultValue: a, onChange: i } = param;
279
- const n = e !== void 0, [d, b] = m.useState(!!a);
284
+ const n = e !== void 0, [d, b] = u.useState(!!a);
280
285
  return [
281
286
  n ? !!e : d,
282
287
  ()=>{
283
288
  n || b(!d), i == null || i(n ? !e : !d);
284
289
  }
285
290
  ];
286
- }, at = (e)=>[
291
+ }, it = (e)=>[
287
292
  "switch",
288
293
  "checkbox",
289
294
  "radioValue",
290
295
  "iconButton"
291
- ].some((a)=>e[a] !== void 0), se = /*#__PURE__*/ m.forwardRef((e, a)=>{
292
- var ee, te;
293
- const i = m.useId(), n = de(), { asset: d, headline: b, title: x, titleAs: R, titleLinesMax: A, subtitle: f, subtitleLinesMax: X, description: u, descriptionLinesMax: E, detail: k, danger: S, badge: w, role: h, touchableRole: C, extra: D, withChevron: g, dataAttributes: y, right: V, "aria-label": Q, tabIndex: B } = e, [ue, he] = m.useState(""), [me, be] = m.useState(""), [fe, ve] = m.useState(""), xe = [
296
+ ].some((a)=>e[a] !== void 0), he = /*#__PURE__*/ u.forwardRef((e, a)=>{
297
+ var te, ae;
298
+ const i = u.useId(), n = se(), { asset: d, headline: b, title: x, titleAs: w, titleLinesMax: A, subtitle: f, subtitleLinesMax: M, description: h, descriptionLinesMax: z, detail: S, danger: V, badge: R, role: m, touchableRole: I, extra: X, withChevron: g, dataAttributes: y, right: O, "aria-label": Y, tabIndex: B } = e, [N, me] = u.useState(""), [ue, be] = u.useState(""), [fe, ve] = u.useState(""), xe = [
294
299
  x,
295
- ue,
300
+ N,
296
301
  f,
297
- u,
298
- me,
299
- k,
302
+ h,
303
+ ue,
304
+ S,
300
305
  fe
301
- ].filter(Boolean).join(" "), O = Q !== null && Q !== void 0 ? Q : e.href || e.to ? xe : void 0, ge = Le(), v = e.disabled || e.radioValue !== void 0 && ge.disabled, j = !v && !n, F = !v && n, Y = at(e), W = !!e.onPress || !!e.href || !!e.to, ye = Y ? !1 : g !== null && g !== void 0 ? g : W, Z = {
306
+ ].filter(Boolean).join(" "), H = Y !== null && Y !== void 0 ? Y : e.href || e.to ? xe : void 0, ge = Le(), v = e.disabled || e.radioValue !== void 0 && ge.disabled, D = !v && !n, j = !v && n, Z = it(e), W = !!e.onPress || !!e.href || !!e.to, ye = Z ? !1 : g !== null && g !== void 0 ? g : W, _ = {
302
307
  href: e.href,
303
308
  newTab: e.newTab,
304
309
  loadOnTop: e.loadOnTop,
@@ -308,34 +313,34 @@ const pe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
308
313
  onNavigate: e.onNavigate,
309
314
  onPress: e.onPress,
310
315
  trackingEvent: e.trackingEvent,
311
- "aria-label": O,
316
+ "aria-label": H,
312
317
  "aria-labelledby": e["aria-labelledby"],
313
318
  "aria-description": e["aria-description"],
314
319
  "aria-describedby": e["aria-describedby"],
315
320
  "aria-current": e["aria-current"]
316
- }, [_, $] = tt(e.switch || e.checkbox || {}), I = (r)=>/* @__PURE__ */ t(et, {
321
+ }, [$, p] = at(e.switch || e.checkbox || {}), L = (r)=>/* @__PURE__ */ t(tt, {
317
322
  asset: d,
318
323
  headline: b,
319
324
  headlineRef: (l)=>{
320
- l && he(l.textContent || "");
325
+ l && me(l.textContent || "");
321
326
  },
322
327
  title: x,
323
- titleAs: R,
328
+ titleAs: w,
324
329
  subtitle: f,
325
- description: u,
326
- badge: w,
330
+ description: h,
331
+ badge: R,
327
332
  titleLinesMax: A,
328
- subtitleLinesMax: X,
329
- descriptionLinesMax: E,
330
- detail: k,
331
- danger: S,
332
- right: V,
333
+ subtitleLinesMax: M,
334
+ descriptionLinesMax: z,
335
+ detail: S,
336
+ danger: V,
337
+ right: O,
333
338
  rightRef: (l)=>{
334
339
  l && ve(l.innerText || l.textContent || "");
335
340
  },
336
341
  control: r == null ? void 0 : r.control,
337
342
  role: r == null ? void 0 : r.role,
338
- extra: D,
343
+ extra: X,
339
344
  extraRef: (l)=>{
340
345
  l && be(l.innerText || l.textContent || "");
341
346
  },
@@ -343,43 +348,43 @@ const pe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
343
348
  disabled: v,
344
349
  withChevron: ye
345
350
  });
346
- if (W && !Y) return /* @__PURE__ */ t(ae, _object_spread_props(_object_spread({
351
+ if (W && !Z) return /* @__PURE__ */ t(ie, _object_spread_props(_object_spread({
347
352
  ref: a,
348
- className: s(q, {
349
- [G]: j,
350
- [J]: F,
351
- [re]: !v
353
+ className: c(G, {
354
+ [J]: D,
355
+ [K]: j,
356
+ [le]: !v
352
357
  })
353
- }, Z), {
354
- role: C,
358
+ }, _), {
359
+ role: I,
355
360
  dataAttributes: y,
356
361
  disabled: v,
357
362
  tabIndex: B,
358
- children: /* @__PURE__ */ t(c, {
363
+ children: /* @__PURE__ */ t(s, {
359
364
  paddingX: 16,
360
365
  "aria-hidden": !!e.to || !!e.href || void 0,
361
- children: I({
362
- role: h
366
+ children: L({
367
+ role: m
363
368
  })
364
369
  })
365
370
  }));
366
- const H = (r)=>/* @__PURE__ */ N("div", _object_spread_props(_object_spread({
371
+ const F = (r)=>/* @__PURE__ */ C("div", _object_spread_props(_object_spread({
367
372
  className: Je,
368
373
  ref: a
369
- }, M(y)), {
374
+ }, E(y)), {
370
375
  children: [
371
- /* @__PURE__ */ t(ae, _object_spread_props(_object_spread({
376
+ /* @__PURE__ */ t(ie, _object_spread_props(_object_spread({
372
377
  disabled: v
373
- }, Z), {
374
- role: C,
375
- className: s(Ke, {
376
- [G]: j,
377
- [J]: F
378
+ }, _), {
379
+ role: I,
380
+ className: c(Ke, {
381
+ [J]: D,
382
+ [K]: j
378
383
  }),
379
384
  tabIndex: B,
380
- children: I({
385
+ children: L({
381
386
  labelId: i,
382
- role: h
387
+ role: m
383
388
  })
384
389
  })),
385
390
  /* @__PURE__ */ t("div", {
@@ -387,82 +392,82 @@ const pe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
387
392
  }),
388
393
  r
389
394
  ]
390
- })), z = (r, l)=>/* @__PURE__ */ t("div", _object_spread_props(_object_spread({
391
- className: s(q, {
392
- [G]: j && l,
393
- [J]: F && l,
394
- [re]: !v && l
395
+ })), P = (r, l)=>/* @__PURE__ */ t("div", _object_spread_props(_object_spread({
396
+ className: c(G, {
397
+ [J]: D && l,
398
+ [K]: j && l,
399
+ [le]: !v && l
395
400
  }),
396
401
  ref: a
397
- }, M(y)), {
402
+ }, E(y)), {
398
403
  children: r
399
404
  }));
400
405
  if (e.switch || e.checkbox) {
401
406
  var _ref, _ref1;
402
- const r = e.switch ? Ie : Te, l = (_ref1 = (_ref = (ee = e.switch) == null ? void 0 : ee.name) !== null && _ref !== void 0 ? _ref : (te = e.checkbox) == null ? void 0 : te.name) !== null && _ref1 !== void 0 ? _ref1 : i;
403
- return W ? H(/* @__PURE__ */ t(r, {
407
+ const r = e.switch ? Ie : Te, l = (_ref1 = (_ref = (te = e.switch) == null ? void 0 : te.name) !== null && _ref !== void 0 ? _ref : (ae = e.checkbox) == null ? void 0 : ae.name) !== null && _ref1 !== void 0 ? _ref1 : i;
408
+ return W ? F(/* @__PURE__ */ t(r, {
404
409
  disabled: v,
405
410
  name: l,
406
- checked: _,
407
- "aria-label": O,
411
+ checked: $,
412
+ "aria-label": H,
408
413
  "aria-labelledby": i,
409
- onChange: $,
414
+ onChange: p,
410
415
  render: (param)=>{
411
- let { controlElement: P } = param;
416
+ let { controlElement: U } = param;
412
417
  return /* @__PURE__ */ t("div", {
413
418
  className: Ye,
414
- children: P
419
+ children: U
415
420
  });
416
421
  }
417
- })) : z(/* @__PURE__ */ t(r, {
422
+ })) : P(/* @__PURE__ */ t(r, {
418
423
  disabled: v,
419
424
  name: l,
420
- checked: _,
421
- "aria-label": O,
425
+ checked: $,
426
+ "aria-label": H,
422
427
  "aria-labelledby": i,
423
- onChange: $,
428
+ onChange: p,
424
429
  render: (param)=>{
425
- let { controlElement: P, labelId: Re } = param;
426
- return /* @__PURE__ */ t(c, {
430
+ let { controlElement: U, labelId: we } = param;
431
+ return /* @__PURE__ */ t(s, {
427
432
  paddingX: 16,
428
- role: h,
429
- children: I({
430
- labelId: Re,
431
- control: /* @__PURE__ */ t(T, {
433
+ role: m,
434
+ children: L({
435
+ labelId: we,
436
+ control: /* @__PURE__ */ t(k, {
432
437
  space: "around",
433
- children: P
438
+ children: U
434
439
  })
435
440
  })
436
441
  });
437
442
  }
438
443
  }), !0);
439
444
  }
440
- if (e.radioValue) return W ? H(/* @__PURE__ */ t(ie, {
445
+ if (e.radioValue) return W ? F(/* @__PURE__ */ t(re, {
441
446
  value: e.radioValue,
442
- "aria-label": O,
447
+ "aria-label": H,
443
448
  "aria-labelledby": i,
444
449
  render: (param)=>{
445
450
  let { controlElement: r } = param;
446
- return /* @__PURE__ */ t(T, {
451
+ return /* @__PURE__ */ t(k, {
447
452
  space: "around",
448
- children: /* @__PURE__ */ t(c, {
453
+ children: /* @__PURE__ */ t(s, {
449
454
  paddingX: 16,
450
455
  children: r
451
456
  })
452
457
  });
453
458
  }
454
- })) : z(/* @__PURE__ */ t(ie, {
459
+ })) : P(/* @__PURE__ */ t(re, {
455
460
  value: e.radioValue,
456
- "aria-label": O,
461
+ "aria-label": H,
457
462
  "aria-labelledby": i,
458
463
  render: (param)=>{
459
464
  let { controlElement: r } = param;
460
- return /* @__PURE__ */ t(c, {
465
+ return /* @__PURE__ */ t(s, {
461
466
  paddingX: 16,
462
- role: h,
463
- children: I({
467
+ role: m,
468
+ children: L({
464
469
  labelId: i,
465
- control: /* @__PURE__ */ t(T, {
470
+ control: /* @__PURE__ */ t(k, {
466
471
  space: "around",
467
472
  children: r
468
473
  })
@@ -470,47 +475,47 @@ const pe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
470
475
  });
471
476
  }
472
477
  }), !0);
473
- if (e.iconButton) return W ? H(/* @__PURE__ */ t(c, {
478
+ if (e.iconButton) return W ? F(/* @__PURE__ */ t(s, {
474
479
  padding: 16,
475
- children: /* @__PURE__ */ t(T, {
480
+ children: /* @__PURE__ */ t(k, {
476
481
  space: "around",
477
- children: e.iconButton.Icon ? /* @__PURE__ */ t(ne, _object_spread_props(_object_spread({}, e.iconButton), {
482
+ children: e.iconButton.Icon ? /* @__PURE__ */ t(oe, _object_spread_props(_object_spread({}, e.iconButton), {
478
483
  disabled: e.disabled
479
- })) : /* @__PURE__ */ t(oe, _object_spread_props(_object_spread({}, e.iconButton), {
484
+ })) : /* @__PURE__ */ t(de, _object_spread_props(_object_spread({}, e.iconButton), {
480
485
  disabled: e.disabled
481
486
  }))
482
487
  })
483
- })) : z(/* @__PURE__ */ t(c, {
488
+ })) : P(/* @__PURE__ */ t(s, {
484
489
  paddingX: 16,
485
- children: I({
490
+ children: L({
486
491
  labelId: i,
487
- control: /* @__PURE__ */ t(T, {
492
+ control: /* @__PURE__ */ t(k, {
488
493
  space: "around",
489
- children: e.iconButton.Icon ? /* @__PURE__ */ t(ne, _object_spread_props(_object_spread({}, e.iconButton), {
494
+ children: e.iconButton.Icon ? /* @__PURE__ */ t(oe, _object_spread_props(_object_spread({}, e.iconButton), {
490
495
  disabled: e.disabled,
491
- role: h
492
- })) : /* @__PURE__ */ t(oe, _object_spread_props(_object_spread({}, e.iconButton), {
496
+ role: m
497
+ })) : /* @__PURE__ */ t(de, _object_spread_props(_object_spread({}, e.iconButton), {
493
498
  disabled: e.disabled,
494
- role: h
499
+ role: m
495
500
  }))
496
501
  })
497
502
  })
498
503
  }));
499
- const p = !!e["aria-label"];
500
- return /* @__PURE__ */ N("div", _object_spread_props(_object_spread({
501
- className: s(q, Se),
502
- role: h
503
- }, M(y)), {
504
+ const ee = !!e["aria-label"];
505
+ return /* @__PURE__ */ C("div", _object_spread_props(_object_spread({
506
+ className: c(G, Se),
507
+ role: m
508
+ }, E(y)), {
504
509
  ref: a,
505
510
  tabIndex: B,
506
511
  children: [
507
512
  /* @__PURE__ */ t("div", {
508
- "aria-hidden": p,
509
- children: I({
510
- role: h
513
+ "aria-hidden": ee,
514
+ children: L({
515
+ role: m
511
516
  })
512
517
  }),
513
- p && /* @__PURE__ */ t($e, {
518
+ ee && /* @__PURE__ */ t($e, {
514
519
  className: Ve,
515
520
  children: /* @__PURE__ */ t("span", {
516
521
  children: e["aria-label"]
@@ -518,7 +523,7 @@ const pe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
518
523
  })
519
524
  ]
520
525
  }));
521
- }), Ct = /*#__PURE__*/ m.forwardRef((_param, n)=>{
526
+ }), Lt = /*#__PURE__*/ u.forwardRef((_param, n)=>{
522
527
  var { dataAttributes: e, role: a = "listitem" } = _param, i = _object_without_properties(_param, [
523
528
  "dataAttributes",
524
529
  "role"
@@ -526,7 +531,7 @@ const pe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
526
531
  return /* @__PURE__ */ t("div", {
527
532
  role: a,
528
533
  className: Oe,
529
- children: /* @__PURE__ */ t(se, _object_spread_props(_object_spread({}, i), {
534
+ children: /* @__PURE__ */ t(he, _object_spread_props(_object_spread({}, i), {
530
535
  ref: n,
531
536
  dataAttributes: _object_spread({
532
537
  "component-name": "Row",
@@ -534,43 +539,43 @@ const pe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
534
539
  }, e)
535
540
  }))
536
541
  });
537
- }), It = (param)=>{
542
+ }), Tt = (param)=>{
538
543
  let { children: e, ariaLabelledby: a, role: i = "list", "aria-live": n = "off", "aria-atomic": d = !1, dataAttributes: b } = param;
539
- const x = m.Children.toArray(e).filter(Boolean), R = x.length - 1;
544
+ const x = u.Children.toArray(e).filter(Boolean), w = x.length - 1;
540
545
  return /* @__PURE__ */ t("div", _object_spread_props(_object_spread({
541
546
  role: i,
542
547
  "aria-labelledby": a,
543
548
  "aria-live": n,
544
549
  "aria-atomic": d
545
- }, M(b, "RowList")), {
546
- children: x.map((A, f)=>/* @__PURE__ */ N(m.Fragment, {
550
+ }, E(b, "RowList")), {
551
+ children: x.map((A, f)=>/* @__PURE__ */ C(u.Fragment, {
547
552
  children: [
548
553
  A,
549
- f < R && /* @__PURE__ */ t(c, {
554
+ f < w && /* @__PURE__ */ t(s, {
550
555
  paddingX: 16,
551
- children: /* @__PURE__ */ t(ke, {})
556
+ children: /* @__PURE__ */ t(Ae, {})
552
557
  })
553
558
  ]
554
559
  }, f))
555
560
  }));
556
- }, Lt = /*#__PURE__*/ m.forwardRef((_param, i)=>{
561
+ }, kt = /*#__PURE__*/ u.forwardRef((_param, i)=>{
557
562
  var { dataAttributes: e } = _param, a = _object_without_properties(_param, [
558
563
  "dataAttributes"
559
564
  ]);
560
- return /* @__PURE__ */ t(Ae, {
565
+ return /* @__PURE__ */ t(ke, {
561
566
  overflow: "visible",
562
- className: We,
567
+ className: He,
563
568
  variant: a.isInverse ? "inverse" : "default",
564
569
  ref: i,
565
570
  dataAttributes: _object_spread({
566
571
  "component-name": "BoxedRow",
567
572
  testid: "BoxedRow"
568
573
  }, e),
569
- children: /* @__PURE__ */ t(se, _object_spread({}, a))
574
+ children: /* @__PURE__ */ t(he, _object_spread({}, a))
570
575
  });
571
- }), Tt = (param)=>{
576
+ }), At = (param)=>{
572
577
  let { children: e, ariaLabelledby: a, role: i = "list", dataAttributes: n, "aria-live": d = "off", "aria-atomic": b = !1 } = param;
573
- return /* @__PURE__ */ t(T, {
578
+ return /* @__PURE__ */ t(k, {
574
579
  space: 16,
575
580
  role: i,
576
581
  "aria-labelledby": a,
@@ -582,7 +587,7 @@ const pe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
582
587
  }, n),
583
588
  children: e
584
589
  });
585
- }, At = (param)=>{
590
+ }, St = (param)=>{
586
591
  let { children: e, "aria-label": a, "aria-labelledby": i } = param;
587
592
  return(// role="list" is needed for accesibility in Safari+VoiceOver. See: https://developer.mozilla.org/en-US/docs/Web/CSS/list-style#accessibility
588
593
  // eslint-disable-next-line jsx-a11y/no-redundant-roles
@@ -593,7 +598,7 @@ const pe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
593
598
  "aria-labelledby": i,
594
599
  children: e
595
600
  }));
596
- }, kt = (param)=>{
601
+ }, Vt = (param)=>{
597
602
  let { children: e, "aria-label": a, "aria-labelledby": i } = param;
598
603
  return(// role="list" is needed for accesibility in Safari+VoiceOver. See: https://developer.mozilla.org/en-US/docs/Web/CSS/list-style#accessibility
599
604
  // eslint-disable-next-line jsx-a11y/no-redundant-roles
@@ -604,12 +609,12 @@ const pe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
604
609
  "aria-labelledby": i,
605
610
  children: e
606
611
  }));
607
- }, St = (param)=>{
612
+ }, Ot = (param)=>{
608
613
  let { children: e, Icon: a, icon: i, withMarker: n = !0 } = param;
609
- return n ? a || i ? /* @__PURE__ */ N("li", {
610
- className: Me,
614
+ return n ? a || i ? /* @__PURE__ */ C("li", {
615
+ className: ze,
611
616
  children: [
612
- /* @__PURE__ */ t(c, {
617
+ /* @__PURE__ */ t(s, {
613
618
  paddingRight: {
614
619
  mobile: 8,
615
620
  desktop: 16
@@ -620,19 +625,19 @@ const pe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
620
625
  }) : i
621
626
  }),
622
627
  /* @__PURE__ */ t("div", {
623
- className: le,
628
+ className: ne,
624
629
  children: e
625
630
  })
626
631
  ]
627
632
  }) : /* @__PURE__ */ t("li", {
628
- className: Xe,
633
+ className: Ee,
629
634
  children: e
630
635
  }) : /* @__PURE__ */ t("li", {
631
- className: Ee,
636
+ className: We,
632
637
  children: /* @__PURE__ */ t("div", {
633
- className: le,
638
+ className: ne,
634
639
  children: e
635
640
  })
636
641
  });
637
642
  };
638
- export { Lt as BoxedRow, Tt as BoxedRowList, et as Content, St as ListItem, kt as OrderedList, Ct as Row, It as RowList, At as UnorderedList };
643
+ export { kt as BoxedRow, At as BoxedRowList, tt as Content, Ot as ListItem, Vt as OrderedList, Lt as Row, Tt as RowList, St as UnorderedList };