asma-ui-core 3.121.6 → 3.123.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.
Files changed (65) hide show
  1. package/dist/asma-ui-core.css +1 -1
  2. package/dist/components/custom/module/header-layout/ToolbarRows.js +64 -60
  3. package/dist/components/custom/widget/widget/StyledWidget.js +44 -37
  4. package/dist/components/custom/widget/widget-header/StyledWidgetHeader.js +7 -7
  5. package/dist/components/custom/widget/widget-title/StyledWidgetTitle.js +8 -8
  6. package/dist/components/data-display/chip/StyledChip.js +42 -42
  7. package/dist/components/data-display/form-label/components/StyledFormLabel.js +15 -15
  8. package/dist/components/feedback/dialog/StyledDialog.js +75 -75
  9. package/dist/components/feedback/dialog/StyledDialogActions.js +4 -4
  10. package/dist/components/feedback/dialog/StyledDialogTitle.js +13 -13
  11. package/dist/components/feedback/dialog/dialog-footer/StyledDialogFooter.js +70 -69
  12. package/dist/components/feedback/minimizable-dialog/MinimizableDialog.js +69 -69
  13. package/dist/components/feedback/minimizable-dialog/v2/MinimizableDialogV2.js +81 -81
  14. package/dist/components/feedback/snack-bar/StyledAlert.js +16 -16
  15. package/dist/components/inputs/button/StyledButton.js +36 -35
  16. package/dist/components/inputs/input-field/StyledInputField.js +38 -38
  17. package/dist/components/inputs/search-field/StyledSearchField.js +18 -17
  18. package/dist/components/miscellaneous/StyledFormControlLabel.js +13 -13
  19. package/dist/components/navigation/link/StyledLink.js +44 -44
  20. package/dist/components/navigation/title-chevron/StyledTitleChevron.js +13 -13
  21. package/dist/components/utils/bottom-sheet/StyledBottomSheet.js +45 -45
  22. package/dist/components/utils/popover/PopoverAnatomy.js +23 -23
  23. package/dist/hooks/useMediaQuery.hook.js +3 -2
  24. package/dist/index.js +66 -63
  25. package/dist/src/components/custom/module/header-layout/ToolbarRows.d.ts +3 -1
  26. package/dist/src/hooks/useMediaQuery.hook.d.ts +2 -0
  27. package/dist/src/table/components/table-header/SortIndicator.d.ts +12 -0
  28. package/dist/src/table/custom-features/order-columns/columnLayout.d.ts +24 -0
  29. package/dist/src/table/custom-features/order-columns/columnLayout.test.d.ts +1 -0
  30. package/dist/src/table/custom-features/order-columns/types.d.ts +8 -0
  31. package/dist/src/table/custom-features/order-columns/usePersistColumnOrder.d.ts +5 -0
  32. package/dist/src/table/helpers/columnIds.d.ts +27 -0
  33. package/dist/src/table/helpers/columnIds.test.d.ts +1 -0
  34. package/dist/src/table/helpers/tableStorage.d.ts +12 -0
  35. package/dist/src/table/helpers/tableStorage.test.d.ts +1 -0
  36. package/dist/src/table/hooks/useColumnSizingPersistence.d.ts +16 -3
  37. package/dist/src/table/hooks/useColumnSizingPersistence.test.d.ts +1 -0
  38. package/dist/src/table/hooks/usePersistedSorting.d.ts +54 -0
  39. package/dist/src/table/hooks/usePersistedSorting.test.d.ts +1 -0
  40. package/dist/src/table/hooks/usePersistedStateWriter.d.ts +30 -0
  41. package/dist/src/table/hooks/useTranslations.d.ts +6 -4
  42. package/dist/src/table/index.d.ts +1 -0
  43. package/dist/src/table/types.d.ts +9 -2
  44. package/dist/table/components/StyledTable.module.js +59 -56
  45. package/dist/table/components/columns/action-column/components/HeaderActionMenu.js +61 -54
  46. package/dist/table/components/columns/action-column/components/TableActions.module.js +4 -4
  47. package/dist/table/components/table-header/SortIndicator.js +23 -0
  48. package/dist/table/components/table-header/TableHeader.js +30 -30
  49. package/dist/table/components/table-header/TableHeaderCell.js +30 -31
  50. package/dist/table/custom-features/order-columns/OrderColumnsFeature.js +7 -8
  51. package/dist/table/custom-features/order-columns/columnLayout.js +9 -0
  52. package/dist/table/custom-features/order-columns/usePersistColumnOrder.js +12 -11
  53. package/dist/table/custom-features/order-columns/usePersistedColumnOrder.js +7 -12
  54. package/dist/table/helpers/columnIds.js +28 -0
  55. package/dist/table/helpers/tableStorage.js +33 -0
  56. package/dist/table/hooks/useColumnSizingPersistence.js +16 -34
  57. package/dist/table/hooks/usePersistedPageSize.js +11 -16
  58. package/dist/table/hooks/usePersistedSorting.js +58 -0
  59. package/dist/table/hooks/usePersistedStateWriter.js +36 -0
  60. package/dist/table/hooks/useStyledTable.js +90 -60
  61. package/dist/table/hooks/useTranslations.js +13 -11
  62. package/dist/table/index.js +3 -2
  63. package/dist/table/shared-components/DropDownIcon.js +4 -2
  64. package/dist/table/shared-components/DropUpIcon.js +5 -3
  65. package/package.json +1 -1
