@arcadeai/design-system 3.38.0 → 3.38.1

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.
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Duration (in milliseconds) of the burst animation; matches
3
+ * `--ds-sparkle-duration` in `tokens.css`. Exposed for consumers that need to
4
+ * coordinate other UI with the burst lifecycle.
5
+ */
6
+ export declare const DS_SPARKLE_DURATION_MS = 800;
7
+ export type SparkleBurstProps = {
8
+ iconClassName?: string;
9
+ };
10
+ /**
11
+ * One-shot sparkle burst: four icons animate outward via `.ds-sparkle-particle`
12
+ * in `tokens.css` (opacity-only fade under `prefers-reduced-motion: reduce`),
13
+ * then hold at `opacity: 0` thanks to `animation-fill-mode: forwards`. Mount
14
+ * once to celebrate; remount via a `key` change to replay.
15
+ *
16
+ * Intended to be rendered inside an `aria-hidden`, `pointer-events-none`
17
+ * overlay. `StepsProgress` uses it internally when `animateStepTransitions`
18
+ * is enabled; you can also drop it into your own decorative wrappers.
19
+ */
20
+ export declare function SparkleBurst({ iconClassName }?: SparkleBurstProps): import("react/jsx-runtime").JSX.Element;
21
+ //# sourceMappingURL=sparkle-burst.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sparkle-burst.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/atoms/sparkle-burst.tsx"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAS1C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,EAAE,aAAa,EAAE,GAAE,iBAAsB,2CAoBrE"}
@@ -0,0 +1,29 @@
1
+ import { jsx as p, Fragment as x } from "react/jsx-runtime";
2
+ import { Sparkles as e } from "lucide-react";
3
+ import { cn as s } from "../../../lib/utils.js";
4
+ const i = 800, a = [
5
+ { tx: "-14px", ty: "-14px" },
6
+ { tx: "14px", ty: "-14px" },
7
+ { tx: "-14px", ty: "14px" },
8
+ { tx: "14px", ty: "14px" }
9
+ ];
10
+ function n({ iconClassName: r } = {}) {
11
+ return /* @__PURE__ */ p(x, { children: a.map((t) => /* @__PURE__ */ p(
12
+ e,
13
+ {
14
+ className: s(
15
+ "ds-sparkle-particle size-3 text-primary",
16
+ r
17
+ ),
18
+ style: {
19
+ "--sparkle-tx": t.tx,
20
+ "--sparkle-ty": t.ty
21
+ }
22
+ },
23
+ `${t.tx}-${t.ty}`
24
+ )) });
25
+ }
26
+ export {
27
+ i as DS_SPARKLE_DURATION_MS,
28
+ n as SparkleBurst
29
+ };