asma-ui-core 3.108.3 → 3.109.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 (24) hide show
  1. package/dist/asma-ui-core.css +1 -1
  2. package/dist/components/data-display/interactive-chip/StyledInteractiveChip.js +18 -18
  3. package/dist/components/inputs/dynamic-select/components/DynamicInteractiveChipGroup.js +52 -51
  4. package/dist/components/inputs/dynamic-select/components/DynamicSelectAutocomplete.js +66 -65
  5. package/dist/components/inputs/dynamic-select/components/DynamicSelectReadOnlyValue.js +13 -12
  6. package/dist/components/inputs/dynamic-select/components/DynamicSelectTitle.js +9 -0
  7. package/dist/components/inputs/select/StyledSelect.js +56 -50
  8. package/dist/components/inputs/select-autocomplete/StyledSelectAutocomplete.js +102 -96
  9. package/dist/components/navigation/drawer/StyledDrawer.js +55 -51
  10. package/dist/components/utils/bottom-sheet/StyledBottomSheet.js +158 -118
  11. package/dist/components/utils/popover/PopoverSheet.js +95 -85
  12. package/dist/components/utils/popover/StyledPopover.js +81 -71
  13. package/dist/datetime/components/date-picker/StyledDatePicker.js +36 -27
  14. package/dist/datetime/components/date-picker/components/StyledCalendarPicker.js +9 -8
  15. package/dist/datetime/components/time-picker/StyledTimePicker.js +75 -64
  16. package/dist/datetime/hooks/useBackNavigationClose.hook.js +19 -0
  17. package/dist/src/components/inputs/dynamic-select/components/DynamicSelectReadOnlyValue.d.ts +2 -2
  18. package/dist/src/components/inputs/dynamic-select/components/DynamicSelectTitle.d.ts +14 -0
  19. package/dist/src/components/inputs/dynamic-select/types.d.ts +8 -2
  20. package/dist/src/components/navigation/drawer/StyledDrawer.d.ts +2 -0
  21. package/dist/src/components/utils/bottom-sheet/StyledBottomSheet.d.ts +6 -2
  22. package/dist/src/components/utils/popover/StyledPopover.d.ts +3 -1
  23. package/dist/src/datetime/hooks/useBackNavigationClose.hook.d.ts +5 -0
  24. package/package.json +1 -1
@@ -1,16 +1,17 @@
1
- import { cn as c } from "../../../helpers/cn.js";
1
+ import { cn as d } from "../../../helpers/cn.js";
2
2
  import { resolveSx as m } from "../../../helpers/sx.js";
