@telefonica/mistica 14.18.2 → 14.20.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 +28 -22
- package/dist/button.css.d.ts +3 -1
- package/dist/button.d.ts +6 -0
- package/dist/button.js +60 -58
- package/dist/card.css-mistica.js +18 -18
- package/dist/card.css.d.ts +1 -2
- package/dist/card.d.ts +17 -8
- package/dist/card.js +331 -277
- 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 +7 -2
- package/dist/index.js +26 -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.css-mistica.js +9 -9
- package/dist-es/button.js +75 -73
- package/dist-es/card.css-mistica.js +4 -4
- package/dist-es/card.js +449 -401
- 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 +1729 -1724
- 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 +1 -1
package/dist/list.js
CHANGED
|
@@ -10,16 +10,16 @@ function _export(target, all) {
|
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
12
|
BoxedRow: function() {
|
|
13
|
-
return
|
|
13
|
+
return Ge;
|
|
14
14
|
},
|
|
15
15
|
BoxedRowList: function() {
|
|
16
|
-
return
|
|
16
|
+
return Je;
|
|
17
17
|
},
|
|
18
18
|
Row: function() {
|
|
19
|
-
return
|
|
19
|
+
return qe;
|
|
20
20
|
},
|
|
21
21
|
RowList: function() {
|
|
22
|
-
return
|
|
22
|
+
return ze;
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -164,31 +164,31 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
164
164
|
}
|
|
165
165
|
return target;
|
|
166
166
|
}
|
|
167
|
-
const
|
|
168
|
-
centerY:
|
|
169
|
-
}) :
|
|
167
|
+
const $ = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
168
|
+
centerY: n
|
|
169
|
+
}) : n ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
170
170
|
style: {
|
|
171
171
|
display: "flex",
|
|
172
172
|
alignItems: "center",
|
|
173
173
|
height: "100%"
|
|
174
174
|
},
|
|
175
175
|
children: e
|
|
176
|
-
}) : e,
|
|
177
|
-
let { withChevron: e , headline:
|
|
178
|
-
const
|
|
176
|
+
}) : e, ye = (param)=>{
|
|
177
|
+
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;
|
|
178
|
+
const u = (0, _themevariantcontext.useIsInverseVariant)(), i = [
|
|
179
|
+
n,
|
|
179
180
|
r,
|
|
180
|
-
|
|
181
|
-
s,
|
|
181
|
+
d,
|
|
182
182
|
l,
|
|
183
|
-
|
|
184
|
-
].filter(Boolean).length === 1,
|
|
183
|
+
D
|
|
184
|
+
].filter(Boolean).length === 1, f = ()=>T ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
185
185
|
paddingLeft: 16,
|
|
186
186
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
187
187
|
className: (0, _classnames.default)(_listcssmistica.center, _listcssmistica.badge, {
|
|
188
|
-
[_listcssmistica.disabled]:
|
|
188
|
+
[_listcssmistica.disabled]: v
|
|
189
189
|
}),
|
|
190
|
-
children:
|
|
191
|
-
value:
|
|
190
|
+
children: T === !0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_badge.default, {}) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_badge.default, {
|
|
191
|
+
value: T
|
|
192
192
|
})
|
|
193
193
|
})
|
|
194
194
|
}) : null;
|
|
@@ -196,32 +196,32 @@ const U = (e, r)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
196
196
|
paddingY: 16,
|
|
197
197
|
className: _listcssmistica.content,
|
|
198
198
|
children: [
|
|
199
|
-
|
|
199
|
+
E && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
200
200
|
paddingRight: 16,
|
|
201
201
|
className: (0, _classnames.default)({
|
|
202
|
-
[_listcssmistica.center]:
|
|
203
|
-
[_listcssmistica.disabled]:
|
|
202
|
+
[_listcssmistica.center]: i,
|
|
203
|
+
[_listcssmistica.disabled]: v
|
|
204
204
|
}),
|
|
205
205
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
206
206
|
className: _listcssmistica.asset,
|
|
207
|
-
children:
|
|
207
|
+
children: E
|
|
208
208
|
})
|
|
209
209
|
}),
|
|
210
210
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
211
211
|
className: (0, _classnames.default)(_listcssmistica.rowBody, {
|
|
212
|
-
[_listcssmistica.disabled]:
|
|
212
|
+
[_listcssmistica.disabled]: v
|
|
213
213
|
}),
|
|
214
214
|
style: {
|
|
215
|
-
justifyContent:
|
|
215
|
+
justifyContent: i ? "center" : "flex-start"
|
|
216
216
|
},
|
|
217
217
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
218
218
|
space: 4,
|
|
219
219
|
children: [
|
|
220
|
-
|
|
220
|
+
n && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text1, {
|
|
221
221
|
regular: !0,
|
|
222
222
|
color: _skincontractcssmistica.vars.colors.textPrimary,
|
|
223
223
|
hyphens: "auto",
|
|
224
|
-
children:
|
|
224
|
+
children: n
|
|
225
225
|
}),
|
|
226
226
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
227
227
|
space: 2,
|
|
@@ -229,41 +229,41 @@ const U = (e, r)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
229
229
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text3, {
|
|
230
230
|
regular: !0,
|
|
231
231
|
color: _skincontractcssmistica.vars.colors.textPrimary,
|
|
232
|
-
truncate:
|
|
232
|
+
truncate: o,
|
|
233
233
|
id: h,
|
|
234
234
|
hyphens: "auto",
|
|
235
|
-
children:
|
|
235
|
+
children: r
|
|
236
236
|
}),
|
|
237
|
-
|
|
237
|
+
d && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
238
238
|
regular: !0,
|
|
239
239
|
color: _skincontractcssmistica.vars.colors.textSecondary,
|
|
240
|
-
truncate:
|
|
240
|
+
truncate: x,
|
|
241
241
|
hyphens: "auto",
|
|
242
|
-
children:
|
|
242
|
+
children: d
|
|
243
243
|
}),
|
|
244
244
|
l && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
245
245
|
regular: !0,
|
|
246
246
|
color: _skincontractcssmistica.vars.colors.textSecondary,
|
|
247
|
-
truncate:
|
|
247
|
+
truncate: A,
|
|
248
248
|
hyphens: "auto",
|
|
249
249
|
children: l
|
|
250
250
|
}),
|
|
251
|
-
|
|
251
|
+
D
|
|
252
252
|
]
|
|
253
253
|
})
|
|
254
254
|
]
|
|
255
255
|
})
|
|
256
256
|
}),
|
|
257
|
-
|
|
257
|
+
f(),
|
|
258
258
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
259
259
|
className: (0, _classnames.default)({
|
|
260
|
-
[_listcssmistica.right]: !!c ||
|
|
260
|
+
[_listcssmistica.right]: !!c || g !== "basic",
|
|
261
261
|
[_listcssmistica.rightRestrictedWidth]: !!c
|
|
262
262
|
}),
|
|
263
263
|
children: [
|
|
264
264
|
c && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
265
265
|
className: (0, _classnames.default)(_listcssmistica.center, _listcssmistica.detail, {
|
|
266
|
-
[_listcssmistica.disabled]:
|
|
266
|
+
[_listcssmistica.disabled]: v
|
|
267
267
|
}),
|
|
268
268
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
269
269
|
regular: !0,
|
|
@@ -272,26 +272,26 @@ const U = (e, r)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
272
272
|
children: c
|
|
273
273
|
})
|
|
274
274
|
}),
|
|
275
|
-
|
|
275
|
+
g === "control" && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
276
276
|
className: (0, _classnames.default)({
|
|
277
277
|
[_listcssmistica.detailRight]: !!c
|
|
278
278
|
}),
|
|
279
|
-
children:
|
|
279
|
+
children: $(X, i)
|
|
280
280
|
}),
|
|
281
|
-
|
|
281
|
+
g === "custom" && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
282
282
|
className: (0, _classnames.default)({
|
|
283
283
|
[_listcssmistica.detailRight]: !!c,
|
|
284
|
-
[_listcssmistica.disabled]:
|
|
284
|
+
[_listcssmistica.disabled]: v
|
|
285
285
|
}),
|
|
286
|
-
children:
|
|
286
|
+
children: $(X, i)
|
|
287
287
|
}),
|
|
288
|
-
(
|
|
289
|
-
paddingLeft: c ||
|
|
288
|
+
(g === "chevron" || g === "custom" && e) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
289
|
+
paddingLeft: c || g === "custom" ? 4 : 0,
|
|
290
290
|
className: (0, _classnames.default)(_listcssmistica.center, {
|
|
291
|
-
[_listcssmistica.disabled]:
|
|
291
|
+
[_listcssmistica.disabled]: v
|
|
292
292
|
}),
|
|
293
293
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconchevron.default, {
|
|
294
|
-
color:
|
|
294
|
+
color: u ? _skincontractcssmistica.vars.colors.inverse : _skincontractcssmistica.vars.colors.neutralMedium,
|
|
295
295
|
direction: "right"
|
|
296
296
|
})
|
|
297
297
|
})
|
|
@@ -299,149 +299,154 @@ const U = (e, r)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
299
299
|
})
|
|
300
300
|
]
|
|
301
301
|
});
|
|
302
|
-
},
|
|
303
|
-
let { value: e , defaultValue:
|
|
304
|
-
const
|
|
305
|
-
|
|
302
|
+
}, Re = (param)=>{
|
|
303
|
+
let { value: e , defaultValue: n , onChange: r } = param;
|
|
304
|
+
const o = e !== void 0, [d, x] = _react.useState(!!n), l = ()=>{
|
|
305
|
+
o || x(!d), r && r(o ? !e : !d);
|
|
306
306
|
};
|
|
307
|
-
return
|
|
307
|
+
return o ? [
|
|
308
308
|
!!e,
|
|
309
309
|
l
|
|
310
310
|
] : [
|
|
311
|
-
|
|
311
|
+
d,
|
|
312
312
|
l
|
|
313
313
|
];
|
|
314
|
-
},
|
|
315
|
-
const
|
|
316
|
-
let { type:
|
|
317
|
-
return (0, _jsxruntime.jsx)(
|
|
318
|
-
asset:
|
|
319
|
-
headline:
|
|
314
|
+
}, Ce = (e)=>e.switch !== void 0, Ne = (e)=>e.checkbox !== void 0, ke = (e)=>e.radioValue !== void 0, ee = /*#__PURE__*/ _react.forwardRef((e, n)=>{
|
|
315
|
+
const r = (0, _hooks.useAriaId)(), o = (0, _themevariantcontext.useIsInverseVariant)(), { 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 = (0, _radiobutton.useRadioContext)(), 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__ */ {
|
|
316
|
+
let { type: s , right: b , labelId: M } = param;
|
|
317
|
+
return (0, _jsxruntime.jsx)(ye, {
|
|
318
|
+
asset: d,
|
|
319
|
+
headline: x,
|
|
320
320
|
title: l,
|
|
321
321
|
subtitle: c,
|
|
322
|
-
description:
|
|
323
|
-
badge:
|
|
324
|
-
titleLinesMax:
|
|
325
|
-
subtitleLinesMax:
|
|
326
|
-
descriptionLinesMax:
|
|
327
|
-
detail:
|
|
328
|
-
type:
|
|
329
|
-
right:
|
|
330
|
-
extra:
|
|
331
|
-
labelId:
|
|
332
|
-
disabled:
|
|
322
|
+
description: g,
|
|
323
|
+
badge: D,
|
|
324
|
+
titleLinesMax: A,
|
|
325
|
+
subtitleLinesMax: E,
|
|
326
|
+
descriptionLinesMax: T,
|
|
327
|
+
detail: X,
|
|
328
|
+
type: s,
|
|
329
|
+
right: b,
|
|
330
|
+
extra: v,
|
|
331
|
+
labelId: M,
|
|
332
|
+
disabled: i,
|
|
333
333
|
withChevron: !!e.onPress || !!e.href || !!e.to
|
|
334
334
|
});
|
|
335
|
-
},
|
|
336
|
-
let
|
|
337
|
-
return
|
|
335
|
+
}, j = (s)=>{
|
|
336
|
+
let b = "chevron";
|
|
337
|
+
return s.right === null && (b = "basic"), s.right && (b = "custom"), /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
338
338
|
paddingX: 16,
|
|
339
|
-
ref:
|
|
340
|
-
children:
|
|
341
|
-
type:
|
|
342
|
-
right:
|
|
339
|
+
ref: n,
|
|
340
|
+
children: y({
|
|
341
|
+
type: b,
|
|
342
|
+
right: s.right
|
|
343
343
|
})
|
|
344
344
|
});
|
|
345
345
|
};
|
|
346
|
-
if (e.onPress && !
|
|
347
|
-
ref:
|
|
346
|
+
if (e.onPress && !Ce(e) && !Ne(e) && !ke(e)) return /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, {
|
|
347
|
+
ref: n,
|
|
348
348
|
className: (0, _classnames.default)(_listcssmistica.rowContent, {
|
|
349
|
-
[_listcssmistica.
|
|
350
|
-
[_listcssmistica.
|
|
349
|
+
[_listcssmistica.touchableBackground]: f,
|
|
350
|
+
[_listcssmistica.touchableBackgroundInverse]: w,
|
|
351
|
+
[_listcssmistica.pointer]: !i
|
|
351
352
|
}),
|
|
352
353
|
trackingEvent: e.trackingEvent,
|
|
353
354
|
onPress: e.onPress,
|
|
354
355
|
role: h,
|
|
355
|
-
dataAttributes:
|
|
356
|
-
disabled:
|
|
357
|
-
children:
|
|
356
|
+
dataAttributes: u,
|
|
357
|
+
disabled: i,
|
|
358
|
+
children: j(e)
|
|
358
359
|
});
|
|
359
360
|
if (e.to) return /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, {
|
|
360
361
|
className: (0, _classnames.default)(_listcssmistica.rowContent, {
|
|
361
|
-
[_listcssmistica.
|
|
362
|
-
[_listcssmistica.
|
|
362
|
+
[_listcssmistica.touchableBackground]: f,
|
|
363
|
+
[_listcssmistica.touchableBackgroundInverse]: w,
|
|
364
|
+
[_listcssmistica.pointer]: !i
|
|
363
365
|
}),
|
|
364
366
|
trackingEvent: e.trackingEvent,
|
|
365
367
|
to: e.to,
|
|
366
368
|
fullPageOnWebView: e.fullPageOnWebView,
|
|
367
369
|
role: h,
|
|
368
|
-
dataAttributes:
|
|
369
|
-
disabled:
|
|
370
|
-
children:
|
|
370
|
+
dataAttributes: u,
|
|
371
|
+
disabled: i,
|
|
372
|
+
children: j(e)
|
|
371
373
|
});
|
|
372
374
|
if (e.href) return /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, {
|
|
373
375
|
className: (0, _classnames.default)(_listcssmistica.rowContent, {
|
|
374
|
-
[_listcssmistica.
|
|
375
|
-
[_listcssmistica.
|
|
376
|
+
[_listcssmistica.touchableBackground]: f,
|
|
377
|
+
[_listcssmistica.touchableBackgroundInverse]: w,
|
|
378
|
+
[_listcssmistica.pointer]: !i
|
|
376
379
|
}),
|
|
377
380
|
trackingEvent: e.trackingEvent,
|
|
378
381
|
href: e.href,
|
|
379
382
|
newTab: e.newTab,
|
|
380
383
|
role: h,
|
|
381
|
-
dataAttributes:
|
|
382
|
-
disabled:
|
|
383
|
-
children:
|
|
384
|
+
dataAttributes: u,
|
|
385
|
+
disabled: i,
|
|
386
|
+
children: j(e)
|
|
384
387
|
});
|
|
385
|
-
const
|
|
386
|
-
var
|
|
388
|
+
const z = (s)=>{
|
|
389
|
+
var M, G;
|
|
387
390
|
var _ref, _ref1;
|
|
388
|
-
const
|
|
391
|
+
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;
|
|
389
392
|
return e.onPress ? /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
390
393
|
className: _listcssmistica.dualActionContainer,
|
|
391
394
|
children: [
|
|
392
395
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, {
|
|
393
|
-
dataAttributes:
|
|
394
|
-
disabled:
|
|
396
|
+
dataAttributes: u,
|
|
397
|
+
disabled: i,
|
|
395
398
|
onPress: e.onPress,
|
|
396
399
|
role: h,
|
|
397
400
|
className: (0, _classnames.default)(_listcssmistica.dualActionLeft, {
|
|
398
|
-
[_listcssmistica.
|
|
401
|
+
[_listcssmistica.touchableBackground]: f,
|
|
402
|
+
[_listcssmistica.touchableBackgroundInverse]: w
|
|
399
403
|
}),
|
|
400
|
-
children:
|
|
404
|
+
children: y({
|
|
401
405
|
type: "basic",
|
|
402
|
-
labelId:
|
|
406
|
+
labelId: r
|
|
403
407
|
})
|
|
404
408
|
}),
|
|
405
409
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
406
410
|
className: _listcssmistica.dualActionDivider
|
|
407
411
|
}),
|
|
408
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
409
|
-
disabled:
|
|
410
|
-
name:
|
|
411
|
-
checked:
|
|
412
|
-
"aria-labelledby":
|
|
413
|
-
onChange:
|
|
412
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(s, {
|
|
413
|
+
disabled: i,
|
|
414
|
+
name: b,
|
|
415
|
+
checked: Y,
|
|
416
|
+
"aria-labelledby": r,
|
|
417
|
+
onChange: q,
|
|
414
418
|
render: (param)=>/* @__PURE__ */ {
|
|
415
|
-
let { controlElement:
|
|
419
|
+
let { controlElement: H } = param;
|
|
416
420
|
return (0, _jsxruntime.jsx)("div", {
|
|
417
421
|
className: _listcssmistica.dualActionRight,
|
|
418
|
-
children:
|
|
422
|
+
children: H
|
|
419
423
|
});
|
|
420
424
|
}
|
|
421
425
|
})
|
|
422
426
|
]
|
|
423
427
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
424
428
|
className: (0, _classnames.default)(_listcssmistica.rowContent, {
|
|
425
|
-
[_listcssmistica.
|
|
426
|
-
[_listcssmistica.
|
|
429
|
+
[_listcssmistica.touchableBackground]: f,
|
|
430
|
+
[_listcssmistica.touchableBackgroundInverse]: w,
|
|
431
|
+
[_listcssmistica.pointer]: !i
|
|
427
432
|
}),
|
|
428
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
429
|
-
disabled:
|
|
430
|
-
dataAttributes:
|
|
431
|
-
name:
|
|
432
|
-
checked:
|
|
433
|
-
onChange:
|
|
433
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(s, {
|
|
434
|
+
disabled: i,
|
|
435
|
+
dataAttributes: u,
|
|
436
|
+
name: b,
|
|
437
|
+
checked: Y,
|
|
438
|
+
onChange: q,
|
|
434
439
|
render: (param)=>/* @__PURE__ */ {
|
|
435
|
-
let { controlElement:
|
|
440
|
+
let { controlElement: H , labelId: te } = param;
|
|
436
441
|
return (0, _jsxruntime.jsx)(_box.default, {
|
|
437
442
|
paddingX: 16,
|
|
438
443
|
role: h,
|
|
439
|
-
children:
|
|
440
|
-
labelId:
|
|
444
|
+
children: y({
|
|
445
|
+
labelId: te,
|
|
441
446
|
type: "control",
|
|
442
447
|
right: ()=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_stack.default, {
|
|
443
448
|
space: "around",
|
|
444
|
-
children:
|
|
449
|
+
children: H
|
|
445
450
|
})
|
|
446
451
|
})
|
|
447
452
|
});
|
|
@@ -449,35 +454,36 @@ const U = (e, r)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
449
454
|
})
|
|
450
455
|
});
|
|
451
456
|
};
|
|
452
|
-
return e.switch ?
|
|
457
|
+
return e.switch ? z(_switchcomponent.default) : e.checkbox ? z(_checkbox.default) : e.radioValue ? e.onPress ? /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
453
458
|
className: _listcssmistica.dualActionContainer,
|
|
454
459
|
children: [
|
|
455
460
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, {
|
|
456
|
-
disabled:
|
|
461
|
+
disabled: i,
|
|
457
462
|
onPress: e.onPress,
|
|
458
463
|
role: h,
|
|
459
464
|
className: (0, _classnames.default)(_listcssmistica.dualActionLeft, {
|
|
460
|
-
[_listcssmistica.
|
|
465
|
+
[_listcssmistica.touchableBackground]: f,
|
|
466
|
+
[_listcssmistica.touchableBackgroundInverse]: w
|
|
461
467
|
}),
|
|
462
|
-
children:
|
|
468
|
+
children: y({
|
|
463
469
|
type: "basic",
|
|
464
|
-
labelId:
|
|
470
|
+
labelId: r
|
|
465
471
|
})
|
|
466
472
|
}),
|
|
467
473
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
468
474
|
className: _listcssmistica.dualActionDivider
|
|
469
475
|
}),
|
|
470
476
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_radiobutton.default, {
|
|
471
|
-
dataAttributes:
|
|
477
|
+
dataAttributes: u,
|
|
472
478
|
value: e.radioValue,
|
|
473
|
-
"aria-labelledby":
|
|
479
|
+
"aria-labelledby": r,
|
|
474
480
|
render: (param)=>/* @__PURE__ */ {
|
|
475
|
-
let { controlElement:
|
|
481
|
+
let { controlElement: s } = param;
|
|
476
482
|
return (0, _jsxruntime.jsx)(_stack.default, {
|
|
477
483
|
space: "around",
|
|
478
484
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
479
485
|
paddingX: 16,
|
|
480
|
-
children:
|
|
486
|
+
children: s
|
|
481
487
|
})
|
|
482
488
|
});
|
|
483
489
|
}
|
|
@@ -485,25 +491,26 @@ const U = (e, r)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
485
491
|
]
|
|
486
492
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
487
493
|
className: (0, _classnames.default)(_listcssmistica.rowContent, {
|
|
488
|
-
[_listcssmistica.
|
|
489
|
-
[_listcssmistica.
|
|
494
|
+
[_listcssmistica.touchableBackground]: f,
|
|
495
|
+
[_listcssmistica.touchableBackgroundInverse]: w,
|
|
496
|
+
[_listcssmistica.pointer]: !i
|
|
490
497
|
}),
|
|
491
498
|
role: h,
|
|
492
|
-
ref:
|
|
499
|
+
ref: n,
|
|
493
500
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_radiobutton.default, {
|
|
494
|
-
dataAttributes:
|
|
501
|
+
dataAttributes: u,
|
|
495
502
|
value: e.radioValue,
|
|
496
|
-
"aria-labelledby":
|
|
503
|
+
"aria-labelledby": r,
|
|
497
504
|
render: (param)=>/* @__PURE__ */ {
|
|
498
|
-
let { controlElement:
|
|
505
|
+
let { controlElement: s } = param;
|
|
499
506
|
return (0, _jsxruntime.jsx)(_box.default, {
|
|
500
507
|
paddingX: 16,
|
|
501
|
-
children:
|
|
502
|
-
labelId:
|
|
508
|
+
children: y({
|
|
509
|
+
labelId: r,
|
|
503
510
|
type: "control",
|
|
504
511
|
right: ()=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_stack.default, {
|
|
505
512
|
space: "around",
|
|
506
|
-
children:
|
|
513
|
+
children: s
|
|
507
514
|
})
|
|
508
515
|
})
|
|
509
516
|
});
|
|
@@ -513,62 +520,62 @@ const U = (e, r)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
513
520
|
paddingX: 16,
|
|
514
521
|
className: _listcssmistica.rowContent,
|
|
515
522
|
role: h,
|
|
516
|
-
dataAttributes:
|
|
517
|
-
children: e.right ?
|
|
523
|
+
dataAttributes: u,
|
|
524
|
+
children: e.right ? y({
|
|
518
525
|
type: "custom",
|
|
519
526
|
right: e.right
|
|
520
|
-
}) :
|
|
527
|
+
}) : y({
|
|
521
528
|
type: "basic"
|
|
522
529
|
})
|
|
523
530
|
});
|
|
524
|
-
}),
|
|
525
|
-
var { dataAttributes: e } = _param,
|
|
531
|
+
}), qe = /*#__PURE__*/ _react.forwardRef((_param, r)=>/* @__PURE__ */ {
|
|
532
|
+
var { dataAttributes: e } = _param, n = _object_without_properties(_param, [
|
|
526
533
|
"dataAttributes"
|
|
527
534
|
]);
|
|
528
|
-
return (0, _jsxruntime.jsx)(
|
|
529
|
-
ref:
|
|
535
|
+
return (0, _jsxruntime.jsx)(ee, _object_spread_props(_object_spread({}, n), {
|
|
536
|
+
ref: r,
|
|
530
537
|
dataAttributes: _object_spread({
|
|
531
538
|
"component-name": "Row"
|
|
532
539
|
}, e)
|
|
533
540
|
}));
|
|
534
|
-
}),
|
|
535
|
-
let { children: e , ariaLabelledby:
|
|
536
|
-
const
|
|
541
|
+
}), ze = (param)=>{
|
|
542
|
+
let { children: e , ariaLabelledby: n , role: r , dataAttributes: o , noLastDivider: d } = param;
|
|
543
|
+
const x = _react.Children.count(e) - 1, l = !d;
|
|
537
544
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({
|
|
538
|
-
role:
|
|
539
|
-
"aria-labelledby":
|
|
540
|
-
}, (0, _dom.getPrefixedDataAttributes)(
|
|
541
|
-
children: _react.Children.toArray(e).filter(Boolean).map((
|
|
545
|
+
role: r,
|
|
546
|
+
"aria-labelledby": n
|
|
547
|
+
}, (0, _dom.getPrefixedDataAttributes)(o, "RowList")), {
|
|
548
|
+
children: _react.Children.toArray(e).filter(Boolean).map((A, c)=>/* @__PURE__ */ (0, _jsxruntime.jsxs)(_react.Fragment, {
|
|
542
549
|
children: [
|
|
543
|
-
|
|
544
|
-
(c <
|
|
550
|
+
A,
|
|
551
|
+
(c < x || l) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
545
552
|
paddingX: 16,
|
|
546
553
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_divider.default, {})
|
|
547
554
|
})
|
|
548
555
|
]
|
|
549
556
|
}, c))
|
|
550
557
|
}));
|
|
551
|
-
},
|
|
552
|
-
var { dataAttributes: e } = _param,
|
|
558
|
+
}, Ge = /*#__PURE__*/ _react.forwardRef((_param, r)=>/* @__PURE__ */ {
|
|
559
|
+
var { dataAttributes: e } = _param, n = _object_without_properties(_param, [
|
|
553
560
|
"dataAttributes"
|
|
554
561
|
]);
|
|
555
562
|
return (0, _jsxruntime.jsx)(_boxed.Boxed, {
|
|
556
|
-
isInverse:
|
|
557
|
-
ref:
|
|
563
|
+
isInverse: n.isInverse,
|
|
564
|
+
ref: r,
|
|
558
565
|
dataAttributes: _object_spread({
|
|
559
566
|
"component-name": "BoxedRow"
|
|
560
567
|
}, e),
|
|
561
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
568
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(ee, _object_spread({}, n))
|
|
562
569
|
});
|
|
563
|
-
}),
|
|
564
|
-
let { children: e , ariaLabelledby:
|
|
570
|
+
}), Je = (param)=>/* @__PURE__ */ {
|
|
571
|
+
let { children: e , ariaLabelledby: n , role: r , dataAttributes: o } = param;
|
|
565
572
|
return (0, _jsxruntime.jsx)(_stack.default, {
|
|
566
573
|
space: 16,
|
|
567
|
-
role:
|
|
568
|
-
"aria-labelledby":
|
|
574
|
+
role: r,
|
|
575
|
+
"aria-labelledby": n,
|
|
569
576
|
dataAttributes: _object_spread({
|
|
570
577
|
"component-name": "BoxedRowList"
|
|
571
|
-
},
|
|
578
|
+
}, o),
|
|
572
579
|
children: e
|
|
573
580
|
});
|
|
574
581
|
};
|
package/dist/package-version.js
CHANGED
package/dist/skins/blau.js
CHANGED
|
@@ -308,9 +308,23 @@ const e = {
|
|
|
308
308
|
title1: {
|
|
309
309
|
weight: "medium"
|
|
310
310
|
},
|
|
311
|
+
title2: {
|
|
312
|
+
weight: "light",
|
|
313
|
+
size: {
|
|
314
|
+
mobile: 20,
|
|
315
|
+
desktop: 28
|
|
316
|
+
},
|
|
317
|
+
lineHeight: {
|
|
318
|
+
mobile: 24,
|
|
319
|
+
desktop: 32
|
|
320
|
+
}
|
|
321
|
+
},
|
|
311
322
|
indicator: {
|
|
312
323
|
weight: "medium"
|
|
313
324
|
},
|
|
325
|
+
navigationBar: {
|
|
326
|
+
weight: "medium"
|
|
327
|
+
},
|
|
314
328
|
text5: {
|
|
315
329
|
weight: "light"
|
|
316
330
|
},
|
package/dist/skins/defaults.js
CHANGED
|
@@ -47,6 +47,20 @@ const t = {
|
|
|
47
47
|
title1: {
|
|
48
48
|
weight: "medium"
|
|
49
49
|
},
|
|
50
|
+
title2: {
|
|
51
|
+
weight: "light",
|
|
52
|
+
size: {
|
|
53
|
+
mobile: 20,
|
|
54
|
+
desktop: 28
|
|
55
|
+
},
|
|
56
|
+
lineHeight: {
|
|
57
|
+
mobile: 24,
|
|
58
|
+
desktop: 32
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
navigationBar: {
|
|
62
|
+
weight: "medium"
|
|
63
|
+
},
|
|
50
64
|
indicator: {
|
|
51
65
|
weight: "medium"
|
|
52
66
|
},
|