asma-ui-core 3.121.6 → 3.122.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/dist/asma-ui-core.css +1 -1
- package/dist/components/custom/module/header-layout/ToolbarRows.js +64 -60
- package/dist/components/custom/widget/widget/StyledWidget.js +44 -37
- package/dist/components/custom/widget/widget-header/StyledWidgetHeader.js +7 -7
- package/dist/components/custom/widget/widget-title/StyledWidgetTitle.js +8 -8
- package/dist/components/data-display/chip/StyledChip.js +42 -42
- package/dist/components/data-display/form-label/components/StyledFormLabel.js +15 -15
- package/dist/components/feedback/dialog/StyledDialog.js +75 -75
- package/dist/components/feedback/dialog/StyledDialogActions.js +4 -4
- package/dist/components/feedback/dialog/StyledDialogTitle.js +13 -13
- package/dist/components/feedback/dialog/dialog-footer/StyledDialogFooter.js +70 -69
- package/dist/components/feedback/minimizable-dialog/MinimizableDialog.js +69 -69
- package/dist/components/feedback/minimizable-dialog/v2/MinimizableDialogV2.js +81 -81
- package/dist/components/feedback/snack-bar/StyledAlert.js +16 -16
- package/dist/components/inputs/button/StyledButton.js +36 -35
- package/dist/components/inputs/input-field/StyledInputField.js +38 -38
- package/dist/components/inputs/search-field/StyledSearchField.js +18 -17
- package/dist/components/miscellaneous/StyledFormControlLabel.js +13 -13
- package/dist/components/navigation/link/StyledLink.js +44 -44
- package/dist/components/navigation/title-chevron/StyledTitleChevron.js +13 -13
- package/dist/components/utils/bottom-sheet/StyledBottomSheet.js +45 -45
- package/dist/components/utils/popover/PopoverAnatomy.js +23 -23
- package/dist/hooks/useMediaQuery.hook.js +3 -2
- package/dist/src/components/custom/module/header-layout/ToolbarRows.d.ts +3 -1
- package/dist/src/hooks/useMediaQuery.hook.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { cn as
|
|
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
|
|
4
|
-
var
|
|
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
|
-
},
|
|
8
|
+
}, r = {
|
|
9
9
|
base: 20,
|
|
10
10
|
medium: 24,
|
|
11
11
|
subtitle: 28
|
|
12
|
-
},
|
|
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:
|
|
18
|
-
children: [/* @__PURE__ */
|
|
19
|
-
className: "min-w-0 truncate",
|
|
20
|
-
children:
|
|
21
|
-
}), /* @__PURE__ */
|
|
22
|
-
width:
|
|
23
|
-
height:
|
|
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
|
-
|
|
29
|
+
h as StyledTitleChevron
|
|
30
30
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { cn as
|
|
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
|
|
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
|
|
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:
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
f.current = s,
|
|
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:
|
|
21
|
+
const { dragHandleProps: Q, dragOffset: O } = se(N, () => {
|
|
22
22
|
f.current("drag");
|
|
23
23
|
});
|
|
24
|
-
ne(t), re(t, i),
|
|
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(),
|
|
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:
|
|
41
|
+
ownerRef: L
|
|
42
42
|
}), le(() => {
|
|
43
43
|
const e = i.current;
|
|
44
44
|
if (!t || !e) return;
|
|
45
|
-
|
|
45
|
+
R.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, e.open || e.showModal(), e.focus({ preventScroll: !0 });
|
|
46
46
|
const n = requestAnimationFrame(() => {
|
|
47
|
-
|
|
47
|
+
B(!0);
|
|
48
48
|
}), r = z(e);
|
|
49
49
|
return () => {
|
|
50
|
-
cancelAnimationFrame(n), r(),
|
|
51
|
-
const a =
|
|
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]),
|
|
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,
|
|
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() &&
|
|
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
|
|
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,
|
|
72
|
-
dataTest: `${
|
|
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:
|
|
79
|
-
}) : void 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 ?
|
|
85
|
+
"aria-labelledby": m ? S : void 0,
|
|
86
86
|
"aria-label": m ? void 0 : _,
|
|
87
|
-
"data-test":
|
|
88
|
-
"data-testid":
|
|
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
|
-
|
|
95
|
+
y();
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
|
-
className:
|
|
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:
|
|
100
|
+
value: L,
|
|
101
101
|
children: [/* @__PURE__ */ o("div", {
|
|
102
102
|
"aria-hidden": "true",
|
|
103
|
-
"data-testid": `${
|
|
103
|
+
"data-testid": `${d}-scrim`,
|
|
104
104
|
onClick: () => {
|
|
105
105
|
s("scrim");
|
|
106
106
|
},
|
|
107
|
-
className:
|
|
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:
|
|
110
|
-
"data-state":
|
|
111
|
-
style: M ? { transform: `translateY(${
|
|
112
|
-
className:
|
|
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: `${
|
|
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:
|
|
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:
|
|
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
|
-
|
|
153
|
-
className:
|
|
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
|
-
|
|
156
|
-
|
|
157
|
-
|
|
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:
|
|
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
|
|
2
|
-
import { CloseIcon as
|
|
3
|
-
import { StyledButton as
|
|
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
|
|
7
|
-
var
|
|
8
|
-
const n = v(null),
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
-
/* @__PURE__ */
|
|
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: [
|
|
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:
|
|
15
|
+
children: a
|
|
16
16
|
}), /* @__PURE__ */ e("div", {
|
|
17
17
|
ref: n,
|
|
18
|
-
className:
|
|
19
|
-
style: { paddingRight: Math.max(0,
|
|
20
|
-
children:
|
|
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
|
-
(
|
|
24
|
-
className:
|
|
25
|
-
children: [
|
|
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(
|
|
34
|
-
dataTest: `${
|
|
33
|
+
children: /* @__PURE__ */ e(c, {
|
|
34
|
+
dataTest: `${s}-close`,
|
|
35
35
|
variant: "textGray",
|
|
36
36
|
type: "button",
|
|
37
|
-
"aria-label":
|
|
38
|
-
onClick:
|
|
39
|
-
startIcon: /* @__PURE__ */ e(
|
|
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": `${
|
|
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
|
-
|
|
25
|
+
x as useShortViewportMediaQuery
|
|
25
26
|
};
|
|
@@ -29,8 +29,10 @@ export declare function SearchSlot({ search, expanded, measureRef, }: {
|
|
|
29
29
|
measureRef?: MeasureRef;
|
|
30
30
|
}): JSX.Element;
|
|
31
31
|
/** Keeps children mounted while hidden so slots fade instead of popping. */
|
|
32
|
-
export declare function FadeSlot({ visible, children }: {
|
|
32
|
+
export declare function FadeSlot({ visible, flattenBelowXs, children, }: {
|
|
33
33
|
visible: boolean;
|
|
34
|
+
/** Below xs, drops both wrappers so each child wraps as its own item of the parent row. */
|
|
35
|
+
flattenBelowXs?: boolean;
|
|
34
36
|
children: ReactNode;
|
|
35
37
|
}): JSX.Element;
|
|
36
38
|
export declare function TitleText({ title, measureRef }: {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare function makeMediaQueryStore(mediaQuery: string): () => boolean;
|
|
2
2
|
export declare const useMobileMediaQuery: () => boolean;
|
|
3
|
+
/** Narrower than any phone — the same query as the `max-xs:` Tailwind variant (tailwind.config.ts). */
|
|
4
|
+
export declare const useMaxXsMediaQuery: () => boolean;
|
|
3
5
|
/** A phone in landscape: too short for a sheet capped at 90vh to leave a usable body. */
|
|
4
6
|
export declare const useShortViewportMediaQuery: () => boolean;
|
|
5
7
|
/**
|