@alfadocs/ui-kit-debug 1.42.0 → 1.43.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 (45) hide show
  1. package/dist/_chunks/{calendar-workspace-qlxrxCqm.js → calendar-workspace-DhXqqu-D.js} +2 -2
  2. package/dist/_chunks/{calendar-workspace-qlxrxCqm.js.map → calendar-workspace-DhXqqu-D.js.map} +1 -1
  3. package/dist/_chunks/control-room-rail-Cv7GpMqX.js +354 -0
  4. package/dist/_chunks/control-room-rail-Cv7GpMqX.js.map +1 -0
  5. package/dist/_chunks/{marketplace-app-shell-D_g9BaDI.js → marketplace-app-shell-DdwPj03y.js} +3 -3
  6. package/dist/_chunks/{marketplace-app-shell-D_g9BaDI.js.map → marketplace-app-shell-DdwPj03y.js.map} +1 -1
  7. package/dist/_chunks/{sidebar-ClTY9lLI.js → sidebar-DbZXLl8h.js} +2 -2
  8. package/dist/_chunks/{sidebar-ClTY9lLI.js.map → sidebar-DbZXLl8h.js.map} +1 -1
  9. package/dist/_chunks/tab-bar-Cw9UK18Z.js +228 -0
  10. package/dist/_chunks/tab-bar-Cw9UK18Z.js.map +1 -0
  11. package/dist/_chunks/{tool-rail-D89USYE6.js → tool-rail-CCFqDfAn.js} +282 -276
  12. package/dist/_chunks/tool-rail-CCFqDfAn.js.map +1 -0
  13. package/dist/_chunks/use-edge-resize-BHesP0kg.js +149 -0
  14. package/dist/_chunks/use-edge-resize-BHesP0kg.js.map +1 -0
  15. package/dist/_chunks/use-scroll-overflow-UbLrUfBo.js +72 -0
  16. package/dist/_chunks/use-scroll-overflow-UbLrUfBo.js.map +1 -0
  17. package/dist/agent-catalog.json +1 -1
  18. package/dist/components/control-room-rail/control-room-rail.d.ts +9 -0
  19. package/dist/components/control-room-rail/control-room-rail.d.ts.map +1 -1
  20. package/dist/components/control-room-rail/index.js +1 -1
  21. package/dist/components/sidebar/index.js +1 -1
  22. package/dist/components/tab-bar/index.js +1 -1
  23. package/dist/components/tool-rail/index.js +1 -1
  24. package/dist/components/tool-rail/tool-rail.d.ts +16 -0
  25. package/dist/components/tool-rail/tool-rail.d.ts.map +1 -1
  26. package/dist/hooks/index.d.ts +2 -0
  27. package/dist/hooks/index.d.ts.map +1 -1
  28. package/dist/hooks/index.js +35 -32
  29. package/dist/hooks/index.js.map +1 -1
  30. package/dist/hooks/use-edge-resize.d.ts +13 -1
  31. package/dist/hooks/use-edge-resize.d.ts.map +1 -1
  32. package/dist/index.js +5 -5
  33. package/dist/patterns/calendar/index.js +1 -1
  34. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  35. package/dist/tokens.css +1 -1
  36. package/package.json +1 -1
  37. package/dist/_chunks/control-room-rail-CnNZusR5.js +0 -337
  38. package/dist/_chunks/control-room-rail-CnNZusR5.js.map +0 -1
  39. package/dist/_chunks/tab-bar-rDkLiaA6.js +0 -268
  40. package/dist/_chunks/tab-bar-rDkLiaA6.js.map +0 -1
  41. package/dist/_chunks/tool-rail-D89USYE6.js.map +0 -1
  42. package/dist/_chunks/use-edge-resize-ZnGG7gyO.js +0 -139
  43. package/dist/_chunks/use-edge-resize-ZnGG7gyO.js.map +0 -1
  44. package/dist/_chunks/use-overflow-collapse-BIOzKbni.js +0 -32
  45. package/dist/_chunks/use-overflow-collapse-BIOzKbni.js.map +0 -1