3
- import { TOP_LAYER_PROPS as d, getOpenModalDialogAncestor as O, shouldUsePopoverTopLayer as b } from "../../../hooks/useTopLayer.hook.js";
4
- import { useFocusTrap as T } from "../../../hooks/useFocusTrap.hook.js";
5
- import { useEffect as S, useLayoutEffect as L, useRef as h } from "react";
6
- import { jsx as v, jsxs as k } from "react/jsx-runtime";
7
- import { FloatingPortal as A } from "@floating-ui/react";
8
- var D = {
3
+ import { TOP_LAYER_PROPS as v, getOpenModalDialogAncestor as k, shouldUsePopoverTopLayer as T } from "../../../hooks/useTopLayer.hook.js";
4
+ import { OverlayBackOwnerContext as b, requestCloseTopOverlayBack as S, useBackCloses as L } from "../../../hooks/useBackCloses.hook.js";
5
+ import { useFocusTrap as A } from "../../../hooks/useFocusTrap.hook.js";
6
+ import { useEffect as D, useLayoutEffect as C, useRef as h } from "react";
7
+ import { jsx as n, jsxs as B } from "react/jsx-runtime";
8
+ import { FloatingPortal as N } from "@floating-ui/react";
9
+ var U = {
9
10
  left: "inset-y-0 left-0 h-full",
10
11
  right: "inset-y-0 right-0 h-full",
11
12
  top: "inset-x-0 top-0 w-full",
12
13
  bottom: "inset-x-0 bottom-0 w-full"
13
- }, N = {
14
+ }, F = {
14
15
  left: "-translate-x-full",
15
16
  right: "translate-x-full",
16
17
  top: "-translate-y-full",
@@ -19,11 +20,11 @@ var D = {
19
20
  margin: 0,
20
21
  border: "none",
21
22
  padding: 0
22
- }, U = {
23
+ }, K = {
23
24
  ...y,
24
25
  width: "auto",
25
26
  height: "auto"
26
- }, C = {
27
+ }, M = {
27
28
  left: {
28
29
  right: "auto",
29
30
  width: "auto"
@@ -40,62 +41,65 @@ var D = {
40
41
  top: "auto",
41
42
  height: "auto"
42
43
  }
43
- }, G = ({ open: o = !1, onClose: a, anchor: i = "left", variant: E = "temporary", hideBackdrop: _, className: g, sx: w, PaperProps: l, ModalProps: P, anchorEl: x, children: R }) => {
44
- const e = E === "temporary", f = O(x), s = h(null), n = h(null), r = e && b(f), u = (t) => {
44
+ }, H = ({ open: o = !1, onClose: l, anchor: s = "left", variant: w = "temporary", hideBackdrop: E, className: P, sx: g, PaperProps: f, ModalProps: _, anchorEl: x, registerBackClose: O = !0, children: R }) => {
45
+ const e = w === "temporary", u = k(x), a = h(null), p = h(null), r = e && T(u), c = (t) => {
45
46
  if (!(!t || !o || !r))
46
47
  try {
47
48
  typeof t.showPopover == "function" && !t.matches(":popover-open") && t.showPopover();
48
49
  } catch {
49
50
  }
50
51
  };
51
- return L(() => {
52
+ return C(() => {
52
53
  if (!(!o || !r))
53
- for (const t of [n.current, s.current]) try {
54
+ for (const t of [p.current, a.current]) try {
54
55
  if (!t || typeof t.showPopover != "function") continue;
55
56
  t.matches(":popover-open") && t.hidePopover(), t.showPopover();
56
57
  } catch {
57
58
  }
58
- }, [o, r]), S(() => {
59
+ }, [o, r]), D(() => {
59
60
  if (!o || !e) return;
60
- const t = (p) => {
61
- p.key === "Escape" && a?.(p, "escapeKeyDown");
61
+ const t = (i) => {
62
+ i.key !== "Escape" || i.defaultPrevented || (i.preventDefault(), i.stopImmediatePropagation(), S(i));
62
63
  };
63
- return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
64
- }, [
65
- o,
66
- e,
67
- a
68
- ]), T(o && e, s), e && !o && !P?.keepMounted ? null : /* @__PURE__ */ k(A, {
69
- root: f,
70
- children: [e && !_ && o && /* @__PURE__ */ v("div", {
71
- ref: (t) => {
72
- n.current = t, u(t);
73
- },
74
- ...r ? d : void 0,
75
- className: "fixed inset-0 z-[1200] bg-[#626e7eb2]",
76
- style: r ? U : void 0,
77
- onClick: (t) => a?.(t, "backdropClick")
78
- }), /* @__PURE__ */ v("div", {
79
- ref: (t) => {
80
- s.current = t, u(t);
81
- },
82
- ...r ? d : void 0,
83
- role: e ? "dialog" : void 0,
84
- "aria-modal": e && o ? !0 : void 0,
85
- "aria-hidden": !o,
86
- className: c("fixed z-[1200] overflow-auto bg-white transition-transform duration-300", o && "shadow-[0px_4px_40px_0px_#22213366]", D[i], !o && c(N[i], "pointer-events-none"), g, l?.className),
87
- style: {
88
- ...r && {
89
- ...y,
90
- ...C[i]
64
+ return window.addEventListener("keydown", t), () => window.removeEventListener("keydown", t);
65
+ }, [o, e]), A(o && e, a), L({
66
+ active: o && e && O,
67
+ requestClose: (t) => l ? l(t ?? new Event("overlayBack"), "escapeKeyDown") : !1,
68
+ ownerRef: a
69
+ }), e && !o && !_?.keepMounted ? null : /* @__PURE__ */ n(N, {
70
+ root: u,
71
+ children: /* @__PURE__ */ B(b.Provider, {
72
+ value: a,
73
+ children: [e && !E && o && /* @__PURE__ */ n("div", {
74
+ ref: (t) => {
75
+ p.current = t, c(t);
91
76
  },
92
- ...m(w),
93
- ...m(l?.sx)
94
- },
95
- children: R
96
- })]
77
+ ...r ? v : void 0,
78
+ className: "fixed inset-0 z-[1200] bg-[#626e7eb2]",
79
+ style: r ? K : void 0,
80
+ onClick: (t) => l?.(t, "backdropClick")
81
+ }), /* @__PURE__ */ n("div", {
82
+ ref: (t) => {
83
+ a.current = t, c(t);
84
+ },
85
+ ...r ? v : void 0,
86
+ role: e ? "dialog" : void 0,
87
+ "aria-modal": e && o ? !0 : void 0,
88
+ "aria-hidden": !o,
89
+ className: d("fixed z-[1200] overflow-auto bg-white transition-transform duration-300", o && "shadow-[0px_4px_40px_0px_#22213366]", U[s], !o && d(F[s], "pointer-events-none"), P, f?.className),
90
+ style: {
91
+ ...r && {
92
+ ...y,
93
+ ...M[s]
94
+ },
95
+ ...m(g),
96
+ ...m(f?.sx)
97
+ },
98
+ children: R
99
+ })]
100
+ })
97
101
  });
98
102
  };
99
103
  export {
100
- G as StyledDrawer
104
+ H as StyledDrawer
101
105
  };
@@ -1,137 +1,177 @@
1
- import { cn as n } from "../../../helpers/cn.js";
2
- import { registerOpenModalDialog as A } from "../../../hooks/useTopLayer.hook.js";
3
- import { CloseIcon as H } from "../../icons/close-icon/CloseIcon.js";
4
- import { IndeterminateIcon as q } from "../../icons/indeterminate-icon/IndeterminateIcon.js";
5
- import { StyledButton as I } from "../../inputs/button/StyledButton.js";
6
- import { useShortViewportMediaQuery as G } from "../../../hooks/useMediaQuery.hook.js";
7
- import { useDebouncedValue as P } from "../../../hooks/useDebouncedValue.hook.js";
8
- import { useFocusTrap as Q } from "../../../hooks/useFocusTrap.hook.js";
9
- import { formatResultsLabel as Y } from "./formatResultsLabel.js";
10
- import { useBodyScrollLock as z } from "../../../hooks/useBodyScrollLock.hook.js";
11
- import J from "./StyledBottomSheet.module.js";
12
- import { useDragToDismiss as K } from "./useDragToDismiss.hook.js";
13
- import { useEffect as W, useId as X, useLayoutEffect as Z, useRef as d, useState as ee } from "react";
14
- import { jsx as t, jsxs as i } from "react/jsx-runtime";
15
- var te = 500, xe = ({ dataTest: r, id: D, open: a, onClose: o, title: s, ariaLabel: L, children: j, viewResultsAction: p, resetAction: F, footerActions: M, resultCount: h, closeLabel: _ = "Lukk", className: C }) => {
16
- const b = X(), m = d(null), x = d(null), v = d(null), [u, y] = ee(!1), O = G(), g = d(o);
17
- W(() => {
18
- g.current = o;
19
- }, [o]);
20
- const { dragHandleProps: $, dragOffset: w } = K(x, () => {
21
- g.current("drag");
1
+ import { cn as d } from "../../../helpers/cn.js";
2
+ import { registerOpenModalDialog as z } from "../../../hooks/useTopLayer.hook.js";
3
+ import { CloseIcon as J } from "../../icons/close-icon/CloseIcon.js";
4
+ import { IndeterminateIcon as W } from "../../icons/indeterminate-icon/IndeterminateIcon.js";
5
+ import { StyledButton as j } from "../../inputs/button/StyledButton.js";
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";
8
+ import { useDebouncedValue as te } from "../../../hooks/useDebouncedValue.hook.js";
9
+ import { useFocusTrap as re } from "../../../hooks/useFocusTrap.hook.js";
10
+ import { formatResultsLabel as oe } from "./formatResultsLabel.js";
11
+ import { useBodyScrollLock as ne } from "../../../hooks/useBodyScrollLock.hook.js";
12
+ import ae from "./StyledBottomSheet.module.js";
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";
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;
20
+ }, [s, t]);
21
+ const { dragHandleProps: Q, dragOffset: C } = se(S, () => {
22
+ f.current("drag");
22
23
  });
23
- z(a), Q(a, m), Z(() => {
24
- const e = m.current;
25
- if (!a || !e) return;
26
- v.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, e.open || e.showModal(), e.focus({ preventScroll: !0 });
27
- const U = requestAnimationFrame(() => {
28
- y(!0);
29
- }), V = A(e);
24
+ ne(t), re(t, i), y(() => {
25
+ if (!t) return;
26
+ const e = (r) => {
27
+ r.key === "Escape" && (h.current = !0, window.setTimeout(() => {
28
+ h.current = !1;
29
+ }, 0));
30
+ }, n = (r) => {
31
+ if (r.key !== "Escape" || r.defaultPrevented) return;
32
+ const a = document.activeElement;
33
+ a instanceof Element && a.closest("dialog[open]") !== i.current || (r.preventDefault(), r.stopImmediatePropagation(), x(r));
34
+ };
35
+ return window.addEventListener("keydown", e, !0), window.addEventListener("keydown", n), () => {
36
+ window.removeEventListener("keydown", e, !0), window.removeEventListener("keydown", n);
37
+ };
38
+ }, [t]), ee({
39
+ active: t && H,
40
+ requestClose: () => f.current("escape"),
41
+ ownerRef: R
42
+ }), le(() => {
43
+ const e = i.current;
44
+ if (!t || !e) return;
45
+ N.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, e.open || e.showModal(), e.focus({ preventScroll: !0 });
46
+ const n = requestAnimationFrame(() => {
47
+ L(!0);
48
+ }), r = z(e);
30
49
  return () => {
31
- cancelAnimationFrame(U), V(), y(!1), e.open && e.close();
32
- const E = v.current;
33
- E?.isConnected && E.focus({ preventScroll: !0 });
50
+ cancelAnimationFrame(n), r(), L(!1), e.open && e.close();
51
+ const a = N.current;
52
+ a?.isConnected && a.focus({ preventScroll: !0 });
53
+ };
54
+ }, [t]), y(() => {
55
+ const e = i.current;
56
+ if (!e || !t) return;
57
+ let n = !1;
58
+ const r = () => {
59
+ requestAnimationFrame(() => {
60
+ n = !1, B.current && e.isConnected && !e.open && (e.showModal(), e.focus({ preventScroll: !0 }));
61
+ });
62
+ }, a = () => {
63
+ n || (n = !0, P() && x(), r());
34
64
  };
35
- }, [a]);
36
- const S = Y(P(h, te));
37
- if (!a) return null;
38
- const T = { close: () => {
39
- o("action");
40
- } }, l = (e) => typeof e == "function" ? e(T) : e, N = h !== void 0, f = p !== void 0 ? l(p) : N ? /* @__PURE__ */ t(I, {
41
- dataTest: `${r}-view-results`,
65
+ return e.addEventListener("close", a), () => e.removeEventListener("close", a);
66
+ }, [t]);
67
+ const O = oe(te(E, de));
68
+ if (!t) return null;
69
+ const Y = { close: () => {
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`,
42
73
  type: "button",
43
74
  variant: "text",
44
75
  onClick: () => {
45
- o("viewResults");
76
+ s("viewResults");
46
77
  },
47
- children: S
48
- }) : void 0, k = l(F), c = l(M), R = !!(f ?? k), B = w > 0;
49
- return /* @__PURE__ */ i("dialog", {
50
- ref: m,
51
- id: D,
78
+ children: O
79
+ }) : void 0, D = p($), v = p(A), F = !!(w ?? D), M = C > 0;
80
+ return /* @__PURE__ */ o("dialog", {
81
+ ref: i,
82
+ id: T,
52
83
  tabIndex: -1,
53
84
  "aria-modal": "true",
54
- "aria-labelledby": s ? b : void 0,
55
- "aria-label": s ? void 0 : L,
56
- "data-test": r,
57
- "data-testid": r,
85
+ "aria-labelledby": m ? k : void 0,
86
+ "aria-label": m ? void 0 : _,
87
+ "data-test": c,
88
+ "data-testid": c,
58
89
  onCancel: (e) => {
59
- e.preventDefault(), o("escape");
90
+ if (e.cancelable && e.preventDefault(), !h.current) {
91
+ if (!P()) {
92
+ f.current("escape");
93
+ return;
94
+ }
95
+ x();
96
+ }
60
97
  },
61
- className: n(J.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"),
62
- children: [/* @__PURE__ */ t("div", {
63
- "aria-hidden": "true",
64
- "data-testid": `${r}-scrim`,
65
- onClick: () => {
66
- o("scrim");
67
- },
68
- className: n("absolute inset-0 bg-[#626e7eb2] transition-opacity duration-[250ms] ease-out motion-reduce:duration-150", u ? "opacity-100" : "opacity-0")
69
- }), /* @__PURE__ */ i("div", {
70
- ref: x,
71
- "data-state": u ? "open" : "closed",
72
- style: B ? { transform: `translateY(${w}px)` } : void 0,
73
- className: n("relative box-border flex w-full max-w-[640px] flex-col border border-solid border-delta-300 bg-white text-delta-700 outline-none", O ? "h-full max-h-none rounded-none" : "max-h-[90dvh] rounded-t-[28px]", !B && ["ease-out motion-safe:transition-transform motion-safe:duration-[250ms] motion-reduce:transition-opacity motion-reduce:duration-150", u ? "translate-y-0 opacity-100" : "motion-safe:translate-y-full motion-reduce:opacity-0"], C),
74
- children: [
75
- /* @__PURE__ */ i("div", {
76
- className: "border-b-solid shrink-0 border-b border-delta-200 pb-2",
77
- children: [/* @__PURE__ */ i("div", {
78
- ...$,
79
- className: "relative flex h-12 touch-none items-center gap-2 px-2",
80
- children: [
81
- /* @__PURE__ */ t("div", { className: "min-w-0 flex-1" }),
82
- /* @__PURE__ */ t(I, {
83
- dataTest: `${r}-close`,
84
- variant: "textGray",
85
- type: "button",
86
- "aria-label": _,
87
- onClick: () => {
88
- o("closeButton");
89
- },
90
- startIcon: /* @__PURE__ */ t(H, {
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"),
99
+ children: /* @__PURE__ */ u(Z.Provider, {
100
+ value: R,
101
+ children: [/* @__PURE__ */ o("div", {
102
+ "aria-hidden": "true",
103
+ "data-testid": `${c}-scrim`,
104
+ onClick: () => {
105
+ s("scrim");
106
+ },
107
+ className: d("absolute inset-0 bg-[#626e7eb2] transition-opacity duration-[250ms] ease-out motion-reduce:duration-150", b ? "opacity-100" : "opacity-0")
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),
113
+ children: [
114
+ /* @__PURE__ */ u("div", {
115
+ className: "border-b-solid shrink-0 border-b border-delta-200 pb-2",
116
+ children: [/* @__PURE__ */ u("div", {
117
+ ...Q,
118
+ className: "relative flex h-12 touch-none items-center gap-2 px-2",
119
+ children: [
120
+ /* @__PURE__ */ o("div", { className: "min-w-0 flex-1" }),
121
+ /* @__PURE__ */ o(j, {
122
+ dataTest: `${c}-close`,
123
+ variant: "textGray",
124
+ type: "button",
125
+ "aria-label": U,
126
+ onClick: () => {
127
+ s("closeButton");
128
+ },
129
+ startIcon: /* @__PURE__ */ o(J, {
130
+ width: 24,
131
+ height: 24
132
+ })
133
+ }),
134
+ /* @__PURE__ */ o(W, {
135
+ "aria-hidden": "true",
136
+ focusable: "false",
91
137
  width: 24,
92
- height: 24
138
+ height: 24,
139
+ className: "pointer-events-none absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-delta-800"
93
140
  })
94
- }),
95
- /* @__PURE__ */ t(q, {
96
- "aria-hidden": "true",
97
- focusable: "false",
98
- width: 24,
99
- height: 24,
100
- className: "pointer-events-none absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-delta-800"
141
+ ]
142
+ }), m && /* @__PURE__ */ o("div", {
143
+ id: k,
144
+ className: "truncate px-4 text-lg font-semibold leading-7 text-delta-800",
145
+ children: m
146
+ })]
147
+ }),
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))]"),
150
+ children: p(q)
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))]"),
154
+ children: [
155
+ w,
156
+ D,
157
+ I && /* @__PURE__ */ o("span", {
158
+ className: "sr-only",
159
+ role: "status",
160
+ "aria-live": "polite",
161
+ "aria-atomic": "true",
162
+ children: O
101
163
  })
102
164
  ]
103
- }), s && /* @__PURE__ */ t("div", {
104
- id: b,
105
- className: "truncate px-4 text-lg font-semibold leading-7 text-delta-800",
106
- children: s
107
- })]
108
- }),
109
- /* @__PURE__ */ t("div", {
110
- className: n("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto overscroll-contain pl-4 pr-2 pt-2", R || c ? "pb-2" : "pb-[max(0.5rem,env(safe-area-inset-bottom))]"),
111
- children: l(j)
112
- }),
113
- R && /* @__PURE__ */ i("div", {
114
- className: n("border-t-solid flex shrink-0 items-start border-t border-delta-200 bg-white p-1", f ? "justify-between" : "justify-end", !c && "pb-[max(0.25rem,env(safe-area-inset-bottom))]"),
115
- children: [
116
- f,
117
- k,
118
- N && /* @__PURE__ */ t("span", {
119
- className: "sr-only",
120
- role: "status",
121
- "aria-live": "polite",
122
- "aria-atomic": "true",
123
- children: S
124
- })
125
- ]
126
- }),
127
- c && /* @__PURE__ */ t("div", {
128
- className: "flex shrink-0 flex-col items-end bg-white p-3 pb-[max(0.75rem,env(safe-area-inset-bottom))]",
129
- children: c
130
- })
131
- ]
132
- })]
165
+ }),
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))]",
168
+ children: v
169
+ })
170
+ ]
171
+ })]
172
+ })
133
173
  });
134
174
  };
135
175
  export {
136
- xe as StyledBottomSheet
176
+ Le as StyledBottomSheet
137
177
  };