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.
Files changed (157) hide show
  1. package/README.md +30 -3
  2. package/dist/components/gradient/GradientBar.d.ts +13 -0
  3. package/dist/components/gradient/GradientBar.d.ts.map +1 -0
  4. package/dist/components/gradient/GradientRing.d.ts +12 -0
  5. package/dist/components/gradient/GradientRing.d.ts.map +1 -0
  6. package/dist/components/gradient/GradientSpinner.d.ts +12 -0
  7. package/dist/components/gradient/GradientSpinner.d.ts.map +1 -0
  8. package/dist/components/gradient/index.d.ts +4 -0
  9. package/dist/components/gradient/index.d.ts.map +1 -0
  10. package/dist/components/index.d.ts +3 -0
  11. package/dist/components/index.d.ts.map +1 -1
  12. package/dist/components/morph/LiquidFill.d.ts +13 -0
  13. package/dist/components/morph/LiquidFill.d.ts.map +1 -0
  14. package/dist/components/morph/MorphBlob.d.ts +12 -0
  15. package/dist/components/morph/MorphBlob.d.ts.map +1 -0
  16. package/dist/components/morph/WaveCircle.d.ts +12 -0
  17. package/dist/components/morph/WaveCircle.d.ts.map +1 -0
  18. package/dist/components/morph/index.d.ts +4 -0
  19. package/dist/components/morph/index.d.ts.map +1 -0
  20. package/dist/components/particle/ParticleBurst.d.ts +12 -0
  21. package/dist/components/particle/ParticleBurst.d.ts.map +1 -0
  22. package/dist/components/particle/ParticleOrbit.d.ts +12 -0
  23. package/dist/components/particle/ParticleOrbit.d.ts.map +1 -0
  24. package/dist/components/particle/index.d.ts +3 -0
  25. package/dist/components/particle/index.d.ts.map +1 -0
  26. package/dist/components/progress/ProgressBar.d.ts.map +1 -1
  27. package/dist/components/progress/ProgressCircle.d.ts.map +1 -1
  28. package/dist/components/progress/ProgressRing.d.ts.map +1 -1
  29. package/dist/index.cjs +17 -1
  30. package/dist/index.d.ts +1 -1
  31. package/dist/index.js +17 -1
  32. package/dist/index10.cjs +1 -1
  33. package/dist/index10.js +1 -1
  34. package/dist/index11.cjs +1 -1
  35. package/dist/index11.js +1 -1
  36. package/dist/index12.cjs +1 -1
  37. package/dist/index12.js +1 -1
  38. package/dist/index13.cjs +1 -1
  39. package/dist/index13.js +1 -1
  40. package/dist/index14.cjs +1 -1
  41. package/dist/index14.js +1 -1
  42. package/dist/index15.cjs +1 -1
  43. package/dist/index15.js +1 -1
  44. package/dist/index17.cjs +1 -1
  45. package/dist/index17.js +1 -1
  46. package/dist/index18.cjs +1 -1
  47. package/dist/index18.js +1 -1
  48. package/dist/index19.cjs +1 -1
  49. package/dist/index19.js +1 -1
  50. package/dist/index20.cjs +1 -1
  51. package/dist/index20.js +1 -1
  52. package/dist/index21.cjs +1 -1
  53. package/dist/index21.js +1 -1
  54. package/dist/index22.cjs +1 -1
  55. package/dist/index22.js +1 -1
  56. package/dist/index23.cjs +1 -1
  57. package/dist/index23.js +1 -1
  58. package/dist/index24.cjs +1 -1
  59. package/dist/index24.js +1 -1
  60. package/dist/index25.cjs +17 -2
  61. package/dist/index25.js +18 -3
  62. package/dist/index26.cjs +17 -2
  63. package/dist/index26.js +18 -3
  64. package/dist/index27.cjs +17 -2
  65. package/dist/index27.js +18 -3
  66. package/dist/index28.cjs +1 -1
  67. package/dist/index28.js +1 -1
  68. package/dist/index29.cjs +1 -1
  69. package/dist/index29.js +1 -1
  70. package/dist/index30.cjs +1 -1
  71. package/dist/index30.js +1 -1
  72. package/dist/index31.cjs +1 -1
  73. package/dist/index31.js +1 -1
  74. package/dist/index32.cjs +1 -1
  75. package/dist/index32.js +1 -1
  76. package/dist/index33.cjs +1 -1
  77. package/dist/index33.js +1 -1
  78. package/dist/index34.cjs +1 -1
  79. package/dist/index34.js +1 -1
  80. package/dist/index35.cjs +1 -1
  81. package/dist/index35.js +1 -1
  82. package/dist/index36.cjs +1 -1
  83. package/dist/index36.js +1 -1
  84. package/dist/index38.cjs +1 -1
  85. package/dist/index38.js +1 -1
  86. package/dist/index39.cjs +1 -1
  87. package/dist/index39.js +1 -1
  88. package/dist/index4.cjs +10 -0
  89. package/dist/index4.js +10 -0
  90. package/dist/index40.cjs +1 -1
  91. package/dist/index40.js +1 -1
  92. package/dist/index41.cjs +1 -1
  93. package/dist/index41.js +1 -1
  94. package/dist/index42.cjs +1 -1
  95. package/dist/index42.js +1 -1
  96. package/dist/index43.cjs +1 -1
  97. package/dist/index43.js +1 -1
  98. package/dist/index44.cjs +1 -1
  99. package/dist/index44.js +1 -1
  100. package/dist/index45.cjs +1 -1
  101. package/dist/index45.js +1 -1
  102. package/dist/index46.cjs +1 -1
  103. package/dist/index46.js +1 -1
  104. package/dist/index47.cjs +1 -1
  105. package/dist/index47.js +1 -1
  106. package/dist/index48.cjs +1 -1
  107. package/dist/index48.js +1 -1
  108. package/dist/index49.cjs +1 -1
  109. package/dist/index49.js +1 -1
  110. package/dist/index50.cjs +1 -1
  111. package/dist/index50.js +1 -1
  112. package/dist/index51.cjs +1 -1
  113. package/dist/index51.js +1 -1
  114. package/dist/index52.cjs +1 -1
  115. package/dist/index52.js +1 -1
  116. package/dist/index53.cjs +1 -1
  117. package/dist/index53.js +1 -1
  118. package/dist/index54.cjs +1 -1
  119. package/dist/index54.js +1 -1
  120. package/dist/index56.cjs +50 -120
  121. package/dist/index56.js +51 -121
  122. package/dist/index57.cjs +119 -0
  123. package/dist/index57.js +119 -0
  124. package/dist/index58.cjs +70 -0
  125. package/dist/index58.js +70 -0
  126. package/dist/index59.cjs +66 -0
  127. package/dist/index59.js +66 -0
  128. package/dist/index60.cjs +68 -0
  129. package/dist/index60.js +68 -0
  130. package/dist/index61.cjs +99 -0
  131. package/dist/index61.js +99 -0
  132. package/dist/index62.cjs +75 -0
  133. package/dist/index62.js +75 -0
  134. package/dist/index63.cjs +92 -0
  135. package/dist/index63.js +92 -0
  136. package/dist/index64.cjs +125 -0
  137. package/dist/index64.js +125 -0
  138. package/dist/index7.cjs +1 -1
  139. package/dist/index7.js +1 -1
  140. package/dist/index8.cjs +1 -1
  141. package/dist/index8.js +1 -1
  142. package/dist/index9.cjs +1 -1
  143. package/dist/index9.js +1 -1
  144. package/dist/premium-react-loaders.css +41 -0
  145. package/dist/types/gradient.d.ts +38 -0
  146. package/dist/types/gradient.d.ts.map +1 -0
  147. package/dist/types/index.d.ts +3 -0
  148. package/dist/types/index.d.ts.map +1 -1
  149. package/dist/types/morph.d.ts +28 -0
  150. package/dist/types/morph.d.ts.map +1 -0
  151. package/dist/types/particle.d.ts +22 -0
  152. package/dist/types/particle.d.ts.map +1 -0
  153. package/dist/types/progress.d.ts +6 -0
  154. package/dist/types/progress.d.ts.map +1 -1
  155. package/dist/utils/colors.d.ts +5 -0
  156. package/dist/utils/colors.d.ts.map +1 -1
  157. 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 "./index56.js";
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("./index56.cjs");
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
- if (!shouldRender) return null;
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 "./index56.js";
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
- if (!shouldRender) return null;
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("./index56.cjs");
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
- if (!shouldRender) return null;
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 "./index56.js";
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
- if (!shouldRender) return null;
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("./index56.cjs");
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
- if (!shouldRender) return null;
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 "./index56.js";
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
- if (!shouldRender) return null;
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("./index56.cjs");
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 "./index56.js";
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("./index56.cjs");
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 "./index56.js";
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("./index56.cjs");
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 "./index56.js";
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("./index56.cjs");
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 "./index56.js";
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("./index56.cjs");
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 "./index56.js";
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("./index56.cjs");
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 "./index56.js";
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("./index56.cjs");
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 "./index56.js";
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("./index56.cjs");
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 "./index56.js";
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("./index56.cjs");
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 "./index56.js";
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("./index56.cjs");
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 "./index56.js";
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("./index56.cjs");
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 "./index56.js";
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("./index56.cjs");
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 "./index56.js";
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("./index56.cjs");
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 "./index56.js";
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("./index56.cjs");
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 "./index56.js";
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("./index56.cjs");
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 "./index56.js";
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("./index56.cjs");
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 "./index56.js";
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("./index56.cjs");
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 "./index56.js";
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("./index56.cjs");
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(