react-confetti-burst 1.0.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/LICENSE +21 -0
- package/README.md +303 -0
- package/dist/cjs/components.d.ts +219 -0
- package/dist/cjs/components.d.ts.map +1 -0
- package/dist/cjs/components.js +341 -0
- package/dist/cjs/components.js.map +1 -0
- package/dist/cjs/confetti-engine.d.ts +122 -0
- package/dist/cjs/confetti-engine.d.ts.map +1 -0
- package/dist/cjs/confetti-engine.js +589 -0
- package/dist/cjs/confetti-engine.js.map +1 -0
- package/dist/cjs/confetti.d.ts +50 -0
- package/dist/cjs/confetti.d.ts.map +1 -0
- package/dist/cjs/confetti.js +446 -0
- package/dist/cjs/confetti.js.map +1 -0
- package/dist/cjs/constants.d.ts +147 -0
- package/dist/cjs/constants.d.ts.map +1 -0
- package/dist/cjs/constants.js +609 -0
- package/dist/cjs/constants.js.map +1 -0
- package/dist/cjs/hooks.d.ts +94 -0
- package/dist/cjs/hooks.d.ts.map +1 -0
- package/dist/cjs/hooks.js +225 -0
- package/dist/cjs/hooks.js.map +1 -0
- package/dist/cjs/index.d.ts +34 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +180 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/particle.d.ts +50 -0
- package/dist/cjs/particle.d.ts.map +1 -0
- package/dist/cjs/particle.js +475 -0
- package/dist/cjs/particle.js.map +1 -0
- package/dist/cjs/shapes.d.ts +190 -0
- package/dist/cjs/shapes.d.ts.map +1 -0
- package/dist/cjs/shapes.js +272 -0
- package/dist/cjs/shapes.js.map +1 -0
- package/dist/cjs/types.d.ts +720 -0
- package/dist/cjs/types.d.ts.map +1 -0
- package/dist/cjs/types.js +25 -0
- package/dist/cjs/types.js.map +1 -0
- package/dist/cjs/utils.d.ts +90 -0
- package/dist/cjs/utils.d.ts.map +1 -0
- package/dist/cjs/utils.js +330 -0
- package/dist/cjs/utils.js.map +1 -0
- package/dist/esm/components.js +334 -0
- package/dist/esm/components.js.map +1 -0
- package/dist/esm/confetti-engine.js +581 -0
- package/dist/esm/confetti-engine.js.map +1 -0
- package/dist/esm/confetti.js +443 -0
- package/dist/esm/confetti.js.map +1 -0
- package/dist/esm/constants.js +605 -0
- package/dist/esm/constants.js.map +1 -0
- package/dist/esm/hooks.js +218 -0
- package/dist/esm/hooks.js.map +1 -0
- package/dist/esm/index.js +146 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/particle.js +465 -0
- package/dist/esm/particle.js.map +1 -0
- package/dist/esm/shapes.js +265 -0
- package/dist/esm/shapes.js.map +1 -0
- package/dist/esm/types.js +24 -0
- package/dist/esm/types.js.map +1 -0
- package/dist/esm/utils.js +309 -0
- package/dist/esm/utils.js.map +1 -0
- package/dist/types/components.d.ts +219 -0
- package/dist/types/components.d.ts.map +1 -0
- package/dist/types/confetti-engine.d.ts +122 -0
- package/dist/types/confetti-engine.d.ts.map +1 -0
- package/dist/types/confetti.d.ts +50 -0
- package/dist/types/confetti.d.ts.map +1 -0
- package/dist/types/constants.d.ts +147 -0
- package/dist/types/constants.d.ts.map +1 -0
- package/dist/types/hooks.d.ts +94 -0
- package/dist/types/hooks.d.ts.map +1 -0
- package/dist/types/index.d.ts +34 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/particle.d.ts +50 -0
- package/dist/types/particle.d.ts.map +1 -0
- package/dist/types/shapes.d.ts +190 -0
- package/dist/types/shapes.d.ts.map +1 -0
- package/dist/types/types.d.ts +720 -0
- package/dist/types/types.d.ts.map +1 -0
- package/dist/types/utils.d.ts +90 -0
- package/dist/types/utils.d.ts.map +1 -0
- package/package.json +73 -0
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* React components for confetti animations
|
|
4
|
+
*
|
|
5
|
+
* Provides declarative components for easy integration of confetti
|
|
6
|
+
* effects into React applications.
|
|
7
|
+
*/
|
|
8
|
+
import { useEffect, useRef, useCallback, forwardRef, useImperativeHandle, } from 'react';
|
|
9
|
+
import { useConfetti } from './hooks';
|
|
10
|
+
/**
|
|
11
|
+
* Declarative confetti component that fires when active prop changes
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const [celebrate, setCelebrate] = useState(false);
|
|
16
|
+
*
|
|
17
|
+
* return (
|
|
18
|
+
* <>
|
|
19
|
+
* <ConfettiBurst
|
|
20
|
+
* active={celebrate}
|
|
21
|
+
* origin={{ x: 500, y: 300 }}
|
|
22
|
+
* onComplete={() => setCelebrate(false)}
|
|
23
|
+
* />
|
|
24
|
+
* <button onClick={() => setCelebrate(true)}>
|
|
25
|
+
* Celebrate!
|
|
26
|
+
* </button>
|
|
27
|
+
* </>
|
|
28
|
+
* );
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export function ConfettiBurst({ active, origin, triggerRef, options, onComplete, }) {
|
|
32
|
+
const { fire, fireFromElement } = useConfetti();
|
|
33
|
+
const hasFired = useRef(false);
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
if (active && !hasFired.current) {
|
|
36
|
+
hasFired.current = true;
|
|
37
|
+
let handle = null;
|
|
38
|
+
if (triggerRef?.current) {
|
|
39
|
+
handle = fireFromElement(triggerRef.current, options);
|
|
40
|
+
}
|
|
41
|
+
else if (origin) {
|
|
42
|
+
handle = fire(origin, options);
|
|
43
|
+
}
|
|
44
|
+
if (handle) {
|
|
45
|
+
handle.promise.then(() => {
|
|
46
|
+
onComplete?.();
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}, [active, origin, triggerRef, options, fire, fireFromElement, onComplete]);
|
|
51
|
+
// Reset when active becomes false
|
|
52
|
+
useEffect(() => {
|
|
53
|
+
if (!active) {
|
|
54
|
+
hasFired.current = false;
|
|
55
|
+
}
|
|
56
|
+
}, [active]);
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Invisible trigger component that fires confetti from its position
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```tsx
|
|
64
|
+
* const triggerRef = useRef<ConfettiTriggerHandle>(null);
|
|
65
|
+
*
|
|
66
|
+
* return (
|
|
67
|
+
* <div style={{ position: 'relative' }}>
|
|
68
|
+
* <ConfettiTrigger ref={triggerRef} options={{ particleCount: 100 }} />
|
|
69
|
+
* <button onClick={() => triggerRef.current?.fire()}>
|
|
70
|
+
* Fire!
|
|
71
|
+
* </button>
|
|
72
|
+
* </div>
|
|
73
|
+
* );
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
export const ConfettiTrigger = forwardRef(({ options, style }, ref) => {
|
|
77
|
+
const containerRef = useRef(null);
|
|
78
|
+
const { fireFromElement } = useConfetti();
|
|
79
|
+
useImperativeHandle(ref, () => ({
|
|
80
|
+
fire: () => fireFromElement(containerRef.current, options),
|
|
81
|
+
}));
|
|
82
|
+
return (_jsx("div", { ref: containerRef, style: {
|
|
83
|
+
position: 'absolute',
|
|
84
|
+
width: 1,
|
|
85
|
+
height: 1,
|
|
86
|
+
pointerEvents: 'none',
|
|
87
|
+
...style,
|
|
88
|
+
}, "aria-hidden": "true" }));
|
|
89
|
+
});
|
|
90
|
+
ConfettiTrigger.displayName = 'ConfettiTrigger';
|
|
91
|
+
/**
|
|
92
|
+
* Button component that automatically fires confetti on click
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```tsx
|
|
96
|
+
* <ConfettiButton
|
|
97
|
+
* confettiOptions={{
|
|
98
|
+
* particleCount: 30,
|
|
99
|
+
* direction: { direction: 'up' }
|
|
100
|
+
* }}
|
|
101
|
+
* >
|
|
102
|
+
* Submit
|
|
103
|
+
* </ConfettiButton>
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
export const ConfettiButton = forwardRef(({ children, confettiOptions, fireOnClick = true, onClick, ...buttonProps }, forwardedRef) => {
|
|
107
|
+
const internalRef = useRef(null);
|
|
108
|
+
const { fireFromElement } = useConfetti();
|
|
109
|
+
// Combine refs
|
|
110
|
+
const setRef = useCallback((node) => {
|
|
111
|
+
internalRef.current = node;
|
|
112
|
+
if (typeof forwardedRef === 'function') {
|
|
113
|
+
forwardedRef(node);
|
|
114
|
+
}
|
|
115
|
+
else if (forwardedRef) {
|
|
116
|
+
forwardedRef.current = node;
|
|
117
|
+
}
|
|
118
|
+
}, [forwardedRef]);
|
|
119
|
+
const handleClick = useCallback((event) => {
|
|
120
|
+
if (fireOnClick && internalRef.current) {
|
|
121
|
+
fireFromElement(internalRef.current, confettiOptions);
|
|
122
|
+
}
|
|
123
|
+
onClick?.(event);
|
|
124
|
+
}, [fireOnClick, fireFromElement, confettiOptions, onClick]);
|
|
125
|
+
return (_jsx("button", { ref: setRef, onClick: handleClick, ...buttonProps, children: children }));
|
|
126
|
+
});
|
|
127
|
+
ConfettiButton.displayName = 'ConfettiButton';
|
|
128
|
+
/**
|
|
129
|
+
* Component that fires confetti when mounted
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```tsx
|
|
133
|
+
* // Fire confetti when a success page loads
|
|
134
|
+
* function SuccessPage() {
|
|
135
|
+
* return (
|
|
136
|
+
* <div>
|
|
137
|
+
* <ConfettiOnMount
|
|
138
|
+
* origin={{ x: window.innerWidth / 2, y: window.innerHeight / 3 }}
|
|
139
|
+
* options={{ particleCount: 100 }}
|
|
140
|
+
* />
|
|
141
|
+
* <h1>Success!</h1>
|
|
142
|
+
* </div>
|
|
143
|
+
* );
|
|
144
|
+
* }
|
|
145
|
+
* ```
|
|
146
|
+
*/
|
|
147
|
+
export function ConfettiOnMount({ origin, options, onComplete, delay = 0, }) {
|
|
148
|
+
const { fire } = useConfetti();
|
|
149
|
+
const hasFired = useRef(false);
|
|
150
|
+
useEffect(() => {
|
|
151
|
+
if (hasFired.current)
|
|
152
|
+
return;
|
|
153
|
+
hasFired.current = true;
|
|
154
|
+
const burstOrigin = origin ?? {
|
|
155
|
+
x: typeof window !== 'undefined' ? window.innerWidth / 2 : 0,
|
|
156
|
+
y: typeof window !== 'undefined' ? window.innerHeight / 2 : 0,
|
|
157
|
+
};
|
|
158
|
+
const timeoutId = setTimeout(() => {
|
|
159
|
+
const handle = fire(burstOrigin, options);
|
|
160
|
+
handle.promise.then(() => onComplete?.());
|
|
161
|
+
}, delay);
|
|
162
|
+
return () => clearTimeout(timeoutId);
|
|
163
|
+
}, [fire, origin, options, onComplete, delay]);
|
|
164
|
+
return null;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Positioned cannon component for directional confetti bursts
|
|
168
|
+
*
|
|
169
|
+
* @example
|
|
170
|
+
* ```tsx
|
|
171
|
+
* <ConfettiCannon
|
|
172
|
+
* left="10%"
|
|
173
|
+
* top="80%"
|
|
174
|
+
* angle={60}
|
|
175
|
+
* fire={shouldFire}
|
|
176
|
+
* options={{ particleCount: 50 }}
|
|
177
|
+
* />
|
|
178
|
+
* ```
|
|
179
|
+
*/
|
|
180
|
+
export function ConfettiCannon({ left = 0, top = 0, angle = 90, options, fire: shouldFire = false, onComplete, }) {
|
|
181
|
+
const { fire } = useConfetti();
|
|
182
|
+
const hasFired = useRef(false);
|
|
183
|
+
useEffect(() => {
|
|
184
|
+
if (!shouldFire || hasFired.current)
|
|
185
|
+
return;
|
|
186
|
+
if (typeof window === 'undefined')
|
|
187
|
+
return;
|
|
188
|
+
hasFired.current = true;
|
|
189
|
+
// Calculate position
|
|
190
|
+
const x = typeof left === 'string' && left.endsWith('%')
|
|
191
|
+
? (parseFloat(left) / 100) * window.innerWidth
|
|
192
|
+
: typeof left === 'number'
|
|
193
|
+
? left
|
|
194
|
+
: parseFloat(left) || 0;
|
|
195
|
+
const y = typeof top === 'string' && top.endsWith('%')
|
|
196
|
+
? (parseFloat(top) / 100) * window.innerHeight
|
|
197
|
+
: typeof top === 'number'
|
|
198
|
+
? top
|
|
199
|
+
: parseFloat(top) || 0;
|
|
200
|
+
const handle = fire({ x, y }, {
|
|
201
|
+
...options,
|
|
202
|
+
direction: {
|
|
203
|
+
...options?.direction,
|
|
204
|
+
direction: 'custom',
|
|
205
|
+
angle,
|
|
206
|
+
},
|
|
207
|
+
});
|
|
208
|
+
handle.promise.then(() => onComplete?.());
|
|
209
|
+
}, [shouldFire, left, top, angle, options, fire, onComplete]);
|
|
210
|
+
// Reset when fire becomes false
|
|
211
|
+
useEffect(() => {
|
|
212
|
+
if (!shouldFire) {
|
|
213
|
+
hasFired.current = false;
|
|
214
|
+
}
|
|
215
|
+
}, [shouldFire]);
|
|
216
|
+
return null;
|
|
217
|
+
}
|
|
218
|
+
export function Confetti({ width, height, numberOfPieces = 200, confettiSource, initialVelocityX, initialVelocityY, recycle = true, run = true, gravity = 0.3, wind = 0, opacity = 1, drawShape, tweenDuration = 100, colors, onConfettiComplete, frameRate,
|
|
219
|
+
// style and className are for API compatibility but not used in canvas
|
|
220
|
+
}) {
|
|
221
|
+
const { fire } = useConfetti();
|
|
222
|
+
const handleRef = useRef(null);
|
|
223
|
+
const hasStarted = useRef(false);
|
|
224
|
+
useEffect(() => {
|
|
225
|
+
if (!run) {
|
|
226
|
+
if (handleRef.current) {
|
|
227
|
+
handleRef.current.stop();
|
|
228
|
+
handleRef.current = null;
|
|
229
|
+
}
|
|
230
|
+
hasStarted.current = false;
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
if (hasStarted.current)
|
|
234
|
+
return;
|
|
235
|
+
hasStarted.current = true;
|
|
236
|
+
// Calculate spawn area
|
|
237
|
+
const spawnArea = confettiSource
|
|
238
|
+
? {
|
|
239
|
+
type: 'rect',
|
|
240
|
+
x: confettiSource.x,
|
|
241
|
+
y: confettiSource.y,
|
|
242
|
+
w: confettiSource.w ?? window.innerWidth,
|
|
243
|
+
h: confettiSource.h ?? 10,
|
|
244
|
+
}
|
|
245
|
+
: {
|
|
246
|
+
type: 'rect',
|
|
247
|
+
x: 0,
|
|
248
|
+
y: 0,
|
|
249
|
+
w: width ?? window.innerWidth,
|
|
250
|
+
h: 10,
|
|
251
|
+
};
|
|
252
|
+
// Convert velocity props
|
|
253
|
+
const velX = typeof initialVelocityX === 'number'
|
|
254
|
+
? [initialVelocityX * 0.5, initialVelocityX * 1.5]
|
|
255
|
+
: initialVelocityX
|
|
256
|
+
? [initialVelocityX.min, initialVelocityX.max]
|
|
257
|
+
: [4, 10];
|
|
258
|
+
const velY = typeof initialVelocityY === 'number'
|
|
259
|
+
? [initialVelocityY * 0.5, initialVelocityY * 1.5]
|
|
260
|
+
: initialVelocityY
|
|
261
|
+
? [initialVelocityY.min, initialVelocityY.max]
|
|
262
|
+
: [10, 30];
|
|
263
|
+
// Start the continuous confetti
|
|
264
|
+
const centerX = (width ?? window.innerWidth) / 2;
|
|
265
|
+
const centerY = 0;
|
|
266
|
+
handleRef.current = fire({ x: centerX, y: centerY }, {
|
|
267
|
+
particleCount: numberOfPieces,
|
|
268
|
+
particle: {
|
|
269
|
+
colors: colors ?? ['#ff0000', '#00ff00', '#0000ff', '#ffff00', '#ff00ff', '#00ffff'],
|
|
270
|
+
opacity: [opacity * 0.8, opacity],
|
|
271
|
+
shapes: ['square', 'circle', 'rectangle'],
|
|
272
|
+
drawShape,
|
|
273
|
+
},
|
|
274
|
+
physics: {
|
|
275
|
+
gravity: gravity * 10, // Scale to match react-confetti
|
|
276
|
+
wind: wind * 5,
|
|
277
|
+
windVariation: velX[1] - velX[0], // Use horizontal velocity as wind variation
|
|
278
|
+
},
|
|
279
|
+
direction: {
|
|
280
|
+
velocity: velY,
|
|
281
|
+
},
|
|
282
|
+
mode: 'continuous',
|
|
283
|
+
spawnArea,
|
|
284
|
+
continuous: {
|
|
285
|
+
recycle,
|
|
286
|
+
numberOfPieces,
|
|
287
|
+
spawnRate: 30,
|
|
288
|
+
run,
|
|
289
|
+
tweenDuration,
|
|
290
|
+
},
|
|
291
|
+
canvas: {
|
|
292
|
+
width,
|
|
293
|
+
height,
|
|
294
|
+
frameRate,
|
|
295
|
+
autoResize: !width && !height,
|
|
296
|
+
},
|
|
297
|
+
onComplete: onConfettiComplete,
|
|
298
|
+
});
|
|
299
|
+
return () => {
|
|
300
|
+
if (handleRef.current) {
|
|
301
|
+
handleRef.current.stop();
|
|
302
|
+
handleRef.current = null;
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
}, [
|
|
306
|
+
run,
|
|
307
|
+
width,
|
|
308
|
+
height,
|
|
309
|
+
numberOfPieces,
|
|
310
|
+
confettiSource,
|
|
311
|
+
initialVelocityX,
|
|
312
|
+
initialVelocityY,
|
|
313
|
+
recycle,
|
|
314
|
+
gravity,
|
|
315
|
+
wind,
|
|
316
|
+
opacity,
|
|
317
|
+
drawShape,
|
|
318
|
+
tweenDuration,
|
|
319
|
+
colors,
|
|
320
|
+
onConfettiComplete,
|
|
321
|
+
frameRate,
|
|
322
|
+
fire,
|
|
323
|
+
]);
|
|
324
|
+
// Handle recycle changes
|
|
325
|
+
useEffect(() => {
|
|
326
|
+
if (handleRef.current && !recycle) {
|
|
327
|
+
// Stop recycling - animation will end naturally
|
|
328
|
+
// This is handled in the engine
|
|
329
|
+
}
|
|
330
|
+
}, [recycle]);
|
|
331
|
+
return null;
|
|
332
|
+
}
|
|
333
|
+
Confetti.displayName = 'Confetti';
|
|
334
|
+
//# sourceMappingURL=components.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../src/components.tsx"],"names":[],"mappings":";AAAA;;;;;GAKG;AAEH,OAAc,EACZ,SAAS,EACT,MAAM,EACN,WAAW,EACX,UAAU,EACV,mBAAmB,GACpB,MAAM,OAAO,CAAC;AASf,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,aAAa,CAAC,EAC5B,MAAM,EACN,MAAM,EACN,UAAU,EACV,OAAO,EACP,UAAU,GACS;IACnB,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