@stenajs-webui/panels 22.4.0 → 22.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,6 +4,6 @@ export interface ProductCardProps extends PropsWithChildren {
4
4
  renderSelectedProductCard?: () => ReactNode;
5
5
  renderEditButton?: () => ReactNode;
6
6
  loading?: boolean;
7
- border?: boolean;
7
+ shadow?: boolean;
8
8
  }
9
9
  export declare const ProductCard: React.FC<ProductCardProps>;
package/dist/index.es.js CHANGED
@@ -27,10 +27,10 @@ const te = ({
27
27
  buttonRef: g,
28
28
  appendTo: b,
29
29
  zIndex: C,
30
- disableTrapFocus: w = !1,
30
+ disableTrapFocus: B = !1,
31
31
  ...k
32
32
  }) => {
33
- const [S, B, _, j] = fe(!1), F = Q(null), P = g ?? F, O = U(() => ({ open: B, close: _ }), [B, _]), L = (A) => {
33
+ const [S, w, _, j] = fe(!1), F = Q(null), P = g ?? F, O = U(() => ({ open: w, close: _ }), [w, _]), L = (A) => {
34
34
  s == null || s(A), j();
35
35
  };
36
36
  return /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
@@ -58,7 +58,7 @@ const te = ({
58
58
  {
59
59
  width: l,
60
60
  top: a,
61
- trapFocus: !w,
61
+ trapFocus: !B,
62
62
  children: /* @__PURE__ */ e(ke.Provider, { value: O, children: n(_) })
63
63
  }
64
64
  )
@@ -167,7 +167,7 @@ const te = ({
167
167
  }
168
168
  );
169
169
  }
170
- ), yt = (n) => /* @__PURE__ */ e(z, { whiteSpace: "nowrap", variant: "h4", as: "h1", ...n }), Bt = ({
170
+ ), yt = (n) => /* @__PURE__ */ e(z, { whiteSpace: "nowrap", variant: "h4", as: "h1", ...n }), wt = ({
171
171
  content: n,
172
172
  children: t,
173
173
  appendTo: i,
@@ -194,7 +194,7 @@ const te = ({
194
194
  unread: hn,
195
195
  icon: pn,
196
196
  shake: mn
197
- }, wt = ee(function({
197
+ }, Bt = ee(function({
198
198
  count: n,
199
199
  unread: t = !1,
200
200
  className: i,
@@ -279,10 +279,10 @@ const te = ({
279
279
  ), _n = "_unreadDot_l8bni_1", yn = "_dot_l8bni_4", se = {
280
280
  unreadDot: _n,
281
281
  dot: yn
282
- }, Bn = ({ children: n }) => /* @__PURE__ */ r("div", { className: se.unreadDot, children: [
282
+ }, wn = ({ children: n }) => /* @__PURE__ */ r("div", { className: se.unreadDot, children: [
283
283
  n,
284
284
  /* @__PURE__ */ e("div", { className: se.dot })
285
- ] }), Be = ({
285
+ ] }), we = ({
286
286
  text: n,
287
287
  timestamp: t,
288
288
  icon: i,
@@ -300,13 +300,13 @@ const te = ({
300
300
  size: "small",
301
301
  icon: i,
302
302
  "aria-label": o,
303
- backgroundColor: b || wn(u, g)
303
+ backgroundColor: b || Bn(u, g)
304
304
  }
305
305
  ) : void 0;
306
306
  return /* @__PURE__ */ r(c, { alignItems: "flex-start", indent: 2, spacing: !0, children: [
307
307
  /* @__PURE__ */ r(c, { spacing: !0, gap: 2, flex: 1, alignItems: "flex-start", children: [
308
308
  l && /* @__PURE__ */ e(d, { minHeight: 20, justifyContent: "center", children: l }),
309
- !l && C && (u ? /* @__PURE__ */ e(Bn, { children: C }) : C),
309
+ !l && C && (u ? /* @__PURE__ */ e(wn, { children: C }) : C),
310
310
  /* @__PURE__ */ r(d, { minHeight: 20, justifyContent: "center", flex: 1, gap: 0.5, children: [
311
311
  /* @__PURE__ */ e(f, { variant: "bold", children: n }),
312
312
  t && /* @__PURE__ */ e(
@@ -332,7 +332,7 @@ const te = ({
332
332
  }
333
333
  )
334
334
  ] });
335
- }, wn = (n, t) => {
335
+ }, Bn = (n, t) => {
336
336
  if (!(!n && t === "standard"))
337
337
  return "--lhds-color-ui-50";
338
338
  }, kn = "_notification_1hao0_1", In = "_body_1hao0_7", Sn = "_standard_1hao0_13", Nn = "_unread_1hao0_14", Mn = "_danger_1hao0_19", W = {
@@ -355,7 +355,7 @@ const te = ({
355
355
  i && W.unread
356
356
  ),
357
357
  children: [
358
- /* @__PURE__ */ e(Be, { ...o, unread: i, variant: n }),
358
+ /* @__PURE__ */ e(we, { ...o, unread: i, variant: n }),
359
359
  t && /* @__PURE__ */ e(p, { className: W.body, children: t })
360
360
  ]
361
361
  }
@@ -387,7 +387,7 @@ const te = ({
387
387
  role: "alert",
388
388
  position: "relative",
389
389
  children: [
390
- /* @__PURE__ */ e(d, { className: v({ [V.nonClickable]: n }), children: /* @__PURE__ */ e(Be, { ...a }) }),
390
+ /* @__PURE__ */ e(d, { className: v({ [V.nonClickable]: n }), children: /* @__PURE__ */ e(we, { ...a }) }),
391
391
  i && /* @__PURE__ */ r(d, { indent: 3, className: v({ [V.nonClickable]: n }), children: [
392
392
  i,
393
393
  /* @__PURE__ */ e(x, { num: 2 })
@@ -721,16 +721,14 @@ const te = ({
721
721
  renderEditButton: t,
722
722
  children: i,
723
723
  loading: o,
724
- border: l,
724
+ shadow: l,
725
725
  ...a
726
726
  }) => /* @__PURE__ */ r(
727
727
  p,
728
728
  {
729
729
  "data-comp": "ProductCard",
730
730
  className: Jn.productCard,
731
- borderWidth: 1,
732
- borderColor: l ? m("--silver-light") : void 0,
733
- borderStyle: l ? "solid" : void 0,
731
+ shadow: l ? "box" : void 0,
734
732
  background: m("--moln"),
735
733
  borderRadius: "24px",
736
734
  overflow: "hidden",
@@ -772,7 +770,7 @@ const te = ({
772
770
  children: b,
773
771
  headingLevel: C
774
772
  }) => {
775
- const w = i == null ? !1 : Array.isArray(i) ? i.length > 0 : !Ze(i);
773
+ const B = i == null ? !1 : Array.isArray(i) ? i.length > 0 : !Ze(i);
776
774
  return /* @__PURE__ */ r(p, { children: [
777
775
  g == null ? void 0 : g(),
778
776
  /* @__PURE__ */ r(d, { gap: 2, spacing: 4, indent: 4, background: m("--moln"), children: [
@@ -794,7 +792,7 @@ const te = ({
794
792
  ),
795
793
  u && /* @__PURE__ */ e(f, { variant: "bold", color: m("--silver-dark"), children: u })
796
794
  ] }),
797
- (w || o) && /* @__PURE__ */ r(p, { children: [
795
+ (B || o) && /* @__PURE__ */ r(p, { children: [
798
796
  /* @__PURE__ */ r(c, { gap: 1, flexWrap: "wrap", children: [
799
797
  i,
800
798
  o && /* @__PURE__ */ e(We, { label: o, variant: "passive" })
@@ -854,11 +852,11 @@ const te = ({
854
852
  children: b,
855
853
  ...C
856
854
  }) => {
857
- const { fontSizeRatio: w } = Qe(), k = N({
855
+ const { fontSizeRatio: B } = Qe(), k = N({
858
856
  query: "(max-width: 460px)"
859
- }), B = N({
857
+ }), w = N({
860
858
  query: "(max-width: 360px)"
861
- }) || k && w > 1.2, _ = i ? "normal" : t, j = nt(_), F = m("--moln"), P = et(_);
859
+ }) || k && B > 1.2, _ = i ? "normal" : t, j = nt(_), F = m("--moln"), P = et(_);
862
860
  return /* @__PURE__ */ r(
863
861
  d,
864
862
  {
@@ -870,11 +868,11 @@ const te = ({
870
868
  ...ne(C),
871
869
  children: [
872
870
  /* @__PURE__ */ r(c, { flex: 1, children: [
873
- !B && /* @__PURE__ */ e(d, { flex: 2, justifyContent: "center", background: j, children: o && /* @__PURE__ */ e(X, { color: P, icon: o, size: 73 }) }),
871
+ !w && /* @__PURE__ */ e(d, { flex: 2, justifyContent: "center", background: j, children: o && /* @__PURE__ */ e(X, { color: P, icon: o, size: 73 }) }),
874
872
  /* @__PURE__ */ e(d, { flex: 4, indent: 2, spacing: 2, background: F, children: /* @__PURE__ */ r(p, { gap: 2, children: [
875
873
  n && /* @__PURE__ */ r(c, { justifyContent: "space-between", children: [
876
874
  /* @__PURE__ */ r(c, { gap: 2, alignItems: "center", children: [
877
- B && l && /* @__PURE__ */ e(G, { icon: l, size: "medium" }),
875
+ w && l && /* @__PURE__ */ e(G, { icon: l, size: "medium" }),
878
876
  /* @__PURE__ */ e(f, { variant: "bold", size: "large", children: n })
879
877
  ] }),
880
878
  _ == "normal" && (s == null ? void 0 : s())
@@ -980,7 +978,7 @@ const te = ({
980
978
  "tablet",
981
979
  "tablet-wide",
982
980
  "desktop"
983
- ], we = () => {
981
+ ], Be = () => {
984
982
  const n = N({
985
983
  query: "(max-width: 768px)"
986
984
  }), t = N({
@@ -992,7 +990,7 @@ const te = ({
992
990
  });
993
991
  return { deviceSize: t ? "small-mobile" : n ? "mobile" : i ? "tablet" : o ? "tablet-wide" : "desktop" };
994
992
  }, tt = (n, t) => n === t || de.indexOf(n) > de.indexOf(t), Jt = (n) => {
995
- const { deviceSize: t } = we();
993
+ const { deviceSize: t } = Be();
996
994
  return {
997
995
  visible: U(
998
996
  () => tt(t, n),
@@ -1007,11 +1005,11 @@ const te = ({
1007
1005
  altLabelNext: l,
1008
1006
  altLabelClose: a
1009
1007
  }) => {
1010
- const s = Q(null), u = Q(null), { deviceSize: g } = we(), b = g !== "mobile", [C, w] = H(!1), [k, S] = H(0), [B, _] = H(0), j = le(() => {
1011
- _(k), w(!0);
1008
+ const s = Q(null), u = Q(null), { deviceSize: g } = Be(), b = g !== "mobile", [C, B] = H(!1), [k, S] = H(0), [w, _] = H(0), j = le(() => {
1009
+ _(k), B(!0);
1012
1010
  }, [k]), F = le(() => {
1013
- S(B), w(!1);
1014
- }, [B]), P = ({ index: h }) => S(h), O = ({ index: h }) => _(h), L = U(() => n.map(Z), [n]), A = U(
1011
+ S(w), B(!1);
1012
+ }, [w]), P = ({ index: h }) => S(h), O = ({ index: h }) => _(h), L = U(() => n.map(Z), [n]), A = U(
1015
1013
  () => n.map(
1016
1014
  (h) => h.fullscreenImage ? Z({
1017
1015
  ...h.fullscreenImage,
@@ -1082,7 +1080,7 @@ const te = ({
1082
1080
  {
1083
1081
  open: C,
1084
1082
  close: F,
1085
- index: B,
1083
+ index: w,
1086
1084
  plugins: [nn, en, Ye],
1087
1085
  slides: A ?? L,
1088
1086
  on: { view: O },
@@ -1190,12 +1188,12 @@ export {
1190
1188
  _t as NavBar,
1191
1189
  dn as NavBarButton,
1192
1190
  yt as NavBarHeading,
1193
- wt as NavBarNotificationButton,
1194
- Bt as NavBarPopoverButton,
1191
+ Bt as NavBarNotificationButton,
1192
+ wt as NavBarPopoverButton,
1195
1193
  kt as NavBarSearchField,
1196
1194
  It as NavBarUserButton,
1197
1195
  St as Notification,
1198
- Be as NotificationHeader,
1196
+ we as NotificationHeader,
1199
1197
  Nt as NotificationList,
1200
1198
  $t as PageHeader,
1201
1199
  Lt as PageHeaderRow,
@@ -1216,10 +1214,10 @@ export {
1216
1214
  Et as SidebarMenuSeparator,
1217
1215
  Ht as SidebarRailMenu,
1218
1216
  Mt as Toast,
1219
- Bn as UnreadDot,
1220
- wn as getIconBgColorFromVariant,
1217
+ wn as UnreadDot,
1218
+ Bn as getIconBgColorFromVariant,
1221
1219
  tt as isDeviceSameOrLarger,
1222
- we as useDeviceSize,
1220
+ Be as useDeviceSize,
1223
1221
  Jt as useLayoutVisibility
1224
1222
  };
1225
1223
  //# sourceMappingURL=index.es.js.map