@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.
- package/dist/_chunks/ai-sparkle-DXeP_6a0.js +52 -0
- package/dist/_chunks/ai-sparkle-DXeP_6a0.js.map +1 -0
- package/dist/_chunks/{calendar-workspace-DBYAtdyd.js → calendar-workspace-B7KvZ1_D.js} +2 -2
- package/dist/_chunks/{calendar-workspace-DBYAtdyd.js.map → calendar-workspace-B7KvZ1_D.js.map} +1 -1
- package/dist/_chunks/{notes-panel-CY4KmDo-.js → notes-panel-Dkk9QPPX.js} +2 -2
- package/dist/_chunks/{notes-panel-CY4KmDo-.js.map → notes-panel-Dkk9QPPX.js.map} +1 -1
- package/dist/_chunks/{rich-text-editor-BYE6kK4u.js → rich-text-editor-BrAvNajV.js} +1207 -1267
- package/dist/_chunks/rich-text-editor-BrAvNajV.js.map +1 -0
- package/dist/_chunks/use-ai-sparkle-CyQSRTCe.js +103 -0
- package/dist/_chunks/use-ai-sparkle-CyQSRTCe.js.map +1 -0
- package/dist/agent-catalog.json +1 -1
- package/dist/components/ai-sparkle/ai-sparkle.d.ts +24 -0
- package/dist/components/ai-sparkle/ai-sparkle.d.ts.map +1 -0
- package/dist/components/ai-sparkle/index.d.ts +3 -0
- package/dist/components/ai-sparkle/index.d.ts.map +1 -0
- package/dist/components/ai-sparkle/index.js +5 -0
- package/dist/components/ai-sparkle/index.js.map +1 -0
- package/dist/components/index.d.ts +3 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +64 -56
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/use-ai-sparkle.d.ts +109 -0
- package/dist/hooks/use-ai-sparkle.d.ts.map +1 -0
- package/dist/index.js +1106 -1102
- package/dist/index.js.map +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/package.json +1 -1
- package/dist/_chunks/rich-text-editor-BYE6kK4u.js.map +0 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as i } from "react";
|
|
3
|
+
import { c as p } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { C as m, a as o, b as e, S as c, B as t } from "./use-ai-sparkle-CyQSRTCe.js";
|
|
5
|
+
import { A as n } from "./astroid-BN4f5VXU.js";
|
|
6
|
+
const k = p("ds:pointer-events-none", {
|
|
7
|
+
variants: {
|
|
8
|
+
state: {
|
|
9
|
+
intro: "",
|
|
10
|
+
working: "",
|
|
11
|
+
landed: ""
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}), S = i(
|
|
15
|
+
({ state: s }, d) => s ? /* @__PURE__ */ l(
|
|
16
|
+
"span",
|
|
17
|
+
{
|
|
18
|
+
ref: d,
|
|
19
|
+
"data-component": "ai-sparkle",
|
|
20
|
+
"aria-hidden": "true",
|
|
21
|
+
className: k({ state: s }),
|
|
22
|
+
children: [
|
|
23
|
+
m.map((a) => /* @__PURE__ */ r(
|
|
24
|
+
"span",
|
|
25
|
+
{
|
|
26
|
+
className: `${o} ${e[s]} ${a.lag}`,
|
|
27
|
+
children: /* @__PURE__ */ r(
|
|
28
|
+
"span",
|
|
29
|
+
{
|
|
30
|
+
className: `ds:block ds:rounded-full ds:bg-[var(--ai-sparkle)] ds:shadow-[0_0_var(--spacing-2xs)_var(--ai-sparkle)] ${a.dot}`
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
},
|
|
34
|
+
a.key
|
|
35
|
+
)),
|
|
36
|
+
/* @__PURE__ */ r("span", { className: `${o} ${e[s]}`, children: /* @__PURE__ */ r(n, { className: "ds:block ds:size-3 ds:fill-current ds:text-[color:var(--primary-foreground)] ds:drop-shadow-[0_0_var(--spacing-2xs)_var(--ai-sparkle)]" }) }),
|
|
37
|
+
c.map((a) => /* @__PURE__ */ r(
|
|
38
|
+
n,
|
|
39
|
+
{
|
|
40
|
+
className: `${a.className} ${t[s]}`
|
|
41
|
+
},
|
|
42
|
+
a.key
|
|
43
|
+
))
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
) : null
|
|
47
|
+
);
|
|
48
|
+
S.displayName = "AiSparkle";
|
|
49
|
+
export {
|
|
50
|
+
S as A
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=ai-sparkle-DXeP_6a0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-sparkle-DXeP_6a0.js","sources":["../../src/components/ai-sparkle/ai-sparkle.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport { cva } from 'class-variance-authority';\nimport { Astroid } from 'lucide-react';\nimport {\n type AiSparkleState,\n BURST_CLASS,\n COMET_CLASS,\n COMET_TAIL,\n COMET_WRAPPER_CLASS,\n SPARKLE_GLYPHS,\n} from '../../hooks/use-ai-sparkle';\n\nexport type { AiSparkleState };\n\nexport interface AiSparkleProps {\n /**\n * The current phase, from `useAiSparkle`. Renders nothing when `null` —\n * callers don't need to guard the mount themselves.\n */\n state: AiSparkleState | null;\n}\n\n// No visual differs by variant today (each state's look lives in the class\n// tables the hook exports) — the CVA still names `state` as the component's\n// one variant axis, per the kit's \"CVA for variants\" rule, and is the seam\n// a future state-specific wrapper class would hang off.\nconst sparkleVariants = cva('ds:pointer-events-none', {\n variants: {\n state: {\n intro: '',\n working: '',\n landed: '',\n },\n },\n});\n\n/**\n * The AI pill's comet + burst sparkle: a comet with a six-dot tail riding\n * the host's rounded outline, plus five staggered stars that burst (intro,\n * landed) or twinkle (working) around it.\n *\n * Purely decorative (`aria-hidden`) and stateless — pass the `state` from\n * `useAiSparkle`. The shimmer layer (a light sweep across the host itself)\n * is not part of this component: it needs no extra DOM, so it travels as\n * a class string on `useAiSparkle(...).props.className` instead. Position\n * this component's host with `relative` (or `absolute`) sizing that matches\n * the surface the sparkle decorates — it fills `inset-0` of its offset\n * parent via the comet's `offset-path`.\n */\nexport const AiSparkle = forwardRef<HTMLSpanElement, AiSparkleProps>(\n ({ state }, ref) => {\n if (!state) return null;\n\n return (\n <span\n ref={ref}\n data-component=\"ai-sparkle\"\n aria-hidden=\"true\"\n className={sparkleVariants({ state })}\n >\n {COMET_TAIL.map((piece) => (\n <span\n key={piece.key}\n className={`${COMET_WRAPPER_CLASS} ${COMET_CLASS[state]} ${piece.lag}`}\n >\n <span\n className={`ds:block ds:rounded-full ds:bg-[var(--ai-sparkle)] ds:shadow-[0_0_var(--spacing-2xs)_var(--ai-sparkle)] ${piece.dot}`}\n />\n </span>\n ))}\n <span className={`${COMET_WRAPPER_CLASS} ${COMET_CLASS[state]}`}>\n <Astroid className=\"ds:block ds:size-3 ds:fill-current ds:text-[color:var(--primary-foreground)] ds:drop-shadow-[0_0_var(--spacing-2xs)_var(--ai-sparkle)]\" />\n </span>\n {SPARKLE_GLYPHS.map((glyph) => (\n <Astroid\n key={glyph.key}\n className={`${glyph.className} ${BURST_CLASS[state]}`}\n />\n ))}\n </span>\n );\n },\n);\n\nAiSparkle.displayName = 'AiSparkle';\n"],"names":["sparkleVariants","cva","AiSparkle","forwardRef","state","ref","jsxs","COMET_TAIL","piece","jsx","COMET_WRAPPER_CLASS","COMET_CLASS","Astroid","SPARKLE_GLYPHS","glyph","BURST_CLASS"],"mappings":";;;;;AA0BA,MAAMA,IAAkBC,EAAI,0BAA0B;AAAA,EACpD,UAAU;AAAA,IACR,OAAO;AAAA,MACL,OAAO;AAAA,MACP,SAAS;AAAA,MACT,QAAQ;AAAA,IAAA;AAAA,EACV;AAEJ,CAAC,GAeYC,IAAYC;AAAA,EACvB,CAAC,EAAE,OAAAC,EAAA,GAASC,MACLD,IAGH,gBAAAE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAAD;AAAA,MACA,kBAAe;AAAA,MACf,eAAY;AAAA,MACZ,WAAWL,EAAgB,EAAE,OAAAI,GAAO;AAAA,MAEnC,UAAA;AAAA,QAAAG,EAAW,IAAI,CAACC,MACf,gBAAAC;AAAA,UAAC;AAAA,UAAA;AAAA,YAEC,WAAW,GAAGC,CAAmB,IAAIC,EAAYP,CAAK,CAAC,IAAII,EAAM,GAAG;AAAA,YAEpE,UAAA,gBAAAC;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,WAAW,2GAA2GD,EAAM,GAAG;AAAA,cAAA;AAAA,YAAA;AAAA,UACjI;AAAA,UALKA,EAAM;AAAA,QAAA,CAOd;AAAA,QACD,gBAAAC,EAAC,QAAA,EAAK,WAAW,GAAGC,CAAmB,IAAIC,EAAYP,CAAK,CAAC,IAC3D,UAAA,gBAAAK,EAACG,GAAA,EAAQ,WAAU,0IAAyI,GAC9J;AAAA,QACCC,EAAe,IAAI,CAACC,MACnB,gBAAAL;AAAA,UAACG;AAAA,UAAA;AAAA,YAEC,WAAW,GAAGE,EAAM,SAAS,IAAIC,EAAYX,CAAK,CAAC;AAAA,UAAA;AAAA,UAD9CU,EAAM;AAAA,QAAA,CAGd;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,IA3Bc;AA+BvB;AAEAZ,EAAU,cAAc;"}
|
|
@@ -28,7 +28,7 @@ import { S as Kt } from "./switch-OILsBLWo.js";
|
|
|
28
28
|
import { T as Vs } from "./text-area-Bt3p7Pt0.js";
|
|
29
29
|
import { T as ai } from "./text-input-CUvCb6ST.js";
|
|
30
30
|
import { T as Pr } from "./time-picker-D0RS391l.js";
|
|
31
|
-
import { g as ts, N as Jo } from "./notes-panel-
|
|
31
|
+
import { g as ts, N as Jo } from "./notes-panel-Dkk9QPPX.js";
|
|
32
32
|
import { E as gs } from "./empty-state-BUN_UAWf.js";
|
|
33
33
|
import { S as ha } from "./section-card-XR2bW1Ie.js";
|
|
34
34
|
import { V as qt } from "./visually-hidden-BHxEUGyT.js";
|
|
@@ -12158,4 +12158,4 @@ export {
|
|
|
12158
12158
|
fp as r,
|
|
12159
12159
|
Fn as u
|
|
12160
12160
|
};
|
|
12161
|
-
//# sourceMappingURL=calendar-workspace-
|
|
12161
|
+
//# sourceMappingURL=calendar-workspace-B7KvZ1_D.js.map
|