@alfadocs/ui-kit 0.17.1 → 0.17.3
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/_chunks/{accordion-DOmxGEWU.js → accordion-CNcodXuO.js} +6 -6
- package/dist/_chunks/{ai-prompt-input-DEiQwIMn.js → ai-prompt-input-B-w5Rx3V.js} +184 -181
- package/dist/_chunks/{alert-pgdXrEO5.js → alert-DBnawbmf.js} +64 -59
- package/dist/_chunks/{audio-recorder-CRh4uyFL.js → audio-recorder-DNkQLW1G.js} +3 -3
- package/dist/_chunks/{autocomplete-mOg7WLOh.js → autocomplete-BxfabhZ8.js} +167 -164
- package/dist/_chunks/{balance-cell-renderer-DWWtX-VM.js → balance-cell-renderer-DJB6WDPe.js} +2 -2
- package/dist/_chunks/{chat-input-UK-bXU7u.js → chat-input-B3XmFGDw.js} +123 -122
- package/dist/_chunks/checkbox-group-Bwmt1ovQ.js +213 -0
- package/dist/_chunks/{checkbox-D5EHnB14.js → checkbox-mwbrPZDY.js} +75 -70
- package/dist/_chunks/{collapsible-CuxUBoHJ.js → collapsible-hHiyZp0b.js} +61 -63
- package/dist/_chunks/{color-picker-BPfcByHH.js → color-picker-Bm-gzpsh.js} +2 -2
- package/dist/_chunks/{combobox-D5tWe0t_.js → combobox-Da9eq00i.js} +214 -211
- package/dist/_chunks/{copy-field-BCHAZ8QV.js → copy-field-BAF4mt9h.js} +95 -132
- package/dist/_chunks/{date-picker-BlhtBhPo.js → date-picker-BIoSLRly.js} +222 -219
- package/dist/_chunks/{date-range-picker-C2hRu_Ke.js → date-range-picker-9gANFNG9.js} +81 -78
- package/dist/_chunks/{date-time-picker-B67mPZmP.js → date-time-picker-DG7BiGdb.js} +98 -95
- package/dist/_chunks/{dialog-DRp6Dejy.js → dialog-DUomPCRS.js} +69 -71
- package/dist/_chunks/{dropdown-menu-dyV7gHh_.js → dropdown-menu-DZxwF23X.js} +108 -110
- package/dist/_chunks/{freemium-paywall-BTEiVkes.js → freemium-paywall-DXc7XlGE.js} +98 -97
- package/dist/_chunks/{leo-sidebar-D3TuyH5_.js → leo-sidebar-DIsiTju3.js} +2 -2
- package/dist/_chunks/{list-DcjV0m5B.js → list-BdvDctBz.js} +184 -180
- package/dist/_chunks/{message-tray-Fsend-du.js → message-tray-BNAS8al4.js} +111 -111
- package/dist/_chunks/{multi-select-DooDzQIp.js → multi-select-CyspR5ZF.js} +157 -154
- package/dist/_chunks/{navigation-menu-DdufF-_4.js → navigation-menu-CyS1fBJ7.js} +85 -87
- package/dist/_chunks/{notification-tray-C3dYdLAF.js → notification-tray-D_69dXFY.js} +114 -114
- package/dist/_chunks/{number-input-DH00o0DN.js → number-input-BZXu6bPY.js} +92 -89
- package/dist/_chunks/{otp-input-BBXYvLx5.js → otp-input-BDF_iNpa.js} +92 -93
- package/dist/_chunks/{pagination-F1ei4khE.js → pagination-BWaXF7W0.js} +194 -211
- package/dist/_chunks/{patient-shell-BE0CdPOJ.js → patient-shell-BOOaWZA9.js} +3 -3
- package/dist/_chunks/{payment-form-CI77oIx1.js → payment-form-BjkuQeqR.js} +2 -2
- package/dist/_chunks/{pdf-viewer-CnEJvmXC.js → pdf-viewer-BG_nsFT5.js} +2 -2
- package/dist/_chunks/{radio-group-Cz1a4QCA.js → radio-group-BHZOxrIK.js} +4 -4
- package/dist/_chunks/{select-Ca6ibiDL.js → select-C92AT_OZ.js} +7 -7
- package/dist/_chunks/{sidebar-D8Lq065m.js → sidebar-BqzlRBvC.js} +271 -291
- package/dist/_chunks/{slider-CkR6CLun.js → slider-CfEzeseL.js} +4 -4
- package/dist/_chunks/{tabs-CRCyPpJo.js → tabs-aEQfQV3x.js} +8 -8
- package/dist/_chunks/{theme-toggle-B3meAb3y.js → theme-toggle-BswYl0Yp.js} +2 -2
- package/dist/_chunks/use-controllable-state-BiY4xTzM.js +23 -0
- package/dist/_chunks/use-copy-to-clipboard-Cyfc_dlv.js +43 -0
- package/dist/_chunks/use-persistent-state-i23OWy6G.js +24 -0
- package/dist/_chunks/{warning-stack-CeRihME9.js → warning-stack-CDH9TudY.js} +2 -2
- package/dist/_chunks/{workflow-map-D3MvrsZV.js → workflow-map-BeKe23uw.js} +3 -3
- package/dist/agent-catalog.json +1 -1
- package/dist/components/_shared/use-debounced-callback.d.ts +1 -5
- package/dist/components/_shared/use-direction.d.ts +1 -18
- package/dist/components/_shared/use-focus-trap.d.ts +1 -31
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/command-palette.d.ts +1 -1
- package/dist/components/copy-field/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/icon-button-group/icon-button-group.d.ts +14 -14
- package/dist/components/list/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/navigation-menu/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/sidebar/index.js +8 -7
- package/dist/components/sidebar/sidebar.d.ts +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.d.ts +8 -0
- package/dist/hooks/index.js +98 -15
- package/dist/hooks/use-debounced-callback.d.ts +19 -0
- package/dist/hooks/use-debounced-value.d.ts +16 -0
- package/dist/hooks/use-direction.d.ts +19 -0
- package/dist/hooks/use-focus-trap.d.ts +32 -0
- package/dist/hooks/use-isomorphic-layout-effect.d.ts +13 -0
- package/dist/hooks/use-persistent-state.d.ts +16 -0
- package/dist/index.js +493 -492
- package/dist/patterns/leo-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +4 -2
- package/dist/_chunks/checkbox-group-Qkm3Rg1S.js +0 -208
|
@@ -4,8 +4,8 @@ import * as g from "@radix-ui/react-slider";
|
|
|
4
4
|
import { c as t } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { useTranslation as va } from "react-i18next";
|
|
6
6
|
import { u as ha, F as ba } from "./form-field-context-B3APVHKx.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { c as ga } from "./compose-refs-C0k0tdqF.js";
|
|
8
|
+
import { u as xa } from "./use-direction-D6rvvG9G.js";
|
|
9
9
|
import { u as wa } from "./registry-C9nwlNyL.js";
|
|
10
10
|
const ya = {
|
|
11
11
|
id: "slider",
|
|
@@ -214,7 +214,7 @@ const ya = {
|
|
|
214
214
|
(C, la) => la === o ? Math.max(d, Math.min(k, C + v)) : C
|
|
215
215
|
);
|
|
216
216
|
R(h), r == null || r(h);
|
|
217
|
-
}, ra = k - d || 1, ia = (a) => (a - d) / ra * 100, D = q(null), na =
|
|
217
|
+
}, ra = k - d || 1, ia = (a) => (a - d) / ra * 100, D = q(null), na = ga(x, D), oa = xa(D), P = q(u);
|
|
218
218
|
P.current = u;
|
|
219
219
|
const da = fa(
|
|
220
220
|
() => ({
|
|
@@ -323,4 +323,4 @@ Aa.displayName = "Slider";
|
|
|
323
323
|
export {
|
|
324
324
|
Aa as S
|
|
325
325
|
};
|
|
326
|
-
//# sourceMappingURL=slider-
|
|
326
|
+
//# sourceMappingURL=slider-CfEzeseL.js.map
|
|
@@ -4,10 +4,10 @@ import * as V from "@radix-ui/react-tabs";
|
|
|
4
4
|
import * as k from "@radix-ui/react-dropdown-menu";
|
|
5
5
|
import { a as N, c as q } from "./index-D2ZczOXr.js";
|
|
6
6
|
import { useTranslation as Z } from "react-i18next";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
7
|
+
import { c as K } from "./compose-refs-C0k0tdqF.js";
|
|
8
|
+
import { S as D } from "./select-C92AT_OZ.js";
|
|
9
|
+
import { X as ee } from "./x-CCcI3eJp.js";
|
|
10
|
+
import { u as te } from "./use-direction-D6rvvG9G.js";
|
|
11
11
|
import { u as se } from "./registry-C9nwlNyL.js";
|
|
12
12
|
import { C as ae } from "./chevron-down-BX_NP2Yh.js";
|
|
13
13
|
const re = {
|
|
@@ -131,7 +131,7 @@ const re = {
|
|
|
131
131
|
id: f,
|
|
132
132
|
...g
|
|
133
133
|
}, w) => {
|
|
134
|
-
const b = O(null), v =
|
|
134
|
+
const b = O(null), v = K(w, b), z = te(b), m = t !== void 0, [h, y] = H(
|
|
135
135
|
p ?? ""
|
|
136
136
|
), r = m ? t ?? "" : h, e = W(
|
|
137
137
|
(T) => {
|
|
@@ -211,7 +211,7 @@ const $ = S(
|
|
|
211
211
|
}), [s, l]);
|
|
212
212
|
return l === "select" && m ? /* @__PURE__ */ C("div", { className: "ds:@container/tabs ds:relative ds:w-full", children: [
|
|
213
213
|
/* @__PURE__ */ a("div", { className: "ds:block ds:@md/tabs:hidden", children: /* @__PURE__ */ a(
|
|
214
|
-
|
|
214
|
+
D,
|
|
215
215
|
{
|
|
216
216
|
options: r,
|
|
217
217
|
value: f,
|
|
@@ -357,7 +357,7 @@ const F = S(
|
|
|
357
357
|
onPointerDown: (r) => {
|
|
358
358
|
r.stopPropagation(), r.preventDefault(), t == null || t();
|
|
359
359
|
},
|
|
360
|
-
children: /* @__PURE__ */ a(
|
|
360
|
+
children: /* @__PURE__ */ a(ee, { className: "ds:size-3.5" })
|
|
361
361
|
}
|
|
362
362
|
)
|
|
363
363
|
]
|
|
@@ -396,4 +396,4 @@ export {
|
|
|
396
396
|
F as c,
|
|
397
397
|
re as t
|
|
398
398
|
};
|
|
399
|
-
//# sourceMappingURL=tabs-
|
|
399
|
+
//# sourceMappingURL=tabs-aEQfQV3x.js.map
|
|
@@ -5,7 +5,7 @@ import { useTranslation as g } from "react-i18next";
|
|
|
5
5
|
import { I as b } from "./icon-button-C4CGcYuz.js";
|
|
6
6
|
import { I as z } from "./icon-button-group-DeV3FpNY.js";
|
|
7
7
|
import { S as j } from "./switch-D916VW86.js";
|
|
8
|
-
import { D as o } from "./dropdown-menu-
|
|
8
|
+
import { D as o } from "./dropdown-menu-DZxwF23X.js";
|
|
9
9
|
import { u as K } from "./use-theme-B1cwAXJR.js";
|
|
10
10
|
import { u as L } from "./registry-C9nwlNyL.js";
|
|
11
11
|
import { c as C } from "./createLucideIcon-CrFbzy84.js";
|
|
@@ -393,4 +393,4 @@ export {
|
|
|
393
393
|
J as T,
|
|
394
394
|
B as t
|
|
395
395
|
};
|
|
396
|
-
//# sourceMappingURL=theme-toggle-
|
|
396
|
+
//# sourceMappingURL=theme-toggle-BswYl0Yp.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { useState as f, useRef as b, useEffect as d, useCallback as m } from "react";
|
|
2
|
+
function S({
|
|
3
|
+
value: s,
|
|
4
|
+
defaultValue: u,
|
|
5
|
+
onChange: e
|
|
6
|
+
}) {
|
|
7
|
+
const r = s !== void 0, [n, l] = f(u), t = b(e);
|
|
8
|
+
d(() => {
|
|
9
|
+
t.current = e;
|
|
10
|
+
}, [e]);
|
|
11
|
+
const i = r ? s : n, a = m(
|
|
12
|
+
(c) => {
|
|
13
|
+
var o;
|
|
14
|
+
r || l(c), (o = t.current) == null || o.call(t, c);
|
|
15
|
+
},
|
|
16
|
+
[r]
|
|
17
|
+
);
|
|
18
|
+
return [i, a];
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
S as u
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=use-controllable-state-BiY4xTzM.js.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { useRef as f, useEffect as d, useState as p, useCallback as u } from "react";
|
|
2
|
+
const C = typeof navigator < "u" && typeof navigator.clipboard < "u" && typeof navigator.clipboard.writeText == "function";
|
|
3
|
+
function v(y = {}) {
|
|
4
|
+
const { resetAfterMs: i = 2e3, writer: a } = y, l = f(a);
|
|
5
|
+
d(() => {
|
|
6
|
+
l.current = a;
|
|
7
|
+
}, [a]);
|
|
8
|
+
const [b, t] = p("idle"), [g, o] = p(null), r = f(null), e = u(() => {
|
|
9
|
+
r.current !== null && (clearTimeout(r.current), r.current = null);
|
|
10
|
+
}, []), m = u(() => {
|
|
11
|
+
e(), t("idle"), o(null);
|
|
12
|
+
}, [e]), w = u(
|
|
13
|
+
async (c) => {
|
|
14
|
+
e();
|
|
15
|
+
const s = l.current;
|
|
16
|
+
let n = !1;
|
|
17
|
+
if (s)
|
|
18
|
+
try {
|
|
19
|
+
n = await s(c);
|
|
20
|
+
} catch {
|
|
21
|
+
n = !1;
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
if (!(C || typeof navigator < "u" && typeof navigator.clipboard < "u" && typeof navigator.clipboard.writeText == "function"))
|
|
25
|
+
return t("error"), o(null), !1;
|
|
26
|
+
try {
|
|
27
|
+
await navigator.clipboard.writeText(c), n = !0;
|
|
28
|
+
} catch {
|
|
29
|
+
n = !1;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return n ? (t("copied"), o(c), i > 0 && (r.current = setTimeout(() => {
|
|
33
|
+
r.current = null, t("idle");
|
|
34
|
+
}, i)), !0) : (t("error"), o(null), !1);
|
|
35
|
+
},
|
|
36
|
+
[e, i]
|
|
37
|
+
);
|
|
38
|
+
return d(() => e, [e]), { status: b, copiedValue: g, copy: w, reset: m };
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
v as u
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=use-copy-to-clipboard-Cyfc_dlv.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useState as u, useEffect as f } from "react";
|
|
2
|
+
function s(t, e) {
|
|
3
|
+
const [n, o] = u(() => {
|
|
4
|
+
if (typeof window > "u")
|
|
5
|
+
return typeof e == "function" ? e() : e;
|
|
6
|
+
try {
|
|
7
|
+
const r = window.localStorage.getItem(t);
|
|
8
|
+
if (r !== null) return JSON.parse(r);
|
|
9
|
+
} catch {
|
|
10
|
+
}
|
|
11
|
+
return typeof e == "function" ? e() : e;
|
|
12
|
+
});
|
|
13
|
+
return f(() => {
|
|
14
|
+
if (!(typeof window > "u"))
|
|
15
|
+
try {
|
|
16
|
+
window.localStorage.setItem(t, JSON.stringify(n));
|
|
17
|
+
} catch {
|
|
18
|
+
}
|
|
19
|
+
}, [t, n]), [n, o];
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
s as u
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=use-persistent-state-i23OWy6G.js.map
|
|
@@ -2,7 +2,7 @@ import { jsxs as l, jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as M, useId as N, useState as O, useRef as y, useEffect as V, useMemo as _, useCallback as j } from "react";
|
|
3
3
|
import { c as W } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as q } from "react-i18next";
|
|
5
|
-
import { A as u } from "./alert-
|
|
5
|
+
import { A as u } from "./alert-DBnawbmf.js";
|
|
6
6
|
import { B as F } from "./button-DD_0Xdmr.js";
|
|
7
7
|
import { C as H } from "./chevron-down-BX_NP2Yh.js";
|
|
8
8
|
const L = W(
|
|
@@ -176,4 +176,4 @@ P.displayName = "WarningStack";
|
|
|
176
176
|
export {
|
|
177
177
|
P as W
|
|
178
178
|
};
|
|
179
|
-
//# sourceMappingURL=warning-stack-
|
|
179
|
+
//# sourceMappingURL=warning-stack-CDH9TudY.js.map
|
|
@@ -10,9 +10,9 @@ import { I as S } from "./icon-button-C4CGcYuz.js";
|
|
|
10
10
|
import { c as _ } from "./createLucideIcon-CrFbzy84.js";
|
|
11
11
|
import { C as Ne } from "./circle-BkqTgYmt.js";
|
|
12
12
|
import { u as Ce } from "./registry-C9nwlNyL.js";
|
|
13
|
-
import { A as V } from "./alert-
|
|
13
|
+
import { A as V } from "./alert-DBnawbmf.js";
|
|
14
14
|
import { B as _e } from "./button-DD_0Xdmr.js";
|
|
15
|
-
import { D as N } from "./dropdown-menu-
|
|
15
|
+
import { D as N } from "./dropdown-menu-DZxwF23X.js";
|
|
16
16
|
import { E } from "./empty-state-3CLJIXSj.js";
|
|
17
17
|
import { P as ae } from "./plus-CYKNmfuA.js";
|
|
18
18
|
import { G as ne } from "./globe-BkEFMNSg.js";
|
|
@@ -1412,4 +1412,4 @@ export {
|
|
|
1412
1412
|
ee as r,
|
|
1413
1413
|
D as w
|
|
1414
1414
|
};
|
|
1415
|
-
//# sourceMappingURL=workflow-map-
|
|
1415
|
+
//# sourceMappingURL=workflow-map-BeKe23uw.js.map
|
package/dist/agent-catalog.json
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
export type DebouncedCallback
|
|
2
|
-
cancel: () => void;
|
|
3
|
-
flush: () => void;
|
|
4
|
-
};
|
|
5
|
-
export declare function useDebouncedCallback<A extends unknown[]>(callback: (...args: A) => void, delayMs: number): DebouncedCallback<A>;
|
|
1
|
+
export { useDebouncedCallback, type DebouncedCallback, } from '../../hooks/use-debounced-callback';
|
|
6
2
|
//# sourceMappingURL=use-debounced-callback.d.ts.map
|
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export type Direction = 'ltr' | 'rtl';
|
|
3
|
-
/**
|
|
4
|
-
* Resolves the effective writing direction for `ref`'s element by walking its
|
|
5
|
-
* ancestor chain and reacting to `dir` attribute mutations along the way.
|
|
6
|
-
*
|
|
7
|
-
* Radix primitives default to `dir="ltr"` when no `DirectionProvider` is
|
|
8
|
-
* present and then stamp `dir="ltr"` onto the rendered element — which
|
|
9
|
-
* overrides any inherited `dir="rtl"` from a parent. Pass the result of this
|
|
10
|
-
* hook to the primitive's `dir` prop so the logical layout flips correctly.
|
|
11
|
-
*/
|
|
12
|
-
export declare function useDirection(ref: RefObject<HTMLElement | null>): Direction;
|
|
13
|
-
/**
|
|
14
|
-
* Resolves the document-level writing direction. Use for components whose
|
|
15
|
-
* Root is a pure context provider (no DOM element to ref) — e.g. Radix
|
|
16
|
-
* DropdownMenu/ContextMenu/Menubar Roots.
|
|
17
|
-
*/
|
|
18
|
-
export declare function useDocumentDirection(): Direction;
|
|
1
|
+
export { useDirection, useDocumentDirection, type Direction, } from '../../hooks/use-direction';
|
|
19
2
|
//# sourceMappingURL=use-direction.d.ts.map
|
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export interface UseFocusTrapOptions {
|
|
3
|
-
/** When `false` the trap is inert. Defaults to `true`. */
|
|
4
|
-
enabled?: boolean;
|
|
5
|
-
/**
|
|
6
|
-
* When `true`, focus initial autofocus into the first focusable
|
|
7
|
-
* descendant on mount / enable. @default true
|
|
8
|
-
*/
|
|
9
|
-
autoFocus?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* When `true`, restores focus to the previously-focused element on
|
|
12
|
-
* unmount / disable. @default true
|
|
13
|
-
*/
|
|
14
|
-
restoreFocus?: boolean;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Constrain Tab navigation to descendants of `containerRef`. Wraps Tab
|
|
18
|
-
* forward from the last focusable to the first, and Shift+Tab back from
|
|
19
|
-
* the first to the last. Optionally autofocuses on enable and restores
|
|
20
|
-
* focus on disable.
|
|
21
|
-
*
|
|
22
|
-
* Use this for inline modal patterns or focus zones that don't ship
|
|
23
|
-
* with their own Radix overlay. Don't stack it inside Dialog / Sheet —
|
|
24
|
-
* Radix already traps focus in those.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* const ref = useRef<HTMLDivElement>(null);
|
|
28
|
-
* useFocusTrap(ref, { enabled: open });
|
|
29
|
-
* return <div ref={ref}>…</div>;
|
|
30
|
-
*/
|
|
31
|
-
export declare function useFocusTrap<T extends HTMLElement>(containerRef: RefObject<T | null>, options?: UseFocusTrapOptions): void;
|
|
1
|
+
export { useFocusTrap, type UseFocusTrapOptions, } from '../../hooks/use-focus-trap';
|
|
32
2
|
//# sourceMappingURL=use-focus-trap.d.ts.map
|
|
@@ -83,7 +83,7 @@ declare const CommandItem: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
83
83
|
ref?: React.Ref<HTMLDivElement>;
|
|
84
84
|
} & {
|
|
85
85
|
asChild?: boolean;
|
|
86
|
-
}, "asChild" | "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "
|
|
86
|
+
}, "asChild" | "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "value" | "disabled" | "onSelect"> & {
|
|
87
87
|
disabled?: boolean;
|
|
88
88
|
onSelect?: (value: string) => void;
|
|
89
89
|
value?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as r, B as l, C as s, a as n, D as o, b as d, L as C, S as t, T as R, c as T, d as b, e as c, U as g, f as i, u } from "../../_chunks/balance-cell-renderer-
|
|
1
|
+
import { A as r, B as l, C as s, a as n, D as o, b as d, L as C, S as t, T as R, c as T, d as b, e as c, U as g, f as i, u } from "../../_chunks/balance-cell-renderer-DJB6WDPe.js";
|
|
2
2
|
export {
|
|
3
3
|
r as ActionsCellRenderer,
|
|
4
4
|
l as BalanceCellRenderer,
|
|
@@ -70,7 +70,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
70
70
|
} & {
|
|
71
71
|
role?: "group";
|
|
72
72
|
mode?: "momentary" | "toggle-single" | "toggle-multi";
|
|
73
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "
|
|
73
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
74
74
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
75
75
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
76
76
|
'aria-label': string;
|
|
@@ -83,7 +83,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
83
83
|
} & {
|
|
84
84
|
role: "toolbar";
|
|
85
85
|
mode?: "momentary" | "toggle-single" | "toggle-multi";
|
|
86
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "
|
|
86
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
87
87
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
88
88
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
89
89
|
'aria-label'?: never;
|
|
@@ -96,7 +96,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
96
96
|
} & {
|
|
97
97
|
role?: "group";
|
|
98
98
|
mode?: "momentary" | "toggle-single" | "toggle-multi";
|
|
99
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "
|
|
99
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
100
100
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
101
101
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
102
102
|
'aria-label'?: never;
|
|
@@ -109,7 +109,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
109
109
|
} & {
|
|
110
110
|
role: "toolbar";
|
|
111
111
|
mode?: "momentary" | "toggle-single" | "toggle-multi";
|
|
112
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "
|
|
112
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
113
113
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
114
114
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
115
115
|
'aria-label': string;
|
|
@@ -122,7 +122,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
122
122
|
} & {
|
|
123
123
|
role?: "group";
|
|
124
124
|
mode?: "momentary" | "toggle-single" | "toggle-multi";
|
|
125
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "
|
|
125
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
126
126
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
127
127
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
128
128
|
'aria-label': string;
|
|
@@ -135,7 +135,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
135
135
|
} & {
|
|
136
136
|
role: "toolbar";
|
|
137
137
|
mode?: "momentary" | "toggle-single" | "toggle-multi";
|
|
138
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "
|
|
138
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
139
139
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
140
140
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
141
141
|
'aria-label': string;
|
|
@@ -148,7 +148,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
148
148
|
} & {
|
|
149
149
|
role: "radiogroup";
|
|
150
150
|
mode: "toggle-single";
|
|
151
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "
|
|
151
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
152
152
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
153
153
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
154
154
|
'aria-label'?: never;
|
|
@@ -161,7 +161,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
161
161
|
} & {
|
|
162
162
|
role?: "group";
|
|
163
163
|
mode?: "momentary" | "toggle-single" | "toggle-multi";
|
|
164
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "
|
|
164
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
165
165
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
166
166
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
167
167
|
'aria-label'?: never;
|
|
@@ -174,7 +174,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
174
174
|
} & {
|
|
175
175
|
role: "toolbar";
|
|
176
176
|
mode?: "momentary" | "toggle-single" | "toggle-multi";
|
|
177
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "
|
|
177
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
178
178
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
179
179
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
180
180
|
'aria-label'?: never;
|
|
@@ -187,7 +187,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
187
187
|
} & {
|
|
188
188
|
role: "radiogroup";
|
|
189
189
|
mode: "toggle-single";
|
|
190
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "
|
|
190
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
191
191
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
192
192
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
193
193
|
'aria-label': string;
|
|
@@ -200,7 +200,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
200
200
|
} & {
|
|
201
201
|
role?: "group";
|
|
202
202
|
mode?: "momentary" | "toggle-single" | "toggle-multi";
|
|
203
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "
|
|
203
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
204
204
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
205
205
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
206
206
|
'aria-label': string;
|
|
@@ -213,7 +213,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
213
213
|
} & {
|
|
214
214
|
role: "toolbar";
|
|
215
215
|
mode?: "momentary" | "toggle-single" | "toggle-multi";
|
|
216
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "
|
|
216
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
217
217
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
218
218
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
219
219
|
'aria-label'?: never;
|
|
@@ -226,7 +226,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
226
226
|
} & {
|
|
227
227
|
role?: "group";
|
|
228
228
|
mode?: "momentary" | "toggle-single" | "toggle-multi";
|
|
229
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "
|
|
229
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
230
230
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
231
231
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
232
232
|
'aria-label'?: never;
|
|
@@ -239,7 +239,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
239
239
|
} & {
|
|
240
240
|
role: "toolbar";
|
|
241
241
|
mode?: "momentary" | "toggle-single" | "toggle-multi";
|
|
242
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "
|
|
242
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
243
243
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
244
244
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>)) & import("react").RefAttributes<HTMLDivElement>>;
|
|
245
245
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as i, a as t, b as e, c as o, d as g, e as s, f as u, g as v, n as M } from "../../_chunks/navigation-menu-
|
|
1
|
+
import { N as i, a as t, b as e, c as o, d as g, e as s, f as u, g as v, n as M } from "../../_chunks/navigation-menu-CyS1fBJ7.js";
|
|
2
2
|
import { S as r } from "../../_chunks/skip-link-BaSMtPwB.js";
|
|
3
3
|
export {
|
|
4
4
|
i as NavigationMenu,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as n, a as s, b as t, c as g, d as o, e as P, f as e, g as p, p as l } from "../../_chunks/pagination-
|
|
1
|
+
import { P as n, a as s, b as t, c as g, d as o, e as P, f as e, g as p, p as l } from "../../_chunks/pagination-BWaXF7W0.js";
|
|
2
2
|
export {
|
|
3
3
|
n as Pagination,
|
|
4
4
|
s as PaginationEllipsis,
|