@telefonica/mistica 14.34.0 → 14.35.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/avatar.css-mistica.js +1 -1
- package/dist/button.css-mistica.js +7 -7
- package/dist/callout.css-mistica.js +1 -1
- package/dist/callout.js +17 -12
- package/dist/card.js +277 -244
- package/dist/carousel.css-mistica.js +5 -5
- package/dist/carousel.js +54 -52
- package/dist/checkbox.js +18 -18
- package/dist/community/advanced-data-card.css-mistica.js +3 -3
- package/dist/community/advanced-data-card.js +57 -50
- package/dist/community/blocks.js +42 -35
- package/dist/counter.css-mistica.js +1 -1
- package/dist/cvv-field.js +1 -1
- package/dist/dialog.css-mistica.js +3 -3
- package/dist/dialog.js +2 -2
- package/dist/hero.js +34 -30
- package/dist/hooks.d.ts +12 -1
- package/dist/hooks.js +85 -48
- package/dist/image.css-mistica.js +7 -2
- package/dist/image.css.d.ts +3 -0
- package/dist/image.d.ts +1 -7
- package/dist/image.js +55 -66
- package/dist/list.css-mistica.js +1 -1
- package/dist/list.js +80 -75
- package/dist/loading-bar.css-mistica.js +6 -6
- package/dist/maybe-dismissable.css-mistica.js +1 -1
- package/dist/menu.js +32 -32
- package/dist/navigation-bar.css-mistica.js +10 -10
- package/dist/overlay.js +10 -10
- package/dist/package-version.js +1 -1
- package/dist/pin-field.css-mistica.js +3 -3
- package/dist/popover.css-mistica.js +4 -4
- package/dist/radio-button.css-mistica.js +5 -5
- package/dist/radio-button.js +7 -7
- package/dist/screen-reader-only.css-mistica.js +1 -1
- package/dist/select.css-mistica.js +7 -7
- package/dist/select.js +65 -53
- package/dist/sheet.css-mistica.js +8 -8
- package/dist/skeletons.d.ts +9 -1
- package/dist/skeletons.js +3 -0
- package/dist/skins/blau.js +2 -1
- package/dist/skins/defaults.js +2 -1
- package/dist/skins/movistar-legacy.js +2 -1
- package/dist/skins/movistar.js +2 -1
- package/dist/skins/o2.js +2 -1
- package/dist/skins/skin-contract.css-mistica.js +2 -1
- package/dist/skins/skin-contract.css.d.ts +1 -0
- package/dist/skins/telefonica.js +2 -1
- package/dist/skins/types/index.d.ts +1 -0
- package/dist/skins/vivo-new.js +2 -1
- package/dist/skins/vivo.js +2 -1
- package/dist/slider.css-mistica.js +19 -19
- package/dist/slider.css.d.ts +8 -8
- package/dist/slider.d.ts +28 -8
- package/dist/slider.js +226 -106
- package/dist/snackbar.css-mistica.js +5 -5
- package/dist/sprinkles.css-mistica.js +71 -68
- package/dist/stacking-group.js +31 -24
- package/dist/stepper.css-mistica.js +3 -3
- package/dist/switch-component.css-mistica.js +17 -17
- package/dist/switch-component.js +12 -12
- package/dist/tab-focus.js +12 -12
- package/dist/tabs.css-mistica.js +1 -1
- package/dist/text-field-base.css-mistica.js +1 -1
- package/dist/text-field-components.css-mistica.js +7 -7
- package/dist/text-link.css-mistica.js +3 -3
- package/dist/theme-context-provider.js +39 -36
- package/dist/tooltip-context-provider.d.ts +14 -0
- package/dist/tooltip-context-provider.js +90 -0
- package/dist/tooltip.css-mistica.js +25 -54
- package/dist/tooltip.css.d.ts +19 -26
- package/dist/tooltip.d.ts +15 -1
- package/dist/tooltip.js +255 -207
- package/dist/touchable.css-mistica.js +1 -1
- package/dist/touchable.js +8 -8
- package/dist/utils/aspect-ratio-support.css-mistica.js +2 -2
- package/dist/utils/environment.d.ts +1 -0
- package/dist/utils/environment.js +4 -1
- package/dist/utils/keys.d.ts +8 -0
- package/dist/utils/{key-codes.js → keys.js} +6 -6
- package/dist/video.css-mistica.js +1 -1
- package/dist/video.js +33 -31
- package/dist-es/avatar.css-mistica.js +1 -1
- package/dist-es/button.css-mistica.js +7 -7
- package/dist-es/callout.css-mistica.js +1 -1
- package/dist-es/callout.js +33 -28
- package/dist-es/card.js +416 -383
- package/dist-es/carousel.css-mistica.js +2 -2
- package/dist-es/carousel.js +84 -82
- package/dist-es/checkbox.js +18 -18
- package/dist-es/community/advanced-data-card.css-mistica.js +2 -2
- package/dist-es/community/advanced-data-card.js +83 -76
- package/dist-es/community/blocks.js +77 -70
- package/dist-es/counter.css-mistica.js +1 -1
- package/dist-es/cvv-field.js +1 -1
- package/dist-es/dialog.css-mistica.js +3 -3
- package/dist-es/dialog.js +2 -2
- package/dist-es/hero.js +69 -65
- package/dist-es/hooks.js +83 -49
- package/dist-es/image.css-mistica.js +4 -2
- package/dist-es/image.js +74 -79
- package/dist-es/list.css-mistica.js +1 -1
- package/dist-es/list.js +116 -111
- package/dist-es/loading-bar.css-mistica.js +2 -2
- package/dist-es/maybe-dismissable.css-mistica.js +1 -1
- package/dist-es/menu.js +41 -41
- package/dist-es/navigation-bar.css-mistica.js +6 -6
- package/dist-es/overlay.js +14 -14
- package/dist-es/package-version.js +1 -1
- package/dist-es/pin-field.css-mistica.js +2 -2
- package/dist-es/popover.css-mistica.js +2 -2
- package/dist-es/radio-button.css-mistica.js +4 -4
- package/dist-es/radio-button.js +2 -2
- package/dist-es/screen-reader-only.css-mistica.js +1 -1
- package/dist-es/select.css-mistica.js +7 -7
- package/dist-es/select.js +89 -77
- package/dist-es/sheet.css-mistica.js +2 -2
- package/dist-es/skeletons.js +1 -1
- package/dist-es/skins/blau.js +2 -1
- package/dist-es/skins/defaults.js +2 -1
- package/dist-es/skins/movistar-legacy.js +2 -1
- package/dist-es/skins/movistar.js +2 -1
- package/dist-es/skins/o2.js +2 -1
- package/dist-es/skins/skin-contract.css-mistica.js +2 -1
- package/dist-es/skins/telefonica.js +2 -1
- package/dist-es/skins/vivo-new.js +2 -1
- package/dist-es/skins/vivo.js +2 -1
- package/dist-es/slider.css-mistica.js +2 -8
- package/dist-es/slider.js +231 -111
- package/dist-es/snackbar.css-mistica.js +4 -4
- package/dist-es/sprinkles.css-mistica.js +71 -68
- package/dist-es/stacking-group.js +37 -30
- package/dist-es/stepper.css-mistica.js +2 -2
- package/dist-es/style.css +1 -1
- package/dist-es/switch-component.css-mistica.js +13 -13
- package/dist-es/switch-component.js +14 -14
- package/dist-es/tab-focus.js +14 -14
- package/dist-es/tabs.css-mistica.js +1 -1
- package/dist-es/text-field-base.css-mistica.js +1 -1
- package/dist-es/text-field-components.css-mistica.js +2 -2
- package/dist-es/text-link.css-mistica.js +3 -3
- package/dist-es/theme-context-provider.js +53 -50
- package/dist-es/tooltip-context-provider.js +29 -0
- package/dist-es/tooltip.css-mistica.js +16 -9
- package/dist-es/tooltip.js +264 -216
- package/dist-es/touchable.css-mistica.js +1 -1
- package/dist-es/touchable.js +8 -8
- package/dist-es/utils/aspect-ratio-support.css-mistica.js +2 -2
- package/dist-es/utils/environment.js +2 -2
- package/dist-es/utils/keys.js +2 -0
- package/dist-es/video.css-mistica.js +1 -1
- package/dist-es/video.js +41 -39
- package/package.json +1 -1
- package/dist/utils/key-codes.d.ts +0 -8
- package/dist-es/utils/key-codes.js +0 -2
package/dist/image.js
CHANGED
|
@@ -11,22 +11,16 @@ function _export(target, all) {
|
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
13
|
ImageContent: function() {
|
|
14
|
-
return
|
|
14
|
+
return G;
|
|
15
15
|
},
|
|
16
16
|
ImageError: function() {
|
|
17
|
-
return
|
|
18
|
-
},
|
|
19
|
-
MediaBorderRadiusProvider: function() {
|
|
20
|
-
return m1;
|
|
17
|
+
return q;
|
|
21
18
|
},
|
|
22
19
|
RATIO: function() {
|
|
23
|
-
return
|
|
20
|
+
return k;
|
|
24
21
|
},
|
|
25
22
|
default: function() {
|
|
26
|
-
return
|
|
27
|
-
},
|
|
28
|
-
useMediaBorderRadius: function() {
|
|
29
|
-
return q;
|
|
23
|
+
return m1;
|
|
30
24
|
}
|
|
31
25
|
});
|
|
32
26
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -43,6 +37,7 @@ const _imagecssmistica = require("./image.css-mistica.js");
|
|
|
43
37
|
const _skincontractcssmistica = require("./skins/skin-contract.css-mistica.js");
|
|
44
38
|
const _common = require("./utils/common.js");
|
|
45
39
|
const _skeletonbase = /*#__PURE__*/ _interop_require_default(require("./skeleton-base.js"));
|
|
40
|
+
const _css = require("@vanilla-extract/css");
|
|
46
41
|
function _interop_require_default(obj) {
|
|
47
42
|
return obj && obj.__esModule ? obj : {
|
|
48
43
|
default: obj
|
|
@@ -168,28 +163,22 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
168
163
|
}
|
|
169
164
|
return target;
|
|
170
165
|
}
|
|
171
|
-
const
|
|
172
|
-
let {
|
|
173
|
-
return (0, _jsxruntime.jsx)(x.Provider, {
|
|
174
|
-
value: a,
|
|
175
|
-
children: e
|
|
176
|
-
});
|
|
177
|
-
}, G = (param)=>/* @__PURE__ */ {
|
|
178
|
-
let { style: e } = param;
|
|
166
|
+
const Z = (param)=>/* @__PURE__ */ {
|
|
167
|
+
let { style: t } = param;
|
|
179
168
|
return (0, _jsxruntime.jsx)("svg", {
|
|
180
169
|
width: "48",
|
|
181
170
|
height: "48",
|
|
182
171
|
viewBox: "0 0 48 48",
|
|
183
172
|
fill: "none",
|
|
184
|
-
style:
|
|
173
|
+
style: t,
|
|
185
174
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("path", {
|
|
186
175
|
d: "M24.021 35.7235C24.8145 35.7694 25.0467 36.1913 25.3157 36.5138C25.586 36.8362 29.515 41.551 29.7823 41.8569C30.0475 42.1662 30.7822 42.7329 31.5901 42.8405C32.3967 42.9473 33.282 42.7842 33.8484 42.3748C34.4135 41.965 35.1313 41.4073 35.3833 41.0356C35.6337 40.6638 36.061 40.1302 35.9823 39.2534C35.9028 38.3783 35.7112 37.9204 35.0268 37.1691C34.3433 36.4185 30.2992 31.6657 29.5382 30.7537C29.5382 30.7537 28.8467 29.9423 28.9469 28.7956C29.0476 27.6468 29.567 27.1343 30.6608 26.8487C31.7534 26.5647 36.0267 25.5306 36.0267 25.5306C36.0267 25.5306 38.4728 24.3723 37.9182 22.0776L37.5997 20.904C37.5997 20.904 37.0672 18.2264 33.5519 19.0556C30.0344 19.8869 28.0803 20.377 28.0803 20.377C28.0803 20.377 26.9602 20.4838 26.7999 19.744C26.6417 19.0038 26.8494 18.6218 27.3443 18.4156C27.8387 18.209 30.9611 16.7175 31.3617 12.6853C31.7652 8.65158 28.3882 5.06573 24.0091 5.08104C19.6288 5.0976 16.4594 8.39988 16.4725 11.8185C16.4856 15.2387 18.7033 17.5144 20.4079 18.3638C21.3752 18.8453 21.0656 19.7122 21.0656 19.7122C21.0656 19.7122 20.8334 20.5554 19.8153 20.3311C18.7972 20.1025 13.8657 18.9736 13.8657 18.9736C13.8657 18.9736 10.8914 18.4226 10.1732 21.359C9.4541 24.2978 11.1261 25.4143 12.3532 25.6908C13.5798 25.9669 17.7296 26.9716 17.7296 26.9716C17.7296 26.9716 18.9643 27.581 19.0125 28.8308C19.0425 29.5697 19.0438 30.1824 18.266 31.2832C17.4894 32.3835 12.6598 38.0148 12.6598 38.0148C12.6598 38.0148 10.9997 39.9862 13.4051 41.763C15.8106 43.5401 17.1641 43.1262 18.5921 41.4889C20.0188 39.852 22.8383 36.4243 22.8383 36.4243C22.8383 36.4243 23.2275 35.6788 24.021 35.7235Z",
|
|
187
176
|
stroke: _skincontractcssmistica.vars.colors.brand,
|
|
188
177
|
strokeWidth: "2"
|
|
189
178
|
})
|
|
190
179
|
});
|
|
191
|
-
},
|
|
192
|
-
let {
|
|
180
|
+
}, q = /*#__PURE__*/ _react.forwardRef((param, d)=>{
|
|
181
|
+
let { borderRadius: t, withIcon: a = !0, border: c } = param;
|
|
193
182
|
const s = (0, _themevariantcontext.useIsInverseVariant)(), { skinName: n } = (0, _hooks.useTheme)();
|
|
194
183
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
195
184
|
style: {
|
|
@@ -200,11 +189,11 @@ const x = /*#__PURE__*/ _react.createContext(!0), q = ()=>_react.useContext(x),
|
|
|
200
189
|
justifyContent: "center",
|
|
201
190
|
backgroundColor: s ? _skincontractcssmistica.vars.colors.backgroundSkeletonInverse : _skincontractcssmistica.vars.colors.backgroundSkeleton,
|
|
202
191
|
boxSizing: "border-box",
|
|
203
|
-
border:
|
|
204
|
-
borderRadius:
|
|
192
|
+
border: c ? `1px solid ${_skincontractcssmistica.vars.colors.borderLow}` : "none",
|
|
193
|
+
borderRadius: t
|
|
205
194
|
},
|
|
206
|
-
ref:
|
|
207
|
-
children:
|
|
195
|
+
ref: d,
|
|
196
|
+
children: a ? n === _constants.VIVO_SKIN ? /* @__PURE__ */ (0, _jsxruntime.jsx)(Z, {
|
|
208
197
|
style: {
|
|
209
198
|
width: "10%",
|
|
210
199
|
minWidth: 24,
|
|
@@ -224,13 +213,13 @@ const x = /*#__PURE__*/ _react.createContext(!0), q = ()=>_react.useContext(x),
|
|
|
224
213
|
})
|
|
225
214
|
}) : void 0
|
|
226
215
|
});
|
|
227
|
-
}),
|
|
216
|
+
}), k = {
|
|
228
217
|
"1:1": 1,
|
|
229
218
|
"16:9": 16 / 9,
|
|
230
219
|
"7:10": 7 / 10,
|
|
231
220
|
"4:3": 4 / 3
|
|
232
|
-
},
|
|
233
|
-
var { aspectRatio:
|
|
221
|
+
}, x = "1:1", G = /*#__PURE__*/ _react.forwardRef((_param, A)=>{
|
|
222
|
+
var { aspectRatio: t = x, alt: a = "", dataAttributes: c, noBorderRadius: d, src: s, onError: n, onLoad: l, loadingFallback: R = !0, errorFallback: y = !0 } = _param, i = _object_without_properties(_param, [
|
|
234
223
|
"aspectRatio",
|
|
235
224
|
"alt",
|
|
236
225
|
"dataAttributes",
|
|
@@ -241,86 +230,86 @@ const x = /*#__PURE__*/ _react.createContext(!0), q = ()=>_react.useContext(x),
|
|
|
241
230
|
"loadingFallback",
|
|
242
231
|
"errorFallback"
|
|
243
232
|
]);
|
|
244
|
-
const
|
|
233
|
+
const f = _react.useRef(), S = i.border ? `1px solid ${_skincontractcssmistica.vars.colors.borderLow}` : "none", m = i.circular ? "50%" : d ? "0px" : (0, _css.fallbackVar)(_imagecssmistica.vars.mediaBorderRadius, _skincontractcssmistica.vars.borderRadii.container), [C, g] = _react.useState(!s), [z, b] = _react.useState(!0), [F, w] = _react.useState(!1), h = i.circular ? 1 : typeof t == "number" ? t : k[t], v = R && !!(h !== 0 || i.width && i.height), L = y && !!(h !== 0 || i.width && i.height), u = _react.useCallback(()=>{
|
|
245
234
|
g(!1), b(!1), setTimeout(()=>{
|
|
246
|
-
|
|
247
|
-
}, _imagecssmistica.FADE_IN_DURATION_MS),
|
|
235
|
+
w(!0);
|
|
236
|
+
}, _imagecssmistica.FADE_IN_DURATION_MS), l == null || l();
|
|
248
237
|
}, [
|
|
249
|
-
|
|
238
|
+
l
|
|
250
239
|
]), T = // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
251
240
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("img", {
|
|
252
|
-
style: _object_spread_props(_object_spread({},
|
|
241
|
+
style: _object_spread_props(_object_spread({}, z && v ? {
|
|
253
242
|
opacity: 0
|
|
254
243
|
} : {
|
|
255
244
|
opacity: 1
|
|
256
245
|
}), {
|
|
257
246
|
boxSizing: "border-box",
|
|
258
|
-
border:
|
|
247
|
+
border: S,
|
|
248
|
+
borderRadius: m
|
|
259
249
|
}),
|
|
260
|
-
ref: (0, _common.combineRefs)(
|
|
261
|
-
src:
|
|
250
|
+
ref: (0, _common.combineRefs)(f, A),
|
|
251
|
+
src: s,
|
|
262
252
|
className: (0, _classnames.default)(_imagecssmistica.image, (0, _sprinklescssmistica.sprinkles)({
|
|
263
|
-
position:
|
|
264
|
-
borderRadius: i.circular ? "50%" : m ? void 0 : _skincontractcssmistica.vars.borderRadii.container
|
|
253
|
+
position: h !== 0 ? "absolute" : "static"
|
|
265
254
|
})),
|
|
266
255
|
alt: a,
|
|
267
256
|
onError: ()=>{
|
|
268
|
-
g(!0), b(!1),
|
|
257
|
+
g(!0), b(!1), w(!0), n == null || n();
|
|
269
258
|
},
|
|
270
|
-
onLoad:
|
|
259
|
+
onLoad: u
|
|
271
260
|
});
|
|
261
|
+
var _i_height, _i_width;
|
|
272
262
|
return _react.useEffect(()=>{
|
|
273
|
-
var
|
|
274
|
-
(
|
|
263
|
+
var I;
|
|
264
|
+
(I = f.current) != null && I.complete && u();
|
|
275
265
|
}, [
|
|
276
|
-
|
|
266
|
+
u
|
|
277
267
|
]), /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
278
268
|
children: [
|
|
279
|
-
|
|
269
|
+
v && !F && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
280
270
|
style: {
|
|
281
271
|
position: "absolute",
|
|
282
272
|
width: "100%",
|
|
283
273
|
height: "100%"
|
|
284
274
|
},
|
|
285
|
-
children:
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
275
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_skeletons.SkeletonAnimation, {
|
|
276
|
+
height: (_i_height = i.height) !== null && _i_height !== void 0 ? _i_height : "100%",
|
|
277
|
+
width: (_i_width = i.width) !== null && _i_width !== void 0 ? _i_width : "100%",
|
|
278
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_skeletonbase.default, {
|
|
279
|
+
height: "100%",
|
|
280
|
+
width: "100%",
|
|
281
|
+
radius: m
|
|
282
|
+
})
|
|
293
283
|
})
|
|
294
284
|
}),
|
|
295
|
-
|
|
285
|
+
C && L && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
296
286
|
style: {
|
|
297
287
|
position: "absolute",
|
|
298
288
|
width: "100%",
|
|
299
289
|
height: "100%",
|
|
300
290
|
zIndex: 1
|
|
301
291
|
},
|
|
302
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
303
|
-
|
|
304
|
-
noBorderRadius: m,
|
|
292
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(q, {
|
|
293
|
+
borderRadius: m,
|
|
305
294
|
border: i.border
|
|
306
295
|
})
|
|
307
296
|
}),
|
|
308
|
-
!
|
|
297
|
+
!C && T
|
|
309
298
|
]
|
|
310
299
|
});
|
|
311
|
-
}),
|
|
312
|
-
var
|
|
313
|
-
const
|
|
300
|
+
}), J = /*#__PURE__*/ _react.forwardRef((t, a)=>{
|
|
301
|
+
var _t_aspectRatio;
|
|
302
|
+
const c = t.circular ? 1 : typeof t.aspectRatio == "number" ? t.aspectRatio : k[(_t_aspectRatio = t.aspectRatio) !== null && _t_aspectRatio !== void 0 ? _t_aspectRatio : x];
|
|
314
303
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_aspectratiosupport.AspectRatioContainer, {
|
|
315
304
|
style: {
|
|
316
305
|
position: "relative"
|
|
317
306
|
},
|
|
318
|
-
aspectRatio:
|
|
319
|
-
width:
|
|
320
|
-
height:
|
|
321
|
-
dataAttributes: (0, _dom.getPrefixedDataAttributes)(
|
|
322
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
307
|
+
aspectRatio: c,
|
|
308
|
+
width: t.width,
|
|
309
|
+
height: t.height,
|
|
310
|
+
dataAttributes: (0, _dom.getPrefixedDataAttributes)(t.dataAttributes, "Image"),
|
|
311
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(G, _object_spread_props(_object_spread({}, t), {
|
|
323
312
|
ref: a
|
|
324
313
|
}))
|
|
325
314
|
});
|
|
326
|
-
}),
|
|
315
|
+
}), m1 = J;
|
package/dist/list.css-mistica.js
CHANGED
|
@@ -66,4 +66,4 @@ _export(exports, {
|
|
|
66
66
|
});
|
|
67
67
|
require("./sprinkles.css.ts.vanilla.css-mistica.js");
|
|
68
68
|
require("./list.css.ts.vanilla.css-mistica.js");
|
|
69
|
-
var _ = "_1y2v1nfba _1y2v1nfbs _1y2v1nfbu", f = "_1y2v1nfbj _1y2v1nfd0 _1y2v1nfce _1y2v1nfbs", y = "_1y2v1nfba _1y2v1nfbp", a = "_1y2v1nfba _1y2v1nfbx _1y2v1nfdn", b = "_2buj9gf", r = "_2buj9ge", t = "_2buj9g0", e = "_1y2v1nfba _1y2v1nfbf _1y2v1nfce", u = "_2buj9gm _1y2v1nfba", c = "_1y2v1nf63 _1y2v1nf7c _1y2v1nf8l _1y2v1nf9u _1y2v1nfds _1y2v1nf62 _1y2v1nf90 _1y2v1nfa9 _1y2v1nfbc _1y2v1nfbv", d = "_2buj9go _1y2v1nf63 _1y2v1nf7c _1y2v1nf8l _1y2v1nf9u _1y2v1nfds _1y2v1nf62 _1y2v1nf90 _1y2v1nfa9 _1y2v1nfba _1y2v1nfbp _1y2v1nfbu _1y2v1nfby _1y2v1nfce", i = "
|
|
69
|
+
var _ = "_1y2v1nfba _1y2v1nfbs _1y2v1nfbu", f = "_1y2v1nfbj _1y2v1nfd0 _1y2v1nfce _1y2v1nfbs", y = "_1y2v1nfba _1y2v1nfbp", a = "_1y2v1nfba _1y2v1nfbx _1y2v1nfdn", b = "_2buj9gf", r = "_2buj9ge", t = "_2buj9g0", e = "_1y2v1nfba _1y2v1nfbf _1y2v1nfce", u = "_2buj9gm _1y2v1nfba", c = "_1y2v1nf63 _1y2v1nf7c _1y2v1nf8l _1y2v1nf9u _1y2v1nfds _1y2v1nf62 _1y2v1nf90 _1y2v1nfa9 _1y2v1nfbc _1y2v1nfbv", d = "_2buj9go _1y2v1nf63 _1y2v1nf7c _1y2v1nf8l _1y2v1nf9u _1y2v1nfds _1y2v1nf62 _1y2v1nf90 _1y2v1nfa9 _1y2v1nfba _1y2v1nfbp _1y2v1nfbu _1y2v1nfby _1y2v1nfce", i = "_1y2v1nfea", o = "_2buj9gc", g = "_2buj9gd", l = "_1y2v1nfba _1y2v1nfbg _1y2v1nfbw", j = "_1y2v1nf63 _1y2v1nf7c _1y2v1nf8l _1y2v1nf9u _1y2v1nfbx _1y2v1nfds _1y2v1nf62 _1y2v1nfbc _1y2v1nfce", s = "_2buj9g1", h = "_2buj9g2";
|
package/dist/list.js
CHANGED
|
@@ -11,19 +11,19 @@ function _export(target, all) {
|
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
13
|
BoxedRow: function() {
|
|
14
|
-
return
|
|
14
|
+
return Ue;
|
|
15
15
|
},
|
|
16
16
|
BoxedRowList: function() {
|
|
17
|
-
return
|
|
17
|
+
return Ze;
|
|
18
18
|
},
|
|
19
19
|
Content: function() {
|
|
20
|
-
return
|
|
20
|
+
return Ce;
|
|
21
21
|
},
|
|
22
22
|
Row: function() {
|
|
23
|
-
return
|
|
23
|
+
return Ke;
|
|
24
24
|
},
|
|
25
25
|
RowList: function() {
|
|
26
|
-
return
|
|
26
|
+
return Qe;
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -44,7 +44,9 @@ const _boxed = require("./boxed.js");
|
|
|
44
44
|
const _divider = /*#__PURE__*/ _interop_require_default(require("./divider.js"));
|
|
45
45
|
const _dom = require("./utils/dom.js");
|
|
46
46
|
const _listcssmistica = require("./list.css-mistica.js");
|
|
47
|
+
const _imagecssmistica = require("./image.css-mistica.js");
|
|
47
48
|
const _skincontractcssmistica = require("./skins/skin-contract.css-mistica.js");
|
|
49
|
+
const _css = require("./utils/css.js");
|
|
48
50
|
function _interop_require_default(obj) {
|
|
49
51
|
return obj && obj.__esModule ? obj : {
|
|
50
52
|
default: obj
|
|
@@ -170,20 +172,20 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
170
172
|
}
|
|
171
173
|
return target;
|
|
172
174
|
}
|
|
173
|
-
const $ = (e,
|
|
174
|
-
centerY:
|
|
175
|
-
}) :
|
|
175
|
+
const $ = (e, r)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
176
|
+
centerY: r
|
|
177
|
+
}) : r ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
176
178
|
style: {
|
|
177
179
|
display: "flex",
|
|
178
180
|
alignItems: "center",
|
|
179
181
|
height: "100%"
|
|
180
182
|
},
|
|
181
183
|
children: e
|
|
182
|
-
}) : e,
|
|
183
|
-
let { withChevron: e, headline:
|
|
184
|
+
}) : e, Ce = (param)=>{
|
|
185
|
+
let { withChevron: e, headline: r, title: n, titleLinesMax: o, subtitle: s, subtitleLinesMax: w, description: d, descriptionLinesMax: W, detail: u, asset: V, type: g = "basic", badge: A, right: E, extra: X, labelId: l, disabled: v } = param;
|
|
184
186
|
const h = (0, _themevariantcontext.useIsInverseVariant)(), a = [
|
|
185
|
-
n,
|
|
186
187
|
r,
|
|
188
|
+
n,
|
|
187
189
|
s,
|
|
188
190
|
d,
|
|
189
191
|
X
|
|
@@ -210,6 +212,9 @@ const $ = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
210
212
|
}),
|
|
211
213
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
212
214
|
className: _listcssmistica.asset,
|
|
215
|
+
style: (0, _css.applyCssVars)({
|
|
216
|
+
[_imagecssmistica.vars.mediaBorderRadius]: _skincontractcssmistica.vars.borderRadii.mediaSmall
|
|
217
|
+
}),
|
|
213
218
|
children: V
|
|
214
219
|
})
|
|
215
220
|
}),
|
|
@@ -223,11 +228,11 @@ const $ = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
223
228
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
224
229
|
space: 4,
|
|
225
230
|
children: [
|
|
226
|
-
|
|
231
|
+
r && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text1, {
|
|
227
232
|
regular: !0,
|
|
228
233
|
color: _skincontractcssmistica.vars.colors.textPrimary,
|
|
229
234
|
hyphens: "auto",
|
|
230
|
-
children:
|
|
235
|
+
children: r
|
|
231
236
|
}),
|
|
232
237
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
233
238
|
space: 2,
|
|
@@ -238,12 +243,12 @@ const $ = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
238
243
|
truncate: o,
|
|
239
244
|
id: l,
|
|
240
245
|
hyphens: "auto",
|
|
241
|
-
children:
|
|
246
|
+
children: n
|
|
242
247
|
}),
|
|
243
248
|
s && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
244
249
|
regular: !0,
|
|
245
250
|
color: _skincontractcssmistica.vars.colors.textSecondary,
|
|
246
|
-
truncate:
|
|
251
|
+
truncate: w,
|
|
247
252
|
hyphens: "auto",
|
|
248
253
|
children: s
|
|
249
254
|
}),
|
|
@@ -263,11 +268,11 @@ const $ = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
263
268
|
f(),
|
|
264
269
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
265
270
|
className: (0, _classnames.default)({
|
|
266
|
-
[_listcssmistica.right]: !!
|
|
267
|
-
[_listcssmistica.rightRestrictedWidth]: !!
|
|
271
|
+
[_listcssmistica.right]: !!u || g !== "basic",
|
|
272
|
+
[_listcssmistica.rightRestrictedWidth]: !!u
|
|
268
273
|
}),
|
|
269
274
|
children: [
|
|
270
|
-
|
|
275
|
+
u && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
271
276
|
className: (0, _classnames.default)(_listcssmistica.center, _listcssmistica.detail, {
|
|
272
277
|
[_listcssmistica.disabled]: v
|
|
273
278
|
}),
|
|
@@ -275,24 +280,24 @@ const $ = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
275
280
|
regular: !0,
|
|
276
281
|
color: _skincontractcssmistica.vars.colors.textSecondary,
|
|
277
282
|
hyphens: "auto",
|
|
278
|
-
children:
|
|
283
|
+
children: u
|
|
279
284
|
})
|
|
280
285
|
}),
|
|
281
286
|
g === "control" && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
282
287
|
className: (0, _classnames.default)({
|
|
283
|
-
[_listcssmistica.detailRight]: !!
|
|
288
|
+
[_listcssmistica.detailRight]: !!u
|
|
284
289
|
}),
|
|
285
290
|
children: $(E, a)
|
|
286
291
|
}),
|
|
287
292
|
g === "custom" && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
288
293
|
className: (0, _classnames.default)({
|
|
289
|
-
[_listcssmistica.detailRight]: !!
|
|
294
|
+
[_listcssmistica.detailRight]: !!u,
|
|
290
295
|
[_listcssmistica.disabled]: v
|
|
291
296
|
}),
|
|
292
297
|
children: $(E, a)
|
|
293
298
|
}),
|
|
294
299
|
(g === "chevron" || g === "custom" && e) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
295
|
-
paddingLeft:
|
|
300
|
+
paddingLeft: u || g === "custom" ? 4 : 0,
|
|
296
301
|
className: (0, _classnames.default)(_listcssmistica.center, {
|
|
297
302
|
[_listcssmistica.disabled]: v
|
|
298
303
|
}),
|
|
@@ -305,10 +310,10 @@ const $ = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
305
310
|
})
|
|
306
311
|
]
|
|
307
312
|
});
|
|
308
|
-
},
|
|
309
|
-
let { value: e, defaultValue:
|
|
310
|
-
const o = e !== void 0, [s,
|
|
311
|
-
o ||
|
|
313
|
+
}, Ne = (param)=>{
|
|
314
|
+
let { value: e, defaultValue: r, onChange: n } = param;
|
|
315
|
+
const o = e !== void 0, [s, w] = _react.useState(!!r), d = ()=>{
|
|
316
|
+
o || w(!s), n && n(o ? !e : !s);
|
|
312
317
|
};
|
|
313
318
|
return o ? [
|
|
314
319
|
!!e,
|
|
@@ -317,14 +322,14 @@ const $ = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
317
322
|
s,
|
|
318
323
|
d
|
|
319
324
|
];
|
|
320
|
-
},
|
|
321
|
-
const
|
|
325
|
+
}, ke = (e)=>e.switch !== void 0, Pe = (e)=>e.checkbox !== void 0, Be = (e)=>e.radioValue !== void 0, ee = /*#__PURE__*/ _react.forwardRef((e, r)=>{
|
|
326
|
+
const n = (0, _hooks.useAriaId)(), o = (0, _themevariantcontext.useIsInverseVariant)(), { asset: s, headline: w, title: d, titleLinesMax: W, subtitle: u, subtitleLinesMax: V, description: g, descriptionLinesMax: A, detail: E, badge: X, role: l, extra: v, dataAttributes: h } = e, F = (0, _radiobutton.useRadioContext)(), a = e.disabled || e.radioValue !== void 0 && F.disabled, f = !a && !o, y = !a && o, [Y, q] = Ne(e.switch || e.checkbox || {}), R = (param)=>/* @__PURE__ */ {
|
|
322
327
|
let { type: c, right: b, labelId: D } = param;
|
|
323
|
-
return (0, _jsxruntime.jsx)(
|
|
328
|
+
return (0, _jsxruntime.jsx)(Ce, {
|
|
324
329
|
asset: s,
|
|
325
|
-
headline:
|
|
330
|
+
headline: w,
|
|
326
331
|
title: d,
|
|
327
|
-
subtitle:
|
|
332
|
+
subtitle: u,
|
|
328
333
|
description: g,
|
|
329
334
|
badge: X,
|
|
330
335
|
titleLinesMax: W,
|
|
@@ -342,18 +347,18 @@ const $ = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
342
347
|
let b = "chevron";
|
|
343
348
|
return c.right === null && (b = "basic"), c.right && (b = "custom"), /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
344
349
|
paddingX: 16,
|
|
345
|
-
ref:
|
|
346
|
-
children:
|
|
350
|
+
ref: r,
|
|
351
|
+
children: R({
|
|
347
352
|
type: b,
|
|
348
353
|
right: c.right
|
|
349
354
|
})
|
|
350
355
|
});
|
|
351
356
|
};
|
|
352
|
-
if (e.onPress && !
|
|
353
|
-
ref:
|
|
357
|
+
if (e.onPress && !ke(e) && !Pe(e) && !Be(e)) return /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, {
|
|
358
|
+
ref: r,
|
|
354
359
|
className: (0, _classnames.default)(_listcssmistica.rowContent, {
|
|
355
360
|
[_listcssmistica.touchableBackground]: f,
|
|
356
|
-
[_listcssmistica.touchableBackgroundInverse]:
|
|
361
|
+
[_listcssmistica.touchableBackgroundInverse]: y,
|
|
357
362
|
[_listcssmistica.pointer]: !a
|
|
358
363
|
}),
|
|
359
364
|
trackingEvent: e.trackingEvent,
|
|
@@ -366,7 +371,7 @@ const $ = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
366
371
|
if (e.to) return /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, {
|
|
367
372
|
className: (0, _classnames.default)(_listcssmistica.rowContent, {
|
|
368
373
|
[_listcssmistica.touchableBackground]: f,
|
|
369
|
-
[_listcssmistica.touchableBackgroundInverse]:
|
|
374
|
+
[_listcssmistica.touchableBackgroundInverse]: y,
|
|
370
375
|
[_listcssmistica.pointer]: !a
|
|
371
376
|
}),
|
|
372
377
|
trackingEvent: e.trackingEvent,
|
|
@@ -380,7 +385,7 @@ const $ = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
380
385
|
if (e.href) return /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, {
|
|
381
386
|
className: (0, _classnames.default)(_listcssmistica.rowContent, {
|
|
382
387
|
[_listcssmistica.touchableBackground]: f,
|
|
383
|
-
[_listcssmistica.touchableBackgroundInverse]:
|
|
388
|
+
[_listcssmistica.touchableBackgroundInverse]: y,
|
|
384
389
|
[_listcssmistica.pointer]: !a
|
|
385
390
|
}),
|
|
386
391
|
trackingEvent: e.trackingEvent,
|
|
@@ -394,7 +399,7 @@ const $ = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
394
399
|
const z = (c)=>{
|
|
395
400
|
var D, G;
|
|
396
401
|
var _ref, _ref1;
|
|
397
|
-
const b = (_ref1 = (_ref = (D = e.switch) == null ? void 0 : D.name) !== null && _ref !== void 0 ? _ref : (G = e.checkbox) == null ? void 0 : G.name) !== null && _ref1 !== void 0 ? _ref1 :
|
|
402
|
+
const b = (_ref1 = (_ref = (D = e.switch) == null ? void 0 : D.name) !== null && _ref !== void 0 ? _ref : (G = e.checkbox) == null ? void 0 : G.name) !== null && _ref1 !== void 0 ? _ref1 : n;
|
|
398
403
|
return e.onPress ? /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
399
404
|
className: _listcssmistica.dualActionContainer,
|
|
400
405
|
children: [
|
|
@@ -405,11 +410,11 @@ const $ = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
405
410
|
role: l,
|
|
406
411
|
className: (0, _classnames.default)(_listcssmistica.dualActionLeft, {
|
|
407
412
|
[_listcssmistica.touchableBackground]: f,
|
|
408
|
-
[_listcssmistica.touchableBackgroundInverse]:
|
|
413
|
+
[_listcssmistica.touchableBackgroundInverse]: y
|
|
409
414
|
}),
|
|
410
|
-
children:
|
|
415
|
+
children: R({
|
|
411
416
|
type: "basic",
|
|
412
|
-
labelId:
|
|
417
|
+
labelId: n
|
|
413
418
|
})
|
|
414
419
|
}),
|
|
415
420
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
@@ -419,7 +424,7 @@ const $ = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
419
424
|
disabled: a,
|
|
420
425
|
name: b,
|
|
421
426
|
checked: Y,
|
|
422
|
-
"aria-labelledby":
|
|
427
|
+
"aria-labelledby": n,
|
|
423
428
|
onChange: q,
|
|
424
429
|
render: (param)=>/* @__PURE__ */ {
|
|
425
430
|
let { controlElement: H } = param;
|
|
@@ -433,7 +438,7 @@ const $ = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
433
438
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
434
439
|
className: (0, _classnames.default)(_listcssmistica.rowContent, {
|
|
435
440
|
[_listcssmistica.touchableBackground]: f,
|
|
436
|
-
[_listcssmistica.touchableBackgroundInverse]:
|
|
441
|
+
[_listcssmistica.touchableBackgroundInverse]: y,
|
|
437
442
|
[_listcssmistica.pointer]: !a
|
|
438
443
|
}),
|
|
439
444
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(c, {
|
|
@@ -447,7 +452,7 @@ const $ = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
447
452
|
return (0, _jsxruntime.jsx)(_box.default, {
|
|
448
453
|
paddingX: 16,
|
|
449
454
|
role: l,
|
|
450
|
-
children:
|
|
455
|
+
children: R({
|
|
451
456
|
labelId: te,
|
|
452
457
|
type: "control",
|
|
453
458
|
right: ()=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_stack.default, {
|
|
@@ -469,11 +474,11 @@ const $ = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
469
474
|
role: l,
|
|
470
475
|
className: (0, _classnames.default)(_listcssmistica.dualActionLeft, {
|
|
471
476
|
[_listcssmistica.touchableBackground]: f,
|
|
472
|
-
[_listcssmistica.touchableBackgroundInverse]:
|
|
477
|
+
[_listcssmistica.touchableBackgroundInverse]: y
|
|
473
478
|
}),
|
|
474
|
-
children:
|
|
479
|
+
children: R({
|
|
475
480
|
type: "basic",
|
|
476
|
-
labelId:
|
|
481
|
+
labelId: n
|
|
477
482
|
})
|
|
478
483
|
}),
|
|
479
484
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
@@ -482,7 +487,7 @@ const $ = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
482
487
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_radiobutton.default, {
|
|
483
488
|
dataAttributes: h,
|
|
484
489
|
value: e.radioValue,
|
|
485
|
-
"aria-labelledby":
|
|
490
|
+
"aria-labelledby": n,
|
|
486
491
|
render: (param)=>/* @__PURE__ */ {
|
|
487
492
|
let { controlElement: c } = param;
|
|
488
493
|
return (0, _jsxruntime.jsx)(_stack.default, {
|
|
@@ -498,21 +503,21 @@ const $ = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
498
503
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
499
504
|
className: (0, _classnames.default)(_listcssmistica.rowContent, {
|
|
500
505
|
[_listcssmistica.touchableBackground]: f,
|
|
501
|
-
[_listcssmistica.touchableBackgroundInverse]:
|
|
506
|
+
[_listcssmistica.touchableBackgroundInverse]: y,
|
|
502
507
|
[_listcssmistica.pointer]: !a
|
|
503
508
|
}),
|
|
504
509
|
role: l,
|
|
505
|
-
ref:
|
|
510
|
+
ref: r,
|
|
506
511
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_radiobutton.default, {
|
|
507
512
|
dataAttributes: h,
|
|
508
513
|
value: e.radioValue,
|
|
509
|
-
"aria-labelledby":
|
|
514
|
+
"aria-labelledby": n,
|
|
510
515
|
render: (param)=>/* @__PURE__ */ {
|
|
511
516
|
let { controlElement: c } = param;
|
|
512
517
|
return (0, _jsxruntime.jsx)(_box.default, {
|
|
513
518
|
paddingX: 16,
|
|
514
|
-
children:
|
|
515
|
-
labelId:
|
|
519
|
+
children: R({
|
|
520
|
+
labelId: n,
|
|
516
521
|
type: "control",
|
|
517
522
|
right: ()=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_stack.default, {
|
|
518
523
|
space: "around",
|
|
@@ -527,33 +532,33 @@ const $ = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
527
532
|
className: _listcssmistica.rowContent,
|
|
528
533
|
role: l,
|
|
529
534
|
dataAttributes: h,
|
|
530
|
-
children: e.right ?
|
|
535
|
+
children: e.right ? R({
|
|
531
536
|
type: "custom",
|
|
532
537
|
right: e.right
|
|
533
|
-
}) :
|
|
538
|
+
}) : R({
|
|
534
539
|
type: "basic"
|
|
535
540
|
})
|
|
536
541
|
});
|
|
537
|
-
}),
|
|
538
|
-
var { dataAttributes: e } = _param,
|
|
542
|
+
}), Ke = /*#__PURE__*/ _react.forwardRef((_param, n)=>/* @__PURE__ */ {
|
|
543
|
+
var { dataAttributes: e } = _param, r = _object_without_properties(_param, [
|
|
539
544
|
"dataAttributes"
|
|
540
545
|
]);
|
|
541
|
-
return (0, _jsxruntime.jsx)(ee, _object_spread_props(_object_spread({},
|
|
542
|
-
ref:
|
|
546
|
+
return (0, _jsxruntime.jsx)(ee, _object_spread_props(_object_spread({}, r), {
|
|
547
|
+
ref: n,
|
|
543
548
|
dataAttributes: _object_spread({
|
|
544
549
|
"component-name": "Row"
|
|
545
550
|
}, e)
|
|
546
551
|
}));
|
|
547
|
-
}),
|
|
548
|
-
let { children: e, ariaLabelledby:
|
|
552
|
+
}), Qe = (param)=>{
|
|
553
|
+
let { children: e, ariaLabelledby: r, role: n, dataAttributes: o } = param;
|
|
549
554
|
const s = _react.Children.count(e) - 1;
|
|
550
555
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({
|
|
551
|
-
role:
|
|
552
|
-
"aria-labelledby":
|
|
556
|
+
role: n,
|
|
557
|
+
"aria-labelledby": r
|
|
553
558
|
}, (0, _dom.getPrefixedDataAttributes)(o, "RowList")), {
|
|
554
|
-
children: _react.Children.toArray(e).filter(Boolean).map((
|
|
559
|
+
children: _react.Children.toArray(e).filter(Boolean).map((w, d)=>/* @__PURE__ */ (0, _jsxruntime.jsxs)(_react.Fragment, {
|
|
555
560
|
children: [
|
|
556
|
-
|
|
561
|
+
w,
|
|
557
562
|
d < s && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
558
563
|
paddingX: 16,
|
|
559
564
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_divider.default, {})
|
|
@@ -561,24 +566,24 @@ const $ = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
561
566
|
]
|
|
562
567
|
}, d))
|
|
563
568
|
}));
|
|
564
|
-
},
|
|
565
|
-
var { dataAttributes: e } = _param,
|
|
569
|
+
}, Ue = /*#__PURE__*/ _react.forwardRef((_param, n)=>/* @__PURE__ */ {
|
|
570
|
+
var { dataAttributes: e } = _param, r = _object_without_properties(_param, [
|
|
566
571
|
"dataAttributes"
|
|
567
572
|
]);
|
|
568
573
|
return (0, _jsxruntime.jsx)(_boxed.Boxed, {
|
|
569
|
-
isInverse:
|
|
570
|
-
ref:
|
|
574
|
+
isInverse: r.isInverse,
|
|
575
|
+
ref: n,
|
|
571
576
|
dataAttributes: _object_spread({
|
|
572
577
|
"component-name": "BoxedRow"
|
|
573
578
|
}, e),
|
|
574
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(ee, _object_spread({},
|
|
579
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(ee, _object_spread({}, r))
|
|
575
580
|
});
|
|
576
|
-
}),
|
|
577
|
-
let { children: e, ariaLabelledby:
|
|
581
|
+
}), Ze = (param)=>/* @__PURE__ */ {
|
|
582
|
+
let { children: e, ariaLabelledby: r, role: n, dataAttributes: o } = param;
|
|
578
583
|
return (0, _jsxruntime.jsx)(_stack.default, {
|
|
579
584
|
space: 16,
|
|
580
|
-
role:
|
|
581
|
-
"aria-labelledby":
|
|
585
|
+
role: n,
|
|
586
|
+
"aria-labelledby": r,
|
|
582
587
|
dataAttributes: _object_spread({
|
|
583
588
|
"component-name": "BoxedRowList"
|
|
584
589
|
}, o),
|