@@ -1,30 +1,30 @@
1
- import { cn as n } from "../../../helpers/cn.js";
1
+ import { cn as a } from "../../../helpers/cn.js";
2
2
  import { ChevronRightIcon as l } from "../../icons/chevron-right-icon/ChevronRightIcon.js";
3
- import { jsx as a, jsxs as u } from "react/jsx-runtime";
4
- var m = {
3
+ import { jsx as o, jsxs as m } from "react/jsx-runtime";
4
+ var u = {
5
5
  base: "text-sm",
6
6
  medium: "text-base",
7
7
  subtitle: "text-xl"
8
- }, o = {
8
+ }, r = {
9
9
  base: 20,
10
10
  medium: 24,
11
11
  subtitle: 28
12
- }, f = ({ dataTest: e, children: r, onClick: i, size: t = "base", className: s }) => /* @__PURE__ */ u("button", {
12
+ }, h = ({ dataTest: e, children: s, onClick: i, size: t = "base", className: n }) => /* @__PURE__ */ m("button", {
13
13
  type: "button",
14
14
  "data-test": e,
15
15
  "data-testid": e,
16
16
  onClick: i,
17
- className: n("group flex min-h-11 w-full cursor-pointer items-center rounded border-0 bg-transparent p-0 text-left", "font-semibold text-delta-800 transition-colors duration-300", m[t], "hover:text-gama-500 focus-visible:text-gama-500 active:text-gama-600", "asma-touch-ready", "outline-gama-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2", s),
18
- children: [/* @__PURE__ */ a("span", {
19
- className: "min-w-0 truncate",
20
- children: r
21
- }), /* @__PURE__ */ a(l, {
22
- width: o[t],
23
- height: o[t],
17
+ className: a("group flex min-h-11 w-full cursor-pointer items-center rounded border-0 bg-transparent p-0 text-left", "font-semibold text-delta-800 transition-colors duration-300", u[t], "hover:text-gama-500 focus-visible:text-gama-500 active:text-gama-600", "asma-touch-ready", "outline-gama-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2", n),
18
+ children: [/* @__PURE__ */ o("span", {
19
+ className: a("min-w-0 truncate", "max-xs:hyphens-auto max-xs:whitespace-normal max-xs:![overflow-wrap:anywhere]"),
20
+ children: s
21
+ }), /* @__PURE__ */ o(l, {
22
+ width: r[t],
23
+ height: r[t],
24
24
  "aria-hidden": !0,
25
25
  className: "shrink-0 transition-transform duration-300 group-hover:translate-x-1 group-focus-visible:translate-x-1"
26
26
  })]
27
27
  });
28
28
  export {
29
- f as StyledTitleChevron
29
+ h as StyledTitleChevron
30
30
  };
@@ -1,27 +1,27 @@
1
- import { cn as d } from "../../../helpers/cn.js";
1
+ import { cn as l } from "../../../helpers/cn.js";
2
2
  import { registerOpenModalDialog as z } from "../../../hooks/useTopLayer.hook.js";
3
3
  import { CloseIcon as J } from "../../icons/close-icon/CloseIcon.js";
4
4
  import { IndeterminateIcon as W } from "../../icons/indeterminate-icon/IndeterminateIcon.js";
5
5
  import { StyledButton as j } from "../../inputs/button/StyledButton.js";
6
6
  import { useShortViewportMediaQuery as X } from "../../../hooks/useMediaQuery.hook.js";
7
- import { OverlayBackOwnerContext as Z, isOverlayBackEnabled as P, requestCloseTopOverlayBack as x, useBackCloses as ee } from "../../../hooks/useBackCloses.hook.js";
7
+ import { OverlayBackOwnerContext as Z, isOverlayBackEnabled as P, requestCloseTopOverlayBack as y, useBackCloses as ee } from "../../../hooks/useBackCloses.hook.js";
8
8
  import { useDebouncedValue as te } from "../../../hooks/useDebouncedValue.hook.js";
9
9
  import { useFocusTrap as re } from "../../../hooks/useFocusTrap.hook.js";
10
10
  import { formatResultsLabel as oe } from "./formatResultsLabel.js";
11
11
  import { useBodyScrollLock as ne } from "../../../hooks/useBodyScrollLock.hook.js";
12
12
  import ae from "./StyledBottomSheet.module.js";
13
13
  import { useDragToDismiss as se } from "./useDragToDismiss.hook.js";
14
- import { useEffect as y, useId as ie, useLayoutEffect as le, useRef as l, useState as ce } from "react";
14
+ import { useEffect as g, useId as ie, useLayoutEffect as le, useRef as c, useState as ce } from "react";
15
15
  import { jsx as o, jsxs as u } from "react/jsx-runtime";
16
- var de = 500, Le = ({ dataTest: c, id: T, open: t, onClose: s, title: m, ariaLabel: _, children: q, viewResultsAction: g, resetAction: $, footerActions: A, resultCount: E, closeLabel: U = "Lukk", className: V, registerBackClose: H = !0, ownerRef: K }) => {
17
- const k = ie(), i = l(null), S = l(null), N = l(null), R = K ?? i, h = l(!1), [b, L] = ce(!1), G = X(), f = l(s), B = l(t);
18
- y(() => {
19
- f.current = s, B.current = t;
16
+ var de = 500, Le = ({ dataTest: d, id: T, open: t, onClose: s, title: m, ariaLabel: _, children: q, viewResultsAction: E, resetAction: $, footerActions: A, resultCount: k, closeLabel: U = "Lukk", className: V, registerBackClose: H = !0, ownerRef: K }) => {
17
+ const S = ie(), i = c(null), N = c(null), R = c(null), L = K ?? i, h = c(!1), [x, B] = ce(!1), G = X(), f = c(s), C = c(t);
18
+ g(() => {
19
+ f.current = s, C.current = t;
20
20
  }, [s, t]);
21
- const { dragHandleProps: Q, dragOffset: C } = se(S, () => {
21
+ const { dragHandleProps: Q, dragOffset: O } = se(N, () => {
22
22
  f.current("drag");
23
23
  });
24
- ne(t), re(t, i), y(() => {
24
+ ne(t), re(t, i), g(() => {
25
25
  if (!t) return;
26
26
  const e = (r) => {
27
27
  r.key === "Escape" && (h.current = !0, window.setTimeout(() => {
@@ -30,7 +30,7 @@ var de = 500, Le = ({ dataTest: c, id: T, open: t, onClose: s, title: m, ariaLab
30
30
  }, n = (r) => {
31
31
  if (r.key !== "Escape" || r.defaultPrevented) return;
32
32
  const a = document.activeElement;
33
- a instanceof Element && a.closest("dialog[open]") !== i.current || (r.preventDefault(), r.stopImmediatePropagation(), x(r));
33
+ a instanceof Element && a.closest("dialog[open]") !== i.current || (r.preventDefault(), r.stopImmediatePropagation(), y(r));
34
34
  };
35
35
  return window.addEventListener("keydown", e, !0), window.addEventListener("keydown", n), () => {
36
36
  window.removeEventListener("keydown", e, !0), window.removeEventListener("keydown", n);
@@ -38,78 +38,78 @@ var de = 500, Le = ({ dataTest: c, id: T, open: t, onClose: s, title: m, ariaLab
38
38
  }, [t]), ee({
39
39
  active: t && H,
40
40
  requestClose: () => f.current("escape"),
41
- ownerRef: R
41
+ ownerRef: L
42
42
  }), le(() => {
43
43
  const e = i.current;
44
44
  if (!t || !e) return;
45
- N.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, e.open || e.showModal(), e.focus({ preventScroll: !0 });
45
+ R.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, e.open || e.showModal(), e.focus({ preventScroll: !0 });
46
46
  const n = requestAnimationFrame(() => {
47
- L(!0);
47
+ B(!0);
48
48
  }), r = z(e);
49
49
  return () => {
50
- cancelAnimationFrame(n), r(), L(!1), e.open && e.close();
51
- const a = N.current;
50
+ cancelAnimationFrame(n), r(), B(!1), e.open && e.close();
51
+ const a = R.current;
52
52
  a?.isConnected && a.focus({ preventScroll: !0 });
53
53
  };
54
- }, [t]), y(() => {
54
+ }, [t]), g(() => {
55
55
  const e = i.current;
56
56
  if (!e || !t) return;
57
57
  let n = !1;
58
58
  const r = () => {
59
59
  requestAnimationFrame(() => {
60
- n = !1, B.current && e.isConnected && !e.open && (e.showModal(), e.focus({ preventScroll: !0 }));
60
+ n = !1, C.current && e.isConnected && !e.open && (e.showModal(), e.focus({ preventScroll: !0 }));
61
61
  });
62
62
  }, a = () => {
63
- n || (n = !0, P() && x(), r());
63
+ n || (n = !0, P() && y(), r());
64
64
  };
65
65
  return e.addEventListener("close", a), () => e.removeEventListener("close", a);
66
66
  }, [t]);
67
- const O = oe(te(E, de));
67
+ const I = oe(te(k, de));
68
68
  if (!t) return null;
69
69
  const Y = { close: () => {
70
70
  s("action");
71
- } }, p = (e) => typeof e == "function" ? e(Y) : e, I = E !== void 0, w = g !== void 0 ? p(g) : I ? /* @__PURE__ */ o(j, {
72
- dataTest: `${c}-view-results`,
71
+ } }, p = (e) => typeof e == "function" ? e(Y) : e, D = k !== void 0, b = E !== void 0 ? p(E) : D ? /* @__PURE__ */ o(j, {
72
+ dataTest: `${d}-view-results`,
73
73
  type: "button",
74
74
  variant: "text",
75
75
  onClick: () => {
76
76
  s("viewResults");
77
77
  },
78
- children: O
79
- }) : void 0, D = p($), v = p(A), F = !!(w ?? D), M = C > 0;
78
+ children: I
79
+ }) : void 0, F = p($), v = p(A), w = !!(b ?? F), M = O > 0;
80
80
  return /* @__PURE__ */ o("dialog", {
81
81
  ref: i,
82
82
  id: T,
83
83
  tabIndex: -1,
84
84
  "aria-modal": "true",
85
- "aria-labelledby": m ? k : void 0,
85
+ "aria-labelledby": m ? S : void 0,
86
86
  "aria-label": m ? void 0 : _,
87
- "data-test": c,
88
- "data-testid": c,
87
+ "data-test": d,
88
+ "data-testid": d,
89
89
  onCancel: (e) => {
90
90
  if (e.cancelable && e.preventDefault(), !h.current) {
91
91
  if (!P()) {
92
92
  f.current("escape");
93
93
  return;
94
94
  }
95
- x();
95
+ y();
96
96
  }
97
97
  },
98
- className: d(ae.StyledBottomSheet, "fixed inset-0 m-0 h-full max-h-none w-full max-w-none flex-col items-center justify-end overflow-hidden border-0 bg-transparent p-0 outline-none open:flex"),
98
+ className: l(ae.StyledBottomSheet, "fixed inset-0 m-0 h-full max-h-none w-full max-w-none flex-col items-center justify-end overflow-hidden border-0 bg-transparent p-0 outline-none open:flex"),
99
99
  children: /* @__PURE__ */ u(Z.Provider, {
100
- value: R,
100
+ value: L,
101
101
  children: [/* @__PURE__ */ o("div", {
102
102
  "aria-hidden": "true",
103
- "data-testid": `${c}-scrim`,
103
+ "data-testid": `${d}-scrim`,
104
104
  onClick: () => {
105
105
  s("scrim");
106
106
  },
107
- className: d("absolute inset-0 bg-[#626e7eb2] transition-opacity duration-[250ms] ease-out motion-reduce:duration-150", b ? "opacity-100" : "opacity-0")
107
+ className: l("absolute inset-0 bg-[#626e7eb2] transition-opacity duration-[250ms] ease-out motion-reduce:duration-150", x ? "opacity-100" : "opacity-0")
108
108
  }), /* @__PURE__ */ u("div", {
109
- ref: S,
110
- "data-state": b ? "open" : "closed",
111
- style: M ? { transform: `translateY(${C}px)` } : void 0,
112
- className: d("relative box-border flex w-full max-w-[640px] flex-col border border-solid border-delta-300 bg-white text-delta-700 outline-none", G ? "h-full max-h-none rounded-none" : "max-h-[90dvh] rounded-t-[28px]", !M && ["ease-out motion-safe:transition-transform motion-safe:duration-[250ms] motion-reduce:transition-opacity motion-reduce:duration-150", b ? "translate-y-0 opacity-100" : "motion-safe:translate-y-full motion-reduce:opacity-0"], V),
109
+ ref: N,
110
+ "data-state": x ? "open" : "closed",
111
+ style: M ? { transform: `translateY(${O}px)` } : void 0,
112
+ className: l("relative box-border flex w-full max-w-[640px] flex-col border border-solid border-delta-300 bg-white text-delta-700 outline-none", G ? "h-full max-h-none rounded-none" : "max-h-[90dvh] rounded-t-[28px]", !M && ["ease-out motion-safe:transition-transform motion-safe:duration-[250ms] motion-reduce:transition-opacity motion-reduce:duration-150", x ? "translate-y-0 opacity-100" : "motion-safe:translate-y-full motion-reduce:opacity-0"], V),
113
113
  children: [
114
114
  /* @__PURE__ */ u("div", {
115
115
  className: "border-b-solid shrink-0 border-b border-delta-200 pb-2",
@@ -119,7 +119,7 @@ var de = 500, Le = ({ dataTest: c, id: T, open: t, onClose: s, title: m, ariaLab
119
119
  children: [
120
120
  /* @__PURE__ */ o("div", { className: "min-w-0 flex-1" }),
121
121
  /* @__PURE__ */ o(j, {
122
- dataTest: `${c}-close`,
122
+ dataTest: `${d}-close`,
123
123
  variant: "textGray",
124
124
  type: "button",
125
125
  "aria-label": U,
@@ -140,31 +140,31 @@ var de = 500, Le = ({ dataTest: c, id: T, open: t, onClose: s, title: m, ariaLab
140
140
  })
141
141
  ]
142
142
  }), m && /* @__PURE__ */ o("div", {
143
- id: k,
143
+ id: S,
144
144
  className: "truncate px-4 text-lg font-semibold leading-7 text-delta-800",
145
145
  children: m
146
146
  })]
147
147
  }),
148
148
  /* @__PURE__ */ o("div", {
149
- className: d("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto overscroll-contain pl-4 pr-2 pt-2", F || v ? "pb-2" : "pb-[max(0.5rem,env(safe-area-inset-bottom))]"),
149
+ className: l("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto overscroll-contain pl-4 pr-2 pt-2", w || v ? "pb-2" : "pb-[max(0.5rem,env(safe-area-inset-bottom))]"),
150
150
  children: p(q)
151
151
  }),
152
- F && /* @__PURE__ */ u("div", {
153
- className: d("border-t-solid flex shrink-0 items-start border-t border-delta-200 bg-white p-1", w ? "justify-between" : "justify-end", !v && "pb-[max(0.25rem,env(safe-area-inset-bottom))]"),
152
+ w && /* @__PURE__ */ u("div", {
153
+ className: l("border-t-solid flex shrink-0 items-start border-t border-delta-200 bg-white p-1", b ? "justify-between" : "justify-end", "max-xs:flex-wrap max-xs:gap-y-2 max-xs:[&>:nth-child(2)]:ml-auto", !v && "pb-[max(0.25rem,env(safe-area-inset-bottom))]"),
154
154
  children: [
155
- w,
156
- D,
157
- I && /* @__PURE__ */ o("span", {
155
+ b,
156
+ F,
157
+ D && /* @__PURE__ */ o("span", {
158
158
  className: "sr-only",
159
159
  role: "status",
160
160
  "aria-live": "polite",
161
161
  "aria-atomic": "true",
162
- children: O
162
+ children: I
163
163
  })
164
164
  ]
165
165
  }),
166
166
  v && /* @__PURE__ */ o("div", {
167
- className: "flex shrink-0 flex-col items-end bg-white p-3 pb-[max(0.75rem,env(safe-area-inset-bottom))]",
167
+ className: l("flex shrink-0 flex-col items-end bg-white p-3 pb-[max(0.75rem,env(safe-area-inset-bottom))]", w && "max-xs:pt-1"),
168
168
  children: v
169
169
  })
170
170
  ]
@@ -1,42 +1,42 @@
1
- import { cn as d } from "../../../helpers/cn.js";
2
- import { CloseIcon as c } from "../../icons/close-icon/CloseIcon.js";
3
- import { StyledButton as h } from "../../inputs/button/StyledButton.js";
1
+ import { cn as r } from "../../../helpers/cn.js";
2
+ import { CloseIcon as h } from "../../icons/close-icon/CloseIcon.js";
3
+ import { StyledButton as c } from "../../inputs/button/StyledButton.js";
4
4
  import { useScrollGutter as u } from "./useScrollGutter.js";
5
5
  import { useRef as v } from "react";
6
- import { Fragment as _, jsx as e, jsxs as l } from "react/jsx-runtime";
7
- var g = 40, j = "relative box-border flex flex-col overflow-hidden rounded-lg bg-white text-delta-700 outline-none shadow-[0px_4px_40px_0px_#22213366]", b = "pointer-events-none absolute inset-0 rounded-[inherit] shadow-[inset_0_0_0_1px_var(--colors-delta-300)]", k = ({ dataTest: a, title: t, titleId: m, children: p, viewResultsAction: r, resetAction: o, footerActions: i, closeLabel: f, onClose: x }) => {
8
- const n = v(null), s = u(n);
9
- return /* @__PURE__ */ l(_, { children: [
10
- /* @__PURE__ */ l("div", {
6
+ import { Fragment as g, jsx as e, jsxs as o } from "react/jsx-runtime";
7
+ var _ = 40, j = "relative box-border flex flex-col overflow-hidden rounded-lg bg-white text-delta-700 outline-none shadow-[0px_4px_40px_0px_#22213366]", b = "pointer-events-none absolute inset-0 rounded-[inherit] shadow-[inset_0_0_0_1px_var(--colors-delta-300)]", k = ({ dataTest: s, title: a, titleId: m, children: x, viewResultsAction: t, resetAction: l, footerActions: i, closeLabel: p, onClose: f }) => {
8
+ const n = v(null), d = u(n);
9
+ return /* @__PURE__ */ o(g, { children: [
10
+ /* @__PURE__ */ o("div", {
11
11
  className: "relative flex min-h-0 flex-1 flex-col",
12
- children: [t && /* @__PURE__ */ e("div", {
12
+ children: [a && /* @__PURE__ */ e("div", {
13
13
  id: m,
14
14
  className: "shrink-0 truncate pb-1 pl-4 pr-10 pt-2 text-lg font-semibold leading-7 text-delta-800",
15
- children: t
15
+ children: a
16
16
  }), /* @__PURE__ */ e("div", {
17
17
  ref: n,
18
- className: d("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto py-2 pl-4 [scrollbar-gutter:stable]", !t && s.overflows && "mt-10"),
19
- style: { paddingRight: Math.max(0, g - s.width) },
20
- children: p
18
+ className: r("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto py-2 pl-4 [scrollbar-gutter:stable]", !a && d.overflows && "mt-10"),
19
+ style: { paddingRight: Math.max(0, _ - d.width) },
20
+ children: x
21
21
  })]
22
22
  }),
23
- (r ?? o) && /* @__PURE__ */ l("div", {
24
- className: d("flex shrink-0 items-start p-1", r ? "justify-between" : "justify-end"),
25
- children: [r, o]
23
+ (t ?? l) && /* @__PURE__ */ o("div", {
24
+ className: r("flex shrink-0 items-start p-1", t ? "justify-between" : "justify-end", "max-xs:flex-wrap max-xs:gap-y-2 max-xs:[&>:last-child]:ml-auto"),
25
+ children: [t, l]
26
26
  }),
27
27
  i && /* @__PURE__ */ e("div", {
28
- className: "flex shrink-0 flex-col items-end p-3",
28
+ className: r("flex shrink-0 flex-col items-end p-3", (t ?? l) && "max-xs:pt-1"),
29
29
  children: i
30
30
  }),
31
31
  /* @__PURE__ */ e("div", {
32
32
  className: "absolute right-0 top-0",
33
- children: /* @__PURE__ */ e(h, {
34
- dataTest: `${a}-close`,
33
+ children: /* @__PURE__ */ e(c, {
34
+ dataTest: `${s}-close`,
35
35
  variant: "textGray",
36
36
  type: "button",
37
- "aria-label": f,
38
- onClick: x,
39
- startIcon: /* @__PURE__ */ e(c, {
37
+ "aria-label": p,
38
+ onClick: f,
39
+ startIcon: /* @__PURE__ */ e(h, {
40
40
  width: 24,
41
41
  height: 24
42
42
  })
@@ -44,7 +44,7 @@ var g = 40, j = "relative box-border flex flex-col overflow-hidden rounded-lg bg
44
44
  }),
45
45
  /* @__PURE__ */ e("span", {
46
46
  "aria-hidden": !0,
47
- "data-test": `${a}-edge`,
47
+ "data-test": `${s}-edge`,
48
48
  className: b
49
49
  })
50
50
  ] });
@@ -16,10 +16,11 @@ function e(t) {
16
16
  return o(a, i, u);
17
17
  };
18
18
  }
19
- var h = e("(max-width: 743px)"), s = e("(max-height: 480px)"), c = e("(max-height: 480px) and (min-width: 480px)"), m = e("(max-width: 743px), (max-height: 480px)");
19
+ var h = e("(max-width: 743px)"), s = e("not all and (min-width: 320px)"), x = e("(max-height: 480px)"), c = e("(max-height: 480px) and (min-width: 480px)"), m = e("(max-width: 743px), (max-height: 480px)");
20
20
  export {
21
21
  m as useFullScreenPickerMediaQuery,
22
+ s as useMaxXsMediaQuery,
22
23
  h as useMobileMediaQuery,
23
24
  c as usePickerOneRowHeaderMediaQuery,
24
- s as useShortViewportMediaQuery
25
+ x as useShortViewportMediaQuery
25
26
  };