fancy-ui-svelte 0.5.0 → 0.7.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 +98 -74
- package/dist/fancy-ui/dock/index.d.ts +1 -1
- package/dist/fancy-ui/dock/index.js +0 -1
- package/dist/fancy-ui/editorial-engine/EditorialEngine.svelte +181 -0
- package/dist/fancy-ui/editorial-engine/EditorialEngine.svelte.d.ts +26 -0
- package/dist/fancy-ui/editorial-engine/README.md +56 -0
- package/dist/fancy-ui/editorial-engine/engine.d.ts +7 -0
- package/dist/fancy-ui/editorial-engine/engine.js +581 -0
- package/dist/fancy-ui/editorial-engine/index.d.ts +2 -0
- package/dist/fancy-ui/editorial-engine/index.js +1 -0
- package/dist/fancy-ui/frosted-glass/FrostedGlass.svelte +202 -0
- package/dist/fancy-ui/frosted-glass/FrostedGlass.svelte.d.ts +20 -0
- package/dist/fancy-ui/frosted-glass/FrostedGlass.test.d.ts +1 -0
- package/dist/fancy-ui/frosted-glass/FrostedGlass.test.js +48 -0
- package/dist/fancy-ui/frosted-glass/README.md +59 -0
- package/dist/fancy-ui/frosted-glass/index.d.ts +1 -0
- package/dist/fancy-ui/frosted-glass/index.js +1 -0
- package/dist/fancy-ui/index.d.ts +5 -0
- package/dist/fancy-ui/index.js +5 -0
- package/dist/fancy-ui/line-reveal/LineReveal.svelte +168 -0
- package/dist/fancy-ui/line-reveal/LineReveal.svelte.d.ts +33 -0
- package/dist/fancy-ui/line-reveal/README.md +42 -0
- package/dist/fancy-ui/line-reveal/index.d.ts +2 -0
- package/dist/fancy-ui/line-reveal/index.js +1 -0
- package/dist/fancy-ui/noise-reveal/NoiseReveal.svelte +323 -0
- package/dist/fancy-ui/noise-reveal/NoiseReveal.svelte.d.ts +19 -0
- package/dist/fancy-ui/noise-reveal/NoiseReveal.test.d.ts +1 -0
- package/dist/fancy-ui/noise-reveal/NoiseReveal.test.js +123 -0
- package/dist/fancy-ui/noise-reveal/index.d.ts +2 -0
- package/dist/fancy-ui/noise-reveal/index.js +1 -0
- package/dist/fancy-ui/registry.js +196 -11
- package/dist/fancy-ui/themes.d.ts +38 -0
- package/dist/fancy-ui/themes.js +356 -0
- package/dist/types.d.ts +2 -0
- package/dist/utils/animation.d.ts +109 -0
- package/dist/utils/animation.js +198 -0
- package/dist/utils/color.d.ts +128 -0
- package/dist/utils/color.js +314 -0
- package/dist/utils/geometry.d.ts +125 -0
- package/dist/utils/geometry.js +250 -0
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/index.js +39 -0
- package/package.json +13 -3
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utilities barrel export
|
|
3
|
+
*/
|
|
4
|
+
// Re-export existing utilities from parent
|
|
5
|
+
export { cn } from "../utils.js";
|
|
6
|
+
// Animation utilities
|
|
7
|
+
export {
|
|
8
|
+
// Spring presets
|
|
9
|
+
springPresets,
|
|
10
|
+
// Easing functions
|
|
11
|
+
linear, easeIn, easeOut, easeInOut, easeInCubic, easeOutCubic, easeInOutCubic, easeOutBounce, easeOutElastic, easeOutBack,
|
|
12
|
+
// Animation helpers
|
|
13
|
+
lerp, clamp, mapRange, springStep, isSpringAtRest, staggerDelay, getProgress, getDurationFromCSS, rafDebounce, rafThrottle, } from "./animation.js";
|
|
14
|
+
// Geometry utilities
|
|
15
|
+
export {
|
|
16
|
+
// Point operations
|
|
17
|
+
point, addPoints, subtractPoints, scalePoint, midpoint,
|
|
18
|
+
// Distance & angle
|
|
19
|
+
distance, distanceSquared, angle, angleDegrees, radToDeg, degToRad, normalizeAngle,
|
|
20
|
+
// Mouse & element positions
|
|
21
|
+
getRelativeMousePosition, getRelativeMousePercent, getRelativeMouseCentered, getElementCenter, getElementLocalCenter,
|
|
22
|
+
// Direction detection
|
|
23
|
+
getEntryDirection, getOppositeDirection, getNearestCorner,
|
|
24
|
+
// Rect & bounds
|
|
25
|
+
isPointInRect, getRect, expandRect,
|
|
26
|
+
// Transforms
|
|
27
|
+
calculateTiltTransform, calculateSpotlightPosition, } from "./geometry.js";
|
|
28
|
+
// Color utilities
|
|
29
|
+
export {
|
|
30
|
+
// Color parsing
|
|
31
|
+
hexToRgb, rgbToHex, parseHsl, hslToString, parseOklch, oklchToString,
|
|
32
|
+
// Color conversion
|
|
33
|
+
rgbToHsl, hslToRgb,
|
|
34
|
+
// Color manipulation
|
|
35
|
+
lighten, darken, saturate, desaturate, shiftHue, complementary, interpolateColor,
|
|
36
|
+
// Gradient generation
|
|
37
|
+
linearGradient, radialGradient, conicGradient, getRainbowColors, getThemeGradient,
|
|
38
|
+
// Color utilities
|
|
39
|
+
getCssVariable, setCssVariable, randomColor, isLightColor, getContrastColor, withAlpha, } from "./color.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fancy-ui-svelte",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"files": [
|
|
28
28
|
"dist/fancy-ui",
|
|
29
|
+
"dist/utils",
|
|
29
30
|
"dist/utils.js",
|
|
30
31
|
"dist/utils.d.ts",
|
|
31
32
|
"dist/types.js",
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
"tailwindcss": "^4.0.0"
|
|
51
52
|
},
|
|
52
53
|
"dependencies": {
|
|
53
|
-
"@
|
|
54
|
+
"@chenglou/pretext": "^0.0.5",
|
|
54
55
|
"canvas-confetti": "^1.9.4",
|
|
55
56
|
"clsx": "^2.1.1",
|
|
56
57
|
"gsap": "^3.14.2",
|
|
@@ -59,9 +60,14 @@
|
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
|
61
62
|
"@changesets/cli": "^2.30.0",
|
|
63
|
+
"@vercel/analytics": "^2.0.1",
|
|
62
64
|
"@internationalized/date": "^3.10.1",
|
|
63
65
|
"@lucide/svelte": "^0.562.0",
|
|
64
66
|
"@playwright/test": "^1.58.2",
|
|
67
|
+
"@storybook/addon-a11y": "^10.4.6",
|
|
68
|
+
"@storybook/addon-docs": "^10.4.6",
|
|
69
|
+
"@storybook/addon-svelte-csf": "^5.1.2",
|
|
70
|
+
"@storybook/sveltekit": "^10.4.6",
|
|
65
71
|
"@sveltejs/adapter-auto": "^7.0.0",
|
|
66
72
|
"@sveltejs/kit": "^2.49.1",
|
|
67
73
|
"@sveltejs/package": "^2.5.7",
|
|
@@ -86,6 +92,7 @@
|
|
|
86
92
|
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
87
93
|
"publint": "^0.3.18",
|
|
88
94
|
"shiki": "^4.0.2",
|
|
95
|
+
"storybook": "^10.4.6",
|
|
89
96
|
"svelte": "^5.45.6",
|
|
90
97
|
"svelte-check": "^4.3.4",
|
|
91
98
|
"tailwind-variants": "^3.2.2",
|
|
@@ -101,6 +108,7 @@
|
|
|
101
108
|
"preview": "vite preview",
|
|
102
109
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
103
110
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
111
|
+
"check:registry": "node scripts/check-registry.mjs",
|
|
104
112
|
"test": "vitest run",
|
|
105
113
|
"test:watch": "vitest",
|
|
106
114
|
"test:e2e": "playwright test",
|
|
@@ -108,6 +116,8 @@
|
|
|
108
116
|
"changeset": "changeset",
|
|
109
117
|
"version": "changeset version",
|
|
110
118
|
"release": "changeset tag",
|
|
111
|
-
"package": "svelte-kit sync && svelte-package -i src/lib -o dist && node -e \"const fs=require('fs'); ['dist/builder','dist/server','dist/stores'].forEach(p=>fs.rmSync(p,{recursive:true,force:true}));\" && publint"
|
|
119
|
+
"package": "svelte-kit sync && svelte-package -i src/lib -o dist && node -e \"const fs=require('fs'); ['dist/builder','dist/server','dist/stores'].forEach(p=>fs.rmSync(p,{recursive:true,force:true}));\" && publint",
|
|
120
|
+
"storybook": "storybook dev -p 6006",
|
|
121
|
+
"build-storybook": "storybook build"
|
|
112
122
|
}
|
|
113
123
|
}
|