@telefonica/mistica 15.5.0 → 15.6.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/card.d.ts +4 -0
- package/dist/chip.d.ts +3 -20
- package/dist/chip.js +44 -60
- package/dist/community/advanced-data-card.css-mistica.js +13 -16
- package/dist/community/advanced-data-card.css.d.ts +0 -1
- package/dist/community/advanced-data-card.js +25 -26
- package/dist/highlighted-card.d.ts +5 -35
- package/dist/highlighted-card.js +44 -48
- package/dist/icon-button.d.ts +190 -118
- package/dist/icon-button.js +87 -112
- package/dist/image.js +2 -1
- package/dist/list.d.ts +15 -21
- package/dist/list.js +188 -183
- package/dist/logo.d.ts +4 -23
- package/dist/logo.js +42 -67
- package/dist/package-version.js +1 -1
- package/dist/text-link.d.ts +2 -21
- package/dist/text-link.js +16 -15
- package/dist/text.js +45 -44
- package/dist/touchable.d.ts +18 -48
- package/dist-es/chip.js +68 -84
- package/dist-es/community/advanced-data-card.css-mistica.js +6 -6
- package/dist-es/community/advanced-data-card.js +69 -70
- package/dist-es/highlighted-card.js +61 -65
- package/dist-es/icon-button.js +97 -122
- package/dist-es/image.js +2 -1
- package/dist-es/list.js +248 -243
- package/dist-es/logo.js +80 -105
- package/dist-es/package-version.js +1 -1
- package/dist-es/style.css +1 -1
- package/dist-es/text-link.js +25 -24
- package/dist-es/text.js +59 -58
- package/package.json +1 -1
package/dist-es/list.js
CHANGED
|
@@ -80,28 +80,28 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
80
80
|
}
|
|
81
81
|
import { jsx as t, jsxs as L } from "react/jsx-runtime";
|
|
82
82
|
import * as I from "react";
|
|
83
|
-
import
|
|
83
|
+
import i from "classnames";
|
|
84
84
|
import { BaseTouchable as S } from "./touchable.js";
|
|
85
|
-
import { Text3 as
|
|
85
|
+
import { Text3 as ue, Text1 as me, Text2 as K } from "./text.js";
|
|
86
86
|
import c from "./box.js";
|
|
87
87
|
import X from "./stack.js";
|
|
88
|
-
import
|
|
89
|
-
import { useAriaId as
|
|
90
|
-
import { useIsInverseVariant as
|
|
88
|
+
import ne from "./badge.js";
|
|
89
|
+
import { useAriaId as ge } from "./hooks.js";
|
|
90
|
+
import { useIsInverseVariant as le } from "./theme-variant-context.js";
|
|
91
91
|
import be from "./icons/icon-chevron.js";
|
|
92
|
-
import
|
|
93
|
-
import
|
|
94
|
-
import
|
|
95
|
-
import { Boxed as
|
|
96
|
-
import
|
|
97
|
-
import { getPrefixedDataAttributes as
|
|
98
|
-
import { rowContent as T, touchableBackground as C, touchableBackgroundInverse as
|
|
99
|
-
import { vars as
|
|
100
|
-
import { vars as
|
|
92
|
+
import ve from "./switch-component.js";
|
|
93
|
+
import re, { useRadioContext as fe } from "./radio-button.js";
|
|
94
|
+
import xe from "./checkbox.js";
|
|
95
|
+
import { Boxed as ye } from "./boxed.js";
|
|
96
|
+
import Ne from "./divider.js";
|
|
97
|
+
import { getPrefixedDataAttributes as we } from "./utils/dom.js";
|
|
98
|
+
import { rowContent as T, touchableBackground as C, touchableBackgroundInverse as k, pointer as W, dualActionContainer as Q, dualActionLeft as U, dualActionDivider as Z, content as Be, center as F, disabled as V, asset as Re, rowBody as Ce, right as ke, rightRestrictedWidth as Ie, detail as Pe, detailRight as ae, dualActionRight as Te, badge as Le } from "./list.css-mistica.js";
|
|
99
|
+
import { vars as Ee } from "./image.css-mistica.js";
|
|
100
|
+
import { vars as d } from "./skins/skin-contract.css-mistica.js";
|
|
101
101
|
import { applyCssVars as Ae } from "./utils/css.js";
|
|
102
|
-
import { IconButton as ie, ToggleIconButton as
|
|
103
|
-
import { sprinkles as
|
|
104
|
-
const
|
|
102
|
+
import { IconButton as ie, ToggleIconButton as oe } from "./icon-button.js";
|
|
103
|
+
import { sprinkles as Se } from "./sprinkles.css-mistica.js";
|
|
104
|
+
const ce = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
105
105
|
centerY: n
|
|
106
106
|
}) : n ? /* @__PURE__ */ t("div", {
|
|
107
107
|
style: {
|
|
@@ -110,138 +110,139 @@ const oe = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
110
110
|
height: "100%"
|
|
111
111
|
},
|
|
112
112
|
children: e
|
|
113
|
-
}) : e,
|
|
114
|
-
let { withChevron: e, headline: n, headlineRef:
|
|
115
|
-
const
|
|
113
|
+
}) : e, Ve = (param)=>{
|
|
114
|
+
let { withChevron: e, headline: n, headlineRef: r, extraRef: l, title: h, titleAs: P, titleLinesMax: b, subtitle: x, subtitleLinesMax: Y, description: E, descriptionLinesMax: q, detail: m, asset: H, danger: j, type: y = "basic", badge: D, right: s, extra: M, labelId: u, disabled: a } = param;
|
|
115
|
+
const O = le(), A = [
|
|
116
116
|
n,
|
|
117
|
-
|
|
117
|
+
h,
|
|
118
118
|
x,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
].filter(Boolean).length === 1,
|
|
119
|
+
E,
|
|
120
|
+
M
|
|
121
|
+
].filter(Boolean).length === 1, z = ()=>D ? /* @__PURE__ */ t(c, {
|
|
122
122
|
paddingLeft: 16,
|
|
123
123
|
children: /* @__PURE__ */ t("div", {
|
|
124
|
-
className:
|
|
125
|
-
[V]:
|
|
124
|
+
className: i(F, Le, {
|
|
125
|
+
[V]: a
|
|
126
126
|
}),
|
|
127
|
-
children:
|
|
128
|
-
value:
|
|
127
|
+
children: D === !0 ? /* @__PURE__ */ t(ne, {}) : /* @__PURE__ */ t(ne, {
|
|
128
|
+
value: D
|
|
129
129
|
})
|
|
130
130
|
})
|
|
131
131
|
}) : null;
|
|
132
132
|
return /* @__PURE__ */ L(c, {
|
|
133
133
|
paddingY: 16,
|
|
134
|
-
className:
|
|
134
|
+
className: Be,
|
|
135
135
|
children: [
|
|
136
|
-
|
|
136
|
+
H && /* @__PURE__ */ t(c, {
|
|
137
137
|
paddingRight: 16,
|
|
138
|
-
className:
|
|
139
|
-
[
|
|
140
|
-
[V]:
|
|
138
|
+
className: i({
|
|
139
|
+
[F]: A,
|
|
140
|
+
[V]: a
|
|
141
141
|
}),
|
|
142
142
|
children: /* @__PURE__ */ t("div", {
|
|
143
143
|
className: Re,
|
|
144
144
|
style: Ae({
|
|
145
|
-
|
|
145
|
+
color: j ? O ? d.colors.textErrorInverse : d.colors.textError : O ? d.colors.textPrimaryInverse : d.colors.textPrimary,
|
|
146
|
+
[Ee.mediaBorderRadius]: d.borderRadii.mediaSmall
|
|
146
147
|
}),
|
|
147
|
-
children:
|
|
148
|
+
children: H
|
|
148
149
|
})
|
|
149
150
|
}),
|
|
150
151
|
/* @__PURE__ */ L("div", {
|
|
151
|
-
className:
|
|
152
|
-
[V]:
|
|
152
|
+
className: i(Ce, {
|
|
153
|
+
[V]: a
|
|
153
154
|
}),
|
|
154
155
|
style: {
|
|
155
|
-
justifyContent:
|
|
156
|
+
justifyContent: A ? "center" : "flex-start"
|
|
156
157
|
},
|
|
157
|
-
id:
|
|
158
|
+
id: u,
|
|
158
159
|
children: [
|
|
159
|
-
/* @__PURE__ */ t(
|
|
160
|
+
/* @__PURE__ */ t(ue, {
|
|
160
161
|
regular: !0,
|
|
161
|
-
color:
|
|
162
|
+
color: j ? d.colors.textError : d.colors.textPrimary,
|
|
162
163
|
truncate: b,
|
|
163
164
|
hyphens: "auto",
|
|
164
165
|
as: P,
|
|
165
|
-
children:
|
|
166
|
+
children: h
|
|
166
167
|
}),
|
|
167
168
|
n && /* @__PURE__ */ t("div", {
|
|
168
|
-
ref:
|
|
169
|
+
ref: r,
|
|
169
170
|
style: {
|
|
170
171
|
order: -1,
|
|
171
172
|
paddingBottom: 4
|
|
172
173
|
},
|
|
173
|
-
children: /* @__PURE__ */ t(
|
|
174
|
+
children: /* @__PURE__ */ t(me, {
|
|
174
175
|
regular: !0,
|
|
175
|
-
color:
|
|
176
|
+
color: d.colors.textPrimary,
|
|
176
177
|
hyphens: "auto",
|
|
177
178
|
children: n
|
|
178
179
|
})
|
|
179
180
|
}),
|
|
180
181
|
x && /* @__PURE__ */ t(c, {
|
|
181
182
|
paddingTop: 2,
|
|
182
|
-
children: /* @__PURE__ */ t(
|
|
183
|
+
children: /* @__PURE__ */ t(K, {
|
|
183
184
|
regular: !0,
|
|
184
|
-
color:
|
|
185
|
-
truncate:
|
|
185
|
+
color: d.colors.textSecondary,
|
|
186
|
+
truncate: Y,
|
|
186
187
|
hyphens: "auto",
|
|
187
188
|
children: x
|
|
188
189
|
})
|
|
189
190
|
}),
|
|
190
|
-
|
|
191
|
+
E && /* @__PURE__ */ t(c, {
|
|
191
192
|
paddingTop: 2,
|
|
192
|
-
children: /* @__PURE__ */ t(
|
|
193
|
+
children: /* @__PURE__ */ t(K, {
|
|
193
194
|
regular: !0,
|
|
194
|
-
color:
|
|
195
|
-
truncate:
|
|
195
|
+
color: d.colors.textSecondary,
|
|
196
|
+
truncate: q,
|
|
196
197
|
hyphens: "auto",
|
|
197
|
-
children:
|
|
198
|
+
children: E
|
|
198
199
|
})
|
|
199
200
|
}),
|
|
200
|
-
|
|
201
|
+
M && /* @__PURE__ */ t(c, {
|
|
201
202
|
ref: l,
|
|
202
203
|
paddingTop: 2,
|
|
203
|
-
children:
|
|
204
|
+
children: M
|
|
204
205
|
})
|
|
205
206
|
]
|
|
206
207
|
}),
|
|
207
|
-
|
|
208
|
+
z(),
|
|
208
209
|
/* @__PURE__ */ L("div", {
|
|
209
|
-
className:
|
|
210
|
-
[
|
|
211
|
-
[
|
|
210
|
+
className: i({
|
|
211
|
+
[ke]: !!m || y !== "basic",
|
|
212
|
+
[Ie]: !!m
|
|
212
213
|
}),
|
|
213
214
|
children: [
|
|
214
|
-
|
|
215
|
-
className:
|
|
216
|
-
[V]:
|
|
215
|
+
m && /* @__PURE__ */ t("div", {
|
|
216
|
+
className: i(F, Pe, {
|
|
217
|
+
[V]: a
|
|
217
218
|
}),
|
|
218
|
-
children: /* @__PURE__ */ t(
|
|
219
|
+
children: /* @__PURE__ */ t(K, {
|
|
219
220
|
regular: !0,
|
|
220
|
-
color:
|
|
221
|
+
color: d.colors.textSecondary,
|
|
221
222
|
hyphens: "auto",
|
|
222
|
-
children:
|
|
223
|
+
children: m
|
|
223
224
|
})
|
|
224
225
|
}),
|
|
225
|
-
|
|
226
|
-
className:
|
|
227
|
-
[ae]: !!
|
|
226
|
+
y === "control" && /* @__PURE__ */ t("div", {
|
|
227
|
+
className: i({
|
|
228
|
+
[ae]: !!m
|
|
228
229
|
}),
|
|
229
|
-
children:
|
|
230
|
+
children: ce(s, A)
|
|
230
231
|
}),
|
|
231
|
-
|
|
232
|
-
className:
|
|
233
|
-
[ae]: !!
|
|
234
|
-
[V]:
|
|
232
|
+
y === "custom" && /* @__PURE__ */ t("div", {
|
|
233
|
+
className: i({
|
|
234
|
+
[ae]: !!m,
|
|
235
|
+
[V]: a
|
|
235
236
|
}),
|
|
236
|
-
children:
|
|
237
|
+
children: ce(s, A)
|
|
237
238
|
}),
|
|
238
|
-
(
|
|
239
|
-
paddingLeft:
|
|
240
|
-
className:
|
|
241
|
-
[V]:
|
|
239
|
+
(y === "chevron" || y === "custom" && e) && /* @__PURE__ */ t(c, {
|
|
240
|
+
paddingLeft: m || y === "custom" ? 4 : 0,
|
|
241
|
+
className: i(F, {
|
|
242
|
+
[V]: a
|
|
242
243
|
}),
|
|
243
244
|
children: /* @__PURE__ */ t(be, {
|
|
244
|
-
color:
|
|
245
|
+
color: O ? d.colors.inverse : d.colors.neutralMedium,
|
|
245
246
|
direction: "right"
|
|
246
247
|
})
|
|
247
248
|
})
|
|
@@ -249,186 +250,190 @@ const oe = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
249
250
|
})
|
|
250
251
|
]
|
|
251
252
|
});
|
|
252
|
-
},
|
|
253
|
-
let { value: e, defaultValue: n, onChange:
|
|
254
|
-
const l = e !== void 0, [
|
|
255
|
-
l || P(!
|
|
253
|
+
}, Xe = (param)=>{
|
|
254
|
+
let { value: e, defaultValue: n, onChange: r } = param;
|
|
255
|
+
const l = e !== void 0, [h, P] = I.useState(!!n), b = ()=>{
|
|
256
|
+
l || P(!h), r && r(l ? !e : !h);
|
|
256
257
|
};
|
|
257
258
|
return l ? [
|
|
258
259
|
!!e,
|
|
259
260
|
b
|
|
260
261
|
] : [
|
|
261
|
-
|
|
262
|
+
h,
|
|
262
263
|
b
|
|
263
264
|
];
|
|
264
|
-
},
|
|
265
|
-
const
|
|
265
|
+
}, je = (e)=>e.switch !== void 0, De = (e)=>e.checkbox !== void 0, Me = (e)=>e.radioValue !== void 0, Oe = (e)=>e.iconButton !== void 0, de = /*#__PURE__*/ I.forwardRef((e, n)=>{
|
|
266
|
+
const r = ge(), l = le(), { asset: h, headline: P, title: b, titleAs: x, titleLinesMax: Y, subtitle: E, subtitleLinesMax: q, description: m, descriptionLinesMax: H, detail: j, danger: y, badge: D, role: s, extra: M, dataAttributes: u, "aria-label": a } = e, [O, _] = I.useState(""), [A, z] = I.useState(""), $ = [
|
|
266
267
|
b,
|
|
267
|
-
|
|
268
|
-
A,
|
|
269
|
-
u,
|
|
268
|
+
O,
|
|
270
269
|
E,
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
270
|
+
m,
|
|
271
|
+
A,
|
|
272
|
+
j
|
|
273
|
+
].filter(Boolean).join(" "), se = fe(), o = e.disabled || e.radioValue !== void 0 && se.disabled, N = !o && !l, w = !o && l, [p, ee] = Xe(e.switch || e.checkbox || {}), v = (param)=>{
|
|
274
|
+
let { type: g, right: B, labelId: R } = param;
|
|
275
|
+
return /* @__PURE__ */ t(Ve, {
|
|
276
|
+
asset: h,
|
|
276
277
|
headline: P,
|
|
277
|
-
headlineRef: (
|
|
278
|
-
|
|
278
|
+
headlineRef: (f)=>{
|
|
279
|
+
f && _(f.textContent || "");
|
|
279
280
|
},
|
|
280
281
|
title: b,
|
|
281
282
|
titleAs: x,
|
|
282
|
-
subtitle:
|
|
283
|
-
description:
|
|
284
|
-
badge:
|
|
285
|
-
titleLinesMax:
|
|
286
|
-
subtitleLinesMax:
|
|
287
|
-
descriptionLinesMax:
|
|
288
|
-
detail:
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
283
|
+
subtitle: E,
|
|
284
|
+
description: m,
|
|
285
|
+
badge: D,
|
|
286
|
+
titleLinesMax: Y,
|
|
287
|
+
subtitleLinesMax: q,
|
|
288
|
+
descriptionLinesMax: H,
|
|
289
|
+
detail: j,
|
|
290
|
+
danger: y,
|
|
291
|
+
type: g,
|
|
292
|
+
right: B,
|
|
293
|
+
extra: M,
|
|
294
|
+
extraRef: (f)=>{
|
|
295
|
+
f && z(f.innerText || f.textContent || "");
|
|
294
296
|
},
|
|
295
297
|
labelId: R,
|
|
296
298
|
disabled: o,
|
|
297
299
|
withChevron: !!e.onPress || !!e.href || !!e.to
|
|
298
300
|
});
|
|
299
|
-
},
|
|
300
|
-
let { hidden:
|
|
301
|
+
}, G = function() {
|
|
302
|
+
let { hidden: g, right: B } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
301
303
|
let R = "chevron";
|
|
302
|
-
return
|
|
304
|
+
return B === null && (R = "basic"), B && (R = "custom"), /* @__PURE__ */ t(c, {
|
|
303
305
|
paddingX: 16,
|
|
304
|
-
"aria-hidden":
|
|
305
|
-
children:
|
|
306
|
+
"aria-hidden": g || void 0,
|
|
307
|
+
children: v({
|
|
306
308
|
type: R,
|
|
307
|
-
right:
|
|
309
|
+
right: B
|
|
308
310
|
})
|
|
309
311
|
});
|
|
310
312
|
};
|
|
311
|
-
if (e.onPress && !
|
|
313
|
+
if (e.onPress && !je(e) && !De(e) && !Me(e) && !Oe(e)) return /* @__PURE__ */ t(S, {
|
|
312
314
|
ref: n,
|
|
313
|
-
className:
|
|
314
|
-
[C]:
|
|
315
|
-
[
|
|
316
|
-
[
|
|
315
|
+
className: i(T, {
|
|
316
|
+
[C]: N,
|
|
317
|
+
[k]: w,
|
|
318
|
+
[W]: !o
|
|
317
319
|
}),
|
|
318
320
|
trackingEvent: e.trackingEvent,
|
|
319
321
|
onPress: e.onPress,
|
|
320
|
-
role:
|
|
321
|
-
dataAttributes:
|
|
322
|
+
role: s,
|
|
323
|
+
dataAttributes: u,
|
|
322
324
|
disabled: o,
|
|
323
|
-
"aria-label":
|
|
324
|
-
children:
|
|
325
|
+
"aria-label": a,
|
|
326
|
+
children: G({
|
|
325
327
|
right: e.right
|
|
326
328
|
})
|
|
327
329
|
});
|
|
328
330
|
if (e.to) return /* @__PURE__ */ t(S, {
|
|
329
331
|
ref: n,
|
|
330
|
-
className:
|
|
331
|
-
[C]:
|
|
332
|
-
[
|
|
333
|
-
[
|
|
332
|
+
className: i(T, {
|
|
333
|
+
[C]: N,
|
|
334
|
+
[k]: w,
|
|
335
|
+
[W]: !o
|
|
334
336
|
}),
|
|
335
337
|
trackingEvent: e.trackingEvent,
|
|
336
338
|
to: e.to,
|
|
337
339
|
fullPageOnWebView: e.fullPageOnWebView,
|
|
338
|
-
|
|
339
|
-
|
|
340
|
+
onNavigate: e.onNavigate,
|
|
341
|
+
role: s,
|
|
342
|
+
dataAttributes: u,
|
|
340
343
|
disabled: o,
|
|
341
|
-
"aria-label":
|
|
342
|
-
children:
|
|
344
|
+
"aria-label": a !== null && a !== void 0 ? a : $,
|
|
345
|
+
children: G({
|
|
343
346
|
right: e.right,
|
|
344
347
|
hidden: !0
|
|
345
348
|
})
|
|
346
349
|
});
|
|
347
350
|
if (e.href) return /* @__PURE__ */ t(S, {
|
|
348
351
|
ref: n,
|
|
349
|
-
className:
|
|
350
|
-
[C]:
|
|
351
|
-
[
|
|
352
|
-
[
|
|
352
|
+
className: i(T, {
|
|
353
|
+
[C]: N,
|
|
354
|
+
[k]: w,
|
|
355
|
+
[W]: !o
|
|
353
356
|
}),
|
|
354
357
|
trackingEvent: e.trackingEvent,
|
|
355
358
|
href: e.href,
|
|
356
359
|
newTab: e.newTab,
|
|
357
|
-
|
|
358
|
-
|
|
360
|
+
onNavigate: e.onNavigate,
|
|
361
|
+
loadOnTop: e.loadOnTop,
|
|
362
|
+
role: s,
|
|
363
|
+
dataAttributes: u,
|
|
359
364
|
disabled: o,
|
|
360
|
-
"aria-label":
|
|
361
|
-
children:
|
|
365
|
+
"aria-label": a !== null && a !== void 0 ? a : $,
|
|
366
|
+
children: G({
|
|
362
367
|
right: e.right,
|
|
363
368
|
hidden: !0
|
|
364
369
|
})
|
|
365
370
|
});
|
|
366
|
-
const
|
|
367
|
-
var R,
|
|
371
|
+
const te = (g)=>{
|
|
372
|
+
var R, f;
|
|
368
373
|
var _ref, _ref1;
|
|
369
|
-
const
|
|
374
|
+
const B = (_ref1 = (_ref = (R = e.switch) == null ? void 0 : R.name) !== null && _ref !== void 0 ? _ref : (f = e.checkbox) == null ? void 0 : f.name) !== null && _ref1 !== void 0 ? _ref1 : r;
|
|
370
375
|
return e.onPress ? /* @__PURE__ */ L("div", {
|
|
371
|
-
className:
|
|
376
|
+
className: Q,
|
|
372
377
|
children: [
|
|
373
378
|
/* @__PURE__ */ t(S, {
|
|
374
|
-
dataAttributes:
|
|
379
|
+
dataAttributes: u,
|
|
375
380
|
disabled: o,
|
|
376
381
|
onPress: e.onPress,
|
|
377
382
|
trackingEvent: e.trackingEvent,
|
|
378
|
-
role:
|
|
379
|
-
className:
|
|
380
|
-
[C]:
|
|
381
|
-
[
|
|
383
|
+
role: s,
|
|
384
|
+
className: i(U, {
|
|
385
|
+
[C]: N,
|
|
386
|
+
[k]: w
|
|
382
387
|
}),
|
|
383
|
-
"aria-label":
|
|
384
|
-
children:
|
|
388
|
+
"aria-label": a,
|
|
389
|
+
children: v({
|
|
385
390
|
type: "basic",
|
|
386
|
-
labelId:
|
|
391
|
+
labelId: r
|
|
387
392
|
})
|
|
388
393
|
}),
|
|
389
394
|
/* @__PURE__ */ t("div", {
|
|
390
|
-
className:
|
|
395
|
+
className: Z
|
|
391
396
|
}),
|
|
392
|
-
/* @__PURE__ */ t(
|
|
397
|
+
/* @__PURE__ */ t(g, {
|
|
393
398
|
disabled: o,
|
|
394
|
-
name:
|
|
395
|
-
checked:
|
|
396
|
-
"aria-label":
|
|
397
|
-
"aria-labelledby":
|
|
398
|
-
onChange:
|
|
399
|
+
name: B,
|
|
400
|
+
checked: p,
|
|
401
|
+
"aria-label": a,
|
|
402
|
+
"aria-labelledby": r,
|
|
403
|
+
onChange: ee,
|
|
399
404
|
render: (param)=>{
|
|
400
|
-
let { controlElement:
|
|
405
|
+
let { controlElement: J } = param;
|
|
401
406
|
return /* @__PURE__ */ t("div", {
|
|
402
|
-
className:
|
|
403
|
-
children:
|
|
407
|
+
className: Te,
|
|
408
|
+
children: J
|
|
404
409
|
});
|
|
405
410
|
}
|
|
406
411
|
})
|
|
407
412
|
]
|
|
408
413
|
}) : /* @__PURE__ */ t("div", {
|
|
409
|
-
className:
|
|
410
|
-
[C]:
|
|
411
|
-
[
|
|
412
|
-
[
|
|
414
|
+
className: i(T, {
|
|
415
|
+
[C]: N,
|
|
416
|
+
[k]: w,
|
|
417
|
+
[W]: !o
|
|
413
418
|
}),
|
|
414
|
-
children: /* @__PURE__ */ t(
|
|
419
|
+
children: /* @__PURE__ */ t(g, {
|
|
415
420
|
disabled: o,
|
|
416
|
-
dataAttributes:
|
|
417
|
-
name:
|
|
418
|
-
checked:
|
|
419
|
-
onChange:
|
|
420
|
-
"aria-label":
|
|
421
|
+
dataAttributes: u,
|
|
422
|
+
name: B,
|
|
423
|
+
checked: p,
|
|
424
|
+
onChange: ee,
|
|
425
|
+
"aria-label": a,
|
|
421
426
|
render: (param)=>{
|
|
422
|
-
let { controlElement:
|
|
427
|
+
let { controlElement: J, labelId: he } = param;
|
|
423
428
|
return /* @__PURE__ */ t(c, {
|
|
424
429
|
paddingX: 16,
|
|
425
|
-
role:
|
|
426
|
-
children:
|
|
427
|
-
labelId:
|
|
430
|
+
role: s,
|
|
431
|
+
children: v({
|
|
432
|
+
labelId: he,
|
|
428
433
|
type: "control",
|
|
429
434
|
right: ()=>/* @__PURE__ */ t(X, {
|
|
430
435
|
space: "around",
|
|
431
|
-
children:
|
|
436
|
+
children: J
|
|
432
437
|
})
|
|
433
438
|
})
|
|
434
439
|
});
|
|
@@ -436,27 +441,27 @@ const oe = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
436
441
|
})
|
|
437
442
|
});
|
|
438
443
|
};
|
|
439
|
-
return e.switch ?
|
|
440
|
-
className:
|
|
444
|
+
return e.switch ? te(ve) : e.checkbox ? te(xe) : e.iconButton ? e.onPress ? /* @__PURE__ */ L("div", {
|
|
445
|
+
className: Q,
|
|
441
446
|
children: [
|
|
442
447
|
/* @__PURE__ */ t(S, {
|
|
443
|
-
dataAttributes:
|
|
448
|
+
dataAttributes: u,
|
|
444
449
|
disabled: o,
|
|
445
450
|
onPress: e.onPress,
|
|
446
451
|
trackingEvent: e.trackingEvent,
|
|
447
|
-
role:
|
|
448
|
-
className:
|
|
449
|
-
[C]:
|
|
450
|
-
[
|
|
452
|
+
role: s,
|
|
453
|
+
className: i(U, {
|
|
454
|
+
[C]: N,
|
|
455
|
+
[k]: w
|
|
451
456
|
}),
|
|
452
|
-
"aria-label":
|
|
453
|
-
children:
|
|
457
|
+
"aria-label": a,
|
|
458
|
+
children: v({
|
|
454
459
|
type: "basic",
|
|
455
|
-
labelId:
|
|
460
|
+
labelId: r
|
|
456
461
|
})
|
|
457
462
|
}),
|
|
458
463
|
/* @__PURE__ */ t("div", {
|
|
459
|
-
className:
|
|
464
|
+
className: Z
|
|
460
465
|
}),
|
|
461
466
|
/* @__PURE__ */ t(c, {
|
|
462
467
|
padding: 16,
|
|
@@ -465,7 +470,7 @@ const oe = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
465
470
|
children: e.iconButton.Icon ? /* @__PURE__ */ t(ie, _object_spread_props(_object_spread({}, e.iconButton), {
|
|
466
471
|
disabled: e.disabled,
|
|
467
472
|
ref: n
|
|
468
|
-
})) : /* @__PURE__ */ t(
|
|
473
|
+
})) : /* @__PURE__ */ t(oe, _object_spread_props(_object_spread({}, e.iconButton), {
|
|
469
474
|
disabled: e.disabled,
|
|
470
475
|
ref: n
|
|
471
476
|
}))
|
|
@@ -473,18 +478,18 @@ const oe = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
473
478
|
})
|
|
474
479
|
]
|
|
475
480
|
}) : /* @__PURE__ */ t("div", {
|
|
476
|
-
className:
|
|
481
|
+
className: i(T),
|
|
477
482
|
children: /* @__PURE__ */ t(c, {
|
|
478
483
|
paddingX: 16,
|
|
479
|
-
children:
|
|
480
|
-
labelId:
|
|
484
|
+
children: v({
|
|
485
|
+
labelId: r,
|
|
481
486
|
type: "control",
|
|
482
487
|
right: /* @__PURE__ */ t(X, {
|
|
483
488
|
space: "around",
|
|
484
489
|
children: e.iconButton.Icon ? /* @__PURE__ */ t(ie, _object_spread_props(_object_spread({}, e.iconButton), {
|
|
485
490
|
disabled: e.disabled,
|
|
486
491
|
ref: n
|
|
487
|
-
})) : /* @__PURE__ */ t(
|
|
492
|
+
})) : /* @__PURE__ */ t(oe, _object_spread_props(_object_spread({}, e.iconButton), {
|
|
488
493
|
disabled: e.disabled,
|
|
489
494
|
ref: n
|
|
490
495
|
}))
|
|
@@ -492,65 +497,65 @@ const oe = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
492
497
|
})
|
|
493
498
|
})
|
|
494
499
|
}) : e.radioValue ? e.onPress ? /* @__PURE__ */ L("div", {
|
|
495
|
-
className:
|
|
500
|
+
className: Q,
|
|
496
501
|
children: [
|
|
497
502
|
/* @__PURE__ */ t(S, {
|
|
498
503
|
disabled: o,
|
|
499
504
|
onPress: e.onPress,
|
|
500
|
-
role:
|
|
501
|
-
className:
|
|
502
|
-
[C]:
|
|
503
|
-
[
|
|
505
|
+
role: s,
|
|
506
|
+
className: i(U, {
|
|
507
|
+
[C]: N,
|
|
508
|
+
[k]: w
|
|
504
509
|
}),
|
|
505
|
-
"aria-label":
|
|
506
|
-
children:
|
|
510
|
+
"aria-label": a,
|
|
511
|
+
children: v({
|
|
507
512
|
type: "basic",
|
|
508
|
-
labelId:
|
|
513
|
+
labelId: r
|
|
509
514
|
})
|
|
510
515
|
}),
|
|
511
516
|
/* @__PURE__ */ t("div", {
|
|
512
|
-
className:
|
|
517
|
+
className: Z
|
|
513
518
|
}),
|
|
514
|
-
/* @__PURE__ */ t(
|
|
515
|
-
dataAttributes:
|
|
519
|
+
/* @__PURE__ */ t(re, {
|
|
520
|
+
dataAttributes: u,
|
|
516
521
|
value: e.radioValue,
|
|
517
|
-
"aria-labelledby":
|
|
518
|
-
"aria-label":
|
|
522
|
+
"aria-labelledby": r,
|
|
523
|
+
"aria-label": a,
|
|
519
524
|
render: (param)=>{
|
|
520
|
-
let { controlElement:
|
|
525
|
+
let { controlElement: g } = param;
|
|
521
526
|
return /* @__PURE__ */ t(X, {
|
|
522
527
|
space: "around",
|
|
523
528
|
children: /* @__PURE__ */ t(c, {
|
|
524
529
|
paddingX: 16,
|
|
525
|
-
children:
|
|
530
|
+
children: g
|
|
526
531
|
})
|
|
527
532
|
});
|
|
528
533
|
}
|
|
529
534
|
})
|
|
530
535
|
]
|
|
531
536
|
}) : /* @__PURE__ */ t("div", {
|
|
532
|
-
className:
|
|
533
|
-
[C]:
|
|
534
|
-
[
|
|
535
|
-
[
|
|
537
|
+
className: i(T, {
|
|
538
|
+
[C]: N,
|
|
539
|
+
[k]: w,
|
|
540
|
+
[W]: !o
|
|
536
541
|
}),
|
|
537
|
-
role:
|
|
542
|
+
role: s,
|
|
538
543
|
ref: n,
|
|
539
|
-
children: /* @__PURE__ */ t(
|
|
540
|
-
dataAttributes:
|
|
544
|
+
children: /* @__PURE__ */ t(re, {
|
|
545
|
+
dataAttributes: u,
|
|
541
546
|
value: e.radioValue,
|
|
542
|
-
"aria-labelledby":
|
|
543
|
-
"aria-label":
|
|
547
|
+
"aria-labelledby": r,
|
|
548
|
+
"aria-label": a,
|
|
544
549
|
render: (param)=>{
|
|
545
|
-
let { controlElement:
|
|
550
|
+
let { controlElement: g } = param;
|
|
546
551
|
return /* @__PURE__ */ t(c, {
|
|
547
552
|
paddingX: 16,
|
|
548
|
-
children:
|
|
549
|
-
labelId:
|
|
553
|
+
children: v({
|
|
554
|
+
labelId: r,
|
|
550
555
|
type: "control",
|
|
551
556
|
right: ()=>/* @__PURE__ */ t(X, {
|
|
552
557
|
space: "around",
|
|
553
|
-
children:
|
|
558
|
+
children: g
|
|
554
559
|
})
|
|
555
560
|
})
|
|
556
561
|
});
|
|
@@ -559,66 +564,66 @@ const oe = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
559
564
|
}) : /* @__PURE__ */ t(c, {
|
|
560
565
|
paddingX: 16,
|
|
561
566
|
className: T,
|
|
562
|
-
role:
|
|
563
|
-
dataAttributes:
|
|
564
|
-
children: e.right ?
|
|
567
|
+
role: s,
|
|
568
|
+
dataAttributes: u,
|
|
569
|
+
children: e.right ? v({
|
|
565
570
|
type: "custom",
|
|
566
571
|
right: e.right
|
|
567
|
-
}) :
|
|
572
|
+
}) : v({
|
|
568
573
|
type: "basic"
|
|
569
574
|
})
|
|
570
575
|
});
|
|
571
|
-
}),
|
|
572
|
-
var { dataAttributes: e, role: n = "listitem" } = _param,
|
|
576
|
+
}), ct = /*#__PURE__*/ I.forwardRef((_param, l)=>{
|
|
577
|
+
var { dataAttributes: e, role: n = "listitem" } = _param, r = _object_without_properties(_param, [
|
|
573
578
|
"dataAttributes",
|
|
574
579
|
"role"
|
|
575
580
|
]);
|
|
576
581
|
return /* @__PURE__ */ t("div", {
|
|
577
582
|
role: n,
|
|
578
|
-
className:
|
|
583
|
+
className: Se({
|
|
579
584
|
width: "100%"
|
|
580
585
|
}),
|
|
581
|
-
children: /* @__PURE__ */ t(
|
|
586
|
+
children: /* @__PURE__ */ t(de, _object_spread_props(_object_spread({}, r), {
|
|
582
587
|
ref: l,
|
|
583
588
|
dataAttributes: _object_spread({
|
|
584
589
|
"component-name": "Row"
|
|
585
590
|
}, e)
|
|
586
591
|
}))
|
|
587
592
|
});
|
|
588
|
-
}),
|
|
589
|
-
let { children: e, ariaLabelledby: n, role:
|
|
590
|
-
const
|
|
593
|
+
}), lt = (param)=>{
|
|
594
|
+
let { children: e, ariaLabelledby: n, role: r = "list", dataAttributes: l } = param;
|
|
595
|
+
const h = I.Children.toArray(e).filter(Boolean), P = h.length - 1;
|
|
591
596
|
return /* @__PURE__ */ t("div", _object_spread_props(_object_spread({
|
|
592
|
-
role:
|
|
597
|
+
role: r,
|
|
593
598
|
"aria-labelledby": n
|
|
594
|
-
},
|
|
595
|
-
children:
|
|
599
|
+
}, we(l, "RowList")), {
|
|
600
|
+
children: h.map((b, x)=>/* @__PURE__ */ L(I.Fragment, {
|
|
596
601
|
children: [
|
|
597
602
|
b,
|
|
598
603
|
x < P && /* @__PURE__ */ t(c, {
|
|
599
604
|
paddingX: 16,
|
|
600
|
-
children: /* @__PURE__ */ t(
|
|
605
|
+
children: /* @__PURE__ */ t(Ne, {})
|
|
601
606
|
})
|
|
602
607
|
]
|
|
603
608
|
}, x))
|
|
604
609
|
}));
|
|
605
|
-
},
|
|
610
|
+
}, dt = /*#__PURE__*/ I.forwardRef((_param, r)=>{
|
|
606
611
|
var { dataAttributes: e } = _param, n = _object_without_properties(_param, [
|
|
607
612
|
"dataAttributes"
|
|
608
613
|
]);
|
|
609
|
-
return /* @__PURE__ */ t(
|
|
614
|
+
return /* @__PURE__ */ t(ye, {
|
|
610
615
|
isInverse: n.isInverse,
|
|
611
|
-
ref:
|
|
616
|
+
ref: r,
|
|
612
617
|
dataAttributes: _object_spread({
|
|
613
618
|
"component-name": "BoxedRow"
|
|
614
619
|
}, e),
|
|
615
|
-
children: /* @__PURE__ */ t(
|
|
620
|
+
children: /* @__PURE__ */ t(de, _object_spread({}, n))
|
|
616
621
|
});
|
|
617
|
-
}),
|
|
618
|
-
let { children: e, ariaLabelledby: n, role:
|
|
622
|
+
}), st = (param)=>{
|
|
623
|
+
let { children: e, ariaLabelledby: n, role: r = "list", dataAttributes: l } = param;
|
|
619
624
|
return /* @__PURE__ */ t(X, {
|
|
620
625
|
space: 16,
|
|
621
|
-
role:
|
|
626
|
+
role: r,
|
|
622
627
|
"aria-labelledby": n,
|
|
623
628
|
dataAttributes: _object_spread({
|
|
624
629
|
"component-name": "BoxedRowList"
|
|
@@ -626,4 +631,4 @@ const oe = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
626
631
|
children: e
|
|
627
632
|
});
|
|
628
633
|
};
|
|
629
|
-
export {
|
|
634
|
+
export { dt as BoxedRow, st as BoxedRowList, Ve as Content, ct as Row, lt as RowList };
|