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