@alfadocs/ui-kit-debug 1.44.0 → 1.45.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 (33) hide show
  1. package/dist/_chunks/ai-sparkle-DXeP_6a0.js +52 -0
  2. package/dist/_chunks/ai-sparkle-DXeP_6a0.js.map +1 -0
  3. package/dist/_chunks/{calendar-workspace-DBYAtdyd.js → calendar-workspace-B7KvZ1_D.js} +2 -2
  4. package/dist/_chunks/{calendar-workspace-DBYAtdyd.js.map → calendar-workspace-B7KvZ1_D.js.map} +1 -1
  5. package/dist/_chunks/{notes-panel-CY4KmDo-.js → notes-panel-Dkk9QPPX.js} +2 -2
  6. package/dist/_chunks/{notes-panel-CY4KmDo-.js.map → notes-panel-Dkk9QPPX.js.map} +1 -1
  7. package/dist/_chunks/{rich-text-editor-BYE6kK4u.js → rich-text-editor-BrAvNajV.js} +1207 -1267
  8. package/dist/_chunks/rich-text-editor-BrAvNajV.js.map +1 -0
  9. package/dist/_chunks/use-ai-sparkle-CyQSRTCe.js +103 -0
  10. package/dist/_chunks/use-ai-sparkle-CyQSRTCe.js.map +1 -0
  11. package/dist/agent-catalog.json +1 -1
  12. package/dist/components/ai-sparkle/ai-sparkle.d.ts +24 -0
  13. package/dist/components/ai-sparkle/ai-sparkle.d.ts.map +1 -0
  14. package/dist/components/ai-sparkle/index.d.ts +3 -0
  15. package/dist/components/ai-sparkle/index.d.ts.map +1 -0
  16. package/dist/components/ai-sparkle/index.js +5 -0
  17. package/dist/components/ai-sparkle/index.js.map +1 -0
  18. package/dist/components/index.d.ts +3 -2
  19. package/dist/components/index.d.ts.map +1 -1
  20. package/dist/components/notes-panel/index.js +1 -1
  21. package/dist/components/rich-text-editor/index.js +1 -1
  22. package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
  23. package/dist/hooks/index.d.ts +1 -0
  24. package/dist/hooks/index.d.ts.map +1 -1
  25. package/dist/hooks/index.js +64 -56
  26. package/dist/hooks/index.js.map +1 -1
  27. package/dist/hooks/use-ai-sparkle.d.ts +109 -0
  28. package/dist/hooks/use-ai-sparkle.d.ts.map +1 -0
  29. package/dist/index.js +1106 -1102
  30. package/dist/index.js.map +1 -1
  31. package/dist/patterns/calendar/index.js +1 -1
  32. package/package.json +1 -1
  33. package/dist/_chunks/rich-text-editor-BYE6kK4u.js.map +0 -1
