@pibit.ai/cure-design-system 0.6.26 → 0.6.28

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 (30) hide show
  1. package/dist/hooks/use-escape-layer.d.ts +10 -0
  2. package/dist/hooks/use-escape-layer.d.ts.map +1 -0
  3. package/dist/hooks/use-escape-layer.js +35 -0
  4. package/dist/patterns/alert/alert.d.ts +1 -2
  5. package/dist/patterns/alert/alert.d.ts.map +1 -1
  6. package/dist/patterns/alert/alert.js +22 -22
  7. package/dist/patterns/drawer/drawer.d.ts.map +1 -1
  8. package/dist/patterns/drawer/drawer.js +104 -93
  9. package/dist/patterns/empty-state/empty-state.d.ts +2 -1
  10. package/dist/patterns/empty-state/empty-state.d.ts.map +1 -1
  11. package/dist/patterns/empty-state/empty-state.js +16 -16
  12. package/dist/patterns/expandable-drawer/expandable-drawer.d.ts.map +1 -1
  13. package/dist/patterns/expandable-drawer/expandable-drawer.js +43 -40
  14. package/dist/patterns/filters/checklist-select.js +36 -36
  15. package/dist/patterns/filters/filter-list-section.d.ts.map +1 -1
  16. package/dist/patterns/filters/filter-list-section.js +30 -30
  17. package/dist/patterns/filters/status-filter-dropdown.d.ts.map +1 -1
  18. package/dist/patterns/filters/status-filter-dropdown.js +83 -74
  19. package/dist/patterns/modal/modal-wrapper.d.ts.map +1 -1
  20. package/dist/patterns/modal/modal-wrapper.js +32 -46
  21. package/dist/patterns/sub-sidebar/sub-sidebar.d.ts.map +1 -1
  22. package/dist/patterns/sub-sidebar/sub-sidebar.js +93 -86
  23. package/dist/patterns/tabs/tabs.d.ts.map +1 -1
  24. package/dist/patterns/tabs/tabs.js +33 -36
  25. package/dist/patterns/tree-view/indented-tree.d.ts.map +1 -1
  26. package/dist/patterns/tree-view/indented-tree.js +136 -118
  27. package/dist/primitives/featured-icon/featured-icon.d.ts +2 -1
  28. package/dist/primitives/featured-icon/featured-icon.d.ts.map +1 -1
  29. package/dist/styles/components.css +1 -1
  30. package/package.json +1 -1
