@stenajs-webui/panels 25.3.0 → 25.3.2
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/dist/index.css +1 -1
- package/dist/index.es.js +133 -122
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as e, Fragment as z, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import { ActionMenu as re, ActionMenuContext as ve, stenaAngleDown as oe, PrimaryButton as ie, SecondaryButton as R, FlatButton as O, stenaHamburger as le, FlatButtonLink as Be, BaseButton as ye, stenaBellFilled as
|
|
2
|
+
import { ActionMenu as re, ActionMenuContext as ve, stenaAngleDown as oe, PrimaryButton as ie, SecondaryButton as R, FlatButton as O, stenaHamburger as le, FlatButtonLink as Be, BaseButton as ye, stenaBellFilled as _e, TextInputButton as we, stenaTimes as Ie, stenaUserCircle as Se, MenuButton as D, Icon as K, stenaMail as ke, Card as Re, CardBody as Me, CircledIcon as q, stenaTripFerryXl as Ne, ScreenSpinner as Pe, CloseButton as Fe, StenaFlag as ze, stenaAngleLeftDouble as ae, stenaPin as je, IconMenuButton as V, IconMenuButtonLink as Le, MenuButtonLink as Ae, Spinner as ce, Tag as $e, ShimmerBox as N, stenaTimesThick as Te, stenaAngleRight as se, stenaAngleLeft as de, stenaSearchPlus as Oe, stenaSearchMinus as qe } from "@stenajs-webui/elements";
|
|
3
3
|
import * as Ee from "react";
|
|
4
4
|
import { useRef as Z, useMemo as j, forwardRef as E, useContext as He, createContext as We, useState as $, useCallback as J, useEffect as Ue } from "react";
|
|
5
5
|
import { useBoolean as ue, Column as u, Row as c, Indent as y, Heading as P, Box as d, Text as C, Space as B, getDataProps as L, SeparatorLine as Ge, pluralFormatter as De, selectPluralRule as Ke, Spacing as Ve, isEmptyFragment as Ze, useAccessibleFontSizeContext as Qe, exhaustSwitchCaseElseThrow as he, BlockKeyboardEvents as Xe } from "@stenajs-webui/core";
|
|
6
6
|
import { ControlledPopover as pe, Popover as me, Tooltip as ge } from "@stenajs-webui/tooltip";
|
|
7
7
|
import { Checkbox as be, TextInput as Je } from "@stenajs-webui/forms";
|
|
8
|
-
import
|
|
8
|
+
import _ from "classnames";
|
|
9
9
|
import { cssColor as p } from "@stenajs-webui/theme";
|
|
10
10
|
import { useMediaQuery as M } from "react-responsive";
|
|
11
11
|
import fe from "yet-another-react-lightbox";
|
|
@@ -26,10 +26,10 @@ import './index.css';const Q = ({
|
|
|
26
26
|
appendTo: b,
|
|
27
27
|
zIndex: f,
|
|
28
28
|
disableTrapFocus: x = !1,
|
|
29
|
-
...
|
|
29
|
+
...w
|
|
30
30
|
}) => {
|
|
31
|
-
const [S, k, v,
|
|
32
|
-
s?.(U),
|
|
31
|
+
const [S, k, v, I] = ue(!1), m = Z(null), H = g ?? m, W = j(() => ({ open: k, close: v }), [k, v]), xe = (U) => {
|
|
32
|
+
s?.(U), I();
|
|
33
33
|
};
|
|
34
34
|
return /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(
|
|
35
35
|
pe,
|
|
@@ -38,7 +38,7 @@ import './index.css';const Q = ({
|
|
|
38
38
|
r,
|
|
39
39
|
{
|
|
40
40
|
rightIcon: h ? void 0 : o,
|
|
41
|
-
...
|
|
41
|
+
...w,
|
|
42
42
|
ref: H,
|
|
43
43
|
onClick: xe,
|
|
44
44
|
...U
|
|
@@ -62,7 +62,7 @@ import './index.css';const Q = ({
|
|
|
62
62
|
)
|
|
63
63
|
}
|
|
64
64
|
) });
|
|
65
|
-
},
|
|
65
|
+
}, Bt = (n) => /* @__PURE__ */ e(Q, { buttonComponent: ie, ...n }), yt = (n) => /* @__PURE__ */ e(Q, { buttonComponent: R, ...n }), rn = (n) => /* @__PURE__ */ e(Q, { buttonComponent: O, ...n }), on = "1px solid var(--lhds-color-ui-300)", _t = ({
|
|
66
66
|
renderMenu: n,
|
|
67
67
|
...t
|
|
68
68
|
}) => /* @__PURE__ */ e(
|
|
@@ -101,7 +101,7 @@ import './index.css';const Q = ({
|
|
|
101
101
|
className: n,
|
|
102
102
|
onClick: t
|
|
103
103
|
}
|
|
104
|
-
),
|
|
104
|
+
), wt = ({
|
|
105
105
|
left: n,
|
|
106
106
|
className: t,
|
|
107
107
|
showMenuButton: r = !1,
|
|
@@ -115,7 +115,7 @@ import './index.css';const Q = ({
|
|
|
115
115
|
c,
|
|
116
116
|
{
|
|
117
117
|
justifyContent: "space-between",
|
|
118
|
-
className:
|
|
118
|
+
className: _(an.navBar, t),
|
|
119
119
|
children: [
|
|
120
120
|
/* @__PURE__ */ i(
|
|
121
121
|
c,
|
|
@@ -157,7 +157,7 @@ import './index.css';const Q = ({
|
|
|
157
157
|
{
|
|
158
158
|
...r,
|
|
159
159
|
ref: o,
|
|
160
|
-
className:
|
|
160
|
+
className: _(
|
|
161
161
|
Y.navBarButton,
|
|
162
162
|
n && Y.selected,
|
|
163
163
|
t
|
|
@@ -168,14 +168,14 @@ import './index.css';const Q = ({
|
|
|
168
168
|
), hn = "_navBarLink_1u1b2_1", pn = "_selected_1u1b2_14", ee = {
|
|
169
169
|
navBarLink: hn,
|
|
170
170
|
selected: pn
|
|
171
|
-
},
|
|
171
|
+
}, It = E(
|
|
172
172
|
function({ selected: t, className: r, ...o }, l) {
|
|
173
173
|
return /* @__PURE__ */ e(
|
|
174
174
|
Be,
|
|
175
175
|
{
|
|
176
176
|
...o,
|
|
177
177
|
ref: l,
|
|
178
|
-
className:
|
|
178
|
+
className: _(
|
|
179
179
|
ee.navBarLink,
|
|
180
180
|
t && ee.selected,
|
|
181
181
|
r
|
|
@@ -183,7 +183,7 @@ import './index.css';const Q = ({
|
|
|
183
183
|
}
|
|
184
184
|
);
|
|
185
185
|
}
|
|
186
|
-
),
|
|
186
|
+
), St = (n) => /* @__PURE__ */ e(P, { whiteSpace: "nowrap", variant: "h4", as: "h1", ...n }), kt = ({
|
|
187
187
|
content: n,
|
|
188
188
|
children: t,
|
|
189
189
|
appendTo: r,
|
|
@@ -209,13 +209,13 @@ import './index.css';const Q = ({
|
|
|
209
209
|
navBarNotificationButton: mn,
|
|
210
210
|
unread: gn,
|
|
211
211
|
icon: bn
|
|
212
|
-
},
|
|
212
|
+
}, Rt = E(function({
|
|
213
213
|
count: n,
|
|
214
214
|
unread: t = !1,
|
|
215
215
|
className: r,
|
|
216
216
|
labelClassName: o,
|
|
217
217
|
iconClassName: l,
|
|
218
|
-
icon: a =
|
|
218
|
+
icon: a = _e,
|
|
219
219
|
...s
|
|
220
220
|
}, h) {
|
|
221
221
|
const g = n > 1;
|
|
@@ -225,15 +225,15 @@ import './index.css';const Q = ({
|
|
|
225
225
|
...s,
|
|
226
226
|
ref: h,
|
|
227
227
|
leftIcon: a,
|
|
228
|
-
className:
|
|
228
|
+
className: _(
|
|
229
229
|
F.navBarNotificationButton,
|
|
230
230
|
t && F.unread,
|
|
231
231
|
g && F.hasCount,
|
|
232
232
|
r
|
|
233
233
|
),
|
|
234
234
|
label: g ? String(n) : void 0,
|
|
235
|
-
labelClassName:
|
|
236
|
-
iconClassName:
|
|
235
|
+
labelClassName: _(o, F.label),
|
|
236
|
+
iconClassName: _(l, F.icon)
|
|
237
237
|
}
|
|
238
238
|
);
|
|
239
239
|
}), fn = "_navBarSearchFieldInput_1rp8g_1", Cn = "_navBarSearchFieldWrapper_1rp8g_12", xn = "_withButton_1rp8g_24", vn = "_clearButton_1rp8g_33", A = {
|
|
@@ -241,7 +241,7 @@ import './index.css';const Q = ({
|
|
|
241
241
|
navBarSearchFieldWrapper: Cn,
|
|
242
242
|
withButton: xn,
|
|
243
243
|
clearButton: vn
|
|
244
|
-
},
|
|
244
|
+
}, Mt = ({
|
|
245
245
|
placeholder: n = "Search",
|
|
246
246
|
className: t,
|
|
247
247
|
wrapperClassName: r,
|
|
@@ -252,19 +252,19 @@ import './index.css';const Q = ({
|
|
|
252
252
|
}) => /* @__PURE__ */ e(
|
|
253
253
|
Je,
|
|
254
254
|
{
|
|
255
|
-
wrapperClassName:
|
|
255
|
+
wrapperClassName: _(
|
|
256
256
|
A.navBarSearchFieldWrapper,
|
|
257
257
|
o ? A.withButton : void 0,
|
|
258
258
|
r
|
|
259
259
|
),
|
|
260
|
-
className:
|
|
260
|
+
className: _(A.navBarSearchFieldInput, t),
|
|
261
261
|
placeholder: n,
|
|
262
262
|
value: a,
|
|
263
263
|
buttonRight: a && o ? /* @__PURE__ */ e(
|
|
264
|
-
|
|
264
|
+
we,
|
|
265
265
|
{
|
|
266
266
|
className: A.clearButton,
|
|
267
|
-
icon:
|
|
267
|
+
icon: Ie,
|
|
268
268
|
variant: "error",
|
|
269
269
|
onClick: l
|
|
270
270
|
}
|
|
@@ -273,7 +273,7 @@ import './index.css';const Q = ({
|
|
|
273
273
|
}
|
|
274
274
|
), Bn = "_navBarUserButton_10f9z_1", yn = {
|
|
275
275
|
navBarUserButton: Bn
|
|
276
|
-
},
|
|
276
|
+
}, Nt = ({
|
|
277
277
|
className: n,
|
|
278
278
|
username: t,
|
|
279
279
|
initials: r,
|
|
@@ -284,14 +284,14 @@ import './index.css';const Q = ({
|
|
|
284
284
|
rn,
|
|
285
285
|
{
|
|
286
286
|
...a,
|
|
287
|
-
className:
|
|
287
|
+
className: _(yn.navBarUserButton, n),
|
|
288
288
|
leftIcon: t != null ? o : void 0,
|
|
289
289
|
label: r ?? t,
|
|
290
290
|
forceRound: r != null,
|
|
291
291
|
responsiveIconOnly: l,
|
|
292
292
|
disableArrow: !0
|
|
293
293
|
}
|
|
294
|
-
),
|
|
294
|
+
), _n = E(
|
|
295
295
|
({ contentLeft: n, contentRight: t, collapsed: r = !1, ...o }, l) => /* @__PURE__ */ e(
|
|
296
296
|
D,
|
|
297
297
|
{
|
|
@@ -304,9 +304,9 @@ import './index.css';const Q = ({
|
|
|
304
304
|
...o
|
|
305
305
|
}
|
|
306
306
|
)
|
|
307
|
-
),
|
|
307
|
+
), Pt = ({
|
|
308
308
|
children: n
|
|
309
|
-
}) => /* @__PURE__ */ e(u, { gap: 1, children: n }),
|
|
309
|
+
}) => /* @__PURE__ */ e(u, { gap: 1, children: n }), Ft = ({
|
|
310
310
|
value: n,
|
|
311
311
|
onValueChange: t,
|
|
312
312
|
onChange: r,
|
|
@@ -314,7 +314,7 @@ import './index.css';const Q = ({
|
|
|
314
314
|
checkboxDisabled: l,
|
|
315
315
|
...a
|
|
316
316
|
}) => /* @__PURE__ */ e(
|
|
317
|
-
|
|
317
|
+
_n,
|
|
318
318
|
{
|
|
319
319
|
contentLeft: /* @__PURE__ */ e(
|
|
320
320
|
be,
|
|
@@ -329,9 +329,9 @@ import './index.css';const Q = ({
|
|
|
329
329
|
),
|
|
330
330
|
...a
|
|
331
331
|
}
|
|
332
|
-
),
|
|
333
|
-
sidebarMenuCollapsibleGroupBox:
|
|
334
|
-
}, Sn = ({ children: n }) => /* @__PURE__ */ e("div", { className:
|
|
332
|
+
), wn = "_sidebarMenuCollapsibleGroupBox_ikek9_1", In = {
|
|
333
|
+
sidebarMenuCollapsibleGroupBox: wn
|
|
334
|
+
}, Sn = ({ children: n }) => /* @__PURE__ */ e("div", { className: In.sidebarMenuCollapsibleGroupBox, children: n }), zt = ({ children: n }) => /* @__PURE__ */ e(d, { spacing: !0, indent: !0, children: /* @__PURE__ */ e(C, { variant: "overline", size: "smaller", children: n }) }), jt = ({ text: n = "No content" }) => /* @__PURE__ */ i(u, { indent: !0, spacing: !0, flex: 1, alignItems: "center", children: [
|
|
335
335
|
/* @__PURE__ */ e(K, { icon: ke, color: p("--lhds-color-ui-500") }),
|
|
336
336
|
/* @__PURE__ */ e(B, {}),
|
|
337
337
|
/* @__PURE__ */ e(C, { size: "small", color: p("--lhds-color-ui-500"), children: n })
|
|
@@ -358,7 +358,7 @@ import './index.css';const Q = ({
|
|
|
358
358
|
/* @__PURE__ */ e(d, { gap: 2, children: o })
|
|
359
359
|
] })
|
|
360
360
|
] }) }) });
|
|
361
|
-
},
|
|
361
|
+
}, Lt = (n) => /* @__PURE__ */ e(
|
|
362
362
|
d,
|
|
363
363
|
{
|
|
364
364
|
width: "100%",
|
|
@@ -377,7 +377,7 @@ import './index.css';const Q = ({
|
|
|
377
377
|
/* @__PURE__ */ e(B, { num: 4 }),
|
|
378
378
|
/* @__PURE__ */ e(P, { variant: "h4", children: n })
|
|
379
379
|
] })
|
|
380
|
-
] }),
|
|
380
|
+
] }), At = (n) => /* @__PURE__ */ e(
|
|
381
381
|
d,
|
|
382
382
|
{
|
|
383
383
|
width: "100%",
|
|
@@ -387,7 +387,7 @@ import './index.css';const Q = ({
|
|
|
387
387
|
alignItems: "center",
|
|
388
388
|
children: /* @__PURE__ */ e(Rn, { ...n })
|
|
389
389
|
}
|
|
390
|
-
),
|
|
390
|
+
), $t = ({
|
|
391
391
|
renderBreadCrumbs: n,
|
|
392
392
|
renderPageHeading: t,
|
|
393
393
|
renderTabs: r,
|
|
@@ -400,7 +400,7 @@ import './index.css';const Q = ({
|
|
|
400
400
|
r?.()
|
|
401
401
|
] }),
|
|
402
402
|
o
|
|
403
|
-
] }),
|
|
403
|
+
] }), Tt = (n) => /* @__PURE__ */ e(c, { indent: 3, spacing: !0, ...n }), Ot = ({
|
|
404
404
|
icon: n,
|
|
405
405
|
heading: t,
|
|
406
406
|
headingLevel: r = "h2",
|
|
@@ -416,7 +416,7 @@ import './index.css';const Q = ({
|
|
|
416
416
|
] }), Mn = "_selectionRow_eqiow_1", Nn = "_iconColumn_eqiow_10", ne = {
|
|
417
417
|
selectionRow: Mn,
|
|
418
418
|
iconColumn: Nn
|
|
419
|
-
},
|
|
419
|
+
}, qt = ({
|
|
420
420
|
icon: n,
|
|
421
421
|
heading: t,
|
|
422
422
|
description: r,
|
|
@@ -468,7 +468,7 @@ import './index.css';const Q = ({
|
|
|
468
468
|
isPinned: n,
|
|
469
469
|
onClick: t,
|
|
470
470
|
label: r
|
|
471
|
-
}) => /* @__PURE__ */ e(D, { onClick: t, label: r ?? (n ? "Unpin menu" : "Pin menu"), leftIcon: n ? ae : je }),
|
|
471
|
+
}) => /* @__PURE__ */ e(D, { onClick: t, label: r ?? (n ? "Unpin menu" : "Pin menu"), leftIcon: n ? ae : je }), Et = ({
|
|
472
472
|
className: n,
|
|
473
473
|
children: t,
|
|
474
474
|
onCloseClick: r,
|
|
@@ -477,7 +477,7 @@ import './index.css';const Q = ({
|
|
|
477
477
|
bottomItems: a,
|
|
478
478
|
isPinned: s,
|
|
479
479
|
...h
|
|
480
|
-
}) => /* @__PURE__ */ i(d, { ...h, className:
|
|
480
|
+
}) => /* @__PURE__ */ i(d, { ...h, className: _(G.sidebarMenu, n), children: [
|
|
481
481
|
/* @__PURE__ */ e(An, { onClick: r }),
|
|
482
482
|
/* @__PURE__ */ e(d, { className: G.scrollContainer, children: /* @__PURE__ */ i(
|
|
483
483
|
u,
|
|
@@ -506,7 +506,7 @@ import './index.css';const Q = ({
|
|
|
506
506
|
] }), T = We(!1), X = () => He(T), Tn = ({
|
|
507
507
|
label: n,
|
|
508
508
|
...t
|
|
509
|
-
}) => /* @__PURE__ */ e(ge, { label: n, placement: "right", appendTo: document.body, children: /* @__PURE__ */ e(V, { ...t }) }),
|
|
509
|
+
}) => /* @__PURE__ */ e(ge, { label: n, placement: "right", appendTo: document.body, children: /* @__PURE__ */ e(V, { ...t }) }), Ht = ({
|
|
510
510
|
closeButtonVisible: n,
|
|
511
511
|
onClickCloseButton: t,
|
|
512
512
|
onClickMenuButton: r,
|
|
@@ -552,7 +552,7 @@ import './index.css';const Q = ({
|
|
|
552
552
|
label: n,
|
|
553
553
|
leftIcon: t,
|
|
554
554
|
...r
|
|
555
|
-
}) => t == null ? null : /* @__PURE__ */ e(ge, { label: n, placement: "right", children: /* @__PURE__ */ e(Le, { icon: t, ...r }) }),
|
|
555
|
+
}) => t == null ? null : /* @__PURE__ */ e(ge, { label: n, placement: "right", children: /* @__PURE__ */ e(Le, { icon: t, ...r }) }), Wt = (n) => X() ? /* @__PURE__ */ e(qn, { ...n }) : /* @__PURE__ */ e(Ae, { ...n }), En = ({
|
|
556
556
|
children: n,
|
|
557
557
|
label: t,
|
|
558
558
|
icon: r,
|
|
@@ -579,7 +579,7 @@ import './index.css';const Q = ({
|
|
|
579
579
|
}
|
|
580
580
|
)
|
|
581
581
|
}
|
|
582
|
-
),
|
|
582
|
+
), Ut = ({
|
|
583
583
|
children: n,
|
|
584
584
|
label: t,
|
|
585
585
|
leftIcon: r,
|
|
@@ -600,13 +600,13 @@ import './index.css';const Q = ({
|
|
|
600
600
|
children: /* @__PURE__ */ e(Sn, { children: n })
|
|
601
601
|
}
|
|
602
602
|
);
|
|
603
|
-
},
|
|
603
|
+
}, Gt = (n) => /* @__PURE__ */ e(
|
|
604
604
|
Ge,
|
|
605
605
|
{
|
|
606
606
|
color: p("--lhds-color-ui-400"),
|
|
607
607
|
...n
|
|
608
608
|
}
|
|
609
|
-
), Hn = (n, t, r) => n == null ? "" : (De(Ke(r))(n, t) ?? "").replace("{ITEMS}", String(n)),
|
|
609
|
+
), Hn = (n, t, r) => n == null ? "" : (De(Ke(r))(n, t) ?? "").replace("{ITEMS}", String(n)), Dt = ({
|
|
610
610
|
numItemsSelected: n,
|
|
611
611
|
label: t,
|
|
612
612
|
selectedLabel: r = {
|
|
@@ -643,9 +643,9 @@ import './index.css';const Q = ({
|
|
|
643
643
|
]
|
|
644
644
|
}
|
|
645
645
|
);
|
|
646
|
-
},
|
|
646
|
+
}, Kt = ({ children: n }) => /* @__PURE__ */ e(c, { spacing: 0.5, indent: 0.5, flex: 1, children: n }), Wn = "_productCard_19x6b_1", Un = {
|
|
647
647
|
productCard: Wn
|
|
648
|
-
},
|
|
648
|
+
}, Vt = ({
|
|
649
649
|
renderSelectedProductCard: n,
|
|
650
650
|
renderEditButton: t,
|
|
651
651
|
children: r,
|
|
@@ -686,7 +686,9 @@ import './index.css';const Q = ({
|
|
|
686
686
|
)
|
|
687
687
|
]
|
|
688
688
|
}
|
|
689
|
-
), Gn = ({ children: n }) => /* @__PURE__ */ e(C, { variant: "bold", style: { fontSize: "2.0rem" }, children: n }),
|
|
689
|
+
), Gn = ({ children: n }) => /* @__PURE__ */ e(C, { variant: "bold", style: { fontSize: "2.0rem" }, children: n }), Dn = "_price_181ks_15", Kn = {
|
|
690
|
+
price: Dn
|
|
691
|
+
}, Zt = ({
|
|
690
692
|
description: n,
|
|
691
693
|
subDescription: t,
|
|
692
694
|
descriptionTags: r,
|
|
@@ -712,7 +714,7 @@ import './index.css';const Q = ({
|
|
|
712
714
|
gap: 2,
|
|
713
715
|
children: [
|
|
714
716
|
/* @__PURE__ */ e(P, { variant: "h3", as: f, children: s }),
|
|
715
|
-
/* @__PURE__ */ i(c, { gap: 2, children: [
|
|
717
|
+
/* @__PURE__ */ i(c, { gap: 2, className: Kn.price, children: [
|
|
716
718
|
l && /* @__PURE__ */ e(u, { justifyContent: "center", children: l }),
|
|
717
719
|
/* @__PURE__ */ e(Gn, { children: a })
|
|
718
720
|
] })
|
|
@@ -739,7 +741,7 @@ import './index.css';const Q = ({
|
|
|
739
741
|
b
|
|
740
742
|
] })
|
|
741
743
|
] });
|
|
742
|
-
},
|
|
744
|
+
}, Qt = ({ renderImage: n }) => /* @__PURE__ */ i(u, { children: [
|
|
743
745
|
n?.(),
|
|
744
746
|
/* @__PURE__ */ i(d, { gap: 3, spacing: 4, indent: 4, background: p("--moln"), children: [
|
|
745
747
|
/* @__PURE__ */ e(d, { gap: 0.5, children: /* @__PURE__ */ e(
|
|
@@ -761,13 +763,15 @@ import './index.css';const Q = ({
|
|
|
761
763
|
/* @__PURE__ */ e(u, { children: /* @__PURE__ */ e(N, { width: "180px", height: "2.0rem", borderRadius: "8px" }) }),
|
|
762
764
|
/* @__PURE__ */ e(u, { children: /* @__PURE__ */ e(N, { width: "150px", height: "1.4rem", borderRadius: "8px" }) })
|
|
763
765
|
] })
|
|
764
|
-
] }),
|
|
766
|
+
] }), Xt = ({
|
|
765
767
|
label: n,
|
|
766
768
|
children: t
|
|
767
769
|
}) => /* @__PURE__ */ i(d, { background: p("--mussla"), indent: 2, spacing: 2, gap: 2, children: [
|
|
768
770
|
/* @__PURE__ */ e(P, { variant: "h3", as: "h2", color: "white", children: n }),
|
|
769
771
|
t
|
|
770
|
-
] }),
|
|
772
|
+
] }), Vn = "_content_1m4r7_10", Zn = {
|
|
773
|
+
content: Vn
|
|
774
|
+
}, Jt = ({
|
|
771
775
|
title: n,
|
|
772
776
|
variant: t = "normal",
|
|
773
777
|
loading: r,
|
|
@@ -781,11 +785,11 @@ import './index.css';const Q = ({
|
|
|
781
785
|
children: f,
|
|
782
786
|
...x
|
|
783
787
|
}) => {
|
|
784
|
-
const { fontSizeRatio:
|
|
788
|
+
const { fontSizeRatio: w } = Qe(), S = M({
|
|
785
789
|
query: "(max-width: 460px)"
|
|
786
790
|
}), v = M({
|
|
787
791
|
query: "(max-width: 360px)"
|
|
788
|
-
}) || S &&
|
|
792
|
+
}) || S && w > 1.2, I = r ? "normal" : t, m = Xn(I), H = p("--moln"), W = Qn(I);
|
|
789
793
|
return /* @__PURE__ */ i(
|
|
790
794
|
d,
|
|
791
795
|
{
|
|
@@ -807,9 +811,16 @@ import './index.css';const Q = ({
|
|
|
807
811
|
v && l && /* @__PURE__ */ e(q, { icon: l, size: "medium" }),
|
|
808
812
|
/* @__PURE__ */ e(C, { variant: "bold", size: "large", children: n })
|
|
809
813
|
] }),
|
|
810
|
-
|
|
814
|
+
I == "normal" && h?.()
|
|
811
815
|
] }),
|
|
812
|
-
/* @__PURE__ */ e(
|
|
816
|
+
/* @__PURE__ */ e(
|
|
817
|
+
u,
|
|
818
|
+
{
|
|
819
|
+
className: Zn.content,
|
|
820
|
+
style: { opacity: r ? 0 : void 0 },
|
|
821
|
+
children: f
|
|
822
|
+
}
|
|
823
|
+
),
|
|
813
824
|
g && /* @__PURE__ */ e(c, { style: { opacity: r ? 0 : void 0 }, children: g() }),
|
|
814
825
|
/* @__PURE__ */ e("div", {}),
|
|
815
826
|
/* @__PURE__ */ i(
|
|
@@ -844,7 +855,7 @@ import './index.css';const Q = ({
|
|
|
844
855
|
]
|
|
845
856
|
}
|
|
846
857
|
);
|
|
847
|
-
},
|
|
858
|
+
}, Qn = (n) => {
|
|
848
859
|
switch (n) {
|
|
849
860
|
case "edit":
|
|
850
861
|
return p("--moln");
|
|
@@ -855,7 +866,7 @@ import './index.css';const Q = ({
|
|
|
855
866
|
default:
|
|
856
867
|
he(n);
|
|
857
868
|
}
|
|
858
|
-
},
|
|
869
|
+
}, Xn = (n) => {
|
|
859
870
|
switch (n) {
|
|
860
871
|
case "edit":
|
|
861
872
|
return p("--mussla");
|
|
@@ -866,20 +877,20 @@ import './index.css';const Q = ({
|
|
|
866
877
|
default:
|
|
867
878
|
he(n);
|
|
868
879
|
}
|
|
869
|
-
},
|
|
870
|
-
productSummaryCardImage:
|
|
871
|
-
},
|
|
872
|
-
productSummaryCardImageButton:
|
|
873
|
-
},
|
|
880
|
+
}, Jn = "_productSummaryCardImage_1knc7_1", Yn = {
|
|
881
|
+
productSummaryCardImage: Jn
|
|
882
|
+
}, et = ({ src: n, alt: t }) => /* @__PURE__ */ e("img", { src: n, alt: t, className: Yn.productSummaryCardImage }), nt = "_productSummaryCardImageButton_1mznn_11", tt = {
|
|
883
|
+
productSummaryCardImageButton: nt
|
|
884
|
+
}, Yt = ({ onClick: n, ariaLabel: t, ...r }) => /* @__PURE__ */ e(
|
|
874
885
|
"button",
|
|
875
886
|
{
|
|
876
887
|
type: "button",
|
|
877
|
-
className:
|
|
888
|
+
className: tt.productSummaryCardImageButton,
|
|
878
889
|
"aria-label": t,
|
|
879
890
|
onClick: n,
|
|
880
|
-
children: /* @__PURE__ */ e(
|
|
891
|
+
children: /* @__PURE__ */ e(et, { ...r })
|
|
881
892
|
}
|
|
882
|
-
),
|
|
893
|
+
), er = ({ iconLeft: n, ...t }) => /* @__PURE__ */ e(
|
|
883
894
|
d,
|
|
884
895
|
{
|
|
885
896
|
borderRadius: "16px",
|
|
@@ -934,15 +945,15 @@ import './index.css';const Q = ({
|
|
|
934
945
|
query: "(max-width: 1160px)"
|
|
935
946
|
});
|
|
936
947
|
return { deviceSize: t ? "small-mobile" : n ? "mobile" : r ? "tablet" : o ? "tablet-wide" : "desktop" };
|
|
937
|
-
},
|
|
948
|
+
}, rt = (n, t) => n === t || te.indexOf(n) > te.indexOf(t), nr = (n) => {
|
|
938
949
|
const { deviceSize: t } = Ce();
|
|
939
950
|
return {
|
|
940
951
|
visible: j(
|
|
941
|
-
() =>
|
|
952
|
+
() => rt(t, n),
|
|
942
953
|
[t, n]
|
|
943
954
|
)
|
|
944
955
|
};
|
|
945
|
-
},
|
|
956
|
+
}, ot = ({
|
|
946
957
|
isOpen: n,
|
|
947
958
|
initialIndex: t,
|
|
948
959
|
onUpdateIndex: r,
|
|
@@ -954,9 +965,9 @@ import './index.css';const Q = ({
|
|
|
954
965
|
onRequestClose: g,
|
|
955
966
|
images: b
|
|
956
967
|
}) => {
|
|
957
|
-
const f = Z(null), { deviceSize: x } = Ce(),
|
|
968
|
+
const f = Z(null), { deviceSize: x } = Ce(), w = x !== "mobile", [S, k] = $(t ?? 0), v = ({ index: m }) => {
|
|
958
969
|
k(m), r?.(m);
|
|
959
|
-
},
|
|
970
|
+
}, I = j(() => b.map((m) => it(m)), [b]);
|
|
960
971
|
return /* @__PURE__ */ e(
|
|
961
972
|
fe,
|
|
962
973
|
{
|
|
@@ -964,7 +975,7 @@ import './index.css';const Q = ({
|
|
|
964
975
|
close: g,
|
|
965
976
|
index: S,
|
|
966
977
|
plugins: [en, nn, tn],
|
|
967
|
-
slides:
|
|
978
|
+
slides: I,
|
|
968
979
|
on: { view: v },
|
|
969
980
|
animation: { fade: 0 },
|
|
970
981
|
controller: {
|
|
@@ -983,7 +994,7 @@ import './index.css';const Q = ({
|
|
|
983
994
|
}
|
|
984
995
|
},
|
|
985
996
|
render: {
|
|
986
|
-
buttonZoom: (m) =>
|
|
997
|
+
buttonZoom: (m) => w && /* @__PURE__ */ i(c, { gap: 1, indent: 2, children: [
|
|
987
998
|
/* @__PURE__ */ e(
|
|
988
999
|
R,
|
|
989
1000
|
{
|
|
@@ -1003,7 +1014,7 @@ import './index.css';const Q = ({
|
|
|
1003
1014
|
}
|
|
1004
1015
|
)
|
|
1005
1016
|
] }),
|
|
1006
|
-
buttonPrev: () => b.length > 1 &&
|
|
1017
|
+
buttonPrev: () => b.length > 1 && w && /* @__PURE__ */ e(y, { num: 4, className: "yarl__navigation_prev", children: /* @__PURE__ */ e(
|
|
1007
1018
|
R,
|
|
1008
1019
|
{
|
|
1009
1020
|
"aria-label": o,
|
|
@@ -1012,7 +1023,7 @@ import './index.css';const Q = ({
|
|
|
1012
1023
|
onClick: () => f.current?.prev()
|
|
1013
1024
|
}
|
|
1014
1025
|
) }),
|
|
1015
|
-
buttonNext: () => b.length > 1 &&
|
|
1026
|
+
buttonNext: () => b.length > 1 && w && /* @__PURE__ */ e(y, { num: 4, className: "yarl__navigation_next", children: /* @__PURE__ */ e(
|
|
1016
1027
|
R,
|
|
1017
1028
|
{
|
|
1018
1029
|
"aria-label": s,
|
|
@@ -1034,14 +1045,14 @@ import './index.css';const Q = ({
|
|
|
1034
1045
|
}
|
|
1035
1046
|
}
|
|
1036
1047
|
);
|
|
1037
|
-
},
|
|
1048
|
+
}, it = (n) => ({
|
|
1038
1049
|
src: n.url,
|
|
1039
1050
|
width: n.width,
|
|
1040
1051
|
height: n.height,
|
|
1041
1052
|
alt: n.alt,
|
|
1042
1053
|
title: n.title,
|
|
1043
1054
|
description: n.description
|
|
1044
|
-
}),
|
|
1055
|
+
}), tr = ({
|
|
1045
1056
|
images: n,
|
|
1046
1057
|
initialIndex: t,
|
|
1047
1058
|
altLabelPrevious: r,
|
|
@@ -1050,7 +1061,7 @@ import './index.css';const Q = ({
|
|
|
1050
1061
|
altLabelNext: a,
|
|
1051
1062
|
altLabelClose: s
|
|
1052
1063
|
}) => {
|
|
1053
|
-
const h = Z(null), [g, b] = $(!1), [f, x] = $(t ?? 0),
|
|
1064
|
+
const h = Z(null), [g, b] = $(!1), [f, x] = $(t ?? 0), w = J(() => {
|
|
1054
1065
|
b(!0);
|
|
1055
1066
|
}, []), S = J(() => {
|
|
1056
1067
|
b(!1);
|
|
@@ -1058,7 +1069,7 @@ import './index.css';const Q = ({
|
|
|
1058
1069
|
Ue(() => {
|
|
1059
1070
|
x(t ?? 0);
|
|
1060
1071
|
}, [t]);
|
|
1061
|
-
const v = j(() => n.map(
|
|
1072
|
+
const v = j(() => n.map(lt), [n]), I = j(() => n.map(
|
|
1062
1073
|
(m) => m.fullscreenImage ? {
|
|
1063
1074
|
...m,
|
|
1064
1075
|
url: m.fullscreenImage.url,
|
|
@@ -1076,7 +1087,7 @@ import './index.css';const Q = ({
|
|
|
1076
1087
|
plugins: [Ye],
|
|
1077
1088
|
on: {
|
|
1078
1089
|
view: k,
|
|
1079
|
-
click:
|
|
1090
|
+
click: w
|
|
1080
1091
|
},
|
|
1081
1092
|
carousel: {
|
|
1082
1093
|
padding: 0,
|
|
@@ -1117,13 +1128,13 @@ import './index.css';const Q = ({
|
|
|
1117
1128
|
}
|
|
1118
1129
|
),
|
|
1119
1130
|
g && /* @__PURE__ */ e(
|
|
1120
|
-
|
|
1131
|
+
ot,
|
|
1121
1132
|
{
|
|
1122
1133
|
isOpen: !0,
|
|
1123
1134
|
onRequestClose: S,
|
|
1124
1135
|
initialIndex: f,
|
|
1125
1136
|
onUpdateIndex: x,
|
|
1126
|
-
images:
|
|
1137
|
+
images: I,
|
|
1127
1138
|
altLabelPrevious: r,
|
|
1128
1139
|
altLabelNext: a,
|
|
1129
1140
|
altLabelClose: s,
|
|
@@ -1132,7 +1143,7 @@ import './index.css';const Q = ({
|
|
|
1132
1143
|
}
|
|
1133
1144
|
)
|
|
1134
1145
|
] });
|
|
1135
|
-
},
|
|
1146
|
+
}, lt = (n) => ({
|
|
1136
1147
|
src: n.url,
|
|
1137
1148
|
width: n.width,
|
|
1138
1149
|
height: n.height,
|
|
@@ -1142,51 +1153,51 @@ import './index.css';const Q = ({
|
|
|
1142
1153
|
});
|
|
1143
1154
|
export {
|
|
1144
1155
|
rn as ActionMenuFlatButton,
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1156
|
+
Bt as ActionMenuPrimaryButton,
|
|
1157
|
+
yt as ActionMenuSecondaryButton,
|
|
1158
|
+
_t as CheckboxMenu,
|
|
1159
|
+
_n as Collapsible,
|
|
1160
|
+
jt as CollapsibleEmptyContent,
|
|
1161
|
+
zt as CollapsibleGroupHeading,
|
|
1162
|
+
Pt as CollapsibleList,
|
|
1163
|
+
Ft as CollapsibleWithCheckbox,
|
|
1153
1164
|
kn as ErrorPanel,
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1165
|
+
Lt as ErrorScreen,
|
|
1166
|
+
ot as FullscreenImageCarousel,
|
|
1167
|
+
tr as ImageCarousel,
|
|
1157
1168
|
Rn as LoadingPanel,
|
|
1158
|
-
|
|
1159
|
-
|
|
1169
|
+
At as LoadingScreen,
|
|
1170
|
+
wt as NavBar,
|
|
1160
1171
|
un as NavBarButton,
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1172
|
+
St as NavBarHeading,
|
|
1173
|
+
It as NavBarLink,
|
|
1174
|
+
Rt as NavBarNotificationButton,
|
|
1175
|
+
kt as NavBarPopoverButton,
|
|
1176
|
+
Mt as NavBarSearchField,
|
|
1177
|
+
Nt as NavBarUserButton,
|
|
1178
|
+
$t as PageHeader,
|
|
1179
|
+
Tt as PageHeaderRow,
|
|
1180
|
+
Ot as PageHeading,
|
|
1181
|
+
Vt as ProductCard,
|
|
1182
|
+
Zt as ProductCardContentItem,
|
|
1183
|
+
Qt as ProductCardContentItemSkeletor,
|
|
1184
|
+
Jt as ProductSummaryCard,
|
|
1185
|
+
et as ProductSummaryCardImage,
|
|
1186
|
+
Yt as ProductSummaryCardImageButton,
|
|
1187
|
+
er as ProductSummaryCardSkeletor,
|
|
1188
|
+
Kt as SelectedItemsActionsPadding,
|
|
1189
|
+
Dt as SelectedItemsActionsPanel,
|
|
1190
|
+
Xt as SelectedProductCard,
|
|
1191
|
+
qt as SelectionRow,
|
|
1192
|
+
Et as SidebarMenu,
|
|
1193
|
+
Ut as SidebarMenuCollapsible,
|
|
1183
1194
|
Sn as SidebarMenuCollapsibleGroupBox,
|
|
1184
1195
|
On as SidebarMenuHeading,
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1196
|
+
Wt as SidebarMenuLink,
|
|
1197
|
+
Gt as SidebarMenuSeparator,
|
|
1198
|
+
Ht as SidebarRailMenu,
|
|
1199
|
+
rt as isDeviceSameOrLarger,
|
|
1189
1200
|
Ce as useDeviceSize,
|
|
1190
|
-
|
|
1201
|
+
nr as useLayoutVisibility
|
|
1191
1202
|
};
|
|
1192
1203
|
//# sourceMappingURL=index.es.js.map
|