@telefonica/mistica 14.19.0 → 14.20.1
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.js +17 -17
- package/dist/card.css-mistica.js +6 -6
- package/dist/card.css.d.ts +0 -1
- package/dist/card.d.ts +15 -4
- package/dist/card.js +298 -264
- package/dist/community/advanced-data-card.css-mistica.js +18 -21
- package/dist/community/advanced-data-card.css.d.ts +2 -3
- package/dist/community/advanced-data-card.js +171 -158
- package/dist/generated/mistica-icons/icon-subtract-circle-filled.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-subtract-circle-filled.js +110 -0
- package/dist/generated/mistica-icons/icon-subtract-circle-light.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-subtract-circle-light.js +116 -0
- package/dist/generated/mistica-icons/icon-subtract-circle-regular.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-subtract-circle-regular.js +116 -0
- package/dist/generated/mistica-icons/icon-subtract-light.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-subtract-light.js +110 -0
- package/dist/generated/mistica-icons/icon-subtract-regular.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-subtract-regular.js +110 -0
- package/dist/header.js +27 -29
- package/dist/index.d.ts +9 -1
- package/dist/index.js +50 -0
- package/dist/list.css-mistica.js +17 -14
- package/dist/list.css.d.ts +2 -1
- package/dist/list.js +170 -163
- package/dist/package-version.js +1 -1
- package/dist/skins/blau.js +14 -0
- package/dist/skins/defaults.js +14 -0
- package/dist/skins/movistar-legacy.js +14 -0
- package/dist/skins/movistar.js +14 -0
- package/dist/skins/o2.js +14 -0
- package/dist/skins/telefonica.js +16 -2
- package/dist/skins/types/index.d.ts +12 -0
- package/dist/skins/vivo-new.js +15 -1
- package/dist/skins/vivo.js +14 -0
- package/dist/tabs.css-mistica.js +10 -14
- package/dist/tabs.css.d.ts +1 -2
- package/dist/tabs.js +39 -33
- package/dist/theme-context-provider.js +29 -27
- package/dist/title.d.ts +1 -0
- package/dist/title.js +91 -29
- package/dist-es/button.js +17 -17
- package/dist-es/card.css-mistica.js +3 -3
- package/dist-es/card.js +409 -378
- package/dist-es/community/advanced-data-card.css-mistica.js +3 -3
- package/dist-es/community/advanced-data-card.js +195 -182
- package/dist-es/generated/mistica-icons/icon-subtract-circle-filled.js +101 -0
- package/dist-es/generated/mistica-icons/icon-subtract-circle-light.js +107 -0
- package/dist-es/generated/mistica-icons/icon-subtract-circle-regular.js +107 -0
- package/dist-es/generated/mistica-icons/icon-subtract-light.js +101 -0
- package/dist-es/generated/mistica-icons/icon-subtract-regular.js +101 -0
- package/dist-es/header.js +46 -48
- package/dist-es/index.js +1755 -1747
- package/dist-es/list.css-mistica.js +2 -2
- package/dist-es/list.js +242 -235
- package/dist-es/package-version.js +1 -1
- package/dist-es/skins/blau.js +14 -0
- package/dist-es/skins/defaults.js +14 -0
- package/dist-es/skins/movistar-legacy.js +14 -0
- package/dist-es/skins/movistar.js +14 -0
- package/dist-es/skins/o2.js +14 -0
- package/dist-es/skins/telefonica.js +16 -2
- package/dist-es/skins/vivo-new.js +15 -1
- package/dist-es/skins/vivo.js +14 -0
- package/dist-es/style.css +1 -1
- package/dist-es/tabs.css-mistica.js +8 -9
- package/dist-es/tabs.js +49 -43
- package/dist-es/theme-context-provider.js +63 -61
- package/dist-es/title.js +58 -38
- package/package.json +5 -2
package/dist-es/list.js
CHANGED
|
@@ -77,153 +77,153 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
77
77
|
}
|
|
78
78
|
return target;
|
|
79
79
|
}
|
|
80
|
-
import { jsx as t, jsxs as
|
|
81
|
-
import * as
|
|
82
|
-
import
|
|
83
|
-
import { BaseTouchable as
|
|
84
|
-
import { Text1 as
|
|
85
|
-
import
|
|
86
|
-
import
|
|
87
|
-
import
|
|
88
|
-
import { useAriaId as
|
|
89
|
-
import { useIsInverseVariant as
|
|
90
|
-
import
|
|
91
|
-
import
|
|
92
|
-
import
|
|
93
|
-
import
|
|
94
|
-
import { Boxed as
|
|
95
|
-
import
|
|
96
|
-
import { getPrefixedDataAttributes as
|
|
97
|
-
import { rowContent as
|
|
98
|
-
import { vars as
|
|
99
|
-
const
|
|
100
|
-
centerY:
|
|
101
|
-
}) :
|
|
80
|
+
import { jsx as t, jsxs as k } from "react/jsx-runtime";
|
|
81
|
+
import * as P from "react";
|
|
82
|
+
import a from "classnames";
|
|
83
|
+
import { BaseTouchable as S } from "./touchable.js";
|
|
84
|
+
import { Text1 as ne, Text3 as re, Text2 as O } from "./text.js";
|
|
85
|
+
import m from "./box.js";
|
|
86
|
+
import L from "./stack.js";
|
|
87
|
+
import J from "./badge.js";
|
|
88
|
+
import { useAriaId as ie } from "./hooks.js";
|
|
89
|
+
import { useIsInverseVariant as p } from "./theme-variant-context.js";
|
|
90
|
+
import ae from "./icons/icon-chevron.js";
|
|
91
|
+
import oe from "./switch-component.js";
|
|
92
|
+
import K, { useRadioContext as ce } from "./radio-button.js";
|
|
93
|
+
import se from "./checkbox.js";
|
|
94
|
+
import { Boxed as de } from "./boxed.js";
|
|
95
|
+
import le from "./divider.js";
|
|
96
|
+
import { getPrefixedDataAttributes as he } from "./utils/dom.js";
|
|
97
|
+
import { rowContent as B, touchableBackground as R, touchableBackgroundInverse as C, pointer as V, dualActionContainer as Q, dualActionLeft as U, dualActionDivider as Z, dualActionRight as ue, content as me, center as W, disabled as I, asset as fe, rowBody as ge, right as ve, rightRestrictedWidth as be, detail as xe, detailRight as _, badge as we } from "./list.css-mistica.js";
|
|
98
|
+
import { vars as N } from "./skins/skin-contract.css-mistica.js";
|
|
99
|
+
const $ = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
100
|
+
centerY: n
|
|
101
|
+
}) : n ? /* @__PURE__ */ t("div", {
|
|
102
102
|
style: {
|
|
103
103
|
display: "flex",
|
|
104
104
|
alignItems: "center",
|
|
105
105
|
height: "100%"
|
|
106
106
|
},
|
|
107
107
|
children: e
|
|
108
|
-
}) : e,
|
|
109
|
-
let { withChevron: e , headline:
|
|
110
|
-
const
|
|
108
|
+
}) : e, ye = (param)=>{
|
|
109
|
+
let { withChevron: e , headline: n , title: r , titleLinesMax: o , subtitle: d , subtitleLinesMax: x , description: l , descriptionLinesMax: A , detail: c , asset: E , type: g = "basic" , badge: T , right: X , extra: D , labelId: h , disabled: v } = param;
|
|
110
|
+
const u = p(), i = [
|
|
111
|
+
n,
|
|
111
112
|
r,
|
|
112
|
-
|
|
113
|
-
s,
|
|
113
|
+
d,
|
|
114
114
|
l,
|
|
115
|
-
|
|
116
|
-
].filter(Boolean).length === 1,
|
|
115
|
+
D
|
|
116
|
+
].filter(Boolean).length === 1, f = ()=>T ? /* @__PURE__ */ t(m, {
|
|
117
117
|
paddingLeft: 16,
|
|
118
118
|
children: /* @__PURE__ */ t("div", {
|
|
119
|
-
className:
|
|
120
|
-
[
|
|
119
|
+
className: a(W, we, {
|
|
120
|
+
[I]: v
|
|
121
121
|
}),
|
|
122
|
-
children:
|
|
123
|
-
value:
|
|
122
|
+
children: T === !0 ? /* @__PURE__ */ t(J, {}) : /* @__PURE__ */ t(J, {
|
|
123
|
+
value: T
|
|
124
124
|
})
|
|
125
125
|
})
|
|
126
126
|
}) : null;
|
|
127
|
-
return /* @__PURE__ */
|
|
127
|
+
return /* @__PURE__ */ k(m, {
|
|
128
128
|
paddingY: 16,
|
|
129
|
-
className:
|
|
129
|
+
className: me,
|
|
130
130
|
children: [
|
|
131
|
-
|
|
131
|
+
E && /* @__PURE__ */ t(m, {
|
|
132
132
|
paddingRight: 16,
|
|
133
|
-
className:
|
|
134
|
-
[
|
|
135
|
-
[
|
|
133
|
+
className: a({
|
|
134
|
+
[W]: i,
|
|
135
|
+
[I]: v
|
|
136
136
|
}),
|
|
137
137
|
children: /* @__PURE__ */ t("div", {
|
|
138
|
-
className:
|
|
139
|
-
children:
|
|
138
|
+
className: fe,
|
|
139
|
+
children: E
|
|
140
140
|
})
|
|
141
141
|
}),
|
|
142
142
|
/* @__PURE__ */ t("div", {
|
|
143
|
-
className:
|
|
144
|
-
[
|
|
143
|
+
className: a(ge, {
|
|
144
|
+
[I]: v
|
|
145
145
|
}),
|
|
146
146
|
style: {
|
|
147
|
-
justifyContent:
|
|
147
|
+
justifyContent: i ? "center" : "flex-start"
|
|
148
148
|
},
|
|
149
|
-
children: /* @__PURE__ */
|
|
149
|
+
children: /* @__PURE__ */ k(L, {
|
|
150
150
|
space: 4,
|
|
151
151
|
children: [
|
|
152
|
-
|
|
152
|
+
n && /* @__PURE__ */ t(ne, {
|
|
153
153
|
regular: !0,
|
|
154
|
-
color:
|
|
154
|
+
color: N.colors.textPrimary,
|
|
155
155
|
hyphens: "auto",
|
|
156
|
-
children:
|
|
156
|
+
children: n
|
|
157
157
|
}),
|
|
158
|
-
/* @__PURE__ */
|
|
158
|
+
/* @__PURE__ */ k(L, {
|
|
159
159
|
space: 2,
|
|
160
160
|
children: [
|
|
161
|
-
/* @__PURE__ */ t(
|
|
161
|
+
/* @__PURE__ */ t(re, {
|
|
162
162
|
regular: !0,
|
|
163
|
-
color:
|
|
164
|
-
truncate:
|
|
163
|
+
color: N.colors.textPrimary,
|
|
164
|
+
truncate: o,
|
|
165
165
|
id: h,
|
|
166
166
|
hyphens: "auto",
|
|
167
|
-
children:
|
|
167
|
+
children: r
|
|
168
168
|
}),
|
|
169
|
-
|
|
169
|
+
d && /* @__PURE__ */ t(O, {
|
|
170
170
|
regular: !0,
|
|
171
|
-
color:
|
|
172
|
-
truncate:
|
|
171
|
+
color: N.colors.textSecondary,
|
|
172
|
+
truncate: x,
|
|
173
173
|
hyphens: "auto",
|
|
174
|
-
children:
|
|
174
|
+
children: d
|
|
175
175
|
}),
|
|
176
|
-
l && /* @__PURE__ */ t(
|
|
176
|
+
l && /* @__PURE__ */ t(O, {
|
|
177
177
|
regular: !0,
|
|
178
|
-
color:
|
|
179
|
-
truncate:
|
|
178
|
+
color: N.colors.textSecondary,
|
|
179
|
+
truncate: A,
|
|
180
180
|
hyphens: "auto",
|
|
181
181
|
children: l
|
|
182
182
|
}),
|
|
183
|
-
|
|
183
|
+
D
|
|
184
184
|
]
|
|
185
185
|
})
|
|
186
186
|
]
|
|
187
187
|
})
|
|
188
188
|
}),
|
|
189
|
-
|
|
190
|
-
/* @__PURE__ */
|
|
191
|
-
className:
|
|
192
|
-
[
|
|
193
|
-
[
|
|
189
|
+
f(),
|
|
190
|
+
/* @__PURE__ */ k("div", {
|
|
191
|
+
className: a({
|
|
192
|
+
[ve]: !!c || g !== "basic",
|
|
193
|
+
[be]: !!c
|
|
194
194
|
}),
|
|
195
195
|
children: [
|
|
196
196
|
c && /* @__PURE__ */ t("div", {
|
|
197
|
-
className:
|
|
198
|
-
[
|
|
197
|
+
className: a(W, xe, {
|
|
198
|
+
[I]: v
|
|
199
199
|
}),
|
|
200
|
-
children: /* @__PURE__ */ t(
|
|
200
|
+
children: /* @__PURE__ */ t(O, {
|
|
201
201
|
regular: !0,
|
|
202
|
-
color:
|
|
202
|
+
color: N.colors.textSecondary,
|
|
203
203
|
hyphens: "auto",
|
|
204
204
|
children: c
|
|
205
205
|
})
|
|
206
206
|
}),
|
|
207
|
-
|
|
208
|
-
className:
|
|
209
|
-
[
|
|
207
|
+
g === "control" && /* @__PURE__ */ t("div", {
|
|
208
|
+
className: a({
|
|
209
|
+
[_]: !!c
|
|
210
210
|
}),
|
|
211
|
-
children:
|
|
211
|
+
children: $(X, i)
|
|
212
212
|
}),
|
|
213
|
-
|
|
214
|
-
className:
|
|
215
|
-
[
|
|
216
|
-
[
|
|
213
|
+
g === "custom" && /* @__PURE__ */ t("div", {
|
|
214
|
+
className: a({
|
|
215
|
+
[_]: !!c,
|
|
216
|
+
[I]: v
|
|
217
217
|
}),
|
|
218
|
-
children:
|
|
218
|
+
children: $(X, i)
|
|
219
219
|
}),
|
|
220
|
-
(
|
|
221
|
-
paddingLeft: c ||
|
|
222
|
-
className:
|
|
223
|
-
[
|
|
220
|
+
(g === "chevron" || g === "custom" && e) && /* @__PURE__ */ t(m, {
|
|
221
|
+
paddingLeft: c || g === "custom" ? 4 : 0,
|
|
222
|
+
className: a(W, {
|
|
223
|
+
[I]: v
|
|
224
224
|
}),
|
|
225
|
-
children: /* @__PURE__ */ t(
|
|
226
|
-
color:
|
|
225
|
+
children: /* @__PURE__ */ t(ae, {
|
|
226
|
+
color: u ? N.colors.inverse : N.colors.neutralMedium,
|
|
227
227
|
direction: "right"
|
|
228
228
|
})
|
|
229
229
|
})
|
|
@@ -231,149 +231,154 @@ const U = (e, r)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
231
231
|
})
|
|
232
232
|
]
|
|
233
233
|
});
|
|
234
|
-
},
|
|
235
|
-
let { value: e , defaultValue:
|
|
236
|
-
const
|
|
237
|
-
|
|
234
|
+
}, Re = (param)=>{
|
|
235
|
+
let { value: e , defaultValue: n , onChange: r } = param;
|
|
236
|
+
const o = e !== void 0, [d, x] = P.useState(!!n), l = ()=>{
|
|
237
|
+
o || x(!d), r && r(o ? !e : !d);
|
|
238
238
|
};
|
|
239
|
-
return
|
|
239
|
+
return o ? [
|
|
240
240
|
!!e,
|
|
241
241
|
l
|
|
242
242
|
] : [
|
|
243
|
-
|
|
243
|
+
d,
|
|
244
244
|
l
|
|
245
245
|
];
|
|
246
|
-
},
|
|
247
|
-
const
|
|
248
|
-
let { type:
|
|
249
|
-
return t(
|
|
250
|
-
asset:
|
|
251
|
-
headline:
|
|
246
|
+
}, Ce = (e)=>e.switch !== void 0, Ne = (e)=>e.checkbox !== void 0, ke = (e)=>e.radioValue !== void 0, ee = /*#__PURE__*/ P.forwardRef((e, n)=>{
|
|
247
|
+
const r = ie(), o = p(), { asset: d , headline: x , title: l , titleLinesMax: A , subtitle: c , subtitleLinesMax: E , description: g , descriptionLinesMax: T , detail: X , badge: D , role: h , extra: v , dataAttributes: u } = e, F = ce(), i = e.disabled || e.radioValue !== void 0 && F.disabled, f = !i && !o, w = !i && o, [Y, q] = Re(e.switch || e.checkbox || {}), y = (param)=>/* @__PURE__ */ {
|
|
248
|
+
let { type: s , right: b , labelId: M } = param;
|
|
249
|
+
return t(ye, {
|
|
250
|
+
asset: d,
|
|
251
|
+
headline: x,
|
|
252
252
|
title: l,
|
|
253
253
|
subtitle: c,
|
|
254
|
-
description:
|
|
255
|
-
badge:
|
|
256
|
-
titleLinesMax:
|
|
257
|
-
subtitleLinesMax:
|
|
258
|
-
descriptionLinesMax:
|
|
259
|
-
detail:
|
|
260
|
-
type:
|
|
261
|
-
right:
|
|
262
|
-
extra:
|
|
263
|
-
labelId:
|
|
264
|
-
disabled:
|
|
254
|
+
description: g,
|
|
255
|
+
badge: D,
|
|
256
|
+
titleLinesMax: A,
|
|
257
|
+
subtitleLinesMax: E,
|
|
258
|
+
descriptionLinesMax: T,
|
|
259
|
+
detail: X,
|
|
260
|
+
type: s,
|
|
261
|
+
right: b,
|
|
262
|
+
extra: v,
|
|
263
|
+
labelId: M,
|
|
264
|
+
disabled: i,
|
|
265
265
|
withChevron: !!e.onPress || !!e.href || !!e.to
|
|
266
266
|
});
|
|
267
|
-
},
|
|
268
|
-
let
|
|
269
|
-
return
|
|
267
|
+
}, j = (s)=>{
|
|
268
|
+
let b = "chevron";
|
|
269
|
+
return s.right === null && (b = "basic"), s.right && (b = "custom"), /* @__PURE__ */ t(m, {
|
|
270
270
|
paddingX: 16,
|
|
271
|
-
ref:
|
|
272
|
-
children:
|
|
273
|
-
type:
|
|
274
|
-
right:
|
|
271
|
+
ref: n,
|
|
272
|
+
children: y({
|
|
273
|
+
type: b,
|
|
274
|
+
right: s.right
|
|
275
275
|
})
|
|
276
276
|
});
|
|
277
277
|
};
|
|
278
|
-
if (e.onPress && !
|
|
279
|
-
ref:
|
|
280
|
-
className:
|
|
281
|
-
[
|
|
282
|
-
[
|
|
278
|
+
if (e.onPress && !Ce(e) && !Ne(e) && !ke(e)) return /* @__PURE__ */ t(S, {
|
|
279
|
+
ref: n,
|
|
280
|
+
className: a(B, {
|
|
281
|
+
[R]: f,
|
|
282
|
+
[C]: w,
|
|
283
|
+
[V]: !i
|
|
283
284
|
}),
|
|
284
285
|
trackingEvent: e.trackingEvent,
|
|
285
286
|
onPress: e.onPress,
|
|
286
287
|
role: h,
|
|
287
|
-
dataAttributes:
|
|
288
|
-
disabled:
|
|
289
|
-
children:
|
|
288
|
+
dataAttributes: u,
|
|
289
|
+
disabled: i,
|
|
290
|
+
children: j(e)
|
|
290
291
|
});
|
|
291
|
-
if (e.to) return /* @__PURE__ */ t(
|
|
292
|
-
className:
|
|
293
|
-
[
|
|
294
|
-
[
|
|
292
|
+
if (e.to) return /* @__PURE__ */ t(S, {
|
|
293
|
+
className: a(B, {
|
|
294
|
+
[R]: f,
|
|
295
|
+
[C]: w,
|
|
296
|
+
[V]: !i
|
|
295
297
|
}),
|
|
296
298
|
trackingEvent: e.trackingEvent,
|
|
297
299
|
to: e.to,
|
|
298
300
|
fullPageOnWebView: e.fullPageOnWebView,
|
|
299
301
|
role: h,
|
|
300
|
-
dataAttributes:
|
|
301
|
-
disabled:
|
|
302
|
-
children:
|
|
302
|
+
dataAttributes: u,
|
|
303
|
+
disabled: i,
|
|
304
|
+
children: j(e)
|
|
303
305
|
});
|
|
304
|
-
if (e.href) return /* @__PURE__ */ t(
|
|
305
|
-
className:
|
|
306
|
-
[
|
|
307
|
-
[
|
|
306
|
+
if (e.href) return /* @__PURE__ */ t(S, {
|
|
307
|
+
className: a(B, {
|
|
308
|
+
[R]: f,
|
|
309
|
+
[C]: w,
|
|
310
|
+
[V]: !i
|
|
308
311
|
}),
|
|
309
312
|
trackingEvent: e.trackingEvent,
|
|
310
313
|
href: e.href,
|
|
311
314
|
newTab: e.newTab,
|
|
312
315
|
role: h,
|
|
313
|
-
dataAttributes:
|
|
314
|
-
disabled:
|
|
315
|
-
children:
|
|
316
|
+
dataAttributes: u,
|
|
317
|
+
disabled: i,
|
|
318
|
+
children: j(e)
|
|
316
319
|
});
|
|
317
|
-
const
|
|
318
|
-
var
|
|
320
|
+
const z = (s)=>{
|
|
321
|
+
var M, G;
|
|
319
322
|
var _ref, _ref1;
|
|
320
|
-
const
|
|
321
|
-
return e.onPress ? /* @__PURE__ */
|
|
322
|
-
className:
|
|
323
|
+
const b = (_ref1 = (_ref = (M = e.switch) == null ? void 0 : M.name) !== null && _ref !== void 0 ? _ref : (G = e.checkbox) == null ? void 0 : G.name) !== null && _ref1 !== void 0 ? _ref1 : r;
|
|
324
|
+
return e.onPress ? /* @__PURE__ */ k("div", {
|
|
325
|
+
className: Q,
|
|
323
326
|
children: [
|
|
324
|
-
/* @__PURE__ */ t(
|
|
325
|
-
dataAttributes:
|
|
326
|
-
disabled:
|
|
327
|
+
/* @__PURE__ */ t(S, {
|
|
328
|
+
dataAttributes: u,
|
|
329
|
+
disabled: i,
|
|
327
330
|
onPress: e.onPress,
|
|
328
331
|
role: h,
|
|
329
|
-
className:
|
|
330
|
-
[
|
|
332
|
+
className: a(U, {
|
|
333
|
+
[R]: f,
|
|
334
|
+
[C]: w
|
|
331
335
|
}),
|
|
332
|
-
children:
|
|
336
|
+
children: y({
|
|
333
337
|
type: "basic",
|
|
334
|
-
labelId:
|
|
338
|
+
labelId: r
|
|
335
339
|
})
|
|
336
340
|
}),
|
|
337
341
|
/* @__PURE__ */ t("div", {
|
|
338
|
-
className:
|
|
342
|
+
className: Z
|
|
339
343
|
}),
|
|
340
|
-
/* @__PURE__ */ t(
|
|
341
|
-
disabled:
|
|
342
|
-
name:
|
|
343
|
-
checked:
|
|
344
|
-
"aria-labelledby":
|
|
345
|
-
onChange:
|
|
344
|
+
/* @__PURE__ */ t(s, {
|
|
345
|
+
disabled: i,
|
|
346
|
+
name: b,
|
|
347
|
+
checked: Y,
|
|
348
|
+
"aria-labelledby": r,
|
|
349
|
+
onChange: q,
|
|
346
350
|
render: (param)=>/* @__PURE__ */ {
|
|
347
|
-
let { controlElement:
|
|
351
|
+
let { controlElement: H } = param;
|
|
348
352
|
return t("div", {
|
|
349
|
-
className:
|
|
350
|
-
children:
|
|
353
|
+
className: ue,
|
|
354
|
+
children: H
|
|
351
355
|
});
|
|
352
356
|
}
|
|
353
357
|
})
|
|
354
358
|
]
|
|
355
359
|
}) : /* @__PURE__ */ t("div", {
|
|
356
|
-
className:
|
|
357
|
-
[
|
|
358
|
-
[
|
|
360
|
+
className: a(B, {
|
|
361
|
+
[R]: f,
|
|
362
|
+
[C]: w,
|
|
363
|
+
[V]: !i
|
|
359
364
|
}),
|
|
360
|
-
children: /* @__PURE__ */ t(
|
|
361
|
-
disabled:
|
|
362
|
-
dataAttributes:
|
|
363
|
-
name:
|
|
364
|
-
checked:
|
|
365
|
-
onChange:
|
|
365
|
+
children: /* @__PURE__ */ t(s, {
|
|
366
|
+
disabled: i,
|
|
367
|
+
dataAttributes: u,
|
|
368
|
+
name: b,
|
|
369
|
+
checked: Y,
|
|
370
|
+
onChange: q,
|
|
366
371
|
render: (param)=>/* @__PURE__ */ {
|
|
367
|
-
let { controlElement:
|
|
368
|
-
return t(
|
|
372
|
+
let { controlElement: H , labelId: te } = param;
|
|
373
|
+
return t(m, {
|
|
369
374
|
paddingX: 16,
|
|
370
375
|
role: h,
|
|
371
|
-
children:
|
|
372
|
-
labelId:
|
|
376
|
+
children: y({
|
|
377
|
+
labelId: te,
|
|
373
378
|
type: "control",
|
|
374
|
-
right: ()=>/* @__PURE__ */ t(
|
|
379
|
+
right: ()=>/* @__PURE__ */ t(L, {
|
|
375
380
|
space: "around",
|
|
376
|
-
children:
|
|
381
|
+
children: H
|
|
377
382
|
})
|
|
378
383
|
})
|
|
379
384
|
});
|
|
@@ -381,127 +386,129 @@ const U = (e, r)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
381
386
|
})
|
|
382
387
|
});
|
|
383
388
|
};
|
|
384
|
-
return e.switch ?
|
|
385
|
-
className:
|
|
389
|
+
return e.switch ? z(oe) : e.checkbox ? z(se) : e.radioValue ? e.onPress ? /* @__PURE__ */ k("div", {
|
|
390
|
+
className: Q,
|
|
386
391
|
children: [
|
|
387
|
-
/* @__PURE__ */ t(
|
|
388
|
-
disabled:
|
|
392
|
+
/* @__PURE__ */ t(S, {
|
|
393
|
+
disabled: i,
|
|
389
394
|
onPress: e.onPress,
|
|
390
395
|
role: h,
|
|
391
|
-
className:
|
|
392
|
-
[
|
|
396
|
+
className: a(U, {
|
|
397
|
+
[R]: f,
|
|
398
|
+
[C]: w
|
|
393
399
|
}),
|
|
394
|
-
children:
|
|
400
|
+
children: y({
|
|
395
401
|
type: "basic",
|
|
396
|
-
labelId:
|
|
402
|
+
labelId: r
|
|
397
403
|
})
|
|
398
404
|
}),
|
|
399
405
|
/* @__PURE__ */ t("div", {
|
|
400
|
-
className:
|
|
406
|
+
className: Z
|
|
401
407
|
}),
|
|
402
|
-
/* @__PURE__ */ t(
|
|
403
|
-
dataAttributes:
|
|
408
|
+
/* @__PURE__ */ t(K, {
|
|
409
|
+
dataAttributes: u,
|
|
404
410
|
value: e.radioValue,
|
|
405
|
-
"aria-labelledby":
|
|
411
|
+
"aria-labelledby": r,
|
|
406
412
|
render: (param)=>/* @__PURE__ */ {
|
|
407
|
-
let { controlElement:
|
|
408
|
-
return t(
|
|
413
|
+
let { controlElement: s } = param;
|
|
414
|
+
return t(L, {
|
|
409
415
|
space: "around",
|
|
410
|
-
children: /* @__PURE__ */ t(
|
|
416
|
+
children: /* @__PURE__ */ t(m, {
|
|
411
417
|
paddingX: 16,
|
|
412
|
-
children:
|
|
418
|
+
children: s
|
|
413
419
|
})
|
|
414
420
|
});
|
|
415
421
|
}
|
|
416
422
|
})
|
|
417
423
|
]
|
|
418
424
|
}) : /* @__PURE__ */ t("div", {
|
|
419
|
-
className:
|
|
420
|
-
[
|
|
421
|
-
[
|
|
425
|
+
className: a(B, {
|
|
426
|
+
[R]: f,
|
|
427
|
+
[C]: w,
|
|
428
|
+
[V]: !i
|
|
422
429
|
}),
|
|
423
430
|
role: h,
|
|
424
|
-
ref:
|
|
425
|
-
children: /* @__PURE__ */ t(
|
|
426
|
-
dataAttributes:
|
|
431
|
+
ref: n,
|
|
432
|
+
children: /* @__PURE__ */ t(K, {
|
|
433
|
+
dataAttributes: u,
|
|
427
434
|
value: e.radioValue,
|
|
428
|
-
"aria-labelledby":
|
|
435
|
+
"aria-labelledby": r,
|
|
429
436
|
render: (param)=>/* @__PURE__ */ {
|
|
430
|
-
let { controlElement:
|
|
431
|
-
return t(
|
|
437
|
+
let { controlElement: s } = param;
|
|
438
|
+
return t(m, {
|
|
432
439
|
paddingX: 16,
|
|
433
|
-
children:
|
|
434
|
-
labelId:
|
|
440
|
+
children: y({
|
|
441
|
+
labelId: r,
|
|
435
442
|
type: "control",
|
|
436
|
-
right: ()=>/* @__PURE__ */ t(
|
|
443
|
+
right: ()=>/* @__PURE__ */ t(L, {
|
|
437
444
|
space: "around",
|
|
438
|
-
children:
|
|
445
|
+
children: s
|
|
439
446
|
})
|
|
440
447
|
})
|
|
441
448
|
});
|
|
442
449
|
}
|
|
443
450
|
})
|
|
444
|
-
}) : /* @__PURE__ */ t(
|
|
451
|
+
}) : /* @__PURE__ */ t(m, {
|
|
445
452
|
paddingX: 16,
|
|
446
|
-
className:
|
|
453
|
+
className: B,
|
|
447
454
|
role: h,
|
|
448
|
-
dataAttributes:
|
|
449
|
-
children: e.right ?
|
|
455
|
+
dataAttributes: u,
|
|
456
|
+
children: e.right ? y({
|
|
450
457
|
type: "custom",
|
|
451
458
|
right: e.right
|
|
452
|
-
}) :
|
|
459
|
+
}) : y({
|
|
453
460
|
type: "basic"
|
|
454
461
|
})
|
|
455
462
|
});
|
|
456
|
-
}),
|
|
457
|
-
var { dataAttributes: e } = _param,
|
|
463
|
+
}), qe = /*#__PURE__*/ P.forwardRef((_param, r)=>/* @__PURE__ */ {
|
|
464
|
+
var { dataAttributes: e } = _param, n = _object_without_properties(_param, [
|
|
458
465
|
"dataAttributes"
|
|
459
466
|
]);
|
|
460
|
-
return t(
|
|
461
|
-
ref:
|
|
467
|
+
return t(ee, _object_spread_props(_object_spread({}, n), {
|
|
468
|
+
ref: r,
|
|
462
469
|
dataAttributes: _object_spread({
|
|
463
470
|
"component-name": "Row"
|
|
464
471
|
}, e)
|
|
465
472
|
}));
|
|
466
|
-
}),
|
|
467
|
-
let { children: e , ariaLabelledby:
|
|
468
|
-
const
|
|
473
|
+
}), ze = (param)=>{
|
|
474
|
+
let { children: e , ariaLabelledby: n , role: r , dataAttributes: o , noLastDivider: d } = param;
|
|
475
|
+
const x = P.Children.count(e) - 1, l = !d;
|
|
469
476
|
return /* @__PURE__ */ t("div", _object_spread_props(_object_spread({
|
|
470
|
-
role:
|
|
471
|
-
"aria-labelledby":
|
|
472
|
-
},
|
|
473
|
-
children:
|
|
477
|
+
role: r,
|
|
478
|
+
"aria-labelledby": n
|
|
479
|
+
}, he(o, "RowList")), {
|
|
480
|
+
children: P.Children.toArray(e).filter(Boolean).map((A, c)=>/* @__PURE__ */ k(P.Fragment, {
|
|
474
481
|
children: [
|
|
475
|
-
|
|
476
|
-
(c <
|
|
482
|
+
A,
|
|
483
|
+
(c < x || l) && /* @__PURE__ */ t(m, {
|
|
477
484
|
paddingX: 16,
|
|
478
|
-
children: /* @__PURE__ */ t(
|
|
485
|
+
children: /* @__PURE__ */ t(le, {})
|
|
479
486
|
})
|
|
480
487
|
]
|
|
481
488
|
}, c))
|
|
482
489
|
}));
|
|
483
|
-
},
|
|
484
|
-
var { dataAttributes: e } = _param,
|
|
490
|
+
}, Ge = /*#__PURE__*/ P.forwardRef((_param, r)=>/* @__PURE__ */ {
|
|
491
|
+
var { dataAttributes: e } = _param, n = _object_without_properties(_param, [
|
|
485
492
|
"dataAttributes"
|
|
486
493
|
]);
|
|
487
|
-
return t(
|
|
488
|
-
isInverse:
|
|
489
|
-
ref:
|
|
494
|
+
return t(de, {
|
|
495
|
+
isInverse: n.isInverse,
|
|
496
|
+
ref: r,
|
|
490
497
|
dataAttributes: _object_spread({
|
|
491
498
|
"component-name": "BoxedRow"
|
|
492
499
|
}, e),
|
|
493
|
-
children: /* @__PURE__ */ t(
|
|
500
|
+
children: /* @__PURE__ */ t(ee, _object_spread({}, n))
|
|
494
501
|
});
|
|
495
|
-
}),
|
|
496
|
-
let { children: e , ariaLabelledby:
|
|
497
|
-
return t(
|
|
502
|
+
}), Je = (param)=>/* @__PURE__ */ {
|
|
503
|
+
let { children: e , ariaLabelledby: n , role: r , dataAttributes: o } = param;
|
|
504
|
+
return t(L, {
|
|
498
505
|
space: 16,
|
|
499
|
-
role:
|
|
500
|
-
"aria-labelledby":
|
|
506
|
+
role: r,
|
|
507
|
+
"aria-labelledby": n,
|
|
501
508
|
dataAttributes: _object_spread({
|
|
502
509
|
"component-name": "BoxedRowList"
|
|
503
|
-
},
|
|
510
|
+
}, o),
|
|
504
511
|
children: e
|
|
505
512
|
});
|
|
506
513
|
};
|
|
507
|
-
export {
|
|
514
|
+
export { Ge as BoxedRow, Je as BoxedRowList, qe as Row, ze as RowList };
|