@telefonica/mistica 14.4.1 → 14.5.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.
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
2
  import "./list.css.ts.vanilla.js";
3
- var _ = "_1y2v1nf5i _1y2v1nf60 _1y2v1nf62", f = "_1y2v1nf5r _1y2v1nf8q _1y2v1nf85 _1y2v1nf60", y = "_1y2v1nf5i _1y2v1nf5x", r = "_1y2v1nf5i _1y2v1nf7p _1y2v1nf9b", a = "_2buj9g0", i = "_1y2v1nf5i _1y2v1nf5n", t = "_1y2v1nf65 _1y2v1nf6j _1y2v1nf6x _1y2v1nf7b _1y2v1nf5k _1y2v1nf9g _1y2v1nf5c _1y2v1nf72 _1y2v1nf7g _1y2v1nf63", o = "_2buj9gi _1y2v1nf65 _1y2v1nf6j _1y2v1nf6x _1y2v1nf7b _1y2v1nf5k _1y2v1nf9g _1y2v1nf5c _1y2v1nf72 _1y2v1nf7g _1y2v1nf5i _1y2v1nf5x _1y2v1nf62 _1y2v1nf7q", g = "_2buj9g1", e = "_1y2v1nf9n", b = "_2buj9gb", c = "_1y2v1nf5i _1y2v1nf5o _1y2v1nf64", d = "_1y2v1nf65 _1y2v1nf6j _1y2v1nf6x _1y2v1nf7b _1y2v1nf7p _1y2v1nf9g _1y2v1nf5c";
4
- export { _ as asset, f as badge, y as center, r as content, a as disabled, i as dualActionContainer, t as dualActionLeft, o as dualActionRight, g as hoverBackground, e as pointer, b as right, c as rowBody, d as rowContent };
3
+ var _ = "_1y2v1nf5i _1y2v1nf60 _1y2v1nf62", f = "_1y2v1nf5r _1y2v1nf8q _1y2v1nf85 _1y2v1nf60", y = "_1y2v1nf5i _1y2v1nf5x", r = "_1y2v1nf5i _1y2v1nf7p _1y2v1nf9b", a = "_2buj9g0", i = "_1y2v1nf5i _1y2v1nf5n", t = "_2buj9gi _1y2v1nf5i", o = "_1y2v1nf65 _1y2v1nf6j _1y2v1nf6x _1y2v1nf7b _1y2v1nf5k _1y2v1nf9g _1y2v1nf5c _1y2v1nf72 _1y2v1nf7g _1y2v1nf63", g = "_2buj9gk _1y2v1nf65 _1y2v1nf6j _1y2v1nf6x _1y2v1nf7b _1y2v1nf5k _1y2v1nf9g _1y2v1nf5c _1y2v1nf72 _1y2v1nf7g _1y2v1nf5i _1y2v1nf5x _1y2v1nf62 _1y2v1nf7q", e = "_2buj9g1", b = "_1y2v1nf9n", c = "_2buj9gb", d = "_1y2v1nf5i _1y2v1nf5o _1y2v1nf64", u = "_1y2v1nf65 _1y2v1nf6j _1y2v1nf6x _1y2v1nf7b _1y2v1nf7p _1y2v1nf9g _1y2v1nf5c";
4
+ export { _ as asset, f as badge, y as center, r as content, a as disabled, i as dualActionContainer, t as dualActionDivider, o as dualActionLeft, g as dualActionRight, e as hoverBackground, b as pointer, c as right, d as rowBody, u as rowContent };
package/dist-es/list.js CHANGED
@@ -77,26 +77,26 @@ function _objectWithoutPropertiesLoose(source, excluded) {
77
77
  }
78
78
  return target;
79
79
  }