@@ -0,0 +1,103 @@
1
+ import { useState as v, useEffect as _, useCallback as e } from "react";
2
+ import { u as k } from "./use-prefers-reduced-motion-BMwIQRjB.js";
3
+ const y = {
4
+ intro: 3200,
5
+ landed: 2800
6
+ }, g = {
7
+ intro: "ds:animate-[ai-pill-shimmer_calc(var(--animation-duration)*6)_var(--ease-in-out)_1]",
8
+ working: "ds:animate-[ai-pill-shimmer_calc(var(--animation-duration)*6)_var(--ease-in-out)_infinite]",
9
+ landed: "ds:animate-[ai-pill-shimmer_calc(var(--animation-duration)*4)_var(--ease-out)_1]"
10
+ }, S = {
11
+ intro: "ds:animate-[ai-comet-orbit_calc(var(--animation-duration)*7)_var(--ease-in-out)_1_both]",
12
+ working: "ds:animate-[ai-comet-orbit_calc(var(--animation-duration)*8)_linear_infinite]",
13
+ landed: "ds:animate-[ai-comet-orbit_calc(var(--animation-duration)*5)_var(--ease-out)_1_both]"
14
+ }, w = {
15
+ intro: "ds:[--sparkle-base:8] ds:animate-[ai-sparkle-burst_calc(var(--animation-duration)*5)_var(--ease-in-out)_1_both]",
16
+ working: "ds:[--sparkle-base:0] ds:animate-[ai-sparkle-twinkle_calc(var(--animation-duration)*8)_var(--ease-in-out)_infinite]",
17
+ landed: "ds:[--sparkle-base:6] ds:animate-[ai-sparkle-burst_calc(var(--animation-duration)*5)_var(--ease-in-out)_1_both]"
18
+ }, s = "ds:absolute ds:opacity-0 ds:text-[color:var(--ai-sparkle)] ds:fill-current ds:drop-shadow-[0_0_var(--spacing-2xs)_var(--ai-sparkle)] ds:[animation-delay:calc(var(--animation-duration)*(var(--sparkle-base)+var(--sparkle-stagger)))]", z = [
19
+ {
20
+ key: "start",
21
+ className: `${s} ds:[--sparkle-stagger:0] ds:size-3 ds:[inset-block-start:calc(var(--spacing-xs)*-1)] ds:[inset-inline-start:calc(var(--spacing-2xs)*-1)]`
22
+ },
23
+ {
24
+ key: "top",
25
+ className: `${s} ds:[--sparkle-stagger:0.5] ds:size-4 ds:[inset-block-start:calc(var(--spacing-sm)*-1)] ds:[inset-inline-start:40%]`
26
+ },
27
+ {
28
+ key: "end",
29
+ className: `${s} ds:[--sparkle-stagger:1] ds:size-3 ds:[inset-block-start:calc(var(--spacing-xs)*-1)] ds:[inset-inline-end:var(--spacing-md)]`
30
+ },
31
+ {
32
+ key: "side",
33
+ className: `${s} ds:[--sparkle-stagger:1.5] ds:size-2 ds:[inset-block-start:40%] ds:[inset-inline-end:calc(var(--spacing-sm)*-1)]`
34
+ },
35
+ {
36
+ key: "below",
37
+ className: `${s} ds:[--sparkle-stagger:2] ds:size-3 ds:[inset-block-end:calc(var(--spacing-xs)*-1)] ds:[inset-inline-start:25%]`
38
+ }
39
+ ], h = "ds:pointer-events-none ds:absolute ds:[inset-block-start:0] ds:[inset-inline-start:0] ds:opacity-0 ds:[offset-path:inset(0_round_var(--radius-full))] ds:[offset-rotate:0deg]", C = [
40
+ {
41
+ key: 1,
42
+ lag: "ds:[animation-delay:calc(var(--animation-duration)*0.2)]",
43
+ dot: "ds:size-2.5 ds:opacity-[var(--opacity-90)]"
44
+ },
45
+ {
46
+ key: 2,
47
+ lag: "ds:[animation-delay:calc(var(--animation-duration)*0.4)]",
48
+ dot: "ds:size-2 ds:opacity-[var(--opacity-70)]"
49
+ },
50
+ {
51
+ key: 3,
52
+ lag: "ds:[animation-delay:calc(var(--animation-duration)*0.6)]",
53
+ dot: "ds:size-2 ds:opacity-[var(--opacity-50)]"
54
+ },
55
+ {
56
+ key: 4,
57
+ lag: "ds:[animation-delay:calc(var(--animation-duration)*0.8)]",
58
+ dot: "ds:size-1.5 ds:opacity-[var(--opacity-30)]"
59
+ },
60
+ {
61
+ key: 5,
62
+ lag: "ds:[animation-delay:calc(var(--animation-duration)*1)]",
63
+ dot: "ds:size-1.5 ds:opacity-[var(--opacity-20)]"
64
+ },
65
+ {
66
+ key: 6,
67
+ lag: "ds:[animation-delay:calc(var(--animation-duration)*1.2)]",
68
+ dot: "ds:size-1 ds:opacity-[var(--opacity-10)]"
69
+ }
70
+ ];
71
+ function A(o = {}) {
72
+ const { enabled: r = !0, reducedMotion: d = "auto" } = o, c = k(), n = d === "off" ? !1 : c, [a, i] = v(
73
+ r ? "intro" : null
74
+ );
75
+ _(() => {
76
+ if (a !== "intro" && a !== "landed") return;
77
+ const t = n ? 0 : y[a], p = window.setTimeout(() => i(null), t);
78
+ return () => window.clearTimeout(p);
79
+ }, [a, n]);
80
+ const l = e(() => i("working"), []), m = e(() => i("landed"), []), u = e(() => {
81
+ i((t) => t === "working" ? null : t);
82
+ }, []);
83
+ return {
84
+ state: a,
85
+ props: {
86
+ "data-ai-sparkle": a ?? void 0,
87
+ className: a ? g[a] : ""
88
+ },
89
+ start: l,
90
+ land: m,
91
+ reset: u
92
+ };
93
+ }
94
+ export {
95
+ w as B,
96
+ C,
97
+ z as S,
98
+ h as a,
99
+ S as b,
100
+ g as c,
101
+ A as u
102
+ };
103
+ //# sourceMappingURL=use-ai-sparkle-CyQSRTCe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-ai-sparkle-CyQSRTCe.js","sources":["../../src/hooks/use-ai-sparkle.ts"],"sourcesContent":["import { useCallback, useEffect, useState } from 'react';\nimport { usePrefersReducedMotion } from './use-prefers-reduced-motion';\n\n/* -------------------------------------------------------------------- */\n/* Shared class tables — read by the hook (shimmer) and by the */\n/* `AiSparkle` presentational component (comet + burst layers), so both */\n/* sides key off the same three states. */\n/* -------------------------------------------------------------------- */\n\n/** Where the sparkle is: on first show, while an action runs, as it lands. */\nexport type AiSparkleState = 'intro' | 'working' | 'landed';\n\n// How long the one-off sparkles stay lit at the default 200ms\n// `--animation-duration` — the comet's lap, then the burst and its stagger.\n// Scaled to 0 under reduced motion (see `useAiSparkle` below).\nconst SPARKLE_ONCE_MS: Record<'intro' | 'landed', number> = {\n intro: 3200,\n landed: 2800,\n};\n\n// Pill sparkle: a light sweep across the surface. Durations derive from\n// `--animation-duration`, so they drop to 0 (no motion) under\n// prefers-reduced-motion and in the accessible themes.\nexport const SHIMMER_CLASS: Record<AiSparkleState, string> = {\n intro:\n 'ds:animate-[ai-pill-shimmer_calc(var(--animation-duration)*6)_var(--ease-in-out)_1]',\n working:\n 'ds:animate-[ai-pill-shimmer_calc(var(--animation-duration)*6)_var(--ease-in-out)_infinite]',\n landed:\n 'ds:animate-[ai-pill-shimmer_calc(var(--animation-duration)*4)_var(--ease-out)_1]',\n};\n\n// The comet laps the pill: once on intro, faster on landing, looping while\n// an action runs. `offset-path` traces the pill's rounded outline; where it\n// is unsupported the comet simply never shows (it rests at opacity 0).\nexport const COMET_CLASS: Record<AiSparkleState, string> = {\n intro:\n 'ds:animate-[ai-comet-orbit_calc(var(--animation-duration)*7)_var(--ease-in-out)_1_both]',\n working:\n 'ds:animate-[ai-comet-orbit_calc(var(--animation-duration)*8)_linear_infinite]',\n landed:\n 'ds:animate-[ai-comet-orbit_calc(var(--animation-duration)*5)_var(--ease-out)_1_both]',\n};\n\n// After the comet's lap the stars burst (intro, landed); while an action\n// runs they swell in and out. `--sparkle-base` is when the burst starts,\n// in units of --animation-duration.\nexport const BURST_CLASS: Record<AiSparkleState, string> = {\n intro:\n 'ds:[--sparkle-base:8] ds:animate-[ai-sparkle-burst_calc(var(--animation-duration)*5)_var(--ease-in-out)_1_both]',\n working:\n 'ds:[--sparkle-base:0] ds:animate-[ai-sparkle-twinkle_calc(var(--animation-duration)*8)_var(--ease-in-out)_infinite]',\n landed:\n 'ds:[--sparkle-base:6] ds:animate-[ai-sparkle-burst_calc(var(--animation-duration)*5)_var(--ease-in-out)_1_both]',\n};\n\n// Five stars around the host, staggered. Hidden at rest (opacity 0), so they\n// only show while a keyframe runs.\nconst glyphBase =\n 'ds:absolute ds:opacity-0 ds:text-[color:var(--ai-sparkle)] ds:fill-current ds:drop-shadow-[0_0_var(--spacing-2xs)_var(--ai-sparkle)] ds:[animation-delay:calc(var(--animation-duration)*(var(--sparkle-base)+var(--sparkle-stagger)))]';\nexport const SPARKLE_GLYPHS = [\n {\n key: 'start',\n className: `${glyphBase} ds:[--sparkle-stagger:0] ds:size-3 ds:[inset-block-start:calc(var(--spacing-xs)*-1)] ds:[inset-inline-start:calc(var(--spacing-2xs)*-1)]`,\n },\n {\n key: 'top',\n className: `${glyphBase} ds:[--sparkle-stagger:0.5] ds:size-4 ds:[inset-block-start:calc(var(--spacing-sm)*-1)] ds:[inset-inline-start:40%]`,\n },\n {\n key: 'end',\n className: `${glyphBase} ds:[--sparkle-stagger:1] ds:size-3 ds:[inset-block-start:calc(var(--spacing-xs)*-1)] ds:[inset-inline-end:var(--spacing-md)]`,\n },\n {\n key: 'side',\n className: `${glyphBase} ds:[--sparkle-stagger:1.5] ds:size-2 ds:[inset-block-start:40%] ds:[inset-inline-end:calc(var(--spacing-sm)*-1)]`,\n },\n {\n key: 'below',\n className: `${glyphBase} ds:[--sparkle-stagger:2] ds:size-3 ds:[inset-block-end:calc(var(--spacing-xs)*-1)] ds:[inset-inline-start:25%]`,\n },\n] as const;\n\n// The comet rides the host's rounded outline. Its tail is a row of dots on\n// the same path, each a step behind the head, so the tail bends with the\n// curve. Every piece rests at opacity 0 and shows only while it runs.\nexport const COMET_WRAPPER_CLASS =\n 'ds:pointer-events-none ds:absolute ds:[inset-block-start:0] ds:[inset-inline-start:0] ds:opacity-0 ds:[offset-path:inset(0_round_var(--radius-full))] ds:[offset-rotate:0deg]';\nexport const COMET_TAIL = [\n {\n key: 1,\n lag: 'ds:[animation-delay:calc(var(--animation-duration)*0.2)]',\n dot: 'ds:size-2.5 ds:opacity-[var(--opacity-90)]',\n },\n {\n key: 2,\n lag: 'ds:[animation-delay:calc(var(--animation-duration)*0.4)]',\n dot: 'ds:size-2 ds:opacity-[var(--opacity-70)]',\n },\n {\n key: 3,\n lag: 'ds:[animation-delay:calc(var(--animation-duration)*0.6)]',\n dot: 'ds:size-2 ds:opacity-[var(--opacity-50)]',\n },\n {\n key: 4,\n lag: 'ds:[animation-delay:calc(var(--animation-duration)*0.8)]',\n dot: 'ds:size-1.5 ds:opacity-[var(--opacity-30)]',\n },\n {\n key: 5,\n lag: 'ds:[animation-delay:calc(var(--animation-duration)*1)]',\n dot: 'ds:size-1.5 ds:opacity-[var(--opacity-20)]',\n },\n {\n key: 6,\n lag: 'ds:[animation-delay:calc(var(--animation-duration)*1.2)]',\n dot: 'ds:size-1 ds:opacity-[var(--opacity-10)]',\n },\n] as const;\n\n/* -------------------------------------------------------------------- */\n/* Types */\n/* -------------------------------------------------------------------- */\n\nexport interface UseAiSparkleOptions {\n /**\n * Whether the sparkle is available at all. Read once, at mount, to seed\n * the initial `'intro'` phase — matches how the RichTextEditor's\n * `aiSparkle` prop only ever gated the very first render. Default `true`.\n */\n enabled?: boolean;\n /**\n * `'auto'` (default) reads `prefers-reduced-motion` via\n * `usePrefersReducedMotion`. `'off'` forces full motion regardless of the\n * OS preference — useful for a story that wants to show the animated\n * states side by side with a reduced one.\n */\n reducedMotion?: 'auto' | 'off';\n}\n\nexport interface UseAiSparkleProps {\n /** Spread (or picked) onto the host element as a pure styling hook. */\n 'data-ai-sparkle': AiSparkleState | undefined;\n /**\n * The shimmer animation class for the current state — empty when at rest.\n * Layer it over the host's own base positioning classes; the comet and\n * burst layers need real DOM and live in the `AiSparkle` component instead.\n */\n className: string;\n}\n\nexport interface UseAiSparkleReturn {\n /** `null` at rest — nothing to render for the comet/burst layers either. */\n state: AiSparkleState | null;\n props: UseAiSparkleProps;\n /** An AI action started: swap to the looping `'working'` phase. */\n start: () => void;\n /** An action's result landed: swap to the one-off `'landed'` phase. */\n land: () => void;\n /**\n * Settle after an action ends. Clears back to rest only when still\n * `'working'` (the action errored or was cancelled before `land()`);\n * leaves `'landed'` alone so the one-off animation gets to play out.\n */\n reset: () => void;\n}\n\n/* -------------------------------------------------------------------- */\n/* Hook */\n/* -------------------------------------------------------------------- */\n\n/**\n * Drives the AI-pill sparkle: lit on first show, looping while an action\n * runs, and a one-off flourish as the result lands.\n *\n * The hook owns the state machine and the timing only — it paints nothing.\n * `props['data-ai-sparkle']` is a plain styling hook for the host element;\n * `props.className` carries the shimmer layer's animation class from the\n * same lookup table the RichTextEditor's pill originally inlined. The\n * comet and burst layers need actual DOM (a tail of dots, five staggered\n * glyphs), so they live in the sibling `AiSparkle` component, keyed off the\n * same `state`.\n *\n * Both `intro` and `landed` are one-off: this hook clears them back to\n * `null` on a timer sized to the comet's lap plus the burst and its\n * stagger, at the default 200ms `--animation-duration`. Under reduced\n * motion (`prefers-reduced-motion` or `reducedMotion: 'auto'`'s system\n * read) the CSS animations already collapse to 0ms, so the clear fires at\n * the next tick instead of waiting out the full lap — the pill still gets\n * its `data-ai-sparkle` attribute for a moment, but nothing visibly moves.\n */\nexport function useAiSparkle(\n options: UseAiSparkleOptions = {},\n): UseAiSparkleReturn {\n const { enabled = true, reducedMotion = 'auto' } = options;\n const systemReduced = usePrefersReducedMotion();\n const reduced = reducedMotion === 'off' ? false : systemReduced;\n\n const [state, setState] = useState<AiSparkleState | null>(\n enabled ? 'intro' : null,\n );\n\n useEffect(() => {\n if (state !== 'intro' && state !== 'landed') return undefined;\n const ms = reduced ? 0 : SPARKLE_ONCE_MS[state];\n const timer = window.setTimeout(() => setState(null), ms);\n return () => window.clearTimeout(timer);\n }, [state, reduced]);\n\n const start = useCallback(() => setState('working'), []);\n const land = useCallback(() => setState('landed'), []);\n const reset = useCallback(() => {\n setState((s) => (s === 'working' ? null : s));\n }, []);\n\n return {\n state,\n props: {\n 'data-ai-sparkle': state ?? undefined,\n className: state ? SHIMMER_CLASS[state] : '',\n },\n start,\n land,\n reset,\n };\n}\n"],"names":["SPARKLE_ONCE_MS","SHIMMER_CLASS","COMET_CLASS","BURST_CLASS","glyphBase","SPARKLE_GLYPHS","COMET_WRAPPER_CLASS","COMET_TAIL","useAiSparkle","options","enabled","reducedMotion","systemReduced","usePrefersReducedMotion","reduced","state","setState","useState","useEffect","ms","timer","start","useCallback","land","reset","s"],"mappings":";;AAeA,MAAMA,IAAsD;AAAA,EAC1D,OAAO;AAAA,EACP,QAAQ;AACV,GAKaC,IAAgD;AAAA,EAC3D,OACE;AAAA,EACF,SACE;AAAA,EACF,QACE;AACJ,GAKaC,IAA8C;AAAA,EACzD,OACE;AAAA,EACF,SACE;AAAA,EACF,QACE;AACJ,GAKaC,IAA8C;AAAA,EACzD,OACE;AAAA,EACF,SACE;AAAA,EACF,QACE;AACJ,GAIMC,IACJ,0OACWC,IAAiB;AAAA,EAC5B;AAAA,IACE,KAAK;AAAA,IACL,WAAW,GAAGD,CAAS;AAAA,EAAA;AAAA,EAEzB;AAAA,IACE,KAAK;AAAA,IACL,WAAW,GAAGA,CAAS;AAAA,EAAA;AAAA,EAEzB;AAAA,IACE,KAAK;AAAA,IACL,WAAW,GAAGA,CAAS;AAAA,EAAA;AAAA,EAEzB;AAAA,IACE,KAAK;AAAA,IACL,WAAW,GAAGA,CAAS;AAAA,EAAA;AAAA,EAEzB;AAAA,IACE,KAAK;AAAA,IACL,WAAW,GAAGA,CAAS;AAAA,EAAA;AAE3B,GAKaE,IACX,iLACWC,IAAa;AAAA,EACxB;AAAA,IACE,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,EAAA;AAAA,EAEP;AAAA,IACE,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,EAAA;AAAA,EAEP;AAAA,IACE,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,EAAA;AAAA,EAEP;AAAA,IACE,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,EAAA;AAAA,EAEP;AAAA,IACE,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,EAAA;AAAA,EAEP;AAAA,IACE,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,EAAA;AAET;AAyEO,SAASC,EACdC,IAA+B,IACX;AACpB,QAAM,EAAE,SAAAC,IAAU,IAAM,eAAAC,IAAgB,WAAWF,GAC7CG,IAAgBC,EAAA,GAChBC,IAAUH,MAAkB,QAAQ,KAAQC,GAE5C,CAACG,GAAOC,CAAQ,IAAIC;AAAA,IACxBP,IAAU,UAAU;AAAA,EAAA;AAGtB,EAAAQ,EAAU,MAAM;AACd,QAAIH,MAAU,WAAWA,MAAU,SAAU;AAC7C,UAAMI,IAAKL,IAAU,IAAId,EAAgBe,CAAK,GACxCK,IAAQ,OAAO,WAAW,MAAMJ,EAAS,IAAI,GAAGG,CAAE;AACxD,WAAO,MAAM,OAAO,aAAaC,CAAK;AAAA,EACxC,GAAG,CAACL,GAAOD,CAAO,CAAC;AAEnB,QAAMO,IAAQC,EAAY,MAAMN,EAAS,SAAS,GAAG,CAAA,CAAE,GACjDO,IAAOD,EAAY,MAAMN,EAAS,QAAQ,GAAG,CAAA,CAAE,GAC/CQ,IAAQF,EAAY,MAAM;AAC9B,IAAAN,EAAS,CAACS,MAAOA,MAAM,YAAY,OAAOA,CAAE;AAAA,EAC9C,GAAG,CAAA,CAAE;AAEL,SAAO;AAAA,IACL,OAAAV;AAAA,IACA,OAAO;AAAA,MACL,mBAAmBA,KAAS;AAAA,MAC5B,WAAWA,IAAQd,EAAcc,CAAK,IAAI;AAAA,IAAA;AAAA,IAE5C,OAAAM;AAAA,IACA,MAAAE;AAAA,IACA,OAAAC;AAAA,EAAA;AAEJ;"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "1.44.0",
3
+ "packageVersion": "1.45.0",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -0,0 +1,24 @@
1
+ import { type AiSparkleState } from '../../hooks/use-ai-sparkle';
2
+ export type { AiSparkleState };
3
+ export interface AiSparkleProps {
4
+ /**
5
+ * The current phase, from `useAiSparkle`. Renders nothing when `null` —
6
+ * callers don't need to guard the mount themselves.
7
+ */
8
+ state: AiSparkleState | null;
9
+ }
10
+ /**
11
+ * The AI pill's comet + burst sparkle: a comet with a six-dot tail riding
12
+ * the host's rounded outline, plus five staggered stars that burst (intro,
13
+ * landed) or twinkle (working) around it.
14
+ *
15
+ * Purely decorative (`aria-hidden`) and stateless — pass the `state` from
16
+ * `useAiSparkle`. The shimmer layer (a light sweep across the host itself)
17
+ * is not part of this component: it needs no extra DOM, so it travels as
18
+ * a class string on `useAiSparkle(...).props.className` instead. Position
19
+ * this component's host with `relative` (or `absolute`) sizing that matches
20
+ * the surface the sparkle decorates — it fills `inset-0` of its offset
21
+ * parent via the comet's `offset-path`.
22
+ */
23
+ export declare const AiSparkle: import("react").ForwardRefExoticComponent<AiSparkleProps & import("react").RefAttributes<HTMLSpanElement>>;
24
+ //# sourceMappingURL=ai-sparkle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-sparkle.d.ts","sourceRoot":"","sources":["../../../src/components/ai-sparkle/ai-sparkle.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,cAAc,EAMpB,MAAM,4BAA4B,CAAC;AAEpC,YAAY,EAAE,cAAc,EAAE,CAAC;AAE/B,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;CAC9B;AAgBD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS,4GAiCrB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { AiSparkle, type AiSparkleProps } from './ai-sparkle';
2
+ export type { AiSparkleState } from '../../hooks/use-ai-sparkle';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ai-sparkle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9D,YAAY,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { A as e } from "../../_chunks/ai-sparkle-DXeP_6a0.js";
2
+ export {
3
+ e as AiSparkle
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +1,5 @@
1
- export { usePrefersReducedMotion, useMediaQuery, useScrollToFirstError, useLocale, useTheme, resolveTheme, themeClassList, THEME_CLASS, THEME_STORAGE_KEY, ACCESSIBILITY_STORAGE_KEY, useSigningSession, useZoomDrilldown, ZOOM_DRILLDOWN_TRANSITION_CLASS, } from '../hooks';
2
- export type { LocaleDir, UseLocaleReturn, UseScrollToFirstErrorOptions, ThemePreference, AccessibilityPreference, ResolvedTheme, UseThemeReturn, SigningField, SigningFieldBase, UseSigningSessionReturn, UseZoomDrilldownOptions, UseZoomDrilldownReturn, } from '../hooks';
1
+ export { usePrefersReducedMotion, useMediaQuery, useScrollToFirstError, useLocale, useTheme, resolveTheme, themeClassList, THEME_CLASS, THEME_STORAGE_KEY, ACCESSIBILITY_STORAGE_KEY, useSigningSession, useZoomDrilldown, ZOOM_DRILLDOWN_TRANSITION_CLASS, useAiSparkle, } from '../hooks';
2
+ export type { LocaleDir, UseLocaleReturn, UseScrollToFirstErrorOptions, ThemePreference, AccessibilityPreference, ResolvedTheme, UseThemeReturn, SigningField, SigningFieldBase, UseSigningSessionReturn, UseZoomDrilldownOptions, UseZoomDrilldownReturn, AiSparkleState, UseAiSparkleOptions, UseAiSparkleReturn, } from '../hooks';
3
3
  export * from './button';
4
4
  export * from './button-group';
5
5
  export * from './floating-action-button';
@@ -161,6 +161,7 @@ export * from './unit-converter';
161
161
  export * from './visually-hidden';
162
162
  export * from './chart';
163
163
  export * from './ai-prompt-input';
164
+ export * from './ai-sparkle';
164
165
  export * from './audio-recorder';
165
166
  export * from './audio-visualiser';
166
167
  export * from './chat-container';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,uBAAuB,EACvB,aAAa,EACb,qBAAqB,EACrB,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,WAAW,EACX,iBAAiB,EACjB,yBAAyB,EACzB,iBAAiB,EACjB,gBAAgB,EAChB,+BAA+B,GAChC,MAAM,UAAU,CAAC;AAClB,YAAY,EACV,SAAS,EACT,eAAe,EACf,4BAA4B,EAC5B,eAAe,EACf,uBAAuB,EACvB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,UAAU,CAAC;AAGlB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AAEzC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAO/C,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC7D,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAM1E,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,cAAc,wBAAwB,CAAC;AAEvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAq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BAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAO3B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC;AACtD,cAAc,+BAA+B,CAAC;AAG9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,uBAAuB,EACvB,aAAa,EACb,qBAAqB,EACrB,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,WAAW,EACX,iBAAiB,EACjB,yBAAyB,EACzB,iBAAiB,EACjB,gBAAgB,EAChB,+BAA+B,EAC/B,YAAY,GACb,MAAM,UAAU,CAAC;AAClB,YAAY,EACV,SAAS,EACT,eAAe,EACf,4BAA4B,EAC5B,eAAe,EACf,uBAAuB,EACvB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,cAAc,EACd,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,UAAU,CAAC;AAGlB,cAAc,UAA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AAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { N as a } from "../../_chunks/notes-panel-CY4KmDo-.js";
1
+ import { N as a } from "../../_chunks/notes-panel-Dkk9QPPX.js";
2
2
  export {
3
3
  a as NotesPanel
4
4
  };
@@ -1,4 +1,4 @@
1
- import { R as a, r as e, w as i } from "../../_chunks/rich-text-editor-BYE6kK4u.js";
1
+ import { R as a, r as e, w as i } from "../../_chunks/rich-text-editor-BrAvNajV.js";
2
2
  export {
3
3
  a as RichTextEditor,
4
4
  e as richTextEditorAgent,
@@ -1 +1 @@
1
- {"version":3,"file":"rich-text-editor.d.ts","sourceRoot":"","sources":["../../../src/components/rich-text-editor/rich-text-editor.tsx"],"names":[],"mappings":"AA2BA,OAAO,EAWL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAaf,OAAO,gDAAgD,CAAC;AAMxD,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,sBAAsB,CAAC;AAoR9B,MAAM,MAAM,eAAe,GAAG,CAC5B,QAAQ,EAAE,MAAM,GAAG,WAAW,EAC9B,OAAO,CAAC,EAAE,OAAO,EACjB,GAAG,IAAI,EAAE,OAAO,EAAE,KACf,OAAO,CAAC;AAgBb,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;AAEpE;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,aAAa;IAC5B,4EAA4E;IAC5E,OAAO,EAAE,OAAO,CAAC;IACjB,uEAAuE;IACvE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACnC,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;+EAC2E;IAC3E,QAAQ,CAA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IACjE;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;CACnC;AAED,oEAAoE;AACpE,MAAM,MAAM,YAAY,GACpB,MAAM,GACN,QAAQ,GACR,eAAe,GACf,cAAc,GACd,cAAc,GACd,SAAS,GACT,OAAO,GACP,WAAW,CAAC;AAchB,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,MAAM,CAAC;IACtB,wDAAwD;IACxD,OAAO,EAAE,MAAM,MAAM,CAAC;IACtB,wEAAwE;IACxE,WAAW,EAAE,MAAM,MAAM,CAAC;IAC1B,yEAAyE;IACzE,QAAQ,EAAE,MAAM,OAAO,CAAC;IACxB,4DAA4D;IAC5D,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;;;;OAKG;IACH,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;IACvE,sEAAsE;IACtE,WAAW,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC5C,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAmBD,QAAA,MAAM,eAAe,oFAEpB,CAAC;AAgKF,eAAO,MAAM,cAAc,sHAg+E1B,CAAC;AAIF,OAAO,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"rich-text-editor.d.ts","sourceRoot":"","sources":["../../../src/components/rich-text-editor/rich-text-editor.tsx"],"names":[],"mappings":"AA2BA,OAAO,EAWL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAaf,OAAO,gDAAgD,CAAC;AAQxD,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,sBAAsB,CAAC;AA6Q9B,MAAM,MAAM,eAAe,GAAG,CAC5B,QAAQ,EAAE,MAAM,GAAG,WAAW,EAC9B,OAAO,CAA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MAAM,cAAc,sHAy8E1B,CAAC;AAIF,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -30,4 +30,5 @@ export { usePresenceTransition, type PresencePhase, type UsePresenceTransitionOp
30
30
  export { useListReflow, REFLOW_ROW_CLASS, type UseListReflowOptions, type UseListReflowReturn, } from './use-list-reflow';
31
31
  export { useClampOverflow } from './use-clamp-overflow';
32
32
  export { useScrollOverflow, type UseScrollOverflowReturn, } from './use-scroll-overflow';
33
+ export { useAiSparkle, SHIMMER_CLASS as AI_SPARKLE_SHIMMER_CLASS, COMET_CLASS as AI_SPARKLE_COMET_CLASS, BURST_CLASS as AI_SPARKLE_BURST_CLASS, SPARKLE_GLYPHS as AI_SPARKLE_GLYPHS, COMET_TAIL as AI_SPARKLE_COMET_TAIL, COMET_WRAPPER_CLASS as AI_SPARKLE_COMET_WRAPPER_CLASS, type AiSparkleState, type UseAiSparkleOptions, type UseAiSparkleProps, type UseAiSparkleReturn, } from './use-ai-sparkle';
33
34
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,YAAY,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,yBAA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EACtB,KAAK,kBAAkB,GACxB,MAAM,kBAAkB,CAAC"}
@@ -1,40 +1,41 @@
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
- import { u as g } from "../_chunks/use-count-up-BLLetaZ8.js";
5
- import { u as k } from "../_chunks/use-locale-BkCIHujH.js";
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";
7
- import { u as q } from "../_chunks/use-controllable-state-BiY4xTzM.js";
8
- import { u as G } from "../_chunks/use-copy-to-clipboard-Cyfc_dlv.js";
1
+ import { u as R } from "../_chunks/use-prefers-reduced-motion-BMwIQRjB.js";
2
+ import { u as I } from "../_chunks/use-media-query-CcAx5SMM.js";
3
+ import { Z as h, u as v, a as y, b as w } from "../_chunks/use-zoom-drilldown-qCX34w9I.js";
4
+ import { u as K } from "../_chunks/use-count-up-BLLetaZ8.js";
5
+ import { u as M } from "../_chunks/use-locale-BkCIHujH.js";
6
+ import { A as k, T as H, a as W, r as B, t as V, u as Y } from "../_chunks/use-theme-CAuo6EYT.js";
7
+ import { u as N } from "../_chunks/use-controllable-state-BiY4xTzM.js";
8
+ import { u as Z } from "../_chunks/use-copy-to-clipboard-Cyfc_dlv.js";
9
9
  import { u as j } from "../_chunks/use-debounced-callback-BisrB-Fq.js";
10
- import { useState as b, useRef as x, useEffect as E } from "react";
10
+ import { useState as A, useRef as S, 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, a as ue } from "../_chunks/use-scroll-overflow-UbLrUfBo.js";
14
+ import { u as oe, a as se } from "../_chunks/use-scroll-overflow-UbLrUfBo.js";
15
15
  import { c as ne, u as ae } from "../_chunks/use-priority-overflow-c9SjxZkZ.js";
16
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
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";
24
- function C(e, o) {
25
- const [t, i] = b(e), u = x(null);
19
+ import { u as Se } from "../_chunks/use-countdown-Yd6ts0_a.js";
20
+ import { u as Ae } from "../_chunks/use-check-animation--I3cS00X.js";
21
+ import { R as Le, u as _e, a as Ce } from "../_chunks/use-list-reflow-Cw43nxw5.js";
22
+ import { u as be } from "../_chunks/use-presence-transition-cDwWUXV-.js";
23
+ import { u as Oe } from "../_chunks/use-clamp-overflow-DQE2kwZ9.js";
24
+ import { B as Pe, b as he, C as ve, a as ye, S as we, c as De, u as Ke } from "../_chunks/use-ai-sparkle-CyQSRTCe.js";
25
+ function _(e, o) {
26
+ const [t, i] = A(e), s = S(null);
26
27
  return E(() => {
27
28
  if (o <= 0) {
28
- u.current !== null && (clearTimeout(u.current), u.current = null), i(e);
29
+ s.current !== null && (clearTimeout(s.current), s.current = null), i(e);
29
30
  return;
30
31
  }
31
32
  const n = setTimeout(() => {
32
- i(e), u.current = null;
33
+ i(e), s.current = null;
33
34
  }, o);
34
- return u.current = n, () => clearTimeout(n);
35
+ return s.current = n, () => clearTimeout(n);
35
36
  }, [e, o]), t;
36
37
  }
37
- const S = [
38
+ const x = [
38
39
  "a[href]",
39
40
  "button:not([disabled])",
40
41
  'input:not([disabled]):not([type="hidden"])',
@@ -47,7 +48,7 @@ const S = [
47
48
  ].join(",");
48
49
  function p(e) {
49
50
  return Array.from(
50
- e.querySelectorAll(S)
51
+ e.querySelectorAll(x)
51
52
  ).filter((o) => {
52
53
  if (o.hidden) return !1;
53
54
  let t = o;
@@ -58,75 +59,82 @@ function p(e) {
58
59
  return !0;
59
60
  });
60
61
  }
61
- function L(e, o = {}) {
62
- const { enabled: t = !0, autoFocus: i = !0, restoreFocus: u = !0 } = o, n = x(null);
62
+ function C(e, o = {}) {
63
+ const { enabled: t = !0, autoFocus: i = !0, restoreFocus: s = !0 } = o, n = S(null);
63
64
  E(() => {
64
65
  if (!t) return;
65
66
  const a = e.current;
66
67
  if (!a) return;
67
68
  if (n.current = typeof document < "u" && document.activeElement instanceof HTMLElement ? document.activeElement : null, i) {
68
- const s = p(a)[0] ?? (a.tabIndex >= -1 ? a : null);
69
- s == null || s.focus();
69
+ const u = p(a)[0] ?? (a.tabIndex >= -1 ? a : null);
70
+ u == null || u.focus();
70
71
  }
71
72
  function f(r) {
72
73
  if (r.key !== "Tab") return;
73
- const s = e.current;
74
- if (!s) return;
75
- const c = p(s);
74
+ const u = e.current;
75
+ if (!u) return;
76
+ const c = p(u);
76
77
  if (c.length === 0) {
77
78
  r.preventDefault();
78
79
  return;
79
80
  }
80
81
  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());
82
+ r.shiftKey ? (l === m || !u.contains(l)) && (r.preventDefault(), d.focus()) : (l === d || !u.contains(l)) && (r.preventDefault(), m.focus());
82
83
  }
83
84
  return a.addEventListener("keydown", f), () => {
84
- if (a.removeEventListener("keydown", f), u && n.current) {
85
+ if (a.removeEventListener("keydown", f), s && n.current) {
85
86
  const r = n.current;
86
87
  requestAnimationFrame(() => {
87
88
  r.isConnected && r.focus();
88
89
  });
89
90
  }
90
91
  };
91
- }, [t, i, u, e]);
92
+ }, [t, i, s, e]);
92
93
  }
93
94
  export {
94
- M as ACCESSIBILITY_STORAGE_KEY,
95
- Te as REFLOW_ROW_CLASS,
96
- V as THEME_CLASS,
95
+ k as ACCESSIBILITY_STORAGE_KEY,
96
+ Pe as AI_SPARKLE_BURST_CLASS,
97
+ he as AI_SPARKLE_COMET_CLASS,
98
+ ve as AI_SPARKLE_COMET_TAIL,
99
+ ye as AI_SPARKLE_COMET_WRAPPER_CLASS,
100
+ we as AI_SPARKLE_GLYPHS,
101
+ De as AI_SPARKLE_SHIMMER_CLASS,
102
+ Le as REFLOW_ROW_CLASS,
103
+ H as THEME_CLASS,
97
104
  W as THEME_STORAGE_KEY,
98
- D as ZOOM_DRILLDOWN_TRANSITION_CLASS,
105
+ h as ZOOM_DRILLDOWN_TRANSITION_CLASS,
99
106
  ne as computePriorityLayout,
100
- H as resolveTheme,
101
- N as themeClassList,
102
- be as useCheckAnimation,
103
- ve as useClampOverflow,
104
- q as useControllableState,
105
- G as useCopyToClipboard,
106
- g as useCountUp,
107
- xe as useCountdown,
107
+ B as resolveTheme,
108
+ V as themeClassList,
109
+ Ke as useAiSparkle,
110
+ Ae as useCheckAnimation,
111
+ Oe as useClampOverflow,
112
+ N as useControllableState,
113
+ Z as useCopyToClipboard,
114
+ K as useCountUp,
115
+ Se as useCountdown,
108
116
  j as useDebouncedCallback,
109
- C as useDebouncedValue,
117
+ _ as useDebouncedValue,
110
118
  Q as useDirection,
111
119
  J as useDocumentDirection,
112
120
  de as useEdgeResize,
113
- Ce as useExitTransition,
114
- L as useFocusTrap,
121
+ _e as useExitTransition,
122
+ C as useFocusTrap,
115
123
  te as useIsomorphicLayoutEffect,
116
- Le as useListReflow,
117
- k as useLocale,
118
- y as useMediaQuery,
124
+ Ce as useListReflow,
125
+ M as useLocale,
126
+ I as useMediaQuery,
119
127
  oe as useOverflowCollapse,
120
128
  $ as usePersistentState,
121
- h as usePrefersReducedMotion,
122
- Oe as usePresenceTransition,
129
+ R as usePrefersReducedMotion,
130
+ be as usePresenceTransition,
123
131
  ae as usePriorityOverflow,
124
- ue as useScrollOverflow,
125
- R as useScrollToFirstError,
126
- _ as useSigningSession,
132
+ se as useScrollOverflow,
133
+ v as useScrollToFirstError,
134
+ y as useSigningSession,
127
135
  Y as useTheme,
128
136
  fe as useVisualViewportPin,
129
137
  ce as useWebOtp,
130
- F as useZoomDrilldown
138
+ w as useZoomDrilldown
131
139
  };
132
140
  //# 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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A,EAAU,YAAY,KAAKA,IAAY;AAC1D,MAAAU,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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