@dreamtree-org/twreact-ui 2.1.2 → 2.2.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/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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dreamtree-org/twreact-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "A comprehensive React + Tailwind components library for building modern web apps",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Partha Preetham Krishna",
|
|
@@ -27,6 +27,11 @@
|
|
|
27
27
|
"module": "./dist/esm/rich-text/index.js",
|
|
28
28
|
"default": "./dist/rich-text/index.js"
|
|
29
29
|
},
|
|
30
|
+
"./motion": {
|
|
31
|
+
"types": "./dist/motion/index.d.ts",
|
|
32
|
+
"module": "./dist/esm/motion/index.js",
|
|
33
|
+
"default": "./dist/motion/index.js"
|
|
34
|
+
},
|
|
30
35
|
"./package.json": "./package.json",
|
|
31
36
|
"./*": "./*"
|
|
32
37
|
},
|
|
@@ -40,6 +45,7 @@
|
|
|
40
45
|
"dist",
|
|
41
46
|
"charts/package.json",
|
|
42
47
|
"rich-text/package.json",
|
|
48
|
+
"motion/package.json",
|
|
43
49
|
"bin/cli.mjs",
|
|
44
50
|
"mcp/server-core.mjs",
|
|
45
51
|
"mcp/catalog-core.mjs",
|
|
@@ -58,7 +64,8 @@
|
|
|
58
64
|
"README.md"
|
|
59
65
|
],
|
|
60
66
|
"scripts": {
|
|
61
|
-
"build": "npm run build:types && npm run build:tokens && npm run build:js && node scripts/gen-typed-dts.mjs && npm run gen:ai-schema",
|
|
67
|
+
"build": "npm run build:types && npm run build:tokens && npm run build:js && node scripts/gen-typed-dts.mjs && npm run gen:ai-schema && npm run motion:size",
|
|
68
|
+
"motion:size": "node scripts/check-motion-size.mjs",
|
|
62
69
|
"build:types": "tsc --project tsconfig.build.json --emitDeclarationOnly --outDir dist && node scripts/gen-typed-dts.mjs",
|
|
63
70
|
"build:tokens": "node scripts/build-tokens.mjs",
|
|
64
71
|
"tokens:check": "node scripts/build-tokens.mjs --check",
|
|
@@ -121,7 +128,8 @@
|
|
|
121
128
|
"@tiptap/pm": "^3.0.0",
|
|
122
129
|
"@tiptap/react": "^3.0.0",
|
|
123
130
|
"@tiptap/starter-kit": "^3.0.0",
|
|
124
|
-
"recharts": "^2.15.0 || ^3.0.0"
|
|
131
|
+
"recharts": "^2.15.0 || ^3.0.0",
|
|
132
|
+
"lenis": "^1.1.0"
|
|
125
133
|
},
|
|
126
134
|
"peerDependenciesMeta": {
|
|
127
135
|
"@tiptap/pm": {
|
|
@@ -135,6 +143,9 @@
|
|
|
135
143
|
},
|
|
136
144
|
"recharts": {
|
|
137
145
|
"optional": true
|
|
146
|
+
},
|
|
147
|
+
"lenis": {
|
|
148
|
+
"optional": true
|
|
138
149
|
}
|
|
139
150
|
},
|
|
140
151
|
"dependencies": {
|
package/tokens/tokens.json
CHANGED
|
@@ -186,5 +186,11 @@
|
|
|
186
186
|
"standard": { "$value": [0.2, 0, 0, 1], "$description": "Default for moving and resizing." },
|
|
187
187
|
"emphasized": { "$value": [0.05, 0.7, 0.1, 1], "$description": "Entering surfaces (decelerate)." },
|
|
188
188
|
"spring-out": { "$value": [0.34, 1.56, 0.64, 1], "$description": "Small overshoot for sheets settling and toggles." }
|
|
189
|
+
},
|
|
190
|
+
"scroll": {
|
|
191
|
+
"$description": "Scroll-storytelling defaults read by the /motion components (ScrollStage, StackedCards, DeviceMorphHero).",
|
|
192
|
+
"stickyTop": { "$type": "dimension", "$value": { "value": 80, "unit": "px" }, "$description": "Offset from the top of the viewport where stacked cards stick (clears a floating nav)." },
|
|
193
|
+
"sceneLength": { "$type": "number", "$value": 300, "$description": "Default pinned scene length on desktop, in vh (viewport heights)." },
|
|
194
|
+
"sceneLengthMobile": { "$type": "number", "$value": 150, "$description": "Default pinned scene length below the md breakpoint, in vh." }
|
|
189
195
|
}
|
|
190
196
|
}
|