80
- import * as x from "react";
81
- import c from "classnames";
82
- import { BaseTouchable as I } from "./touchable.js";
83
- import { Text1 as _, Text3 as $, Text2 as z } from "./text.js";
84
- import s from "./box.js";
85
- import A from "./stack.js";
80
+ import * as R from "react";
81
+ import o from "classnames";
82
+ import { BaseTouchable as y } from "./touchable.js";
83
+ import { Text1 as te, Text3 as ne, Text2 as z } from "./text.js";
84
+ import d from "./box.js";
85
+ import k from "./stack.js";
86
86
  import G from "./badge.js";
87
- import { useAriaId as p } from "./hooks.js";
88
- import { useIsInverseVariant as Q } from "./theme-variant-context.js";
87
+ import { useAriaId as re } from "./hooks.js";
88
+ import { useIsInverseVariant as $ } from "./theme-variant-context.js";
89
89
  import H from "./icons/icon-chevron.js";
90
- import ee from "./switch-component.js";
91
- import te, { useRadioContext as ne } from "./radio-button.js";
92
- import re from "./checkbox.js";
93
- import { Boxed as ie } from "./boxed.js";
94
- import oe from "./divider.js";
95
- import { getPrefixedDataAttributes as ce } from "./utils/dom.js";
96
- import { rowContent as C, hoverBackground as R, pointer as L, dualActionContainer as ae, dualActionLeft as le, dualActionRight as de, content as se, center as M, disabled as y, asset as me, rowBody as he, right as J, badge as ue } from "./list.css-mistica.js";
90
+ import ie from "./switch-component.js";
91
+ import J, { useRadioContext as ae } from "./radio-button.js";
92
+ import oe from "./checkbox.js";
93
+ import { Boxed as ce } from "./boxed.js";
94
+ import le from "./divider.js";
95
+ import { getPrefixedDataAttributes as de } from "./utils/dom.js";
96
+ import { rowContent as N, hoverBackground as w, pointer as A, dualActionContainer as K, dualActionLeft as Q, dualActionDivider as U, dualActionRight as se, content as me, center as X, disabled as P, asset as he, rowBody as ue, right as Z, badge as fe } from "./list.css-mistica.js";
97
97
  import { vars as g } from "./skins/skin-contract.css-mistica.js";