@@ -28,4 +28,6 @@ export { useCheckAnimation, type UseCheckAnimationOptions, type UseCheckAnimatio
28
28
  export { useExitTransition, type UseExitTransitionOptions, type UseExitTransitionReturn, } from './use-exit-transition';
29
29
  export { usePresenceTransition, type PresencePhase, type UsePresenceTransitionOptions, type UsePresenceTransitionReturn, } from './use-presence-transition';
30
30
  export { useListReflow, REFLOW_ROW_CLASS, type UseListReflowOptions, type UseListReflowReturn, } from './use-list-reflow';
31
+ export { useClampOverflow } from './use-clamp-overflow';
32
+ export { useScrollOverflow, type UseScrollOverflowReturn, } from './use-scroll-overflow';
31
33
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1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AAa,EACb,gBAAgB,EAChB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EACL,iBAAiB,EACjB,KAAK,uBAAuB,GAC7B,MAAM,uBAAuB,CAAC"}
@@ -1,6 +1,6 @@
1
- import { u as y } from "../_chunks/use-prefers-reduced-motion-BMwIQRjB.js";
2
- import { u as v } from "../_chunks/use-media-query-CcAx5SMM.js";
3
- import { Z as R, u as _, a as w, b as F } from "../_chunks/use-zoom-drilldown-qCX34w9I.js";
1
+ import { u as h } from "../_chunks/use-prefers-reduced-motion-BMwIQRjB.js";
2
+ import { u as y } from "../_chunks/use-media-query-CcAx5SMM.js";
3
+ import { Z as D, u as R, a as _, b as F } from "../_chunks/use-zoom-drilldown-qCX34w9I.js";
4
4
  import { u as g } from "../_chunks/use-count-up-BLLetaZ8.js";
5
5
  import { u as k } from "../_chunks/use-locale-BkCIHujH.js";
6
6
  import { A as M, T as V, a as W, r as H, t as N, u as Y } from "../_chunks/use-theme-CAuo6EYT.js";
@@ -11,15 +11,16 @@ import { useState as b, useRef as x, useEffect as E } from "react";
11
11
  import { u as Q, a as J } from "../_chunks/use-direction-Dp8h70PP.js";
12
12
  import { u as $ } from "../_chunks/use-persistent-state-nZwZAnE9.js";
13
13
  import { u as te } from "../_chunks/use-isomorphic-layout-effect-BGfaCOP1.js";
14
- import { u as oe } from "../_chunks/use-overflow-collapse-BIOzKbni.js";
15
- import { c as se, u as ne } from "../_chunks/use-priority-overflow-c9SjxZkZ.js";
16
- import { u as ie } from "../_chunks/use-web-otp-D_utzp6S.js";
14
+ import { u as oe, a as ue } from "../_chunks/use-scroll-overflow-UbLrUfBo.js";
15
+ import { c as ne, u as ae } from "../_chunks/use-priority-overflow-c9SjxZkZ.js";
16
+ import { u as ce } from "../_chunks/use-web-otp-D_utzp6S.js";
17
17
  import { u as fe } from "../_chunks/use-visual-viewport-pin-ChurOsHM.js";
18
- import { u as me } from "../_chunks/use-edge-resize-ZnGG7gyO.js";
19
- import { u as pe } from "../_chunks/use-countdown-Yd6ts0_a.js";
20
- import { u as Ee } from "../_chunks/use-check-animation--I3cS00X.js";
21
- import { R as Te, u as Se, a as Ce } from "../_chunks/use-list-reflow-Cw43nxw5.js";
22
- import { u as Ae } from "../_chunks/use-presence-transition-cDwWUXV-.js";
18
+ import { u as de } from "../_chunks/use-edge-resize-BHesP0kg.js";
19
+ import { u as xe } from "../_chunks/use-countdown-Yd6ts0_a.js";
20
+ import { u as be } from "../_chunks/use-check-animation--I3cS00X.js";
21
+ import { R as Te, u as Ce, a as Le } from "../_chunks/use-list-reflow-Cw43nxw5.js";
22
+ import { u as Oe } from "../_chunks/use-presence-transition-cDwWUXV-.js";
23
+ import { u as ve } from "../_chunks/use-clamp-overflow-DQE2kwZ9.js";
23
24
  function C(e, o) {
24
25
  const [t, i] = b(e), u = x(null);
25
26
  return E(() => {
@@ -33,7 +34,7 @@ function C(e, o) {
33
34
  return u.current = n, () => clearTimeout(n);
34
35
  }, [e, o]), t;
35
36
  }
36
- const T = [
37
+ const S = [
37
38
  "a[href]",
38
39
  "button:not([disabled])",
39
40
  'input:not([disabled]):not([type="hidden"])',
@@ -46,7 +47,7 @@ const T = [
46
47
  ].join(",");
47
48
  function p(e) {
48
49
  return Array.from(
49
- e.querySelectorAll(T)
50
+ e.querySelectorAll(S)
50
51
  ).filter((o) => {
51
52
  if (o.hidden) return !1;
52
53
  let t = o;
@@ -67,7 +68,7 @@ function L(e, o = {}) {
67
68
  const s = p(a)[0] ?? (a.tabIndex >= -1 ? a : null);
68
69
  s == null || s.focus();
69
70
  }
70
- function l(r) {
71
+ function f(r) {
71
72
  if (r.key !== "Tab") return;
72
73
  const s = e.current;
73
74
  if (!s) return;
@@ -76,11 +77,11 @@ function L(e, o = {}) {
76
77
  r.preventDefault();
77
78
  return;
78
79
  }
79
- const m = c[0], d = c[c.length - 1], f = document.activeElement;
80
- r.shiftKey ? (f === m || !s.contains(f)) && (r.preventDefault(), d.focus()) : (f === d || !s.contains(f)) && (r.preventDefault(), m.focus());
80
+ const m = c[0], d = c[c.length - 1], l = document.activeElement;
81
+ r.shiftKey ? (l === m || !s.contains(l)) && (r.preventDefault(), d.focus()) : (l === d || !s.contains(l)) && (r.preventDefault(), m.focus());
81
82
  }
82
- return a.addEventListener("keydown", l), () => {
83
- if (a.removeEventListener("keydown", l), u && n.current) {
83
+ return a.addEventListener("keydown", f), () => {
84
+ if (a.removeEventListener("keydown", f), u && n.current) {
84
85
  const r = n.current;
85
86
  requestAnimationFrame(() => {
86
87
  r.isConnected && r.focus();
@@ -94,36 +95,38 @@ export {
94
95
  Te as REFLOW_ROW_CLASS,
95
96
  V as THEME_CLASS,
96
97
  W as THEME_STORAGE_KEY,
97
- R as ZOOM_DRILLDOWN_TRANSITION_CLASS,
98
- se as computePriorityLayout,
98
+ D as ZOOM_DRILLDOWN_TRANSITION_CLASS,
99
+ ne as computePriorityLayout,
99
100
  H as resolveTheme,
100
101
  N as themeClassList,
101
- Ee as useCheckAnimation,
102
+ be as useCheckAnimation,
103
+ ve as useClampOverflow,
102
104
  q as useControllableState,
103
105
  G as useCopyToClipboard,
104
106
  g as useCountUp,
105
- pe as useCountdown,
107
+ xe as useCountdown,
106
108
  j as useDebouncedCallback,
107
109
  C as useDebouncedValue,
108
110
  Q as useDirection,
109
111
  J as useDocumentDirection,
110
- me as useEdgeResize,
111
- Se as useExitTransition,
112
+ de as useEdgeResize,
113
+ Ce as useExitTransition,
112
114
  L as useFocusTrap,
113
115
  te as useIsomorphicLayoutEffect,
114
- Ce as useListReflow,
116
+ Le as useListReflow,
115
117
  k as useLocale,
116
- v as useMediaQuery,
118
+ y as useMediaQuery,
117
119
  oe as useOverflowCollapse,
118
120
  $ as usePersistentState,
119
- y as usePrefersReducedMotion,
120
- Ae as usePresenceTransition,
121
- ne as usePriorityOverflow,
122
- _ as useScrollToFirstError,
123
- w as useSigningSession,
121
+ h as usePrefersReducedMotion,
122
+ Oe as usePresenceTransition,
123
+ ae as usePriorityOverflow,
124
+ ue as useScrollOverflow,
125
+ R as useScrollToFirstError,
126
+ _ as useSigningSession,
124
127
  Y as useTheme,
125
128
  fe as useVisualViewportPin,
126
- ie as useWebOtp,
129
+ ce as useWebOtp,
127
130
  F as useZoomDrilldown
128
131
  };
129
132
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/hooks/use-debounced-value.ts","../../src/hooks/use-focus-trap.ts"],"sourcesContent":["import { useEffect, useRef, useState } from 'react';\n\n/**\n * Returns a value that lags `input` by `delayMs`. Each new `input`\n * resets the timer; the returned value updates once `input` has been\n * stable for `delayMs` ms.\n *\n * Companion to `useDebouncedCallback` — use this when you want the\n * debounced *value* (to drive a derived effect, query, or render),\n * and use the callback hook when you want the debounced *action*.\n *\n * @example\n * const [query, setQuery] = useState('');\n * const debouncedQuery = useDebouncedValue(query, 250);\n * useEffect(() => { void search(debouncedQuery); }, [debouncedQuery]);\n */\nexport function useDebouncedValue<T>(input: T, delayMs: number): T {\n const [value, setValue] = useState<T>(input);\n const timerRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n\n useEffect(() => {\n if (delayMs <= 0) {\n // Flush any pending timer so a stale queued value can't land\n // after the synchronous update below.\n if (timerRef.current !== null) {\n clearTimeout(timerRef.current);\n timerRef.current = null;\n }\n setValue(input);\n return;\n }\n const timer = setTimeout(() => {\n setValue(input);\n timerRef.current = null;\n }, delayMs);\n timerRef.current = timer;\n return () => clearTimeout(timer);\n }, [input, delayMs]);\n\n return value;\n}\n","import { useEffect, useRef, type RefObject } from 'react';\n\n/* -------------------------------------------------------------------- */\n/* Focus trap */\n/* */\n/* Lightweight focus-trap hook for components that compose a Radix */\n/* primitive without the overlay primitive (Dialog, AlertDialog, Sheet) */\n/* — those handle focus trapping for free via `@radix-ui/react-dialog`. */\n/* */\n/* This hook is intentionally NOT a Radix `<FocusScope>` re-export — it */\n/* is a hook so it composes inside `forwardRef` components without */\n/* nesting another wrapper element. If you need the full Radix */\n/* contract (return-focus management, loop, asChild), use */\n/* `@radix-ui/react-focus-scope` directly. */\n/* -------------------------------------------------------------------- */\n\nexport interface UseFocusTrapOptions {\n /** When `false` the trap is inert. Defaults to `true`. */\n enabled?: boolean;\n /**\n * When `true`, focus initial autofocus into the first focusable\n * descendant on mount / enable. @default true\n */\n autoFocus?: boolean;\n /**\n * When `true`, restores focus to the previously-focused element on\n * unmount / disable. @default true\n */\n restoreFocus?: boolean;\n}\n\nconst FOCUSABLE_SELECTOR = [\n 'a[href]',\n 'button:not([disabled])',\n 'input:not([disabled]):not([type=\"hidden\"])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n '[tabindex]:not([tabindex=\"-1\"])',\n '[contenteditable=\"true\"]',\n 'audio[controls]',\n 'video[controls]',\n].join(',');\n\nfunction getFocusable(container: HTMLElement): HTMLElement[] {\n return Array.from(\n container.querySelectorAll<HTMLElement>(FOCUSABLE_SELECTOR),\n ).filter((el) => {\n if (el.hidden) return false;\n // `inert` and `aria-hidden=\"true\"` block focus on the element AND\n // all its descendants — walk the chain to catch either ancestor.\n let node: HTMLElement | null = el;\n while (node) {\n if (node.hasAttribute('inert')) return false;\n if (node.getAttribute('aria-hidden') === 'true') return false;\n node = node.parentElement;\n }\n return true;\n });\n}\n\n/**\n * Constrain Tab navigation to descendants of `containerRef`. Wraps Tab\n * forward from the last focusable to the first, and Shift+Tab back from\n * the first to the last. Optionally autofocuses on enable and restores\n * focus on disable.\n *\n * Use this for inline modal patterns or focus zones that don't ship\n * with their own Radix overlay. Don't stack it inside Dialog / Sheet —\n * Radix already traps focus in those.\n *\n * @example\n * const ref = useRef<HTMLDivElement>(null);\n * useFocusTrap(ref, { enabled: open });\n * return <div ref={ref}>…</div>;\n */\nexport function useFocusTrap<T extends HTMLElement>(\n containerRef: RefObject<T | null>,\n options: UseFocusTrapOptions = {},\n): void {\n const { enabled = true, autoFocus = true, restoreFocus = true } = options;\n const previouslyFocused = useRef<HTMLElement | null>(null);\n\n useEffect(() => {\n if (!enabled) return;\n const container = containerRef.current;\n if (!container) return;\n\n previouslyFocused.current =\n typeof document !== 'undefined' &&\n document.activeElement instanceof HTMLElement\n ? document.activeElement\n : null;\n\n if (autoFocus) {\n const focusable = getFocusable(container);\n // Container itself is the fallback focus target — needs `tabIndex`\n // to receive focus, but `-1` is fine.\n const target =\n focusable[0] ?? (container.tabIndex >= -1 ? container : null);\n target?.focus();\n }\n\n function onKeyDown(event: KeyboardEvent) {\n if (event.key !== 'Tab') return;\n const root = containerRef.current;\n if (!root) return;\n const focusable = getFocusable(root);\n if (focusable.length === 0) {\n event.preventDefault();\n return;\n }\n const first = focusable[0];\n const last = focusable[focusable.length - 1];\n const active = document.activeElement;\n\n if (event.shiftKey) {\n if (active === first || !root.contains(active)) {\n event.preventDefault();\n last.focus();\n }\n } else {\n if (active === last || !root.contains(active)) {\n event.preventDefault();\n first.focus();\n }\n }\n }\n\n container.addEventListener('keydown', onKeyDown);\n\n return () => {\n container.removeEventListener('keydown', onKeyDown);\n if (restoreFocus && previouslyFocused.current) {\n // rAF lets parent unmounts settle before refocus — a microtask\n // fires too early and can throw on a detached node.\n const target = previouslyFocused.current;\n requestAnimationFrame(() => {\n if (target.isConnected) target.focus();\n });\n }\n };\n }, [enabled, autoFocus, restoreFocus, containerRef]);\n}\n"],"names":["useDebouncedValue","input","delayMs","value","setValue","useState","timerRef","useRef","useEffect","timer","FOCUSABLE_SELECTOR","getFocusable","container","el","node","useFocusTrap","containerRef","options","enabled","autoFocus","restoreFocus","previouslyFocused","target","onKeyDown","event","root","focusable","first","last","active"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAgBO,SAASA,EAAqBC,GAAUC,GAAoB;AACjE,QAAM,CAACC,GAAOC,CAAQ,IAAIC,EAAYJ,CAAK,GACrCK,IAAWC,EAA6C,IAAI;AAElE,SAAAC,EAAU,MAAM;AACd,QAAIN,K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U,KAAA,QAAAA,EAAQ;AAAA,IACV;AAEA,aAASC,EAAUC,GAAsB;AACvC,UAAIA,EAAM,QAAQ,MAAO;AACzB,YAAMC,IAAOT,EAAa;AAC1B,UAAI,CAACS,EAAM;AACX,YAAMC,IAAYf,EAAac,CAAI;AACnC,UAAIC,EAAU,WAAW,GAAG;AAC1B,QAAAF,EAAM,eAAA;AACN;AAAA,MACF;AACA,YAAMG,IAAQD,EAAU,CAAC,GACnBE,IAAOF,EAAUA,EAAU,SAAS,CAAC,GACrCG,IAAS,SAAS;AAExB,MAAIL,EAAM,YACJK,MAAWF,KAAS,CAACF,EAAK,SAASI,CAAM,OAC3CL,EAAM,eAAA,GACNI,EAAK,MAAA,MAGHC,MAAWD,KAAQ,CAACH,EAAK,SAASI,CAAM,OAC1CL,EAAM,eAAA,GACNG,EAAM,MAAA;AAAA,IAGZ;AAEA,WAAAf,EAAU,iBAAiB,WAAWW,CAAS,GAExC,MAAM;AAEX,UADAX,EAAU,oBAAoB,WAAWW,CAAS,GAC9CH,KAAgBC,EAAkB,SAAS;AAG7C,cAAMC,IAASD,EAAkB;AACjC,8BAAsB,MAAM;AAC1B,UAAIC,EAAO,eAAaA,EAAO,MAAA;AAAA,QACjC,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF,GAAG,CAACJ,GAASC,GAAWC,GAAcJ,CAAY,CAAC;AACrD;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/hooks/use-debounced-value.ts","../../src/hooks/use-focus-trap.ts"],"sourcesContent":["import { useEffect, useRef, useState } from 'react';\n\n/**\n * Returns a value that lags `input` by `delayMs`. Each new `input`\n * resets the timer; the returned value updates once `input` has been\n * stable for `delayMs` ms.\n *\n * Companion to `useDebouncedCallback` — use this when you want the\n * debounced *value* (to drive a derived effect, query, or render),\n * and use the callback hook when you want the debounced *action*.\n *\n * @example\n * const [query, setQuery] = useState('');\n * const debouncedQuery = useDebouncedValue(query, 250);\n * useEffect(() => { void search(debouncedQuery); }, [debouncedQuery]);\n */\nexport function useDebouncedValue<T>(input: T, delayMs: number): T {\n const [value, setValue] = useState<T>(input);\n const timerRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n\n useEffect(() => {\n if (delayMs <= 0) {\n // Flush any pending timer so a stale queued value can't land\n // after the synchronous update below.\n if (timerRef.current !== null) {\n clearTimeout(timerRef.current);\n timerRef.current = null;\n }\n setValue(input);\n return;\n }\n const timer = setTimeout(() => {\n setValue(input);\n timerRef.current = null;\n }, delayMs);\n timerRef.current = timer;\n return () => clearTimeout(timer);\n }, [input, delayMs]);\n\n return value;\n}\n","import { useEffect, useRef, type RefObject } from 'react';\n\n/* -------------------------------------------------------------------- */\n/* Focus trap */\n/* */\n/* Lightweight focus-trap hook for components that compose a Radix */\n/* primitive without the overlay primitive (Dialog, AlertDialog, Sheet) */\n/* — those handle focus trapping for free via `@radix-ui/react-dialog`. */\n/* */\n/* This hook is intentionally NOT a Radix `<FocusScope>` re-export — it */\n/* is a hook so it composes inside `forwardRef` components without */\n/* nesting another wrapper element. If you need the full Radix */\n/* contract (return-focus management, loop, asChild), use */\n/* `@radix-ui/react-focus-scope` directly. */\n/* -------------------------------------------------------------------- */\n\nexport interface UseFocusTrapOptions {\n /** When `false` the trap is inert. Defaults to `true`. */\n enabled?: boolean;\n /**\n * When `true`, focus initial autofocus into the first focusable\n * descendant on mount / enable. @default true\n */\n autoFocus?: boolean;\n /**\n * When `true`, restores focus to the previously-focused element on\n * unmount / disable. @default true\n */\n restoreFocus?: boolean;\n}\n\nconst FOCUSABLE_SELECTOR = [\n 'a[href]',\n 'button:not([disabled])',\n 'input:not([disabled]):not([type=\"hidden\"])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n '[tabindex]:not([tabindex=\"-1\"])',\n '[contenteditable=\"true\"]',\n 'audio[controls]',\n 'video[controls]',\n].join(',');\n\nfunction getFocusable(container: HTMLElement): HTMLElement[] {\n return Array.from(\n container.querySelectorAll<HTMLElement>(FOCUSABLE_SELECTOR),\n ).filter((el) => {\n if (el.hidden) return false;\n // `inert` and `aria-hidden=\"true\"` block focus on the element AND\n // all its descendants — walk the chain to catch either ancestor.\n let node: HTMLElement | null = el;\n while (node) {\n if (node.hasAttribute('inert')) return false;\n if (node.getAttribute('aria-hidden') === 'true') return false;\n node = node.parentElement;\n }\n return true;\n });\n}\n\n/**\n * Constrain Tab navigation to descendants of `containerRef`. Wraps Tab\n * forward from the last focusable to the first, and Shift+Tab back from\n * the first to the last. Optionally autofocuses on enable and restores\n * focus on disable.\n *\n * Use this for inline modal patterns or focus zones that don't ship\n * with their own Radix overlay. Don't stack it inside Dialog / Sheet —\n * Radix already traps focus in those.\n *\n * @example\n * const ref = useRef<HTMLDivElement>(null);\n * useFocusTrap(ref, { enabled: open });\n * return <div ref={ref}>…</div>;\n */\nexport function useFocusTrap<T extends HTMLElement>(\n containerRef: RefObject<T | null>,\n options: UseFocusTrapOptions = {},\n): void {\n const { enabled = true, autoFocus = true, restoreFocus = true } = options;\n const previouslyFocused = useRef<HTMLElement | null>(null);\n\n useEffect(() => {\n if (!enabled) return;\n const container = containerRef.current;\n if (!container) return;\n\n previouslyFocused.current =\n typeof document !== 'undefined' &&\n document.activeElement instanceof HTMLElement\n ? document.activeElement\n : null;\n\n if (autoFocus) {\n const focusable = getFocusable(container);\n // Container itself is the fallback focus target — needs `tabIndex`\n // to receive focus, but `-1` is fine.\n const target =\n focusable[0] ?? (container.tabIndex >= -1 ? container : null);\n target?.focus();\n }\n\n function onKeyDown(event: KeyboardEvent) {\n if (event.key !== 'Tab') return;\n const root = containerRef.current;\n if (!root) return;\n const focusable = getFocusable(root);\n if (focusable.length === 0) {\n event.preventDefault();\n return;\n }\n const first = focusable[0];\n const last = focusable[focusable.length - 1];\n const active = document.activeElement;\n\n if (event.shiftKey) {\n if (active === first || !root.contains(active)) {\n event.preventDefault();\n last.focus();\n }\n } else {\n if (active === last || !root.contains(active)) {\n event.preventDefault();\n first.focus();\n }\n }\n }\n\n container.addEventListener('keydown', onKeyDown);\n\n return () => {\n container.removeEventListener('keydown', onKeyDown);\n if (restoreFocus && previouslyFocused.current) {\n // rAF lets parent unmounts settle before refocus — a microtask\n // fires too early and can throw on a detached node.\n const target = previouslyFocused.current;\n requestAnimationFrame(() => {\n if (target.isConnected) target.focus();\n });\n }\n };\n }, [enabled, autoFocus, restoreFocus, containerRef]);\n}\n"],"names":["useDebouncedValue","input","delayMs","value","setValue","useState","timerRef","useRef","useEffect","timer","FOCUSABLE_SELECTOR","getFocusable","container","el","node","useFocusTrap","containerRef","options","enabled","autoFocus","restoreFocus","previouslyFocused","target","onKeyDown","event","root","focusable","first","last","active"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAgBO,SAASA,EAAqBC,GAAUC,GAAoB;AACjE,QAAM,CAACC,GAAOC,CAAQ,IAAIC,EAAYJ,CAAK,GACrCK,IAAWC,EAA6C,IAAI;AAElE,SAAAC,EAAU,MAAM;AACd,QAAIN,KAAW,GAAG;AAGhB,MAAII,EAAS,YAAY,SACvB,aAAaA,EAAS,OAAO,GAC7BA,EAAS,UAAU,OAErBF,EAASH,CAAK;AACd;AAAA,IACF;AACA,UAAMQ,IAAQ,WAAW,MAAM;AAC7B,MAAAL,EAASH,CAAK,GACdK,EAAS,UAAU;AAAA,IACrB,GAAGJ,CAAO;AACV,WAAAI,EAAS,UAAUG,GACZ,MAAM,aAAaA,CAAK;AAAA,EACjC,GAAG,CAACR,GAAOC,CAAO,CAAC,GAEZC;AACT;ACTA,MAAMO,IAAqB;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,EAAE,KAAK,GAAG;AAEV,SAASC,EAAaC,GAAuC;AAC3D,SAAO,MAAM;AAAA,IACXA,EAAU,iBAA8BF,CAAkB;AAAA,EAAA,EAC1D,OAAO,CAACG,MAAO;AACf,QAAIA,EAAG,OAAQ,QAAO;AAGtB,QAAIC,IAA2BD;AAC/B,WAA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kB,SAAS;AAG7C,cAAMC,IAASD,EAAkB;AACjC,8BAAsB,MAAM;AAC1B,UAAIC,EAAO,eAAaA,EAAO,MAAA;AAAA,QACjC,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF,GAAG,CAACJ,GAASC,GAAWC,GAAcJ,CAAY,CAAC;AACrD;"}
@@ -43,6 +43,18 @@ export interface UseEdgeResizeOptions {
43
43
  disabled?: boolean;
44
44
  /** Fired with the committed px width; `null` means reset-to-default. */
45
45
  onResize?: (size: number | null) => void;
46
+ /**
47
+ * Controlled committed width, px; `null` for the token-driven default.
48
+ * When provided (including `null`), the hook applies it to the target's
49
+ * CSS property on mount and on every change — mirroring the "re-assert
50
+ * on remount" effect components already run for the uncontrolled case.
51
+ * Dragging and keyboard steps still update the CSS property and fire
52
+ * `onResize` immediately for a responsive handle; the host is expected
53
+ * to feed the committed value back through `size` on its next render,
54
+ * the same contract as a controlled form input. Omit for uncontrolled
55
+ * (internally-owned) sizing — the hook's default and existing behaviour.
56
+ */
57
+ size?: number | null;
46
58
  }
47
59
  export interface EdgeResizeSeparatorProps {
48
60
  role: 'separator';
@@ -74,5 +86,5 @@ export interface UseEdgeResizeReturn {
74
86
  /** Programmatic reset to the token-driven default width. */
75
87
  reset: () => void;
76
88
  }
77
- export declare function useEdgeResize({ edge, targetRef, cssProperty, minSize, maxSize, defaultSize, disabled, onResize, }: UseEdgeResizeOptions): UseEdgeResizeReturn;
89
+ export declare function useEdgeResize({ edge, targetRef, cssProperty, minSize, maxSize, defaultSize, disabled, onResize, size: controlledSize, }: UseEdgeResizeOptions): UseEdgeResizeReturn;
78
90
  //# sourceMappingURL=use-edge-resize.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-edge-resize.d.ts","sourceRoot":"","sources":["../../src/hooks/use-edge-resize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAIL,KAAK,aAAa,EAClB,KAAK,YAAY,IAAI,iBAAiB,EACtC,KA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IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,EAAE,UAAU,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,OAAO,GAAG,SAAS,CAAC;IACrC,aAAa,EAAE,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC/D,aAAa,EAAE,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC/D,WAAW,EAAE,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC7D,eAAe,EAAE,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACjE,SAAS,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACvD,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,cAAc,EAAE,wBAAwB,CAAC;IACzC,2EAA2E;IAC3E,UAAU,EAAE,OAAO,CAAC;IACpB,kEAAkE;IAClE,SAAS,EAAE,OAAO,CAAC;IACnB,4DAA4D;IAC5D,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,SAAS,EACT,WAAW,EACX,OAAO,EACP,OAAO,EACP,WAAW,EACX,QAAgB,EAChB,QAAQ,EACR,IAAI,EAAE,cAAc,GACrB,EAAE,oBAAoB,GAAG,mBAAmB,CAuM5C"}
package/dist/index.js CHANGED
@@ -109,7 +109,7 @@ import { S as Qt } from "./_chunks/stat-Bs80Z6Yv.js";
109
109
  import { T as Jt } from "./_chunks/tag-Ci3xJPcH.js";
110
110
  import { T as an, t as en } from "./_chunks/timeline-61AihzYz.js";
111
111
  import { T as rn } from "./_chunks/timestamp-BV2lC-wV.js";
112
- import { C as tn, a as nn, c as pn, u as mn, b as ln, d as dn } from "./_chunks/control-room-rail-CnNZusR5.js";
112
+ import { C as tn, a as nn, c as pn, u as mn, b as ln, d as dn } from "./_chunks/control-room-rail-Cv7GpMqX.js";
113
113
  import { B as cn, a as fn, b as gn, c as Sn, d as Cn, e as Tn, f as xn } from "./_chunks/breadcrumb-agut0PwN.js";
114
114
  import { C as Pn, a as In, b as En, c as Rn, d as _n, e as bn, f as Nn, g as Dn, h as hn, i as On, j as Fn, k as Ln, u as Mn } from "./_chunks/command-palette-DQl_SNEv.js";
115
115
  import { H as kn, a as Bn, b as Gn, c as Hn, d as vn, e as wn, f as Wn, g as Un } from "./_chunks/header-3o9o9v_T.js";
@@ -121,11 +121,11 @@ import { P as pi, a as mi, b as li, c as di, d as Ai, e as ci, f as fi, g as gi,
121
121
  import { D as Ti, a as xi, P as ui, S as Pi, c as Ii, p as Ei } from "./_chunks/public-footer.agent-BKkK3T3V.js";
122
122
  import { P as _i, p as bi } from "./_chunks/public-header.agent-D-EBVskf.js";
123
123
  import { S as Di, f as hi, s as Oi } from "./_chunks/search-bar-CCmViqaa.js";
124
- import { S as Li, a as Mi, b as yi, c as ki, d as Bi, e as Gi, f as Hi, g as vi, h as wi, i as Wi, j as Ui, k as Vi, l as Ki, m as Yi, n as Xi, o as qi, p as zi, q as ji, s as Qi, u as Zi } from "./_chunks/sidebar-ClTY9lLI.js";
124
+ import { S as Li, a as Mi, b as yi, c as ki, d as Bi, e as Gi, f as Hi, g as vi, h as wi, i as Wi, j as Ui, k as Vi, l as Ki, m as Yi, n as Xi, o as qi, p as zi, q as ji, s as Qi, u as Zi } from "./_chunks/sidebar-DbZXLl8h.js";
125
125
  import { S as $i } from "./_chunks/stepper-accordion-DmVykr5F.js";
126
126
  import { s as ep } from "./_chunks/stepper-accordion.agent-cmEguIdx.js";
127
127
  import { S as rp, s as op } from "./_chunks/stepper-progress-Bv0njx4g.js";
128
- import { T as np } from "./_chunks/tab-bar-rDkLiaA6.js";
128
+ import { T as np } from "./_chunks/tab-bar-Cw9UK18Z.js";
129
129
  import { T as pp, a as mp, b as lp, c as dp, t as Ap } from "./_chunks/tabs-BnRaLT0y.js";
130
130
  import { T as fp, t as gp } from "./_chunks/theme-toggle-bI0pgDDv.js";
131
131
  import { A as Cp } from "./_chunks/agenda-card-DyQtHb9z.js";
@@ -238,9 +238,9 @@ import { W as xC, a as uC, w as PC } from "./_chunks/workflow-status-xeaJTzD3.js
238
238
  import { C as EC, W as RC, a as _C, b as bC, c as NC, i as DC, l as hC, m as OC, r as FC, w as LC, d as MC, e as yC, f as kC } from "./_chunks/workflow-map-DhR_h5yw.js";
239
239
  import { A as GC, a as HC, b as vC, c as wC } from "./_chunks/alia-sidebar-CUqaJNPQ.js";
240
240
  import { A as UC, a as VC, L as KC, P as YC, S as XC, T as qC, b as zC, c as jC, d as QC, e as ZC, f as JC, g as $C, h as aT, i as eT, j as sT, k as rT, l as oT, m as tT, n as nT, o as iT, p as pT, r as mT, q as lT, s as dT, t as AT, u as cT } from "./_chunks/anamnesis-summary-rows-DQUqwWc1.js";
241
- import { C as gT, a as ST, b as CT, c as TT, D as xT, d as uT, S as PT, V as IT, W as ET, e as RT, i as _T, m as bT, r as NT, u as DT, f as hT, g as OT } from "./_chunks/calendar-workspace-qlxrxCqm.js";
241
+ import { C as gT, a as ST, b as CT, c as TT, D as xT, d as uT, S as PT, V as IT, W as ET, e as RT, i as _T, m as bT, r as NT, u as DT, f as hT, g as OT } from "./_chunks/calendar-workspace-DhXqqu-D.js";
242
242
  import { A as LT, a as MT, b as yT, H as kT, c as BT, u as GT } from "./_chunks/help-me-write-templates-B-m7zgJa.js";
243
- import { C as vT, M as wT, P as WT } from "./_chunks/marketplace-app-shell-D_g9BaDI.js";
243
+ import { C as vT, M as wT, P as WT } from "./_chunks/marketplace-app-shell-DdwPj03y.js";
244
244
  import { P as VT } from "./_chunks/payment-automation-upsell-BKmBXU4i.js";
245
245
  import { S as YT } from "./_chunks/signature-request-D_j2aQu1.js";
246
246
  import { D as qT, d as zT } from "./_chunks/dependent-selector-BHDP0nBB.js";
@@ -1,4 +1,4 @@
1
- import { C as s, a as r, b as E, c as P, D as S, d as o, S as C, V as t, W as d, e as A, i, m as n, r as D, u as W, f as _, g as c } from "../../_chunks/calendar-workspace-qlxrxCqm.js";
1
+ import { C as s, a as r, b as E, c as P, D as S, d as o, S as C, V as t, W as d, e as A, i, m as n, r as D, u as W, f as _, g as c } from "../../_chunks/calendar-workspace-DhXqqu-D.js";
2
2
  export {
3
3
  s as CALENDAR_PREFERENCE_KEYS,
4
4
  r as CalendarDataProvider,
@@ -1,4 +1,4 @@
1
- import { C as l, M as o } from "../../_chunks/marketplace-app-shell-D_g9BaDI.js";
1
+ import { C as l, M as o } from "../../_chunks/marketplace-app-shell-DdwPj03y.js";
2
2
  export {
3
3
  l as ConnectWithAlfadocs,
4
4
  o as MarketplaceAppShell