@tarsis/toolkit 0.6.4 → 0.6.6
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/dist/{gl-CF6SrQxS.js → gl-C1OpenGq.js} +1 -1
- package/dist/{gl-u7lLnVc7.cjs → gl-LtHwn-bj.cjs} +1 -1
- package/dist/hooks.cjs +1 -1
- package/dist/hooks.d.ts +15 -2
- package/dist/hooks.js +1 -1
- package/dist/{index-DUlCyGFJ.js → index-Cz74WvnK.js} +1 -1
- package/dist/{index-DMypN5i0.cjs → index-DhWWozeo.cjs} +1 -1
- package/dist/{index-DrMeiPM1.cjs → index-DvXp0wCM.cjs} +29 -29
- package/dist/{index-DDE-qC4q.js → index-JZY8IMW2.js} +29 -29
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +20 -7
- package/dist/index.js +2 -2
- package/dist/styles.css +627 -627
- package/dist/{useWindowReady-CIYJL39Z.cjs → useWindowReady-6kIdYolB.cjs} +5 -1
- package/dist/{useWindowReady-CYOtIur4.js → useWindowReady-tUs-ONyG.js} +5 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as commonjsGlobal, a as getAugmentedNamespace, g as getDefaultExportFromCjs, W as WebGLRenderer, P as PerspectiveCamera, S as Scene, T as THREE$1, C as Clock, b as TextureLoader, R as RawShaderMaterial, D as DoubleSide, d as WebGLRenderTarget, e as Color, M as Mesh, f as TorusKnotGeometry, h as ShaderMaterial } from './index-
|
|
1
|
+
import { c as commonjsGlobal, a as getAugmentedNamespace, g as getDefaultExportFromCjs, W as WebGLRenderer, P as PerspectiveCamera, S as Scene, T as THREE$1, C as Clock, b as TextureLoader, R as RawShaderMaterial, D as DoubleSide, d as WebGLRenderTarget, e as Color, M as Mesh, f as TorusKnotGeometry, h as ShaderMaterial } from './index-JZY8IMW2.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
object-assign
|
package/dist/hooks.cjs
CHANGED
package/dist/hooks.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ declare interface UseBowserResult {
|
|
|
28
28
|
* @param options - Optional configuration object
|
|
29
29
|
* @param options.maxWait - Maximum time before function must be invoked
|
|
30
30
|
* @param options.leading - If true, invoke on the leading edge
|
|
31
|
-
* @returns A debounced version of the callback function
|
|
31
|
+
* @returns A debounced version of the callback function with a `cancel` method
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
34
|
* ```tsx
|
|
@@ -48,11 +48,24 @@ declare interface UseBowserResult {
|
|
|
48
48
|
* { maxWait: 1000, leading: true }
|
|
49
49
|
* )
|
|
50
50
|
* ```
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```tsx
|
|
54
|
+
* // Cancel pending debounced call
|
|
55
|
+
* const debouncedSearch = useDebounce((query: string) => {
|
|
56
|
+
* console.log('Searching for:', query)
|
|
57
|
+
* }, 300)
|
|
58
|
+
*
|
|
59
|
+
* debouncedSearch('test')
|
|
60
|
+
* debouncedSearch.cancel() // Cancels the pending call
|
|
61
|
+
* ```
|
|
51
62
|
*/
|
|
52
63
|
export declare const useDebounce: <T extends (...args: any[]) => any>(callback: T, delay: number, { maxWait, leading }?: {
|
|
53
64
|
maxWait?: number;
|
|
54
65
|
leading?: boolean;
|
|
55
|
-
}) => T
|
|
66
|
+
}) => T & {
|
|
67
|
+
cancel: VoidFunction;
|
|
68
|
+
};
|
|
56
69
|
|
|
57
70
|
/**
|
|
58
71
|
* A React hook that implements the useEffectEvent pattern from React RFC.
|
package/dist/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { u as useAnimatedText, a as useBowser, b as useDebounce, d as useEffectEvent, e as useInterval, f as useLiveRef, g as useMatchMedia, h as useOklch, i as useOutsideClick, k as usePreviousRender, j as usePreviousState, l as useRaf, m as useThrottle, n as useTimeout, c as useUniversalLayoutEffect, o as useWindowReady } from './useWindowReady-
|
|
1
|
+
export { u as useAnimatedText, a as useBowser, b as useDebounce, d as useEffectEvent, e as useInterval, f as useLiveRef, g as useMatchMedia, h as useOklch, i as useOutsideClick, k as usePreviousRender, j as usePreviousState, l as useRaf, m as useThrottle, n as useTimeout, c as useUniversalLayoutEffect, o as useWindowReady } from './useWindowReady-tUs-ONyG.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const useWindowReady = require('./useWindowReady-
|
|
3
|
+
const useWindowReady = require('./useWindowReady-6kIdYolB.cjs');
|
|
4
4
|
const svg$q = require('./svg-BT_esDTZ.cjs');
|
|
5
5
|
const jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
const React = require('react');
|
|
@@ -52173,11 +52173,11 @@ const BubblyParticlesButton = () => {
|
|
|
52173
52173
|
return /* @__PURE__ */ jsxRuntime.jsx("button", { className: styles$4R.root, onClick: handleClick, children: "Click me!" });
|
|
52174
52174
|
};
|
|
52175
52175
|
|
|
52176
|
-
const root$4j = "
|
|
52177
|
-
const button$o = "
|
|
52178
|
-
const p$1 = "
|
|
52179
|
-
const text$A = "
|
|
52180
|
-
const effects = "
|
|
52176
|
+
const root$4j = "_root_1bu77_1";
|
|
52177
|
+
const button$o = "_button_1bu77_13";
|
|
52178
|
+
const p$1 = "_p_1bu77_26";
|
|
52179
|
+
const text$A = "_text_1bu77_26";
|
|
52180
|
+
const effects = "_effects_1bu77_240";
|
|
52181
52181
|
const styles$4Q = {
|
|
52182
52182
|
root: root$4j,
|
|
52183
52183
|
button: button$o,
|
|
@@ -68453,9 +68453,9 @@ const NeonButton = ({ className = "", ...rest }) => {
|
|
|
68453
68453
|
return /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", ...rest, className: clsx(styles$4h.root, className), children: "Neon" });
|
|
68454
68454
|
};
|
|
68455
68455
|
|
|
68456
|
-
const root$3Q = "
|
|
68457
|
-
const i$6 = "
|
|
68458
|
-
const text$t = "
|
|
68456
|
+
const root$3Q = "_root_1xadx_2";
|
|
68457
|
+
const i$6 = "_i_1xadx_22";
|
|
68458
|
+
const text$t = "_text_1xadx_482";
|
|
68459
68459
|
const styles$4g = {
|
|
68460
68460
|
root: root$3Q,
|
|
68461
68461
|
i: i$6,
|
|
@@ -81500,18 +81500,18 @@ const DIGIT_BANK = {
|
|
|
81500
81500
|
}
|
|
81501
81501
|
};
|
|
81502
81502
|
|
|
81503
|
-
const modal = "
|
|
81504
|
-
const active$d = "
|
|
81505
|
-
const fieldWrapper = "
|
|
81506
|
-
const field = "
|
|
81507
|
-
const sign = "
|
|
81508
|
-
const signedBy = "
|
|
81509
|
-
const signature$1 = "
|
|
81510
|
-
const letterBank = "
|
|
81511
|
-
const signatureMain = "
|
|
81512
|
-
const up = "
|
|
81513
|
-
const lo = "
|
|
81514
|
-
const digit$2 = "
|
|
81503
|
+
const modal = "_modal_1ya1z_2";
|
|
81504
|
+
const active$d = "_active_1ya1z_23";
|
|
81505
|
+
const fieldWrapper = "_fieldWrapper_1ya1z_29";
|
|
81506
|
+
const field = "_field_1ya1z_29";
|
|
81507
|
+
const sign = "_sign_1ya1z_62";
|
|
81508
|
+
const signedBy = "_signedBy_1ya1z_63";
|
|
81509
|
+
const signature$1 = "_signature_1ya1z_106";
|
|
81510
|
+
const letterBank = "_letterBank_1ya1z_110";
|
|
81511
|
+
const signatureMain = "_signatureMain_1ya1z_121";
|
|
81512
|
+
const up = "_up_1ya1z_135";
|
|
81513
|
+
const lo = "_lo_1ya1z_136";
|
|
81514
|
+
const digit$2 = "_digit_1ya1z_137";
|
|
81515
81515
|
const styles$2v = {
|
|
81516
81516
|
modal: modal,
|
|
81517
81517
|
active: active$d,
|
|
@@ -81569,7 +81569,7 @@ const SignatureAnimation = ({ className, onChange }) => {
|
|
|
81569
81569
|
if (digitData) {
|
|
81570
81570
|
charInfo = digitData;
|
|
81571
81571
|
className2 = styles$2v.digit;
|
|
81572
|
-
charKey = key
|
|
81572
|
+
charKey = `d${key}`;
|
|
81573
81573
|
} else {
|
|
81574
81574
|
const letterKey = key.toLowerCase();
|
|
81575
81575
|
const letterData = LETTER_BANK[letterKey];
|
|
@@ -82104,7 +82104,7 @@ const EndlessLoader = ({ container }) => {
|
|
|
82104
82104
|
return;
|
|
82105
82105
|
}
|
|
82106
82106
|
try {
|
|
82107
|
-
const GLModule = await Promise.resolve().then(() => require('./gl-
|
|
82107
|
+
const GLModule = await Promise.resolve().then(() => require('./gl-LtHwn-bj.cjs'));
|
|
82108
82108
|
if (!isActiveRef.current) {
|
|
82109
82109
|
return;
|
|
82110
82110
|
}
|
|
@@ -88407,11 +88407,11 @@ const ScrambledText = ({ children, reveal = false }) => {
|
|
|
88407
88407
|
);
|
|
88408
88408
|
};
|
|
88409
88409
|
|
|
88410
|
-
const root$Y = "
|
|
88411
|
-
const line = "
|
|
88412
|
-
const word$1 = "
|
|
88413
|
-
const link = "
|
|
88414
|
-
const letter = "
|
|
88410
|
+
const root$Y = "_root_15pmw_1";
|
|
88411
|
+
const line = "_line_15pmw_9";
|
|
88412
|
+
const word$1 = "_word_15pmw_14";
|
|
88413
|
+
const link = "_link_15pmw_18";
|
|
88414
|
+
const letter = "_letter_15pmw_22";
|
|
88415
88415
|
const styles$14 = {
|
|
88416
88416
|
root: root$Y,
|
|
88417
88417
|
line: line,
|
|
@@ -98440,7 +98440,7 @@ const Lock = () => {
|
|
|
98440
98440
|
}
|
|
98441
98441
|
};
|
|
98442
98442
|
const asynchronously = async () => {
|
|
98443
|
-
const Flickity = await Promise.resolve().then(() => require('./index-
|
|
98443
|
+
const Flickity = await Promise.resolve().then(() => require('./index-DhWWozeo.cjs')).then(n => n.index).then((m) => m.default);
|
|
98444
98444
|
if (!rowsRef.current || !window) return;
|
|
98445
98445
|
const rows = rowsRef.current.children;
|
|
98446
98446
|
for (let i = 0, len = rows.length; i < len; i++) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as resolveVariant, p as animateTarget, q as isObject$3, s as resolveElements, t as interpolate$2, v as frame$2, w as isMotionValue, J as JSAnimation, x as isVariantLabel, y as variantProps, z as isAnimationControls, A as isKeyframesTarget, B as variantPriorityOrder, C as mixNumber, D as percent, E as scalePoint, F as px$2, G as progress$2, H as noop$4, I as circOut, K as time$1, L as cancelFrame, M as addUniqueItem, N as removeItem, S as SubscriptionManager, O as isSVGElement$1, P as isSVGSVGElement, Q as getValueTransition, R as clamp$3, T as frameData, U as frameSteps, V as microtask, W as createBox, X as hasTransform, Y as translateAxis, Z as transformBox, _ as hasScale, $ as applyBoxDelta, a0 as has2DTranslate, a1 as applyTreeDeltas, a2 as createDelta, a3 as motionValue, a4 as animateSingleValue, a5 as scaleCorrectors, a6 as getOptimisedAppearId, a7 as MotionConfigContext, a8 as useConstant, a9 as getFeatureDefinitions, aa as setFeatureDefinitions, ab as isControllingVariants, ac as isForcedMotionValue, ad as buildHTMLStyles, ae as buildSVGAttrs, af as isSVGTag, ag as isVariantNode, ah as resolveVariantFromProps, ai as scrapeMotionValuesFromProps, aj as scrapeMotionValuesFromProps$1, ak as optimizedAppearDataAttribute, al as warning, am as invariant, an as warnOnce, ao as SVGVisualElement, ap as HTMLVisualElement, aq as pipe$1, ar as secondsToMilliseconds, as as millisecondsToSeconds, at as measurePageBox, au as convertBoxToBoundingBox, av as convertBoundingBoxToBox, aw as addValueToWillChange, ax as animateMotionValue, ay as useMotionValue, az as collectMotionValues, aA as hasReducedMotionListener, aB as initPrefersReducedMotion, aC as prefersReducedMotion, aD as createScopedAnimate, f as useLiveRef, m as useThrottle, g as useMatchMedia, l as useRaf, b as useDebounce, i as useOutsideClick, o as useWindowReady, e as useInterval, d as useEffectEvent$1, h as useOklch } from './useWindowReady-
|
|
1
|
+
import { r as resolveVariant, p as animateTarget, q as isObject$3, s as resolveElements, t as interpolate$2, v as frame$2, w as isMotionValue, J as JSAnimation, x as isVariantLabel, y as variantProps, z as isAnimationControls, A as isKeyframesTarget, B as variantPriorityOrder, C as mixNumber, D as percent, E as scalePoint, F as px$2, G as progress$2, H as noop$4, I as circOut, K as time$1, L as cancelFrame, M as addUniqueItem, N as removeItem, S as SubscriptionManager, O as isSVGElement$1, P as isSVGSVGElement, Q as getValueTransition, R as clamp$3, T as frameData, U as frameSteps, V as microtask, W as createBox, X as hasTransform, Y as translateAxis, Z as transformBox, _ as hasScale, $ as applyBoxDelta, a0 as has2DTranslate, a1 as applyTreeDeltas, a2 as createDelta, a3 as motionValue, a4 as animateSingleValue, a5 as scaleCorrectors, a6 as getOptimisedAppearId, a7 as MotionConfigContext, a8 as useConstant, a9 as getFeatureDefinitions, aa as setFeatureDefinitions, ab as isControllingVariants, ac as isForcedMotionValue, ad as buildHTMLStyles, ae as buildSVGAttrs, af as isSVGTag, ag as isVariantNode, ah as resolveVariantFromProps, ai as scrapeMotionValuesFromProps, aj as scrapeMotionValuesFromProps$1, ak as optimizedAppearDataAttribute, al as warning, am as invariant, an as warnOnce, ao as SVGVisualElement, ap as HTMLVisualElement, aq as pipe$1, ar as secondsToMilliseconds, as as millisecondsToSeconds, at as measurePageBox, au as convertBoxToBoundingBox, av as convertBoundingBoxToBox, aw as addValueToWillChange, ax as animateMotionValue, ay as useMotionValue, az as collectMotionValues, aA as hasReducedMotionListener, aB as initPrefersReducedMotion, aC as prefersReducedMotion, aD as createScopedAnimate, f as useLiveRef, m as useThrottle, g as useMatchMedia, l as useRaf, b as useDebounce, i as useOutsideClick, o as useWindowReady, e as useInterval, d as useEffectEvent$1, h as useOklch } from './useWindowReady-tUs-ONyG.js';
|
|
2
2
|
import { n as noop$5, D as getPath, z as lerp$1, x as distance$2, y as lineEq, C as wait } from './svg-CQLdTbLk.js';
|
|
3
3
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
4
4
|
import * as React from 'react';
|
|
@@ -52153,11 +52153,11 @@ const BubblyParticlesButton = () => {
|
|
|
52153
52153
|
return /* @__PURE__ */ jsx("button", { className: styles$4R.root, onClick: handleClick, children: "Click me!" });
|
|
52154
52154
|
};
|
|
52155
52155
|
|
|
52156
|
-
const root$4j = "
|
|
52157
|
-
const button$o = "
|
|
52158
|
-
const p$1 = "
|
|
52159
|
-
const text$A = "
|
|
52160
|
-
const effects = "
|
|
52156
|
+
const root$4j = "_root_1bu77_1";
|
|
52157
|
+
const button$o = "_button_1bu77_13";
|
|
52158
|
+
const p$1 = "_p_1bu77_26";
|
|
52159
|
+
const text$A = "_text_1bu77_26";
|
|
52160
|
+
const effects = "_effects_1bu77_240";
|
|
52161
52161
|
const styles$4Q = {
|
|
52162
52162
|
root: root$4j,
|
|
52163
52163
|
button: button$o,
|
|
@@ -68433,9 +68433,9 @@ const NeonButton = ({ className = "", ...rest }) => {
|
|
|
68433
68433
|
return /* @__PURE__ */ jsx("button", { type: "button", ...rest, className: clsx(styles$4h.root, className), children: "Neon" });
|
|
68434
68434
|
};
|
|
68435
68435
|
|
|
68436
|
-
const root$3Q = "
|
|
68437
|
-
const i$6 = "
|
|
68438
|
-
const text$t = "
|
|
68436
|
+
const root$3Q = "_root_1xadx_2";
|
|
68437
|
+
const i$6 = "_i_1xadx_22";
|
|
68438
|
+
const text$t = "_text_1xadx_482";
|
|
68439
68439
|
const styles$4g = {
|
|
68440
68440
|
root: root$3Q,
|
|
68441
68441
|
i: i$6,
|
|
@@ -81480,18 +81480,18 @@ const DIGIT_BANK = {
|
|
|
81480
81480
|
}
|
|
81481
81481
|
};
|
|
81482
81482
|
|
|
81483
|
-
const modal = "
|
|
81484
|
-
const active$d = "
|
|
81485
|
-
const fieldWrapper = "
|
|
81486
|
-
const field = "
|
|
81487
|
-
const sign = "
|
|
81488
|
-
const signedBy = "
|
|
81489
|
-
const signature$1 = "
|
|
81490
|
-
const letterBank = "
|
|
81491
|
-
const signatureMain = "
|
|
81492
|
-
const up = "
|
|
81493
|
-
const lo = "
|
|
81494
|
-
const digit$2 = "
|
|
81483
|
+
const modal = "_modal_1ya1z_2";
|
|
81484
|
+
const active$d = "_active_1ya1z_23";
|
|
81485
|
+
const fieldWrapper = "_fieldWrapper_1ya1z_29";
|
|
81486
|
+
const field = "_field_1ya1z_29";
|
|
81487
|
+
const sign = "_sign_1ya1z_62";
|
|
81488
|
+
const signedBy = "_signedBy_1ya1z_63";
|
|
81489
|
+
const signature$1 = "_signature_1ya1z_106";
|
|
81490
|
+
const letterBank = "_letterBank_1ya1z_110";
|
|
81491
|
+
const signatureMain = "_signatureMain_1ya1z_121";
|
|
81492
|
+
const up = "_up_1ya1z_135";
|
|
81493
|
+
const lo = "_lo_1ya1z_136";
|
|
81494
|
+
const digit$2 = "_digit_1ya1z_137";
|
|
81495
81495
|
const styles$2v = {
|
|
81496
81496
|
modal: modal,
|
|
81497
81497
|
active: active$d,
|
|
@@ -81549,7 +81549,7 @@ const SignatureAnimation = ({ className, onChange }) => {
|
|
|
81549
81549
|
if (digitData) {
|
|
81550
81550
|
charInfo = digitData;
|
|
81551
81551
|
className2 = styles$2v.digit;
|
|
81552
|
-
charKey = key
|
|
81552
|
+
charKey = `d${key}`;
|
|
81553
81553
|
} else {
|
|
81554
81554
|
const letterKey = key.toLowerCase();
|
|
81555
81555
|
const letterData = LETTER_BANK[letterKey];
|
|
@@ -82084,7 +82084,7 @@ const EndlessLoader = ({ container }) => {
|
|
|
82084
82084
|
return;
|
|
82085
82085
|
}
|
|
82086
82086
|
try {
|
|
82087
|
-
const GLModule = await import('./gl-
|
|
82087
|
+
const GLModule = await import('./gl-C1OpenGq.js');
|
|
82088
82088
|
if (!isActiveRef.current) {
|
|
82089
82089
|
return;
|
|
82090
82090
|
}
|
|
@@ -88387,11 +88387,11 @@ const ScrambledText = ({ children, reveal = false }) => {
|
|
|
88387
88387
|
);
|
|
88388
88388
|
};
|
|
88389
88389
|
|
|
88390
|
-
const root$Y = "
|
|
88391
|
-
const line = "
|
|
88392
|
-
const word$1 = "
|
|
88393
|
-
const link = "
|
|
88394
|
-
const letter = "
|
|
88390
|
+
const root$Y = "_root_15pmw_1";
|
|
88391
|
+
const line = "_line_15pmw_9";
|
|
88392
|
+
const word$1 = "_word_15pmw_14";
|
|
88393
|
+
const link = "_link_15pmw_18";
|
|
88394
|
+
const letter = "_letter_15pmw_22";
|
|
88395
88395
|
const styles$14 = {
|
|
88396
88396
|
root: root$Y,
|
|
88397
88397
|
line: line,
|
|
@@ -98420,7 +98420,7 @@ const Lock = () => {
|
|
|
98420
98420
|
}
|
|
98421
98421
|
};
|
|
98422
98422
|
const asynchronously = async () => {
|
|
98423
|
-
const Flickity = await import('./index-
|
|
98423
|
+
const Flickity = await import('./index-Cz74WvnK.js').then(n => n.i).then((m) => m.default);
|
|
98424
98424
|
if (!rowsRef.current || !window) return;
|
|
98425
98425
|
const rows = rowsRef.current.children;
|
|
98426
98426
|
for (let i = 0, len = rows.length; i < len; i++) {
|
package/dist/index.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const useWindowReady = require('./useWindowReady-
|
|
5
|
+
const index = require('./index-DvXp0wCM.cjs');
|
|
6
|
+
const useWindowReady = require('./useWindowReady-6kIdYolB.cjs');
|
|
7
7
|
const svg = require('./svg-BT_esDTZ.cjs');
|
|
8
8
|
|
|
9
9
|
|
package/dist/index.d.ts
CHANGED
|
@@ -773,15 +773,15 @@ declare type Props_12 = {
|
|
|
773
773
|
duration?: number;
|
|
774
774
|
maxScale?: number;
|
|
775
775
|
className?: string;
|
|
776
|
-
onDelete?:
|
|
776
|
+
onDelete?: VoidFunction;
|
|
777
777
|
};
|
|
778
778
|
|
|
779
779
|
declare type Props_13 = {
|
|
780
|
-
children:
|
|
780
|
+
children: ReactNode;
|
|
781
781
|
duration?: number;
|
|
782
782
|
maxScale?: number;
|
|
783
783
|
className?: string;
|
|
784
|
-
onTrigger?:
|
|
784
|
+
onTrigger?: VoidFunction;
|
|
785
785
|
trigger?: boolean;
|
|
786
786
|
};
|
|
787
787
|
|
|
@@ -1055,8 +1055,8 @@ declare type Props_62 = {
|
|
|
1055
1055
|
artist?: string;
|
|
1056
1056
|
imageUrl?: string;
|
|
1057
1057
|
variant?: 'default' | 'large' | 'inline';
|
|
1058
|
-
onPlay?:
|
|
1059
|
-
onFastForward?:
|
|
1058
|
+
onPlay?: VoidFunction;
|
|
1059
|
+
onFastForward?: VoidFunction;
|
|
1060
1060
|
className?: string;
|
|
1061
1061
|
children?: ReactNode;
|
|
1062
1062
|
};
|
|
@@ -1460,7 +1460,7 @@ declare interface UseBowserResult {
|
|
|
1460
1460
|
* @param options - Optional configuration object
|
|
1461
1461
|
* @param options.maxWait - Maximum time before function must be invoked
|
|
1462
1462
|
* @param options.leading - If true, invoke on the leading edge
|
|
1463
|
-
* @returns A debounced version of the callback function
|
|
1463
|
+
* @returns A debounced version of the callback function with a `cancel` method
|
|
1464
1464
|
*
|
|
1465
1465
|
* @example
|
|
1466
1466
|
* ```tsx
|
|
@@ -1480,11 +1480,24 @@ declare interface UseBowserResult {
|
|
|
1480
1480
|
* { maxWait: 1000, leading: true }
|
|
1481
1481
|
* )
|
|
1482
1482
|
* ```
|
|
1483
|
+
*
|
|
1484
|
+
* @example
|
|
1485
|
+
* ```tsx
|
|
1486
|
+
* // Cancel pending debounced call
|
|
1487
|
+
* const debouncedSearch = useDebounce((query: string) => {
|
|
1488
|
+
* console.log('Searching for:', query)
|
|
1489
|
+
* }, 300)
|
|
1490
|
+
*
|
|
1491
|
+
* debouncedSearch('test')
|
|
1492
|
+
* debouncedSearch.cancel() // Cancels the pending call
|
|
1493
|
+
* ```
|
|
1483
1494
|
*/
|
|
1484
1495
|
export declare const useDebounce: <T extends (...args: any[]) => any>(callback: T, delay: number, { maxWait, leading }?: {
|
|
1485
1496
|
maxWait?: number;
|
|
1486
1497
|
leading?: boolean;
|
|
1487
|
-
}) => T
|
|
1498
|
+
}) => T & {
|
|
1499
|
+
cancel: VoidFunction;
|
|
1500
|
+
};
|
|
1488
1501
|
|
|
1489
1502
|
/**
|
|
1490
1503
|
* A React hook that implements the useEffectEvent pattern from React RFC.
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { bE as AccentShardCard, d2 as AcrobaticPreloader, az as ActivateButton, A as AdjoinedFilters, aA as AirplaneAnimation, d3 as AlienSkeuomorphicLoaders, bF as AnimatedBlendedCard, cF as AnimatedHeroTitle, aB as AnimatedHoverButton, aC as AnimatedHoverGlowButton, dw as AnimatedIconsNav, dx as AnimatedShareMenu, dV as ApertureVideo, p as Appearance, q as AreaLight, aD as AuroraButton, cu as AutoMasonryGrid, r as AvatarHover, at as BackgroundCircles, B as BackgroundSlider, ad as BlurVignette, s as BlurredBackground, cA as BoldHamburger, ae as BorderGradient, cW as BorderLink, t as BouncyClock, bG as BrandCard, u as BreakingProgress, aE as BubblyParticlesButton, dS as BugsPage, b_ as BulletsCarousel, aF as BurningButton, aG as ButtonHoverFill, aH as ButtonShimmer, aI as ButtonWithDot, d4 as CanOfDigits, bI as CaptionCard, b$ as CardCarousel, v as CardDetails, bJ as CardGlow, du as CardMarquee, bK as CardTile, d5 as ChaseLoader, c9 as Checkbox, bL as ChequeredCard, cd as Chips, w as ChromaticAberration, d6 as CircleDotsLoader, x as CircleLinesAnimation, cX as CircleLink, af as CircleParticles, ci as CircleTextHover, aJ as ClaymorphicHeart, cM as ClearInput, aK as ClickButtonParticles, cj as ClickSpark, y as CollapseAnimation, aL as ColorfulButtons, ay as ComingSoonBadge, au as ComplexGradient, aM as ConfettiButton, cG as ContrastBackgroundText, ag as Counter, c0 as CoverFlowGallery, d7 as CubeLoader, dz as CurtainRevealMenu, aO as DDDButton, bM as DDDHoverCard, e5 as DDDRangeSlider, cf as DailClock, aN as DarkMatterButton, ck as DarkMatterMouseEffect, e9 as DaySwitch, cv as DenseGrid, dA as DetachedMenu, co as DialControl, cp as DialFuturistic, an as DissolveElementEffect, cr as Dock, aP as DockButton, cs as DockHas, ct as DockMotion, aQ as DoubleArrowButton, aR as DoubleArrowCollabButton, aS as DoubleStateButton, dB as DropdownMenu, j as Duck, aT as DynamicIconButton, k as DynamicIsland, aU as EchoClickButton, cl as ElasticCursor, aV as ElectrifiedButton, aW as ElectrifiedButtonGS, cS as EmailInput, dT as EmojiLayer, d8 as EndlessLoader, ej as EnlightenedText, bN as EnvelopeTile, aq as Expand, F as FadeUp, aX as FailedDownloadButton, e8 as FeedbackReactions, bH as FigmaLogo, z as FileIcons, l as Fingerprint, ce as FlipChips, cN as FloatingLabelInput, cH as FluidGooeyTextBackground, aY as FootprintButton, cY as ForwardArrowLink, c1 as FullScreenImageCarousel, dC as Futuristic3DHoverMenu, aZ as GalaxyButton, c2 as GalleryReverseScroll, cI as GlassIcon, dW as GlassMusicPlayer, ea as GlassSwitch, a_ as GlassToolbar, c3 as GlideImageGallery, G as GlidingReveal, E as GlitterCard, a$ as GlowButton, e6 as GlowSlider, dD as GlowingDropdown, cO as GlowingInput, H as GlowingShadows, dE as GlowingTabs, dF as GlowingTabs2, ek as GlowingText, bO as GlowingTile, b1 as GoHoverButton, b0 as GodRaysButton, b2 as GooeyButton, I as GradientBorder, bP as GradientGlowingTile, el as GrainyGradientText, b3 as GravityButton, cw as Grid3DCards, ar as GridAccordion, cx as GridHover, cy as GridViewTransition, cB as HamburgerMusic, cC as HamburgerX, cD as Header, b4 as HeartFoldButton, b5 as HoldSubmitButton, b6 as HoverGlowButton, bQ as HoverTile, bR as Hoverable3DCard, dy as ITEMS, ah as Illumination, bS as ImageCard, J as ImageClipping, ca as IndeterminateCheckboxes, d9 as InfiniteLoader, cP as InputFirework, bT as InvertedRadius, b7 as Ios15Button, eb as IosSwitch, em as JellyText, ai as LandingXYScroll, L as LayeredComponents, cz as LeaningCards, c4 as ListItemHover, da as LoaderGenerator, db as LoadingBook, dc as LoadingWave, K as Lock, aa as LoveGlow, cn as MagicMouseEffect, en as MagicalText, b8 as MagneticButton, dG as MagnifiedNavItems, cq as MetalCircleController, as as MinimalisticAccordion, b9 as MinimalisticGlassButton, dH as MobileNavBar, ba as MorphingSubmitButton, cg as MotionClock, O as MotionDigits, Q as MouseMoveGallery, U as MultiGradientBackground, bb as MultiStageButton, V as MultipathSvgAnimation, N as NamedPointer, dI as NavigationMenu, bc as NeonButton, ec as NeonToggleSwitch, ch as NeumorphicAnalogClock, cJ as NeumorphicLogo, e7 as NeumorphicSlider, ed as NeuromorphicToggle, cT as NewsletterInput, bd as NoisyButton, X as NotificationBell, dd as OffTrackPreloader, be as OrbitalSubmitButton, cZ as PaintedLink, bf as PaperPlanButton, dU as ParallaxEmoji, dJ as ParallaxMenu, cU as PasswordInput, bU as PhotoCard, Y as PhotoZoom, dK as PianoNav, de as PieLoader, dL as PinDropdown, bg as PlayPauseButton, bh as PlayPauseMusicButton, Z as PolaroidStack, bi as PositionHover, bj as PredictionButton, bV as ProductTile, bW as ProfileCard, bk as ProgressButton, bl as PsychedelicButton, df as PulseInLoader, dg as PulseOutLoader, _ as QuickTimeClock, dM as RadialMenu, dN as RadialNavigation, dZ as RadioHopping, dY as RadioParticles, dX as RadioRolling, d_ as RadioSlidingFocus, av as RaysBackground, $ as RealisticSmoke, dR as RedirectPage, c_ as RegularLink, bm as RepostButton, a0 as RevealImageAnimation, aj as RhombusGallery, dh as RingLoader, c5 as RotatedCardsCarousel, di as RoundScaleLoader, bn as RubberButton, bo as RunningButton, a1 as SchrodingerFormControls, eo as ScrambledText, ep as ScramblingLetters, d$ as ScrollCountdown, e0 as ScrollDrivenTextBlowOut, e2 as ScrollTextHighlight, e3 as ScrollTimeline, e4 as ScrollWithLight, c6 as Scroller, e1 as ScrollingTextReveal, cQ as SearchInput, m as SegmentedControls, ee as SegmentedToggle, c7 as ShadowedCardsList, cV as ShadowedClick, eq as ShakingText, c$ as ShakyLine, n as ShapeSelection, bp as ShimmerButton, bq as ShimmeringBorderGradient, bX as ShineAnimation, bY as ShineCard, er as ShiningText, br as ShinyButton, bs as ShinyCtaButton, cR as SignatureAnimation, dO as SinglePopoverMenu, dj as SkateboardPreloader, bt as SkeuomorphicLikeButton, a2 as SlideIn, bu as SlidingButton, cK as SlidingIcon, c8 as SlidingImages, bv as SlidingStepper, dk as SmileyPreloader, a3 as SmokeTextDisappearance, o as SmoothScroll, dl as SnowballPreloader, a4 as SolarEclipse, bw as SparkleButton, bx as SparklyButton, a5 as SpeechToText, dm as SpinningClickAnimation, es as SpiralLoadingText, cm as SplashCursor, cL as SquircleAvatar, by as SquishButton, bZ as StackingCards, a6 as StaticSolarEclipse, cE as StickyHeader, a7 as StickyList, ef as StretchToggle, dn as StretchyLoader, cb as StrikethroughCheckbox, cc as StrikethroughCheckboxes, dp as StuntPreloader, dq as SubtleBorderAnimation, dr as SuccessLoader, bz as SuccessLoadingButton, dP as TabBarAnimation, ab as TextImageHover, et as TextMorphing, eu as TextOutline, ev as TextShadow, aw as Texture, ak as ThanosDisappearEffect, al as ThanosDisappearEffectList, am as ThanosDissolve, bA as ThreadsLikeButton, ds as ThreeDotsLoader, bB as ThumbsUpButton, dv as Ticker, bC as TicklishButton, dt as TimeCirclesLoader, eg as TippingSwitch, i as Toasts, eh as ToggleBubble, ei as ToggleClipPath, ex as Tooltip, ey as TooltipRangeSlider, a8 as TranslucentBackdrop, bD as TrickButton, a9 as TurbulenceFilter, d0 as UnderlinedLink, d1 as UnderlinedLink2, ao as ViewTransitionAddToCard, ap as ViewTransitionImageGallery, ac as VoiceAnimation, dQ as WavyMenu, ax as WebGLSmoke, ew as WeightText } from './index-
|
|
2
|
-
export { u as useAnimatedText, a as useBowser, b as useDebounce, d as useEffectEvent, e as useInterval, f as useLiveRef, g as useMatchMedia, h as useOklch, i as useOutsideClick, k as usePreviousRender, j as usePreviousState, l as useRaf, m as useThrottle, n as useTimeout, c as useUniversalLayoutEffect, o as useWindowReady } from './useWindowReady-
|
|
1
|
+
export { bE as AccentShardCard, d2 as AcrobaticPreloader, az as ActivateButton, A as AdjoinedFilters, aA as AirplaneAnimation, d3 as AlienSkeuomorphicLoaders, bF as AnimatedBlendedCard, cF as AnimatedHeroTitle, aB as AnimatedHoverButton, aC as AnimatedHoverGlowButton, dw as AnimatedIconsNav, dx as AnimatedShareMenu, dV as ApertureVideo, p as Appearance, q as AreaLight, aD as AuroraButton, cu as AutoMasonryGrid, r as AvatarHover, at as BackgroundCircles, B as BackgroundSlider, ad as BlurVignette, s as BlurredBackground, cA as BoldHamburger, ae as BorderGradient, cW as BorderLink, t as BouncyClock, bG as BrandCard, u as BreakingProgress, aE as BubblyParticlesButton, dS as BugsPage, b_ as BulletsCarousel, aF as BurningButton, aG as ButtonHoverFill, aH as ButtonShimmer, aI as ButtonWithDot, d4 as CanOfDigits, bI as CaptionCard, b$ as CardCarousel, v as CardDetails, bJ as CardGlow, du as CardMarquee, bK as CardTile, d5 as ChaseLoader, c9 as Checkbox, bL as ChequeredCard, cd as Chips, w as ChromaticAberration, d6 as CircleDotsLoader, x as CircleLinesAnimation, cX as CircleLink, af as CircleParticles, ci as CircleTextHover, aJ as ClaymorphicHeart, cM as ClearInput, aK as ClickButtonParticles, cj as ClickSpark, y as CollapseAnimation, aL as ColorfulButtons, ay as ComingSoonBadge, au as ComplexGradient, aM as ConfettiButton, cG as ContrastBackgroundText, ag as Counter, c0 as CoverFlowGallery, d7 as CubeLoader, dz as CurtainRevealMenu, aO as DDDButton, bM as DDDHoverCard, e5 as DDDRangeSlider, cf as DailClock, aN as DarkMatterButton, ck as DarkMatterMouseEffect, e9 as DaySwitch, cv as DenseGrid, dA as DetachedMenu, co as DialControl, cp as DialFuturistic, an as DissolveElementEffect, cr as Dock, aP as DockButton, cs as DockHas, ct as DockMotion, aQ as DoubleArrowButton, aR as DoubleArrowCollabButton, aS as DoubleStateButton, dB as DropdownMenu, j as Duck, aT as DynamicIconButton, k as DynamicIsland, aU as EchoClickButton, cl as ElasticCursor, aV as ElectrifiedButton, aW as ElectrifiedButtonGS, cS as EmailInput, dT as EmojiLayer, d8 as EndlessLoader, ej as EnlightenedText, bN as EnvelopeTile, aq as Expand, F as FadeUp, aX as FailedDownloadButton, e8 as FeedbackReactions, bH as FigmaLogo, z as FileIcons, l as Fingerprint, ce as FlipChips, cN as FloatingLabelInput, cH as FluidGooeyTextBackground, aY as FootprintButton, cY as ForwardArrowLink, c1 as FullScreenImageCarousel, dC as Futuristic3DHoverMenu, aZ as GalaxyButton, c2 as GalleryReverseScroll, cI as GlassIcon, dW as GlassMusicPlayer, ea as GlassSwitch, a_ as GlassToolbar, c3 as GlideImageGallery, G as GlidingReveal, E as GlitterCard, a$ as GlowButton, e6 as GlowSlider, dD as GlowingDropdown, cO as GlowingInput, H as GlowingShadows, dE as GlowingTabs, dF as GlowingTabs2, ek as GlowingText, bO as GlowingTile, b1 as GoHoverButton, b0 as GodRaysButton, b2 as GooeyButton, I as GradientBorder, bP as GradientGlowingTile, el as GrainyGradientText, b3 as GravityButton, cw as Grid3DCards, ar as GridAccordion, cx as GridHover, cy as GridViewTransition, cB as HamburgerMusic, cC as HamburgerX, cD as Header, b4 as HeartFoldButton, b5 as HoldSubmitButton, b6 as HoverGlowButton, bQ as HoverTile, bR as Hoverable3DCard, dy as ITEMS, ah as Illumination, bS as ImageCard, J as ImageClipping, ca as IndeterminateCheckboxes, d9 as InfiniteLoader, cP as InputFirework, bT as InvertedRadius, b7 as Ios15Button, eb as IosSwitch, em as JellyText, ai as LandingXYScroll, L as LayeredComponents, cz as LeaningCards, c4 as ListItemHover, da as LoaderGenerator, db as LoadingBook, dc as LoadingWave, K as Lock, aa as LoveGlow, cn as MagicMouseEffect, en as MagicalText, b8 as MagneticButton, dG as MagnifiedNavItems, cq as MetalCircleController, as as MinimalisticAccordion, b9 as MinimalisticGlassButton, dH as MobileNavBar, ba as MorphingSubmitButton, cg as MotionClock, O as MotionDigits, Q as MouseMoveGallery, U as MultiGradientBackground, bb as MultiStageButton, V as MultipathSvgAnimation, N as NamedPointer, dI as NavigationMenu, bc as NeonButton, ec as NeonToggleSwitch, ch as NeumorphicAnalogClock, cJ as NeumorphicLogo, e7 as NeumorphicSlider, ed as NeuromorphicToggle, cT as NewsletterInput, bd as NoisyButton, X as NotificationBell, dd as OffTrackPreloader, be as OrbitalSubmitButton, cZ as PaintedLink, bf as PaperPlanButton, dU as ParallaxEmoji, dJ as ParallaxMenu, cU as PasswordInput, bU as PhotoCard, Y as PhotoZoom, dK as PianoNav, de as PieLoader, dL as PinDropdown, bg as PlayPauseButton, bh as PlayPauseMusicButton, Z as PolaroidStack, bi as PositionHover, bj as PredictionButton, bV as ProductTile, bW as ProfileCard, bk as ProgressButton, bl as PsychedelicButton, df as PulseInLoader, dg as PulseOutLoader, _ as QuickTimeClock, dM as RadialMenu, dN as RadialNavigation, dZ as RadioHopping, dY as RadioParticles, dX as RadioRolling, d_ as RadioSlidingFocus, av as RaysBackground, $ as RealisticSmoke, dR as RedirectPage, c_ as RegularLink, bm as RepostButton, a0 as RevealImageAnimation, aj as RhombusGallery, dh as RingLoader, c5 as RotatedCardsCarousel, di as RoundScaleLoader, bn as RubberButton, bo as RunningButton, a1 as SchrodingerFormControls, eo as ScrambledText, ep as ScramblingLetters, d$ as ScrollCountdown, e0 as ScrollDrivenTextBlowOut, e2 as ScrollTextHighlight, e3 as ScrollTimeline, e4 as ScrollWithLight, c6 as Scroller, e1 as ScrollingTextReveal, cQ as SearchInput, m as SegmentedControls, ee as SegmentedToggle, c7 as ShadowedCardsList, cV as ShadowedClick, eq as ShakingText, c$ as ShakyLine, n as ShapeSelection, bp as ShimmerButton, bq as ShimmeringBorderGradient, bX as ShineAnimation, bY as ShineCard, er as ShiningText, br as ShinyButton, bs as ShinyCtaButton, cR as SignatureAnimation, dO as SinglePopoverMenu, dj as SkateboardPreloader, bt as SkeuomorphicLikeButton, a2 as SlideIn, bu as SlidingButton, cK as SlidingIcon, c8 as SlidingImages, bv as SlidingStepper, dk as SmileyPreloader, a3 as SmokeTextDisappearance, o as SmoothScroll, dl as SnowballPreloader, a4 as SolarEclipse, bw as SparkleButton, bx as SparklyButton, a5 as SpeechToText, dm as SpinningClickAnimation, es as SpiralLoadingText, cm as SplashCursor, cL as SquircleAvatar, by as SquishButton, bZ as StackingCards, a6 as StaticSolarEclipse, cE as StickyHeader, a7 as StickyList, ef as StretchToggle, dn as StretchyLoader, cb as StrikethroughCheckbox, cc as StrikethroughCheckboxes, dp as StuntPreloader, dq as SubtleBorderAnimation, dr as SuccessLoader, bz as SuccessLoadingButton, dP as TabBarAnimation, ab as TextImageHover, et as TextMorphing, eu as TextOutline, ev as TextShadow, aw as Texture, ak as ThanosDisappearEffect, al as ThanosDisappearEffectList, am as ThanosDissolve, bA as ThreadsLikeButton, ds as ThreeDotsLoader, bB as ThumbsUpButton, dv as Ticker, bC as TicklishButton, dt as TimeCirclesLoader, eg as TippingSwitch, i as Toasts, eh as ToggleBubble, ei as ToggleClipPath, ex as Tooltip, ey as TooltipRangeSlider, a8 as TranslucentBackdrop, bD as TrickButton, a9 as TurbulenceFilter, d0 as UnderlinedLink, d1 as UnderlinedLink2, ao as ViewTransitionAddToCard, ap as ViewTransitionImageGallery, ac as VoiceAnimation, dQ as WavyMenu, ax as WebGLSmoke, ew as WeightText } from './index-JZY8IMW2.js';
|
|
2
|
+
export { u as useAnimatedText, a as useBowser, b as useDebounce, d as useEffectEvent, e as useInterval, f as useLiveRef, g as useMatchMedia, h as useOklch, i as useOutsideClick, k as usePreviousRender, j as usePreviousState, l as useRaf, m as useThrottle, n as useTimeout, c as useUniversalLayoutEffect, o as useWindowReady } from './useWindowReady-tUs-ONyG.js';
|
|
3
3
|
export { B as BaseLogger, e as animationLogger, g as apiLogger, w as chain, c as clearSession, d as componentLogger, A as delay, x as distance, f as eventLogger, j as getCurrentLogLevel, D as getPath, h as hookLogger, o as is, k as isDebugEnabled, p as isNonNullable, r as keys, z as lerp, y as lineEq, l as logger, m as move, n as noop, q as notReachable, s as setLogLevel, b as setRequestId, a as setSessionId, i as storageLogger, t as times, u as utilsLogger, v as values, C as wait } from './svg-CQLdTbLk.js';
|