premium-react-loaders 3.1.0 → 4.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/README.md +30 -3
- package/dist/components/gradient/GradientBar.d.ts +13 -0
- package/dist/components/gradient/GradientBar.d.ts.map +1 -0
- package/dist/components/gradient/GradientRing.d.ts +12 -0
- package/dist/components/gradient/GradientRing.d.ts.map +1 -0
- package/dist/components/gradient/GradientSpinner.d.ts +12 -0
- package/dist/components/gradient/GradientSpinner.d.ts.map +1 -0
- package/dist/components/gradient/index.d.ts +4 -0
- package/dist/components/gradient/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/morph/LiquidFill.d.ts +13 -0
- package/dist/components/morph/LiquidFill.d.ts.map +1 -0
- package/dist/components/morph/MorphBlob.d.ts +12 -0
- package/dist/components/morph/MorphBlob.d.ts.map +1 -0
- package/dist/components/morph/WaveCircle.d.ts +12 -0
- package/dist/components/morph/WaveCircle.d.ts.map +1 -0
- package/dist/components/morph/index.d.ts +4 -0
- package/dist/components/morph/index.d.ts.map +1 -0
- package/dist/components/particle/ParticleBurst.d.ts +12 -0
- package/dist/components/particle/ParticleBurst.d.ts.map +1 -0
- package/dist/components/particle/ParticleOrbit.d.ts +12 -0
- package/dist/components/particle/ParticleOrbit.d.ts.map +1 -0
- package/dist/components/particle/index.d.ts +3 -0
- package/dist/components/particle/index.d.ts.map +1 -0
- package/dist/components/progress/ProgressBar.d.ts.map +1 -1
- package/dist/components/progress/ProgressCircle.d.ts.map +1 -1
- package/dist/components/progress/ProgressRing.d.ts.map +1 -1
- package/dist/index.cjs +17 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -1
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +1 -1
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +1 -1
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +1 -1
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +1 -1
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +1 -1
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +1 -1
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +1 -1
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +1 -1
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +1 -1
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +1 -1
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +1 -1
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +1 -1
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +1 -1
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +1 -1
- package/dist/index25.cjs +17 -2
- package/dist/index25.js +18 -3
- package/dist/index26.cjs +17 -2
- package/dist/index26.js +18 -3
- package/dist/index27.cjs +17 -2
- package/dist/index27.js +18 -3
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +1 -1
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +1 -1
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +1 -1
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +1 -1
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +1 -1
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +1 -1
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +1 -1
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +1 -1
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +1 -1
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +1 -1
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +1 -1
- package/dist/index4.cjs +10 -0
- package/dist/index4.js +10 -0
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +1 -1
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +1 -1
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +1 -1
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +1 -1
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +1 -1
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +1 -1
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +1 -1
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +1 -1
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +1 -1
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +1 -1
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +1 -1
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +1 -1
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +1 -1
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +1 -1
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +1 -1
- package/dist/index56.cjs +50 -120
- package/dist/index56.js +51 -121
- package/dist/index57.cjs +119 -0
- package/dist/index57.js +119 -0
- package/dist/index58.cjs +70 -0
- package/dist/index58.js +70 -0
- package/dist/index59.cjs +66 -0
- package/dist/index59.js +66 -0
- package/dist/index60.cjs +68 -0
- package/dist/index60.js +68 -0
- package/dist/index61.cjs +99 -0
- package/dist/index61.js +99 -0
- package/dist/index62.cjs +75 -0
- package/dist/index62.js +75 -0
- package/dist/index63.cjs +92 -0
- package/dist/index63.js +92 -0
- package/dist/index64.cjs +125 -0
- package/dist/index64.js +125 -0
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +1 -1
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +1 -1
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +1 -1
- package/dist/premium-react-loaders.css +41 -0
- package/dist/types/gradient.d.ts +38 -0
- package/dist/types/gradient.d.ts.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/morph.d.ts +28 -0
- package/dist/types/morph.d.ts.map +1 -0
- package/dist/types/particle.d.ts +22 -0
- package/dist/types/particle.d.ts.map +1 -0
- package/dist/types/progress.d.ts +6 -0
- package/dist/types/progress.d.ts.map +1 -1
- package/dist/utils/colors.d.ts +5 -0
- package/dist/utils/colors.d.ts.map +1 -1
- package/package.json +2 -5
package/dist/index24.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index64.js";
|
|
4
4
|
import { cn } from "./index3.js";
|
|
5
5
|
import { normalizeSize } from "./index4.js";
|
|
6
6
|
const SpinnerPulse = forwardRef(
|
package/dist/index25.cjs
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
5
|
const colors = require("./index4.cjs");
|
|
6
|
-
const hooks = require("./
|
|
6
|
+
const hooks = require("./index64.cjs");
|
|
7
7
|
const classNames = require("./index3.cjs");
|
|
8
8
|
const ProgressBar = react.forwardRef(
|
|
9
9
|
({
|
|
@@ -15,6 +15,7 @@ const ProgressBar = react.forwardRef(
|
|
|
15
15
|
secondaryColor = "#e0e0e0",
|
|
16
16
|
gradient = false,
|
|
17
17
|
buffer,
|
|
18
|
+
onComplete,
|
|
18
19
|
speed = "normal",
|
|
19
20
|
reverse = false,
|
|
20
21
|
respectMotionPreference = true,
|
|
@@ -37,8 +38,22 @@ const ProgressBar = react.forwardRef(
|
|
|
37
38
|
minDuration,
|
|
38
39
|
transition
|
|
39
40
|
);
|
|
40
|
-
|
|
41
|
+
const onCompleteRef = react.useRef(onComplete);
|
|
42
|
+
onCompleteRef.current = onComplete;
|
|
43
|
+
const hasCompletedRef = react.useRef(false);
|
|
41
44
|
const clampedValue = Math.min(100, Math.max(0, value));
|
|
45
|
+
react.useEffect(() => {
|
|
46
|
+
if (clampedValue < 100) {
|
|
47
|
+
hasCompletedRef.current = false;
|
|
48
|
+
}
|
|
49
|
+
}, [clampedValue]);
|
|
50
|
+
react.useEffect(() => {
|
|
51
|
+
if (!indeterminate && clampedValue === 100 && !hasCompletedRef.current && onCompleteRef.current) {
|
|
52
|
+
hasCompletedRef.current = true;
|
|
53
|
+
onCompleteRef.current();
|
|
54
|
+
}
|
|
55
|
+
}, [clampedValue, indeterminate]);
|
|
56
|
+
if (!shouldRender) return null;
|
|
42
57
|
const clampedBuffer = buffer !== void 0 ? Math.min(100, Math.max(0, buffer)) : void 0;
|
|
43
58
|
const progressLabel = ariaLabel || `Loading ${clampedValue}%`;
|
|
44
59
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
package/dist/index25.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef, useMemo } from "react";
|
|
2
|
+
import { forwardRef, useMemo, useRef, useEffect } from "react";
|
|
3
3
|
import { normalizeSize, getContrastColor } from "./index4.js";
|
|
4
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
4
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index64.js";
|
|
5
5
|
import { cn } from "./index3.js";
|
|
6
6
|
const ProgressBar = forwardRef(
|
|
7
7
|
({
|
|
@@ -13,6 +13,7 @@ const ProgressBar = forwardRef(
|
|
|
13
13
|
secondaryColor = "#e0e0e0",
|
|
14
14
|
gradient = false,
|
|
15
15
|
buffer,
|
|
16
|
+
onComplete,
|
|
16
17
|
speed = "normal",
|
|
17
18
|
reverse = false,
|
|
18
19
|
respectMotionPreference = true,
|
|
@@ -35,8 +36,22 @@ const ProgressBar = forwardRef(
|
|
|
35
36
|
minDuration,
|
|
36
37
|
transition
|
|
37
38
|
);
|
|
38
|
-
|
|
39
|
+
const onCompleteRef = useRef(onComplete);
|
|
40
|
+
onCompleteRef.current = onComplete;
|
|
41
|
+
const hasCompletedRef = useRef(false);
|
|
39
42
|
const clampedValue = Math.min(100, Math.max(0, value));
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
if (clampedValue < 100) {
|
|
45
|
+
hasCompletedRef.current = false;
|
|
46
|
+
}
|
|
47
|
+
}, [clampedValue]);
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
if (!indeterminate && clampedValue === 100 && !hasCompletedRef.current && onCompleteRef.current) {
|
|
50
|
+
hasCompletedRef.current = true;
|
|
51
|
+
onCompleteRef.current();
|
|
52
|
+
}
|
|
53
|
+
}, [clampedValue, indeterminate]);
|
|
54
|
+
if (!shouldRender) return null;
|
|
40
55
|
const clampedBuffer = buffer !== void 0 ? Math.min(100, Math.max(0, buffer)) : void 0;
|
|
41
56
|
const progressLabel = ariaLabel || `Loading ${clampedValue}%`;
|
|
42
57
|
return /* @__PURE__ */ jsxs(
|
package/dist/index26.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index64.cjs");
|
|
6
6
|
const colors = require("./index4.cjs");
|
|
7
7
|
const classNames = require("./index3.cjs");
|
|
8
8
|
const ProgressCircle = react.forwardRef(
|
|
@@ -15,6 +15,7 @@ const ProgressCircle = react.forwardRef(
|
|
|
15
15
|
color = "#3b82f6",
|
|
16
16
|
secondaryColor = "#e0e0e0",
|
|
17
17
|
buffer,
|
|
18
|
+
onComplete,
|
|
18
19
|
speed = "normal",
|
|
19
20
|
reverse = false,
|
|
20
21
|
respectMotionPreference = true,
|
|
@@ -36,8 +37,22 @@ const ProgressCircle = react.forwardRef(
|
|
|
36
37
|
minDuration,
|
|
37
38
|
transition
|
|
38
39
|
);
|
|
39
|
-
|
|
40
|
+
const onCompleteRef = react.useRef(onComplete);
|
|
41
|
+
onCompleteRef.current = onComplete;
|
|
42
|
+
const hasCompletedRef = react.useRef(false);
|
|
40
43
|
const clampedValue = Math.min(100, Math.max(0, value));
|
|
44
|
+
react.useEffect(() => {
|
|
45
|
+
if (clampedValue < 100) {
|
|
46
|
+
hasCompletedRef.current = false;
|
|
47
|
+
}
|
|
48
|
+
}, [clampedValue]);
|
|
49
|
+
react.useEffect(() => {
|
|
50
|
+
if (!indeterminate && clampedValue === 100 && !hasCompletedRef.current && onCompleteRef.current) {
|
|
51
|
+
hasCompletedRef.current = true;
|
|
52
|
+
onCompleteRef.current();
|
|
53
|
+
}
|
|
54
|
+
}, [clampedValue, indeterminate]);
|
|
55
|
+
if (!shouldRender) return null;
|
|
41
56
|
const clampedBuffer = buffer !== void 0 ? Math.min(100, Math.max(0, buffer)) : void 0;
|
|
42
57
|
const sizeValue = colors.parseSizeToNumber(size, 56);
|
|
43
58
|
const thicknessValue = colors.parseSizeToNumber(thickness, 4);
|
package/dist/index26.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
2
|
+
import { forwardRef, useRef, useEffect } from "react";
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index64.js";
|
|
4
4
|
import { normalizeSize, parseSizeToNumber } from "./index4.js";
|
|
5
5
|
import { cn } from "./index3.js";
|
|
6
6
|
const ProgressCircle = forwardRef(
|
|
@@ -13,6 +13,7 @@ const ProgressCircle = forwardRef(
|
|
|
13
13
|
color = "#3b82f6",
|
|
14
14
|
secondaryColor = "#e0e0e0",
|
|
15
15
|
buffer,
|
|
16
|
+
onComplete,
|
|
16
17
|
speed = "normal",
|
|
17
18
|
reverse = false,
|
|
18
19
|
respectMotionPreference = true,
|
|
@@ -34,8 +35,22 @@ const ProgressCircle = forwardRef(
|
|
|
34
35
|
minDuration,
|
|
35
36
|
transition
|
|
36
37
|
);
|
|
37
|
-
|
|
38
|
+
const onCompleteRef = useRef(onComplete);
|
|
39
|
+
onCompleteRef.current = onComplete;
|
|
40
|
+
const hasCompletedRef = useRef(false);
|
|
38
41
|
const clampedValue = Math.min(100, Math.max(0, value));
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
if (clampedValue < 100) {
|
|
44
|
+
hasCompletedRef.current = false;
|
|
45
|
+
}
|
|
46
|
+
}, [clampedValue]);
|
|
47
|
+
useEffect(() => {
|
|
48
|
+
if (!indeterminate && clampedValue === 100 && !hasCompletedRef.current && onCompleteRef.current) {
|
|
49
|
+
hasCompletedRef.current = true;
|
|
50
|
+
onCompleteRef.current();
|
|
51
|
+
}
|
|
52
|
+
}, [clampedValue, indeterminate]);
|
|
53
|
+
if (!shouldRender) return null;
|
|
39
54
|
const clampedBuffer = buffer !== void 0 ? Math.min(100, Math.max(0, buffer)) : void 0;
|
|
40
55
|
const sizeValue = parseSizeToNumber(size, 56);
|
|
41
56
|
const thicknessValue = parseSizeToNumber(thickness, 4);
|
package/dist/index27.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index64.cjs");
|
|
6
6
|
const colors = require("./index4.cjs");
|
|
7
7
|
const classNames = require("./index3.cjs");
|
|
8
8
|
const ProgressRing = react.forwardRef(
|
|
@@ -16,6 +16,7 @@ const ProgressRing = react.forwardRef(
|
|
|
16
16
|
secondaryColor = "#e0e0e0",
|
|
17
17
|
gradient = false,
|
|
18
18
|
buffer,
|
|
19
|
+
onComplete,
|
|
19
20
|
speed = "normal",
|
|
20
21
|
reverse = false,
|
|
21
22
|
respectMotionPreference = true,
|
|
@@ -38,8 +39,22 @@ const ProgressRing = react.forwardRef(
|
|
|
38
39
|
minDuration,
|
|
39
40
|
transition
|
|
40
41
|
);
|
|
41
|
-
|
|
42
|
+
const onCompleteRef = react.useRef(onComplete);
|
|
43
|
+
onCompleteRef.current = onComplete;
|
|
44
|
+
const hasCompletedRef = react.useRef(false);
|
|
42
45
|
const clampedValue = Math.min(100, Math.max(0, value));
|
|
46
|
+
react.useEffect(() => {
|
|
47
|
+
if (clampedValue < 100) {
|
|
48
|
+
hasCompletedRef.current = false;
|
|
49
|
+
}
|
|
50
|
+
}, [clampedValue]);
|
|
51
|
+
react.useEffect(() => {
|
|
52
|
+
if (!indeterminate && clampedValue === 100 && !hasCompletedRef.current && onCompleteRef.current) {
|
|
53
|
+
hasCompletedRef.current = true;
|
|
54
|
+
onCompleteRef.current();
|
|
55
|
+
}
|
|
56
|
+
}, [clampedValue, indeterminate]);
|
|
57
|
+
if (!shouldRender) return null;
|
|
43
58
|
const clampedBuffer = buffer !== void 0 ? Math.min(100, Math.max(0, buffer)) : void 0;
|
|
44
59
|
const sizeValue = colors.parseSizeToNumber(size, 56);
|
|
45
60
|
const thicknessValue = colors.parseSizeToNumber(thickness, 4);
|
package/dist/index27.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef, useMemo } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
2
|
+
import { forwardRef, useMemo, useRef, useEffect } from "react";
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index64.js";
|
|
4
4
|
import { normalizeSize, parseSizeToNumber } from "./index4.js";
|
|
5
5
|
import { cn } from "./index3.js";
|
|
6
6
|
const ProgressRing = forwardRef(
|
|
@@ -14,6 +14,7 @@ const ProgressRing = forwardRef(
|
|
|
14
14
|
secondaryColor = "#e0e0e0",
|
|
15
15
|
gradient = false,
|
|
16
16
|
buffer,
|
|
17
|
+
onComplete,
|
|
17
18
|
speed = "normal",
|
|
18
19
|
reverse = false,
|
|
19
20
|
respectMotionPreference = true,
|
|
@@ -36,8 +37,22 @@ const ProgressRing = forwardRef(
|
|
|
36
37
|
minDuration,
|
|
37
38
|
transition
|
|
38
39
|
);
|
|
39
|
-
|
|
40
|
+
const onCompleteRef = useRef(onComplete);
|
|
41
|
+
onCompleteRef.current = onComplete;
|
|
42
|
+
const hasCompletedRef = useRef(false);
|
|
40
43
|
const clampedValue = Math.min(100, Math.max(0, value));
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
if (clampedValue < 100) {
|
|
46
|
+
hasCompletedRef.current = false;
|
|
47
|
+
}
|
|
48
|
+
}, [clampedValue]);
|
|
49
|
+
useEffect(() => {
|
|
50
|
+
if (!indeterminate && clampedValue === 100 && !hasCompletedRef.current && onCompleteRef.current) {
|
|
51
|
+
hasCompletedRef.current = true;
|
|
52
|
+
onCompleteRef.current();
|
|
53
|
+
}
|
|
54
|
+
}, [clampedValue, indeterminate]);
|
|
55
|
+
if (!shouldRender) return null;
|
|
41
56
|
const clampedBuffer = buffer !== void 0 ? Math.min(100, Math.max(0, buffer)) : void 0;
|
|
42
57
|
const sizeValue = parseSizeToNumber(size, 56);
|
|
43
58
|
const thicknessValue = parseSizeToNumber(thickness, 4);
|
package/dist/index28.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index64.cjs");
|
|
6
6
|
const classNames = require("./index3.cjs");
|
|
7
7
|
const ProgressSteps = react.forwardRef(
|
|
8
8
|
({
|
package/dist/index28.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, Fragment } from "react";
|
|
3
|
-
import { useLoaderVisibility } from "./
|
|
3
|
+
import { useLoaderVisibility } from "./index64.js";
|
|
4
4
|
import { cn } from "./index3.js";
|
|
5
5
|
const ProgressSteps = forwardRef(
|
|
6
6
|
({
|
package/dist/index29.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index64.cjs");
|
|
6
6
|
const colors = require("./index4.cjs");
|
|
7
7
|
const classNames = require("./index3.cjs");
|
|
8
8
|
const PulseDots = react.forwardRef(
|
package/dist/index29.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index64.js";
|
|
4
4
|
import { normalizeSize } from "./index4.js";
|
|
5
5
|
import { cn } from "./index3.js";
|
|
6
6
|
const PulseDots = forwardRef(
|
package/dist/index30.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index64.cjs");
|
|
6
6
|
const colors = require("./index4.cjs");
|
|
7
7
|
const classNames = require("./index3.cjs");
|
|
8
8
|
const PulseWave = react.forwardRef(
|
package/dist/index30.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index64.js";
|
|
4
4
|
import { normalizeSize, parseSizeToNumber } from "./index4.js";
|
|
5
5
|
import { cn } from "./index3.js";
|
|
6
6
|
const PulseWave = forwardRef(
|
package/dist/index31.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index64.cjs");
|
|
6
6
|
const colors = require("./index4.cjs");
|
|
7
7
|
const classNames = require("./index3.cjs");
|
|
8
8
|
const PulseBars = react.forwardRef(
|
package/dist/index31.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index64.js";
|
|
4
4
|
import { normalizeSize, parseSizeToNumber } from "./index4.js";
|
|
5
5
|
import { cn } from "./index3.js";
|
|
6
6
|
const PulseBars = forwardRef(
|
package/dist/index32.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index64.cjs");
|
|
6
6
|
const colors = require("./index4.cjs");
|
|
7
7
|
const classNames = require("./index3.cjs");
|
|
8
8
|
const TypingIndicator = react.forwardRef(
|
package/dist/index32.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index64.js";
|
|
4
4
|
import { normalizeSize } from "./index4.js";
|
|
5
5
|
import { cn } from "./index3.js";
|
|
6
6
|
const TypingIndicator = forwardRef(
|
package/dist/index33.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index64.cjs");
|
|
6
6
|
const classNames = require("./index3.cjs");
|
|
7
7
|
const LoaderOverlay = react.forwardRef(
|
|
8
8
|
({
|
package/dist/index33.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useLoaderVisibility } from "./
|
|
3
|
+
import { useLoaderVisibility } from "./index64.js";
|
|
4
4
|
import { cn } from "./index3.js";
|
|
5
5
|
const LoaderOverlay = forwardRef(
|
|
6
6
|
({
|
package/dist/index34.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index64.cjs");
|
|
6
6
|
const classNames = require("./index3.cjs");
|
|
7
7
|
const colors = require("./index4.cjs");
|
|
8
8
|
const ButtonSpinner = react.forwardRef(
|
package/dist/index34.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index64.js";
|
|
4
4
|
import { cn } from "./index3.js";
|
|
5
5
|
import { normalizeSize } from "./index4.js";
|
|
6
6
|
const ButtonSpinner = forwardRef(
|
package/dist/index35.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index64.cjs");
|
|
6
6
|
const classNames = require("./index3.cjs");
|
|
7
7
|
const colors = require("./index4.cjs");
|
|
8
8
|
const SuccessCheckmark = react.forwardRef(
|
package/dist/index35.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useLoaderVisibility } from "./
|
|
3
|
+
import { useLoaderVisibility } from "./index64.js";
|
|
4
4
|
import { cn } from "./index3.js";
|
|
5
5
|
import { normalizeSize } from "./index4.js";
|
|
6
6
|
const SuccessCheckmark = forwardRef(
|
package/dist/index36.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index64.cjs");
|
|
6
6
|
const classNames = require("./index3.cjs");
|
|
7
7
|
const colors = require("./index4.cjs");
|
|
8
8
|
const ErrorIndicator = react.forwardRef(
|
package/dist/index36.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useLoaderVisibility } from "./
|
|
3
|
+
import { useLoaderVisibility } from "./index64.js";
|
|
4
4
|
import { cn } from "./index3.js";
|
|
5
5
|
import { normalizeSize } from "./index4.js";
|
|
6
6
|
const ErrorIndicator = forwardRef(
|
package/dist/index38.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index64.cjs");
|
|
6
6
|
const classNames = require("./index3.cjs");
|
|
7
7
|
const ShimmerBox = react.forwardRef(
|
|
8
8
|
({
|
package/dist/index38.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index64.js";
|
|
4
4
|
import { cn } from "./index3.js";
|
|
5
5
|
const ShimmerBox = forwardRef(
|
|
6
6
|
({
|
package/dist/index39.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index64.cjs");
|
|
6
6
|
const classNames = require("./index3.cjs");
|
|
7
7
|
const ShimmerText = react.forwardRef(
|
|
8
8
|
({
|
package/dist/index39.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index64.js";
|
|
4
4
|
import { cn } from "./index3.js";
|
|
5
5
|
const ShimmerText = forwardRef(
|
|
6
6
|
({
|
package/dist/index4.cjs
CHANGED
|
@@ -81,6 +81,15 @@ function getContrastColor(backgroundColor) {
|
|
|
81
81
|
const luminance = getColorLuminance(backgroundColor);
|
|
82
82
|
return luminance < 0.5 ? "#ffffff" : "#000000";
|
|
83
83
|
}
|
|
84
|
+
function parseDurationMs(duration) {
|
|
85
|
+
if (duration.endsWith("ms")) {
|
|
86
|
+
return parseFloat(duration);
|
|
87
|
+
}
|
|
88
|
+
if (duration.endsWith("s")) {
|
|
89
|
+
return parseFloat(duration) * 1e3;
|
|
90
|
+
}
|
|
91
|
+
return parseFloat(duration);
|
|
92
|
+
}
|
|
84
93
|
exports.getAnimationDuration = getAnimationDuration;
|
|
85
94
|
exports.getColorLuminance = getColorLuminance;
|
|
86
95
|
exports.getContrastColor = getContrastColor;
|
|
@@ -88,4 +97,5 @@ exports.hexToRgb = hexToRgb;
|
|
|
88
97
|
exports.isHexColor = isHexColor;
|
|
89
98
|
exports.isRgbColor = isRgbColor;
|
|
90
99
|
exports.normalizeSize = normalizeSize;
|
|
100
|
+
exports.parseDurationMs = parseDurationMs;
|
|
91
101
|
exports.parseSizeToNumber = parseSizeToNumber;
|
package/dist/index4.js
CHANGED
|
@@ -79,6 +79,15 @@ function getContrastColor(backgroundColor) {
|
|
|
79
79
|
const luminance = getColorLuminance(backgroundColor);
|
|
80
80
|
return luminance < 0.5 ? "#ffffff" : "#000000";
|
|
81
81
|
}
|
|
82
|
+
function parseDurationMs(duration) {
|
|
83
|
+
if (duration.endsWith("ms")) {
|
|
84
|
+
return parseFloat(duration);
|
|
85
|
+
}
|
|
86
|
+
if (duration.endsWith("s")) {
|
|
87
|
+
return parseFloat(duration) * 1e3;
|
|
88
|
+
}
|
|
89
|
+
return parseFloat(duration);
|
|
90
|
+
}
|
|
82
91
|
export {
|
|
83
92
|
getAnimationDuration,
|
|
84
93
|
getColorLuminance,
|
|
@@ -87,5 +96,6 @@ export {
|
|
|
87
96
|
isHexColor,
|
|
88
97
|
isRgbColor,
|
|
89
98
|
normalizeSize,
|
|
99
|
+
parseDurationMs,
|
|
90
100
|
parseSizeToNumber
|
|
91
101
|
};
|
package/dist/index40.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index64.cjs");
|
|
6
6
|
const classNames = require("./index3.cjs");
|
|
7
7
|
const ShimmerButton = react.forwardRef(
|
|
8
8
|
({
|
package/dist/index40.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index64.js";
|
|
4
4
|
import { cn } from "./index3.js";
|
|
5
5
|
const ShimmerButton = forwardRef(
|
|
6
6
|
({
|
package/dist/index41.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index64.cjs");
|
|
6
6
|
const colors = require("./index4.cjs");
|
|
7
7
|
const classNames = require("./index3.cjs");
|
|
8
8
|
const OrbitDots = react.forwardRef(
|
package/dist/index41.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index64.js";
|
|
4
4
|
import { normalizeSize } from "./index4.js";
|
|
5
5
|
import { cn } from "./index3.js";
|
|
6
6
|
const OrbitDots = forwardRef(
|
package/dist/index42.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index64.cjs");
|
|
6
6
|
const colors = require("./index4.cjs");
|
|
7
7
|
const classNames = require("./index3.cjs");
|
|
8
8
|
const OrbitRings = react.forwardRef(
|
package/dist/index42.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index64.js";
|
|
4
4
|
import { normalizeSize } from "./index4.js";
|
|
5
5
|
import { cn } from "./index3.js";
|
|
6
6
|
const OrbitRings = forwardRef(
|
package/dist/index43.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index64.cjs");
|
|
6
6
|
const colors = require("./index4.cjs");
|
|
7
7
|
const classNames = require("./index3.cjs");
|
|
8
8
|
const AtomLoader = react.forwardRef(
|
package/dist/index43.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index64.js";
|
|
4
4
|
import { normalizeSize } from "./index4.js";
|
|
5
5
|
import { cn } from "./index3.js";
|
|
6
6
|
const AtomLoader = forwardRef(
|
package/dist/index44.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index64.cjs");
|
|
6
6
|
const classNames = require("./index3.cjs");
|
|
7
7
|
const BouncingDots = react.forwardRef(
|
|
8
8
|
({
|
package/dist/index44.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index64.js";
|
|
4
4
|
import { cn } from "./index3.js";
|
|
5
5
|
const BouncingDots = forwardRef(
|
|
6
6
|
({
|
package/dist/index45.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index64.cjs");
|
|
6
6
|
const classNames = require("./index3.cjs");
|
|
7
7
|
const BouncingBalls = react.forwardRef(
|
|
8
8
|
({
|
package/dist/index45.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index64.js";
|
|
4
4
|
import { cn } from "./index3.js";
|
|
5
5
|
const BouncingBalls = forwardRef(
|
|
6
6
|
({
|
package/dist/index46.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index64.cjs");
|
|
6
6
|
const classNames = require("./index3.cjs");
|
|
7
7
|
const colors = require("./index4.cjs");
|
|
8
8
|
const InfinityLoader = react.forwardRef(
|