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