@dreamtree-org/twreact-ui 2.1.2 → 2.2.5
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/README.md +47 -4
- package/ai-skills/dreamtree-ui.md +20 -3
- package/dist/_shared/{cn-DPPQUJu1.js → cn-TMJ-_w1a.js} +14 -1
- package/dist/_shared/useLatestRef-CdtlnPUz.js +21 -0
- package/dist/_shared/useReducedMotion-B_PMM5ER.js +77 -0
- package/dist/ai-schema.json +513 -0
- package/dist/charts/index.js +6 -76
- package/dist/components/motion/BentoExpandGrid.d.ts +10 -0
- package/dist/components/motion/BentoExpandGrid.d.ts.map +1 -0
- package/dist/components/motion/CountUp.d.ts +9 -0
- package/dist/components/motion/CountUp.d.ts.map +1 -0
- package/dist/components/motion/DeviceFrame.d.ts +8 -0
- package/dist/components/motion/DeviceFrame.d.ts.map +1 -0
- package/dist/components/motion/DeviceMorphHero.d.ts +11 -0
- package/dist/components/motion/DeviceMorphHero.d.ts.map +1 -0
- package/dist/components/motion/LogoMarquee.d.ts +9 -0
- package/dist/components/motion/LogoMarquee.d.ts.map +1 -0
- package/dist/components/motion/PhotoCollage.d.ts +9 -0
- package/dist/components/motion/PhotoCollage.d.ts.map +1 -0
- package/dist/components/motion/Reveal.d.ts +9 -0
- package/dist/components/motion/Reveal.d.ts.map +1 -0
- package/dist/components/motion/RevealGroup.d.ts +5 -0
- package/dist/components/motion/RevealGroup.d.ts.map +1 -0
- package/dist/components/motion/RotatingBadge.d.ts +9 -0
- package/dist/components/motion/RotatingBadge.d.ts.map +1 -0
- package/dist/components/motion/ScrollStage.d.ts +11 -0
- package/dist/components/motion/ScrollStage.d.ts.map +1 -0
- package/dist/components/motion/SmoothScrollProvider.d.ts +18 -0
- package/dist/components/motion/SmoothScrollProvider.d.ts.map +1 -0
- package/dist/components/motion/StackedCards.d.ts +10 -0
- package/dist/components/motion/StackedCards.d.ts.map +1 -0
- package/dist/components/motion/StatStrip.d.ts +8 -0
- package/dist/components/motion/StatStrip.d.ts.map +1 -0
- package/dist/components/motion/TestimonialSpotlight.d.ts +10 -0
- package/dist/components/motion/TestimonialSpotlight.d.ts.map +1 -0
- package/dist/components/motion/storyData.d.ts +52 -0
- package/dist/components/motion/storyData.d.ts.map +1 -0
- package/dist/esm/components/motion/BentoExpandGrid.js +144 -0
- package/dist/esm/components/motion/CountUp.js +97 -0
- package/dist/esm/components/motion/DeviceFrame.js +102 -0
- package/dist/esm/components/motion/DeviceMorphHero.js +228 -0
- package/dist/esm/components/motion/LogoMarquee.js +144 -0
- package/dist/esm/components/motion/PhotoCollage.js +92 -0
- package/dist/esm/components/motion/Reveal.js +115 -0
- package/dist/esm/components/motion/RevealGroup.js +43 -0
- package/dist/esm/components/motion/RotatingBadge.js +66 -0
- package/dist/esm/components/motion/ScrollStage.js +62 -0
- package/dist/esm/components/motion/SmoothScrollProvider.js +63 -0
- package/dist/esm/components/motion/StackedCards.js +166 -0
- package/dist/esm/components/motion/StatStrip.js +58 -0
- package/dist/esm/components/motion/TestimonialSpotlight.js +209 -0
- package/dist/esm/hooks/useScrollProgress.js +107 -0
- package/dist/esm/hooks/useSmoothScroll.js +33 -0
- package/dist/esm/motion/engine/inView.js +54 -0
- package/dist/esm/motion/engine/progress.js +45 -0
- package/dist/esm/motion/engine/scheduler.js +67 -0
- package/dist/esm/motion/engine/useHydrated.js +17 -0
- package/dist/esm/motion/engine/useIsomorphicLayoutEffect.js +7 -0
- package/dist/esm/motion/engine/useMergedRef.js +12 -0
- package/dist/esm/motion/index.js +16 -0
- package/dist/esm/motion/tokens.js +10 -0
- package/dist/hooks/useScrollProgress.d.ts +17 -0
- package/dist/hooks/useScrollProgress.d.ts.map +1 -0
- package/dist/hooks/useSmoothScroll.d.ts +11 -0
- package/dist/hooks/useSmoothScroll.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.esm.css +1 -1
- package/dist/motion/engine/inView.d.ts +5 -0
- package/dist/motion/engine/inView.d.ts.map +1 -0
- package/dist/motion/engine/progress.d.ts +18 -0
- package/dist/motion/engine/progress.d.ts.map +1 -0
- package/dist/motion/engine/scheduler.d.ts +10 -0
- package/dist/motion/engine/scheduler.d.ts.map +1 -0
- package/dist/motion/engine/useHydrated.d.ts +3 -0
- package/dist/motion/engine/useHydrated.d.ts.map +1 -0
- package/dist/motion/engine/useIsomorphicLayoutEffect.d.ts +4 -0
- package/dist/motion/engine/useIsomorphicLayoutEffect.d.ts.map +1 -0
- package/dist/motion/engine/useMergedRef.d.ts +3 -0
- package/dist/motion/engine/useMergedRef.d.ts.map +1 -0
- package/dist/motion/index.d.ts +20 -0
- package/dist/motion/index.d.ts.map +1 -0
- package/dist/motion/index.js +1813 -0
- package/dist/motion/tokens.d.ts +6 -0
- package/dist/motion/tokens.d.ts.map +1 -0
- package/dist/rich-text/index.js +3 -18
- package/dist/tokens/tokens.json +21 -0
- package/dist/types/motion.d.ts +290 -0
- package/dist/types/motion.d.ts.map +1 -0
- package/doc/README.md +17 -1
- package/mcp/catalog.snapshot.json +952 -5
- package/motion/package.json +5 -0
- package/package.json +14 -3
- package/tokens/tokens.json +6 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/motion/engine/progress.js"],"names":[],"mappings":"AAeA;;;;;;GAMG;AACH;;;;QASC;AA7BM,qCAAoD;AAEpD,kDAAyC;AAGzC,wCAA6C;AAG7C,0CAAoF;AAGpF,yDAAuE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Ask for one frame (coalesced: many calls before the frame run it once). */
|
|
2
|
+
export function requestFrame(): void;
|
|
3
|
+
/**
|
|
4
|
+
* Register `{ measure?, write?, loop? }`. Returns the unsubscribe function.
|
|
5
|
+
* The subscriber gets a frame right away, so it can paint its first state.
|
|
6
|
+
*/
|
|
7
|
+
export function subscribe(subscriber: any): () => void;
|
|
8
|
+
/** Test helper: number of live subscribers. */
|
|
9
|
+
export function subscriberCount(): number;
|
|
10
|
+
//# sourceMappingURL=scheduler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scheduler.d.ts","sourceRoot":"","sources":["../../../src/motion/engine/scheduler.js"],"names":[],"mappings":"AA+BA,8EAA8E;AAC9E,qCAGC;AAYD;;;GAGG;AACH,uDAYC;AAED,+CAA+C;AAC/C,0CAEC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useHydrated.d.ts","sourceRoot":"","sources":["../../../src/motion/engine/useHydrated.js"],"names":[],"mappings":"AAMA,uCAMC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsomorphicLayoutEffect.d.ts","sourceRoot":"","sources":["../../../src/motion/engine/useIsomorphicLayoutEffect.js"],"names":[],"mappings":"AAGA,yDAAqG;;0BAH1D,OAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMergedRef.d.ts","sourceRoot":"","sources":["../../../src/motion/engine/useMergedRef.js"],"names":[],"mappings":"AAIA,oFAEC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { BentoExpandGridProps, CountUpProps, DeviceFrameProps, DeviceMorphHeroProps, LogoMarqueeProps, PhotoCollageProps, RevealGroupProps, RevealProps, RotatingBadgeProps, ScrollStageProps, SmoothScrollProviderProps, StackedCardsProps, StatStripProps, TestimonialSpotlightProps } from "../types/motion";
|
|
3
|
+
export { useScrollProgress } from "../hooks/useScrollProgress";
|
|
4
|
+
export declare const ScrollStage: React.ForwardRefExoticComponent<ScrollStageProps & React.RefAttributes<HTMLElement>>;
|
|
5
|
+
export declare const Reveal: React.ForwardRefExoticComponent<RevealProps & React.RefAttributes<HTMLElement>>;
|
|
6
|
+
export declare const RevealGroup: React.ForwardRefExoticComponent<RevealGroupProps & React.RefAttributes<HTMLElement>>;
|
|
7
|
+
export declare const SmoothScrollProvider: React.ForwardRefExoticComponent<SmoothScrollProviderProps & React.RefAttributes<any>>;
|
|
8
|
+
export { useSmoothScroll } from "../hooks/useSmoothScroll";
|
|
9
|
+
export declare const DeviceFrame: React.ForwardRefExoticComponent<DeviceFrameProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export declare const LogoMarquee: React.ForwardRefExoticComponent<LogoMarqueeProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export declare const CountUp: React.ForwardRefExoticComponent<CountUpProps & React.RefAttributes<HTMLSpanElement>>;
|
|
12
|
+
export declare const StatStrip: React.ForwardRefExoticComponent<StatStripProps & React.RefAttributes<HTMLDListElement>>;
|
|
13
|
+
export declare const StackedCards: React.ForwardRefExoticComponent<StackedCardsProps & React.RefAttributes<HTMLOListElement>>;
|
|
14
|
+
export declare const DeviceMorphHero: React.ForwardRefExoticComponent<DeviceMorphHeroProps & React.RefAttributes<HTMLElement>>;
|
|
15
|
+
export declare const BentoExpandGrid: React.ForwardRefExoticComponent<BentoExpandGridProps & React.RefAttributes<HTMLUListElement>>;
|
|
16
|
+
export declare const TestimonialSpotlight: React.ForwardRefExoticComponent<TestimonialSpotlightProps & React.RefAttributes<HTMLElement>>;
|
|
17
|
+
export declare const PhotoCollage: React.ForwardRefExoticComponent<PhotoCollageProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
export declare const RotatingBadge: React.ForwardRefExoticComponent<RotatingBadgeProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
export * from "../types/motion";
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/motion/index.js"],"names":[],"mappings":""}
|