aura-glass 2.1.4 → 2.16.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 +10 -2
- package/dist/components/accessibility/GlassFocusIndicators.d.ts.map +1 -1
- package/dist/components/advanced/GlassProgressiveEnhancement.d.ts +1 -1
- package/dist/components/advanced/GlassProgressiveEnhancement.d.ts.map +1 -1
- package/dist/components/ar/ARGlassEffects.d.ts +4 -62
- package/dist/components/ar/ARGlassEffects.d.ts.map +1 -1
- package/dist/components/ar/ARGlassEffects.helpers.d.ts +40 -0
- package/dist/components/ar/ARGlassEffects.helpers.d.ts.map +1 -0
- package/dist/components/ar/ARGlassEffects.r3f.d.ts +25 -0
- package/dist/components/ar/ARGlassEffects.r3f.d.ts.map +1 -0
- package/dist/components/charts/ModularGlassDataChart.d.ts.map +1 -1
- package/dist/components/charts/hooks/useQualityTier.d.ts +1 -1
- package/dist/components/effects/AuroraPro.d.ts +4 -70
- package/dist/components/effects/AuroraPro.d.ts.map +1 -1
- package/dist/components/effects/AuroraPro.presets.d.ts +54 -0
- package/dist/components/effects/AuroraPro.presets.d.ts.map +1 -0
- package/dist/components/effects/AuroraPro.r3f.d.ts +20 -0
- package/dist/components/effects/AuroraPro.r3f.d.ts.map +1 -0
- package/dist/components/effects/GlassShatterEffects.d.ts +4 -47
- package/dist/components/effects/GlassShatterEffects.d.ts.map +1 -1
- package/dist/components/effects/GlassShatterEffects.presets.d.ts +32 -0
- package/dist/components/effects/GlassShatterEffects.presets.d.ts.map +1 -0
- package/dist/components/effects/GlassShatterEffects.r3f.d.ts +19 -0
- package/dist/components/effects/GlassShatterEffects.r3f.d.ts.map +1 -0
- package/dist/components/effects/SeasonalParticles.d.ts +4 -64
- package/dist/components/effects/SeasonalParticles.d.ts.map +1 -1
- package/dist/components/effects/SeasonalParticles.presets.d.ts +50 -0
- package/dist/components/effects/SeasonalParticles.presets.d.ts.map +1 -0
- package/dist/components/effects/SeasonalParticles.r3f.d.ts +18 -0
- package/dist/components/effects/SeasonalParticles.r3f.d.ts.map +1 -0
- package/dist/components/input/GlassMultiSelect.d.ts +2 -2
- package/dist/components/input/GlassMultiSelect.d.ts.map +1 -1
- package/dist/components/search/GlassIntelligentSearch.d.ts.map +1 -1
- package/dist/hooks/useGlassOptimization.d.ts +1 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19103 -22194
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19091 -22172
- package/dist/index.mjs.map +1 -1
- package/dist/primitives/LiquidGlassMaterial.d.ts +2 -2
- package/dist/primitives/OptimizedGlassCore.d.ts +1 -1
- package/dist/primitives/OptimizedGlassCore.d.ts.map +1 -1
- package/dist/services/ai/openai-service.d.ts +4 -4
- package/dist/services/auth/auth-service.d.ts +2 -2
- package/dist/styles/index.css +82 -1
- package/dist/theme/ThemeProvider.d.ts.map +1 -1
- package/dist/theme/designMatrix.d.ts.map +1 -1
- package/dist/theme/tokens.d.ts +7 -7
- package/dist/theme/tokens.d.ts.map +1 -1
- package/dist/three/index.d.ts +13 -0
- package/dist/three/index.d.ts.map +1 -0
- package/dist/three/index.js +2824 -0
- package/dist/three/index.js.map +1 -0
- package/dist/three/index.mjs +2790 -0
- package/dist/three/index.mjs.map +1 -0
- package/dist/tokens/designConstants.d.ts +24 -24
- package/dist/tokens/designConstants.d.ts.map +1 -1
- package/dist/tokens/glass.d.ts +14 -12
- package/dist/tokens/glass.d.ts.map +1 -1
- package/dist/tokens/themeTokens.d.ts +2 -2
- package/dist/tokens/themeTokens.d.ts.map +1 -1
- package/dist/utils/aiPersonalization.d.ts +1 -1
- package/dist/utils/browserCompatibility.d.ts +2 -2
- package/dist/utils/browserCompatibility.d.ts.map +1 -1
- package/dist/utils/contrastGuard.d.ts +1 -1
- package/dist/utils/contrastGuard.d.ts.map +1 -1
- package/dist/utils/reactVersion.d.ts +7 -0
- package/dist/utils/reactVersion.d.ts.map +1 -0
- package/dist/utils/themeHelpers.d.ts.map +1 -1
- package/package.json +16 -8
package/README.md
CHANGED
|
@@ -68,6 +68,14 @@ This system eliminates manual theming, ensures WCAG compliance per persona, and
|
|
|
68
68
|
- **Consciousness streaming** – `ConsciousnessStreamProvider` centralizes event logging and response logic for consciousness-aware flows.
|
|
69
69
|
- **Exported tooling constants** – Access `component_inventory_json_path` and reduced-motion guides at build time to automate audits.
|
|
70
70
|
|
|
71
|
+
### React 18/19 + 3D Effects Compatibility (2.1.5)
|
|
72
|
+
AuraGlass 2.1.5 hardens React 18/19 compatibility for all 3D glass effects while keeping standard components drop-in safe for existing React 18 stacks.
|
|
73
|
+
|
|
74
|
+
- **Isolated 3D entrypoint** – All R3F-heavy components now live under the `aura-glass/three` entry (e.g. `GlassShatterEffects`, `SeasonalParticles`, `AuroraPro`, `ARGlassEffects` and helpers like `shatterPresets`, `auroraThemes`, `ARGlassAnimations`). The root `aura-glass` entry no longer imports `@react-three/fiber`.
|
|
75
|
+
- **React-aware lazy loading** – 3D components are implemented as `.r3f` modules with thin wrappers that lazily import them only when React 19 is detected at runtime; React 18 receives styled fallback containers that preserve layout without touching R3F internals.
|
|
76
|
+
- **Safer presets & factories** – Presets and AR helper factories have been moved into non-R3F helper modules so they can be imported without forcing Three/Fiber into SSR bundles.
|
|
77
|
+
- **Next.js integration matrix** – CI now spins up two Next.js test apps from the published tarball: React 18 + Next 14.2 (root entry only) and React 19 + Next 15 (using `aura-glass/three`); Playwright smoke tests fail the build if hook/registry errors or reconciler crashes are detected.
|
|
78
|
+
|
|
71
79
|
## Signature Systems
|
|
72
80
|
### Living Intelligence
|
|
73
81
|
- **GlassMetaEngine** rebalances layouts with quantum-inspired optimization and neural healing models.
|
|
@@ -124,10 +132,10 @@ AuraGlass reproduces the physics and restraint of handcrafted premium glass, the
|
|
|
124
132
|
**Step 1 – Peer dependencies**
|
|
125
133
|
```bash
|
|
126
134
|
npm install react react-dom react-hook-form react-chartjs-2 framer-motion lucide-react
|
|
127
|
-
npm install three @react-three/fiber
|
|
135
|
+
npm install three @react-three/fiber # required only if you use 3D effects
|
|
128
136
|
npm install @radix-ui/react-dropdown-menu @radix-ui/react-select @radix-ui/react-label @radix-ui/react-slot
|
|
129
137
|
npm install @sentry/react
|
|
130
|
-
npm install @react-three/drei
|
|
138
|
+
npm install @react-three/drei # optional helpers for advanced 3D scenes
|
|
131
139
|
```
|
|
132
140
|
|
|
133
141
|
**Step 2 – AuraGlass**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlassFocusIndicators.d.ts","sourceRoot":"","sources":["../../../src/components/accessibility/GlassFocusIndicators.tsx"],"names":[],"mappings":"AAOA,OAAO,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"GlassFocusIndicators.d.ts","sourceRoot":"","sources":["../../../src/components/accessibility/GlassFocusIndicators.tsx"],"names":[],"mappings":"AAOA,OAAO,4BAA4B,CAAC;AA8KpC,wBAAgB,oBAAoB,mDAkNnC;AAGD,wBAAgB,SAAS,mDAiCxB;AAGD,wBAAgB,iBAAiB,SA0ChC;AAGD,wBAAgB,uBAAuB,mDAwFtC;AAED,eAAe,oBAAoB,CAAC"}
|
|
@@ -46,7 +46,7 @@ interface QualityTier {
|
|
|
46
46
|
name: string;
|
|
47
47
|
level: "minimal" | "basic" | "standard" | "premium" | "ultra";
|
|
48
48
|
capabilities: {
|
|
49
|
-
|
|
49
|
+
backdropFilterEnabled: boolean;
|
|
50
50
|
boxShadow: boolean;
|
|
51
51
|
borderRadius: boolean;
|
|
52
52
|
transforms: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlassProgressiveEnhancement.d.ts","sourceRoot":"","sources":["../../../src/components/advanced/GlassProgressiveEnhancement.tsx"],"names":[],"mappings":"AACA;;;GAGG;AAEH,OAAO,KAON,MAAM,OAAO,CAAC;AAKf,UAAU,kBAAkB;IAC1B,GAAG,EAAE;QACH,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC;QACzC,YAAY,EAAE,OAAO,CAAC;QACtB,aAAa,EAAE,OAAO,CAAC;KACxB,CAAC;IACF,GAAG,EAAE;QACH,KAAK,EAAE,MAAM,CAAC;QACd,oBAAoB,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;KAC9C,CAAC;IACF,MAAM,EAAE;QACN,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,aAAa,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;KACvC,CAAC;IACF,OAAO,EAAE;QACP,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC;QAC9C,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;QACtC,GAAG,EAAE,OAAO,CAAC;KACd,CAAC;IACF,OAAO,EAAE;QACP,aAAa,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;QACrD,QAAQ,EAAE,OAAO,CAAC;KACnB,CAAC;IACF,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,OAAO,CAAC;KACnB,CAAC;IACF,WAAW,EAAE;QACX,aAAa,EAAE,OAAO,CAAC;QACvB,YAAY,EAAE,OAAO,CAAC;QACtB,YAAY,EAAE,OAAO,CAAC;KACvB,CAAC;CACH;AAED,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC;IAC9D,YAAY,EAAE;QACZ,
|
|
1
|
+
{"version":3,"file":"GlassProgressiveEnhancement.d.ts","sourceRoot":"","sources":["../../../src/components/advanced/GlassProgressiveEnhancement.tsx"],"names":[],"mappings":"AACA;;;GAG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5cvB,WAAW;kBACH,kBAAkB,GAAG,IAAI;gBAC3B,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,KAAK,IAAI;EAkdjD;AAGD,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,SAAS,EACT,IAAS,EACT,SAAiB,EACjB,SAAgB,EAChB,KAAa,EACb,GAAG,KAAK,EACT,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,2CAgDA;AAGD,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,YAAY,EAAE,kBAAkB,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,64 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
import * as THREE from "three";
|
|
7
|
-
export declare const ARGlassMaterialFactory: {
|
|
8
|
-
createSpatialUI: (options: any) => THREE.ShaderMaterial;
|
|
9
|
-
createHolographicGlass: (options: any) => THREE.ShaderMaterial;
|
|
10
|
-
createDataVisualization: (options: any) => THREE.ShaderMaterial;
|
|
11
|
-
};
|
|
12
|
-
export declare const ARGlassGeometryFactory: {
|
|
13
|
-
createCurvedPanel: (width: number, height: number, depth: number) => THREE.PlaneGeometry;
|
|
14
|
-
createPortalGeometry: (innerRadius: number, outerRadius: number) => THREE.RingGeometry;
|
|
15
|
-
createParticleField: (count: number) => THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>;
|
|
16
|
-
};
|
|
17
|
-
export declare const ARGlassAnimations: {
|
|
18
|
-
createFloatingAnimation: (object: THREE.Object3D, amplitude?: number, frequency?: number) => (time: number) => void;
|
|
19
|
-
createRotationAnimation: (object: THREE.Object3D, axis: THREE.Vector3, speed?: number) => (time: number) => void;
|
|
20
|
-
createScaleAnimation: (object: THREE.Object3D, minScale: number, maxScale: number, frequency?: number) => (time: number) => void;
|
|
21
|
-
};
|
|
22
|
-
export declare const ARGlassInteractions: {
|
|
23
|
-
createHapticFeedback: (intensity?: number, duration?: number) => void;
|
|
24
|
-
setupHandTracking: (objects: THREE.Object3D[], callback: (object: THREE.Object3D, hand: {
|
|
25
|
-
isActive: boolean;
|
|
26
|
-
position: THREE.Vector3;
|
|
27
|
-
rotation: THREE.Quaternion;
|
|
28
|
-
}) => void) => (handData: {
|
|
29
|
-
left: {
|
|
30
|
-
isActive: boolean;
|
|
31
|
-
position: THREE.Vector3;
|
|
32
|
-
rotation: THREE.Quaternion;
|
|
33
|
-
};
|
|
34
|
-
right: {
|
|
35
|
-
isActive: boolean;
|
|
36
|
-
position: THREE.Vector3;
|
|
37
|
-
rotation: THREE.Quaternion;
|
|
38
|
-
};
|
|
39
|
-
}) => void;
|
|
40
|
-
};
|
|
41
|
-
export declare const ARGlassUtils: {
|
|
42
|
-
createAdaptiveScaling: (minScale: number, maxScale: number) => (distance: number) => number;
|
|
43
|
-
createDistanceBasedOpacity: (maxDistance?: number) => (distance: number) => number;
|
|
44
|
-
};
|
|
45
|
-
interface ARGlassEffectsProps {
|
|
46
|
-
mode?: "ar" | "preview" | "demo";
|
|
47
|
-
content?: {
|
|
48
|
-
title?: string;
|
|
49
|
-
text?: string;
|
|
50
|
-
data?: number[];
|
|
51
|
-
media?: string;
|
|
52
|
-
};
|
|
53
|
-
onInteraction?: (type: string, data?: any) => void;
|
|
54
|
-
className?: string;
|
|
55
|
-
enablePhysics?: boolean;
|
|
56
|
-
enableHandTracking?: boolean;
|
|
57
|
-
enableVoiceControl?: boolean;
|
|
58
|
-
adaptiveScaling?: boolean;
|
|
59
|
-
showControls?: boolean;
|
|
60
|
-
showInfo?: boolean;
|
|
61
|
-
}
|
|
62
|
-
export declare function ARGlassEffects({ mode, content, onInteraction, className, enablePhysics, enableHandTracking, enableVoiceControl, adaptiveScaling, showControls, showInfo, }: ARGlassEffectsProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import type { ARGlassEffectsProps as R3FProps } from "./ARGlassEffects.r3f";
|
|
2
|
+
export type ARGlassEffectsProps = R3FProps;
|
|
3
|
+
export declare function ARGlassEffects(props: ARGlassEffectsProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { ARGlassAnimations, ARGlassGeometryFactory, ARGlassInteractions, ARGlassMaterialFactory, ARGlassUtils, } from "./ARGlassEffects.helpers";
|
|
63
5
|
export default ARGlassEffects;
|
|
64
6
|
//# sourceMappingURL=ARGlassEffects.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ARGlassEffects.d.ts","sourceRoot":"","sources":["../../../src/components/ar/ARGlassEffects.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ARGlassEffects.d.ts","sourceRoot":"","sources":["../../../src/components/ar/ARGlassEffects.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,IAAI,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAI5E,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC;AAI3C,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CAwDxD;AAED,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,EACnB,sBAAsB,EACtB,YAAY,GACb,MAAM,0BAA0B,CAAC;AAElC,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
export declare const ARGlassMaterialFactory: {
|
|
3
|
+
createSpatialUI: (options: any) => THREE.ShaderMaterial;
|
|
4
|
+
createHolographicGlass: (options: any) => THREE.ShaderMaterial;
|
|
5
|
+
createDataVisualization: (options: any) => THREE.ShaderMaterial;
|
|
6
|
+
};
|
|
7
|
+
export declare const ARGlassGeometryFactory: {
|
|
8
|
+
createCurvedPanel: (width: number, height: number, depth: number) => THREE.PlaneGeometry;
|
|
9
|
+
createPortalGeometry: (innerRadius: number, outerRadius: number) => THREE.RingGeometry;
|
|
10
|
+
createParticleField: (count: number) => THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>;
|
|
11
|
+
};
|
|
12
|
+
export declare const ARGlassAnimations: {
|
|
13
|
+
createFloatingAnimation: (object: THREE.Object3D, amplitude?: number, frequency?: number) => (time: number) => void;
|
|
14
|
+
createRotationAnimation: (object: THREE.Object3D, axis: THREE.Vector3, speed?: number) => (time: number) => void;
|
|
15
|
+
createScaleAnimation: (object: THREE.Object3D, minScale: number, maxScale: number, frequency?: number) => (time: number) => void;
|
|
16
|
+
};
|
|
17
|
+
export declare const ARGlassInteractions: {
|
|
18
|
+
createHapticFeedback: (intensity?: number, duration?: number) => void;
|
|
19
|
+
setupHandTracking: (objects: THREE.Object3D[], callback: (object: THREE.Object3D, hand: {
|
|
20
|
+
isActive: boolean;
|
|
21
|
+
position: THREE.Vector3;
|
|
22
|
+
rotation: THREE.Quaternion;
|
|
23
|
+
}) => void) => (handData: {
|
|
24
|
+
left: {
|
|
25
|
+
isActive: boolean;
|
|
26
|
+
position: THREE.Vector3;
|
|
27
|
+
rotation: THREE.Quaternion;
|
|
28
|
+
};
|
|
29
|
+
right: {
|
|
30
|
+
isActive: boolean;
|
|
31
|
+
position: THREE.Vector3;
|
|
32
|
+
rotation: THREE.Quaternion;
|
|
33
|
+
};
|
|
34
|
+
}) => void;
|
|
35
|
+
};
|
|
36
|
+
export declare const ARGlassUtils: {
|
|
37
|
+
createAdaptiveScaling: (minScale: number, maxScale: number) => (distance: number) => number;
|
|
38
|
+
createDistanceBasedOpacity: (maxDistance?: number) => (distance: number) => number;
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=ARGlassEffects.helpers.d.ts.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AAM,YAAY;sCACW,MAAM,YAAY,MAAM,MAChD,UAAU,MAAM;+CAQgB,MAAM,MACtC,UAAU,MAAM;CAI3B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Navigator {
|
|
3
|
+
xr?: XRSystem;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
export interface ARGlassEffectsProps {
|
|
7
|
+
mode?: "ar" | "preview" | "demo";
|
|
8
|
+
content?: {
|
|
9
|
+
title?: string;
|
|
10
|
+
text?: string;
|
|
11
|
+
data?: number[];
|
|
12
|
+
media?: string;
|
|
13
|
+
};
|
|
14
|
+
onInteraction?: (type: string, data?: any) => void;
|
|
15
|
+
className?: string;
|
|
16
|
+
enablePhysics?: boolean;
|
|
17
|
+
enableHandTracking?: boolean;
|
|
18
|
+
enableVoiceControl?: boolean;
|
|
19
|
+
adaptiveScaling?: boolean;
|
|
20
|
+
showControls?: boolean;
|
|
21
|
+
showInfo?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare function ARGlassEffects({ mode, content, onInteraction, className, enablePhysics, enableHandTracking, enableVoiceControl, adaptiveScaling, showControls, showInfo, }: ARGlassEffectsProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export default ARGlassEffects;
|
|
25
|
+
//# sourceMappingURL=ARGlassEffects.r3f.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ARGlassEffects.r3f.d.ts","sourceRoot":"","sources":["../../../src/components/ar/ARGlassEffects.r3f.tsx"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,SAAS;QACjB,EAAE,CAAC,EAAE,QAAQ,CAAC;KACf;CACF;AA0KD,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,GAAG,MAAM,CAAC;IACjC,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,cAAc,CAAC,EAC7B,IAAgB,EAChB,OAAY,EACZ,aAAa,EACb,SAAc,EACd,aAAqB,EACrB,kBAA0B,EAC1B,kBAA0B,EAC1B,eAAsB,EACtB,YAAmB,EACnB,QAAe,GAChB,EAAE,mBAAmB,2CAgVrB;AA2VD,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModularGlassDataChart.d.ts","sourceRoot":"","sources":["../../../src/components/charts/ModularGlassDataChart.tsx"],"names":[],"mappings":"AACA;;;;;GAKG;AACH,OAAO,KAMN,MAAM,OAAO,CAAC;AA2Df,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AA+D5E;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;iBAMjB,OAAO;kBACN,OAAO;kBACP,OAAO;qBACJ,OAAO;eACb,OAAO;0BACI,OAAO;mBACd,OAAO;oBACN,OAAO;wBACH,OAAO;oBACX,MAAM;mBAElB,WAAW,GACX,WAAW,GACX,QAAQ,GACR,cAAc,GACd,aAAa;
|
|
1
|
+
{"version":3,"file":"ModularGlassDataChart.d.ts","sourceRoot":"","sources":["../../../src/components/charts/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AO;oBACN,OAAO;wBACH,OAAO;oBACX,MAAM;mBAElB,WAAW,GACX,WAAW,GACX,QAAQ,GACR,cAAc,GACd,aAAa;4FA+lCnB,CAAC;AAIH;;GAEG;AACH,eAAO,MAAM,gCAAgC;IAC3C;;OAEG;;;;;IAMH;;OAEG;;;;;;;IAQH;;OAEG;;;;;;;;;;;;IAaH;;OAEG;;;;;;;;;CASK,CAAC;AAEX,eAAe,qBAAqB,CAAC"}
|
|
@@ -20,7 +20,7 @@ export declare function useChartPerformanceMonitoring(enabled?: boolean): {
|
|
|
20
20
|
endMeasurement: (label: string) => number;
|
|
21
21
|
};
|
|
22
22
|
export declare function useAdaptiveQuality(initialTier?: ChartQualityTier['tier'], enabled?: boolean): {
|
|
23
|
-
currentTier: "
|
|
23
|
+
currentTier: "medium" | "low" | "high" | "ultra";
|
|
24
24
|
updateQualityBasedOnPerformance: (renderTime: number, targetFPS?: number) => void;
|
|
25
25
|
};
|
|
26
26
|
export declare function getQualityBasedPhysicsParams(qualityTier: ChartQualityTier['tier']): PhysicsParams;
|
|
@@ -1,72 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
colorPalette?: 'arctic' | 'forest' | 'sunset' | 'ocean' | 'cosmic' | 'custom';
|
|
6
|
-
customColors?: [string, string, string];
|
|
7
|
-
particleCount?: number;
|
|
8
|
-
showParticles?: boolean;
|
|
9
|
-
showWaves?: boolean;
|
|
10
|
-
showCurtain?: boolean;
|
|
11
|
-
animationMode?: 'flow' | 'pulse' | 'shift' | 'mixed';
|
|
12
|
-
className?: string;
|
|
13
|
-
showControls?: boolean;
|
|
14
|
-
autoAnimate?: boolean;
|
|
15
|
-
onAnimationChange?: (mode: string) => void;
|
|
16
|
-
children?: React.ReactNode;
|
|
17
|
-
}
|
|
18
|
-
export declare function AuroraPro({ intensity, speed, colorPalette, customColors, particleCount, showParticles, showWaves, showCurtain, animationMode, className, showControls, autoAnimate, onAnimationChange, children }: AuroraProProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export declare const auroraPresets: {
|
|
20
|
-
subtle: {
|
|
21
|
-
intensity: number;
|
|
22
|
-
speed: number;
|
|
23
|
-
particleCount: number;
|
|
24
|
-
colorPalette: string;
|
|
25
|
-
animationMode: string;
|
|
26
|
-
};
|
|
27
|
-
dynamic: {
|
|
28
|
-
intensity: number;
|
|
29
|
-
speed: number;
|
|
30
|
-
particleCount: number;
|
|
31
|
-
colorPalette: string;
|
|
32
|
-
animationMode: string;
|
|
33
|
-
};
|
|
34
|
-
intense: {
|
|
35
|
-
intensity: number;
|
|
36
|
-
speed: number;
|
|
37
|
-
particleCount: number;
|
|
38
|
-
colorPalette: string;
|
|
39
|
-
animationMode: string;
|
|
40
|
-
};
|
|
41
|
-
serene: {
|
|
42
|
-
intensity: number;
|
|
43
|
-
speed: number;
|
|
44
|
-
particleCount: number;
|
|
45
|
-
colorPalette: string;
|
|
46
|
-
animationMode: string;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
export declare const auroraThemes: {
|
|
50
|
-
northern: {
|
|
51
|
-
background: string;
|
|
52
|
-
glassColor: string;
|
|
53
|
-
accentColor: string;
|
|
54
|
-
};
|
|
55
|
-
mystical: {
|
|
56
|
-
background: string;
|
|
57
|
-
glassColor: string;
|
|
58
|
-
accentColor: string;
|
|
59
|
-
};
|
|
60
|
-
tropical: {
|
|
61
|
-
background: string;
|
|
62
|
-
glassColor: string;
|
|
63
|
-
accentColor: string;
|
|
64
|
-
};
|
|
65
|
-
enchanted: {
|
|
66
|
-
background: string;
|
|
67
|
-
glassColor: string;
|
|
68
|
-
accentColor: string;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
1
|
+
import type { AuroraProProps as R3FProps } from "./AuroraPro.r3f";
|
|
2
|
+
export type AuroraProProps = R3FProps;
|
|
3
|
+
export declare function AuroraPro(props: AuroraProProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { auroraPresets, auroraThemes } from "./AuroraPro.presets";
|
|
71
5
|
export default AuroraPro;
|
|
72
6
|
//# sourceMappingURL=AuroraPro.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuroraPro.d.ts","sourceRoot":"","sources":["../../../src/components/effects/AuroraPro.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AuroraPro.d.ts","sourceRoot":"","sources":["../../../src/components/effects/AuroraPro.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAIlE,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC;AAItC,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,2CAyD9C;AAED,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAElE,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare const auroraPresets: {
|
|
2
|
+
readonly subtle: {
|
|
3
|
+
readonly intensity: 0.6;
|
|
4
|
+
readonly speed: 0.5;
|
|
5
|
+
readonly particleCount: 30;
|
|
6
|
+
readonly colorPalette: "arctic";
|
|
7
|
+
readonly animationMode: "flow";
|
|
8
|
+
};
|
|
9
|
+
readonly dynamic: {
|
|
10
|
+
readonly intensity: 1;
|
|
11
|
+
readonly speed: 1;
|
|
12
|
+
readonly particleCount: 50;
|
|
13
|
+
readonly colorPalette: "cosmic";
|
|
14
|
+
readonly animationMode: "mixed";
|
|
15
|
+
};
|
|
16
|
+
readonly intense: {
|
|
17
|
+
readonly intensity: 1.5;
|
|
18
|
+
readonly speed: 1.5;
|
|
19
|
+
readonly particleCount: 80;
|
|
20
|
+
readonly colorPalette: "sunset";
|
|
21
|
+
readonly animationMode: "pulse";
|
|
22
|
+
};
|
|
23
|
+
readonly serene: {
|
|
24
|
+
readonly intensity: 0.4;
|
|
25
|
+
readonly speed: 0.3;
|
|
26
|
+
readonly particleCount: 20;
|
|
27
|
+
readonly colorPalette: "ocean";
|
|
28
|
+
readonly animationMode: "shift";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare const auroraThemes: {
|
|
32
|
+
readonly northern: {
|
|
33
|
+
readonly background: "linear-gradient(180deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%)";
|
|
34
|
+
readonly glassColor: "rgba(79, 195, 247, 0.1)";
|
|
35
|
+
readonly accentColor: "#4fc3f7";
|
|
36
|
+
};
|
|
37
|
+
readonly mystical: {
|
|
38
|
+
readonly background: "linear-gradient(180deg, #0f0f23 0%, #1a1a2e 50%, #2d1b69 100%)";
|
|
39
|
+
readonly glassColor: "rgba(186, 104, 200, 0.1)";
|
|
40
|
+
readonly accentColor: "#ba68c8";
|
|
41
|
+
};
|
|
42
|
+
readonly tropical: {
|
|
43
|
+
readonly background: "linear-gradient(180deg, #0c0c0c 0%, #1a1a2e 50%, #0f3460 100%)";
|
|
44
|
+
readonly glassColor: "rgba(0, 188, 212, 0.1)";
|
|
45
|
+
readonly accentColor: "#00bcd4";
|
|
46
|
+
};
|
|
47
|
+
readonly enchanted: {
|
|
48
|
+
readonly background: "linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%)";
|
|
49
|
+
readonly glassColor: "rgba(255, 152, 77, 0.1)";
|
|
50
|
+
readonly accentColor: "#ff9843";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
export type AuroraPresetName = keyof typeof auroraPresets;
|
|
54
|
+
//# sourceMappingURL=AuroraPro.presets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuroraPro.presets.d.ts","sourceRoot":"","sources":["../../../src/components/effects/AuroraPro.presets.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BhB,CAAC;AAEX,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;CAyBf,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,aAAa,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface AuroraProProps {
|
|
3
|
+
intensity?: number;
|
|
4
|
+
speed?: number;
|
|
5
|
+
colorPalette?: "arctic" | "forest" | "sunset" | "ocean" | "cosmic" | "custom";
|
|
6
|
+
customColors?: [string, string, string];
|
|
7
|
+
particleCount?: number;
|
|
8
|
+
showParticles?: boolean;
|
|
9
|
+
showWaves?: boolean;
|
|
10
|
+
showCurtain?: boolean;
|
|
11
|
+
animationMode?: "flow" | "pulse" | "shift" | "mixed";
|
|
12
|
+
className?: string;
|
|
13
|
+
showControls?: boolean;
|
|
14
|
+
autoAnimate?: boolean;
|
|
15
|
+
onAnimationChange?: (mode: string) => void;
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export declare function AuroraPro({ intensity, speed, colorPalette, customColors, particleCount, showParticles, showWaves, showCurtain, animationMode, className, showControls, autoAnimate, onAnimationChange, children, }: AuroraProProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export default AuroraPro;
|
|
20
|
+
//# sourceMappingURL=AuroraPro.r3f.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuroraPro.r3f.d.ts","sourceRoot":"","sources":["../../../src/components/effects/AuroraPro.r3f.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAmD,MAAM,OAAO,CAAC;AA+QxE,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC9E,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,wBAAgB,SAAS,CAAC,EACxB,SAAe,EACf,KAAW,EACX,YAAuB,EACvB,YAAY,EACZ,aAAkB,EAClB,aAAoB,EACpB,SAAgB,EAChB,WAAmB,EACnB,aAAsB,EACtB,SAAc,EACd,YAAoB,EACpB,WAAkB,EAClB,iBAAiB,EACjB,QAAQ,GACT,EAAE,cAAc,2CAgVhB;AAsFD,eAAe,SAAS,CAAC"}
|
|
@@ -1,49 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
trigger?: "click" | "hover" | "manual" | "auto";
|
|
6
|
-
duration?: number;
|
|
7
|
-
intensity?: number;
|
|
8
|
-
shardCount?: number;
|
|
9
|
-
autoReform?: boolean;
|
|
10
|
-
reformDelay?: number;
|
|
11
|
-
onShatter?: () => void;
|
|
12
|
-
onReform?: () => void;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
showControls?: boolean;
|
|
15
|
-
seed?: number | string;
|
|
16
|
-
}
|
|
17
|
-
export declare function GlassShatterEffects({ children, className, trigger, duration, intensity, shardCount, autoReform, reformDelay, onShatter, onReform, disabled, showControls, seed, }: GlassShatterEffectsProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export declare const shatterPresets: {
|
|
19
|
-
gentle: {
|
|
20
|
-
duration: number;
|
|
21
|
-
intensity: number;
|
|
22
|
-
shardCount: number;
|
|
23
|
-
autoReform: boolean;
|
|
24
|
-
reformDelay: number;
|
|
25
|
-
};
|
|
26
|
-
dramatic: {
|
|
27
|
-
duration: number;
|
|
28
|
-
intensity: number;
|
|
29
|
-
shardCount: number;
|
|
30
|
-
autoReform: boolean;
|
|
31
|
-
reformDelay: number;
|
|
32
|
-
};
|
|
33
|
-
explosive: {
|
|
34
|
-
duration: number;
|
|
35
|
-
intensity: number;
|
|
36
|
-
shardCount: number;
|
|
37
|
-
autoReform: boolean;
|
|
38
|
-
reformDelay: number;
|
|
39
|
-
};
|
|
40
|
-
subtle: {
|
|
41
|
-
duration: number;
|
|
42
|
-
intensity: number;
|
|
43
|
-
shardCount: number;
|
|
44
|
-
autoReform: boolean;
|
|
45
|
-
reformDelay: number;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
1
|
+
import type { GlassShatterEffectsProps as R3FProps } from "./GlassShatterEffects.r3f";
|
|
2
|
+
export type GlassShatterEffectsProps = R3FProps;
|
|
3
|
+
export declare function GlassShatterEffects(props: GlassShatterEffectsProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { shatterPresets } from "./GlassShatterEffects.presets";
|
|
48
5
|
export default GlassShatterEffects;
|
|
49
6
|
//# sourceMappingURL=GlassShatterEffects.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlassShatterEffects.d.ts","sourceRoot":"","sources":["../../../src/components/effects/GlassShatterEffects.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GlassShatterEffects.d.ts","sourceRoot":"","sources":["../../../src/components/effects/GlassShatterEffects.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,wBAAwB,IAAI,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAItF,MAAM,MAAM,wBAAwB,GAAG,QAAQ,CAAC;AAIhD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,2CA0ElE;AAED,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const shatterPresets: {
|
|
2
|
+
readonly gentle: {
|
|
3
|
+
readonly duration: 1.5;
|
|
4
|
+
readonly intensity: 0.5;
|
|
5
|
+
readonly shardCount: 8;
|
|
6
|
+
readonly autoReform: true;
|
|
7
|
+
readonly reformDelay: 2000;
|
|
8
|
+
};
|
|
9
|
+
readonly dramatic: {
|
|
10
|
+
readonly duration: 2.5;
|
|
11
|
+
readonly intensity: 1.2;
|
|
12
|
+
readonly shardCount: 16;
|
|
13
|
+
readonly autoReform: true;
|
|
14
|
+
readonly reformDelay: 4000;
|
|
15
|
+
};
|
|
16
|
+
readonly explosive: {
|
|
17
|
+
readonly duration: 3;
|
|
18
|
+
readonly intensity: 2;
|
|
19
|
+
readonly shardCount: 24;
|
|
20
|
+
readonly autoReform: false;
|
|
21
|
+
readonly reformDelay: 6000;
|
|
22
|
+
};
|
|
23
|
+
readonly subtle: {
|
|
24
|
+
readonly duration: 1;
|
|
25
|
+
readonly intensity: 0.3;
|
|
26
|
+
readonly shardCount: 6;
|
|
27
|
+
readonly autoReform: true;
|
|
28
|
+
readonly reformDelay: 1500;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export type ShatterPresetName = keyof typeof shatterPresets;
|
|
32
|
+
//# sourceMappingURL=GlassShatterEffects.presets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlassShatterEffects.presets.d.ts","sourceRoot":"","sources":["../../../src/components/effects/GlassShatterEffects.presets.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BjB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,cAAc,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface GlassShatterEffectsProps {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
trigger?: "click" | "hover" | "manual" | "auto";
|
|
6
|
+
duration?: number;
|
|
7
|
+
intensity?: number;
|
|
8
|
+
shardCount?: number;
|
|
9
|
+
autoReform?: boolean;
|
|
10
|
+
reformDelay?: number;
|
|
11
|
+
onShatter?: () => void;
|
|
12
|
+
onReform?: () => void;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
showControls?: boolean;
|
|
15
|
+
seed?: number | string;
|
|
16
|
+
}
|
|
17
|
+
export declare function GlassShatterEffectsR3F(props: GlassShatterEffectsProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default GlassShatterEffectsR3F;
|
|
19
|
+
//# sourceMappingURL=GlassShatterEffects.r3f.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlassShatterEffects.r3f.d.ts","sourceRoot":"","sources":["../../../src/components/effects/GlassShatterEffects.r3f.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAmD,MAAM,OAAO,CAAC;AA4NxE,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,wBAAwB,2CAwQrE;AAqDD,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,66 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
windStrength?: number;
|
|
6
|
-
animationSpeed?: number;
|
|
7
|
-
className?: string;
|
|
8
|
-
showControls?: boolean;
|
|
9
|
-
autoSeason?: boolean;
|
|
10
|
-
seasonDuration?: number;
|
|
11
|
-
onSeasonChange?: (season: string) => void;
|
|
12
|
-
seed?: number | string;
|
|
13
|
-
children?: React.ReactNode;
|
|
14
|
-
}
|
|
15
|
-
export declare function SeasonalParticles({ season, particleCount, windStrength, animationSpeed, className, showControls, autoSeason, seasonDuration, // 10 seconds per season
|
|
16
|
-
onSeasonChange, children, seed, }: SeasonalParticlesProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export declare const seasonalPresets: {
|
|
18
|
-
gentle: {
|
|
19
|
-
particleCount: number;
|
|
20
|
-
windStrength: number;
|
|
21
|
-
animationSpeed: number;
|
|
22
|
-
seasonDuration: number;
|
|
23
|
-
};
|
|
24
|
-
lively: {
|
|
25
|
-
particleCount: number;
|
|
26
|
-
windStrength: number;
|
|
27
|
-
animationSpeed: number;
|
|
28
|
-
seasonDuration: number;
|
|
29
|
-
};
|
|
30
|
-
dramatic: {
|
|
31
|
-
particleCount: number;
|
|
32
|
-
windStrength: number;
|
|
33
|
-
animationSpeed: number;
|
|
34
|
-
seasonDuration: number;
|
|
35
|
-
};
|
|
36
|
-
subtle: {
|
|
37
|
-
particleCount: number;
|
|
38
|
-
windStrength: number;
|
|
39
|
-
animationSpeed: number;
|
|
40
|
-
seasonDuration: number;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
export declare const seasonalThemes: {
|
|
44
|
-
winter: {
|
|
45
|
-
background: string;
|
|
46
|
-
glassColor: string;
|
|
47
|
-
accentColor: string;
|
|
48
|
-
};
|
|
49
|
-
spring: {
|
|
50
|
-
background: string;
|
|
51
|
-
glassColor: string;
|
|
52
|
-
accentColor: string;
|
|
53
|
-
};
|
|
54
|
-
summer: {
|
|
55
|
-
background: string;
|
|
56
|
-
glassColor: string;
|
|
57
|
-
accentColor: string;
|
|
58
|
-
};
|
|
59
|
-
autumn: {
|
|
60
|
-
background: string;
|
|
61
|
-
glassColor: string;
|
|
62
|
-
accentColor: string;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
1
|
+
import type { SeasonalParticlesProps as R3FProps } from "./SeasonalParticles.r3f";
|
|
2
|
+
export type SeasonalParticlesProps = R3FProps;
|
|
3
|
+
export declare function SeasonalParticles(props: SeasonalParticlesProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { seasonalPresets, seasonalThemes } from "./SeasonalParticles.presets";
|
|
65
5
|
export default SeasonalParticles;
|
|
66
6
|
//# sourceMappingURL=SeasonalParticles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SeasonalParticles.d.ts","sourceRoot":"","sources":["../../../src/components/effects/SeasonalParticles.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SeasonalParticles.d.ts","sourceRoot":"","sources":["../../../src/components/effects/SeasonalParticles.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,IAAI,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAIlF,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAAC;AAI9C,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CAyD9D;AAED,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE9E,eAAe,iBAAiB,CAAC"}
|