98
- import { jsx as t, jsxs as k, Fragment as fe } from "./_virtual/jsx-runtime.js";
99
- const K = (e, r)=>typeof e == "function" ? e == null ? void 0 : e({
98
+ import { jsx as t, jsxs as C, Fragment as ge } from "./_virtual/jsx-runtime.js";
99
+ const _ = (e, r)=>typeof e == "function" ? e == null ? void 0 : e({
100
100
  centerY: r
101
101
  }) : r ? /* @__PURE__ */ t("div", {
102
102
  style: {
@@ -105,110 +105,110 @@ const K = (e, r)=>typeof e == "function" ? e == null ? void 0 : e({
105
105
  height: "100%"
106
106
  },
107
107
  children: e
108
- }) : e, ge = (param)=>{
109
- let { withChevron: e , headline: r , title: i , titleLinesMax: o , subtitle: a , subtitleLinesMax: v , description: l , descriptionLinesMax: N , asset: b , type: P = "basic" , badge: B , right: T , extra: S , labelId: m , disabled: u } = param;
110
- const h = Q(), n = [
108
+ }) : e, ve = (param)=>{
109
+ let { withChevron: e , headline: r , title: i , titleLinesMax: a , subtitle: l , subtitleLinesMax: v , description: s , descriptionLinesMax: B , asset: b , type: I = "basic" , badge: L , right: T , extra: V , labelId: m , disabled: u } = param;
110
+ const h = $(), n = [
111
111
  r,
112
112
  i,
113
- a,
114
113
  l,
115
- S
116
- ].filter(Boolean).length === 1, V = ()=>B ? /* @__PURE__ */ t(s, {
114
+ s,
115
+ V
116
+ ].filter(Boolean).length === 1, S = ()=>L ? /* @__PURE__ */ t(d, {
117
117
  paddingLeft: 16,
118
118
  children: /* @__PURE__ */ t("div", {
119
- className: c(M, ue, {
120
- [y]: u
119
+ className: o(X, fe, {
120
+ [P]: u
121
121
  }),
122
- children: B === !0 ? /* @__PURE__ */ t(G, {}) : /* @__PURE__ */ t(G, {
123
- value: B
122
+ children: L === !0 ? /* @__PURE__ */ t(G, {}) : /* @__PURE__ */ t(G, {
123
+ value: L
124
124
  })
125
125
  })
126
126
  }) : null;
127
- return /* @__PURE__ */ k(s, {
127
+ return /* @__PURE__ */ C(d, {
128
128
  paddingY: 16,
129
- className: se,
129
+ className: me,
130
130
  children: [
131
- b && /* @__PURE__ */ t(s, {
131
+ b && /* @__PURE__ */ t(d, {
132
132
  paddingRight: 16,
133
- className: c({
134
- [M]: n,
135
- [y]: u
133
+ className: o({
134
+ [X]: n,
135
+ [P]: u
136
136
  }),
137
137
  children: /* @__PURE__ */ t("div", {
138
- className: me,
138
+ className: he,
139
139
  children: b
140
140
  })
141
141
  }),
142
142
  /* @__PURE__ */ t("div", {
143
- className: c(he, {
144
- [y]: u
143
+ className: o(ue, {
144
+ [P]: u
145
145
  }),
146
146
  style: {
147
147
  justifyContent: n ? "center" : "flex-start"
148
148
  },
149
- children: /* @__PURE__ */ k(A, {
149
+ children: /* @__PURE__ */ C(k, {
150
150
  space: 4,
151
151
  children: [
152
- r && /* @__PURE__ */ t(_, {
152
+ r && /* @__PURE__ */ t(te, {
153
153
  regular: !0,
154
154
  color: g.colors.textPrimary,
155
155
  children: r
156
156
  }),
157
- /* @__PURE__ */ k(A, {
157
+ /* @__PURE__ */ C(k, {
158
158
  space: 2,
159
159
  children: [
160
- /* @__PURE__ */ t($, {
160
+ /* @__PURE__ */ t(ne, {
161
161
  regular: !0,
162
162
  color: g.colors.textPrimary,
163
- truncate: o,
163
+ truncate: a,
164
164
  id: m,
165
165
  children: i
166
166
  }),
167
- a && /* @__PURE__ */ t(z, {
167
+ l && /* @__PURE__ */ t(z, {
168
168
  regular: !0,
169
169
  color: g.colors.textSecondary,
170
170
  truncate: v,
171
- children: a
171
+ children: l
172
172
  }),
173
- l && /* @__PURE__ */ t(z, {
173
+ s && /* @__PURE__ */ t(z, {
174
174
  regular: !0,
175
175
  color: g.colors.textSecondary,
176
- truncate: N,
177
- children: l
176
+ truncate: B,
177
+ children: s
178
178
  }),
179
- S
179
+ V
180
180
  ]
181
181
  })
182
182
  ]
183
183
  })
184
184
  }),
185
- V(),
186
- P === "chevron" && /* @__PURE__ */ t(s, {
185
+ S(),
186
+ I === "chevron" && /* @__PURE__ */ t(d, {
187
187
  paddingLeft: 16,
188
- className: c(M, {
189
- [y]: u
188
+ className: o(X, {
189
+ [P]: u
190
190
  }),
191
191
  children: /* @__PURE__ */ t(H, {
192
192
  color: h ? g.colors.inverse : g.colors.neutralMedium,
193
193
  direction: "right"
194
194
  })
195
195
  }),
196
- P === "control" && /* @__PURE__ */ t("div", {
197
- className: J,
198
- children: K(T, n)
196
+ I === "control" && /* @__PURE__ */ t("div", {
197
+ className: Z,
198
+ children: _(T, n)
199
199
  }),
200
- P === "custom" && /* @__PURE__ */ k(fe, {
200
+ I === "custom" && /* @__PURE__ */ C(ge, {
201
201
  children: [
202
202
  /* @__PURE__ */ t("div", {
203
- className: c(J, {
204
- [y]: u
203
+ className: o(Z, {
204
+ [P]: u
205
205
  }),
206
- children: K(T, n)
206
+ children: _(T, n)
207
207
  }),
208
- e && /* @__PURE__ */ t(s, {
208
+ e && /* @__PURE__ */ t(d, {
209
209
  paddingLeft: 4,
210
- className: c(M, {
211
- [y]: u
210
+ className: o(X, {
211
+ [P]: u
212
212
  }),
213
213
  children: /* @__PURE__ */ t(H, {
214
214
  color: h ? g.colors.inverse : g.colors.neutralMedium,
@@ -219,66 +219,66 @@ const K = (e, r)=>typeof e == "function" ? e == null ? void 0 : e({
219
219
  })
220
220
  ]
221
221
  });
222
- }, ve = (param)=>{
222
+ }, be = (param)=>{
223
223
  let { value: e , defaultValue: r , onChange: i } = param;
224
- const o = e !== void 0, [a, v] = x.useState(!!r), l = ()=>{
225
- o || v(!a), i && i(o ? !e : !a);
224
+ const a = e !== void 0, [l, v] = R.useState(!!r), s = ()=>{
225
+ a || v(!l), i && i(a ? !e : !l);
226
226
  };
227
- return o ? [
227
+ return a ? [
228
228
  !!e,
229
- l
229
+ s
230
230
  ] : [
231
- a,
232
- l
231
+ l,
232
+ s
233
233
  ];
234
- }, be = (e)=>"switch" in e, xe = (e)=>"checkbox" in e, we = (e)=>"radioValue" in e, U = /*#__PURE__*/ x.forwardRef((e, r)=>{
235
- const i = p(), o = Q(), { asset: a , headline: v , title: l , titleLinesMax: N , subtitle: b , subtitleLinesMax: P , description: B , descriptionLinesMax: T , badge: S , role: m , extra: u , dataAttributes: h } = e, D = ne(), n = e.disabled || e.radioValue !== void 0 && D.disabled, [V, W] = ve(e.switch || e.checkbox || {}), w = (param)=>/* @__PURE__ */ {
236
- let { type: d , right: f , labelId: E } = param;
237
- return t(ge, {
238
- asset: a,
234
+ }, xe = (e)=>"switch" in e, we = (e)=>"checkbox" in e, Ce = (e)=>"radioValue" in e, p = /*#__PURE__*/ R.forwardRef((e, r)=>{
235
+ const i = re(), a = $(), { asset: l , headline: v , title: s , titleLinesMax: B , subtitle: b , subtitleLinesMax: I , description: L , descriptionLinesMax: T , badge: V , role: m , extra: u , dataAttributes: h } = e, j = ae(), n = e.disabled || e.radioValue !== void 0 && j.disabled, [S, W] = be(e.switch || e.checkbox || {}), x = (param)=>/* @__PURE__ */ {
236
+ let { type: c , right: f , labelId: E } = param;
237
+ return t(ve, {
238
+ asset: l,
239
239
  headline: v,
240
- title: l,
240
+ title: s,
241
241
  subtitle: b,
242
- description: B,
243
- badge: S,
244
- titleLinesMax: N,
245
- subtitleLinesMax: P,
242
+ description: L,
243
+ badge: V,
244
+ titleLinesMax: B,
245
+ subtitleLinesMax: I,
246
246
  descriptionLinesMax: T,
247
- type: d,
247
+ type: c,
248
248
  right: f,
249
249
  extra: u,
250
250
  labelId: E,
251
251
  disabled: n,
252
252
  withChevron: !!e.onPress || !!e.href || !!e.to
253
253
  });
254
- }, X = (d)=>{
254
+ }, M = (c)=>{
255
255
  let f = "chevron";
256
- return d.right === null && (f = "basic"), d.right && (f = "custom"), /* @__PURE__ */ t(s, {
256
+ return c.right === null && (f = "basic"), c.right && (f = "custom"), /* @__PURE__ */ t(d, {
257
257
  paddingX: 16,
258
258
  ref: r,
259
- children: w({
259
+ children: x({
260
260
  type: f,
261
- right: d.right
261
+ right: c.right
262
262
  })
263
263
  });
264
264
  };
265
- if (e.onPress && !be(e) && !xe(e) && !we(e)) return /* @__PURE__ */ t(I, {
265
+ if (e.onPress && !xe(e) && !we(e) && !Ce(e)) return /* @__PURE__ */ t(y, {
266
266
  ref: r,
267
- className: c(C, {
268
- [R]: !(n || o),
269
- [L]: !n
267
+ className: o(N, {
268
+ [w]: !(n || a),
269
+ [A]: !n
270
270
  }),
271
271
  trackingEvent: e.trackingEvent,
272
272
  onPress: e.onPress,
273
273
  role: m,
274
274
  dataAttributes: h,
275
275
  disabled: n,
276
- children: X(e)
276
+ children: M(e)
277
277
  });
278
- if (e.to) return /* @__PURE__ */ t(I, {
279
- className: c(C, {
280
- [R]: !(n || o),
281
- [L]: !n
278
+ if (e.to) return /* @__PURE__ */ t(y, {
279
+ className: o(N, {
280
+ [w]: !(n || a),
281
+ [A]: !n
282
282
  }),
283
283
  trackingEvent: e.trackingEvent,
284
284
  to: e.to,
@@ -286,12 +286,12 @@ const K = (e, r)=>typeof e == "function" ? e == null ? void 0 : e({
286
286
  role: m,
287
287
  dataAttributes: h,
288
288
  disabled: n,
289
- children: X(e)
289
+ children: M(e)
290
290
  });
291
- if (e.href) return /* @__PURE__ */ t(I, {
292
- className: c(C, {
293
- [R]: !(n || o),
294
- [L]: !n
291
+ if (e.href) return /* @__PURE__ */ t(y, {
292
+ className: o(N, {
293
+ [w]: !(n || a),
294
+ [A]: !n
295
295
  }),
296
296
  trackingEvent: e.trackingEvent,
297
297
  href: e.href,
@@ -299,65 +299,68 @@ const K = (e, r)=>typeof e == "function" ? e == null ? void 0 : e({
299
299
  role: m,
300
300
  dataAttributes: h,
301
301
  disabled: n,
302
- children: X(e)
302
+ children: M(e)
303
303
  });
304
- const F = (d)=>{
304
+ const F = (c)=>{
305
305
  var E, O, Y, q;
306
306
  const f = (q = (Y = (E = e.switch) == null ? void 0 : E.name) != null ? Y : (O = e.checkbox) == null ? void 0 : O.name) != null ? q : i;
307
- return e.onPress ? /* @__PURE__ */ k("div", {
308
- className: ae,
307
+ return e.onPress ? /* @__PURE__ */ C("div", {
308
+ className: K,
309
309
  children: [
310
- /* @__PURE__ */ t(I, {
310
+ /* @__PURE__ */ t(y, {
311
311
  disabled: n,
312
312
  onPress: e.onPress,
313
313
  role: m,
314
- className: c(le, {
315
- [R]: !(n || o)
314
+ className: o(Q, {
315
+ [w]: !(n || a)
316
316
  }),
317
- children: w({
317
+ children: x({
318
318
  type: "basic",
319
319
  labelId: i
320
320
  })
321
321
  }),
322
- /* @__PURE__ */ t(I, {
322
+ /* @__PURE__ */ t("div", {
323
+ className: U
324
+ }),
325
+ /* @__PURE__ */ t(y, {
323
326
  disabled: n,
324
- className: de,
327
+ className: se,
325
328
  onPress: W,
326
329
  dataAttributes: h,
327
- children: /* @__PURE__ */ t(d, {
330
+ children: /* @__PURE__ */ t(c, {
328
331
  disabled: n,
329
332
  name: f,
330
- checked: V,
333
+ checked: S,
331
334
  "aria-labelledby": i,
332
335
  render: (param)=>{
333
- let { controlElement: j } = param;
334
- return j;
336
+ let { controlElement: D } = param;
337
+ return D;
335
338
  }
336
339
  })
337
340
  })
338
341
  ]
339
342
  }) : /* @__PURE__ */ t("div", {
340
- className: c(C, {
341
- [R]: !(n || o),
342
- [L]: !n
343
+ className: o(N, {
344
+ [w]: !(n || a),
345
+ [A]: !n
343
346
  }),
344
- children: /* @__PURE__ */ t(d, {
347
+ children: /* @__PURE__ */ t(c, {
345
348
  disabled: n,
346
349
  dataAttributes: h,
347
350
  name: f,
348
- checked: V,
351
+ checked: S,
349
352
  onChange: W,
350
353
  render: (param)=>/* @__PURE__ */ {
351
- let { controlElement: j , labelId: Z } = param;
352
- return t(s, {
354
+ let { controlElement: D , labelId: ee } = param;
355
+ return t(d, {
353
356
  paddingX: 16,
354
357
  role: m,
355
- children: w({
356
- labelId: Z,
358
+ children: x({
359
+ labelId: ee,
357
360
  type: "control",
358
- right: ()=>/* @__PURE__ */ t(A, {
361
+ right: ()=>/* @__PURE__ */ t(k, {
359
362
  space: "around",
360
- children: j
363
+ children: D
361
364
  })
362
365
  })
363
366
  });
@@ -365,92 +368,126 @@ const K = (e, r)=>typeof e == "function" ? e == null ? void 0 : e({
365
368
  })
366
369
  });
367
370
  };
368
- return e.switch ? F(ee) : e.checkbox ? F(re) : e.radioValue ? /* @__PURE__ */ t("div", {
369
- className: c(C, {
370
- [R]: !(n || o),
371
- [L]: !n
371
+ return e.switch ? F(ie) : e.checkbox ? F(oe) : e.radioValue ? e.onPress ? /* @__PURE__ */ C("div", {
372
+ className: K,
373
+ children: [
374
+ /* @__PURE__ */ t(y, {
375
+ disabled: n,
376
+ onPress: e.onPress,
377
+ role: m,
378
+ className: o(Q, {
379
+ [w]: !(n || a)
380
+ }),
381
+ children: x({
382
+ type: "basic",
383
+ labelId: i
384
+ })
385
+ }),
386
+ /* @__PURE__ */ t("div", {
387
+ className: U
388
+ }),
389
+ /* @__PURE__ */ t(J, {
390
+ dataAttributes: h,
391
+ value: e.radioValue,
392
+ "aria-labelledby": i,
393
+ render: (param)=>/* @__PURE__ */ {
394
+ let { controlElement: c } = param;
395
+ return t(k, {
396
+ space: "around",
397
+ children: /* @__PURE__ */ t(d, {
398
+ paddingX: 16,
399
+ children: c
400
+ })
401
+ });
402
+ }
403
+ })
404
+ ]
405
+ }) : /* @__PURE__ */ t("div", {
406
+ className: o(N, {
407
+ [w]: !(n || a),
408
+ [A]: !n
372
409
  }),
373
410
  role: m,
374
411
  ref: r,
375
- children: /* @__PURE__ */ t(te, {
412
+ children: /* @__PURE__ */ t(J, {
376
413
  dataAttributes: h,
377
414
  value: e.radioValue,
378
415
  "aria-labelledby": i,
379
416
  render: (param)=>/* @__PURE__ */ {
380
- let { controlElement: d } = param;
381
- return t(s, {
417
+ let { controlElement: c } = param;
418
+ return t(d, {
382
419
  paddingX: 16,
383
- children: w({
420
+ children: x({
384
421
  labelId: i,
385
422
  type: "control",
386
- right: ()=>/* @__PURE__ */ t(A, {
423
+ right: ()=>/* @__PURE__ */ t(k, {
387
424
  space: "around",
388
- children: d
425
+ children: c
389
426
  })
390
427
  })
391
428
  });
392
429
  }
393
430
  })
394
- }) : /* @__PURE__ */ t(s, {
431
+ }) : /* @__PURE__ */ t(d, {
395
432
  paddingX: 16,
396
- className: C,
433
+ className: N,
397
434
  role: m,
398
- children: e.right ? w({
435
+ children: e.right ? x({
399
436
  type: "custom",
400
437
  right: e.right
401
- }) : w({
438
+ }) : x({
402
439
  type: "basic"
403
440
  })
404
441
  });
405
- }), We = /*#__PURE__*/ x.forwardRef((_param, i)=>/* @__PURE__ */ {
442
+ }), Fe = /*#__PURE__*/ R.forwardRef((_param, i)=>/* @__PURE__ */ {
406
443
  var { dataAttributes: e } = _param, r = _objectWithoutProperties(_param, [
407
444
  "dataAttributes"
408
445
  ]);
409
- return t(U, _objectSpreadProps(_objectSpread({}, r), {
446
+ return t(p, _objectSpreadProps(_objectSpread({}, r), {
410
447
  ref: i,
411
448
  dataAttributes: _objectSpread({
412
449
  "component-name": "Row"
413
450
  }, e)
414
451
  }));
415
- }), Fe = (param)=>{
416
- let { children: e , ariaLabelledby: r , role: i , dataAttributes: o , noLastDivider: a } = param;
417
- const v = x.Children.count(e) - 1, l = !a;
452
+ }), Oe = (param)=>{
453
+ let { children: e , ariaLabelledby: r , role: i , dataAttributes: a , noLastDivider: l } = param;
454
+ const v = R.Children.count(e) - 1, s = !l;
418
455
  return /* @__PURE__ */ t("div", _objectSpreadProps(_objectSpread({
419
456
  role: i,
420
457
  "aria-labelledby": r
421
- }, ce(o, "RowList")), {
422
- children: x.Children.toArray(e).filter(Boolean).map((N, b)=>/* @__PURE__ */ k(x.Fragment, {
458
+ }, de(a, "RowList")), {
459
+ children: R.Children.toArray(e).filter(Boolean).map((B, b)=>/* @__PURE__ */ C(R.Fragment, {
423
460
  children: [
424
- N,
425
- (b < v || l) && /* @__PURE__ */ t(s, {
461
+ B,
462
+ (b < v || s) && /* @__PURE__ */ t(d, {
426
463
  paddingX: 16,
427
- children: /* @__PURE__ */ t(oe, {})
464
+ children: /* @__PURE__ */ t(le, {})
428
465
  })
429
466
  ]
430
467
  }, b))
431
468
  }));
432
- }, Oe = /*#__PURE__*/ x.forwardRef((_param, i)=>/* @__PURE__ */ {
469
+ }, Ye = /*#__PURE__*/ R.forwardRef((_param, i)=>/* @__PURE__ */ {
433
470
  var { dataAttributes: e } = _param, r = _objectWithoutProperties(_param, [
434
471
  "dataAttributes"
435
472
  ]);
436
- return t(ie, {
473
+ return t(ce, {
437
474
  isInverse: r.isInverse,
438
475
  ref: i,
439
476
  dataAttributes: _objectSpread({
440
477
  "component-name": "BoxedRow"
441
478
  }, e),
442
- children: /* @__PURE__ */ t(U, _objectSpread({}, r))
479
+ children: /* @__PURE__ */ t(p, _objectSpread({}, r))
443
480
  });
444
- }), Ye = (param)=>/* @__PURE__ */ {
445
- let { children: e , ariaLabelledby: r , role: i , dataAttributes: o } = param;
446
- return t(A, {
481
+ }), qe = (param)=>/* @__PURE__ */ {
482
+ let { children: e , ariaLabelledby: r , role: i , dataAttributes: a } = param;
483
+ return t(k, {
447
484
  space: 16,
448
485
  role: i,
449
486
  "aria-labelledby": r,
450
487
  dataAttributes: _objectSpread({
451
488
  "component-name": "BoxedRowList"
452
- }, o),
489
+ }, a),
453
490
  children: e
454
491
  });
455
492
  };
456
- export { Oe as BoxedRow, Ye as BoxedRowList, We as Row, Fe as RowList };
493
+ export { Ye as BoxedRow, qe as BoxedRowList, Fe as Row, Oe as RowList };
@@ -1,2 +1,2 @@
1
- const o = "14.4.1";
1
+ const o = "14.5.0";
2
2
  export { o as PACKAGE_VERSION };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
2
  import "./progress-bar.css.ts.vanilla.js";
3
- var n = "j0y7r93 _1y2v1nf85 _1y2v1nf9i", y = "_1y2v1nf9i _1y2v1nf88 _1y2v1nf3m";
4
- export { n as bar, y as barBackground };
3
+ var a = "_1y2v1nf85 _1y2v1nf9i", n = "_1y2v1nf9i _1y2v1nf88 _1y2v1nf3m", y = "j0y7r95", f = "j0y7r94";
4
+ export { a as bar, n as barBackground, y as inverse, f as normal };
@@ -52,22 +52,23 @@ function _objectSpreadProps(target, source) {
52
52
  }
53
53
  import { useTheme as d } from "./hooks.js";
54
54
  import { vars as b } from "./skins/skin-contract.css-mistica.js";
55
- import { barBackground as n, bar as u } from "./progress-bar.css-mistica.js";
56
- import { getPrefixedDataAttributes as f } from "./utils/dom.js";
57
- import { jsx as t } from "./_virtual/jsx-runtime.js";
58
- const h = (param)=>{
59
- let { progressPercent: r , color: a , "aria-label": i , "aria-labelledby": e , dataAttributes: l } = param;
60
- const { texts: o } = d(), s = o.loading, m = e ? void 0 : i || s;
61
- return /* @__PURE__ */ t("div", _objectSpreadProps(_objectSpread({}, f(l, "ProgressBar")), {
62
- className: n,
55
+ import { barBackground as f, bar as u, inverse as v, normal as c } from "./progress-bar.css-mistica.js";
56
+ import { getPrefixedDataAttributes as p } from "./utils/dom.js";
57
+ import g from "classnames";
58
+ import { jsx as s } from "./_virtual/jsx-runtime.js";
59
+ const N = (param)=>{
60
+ let { progressPercent: r , color: a , "aria-label": t , "aria-labelledby": e , dataAttributes: l , reverse: o = !1 } = param;
61
+ const { texts: i } = d(), m = i.loading, n = e ? void 0 : t || m;
62
+ return /* @__PURE__ */ s("div", _objectSpreadProps(_objectSpread({}, p(l, "ProgressBar")), {
63
+ className: f,
63
64
  role: "progressbar",
64
65
  "aria-valuenow": r,
65
66
  "aria-valuemin": 0,
66
67
  "aria-valuemax": 100,
67
- "aria-label": m,
68
+ "aria-label": n,
68
69
  "aria-labelledby": e,
69
- children: /* @__PURE__ */ t("div", {
70
- className: u,
70
+ children: /* @__PURE__ */ s("div", {
71
+ className: g(u, o ? v : c),
71
72
  style: {
72
73
  maxWidth: `${r}%`,
73
74
  backgroundColor: a != null ? a : b.colors.controlActivated
@@ -75,4 +76,4 @@ const h = (param)=>{
75
76
  })
76
77
  }));
77
78
  };
78
- export { h as default };
79
+ export { N as default };