@telefonica/mistica 14.4.0 → 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.
- package/css/mistica.css +1 -1
- package/dist/button.css-mistica.js +1 -1
- package/dist/button.css.d.ts +1 -1
- package/dist/card.d.ts +19 -0
- package/dist/card.js +237 -142
- package/dist/carousel.js +116 -115
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -0
- package/dist/list.css-mistica.js +9 -8
- package/dist/list.css.d.ts +1 -0
- package/dist/list.d.ts +1 -0
- package/dist/list.js +126 -89
- package/dist/package-version.js +1 -1
- package/dist/progress-bar.css-mistica.js +5 -3
- package/dist/progress-bar.css.d.ts +2 -0
- package/dist/progress-bar.d.ts +1 -0
- package/dist/progress-bar.js +12 -6
- package/dist-es/button.css-mistica.js +1 -1
- package/dist-es/card.js +291 -197
- package/dist-es/carousel.js +164 -163
- package/dist-es/index.js +1703 -1703
- package/dist-es/list.css-mistica.js +2 -2
- package/dist-es/list.js +191 -154
- package/dist-es/package-version.js +1 -1
- package/dist-es/progress-bar.css-mistica.js +2 -2
- package/dist-es/progress-bar.js +13 -12
- package/dist-es/style.css +1 -1
- package/package.json +2 -2
|
@@ -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",
|
|
4
|
-
export { _ as asset, f as badge, y as center, r as content, a as disabled, i as dualActionContainer, t as
|
|
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
|
|
81
|
-
import
|
|
82
|
-
import { BaseTouchable as
|
|
83
|
-
import { Text1 as
|
|
84
|
-
import
|
|
85
|
-
import
|
|
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
|
|
88
|
-
import { useIsInverseVariant as
|
|
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
|
|
91
|
-
import
|
|
92
|
-
import
|
|
93
|
-
import { Boxed as
|
|
94
|
-
import
|
|
95
|
-
import { getPrefixedDataAttributes as
|
|
96
|
-
import { rowContent as
|
|
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
|
|
99
|
-
const
|
|
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,
|
|
109
|
-
let { withChevron: e , headline: r , title: i , titleLinesMax:
|
|
110
|
-
const h =
|
|
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
|
-
|
|
116
|
-
|
|
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:
|
|
120
|
-
[
|
|
119
|
+
className: o(X, fe, {
|
|
120
|
+
[P]: u
|
|
121
121
|
}),
|
|
122
|
-
children:
|
|
123
|
-
value:
|
|
122
|
+
children: L === !0 ? /* @__PURE__ */ t(G, {}) : /* @__PURE__ */ t(G, {
|
|
123
|
+
value: L
|
|
124
124
|
})
|
|
125
125
|
})
|
|
126
126
|
}) : null;
|
|
127
|
-
return /* @__PURE__ */
|
|
127
|
+
return /* @__PURE__ */ C(d, {
|
|
128
128
|
paddingY: 16,
|
|
129
|
-
className:
|
|
129
|
+
className: me,
|
|
130
130
|
children: [
|
|
131
|
-
b && /* @__PURE__ */ t(
|
|
131
|
+
b && /* @__PURE__ */ t(d, {
|
|
132
132
|
paddingRight: 16,
|
|
133
|
-
className:
|
|
134
|
-
[
|
|
135
|
-
[
|
|
133
|
+
className: o({
|
|
134
|
+
[X]: n,
|
|
135
|
+
[P]: u
|
|
136
136
|
}),
|
|
137
137
|
children: /* @__PURE__ */ t("div", {
|
|
138
|
-
className:
|
|
138
|
+
className: he,
|
|
139
139
|
children: b
|
|
140
140
|
})
|
|
141
141
|
}),
|
|
142
142
|
/* @__PURE__ */ t("div", {
|
|
143
|
-
className:
|
|
144
|
-
[
|
|
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
|
|
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
|
|
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:
|
|
163
|
+
truncate: a,
|
|
164
164
|
id: m,
|
|
165
165
|
children: i
|
|
166
166
|
}),
|
|
167
|
-
|
|
167
|
+
l && /* @__PURE__ */ t(z, {
|
|
168
168
|
regular: !0,
|
|
169
169
|
color: g.colors.textSecondary,
|
|
170
170
|
truncate: v,
|
|
171
|
-
children:
|
|
171
|
+
children: l
|
|
172
172
|
}),
|
|
173
|
-
|
|
173
|
+
s && /* @__PURE__ */ t(z, {
|
|
174
174
|
regular: !0,
|
|
175
175
|
color: g.colors.textSecondary,
|
|
176
|
-
truncate:
|
|
177
|
-
children:
|
|
176
|
+
truncate: B,
|
|
177
|
+
children: s
|
|
178
178
|
}),
|
|
179
|
-
|
|
179
|
+
V
|
|
180
180
|
]
|
|
181
181
|
})
|
|
182
182
|
]
|
|
183
183
|
})
|
|
184
184
|
}),
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
S(),
|
|
186
|
+
I === "chevron" && /* @__PURE__ */ t(d, {
|
|
187
187
|
paddingLeft: 16,
|
|
188
|
-
className:
|
|
189
|
-
[
|
|
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
|
-
|
|
197
|
-
className:
|
|
198
|
-
children:
|
|
196
|
+
I === "control" && /* @__PURE__ */ t("div", {
|
|
197
|
+
className: Z,
|
|
198
|
+
children: _(T, n)
|
|
199
199
|
}),
|
|
200
|
-
|
|
200
|
+
I === "custom" && /* @__PURE__ */ C(ge, {
|
|
201
201
|
children: [
|
|
202
202
|
/* @__PURE__ */ t("div", {
|
|
203
|
-
className:
|
|
204
|
-
[
|
|
203
|
+
className: o(Z, {
|
|
204
|
+
[P]: u
|
|
205
205
|
}),
|
|
206
|
-
children:
|
|
206
|
+
children: _(T, n)
|
|
207
207
|
}),
|
|
208
|
-
e && /* @__PURE__ */ t(
|
|
208
|
+
e && /* @__PURE__ */ t(d, {
|
|
209
209
|
paddingLeft: 4,
|
|
210
|
-
className:
|
|
211
|
-
[
|
|
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
|
-
},
|
|
222
|
+
}, be = (param)=>{
|
|
223
223
|
let { value: e , defaultValue: r , onChange: i } = param;
|
|
224
|
-
const
|
|
225
|
-
|
|
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
|
|
227
|
+
return a ? [
|
|
228
228
|
!!e,
|
|
229
|
-
|
|
229
|
+
s
|
|
230
230
|
] : [
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
l,
|
|
232
|
+
s
|
|
233
233
|
];
|
|
234
|
-
},
|
|
235
|
-
const i =
|
|
236
|
-
let { type:
|
|
237
|
-
return t(
|
|
238
|
-
asset:
|
|
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:
|
|
240
|
+
title: s,
|
|
241
241
|
subtitle: b,
|
|
242
|
-
description:
|
|
243
|
-
badge:
|
|
244
|
-
titleLinesMax:
|
|
245
|
-
subtitleLinesMax:
|
|
242
|
+
description: L,
|
|
243
|
+
badge: V,
|
|
244
|
+
titleLinesMax: B,
|
|
245
|
+
subtitleLinesMax: I,
|
|
246
246
|
descriptionLinesMax: T,
|
|
247
|
-
type:
|
|
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
|
-
},
|
|
254
|
+
}, M = (c)=>{
|
|
255
255
|
let f = "chevron";
|
|
256
|
-
return
|
|
256
|
+
return c.right === null && (f = "basic"), c.right && (f = "custom"), /* @__PURE__ */ t(d, {
|
|
257
257
|
paddingX: 16,
|
|
258
258
|
ref: r,
|
|
259
|
-
children:
|
|
259
|
+
children: x({
|
|
260
260
|
type: f,
|
|
261
|
-
right:
|
|
261
|
+
right: c.right
|
|
262
262
|
})
|
|
263
263
|
});
|
|
264
264
|
};
|
|
265
|
-
if (e.onPress && !
|
|
265
|
+
if (e.onPress && !xe(e) && !we(e) && !Ce(e)) return /* @__PURE__ */ t(y, {
|
|
266
266
|
ref: r,
|
|
267
|
-
className:
|
|
268
|
-
[
|
|
269
|
-
[
|
|
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:
|
|
276
|
+
children: M(e)
|
|
277
277
|
});
|
|
278
|
-
if (e.to) return /* @__PURE__ */ t(
|
|
279
|
-
className:
|
|
280
|
-
[
|
|
281
|
-
[
|
|
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:
|
|
289
|
+
children: M(e)
|
|
290
290
|
});
|
|
291
|
-
if (e.href) return /* @__PURE__ */ t(
|
|
292
|
-
className:
|
|
293
|
-
[
|
|
294
|
-
[
|
|
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:
|
|
302
|
+
children: M(e)
|
|
303
303
|
});
|
|
304
|
-
const F = (
|
|
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__ */
|
|
308
|
-
className:
|
|
307
|
+
return e.onPress ? /* @__PURE__ */ C("div", {
|
|
308
|
+
className: K,
|
|
309
309
|
children: [
|
|
310
|
-
/* @__PURE__ */ t(
|
|
310
|
+
/* @__PURE__ */ t(y, {
|
|
311
311
|
disabled: n,
|
|
312
312
|
onPress: e.onPress,
|
|
313
313
|
role: m,
|
|
314
|
-
className:
|
|
315
|
-
[
|
|
314
|
+
className: o(Q, {
|
|
315
|
+
[w]: !(n || a)
|
|
316
316
|
}),
|
|
317
|
-
children:
|
|
317
|
+
children: x({
|
|
318
318
|
type: "basic",
|
|
319
319
|
labelId: i
|
|
320
320
|
})
|
|
321
321
|
}),
|
|
322
|
-
/* @__PURE__ */ t(
|
|
322
|
+
/* @__PURE__ */ t("div", {
|
|
323
|
+
className: U
|
|
324
|
+
}),
|
|
325
|
+
/* @__PURE__ */ t(y, {
|
|
323
326
|
disabled: n,
|
|
324
|
-
className:
|
|
327
|
+
className: se,
|
|
325
328
|
onPress: W,
|
|
326
329
|
dataAttributes: h,
|
|
327
|
-
children: /* @__PURE__ */ t(
|
|
330
|
+
children: /* @__PURE__ */ t(c, {
|
|
328
331
|
disabled: n,
|
|
329
332
|
name: f,
|
|
330
|
-
checked:
|
|
333
|
+
checked: S,
|
|
331
334
|
"aria-labelledby": i,
|
|
332
335
|
render: (param)=>{
|
|
333
|
-
let { controlElement:
|
|
334
|
-
return
|
|
336
|
+
let { controlElement: D } = param;
|
|
337
|
+
return D;
|
|
335
338
|
}
|
|
336
339
|
})
|
|
337
340
|
})
|
|
338
341
|
]
|
|
339
342
|
}) : /* @__PURE__ */ t("div", {
|
|
340
|
-
className:
|
|
341
|
-
[
|
|
342
|
-
[
|
|
343
|
+
className: o(N, {
|
|
344
|
+
[w]: !(n || a),
|
|
345
|
+
[A]: !n
|
|
343
346
|
}),
|
|
344
|
-
children: /* @__PURE__ */ t(
|
|
347
|
+
children: /* @__PURE__ */ t(c, {
|
|
345
348
|
disabled: n,
|
|
346
349
|
dataAttributes: h,
|
|
347
350
|
name: f,
|
|
348
|
-
checked:
|
|
351
|
+
checked: S,
|
|
349
352
|
onChange: W,
|
|
350
353
|
render: (param)=>/* @__PURE__ */ {
|
|
351
|
-
let { controlElement:
|
|
352
|
-
return t(
|
|
354
|
+
let { controlElement: D , labelId: ee } = param;
|
|
355
|
+
return t(d, {
|
|
353
356
|
paddingX: 16,
|
|
354
357
|
role: m,
|
|
355
|
-
children:
|
|
356
|
-
labelId:
|
|
358
|
+
children: x({
|
|
359
|
+
labelId: ee,
|
|
357
360
|
type: "control",
|
|
358
|
-
right: ()=>/* @__PURE__ */ t(
|
|
361
|
+
right: ()=>/* @__PURE__ */ t(k, {
|
|
359
362
|
space: "around",
|
|
360
|
-
children:
|
|
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(
|
|
369
|
-
className:
|
|
370
|
-
|
|
371
|
-
|
|
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(
|
|
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:
|
|
381
|
-
return t(
|
|
417
|
+
let { controlElement: c } = param;
|
|
418
|
+
return t(d, {
|
|
382
419
|
paddingX: 16,
|
|
383
|
-
children:
|
|
420
|
+
children: x({
|
|
384
421
|
labelId: i,
|
|
385
422
|
type: "control",
|
|
386
|
-
right: ()=>/* @__PURE__ */ t(
|
|
423
|
+
right: ()=>/* @__PURE__ */ t(k, {
|
|
387
424
|
space: "around",
|
|
388
|
-
children:
|
|
425
|
+
children: c
|
|
389
426
|
})
|
|
390
427
|
})
|
|
391
428
|
});
|
|
392
429
|
}
|
|
393
430
|
})
|
|
394
|
-
}) : /* @__PURE__ */ t(
|
|
431
|
+
}) : /* @__PURE__ */ t(d, {
|
|
395
432
|
paddingX: 16,
|
|
396
|
-
className:
|
|
433
|
+
className: N,
|
|
397
434
|
role: m,
|
|
398
|
-
children: e.right ?
|
|
435
|
+
children: e.right ? x({
|
|
399
436
|
type: "custom",
|
|
400
437
|
right: e.right
|
|
401
|
-
}) :
|
|
438
|
+
}) : x({
|
|
402
439
|
type: "basic"
|
|
403
440
|
})
|
|
404
441
|
});
|
|
405
|
-
}),
|
|
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(
|
|
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
|
-
}),
|
|
416
|
-
let { children: e , ariaLabelledby: r , role: i , dataAttributes:
|
|
417
|
-
const v =
|
|
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
|
-
},
|
|
422
|
-
children:
|
|
458
|
+
}, de(a, "RowList")), {
|
|
459
|
+
children: R.Children.toArray(e).filter(Boolean).map((B, b)=>/* @__PURE__ */ C(R.Fragment, {
|
|
423
460
|
children: [
|
|
424
|
-
|
|
425
|
-
(b < v ||
|
|
461
|
+
B,
|
|
462
|
+
(b < v || s) && /* @__PURE__ */ t(d, {
|
|
426
463
|
paddingX: 16,
|
|
427
|
-
children: /* @__PURE__ */ t(
|
|
464
|
+
children: /* @__PURE__ */ t(le, {})
|
|
428
465
|
})
|
|
429
466
|
]
|
|
430
467
|
}, b))
|
|
431
468
|
}));
|
|
432
|
-
},
|
|
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(
|
|
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(
|
|
479
|
+
children: /* @__PURE__ */ t(p, _objectSpread({}, r))
|
|
443
480
|
});
|
|
444
|
-
}),
|
|
445
|
-
let { children: e , ariaLabelledby: r , role: i , dataAttributes:
|
|
446
|
-
return t(
|
|
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
|
-
},
|
|
489
|
+
}, a),
|
|
453
490
|
children: e
|
|
454
491
|
});
|
|
455
492
|
};
|
|
456
|
-
export {
|
|
493
|
+
export { Ye as BoxedRow, qe as BoxedRowList, Fe as Row, Oe as RowList };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const o = "14.
|
|
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
|
|
4
|
-
export {
|
|
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 };
|
package/dist-es/progress-bar.js
CHANGED
|
@@ -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
|
|
56
|
-
import { getPrefixedDataAttributes as
|
|
57
|
-
import
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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":
|
|
68
|
+
"aria-label": n,
|
|
68
69
|
"aria-labelledby": e,
|
|
69
|
-
children: /* @__PURE__ */
|
|
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 {
|
|
79
|
+
export { N as default };
|