@@ -0,0 +1,10 @@
1
+ /** Wrap a layer's children in this, with the depth `useEscapeLayer` returned, so layers inside it nest. */
2
+ export declare const EscapeLayerProvider: import('react').Provider<number>;
3
+ /**
4
+ * While `isActive`, registers this overlay for Escape; Escape then calls `onEscape` when this is the
5
+ * innermost open layer. Pass `onEscape: null` for a layer that must swallow Escape without closing
6
+ * (a non-dismissable modal). The callback is read through a ref, so an inline function is fine.
7
+ * Returns this layer's depth for `EscapeLayerProvider`.
8
+ */
9
+ export declare function useEscapeLayer(isActive: boolean, onEscape: (() => void) | null): number;
10
+ //# sourceMappingURL=use-escape-layer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-escape-layer.d.ts","sourceRoot":"","sources":["../../src/hooks/use-escape-layer.ts"],"names":[],"mappings":"AA0BA,2GAA2G;AAC3G,eAAO,MAAM,mBAAmB,kCAA4B,CAAC;AAE7D;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,GAAG,MAAM,CAsBvF"}
@@ -0,0 +1,35 @@
1
+ import { createContext as l, useContext as p, useRef as f, useEffect as a } from "react";
2
+ const s = [];
3
+ let h = 0, u = !1;
4
+ const y = () => {
5
+ u || typeof document > "u" || (document.addEventListener("keydown", (r) => {
6
+ if (r.key !== "Escape" || s.length === 0 || r.defaultPrevented) return;
7
+ s.reduce((t, e) => e.depth > t.depth || e.depth === t.depth && e.order > t.order ? e : t).close();
8
+ }), u = !0);
9
+ }, i = l(0), m = i.Provider;
10
+ function x(r, o) {
11
+ const t = p(i) + 1, e = f(o);
12
+ e.current = o;
13
+ const c = o !== null;
14
+ return a(() => {
15
+ if (!r) return;
16
+ y();
17
+ const d = {
18
+ close: c ? () => {
19
+ var n;
20
+ return (n = e.current) == null ? void 0 : n.call(e);
21
+ } : () => {
22
+ },
23
+ depth: t,
24
+ order: ++h
25
+ };
26
+ return s.push(d), () => {
27
+ const n = s.indexOf(d);
28
+ n >= 0 && s.splice(n, 1);
29
+ };
30
+ }, [r, c, t]), t;
31
+ }
32
+ export {
33
+ m as EscapeLayerProvider,
34
+ x as useEscapeLayer
35
+ };
@@ -13,8 +13,7 @@ export interface AlertFloatingProps {
13
13
  */
14
14
  confirmLabel?: string;
15
15
  /**
16
- * The label for the dismiss button.
17
- * @default "Dismiss"
16
+ * The label for the dismiss link button. Without one, only the X is shown; it is then named "Dismiss".
18
17
  */
19
18
  dismissLabel?: string;
20
19
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/patterns/alert/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AA+C3C,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;IAC3F;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,IAAI,CAAC,EAAE,EAAE,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,SAAS,CAAC;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,GAAI,iGAU3B,kBAAkB,4CA+CpB,CAAC"}
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/patterns/alert/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AA+C3C,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;IAC3F;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,IAAI,CAAC,EAAE,EAAE,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,SAAS,CAAC;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,GAAI,iGAU3B,kBAAkB,4CA+CpB,CAAC"}
@@ -1,17 +1,17 @@
1
1
  import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
2
  import { isValidElement as g } from "react";
3
- import { InfoCircle as l, CheckCircle as u, AlertCircle as o } from "@untitledui/icons";
4
- import { cx as b } from "../../utils/cn.js";
5
- import { FeaturedIcon as p } from "../../primitives/featured-icon/featured-icon.js";
6
- import { Button as d } from "../../primitives/button/button.js";
3
+ import { InfoCircle as l, CheckCircle as u, AlertCircle as d } from "@untitledui/icons";
4
+ import { cx as p } from "../../utils/cn.js";
5
+ import { FeaturedIcon as b } from "../../primitives/featured-icon/featured-icon.js";
6
+ import { Button as f } from "../../primitives/button/button.js";
7
7
  import { CloseButton as y } from "../../primitives/close-button/close-button.js";
8
8
  const h = {
9
9
  default: l,
10
10
  info: l,
11
11
  brand: l,
12
12
  gray: l,
13
- error: o,
14
- warning: o,
13
+ error: d,
14
+ warning: d,
15
15
  success: u,
16
16
  notice: l
17
17
  }, v = {
@@ -33,44 +33,44 @@ const h = {
33
33
  success: "text-green-800",
34
34
  notice: "text-[#F7F7F7]"
35
35
  }, A = ({
36
- title: f,
37
- description: s,
38
- confirmLabel: m,
36
+ title: m,
37
+ description: o,
38
+ confirmLabel: a,
39
39
  onClose: r,
40
- onConfirm: n,
40
+ onConfirm: c,
41
41
  color: e = "default",
42
- dismissLabel: c = "",
43
- icon: a = null,
42
+ dismissLabel: n = "",
43
+ icon: s = null,
44
44
  className: x = ""
45
45
  }) => /* @__PURE__ */ i(
46
46
  "div",
47
47
  {
48
- className: b(
48
+ className: p(
49
49
  `${e ? v[e] : "bg-blue-50"} flex flex-col justify-between items-center gap-4 rounded-xl border border-primary p-2.5 shadow-xs md:flex-row`,
50
50
  x
51
51
  ),
52
52
  children: [
53
53
  /* @__PURE__ */ i("div", { className: "flex items-center justify-center gap-4", children: [
54
- g(a) ? /* @__PURE__ */ t("div", { className: "flex items-center justify-center", children: a }) : /* @__PURE__ */ t(
55
- p,
54
+ g(s) ? /* @__PURE__ */ t("div", { className: "flex items-center justify-center", children: s }) : /* @__PURE__ */ t(
55
+ b,
56
56
  {
57
- icon: a || h[e],
57
+ icon: s || h[e],
58
58
  color: e === "default" || e === "info" ? "gray" : e === "notice" ? "brand" : e,
59
59
  theme: e === "default" || e === "info" ? "modern" : "outline",
60
60
  size: "sm"
61
61
  }
62
62
  ),
63
63
  /* @__PURE__ */ t("div", { className: "flex justify-center items-center flex-1 flex-col", children: /* @__PURE__ */ i("div", { className: "flex items-center justify-center flex-col gap-1 overflow-auto", children: [
64
- /* @__PURE__ */ t("p", { className: `${w[e]} pr-8 text-sm font-semibold md:pr-0`, children: f }),
65
- s && /* @__PURE__ */ t("p", { className: "text-sm text-tertiary", children: s })
64
+ /* @__PURE__ */ t("p", { className: `${w[e]} pr-8 text-sm font-semibold md:pr-0`, children: m }),
65
+ o && /* @__PURE__ */ t("p", { className: "text-sm text-tertiary", children: o })
66
66
  ] }) })
67
67
  ] }),
68
68
  /* @__PURE__ */ i("div", { className: "flex items-center justify-center gap-2", children: [
69
- (n || r) && /* @__PURE__ */ i("div", { className: "flex gap-3", children: [
70
- r && /* @__PURE__ */ t(d, { size: "xs", onClick: r, color: "link-gray", children: c }),
71
- n && /* @__PURE__ */ t(d, { onClick: n, size: "xs", color: "link-color", children: m })
69
+ (c && a || r && n) && /* @__PURE__ */ i("div", { className: "flex gap-3", children: [
70
+ r && n && /* @__PURE__ */ t(f, { size: "xs", onClick: r, color: "link-gray", children: n }),
71
+ c && a && /* @__PURE__ */ t(f, { onClick: c, size: "xs", color: "link-color", children: a })
72
72
  ] }),
73
- r && /* @__PURE__ */ t(y, { onClick: r, size: "xs", label: c })
73
+ r && /* @__PURE__ */ t(y, { onClick: r, size: "xs", label: n || "Dismiss" })
74
74
  ] })
75
75
  ]
76
76
  }
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/patterns/drawer/drawer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmC,MAAM,OAAO,CAAC;AAWxD,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,8GAA8G;IAC9G,MAAM,CAAC,EAA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cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,sBAAsB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,0CAA0C;IAC1C,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA6QxC,CAAC"}
@@ -1,150 +1,161 @@
1
- import { jsxs as l, Fragment as lt, jsx as r } from "react/jsx-runtime";
2
- import { Minimize01 as P, Expand01 as j, X as it } from "@untitledui/icons";
3
- import { useId as ct, useRef as nt, useEffect as dt } from "react";
4
- import { ClickAwayListener as ut } from "../click-away/click-away-listener.js";
5
- const xt = ({
6
- isOpen: s,
7
- onClose: k,
8
- title: v,
9
- subtitle: $,
10
- children: L,
11
- width: X = "max-w-lg",
12
- footer: q,
13
- showDefaultFooter: E = !1,
14
- className: A = "",
15
- side: n = "right",
16
- style: _,
17
- leftOffset: h = 0,
18
- headerClassName: K = "",
19
- bodyClassName: T = "",
1
+ import { jsxs as l, Fragment as dt, jsx as e } from "react/jsx-runtime";
2
+ import { Minimize01 as M, Expand01 as j, X as ut } from "@untitledui/icons";
3
+ import { useId as mt, useRef as X, useEffect as q } from "react";
4
+ import { useEscapeLayer as ft, EscapeLayerProvider as vt } from "../../hooks/use-escape-layer.js";
5
+ import { ClickAwayListener as yt } from "../click-away/click-away-listener.js";
6
+ const kt = ({
7
+ isOpen: o,
8
+ onClose: y,
9
+ title: p,
10
+ subtitle: I,
11
+ children: A,
12
+ width: _ = "max-w-lg",
13
+ footer: K,
14
+ showDefaultFooter: T = !1,
15
+ className: B = "",
16
+ side: i = "right",
17
+ style: U,
18
+ leftOffset: $ = 0,
19
+ headerClassName: V = "",
20
+ bodyClassName: Y = "",
20
21
  header: d = null,
21
- onClickOutside: U,
22
- showBackDrop: B = !1,
23
- footerClassName: V = "",
24
- expanded: i = !1,
22
+ onClickOutside: G,
23
+ showBackDrop: H = !1,
24
+ footerClassName: J = "",
25
+ expanded: c = !1,
25
26
  onExpandedChange: u,
26
- maxWidth: I = "90vw",
27
- resizableWidth: e,
28
- minResizableWidth: p = 476,
29
- maxResizableWidth: Y,
30
- onResizableWidthChange: o,
31
- headerActions: G,
32
- fullscreenOpen: x = !1,
27
+ maxWidth: h = "90vw",
28
+ resizableWidth: s,
29
+ minResizableWidth: x = 476,
30
+ maxResizableWidth: Q,
31
+ onResizableWidthChange: a,
32
+ headerActions: Z,
33
+ fullscreenOpen: b = !1,
33
34
  onFullscreenOpenChange: m,
34
- "data-testid": H
35
+ "data-testid": F
35
36
  }) => {
36
- const f = u !== void 0, J = m !== void 0, y = e !== void 0 && o !== void 0, b = Math.max(Y ?? Number.POSITIVE_INFINITY, p), w = s && y, N = (t) => Math.min(Math.max(t, p), b), S = ct(), c = nt(null);
37
- dt(() => () => {
37
+ const f = u !== void 0, z = m !== void 0, v = s !== void 0 && a !== void 0, w = Math.max(Q ?? Number.POSITIVE_INFINITY, x), N = o && v, g = (t) => Math.min(Math.max(t, x), w), E = mt(), S = X(null), C = ft(o, y);
38
+ q(() => {
39
+ if (!o) return;
40
+ const t = document.activeElement, r = S.current;
41
+ return r && !r.contains(document.activeElement) && r.focus({ preventScroll: !0 }), () => {
42
+ (!document.activeElement || document.activeElement === document.body || !!(r != null && r.contains(document.activeElement))) && (t != null && t.isConnected) && t.focus({ preventScroll: !0 });
43
+ };
44
+ }, [o]);
45
+ const n = X(null);
46
+ q(() => () => {
38
47
  var t;
39
- return (t = c.current) == null ? void 0 : t.call(c);
48
+ return (t = n.current) == null ? void 0 : t.call(n);
40
49
  }, []);
41
- const Q = (t) => {
42
- if (!w || e === void 0) return;
50
+ const R = (t) => {
51
+ if (!N || s === void 0) return;
43
52
  t.preventDefault(), t.stopPropagation();
44
- const a = t.clientX, et = e, ot = document.body.style.cursor, st = document.body.style.userSelect;
53
+ const r = t.clientX, D = s, ct = document.body.style.cursor, nt = document.body.style.userSelect;
45
54
  document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
46
- const M = (at) => {
47
- o == null || o(N(et + a - at.clientX));
48
- }, g = () => {
49
- document.body.style.cursor = ot, document.body.style.userSelect = st, window.removeEventListener("pointermove", M), window.removeEventListener("pointerup", g), c.current = null;
55
+ const P = (it) => {
56
+ a == null || a(g(D + r - it.clientX));
57
+ }, k = () => {
58
+ document.body.style.cursor = ct, document.body.style.userSelect = nt, window.removeEventListener("pointermove", P), window.removeEventListener("pointerup", k), n.current = null;
50
59
  };
51
- c.current = g, window.addEventListener("pointermove", M), window.addEventListener("pointerup", g);
52
- }, Z = (t) => {
53
- if (!w || e === void 0) return;
54
- const a = t.shiftKey ? 50 : 16;
55
- t.key === "ArrowLeft" && (t.preventDefault(), o == null || o(N(e + a))), t.key === "ArrowRight" && (t.preventDefault(), o == null || o(N(e - a)));
56
- }, F = n === "left" ? s ? "left-4" : "left-0" : s ? "right-[6px]" : "right-0", D = n === "left" && h > 0, z = (() => {
57
- const t = { ..._ };
58
- if (D) {
59
- const a = s ? `${h}px` : "calc(-100%)";
60
- t.transform = `translateX(${a})`;
60
+ n.current = k, window.addEventListener("pointermove", P), window.addEventListener("pointerup", k);
61
+ }, O = (t) => {
62
+ if (!N || s === void 0) return;
63
+ const r = t.shiftKey ? 50 : 16;
64
+ t.key === "ArrowLeft" && (t.preventDefault(), a == null || a(g(s + r))), t.key === "ArrowRight" && (t.preventDefault(), a == null || a(g(s - r)));
65
+ }, W = i === "left" ? o ? "left-4" : "left-0" : o ? "right-[6px]" : "right-0", L = i === "left" && $ > 0, tt = (() => {
66
+ const t = { ...U };
67
+ if (L) {
68
+ const r = o ? `${$}px` : "calc(-100%)";
69
+ t.transform = `translateX(${r})`;
61
70
  }
62
- return y && e !== void 0 ? (t.width = e, t.maxWidth = e) : f && (t.width = i ? I : "32rem", t.maxWidth = i ? I : "32rem"), t;
63
- })(), C = D ? "" : n === "left" ? s ? "translate-x-0" : "-translate-x-full" : s ? "translate-x-0" : "translate-x-full", R = `
64
- ${F}
71
+ return v && s !== void 0 ? (t.width = s, t.maxWidth = s) : f && (t.width = c ? h : "32rem", t.maxWidth = c ? h : "32rem"), t;
72
+ })(), et = L ? "" : i === "left" ? o ? "translate-x-0" : "-translate-x-full" : o ? "translate-x-0" : "translate-x-full", rt = `
73
+ ${W}
65
74
  fixed h-[calc(100vh-12px)] my-[6px] bottom-0
66
- ${y || f ? "" : `w-full ${X}`}
75
+ ${v || f ? "" : `w-full ${_}`}
67
76
  transform transition-transform duration-300 ease-in-out z-[100]
68
- ${y ? "" : "transition-[width] duration-300 ease-in-out"}
69
- ${C} ${A}`, O = {
77
+ ${v ? "" : "transition-[width] duration-300 ease-in-out"}
78
+ ${et} ${B}`, ot = {
70
79
  backgroundImage: "linear-gradient(90deg, rgba(6, 132, 240, 0.1) 0%, rgba(6, 132, 240, 0.1) 100%), linear-gradient(0deg, rgba(255, 255, 255, 0) 60.66%, rgba(255, 255, 255, 0.5) 100%), linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%)"
71
- }, W = `flex items-center justify-between pl-6 pr-2 border-b border-secondary gap-2 py-4 ${K} h-[60px]`, tt = `px-5 pb-3 overflow-y-auto flex-grow ${T}`, rt = `p-4 ${V}`;
72
- return /* @__PURE__ */ l(lt, { children: [
73
- s && B && /* @__PURE__ */ r("div", { className: "fixed inset-0 z-[99] bg-black/40", onClick: U, "aria-hidden": "true" }),
74
- /* @__PURE__ */ r("div", { className: s ? "w-[100vw-64px] h-[100vh] fixed inset-0 z-[9999]" : "hidden", children: /* @__PURE__ */ r(ut, { onClickAway: k, as: "div", children: /* @__PURE__ */ r(
80
+ }, st = `flex items-center justify-between pl-6 pr-2 border-b border-secondary gap-2 py-4 ${V} h-[60px]`, at = `px-5 pb-3 overflow-y-auto flex-grow ${Y}`, lt = `p-4 ${J}`;
81
+ return /* @__PURE__ */ l(dt, { children: [
82
+ o && H && /* @__PURE__ */ e("div", { className: "fixed inset-0 z-[99] bg-black/40", onClick: G, "aria-hidden": "true" }),
83
+ /* @__PURE__ */ e("div", { className: o ? "w-[100vw-64px] h-[100vh] fixed inset-0 z-[9999]" : "hidden", children: /* @__PURE__ */ e(yt, { onClickAway: y, as: "div", children: /* @__PURE__ */ e(
75
84
  "div",
76
85
  {
77
- className: R,
78
- style: z,
86
+ ref: S,
87
+ tabIndex: -1,
88
+ className: `${rt} outline-none`,
89
+ style: tt,
79
90
  role: "dialog",
80
91
  "aria-modal": "true",
81
- "aria-labelledby": d ? void 0 : S,
82
- "aria-label": d && v ? v : void 0,
83
- "data-testid": H,
92
+ "aria-labelledby": d ? void 0 : E,
93
+ "aria-label": d && p ? p : void 0,
94
+ "data-testid": F,
84
95
  onClick: (t) => t.stopPropagation(),
85
96
  children: /* @__PURE__ */ l(
86
97
  "div",
87
98
  {
88
- className: `relative h-full w-full backdrop-blur-[3px] rounded-2xl p-2 ${n === "right" ? "border-l border-t border-b border-white" : "border border-white"}`,
89
- style: O,
99
+ className: `relative h-full w-full backdrop-blur-[3px] rounded-2xl p-2 ${i === "right" ? "border-l border-t border-b border-white" : "border border-white"}`,
100
+ style: ot,
90
101
  children: [
91
- w && /* @__PURE__ */ r(
102
+ N && /* @__PURE__ */ e(
92
103
  "div",
93
104
  {
94
105
  role: "separator",
95
106
  "aria-label": "Resize drawer",
96
107
  "aria-orientation": "vertical",
97
- "aria-valuemin": p,
98
- "aria-valuemax": Number.isFinite(b) ? b : void 0,
99
- "aria-valuenow": Math.round(e),
108
+ "aria-valuemin": x,
109
+ "aria-valuemax": Number.isFinite(w) ? w : void 0,
110
+ "aria-valuenow": Math.round(s),
100
111
  tabIndex: 0,
101
- onPointerDown: Q,
102
- onKeyDown: Z,
103
- className: "absolute left-0 top-0 z-10 h-full w-2 -translate-x-1 cursor-col-resize touch-none focus-visible:outline-none"
112
+ onPointerDown: R,
113
+ onKeyDown: O,
114
+ className: "absolute left-0 top-0 z-10 h-full w-2 -translate-x-1 cursor-col-resize touch-none rounded-full outline-none focus-visible:bg-brand-solid"
104
115
  }
105
116
  ),
106
117
  /* @__PURE__ */ l("div", { className: "h-full w-full bg-white rounded-lg overflow-hidden flex flex-col", children: [
107
- d || /* @__PURE__ */ l("header", { className: W, children: [
118
+ d || /* @__PURE__ */ l("header", { className: st, children: [
108
119
  /* @__PURE__ */ l("div", { className: `flex-1 flex flex-col gap-0 ${f ? "pr-2" : "pr-16"}`, children: [
109
- /* @__PURE__ */ r("h2", { id: S, className: "text-lg font-semibold leading-7 text-[#06060a]", children: v }),
110
- $ && /* @__PURE__ */ r("p", { className: "text-sm text-secondary", children: $ })
120
+ /* @__PURE__ */ e("h2", { id: E, className: "text-lg font-semibold leading-7 text-[#06060a]", children: p }),
121
+ I && /* @__PURE__ */ e("p", { className: "text-sm text-secondary", children: I })
111
122
  ] }),
112
123
  /* @__PURE__ */ l("div", { className: "flex items-center gap-1", children: [
113
- G,
114
- J && /* @__PURE__ */ r(
124
+ Z,
125
+ z && /* @__PURE__ */ e(
115
126
  "button",
116
127
  {
117
128
  type: "button",
118
- onClick: () => m == null ? void 0 : m(!x),
129
+ onClick: () => m == null ? void 0 : m(!b),
119
130
  className: "flex items-center justify-center p-2 rounded-lg hover:bg-primary_hover transition-colors cursor-pointer",
120
- "aria-label": x ? "Exit full screen" : "Open full screen",
121
- children: x ? /* @__PURE__ */ r(P, { size: 20, className: "text-fg-quaternary", strokeWidth: 1.67 }) : /* @__PURE__ */ r(j, { size: 20, className: "text-fg-quaternary", strokeWidth: 1.67 })
131
+ "aria-label": b ? "Exit full screen" : "Open full screen",
132
+ children: b ? /* @__PURE__ */ e(M, { size: 20, className: "text-fg-quaternary", strokeWidth: 1.67 }) : /* @__PURE__ */ e(j, { size: 20, className: "text-fg-quaternary", strokeWidth: 1.67 })
122
133
  }
123
134
  ),
124
- f && /* @__PURE__ */ r(
135
+ f && /* @__PURE__ */ e(
125
136
  "button",
126
137
  {
127
138
  type: "button",
128
- onClick: () => u == null ? void 0 : u(!i),
139
+ onClick: () => u == null ? void 0 : u(!c),
129
140
  className: "flex items-center justify-center p-2 rounded-lg hover:bg-primary_hover transition-colors cursor-pointer",
130
- "aria-label": i ? "Collapse sidebar" : "Expand sidebar",
131
- children: i ? /* @__PURE__ */ r(P, { size: 20, className: "text-fg-quaternary", strokeWidth: 1.67 }) : /* @__PURE__ */ r(j, { size: 20, className: "text-fg-quaternary", strokeWidth: 1.67 })
141
+ "aria-label": c ? "Collapse sidebar" : "Expand sidebar",
142
+ children: c ? /* @__PURE__ */ e(M, { size: 20, className: "text-fg-quaternary", strokeWidth: 1.67 }) : /* @__PURE__ */ e(j, { size: 20, className: "text-fg-quaternary", strokeWidth: 1.67 })
132
143
  }
133
144
  ),
134
- /* @__PURE__ */ r(
145
+ /* @__PURE__ */ e(
135
146
  "button",
136
147
  {
137
148
  type: "button",
138
- onClick: k,
149
+ onClick: y,
139
150
  "aria-label": "Close",
140
151
  className: "flex items-center justify-center p-2 rounded-lg hover:bg-primary_hover transition-colors cursor-pointer",
141
- children: /* @__PURE__ */ r(it, { size: 20, className: "text-fg-quaternary", strokeWidth: 1.67 })
152
+ children: /* @__PURE__ */ e(ut, { size: 20, className: "text-fg-quaternary", strokeWidth: 1.67 })
142
153
  }
143
154
  )
144
155
  ] })
145
156
  ] }),
146
- /* @__PURE__ */ r("main", { className: tt, children: L }),
147
- E && /* @__PURE__ */ r("footer", { className: rt, children: q })
157
+ /* @__PURE__ */ e("main", { className: at, children: /* @__PURE__ */ e(vt, { value: C, children: A }) }),
158
+ T && /* @__PURE__ */ e("footer", { className: lt, children: K })
148
159
  ] })
149
160
  ]
150
161
  }
@@ -154,5 +165,5 @@ const xt = ({
154
165
  ] });
155
166
  };
156
167
  export {
157
- xt as Drawer
168
+ kt as Drawer
158
169
  };
@@ -15,7 +15,8 @@ export interface EmptyStateHeaderProps extends ComponentPropsWithRef<"div"> {
15
15
  declare const Header: ({ pattern, patternSize, ...props }: EmptyStateHeaderProps) => import("react/jsx-runtime").JSX.Element;
16
16
  declare const Content: (props: ComponentPropsWithRef<"div">) => import("react/jsx-runtime").JSX.Element;
17
17
  declare const Footer: (props: ComponentPropsWithRef<"div">) => import("react/jsx-runtime").JSX.Element;
18
- declare const Title: (props: ComponentPropsWithRef<"h1">) => import("react/jsx-runtime").JSX.Element;
18
+ /** An `h2`: the page around an empty state already has its own `h1`. */
19
+ declare const Title: (props: ComponentPropsWithRef<"h2">) => import("react/jsx-runtime").JSX.Element;
19
20
  declare const Description: (props: ComponentPropsWithRef<"p">) => import("react/jsx-runtime").JSX.Element;
20
21
  declare const EmptyState: typeof Root & {
21
22
  Title: typeof Title;
@@ -1 +1 @@
1
- {"version":3,"file":"empty-state.d.ts","sourceRoot":"","sources":["../../../src/patterns/empty-state/empty-state.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAW9E,UAAU,gBAAgB;IACxB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC3B;AAID,MAAM,WAAW,eAAgB,SAAQ,qBAAqB,CAAC,KAAK,CAAC,EAAE,gBAAgB;CAAG;AAE1F,QAAA,MAAM,IAAI,GAAI,oBAA2B,eAAe,4CASvD,CAAC;AAEF,QAAA,MAAM,YAAY,GAAI,wCAMnB,qBAAqB,CAAC,OAAO,gBAAgB,CAAC,4CAIhD,CAAC;AAEF,MAAM,WAAW,qBAAsB,SAAQ,qBAAqB,CAAC,KAAK,CAAC;IACzE,iHAAiH;IACjH,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC5B,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAClC;AAED,QAAA,MAAM,MAAM,GAAI,oCAAsD,qBAAqB,4CAc1F,CAAC;AAEF,QAAA,MAAM,OAAO,GAAI,OAAO,qBAAqB,CAAC,KAAK,CAAC,4CAanD,CAAC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I,GAAG,IAAI,CAAC;CAClC;AAED,QAAA,MAAM,MAAM,GAAI,oCAAsD,qBAAqB,4CAc1F,CAAC;AAEF,QAAA,MAAM,OAAO,GAAI,OAAO,qBAAqB,CAAC,KAAK,CAAC,4CAanD,CAAC;AAEF,QAAA,MAAM,MAAM,GAAI,OAAO,qBAAqB,CAAC,KAAK,CAAC,4CAElD,CAAC;AAEF,wEAAwE;AACxE,QAAA,MAAM,KAAK,GAAI,OAAO,qBAAqB,CAAC,IAAI,CAAC,4CAchD,CAAC;AAEF,QAAA,MAAM,WAAW,GAAI,OAAO,qBAAqB,CAAC,GAAG,CAAC,4CAMrD,CAAC;AAEF,QAAA,MAAM,UAAU,EAAW,OAAO,IAAI,GAAG;IACvC,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,MAAM,EAAE,OAAO,MAAM,CAAC;IACtB,MAAM,EAAE,OAAO,MAAM,CAAC;IACtB,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,WAAW,EAAE,OAAO,WAAW,CAAC;IAChC,YAAY,EAAE,OAAO,YAAY,CAAC;CACnC,CAAC;AASF,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as s, jsxs as x } from "react/jsx-runtime";
2
- import { createContext as d, useContext as m } from "react";
2
+ import { createContext as d, useContext as c } from "react";
3
3
  import { SearchLg as u } from "@untitledui/icons";
4
4
  import { cx as o } from "../../utils/cn.js";
5
5
  import { Circle as f } from "./circle-pattern.js";
@@ -14,14 +14,14 @@ const r = d({ size: "lg" }), N = ({ size: e = "lg", ...t }) => /* @__PURE__ */ s
14
14
  color: e = "gray",
15
15
  theme: t = "modern",
16
16
  icon: a = u,
17
- size: c = "lg",
18
- ...l
17
+ size: l = "lg",
18
+ ...m
19
19
  }) => {
20
- const { size: i } = m(r);
21
- return /* @__PURE__ */ s(g, { ...l, color: e, theme: t, icon: a, size: i === "lg" ? "xl" : c });
20
+ const { size: i } = c(r);
21
+ return /* @__PURE__ */ s(g, { ...m, color: e, theme: t, icon: a, size: i === "lg" ? "xl" : l });
22
22
  }, y = ({ pattern: e = "circle", patternSize: t = "md", ...a }) => {
23
- const { size: c } = m(r);
24
- return /* @__PURE__ */ x("header", { ...a, className: o("relative mb-4", (c === "md" || c === "lg") && "mb-5", a.className), children: [
23
+ const { size: l } = c(r);
24
+ return /* @__PURE__ */ x("header", { ...a, className: o("relative mb-4", (l === "md" || l === "lg") && "mb-5", a.className), children: [
25
25
  e !== "none" && /* @__PURE__ */ s(
26
26
  f,
27
27
  {
@@ -32,9 +32,9 @@ const r = d({ size: "lg" }), N = ({ size: e = "lg", ...t }) => /* @__PURE__ */ s
32
32
  a.children
33
33
  ] });
34
34
  }, b = (e) => {
35
- const { size: t } = m(r);
35
+ const { size: t } = c(r);
36
36
  return /* @__PURE__ */ s(
37
- "main",
37
+ "div",
38
38
  {
39
39
  ...e,
40
40
  className: o(
@@ -44,10 +44,10 @@ const r = d({ size: "lg" }), N = ({ size: e = "lg", ...t }) => /* @__PURE__ */ s
44
44
  )
45
45
  }
46
46
  );
47
- }, h = (e) => /* @__PURE__ */ s("footer", { ...e, className: o("z-10 flex gap-3", e.className) }), C = (e) => {
48
- const { size: t } = m(r);
47
+ }, h = (e) => /* @__PURE__ */ s("footer", { ...e, className: o("z-10 flex gap-3", e.className) }), v = (e) => {
48
+ const { size: t } = c(r);
49
49
  return /* @__PURE__ */ s(
50
- "h1",
50
+ "h2",
51
51
  {
52
52
  ...e,
53
53
  className: o(
@@ -58,15 +58,15 @@ const r = d({ size: "lg" }), N = ({ size: e = "lg", ...t }) => /* @__PURE__ */ s
58
58
  )
59
59
  }
60
60
  );
61
- }, F = (e) => {
62
- const { size: t } = m(r);
61
+ }, C = (e) => {
62
+ const { size: t } = c(r);
63
63
  return /* @__PURE__ */ s("p", { ...e, className: o("text-center text-xs text-tertiary", t === "lg" && "text-sm", e.className) });
64
64
  }, n = N;
65
- n.Title = C;
65
+ n.Title = v;
66
66
  n.Header = y;
67
67
  n.Footer = h;
68
68
  n.Content = b;
69
- n.Description = F;
69
+ n.Description = C;
70
70
  n.FeaturedIcon = z;
71
71
  export {
72
72
  n as EmptyState
@@ -1 +1 @@
1
- {"version":3,"file":"expandable-drawer.d.ts","sourceRoot":"","sources":["../../../src/patterns/expandable-drawer/expandable-drawer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAQlE,MAAM,MAAM,0BAA0B,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;AAM1E,MAAM,WAAW,0BAA0B;IACzC,iFAAiF;IACjF,KAAK,EAAE,0BAA0B,CAAC;IAClC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,yGAAyG;IACzG,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gEAAgE;IAChE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+EAA+E;IAC/E,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4CAA4C;IAC5C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,4DAA4D;IAC5D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,4GAA4G;IAC5G,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,iFAAiF;IACjF,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,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