premium-react-loaders 3.1.1 → 4.1.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 (197) 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 +4 -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/neon/NeonPulse.d.ts +12 -0
  21. package/dist/components/neon/NeonPulse.d.ts.map +1 -0
  22. package/dist/components/neon/NeonSpinner.d.ts +12 -0
  23. package/dist/components/neon/NeonSpinner.d.ts.map +1 -0
  24. package/dist/components/neon/NeonText.d.ts +12 -0
  25. package/dist/components/neon/NeonText.d.ts.map +1 -0
  26. package/dist/components/neon/index.d.ts +4 -0
  27. package/dist/components/neon/index.d.ts.map +1 -0
  28. package/dist/components/particle/ParticleBurst.d.ts +12 -0
  29. package/dist/components/particle/ParticleBurst.d.ts.map +1 -0
  30. package/dist/components/particle/ParticleField.d.ts +3 -0
  31. package/dist/components/particle/ParticleField.d.ts.map +1 -0
  32. package/dist/components/particle/ParticleOrbit.d.ts +12 -0
  33. package/dist/components/particle/ParticleOrbit.d.ts.map +1 -0
  34. package/dist/components/particle/ParticleTrail.d.ts +12 -0
  35. package/dist/components/particle/ParticleTrail.d.ts.map +1 -0
  36. package/dist/components/particle/index.d.ts +5 -0
  37. package/dist/components/particle/index.d.ts.map +1 -0
  38. package/dist/components/progress/ProgressBar.d.ts.map +1 -1
  39. package/dist/components/progress/ProgressCircle.d.ts.map +1 -1
  40. package/dist/components/progress/ProgressRing.d.ts.map +1 -1
  41. package/dist/components/status/InfoIndicator.d.ts +29 -0
  42. package/dist/components/status/InfoIndicator.d.ts.map +1 -0
  43. package/dist/components/status/WarningIndicator.d.ts +29 -0
  44. package/dist/components/status/WarningIndicator.d.ts.map +1 -0
  45. package/dist/components/status/index.d.ts +2 -0
  46. package/dist/components/status/index.d.ts.map +1 -1
  47. package/dist/index.cjs +50 -20
  48. package/dist/index.d.ts +1 -1
  49. package/dist/index.js +50 -20
  50. package/dist/index10.cjs +1 -1
  51. package/dist/index10.js +1 -1
  52. package/dist/index11.cjs +1 -1
  53. package/dist/index11.js +1 -1
  54. package/dist/index12.cjs +1 -1
  55. package/dist/index12.js +1 -1
  56. package/dist/index13.cjs +1 -1
  57. package/dist/index13.js +1 -1
  58. package/dist/index14.cjs +1 -1
  59. package/dist/index14.js +1 -1
  60. package/dist/index15.cjs +1 -1
  61. package/dist/index15.js +1 -1
  62. package/dist/index17.cjs +1 -1
  63. package/dist/index17.js +1 -1
  64. package/dist/index18.cjs +1 -1
  65. package/dist/index18.js +1 -1
  66. package/dist/index19.cjs +1 -1
  67. package/dist/index19.js +1 -1
  68. package/dist/index20.cjs +1 -1
  69. package/dist/index20.js +1 -1
  70. package/dist/index21.cjs +1 -1
  71. package/dist/index21.js +1 -1
  72. package/dist/index22.cjs +1 -1
  73. package/dist/index22.js +1 -1
  74. package/dist/index23.cjs +1 -1
  75. package/dist/index23.js +1 -1
  76. package/dist/index24.cjs +1 -1
  77. package/dist/index24.js +1 -1
  78. package/dist/index25.cjs +17 -2
  79. package/dist/index25.js +18 -3
  80. package/dist/index26.cjs +17 -2
  81. package/dist/index26.js +18 -3
  82. package/dist/index27.cjs +17 -2
  83. package/dist/index27.js +18 -3
  84. package/dist/index28.cjs +1 -1
  85. package/dist/index28.js +1 -1
  86. package/dist/index29.cjs +1 -1
  87. package/dist/index29.js +1 -1
  88. package/dist/index30.cjs +1 -1
  89. package/dist/index30.js +1 -1
  90. package/dist/index31.cjs +1 -1
  91. package/dist/index31.js +1 -1
  92. package/dist/index32.cjs +1 -1
  93. package/dist/index32.js +1 -1
  94. package/dist/index33.cjs +1 -1
  95. package/dist/index33.js +1 -1
  96. package/dist/index34.cjs +1 -1
  97. package/dist/index34.js +1 -1
  98. package/dist/index35.cjs +1 -1
  99. package/dist/index35.js +1 -1
  100. package/dist/index36.cjs +1 -1
  101. package/dist/index36.js +1 -1
  102. package/dist/index37.cjs +59 -145
  103. package/dist/index37.js +61 -147
  104. package/dist/index38.cjs +32 -53
  105. package/dist/index38.js +33 -54
  106. package/dist/index39.cjs +138 -84
  107. package/dist/index39.js +140 -86
  108. package/dist/index4.cjs +10 -0
  109. package/dist/index4.js +10 -0
  110. package/dist/index40.cjs +33 -106
  111. package/dist/index40.js +34 -107
  112. package/dist/index41.cjs +66 -50
  113. package/dist/index41.js +66 -50
  114. package/dist/index42.cjs +123 -44
  115. package/dist/index42.js +124 -45
  116. package/dist/index43.cjs +43 -85
  117. package/dist/index43.js +44 -86
  118. package/dist/index44.cjs +35 -27
  119. package/dist/index44.js +35 -27
  120. package/dist/index45.cjs +87 -58
  121. package/dist/index45.js +87 -58
  122. package/dist/index46.cjs +35 -88
  123. package/dist/index46.js +36 -89
  124. package/dist/index47.cjs +62 -58
  125. package/dist/index47.js +63 -59
  126. package/dist/index48.cjs +87 -110
  127. package/dist/index48.js +88 -111
  128. package/dist/index49.cjs +48 -109
  129. package/dist/index49.js +49 -110
  130. package/dist/index50.cjs +110 -62
  131. package/dist/index50.js +111 -63
  132. package/dist/index51.cjs +104 -49
  133. package/dist/index51.js +104 -49
  134. package/dist/index52.cjs +43 -77
  135. package/dist/index52.js +44 -78
  136. package/dist/index53.cjs +56 -56
  137. package/dist/index53.js +56 -56
  138. package/dist/index54.cjs +104 -149
  139. package/dist/index54.js +106 -151
  140. package/dist/index55.cjs +97 -38
  141. package/dist/index55.js +99 -40
  142. package/dist/index56.cjs +184 -120
  143. package/dist/index56.js +185 -121
  144. package/dist/index57.cjs +53 -0
  145. package/dist/index57.js +53 -0
  146. package/dist/index58.cjs +55 -0
  147. package/dist/index58.js +55 -0
  148. package/dist/index59.cjs +119 -0
  149. package/dist/index59.js +119 -0
  150. package/dist/index60.cjs +70 -0
  151. package/dist/index60.js +70 -0
  152. package/dist/index61.cjs +66 -0
  153. package/dist/index61.js +66 -0
  154. package/dist/index62.cjs +68 -0
  155. package/dist/index62.js +68 -0
  156. package/dist/index63.cjs +99 -0
  157. package/dist/index63.js +99 -0
  158. package/dist/index64.cjs +75 -0
  159. package/dist/index64.js +75 -0
  160. package/dist/index65.cjs +92 -0
  161. package/dist/index65.js +92 -0
  162. package/dist/index66.cjs +76 -0
  163. package/dist/index66.js +76 -0
  164. package/dist/index67.cjs +76 -0
  165. package/dist/index67.js +76 -0
  166. package/dist/index68.cjs +64 -0
  167. package/dist/index68.js +64 -0
  168. package/dist/index69.cjs +60 -0
  169. package/dist/index69.js +60 -0
  170. package/dist/index7.cjs +1 -1
  171. package/dist/index7.js +1 -1
  172. package/dist/index70.cjs +57 -0
  173. package/dist/index70.js +57 -0
  174. package/dist/index71.cjs +125 -0
  175. package/dist/index71.js +125 -0
  176. package/dist/index8.cjs +1 -1
  177. package/dist/index8.js +1 -1
  178. package/dist/index9.cjs +1 -1
  179. package/dist/index9.js +1 -1
  180. package/dist/premium-react-loaders.css +126 -0
  181. package/dist/types/gradient.d.ts +38 -0
  182. package/dist/types/gradient.d.ts.map +1 -0
  183. package/dist/types/index.d.ts +4 -0
  184. package/dist/types/index.d.ts.map +1 -1
  185. package/dist/types/morph.d.ts +28 -0
  186. package/dist/types/morph.d.ts.map +1 -0
  187. package/dist/types/neon.d.ts +26 -0
  188. package/dist/types/neon.d.ts.map +1 -0
  189. package/dist/types/particle.d.ts +40 -0
  190. package/dist/types/particle.d.ts.map +1 -0
  191. package/dist/types/progress.d.ts +6 -0
  192. package/dist/types/progress.d.ts.map +1 -1
  193. package/dist/types/status.d.ts +30 -0
  194. package/dist/types/status.d.ts.map +1 -1
  195. package/dist/utils/colors.d.ts +5 -0
  196. package/dist/utils/colors.d.ts.map +1 -1
  197. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -33,26 +33,41 @@ import { LoaderOverlay } from "./index33.js";
33
33
  import { ButtonSpinner } from "./index34.js";
34
34
  import { SuccessCheckmark } from "./index35.js";
35
35
  import { ErrorIndicator } from "./index36.js";
36
- import { LoaderTransition } from "./index37.js";
37
- import { ShimmerBox } from "./index38.js";
38
- import { ShimmerText } from "./index39.js";
39
- import { ShimmerButton } from "./index40.js";
40
- import { OrbitDots } from "./index41.js";
41
- import { OrbitRings } from "./index42.js";
42
- import { AtomLoader } from "./index43.js";
43
- import { BouncingDots } from "./index44.js";
44
- import { BouncingBalls } from "./index45.js";
45
- import { InfinityLoader } from "./index46.js";
46
- import { MobiusLoader } from "./index47.js";
47
- import { LoadingText } from "./index48.js";
48
- import { CubeSpinner } from "./index49.js";
49
- import { FlipCard } from "./index50.js";
50
- import { PlaneRotate } from "./index51.js";
51
- import { Helix } from "./index52.js";
52
- import { PerspectiveRing } from "./index53.js";
53
- import { FormFieldLoader } from "./index54.js";
54
- import { LiveRegion } from "./index55.js";
55
- const version = "3.1.1";
36
+ import { WarningIndicator } from "./index37.js";
37
+ import { InfoIndicator } from "./index38.js";
38
+ import { LoaderTransition } from "./index39.js";
39
+ import { ShimmerBox } from "./index40.js";
40
+ import { ShimmerText } from "./index41.js";
41
+ import { ShimmerButton } from "./index42.js";
42
+ import { OrbitDots } from "./index43.js";
43
+ import { OrbitRings } from "./index44.js";
44
+ import { AtomLoader } from "./index45.js";
45
+ import { BouncingDots } from "./index46.js";
46
+ import { BouncingBalls } from "./index47.js";
47
+ import { InfinityLoader } from "./index48.js";
48
+ import { MobiusLoader } from "./index49.js";
49
+ import { LoadingText } from "./index50.js";
50
+ import { CubeSpinner } from "./index51.js";
51
+ import { FlipCard } from "./index52.js";
52
+ import { PlaneRotate } from "./index53.js";
53
+ import { Helix } from "./index54.js";
54
+ import { PerspectiveRing } from "./index55.js";
55
+ import { FormFieldLoader } from "./index56.js";
56
+ import { LiveRegion } from "./index57.js";
57
+ import { MorphBlob } from "./index58.js";
58
+ import { LiquidFill } from "./index59.js";
59
+ import { WaveCircle } from "./index60.js";
60
+ import { GradientSpinner } from "./index61.js";
61
+ import { GradientRing } from "./index62.js";
62
+ import { GradientBar } from "./index63.js";
63
+ import { ParticleBurst } from "./index64.js";
64
+ import { ParticleOrbit } from "./index65.js";
65
+ import { ParticleTrail } from "./index66.js";
66
+ import { ParticleField } from "./index67.js";
67
+ import { NeonPulse } from "./index68.js";
68
+ import { NeonSpinner } from "./index69.js";
69
+ import { NeonText } from "./index70.js";
70
+ const version = "4.0.0";
56
71
  export {
57
72
  AtomLoader,
58
73
  BouncingBalls,
@@ -63,15 +78,28 @@ export {
63
78
  ErrorIndicator,
64
79
  FlipCard,
65
80
  FormFieldLoader,
81
+ GradientBar,
82
+ GradientRing,
83
+ GradientSpinner,
66
84
  Helix,
67
85
  InfinityLoader,
86
+ InfoIndicator,
87
+ LiquidFill,
68
88
  LiveRegion,
69
89
  LoaderOverlay,
70
90
  LoaderTransition,
71
91
  LoadingText,
72
92
  MobiusLoader,
93
+ MorphBlob,
94
+ NeonPulse,
95
+ NeonSpinner,
96
+ NeonText,
73
97
  OrbitDots,
74
98
  OrbitRings,
99
+ ParticleBurst,
100
+ ParticleField,
101
+ ParticleOrbit,
102
+ ParticleTrail,
75
103
  PerspectiveRing,
76
104
  PlaneRotate,
77
105
  ProgressBar,
@@ -104,6 +132,8 @@ export {
104
132
  SuccessCheckmark,
105
133
  ThemeProvider,
106
134
  TypingIndicator,
135
+ WarningIndicator,
136
+ WaveCircle,
107
137
  cn,
108
138
  getAnimationDuration,
109
139
  normalizeSize,
package/dist/index10.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 Skeleton = require("./index7.cjs");
6
- const hooks = require("./index56.cjs");
6
+ const hooks = require("./index71.cjs");
7
7
  const SkeletonImage = react.forwardRef(
8
8
  ({
9
9
  width = "100%",
package/dist/index10.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { Skeleton } from "./index7.js";
4
- import { useLoaderVisibility } from "./index56.js";
4
+ import { useLoaderVisibility } from "./index71.js";
5
5
  const SkeletonImage = forwardRef(
6
6
  ({
7
7
  width = "100%",
package/dist/index11.cjs CHANGED
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
4
4
  const react = require("react");
5
5
  const Skeleton = require("./index7.cjs");
6
6
  const SkeletonAvatar = require("./index9.cjs");
7
- const hooks = require("./index56.cjs");
7
+ const hooks = require("./index71.cjs");
8
8
  const classNames = require("./index3.cjs");
9
9
  const SkeletonCard = react.forwardRef(
10
10
  ({
package/dist/index11.js CHANGED
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { Skeleton } from "./index7.js";
4
4
  import { SkeletonAvatar } from "./index9.js";
5
- import { useLoaderVisibility } from "./index56.js";
5
+ import { useLoaderVisibility } from "./index71.js";
6
6
  import { cn } from "./index3.js";
7
7
  const SkeletonCard = forwardRef(
8
8
  ({
package/dist/index12.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 Skeleton = require("./index7.cjs");
6
- const hooks = require("./index56.cjs");
6
+ const hooks = require("./index71.cjs");
7
7
  const colors = require("./index4.cjs");
8
8
  const classNames = require("./index3.cjs");
9
9
  const SkeletonList = react.forwardRef(
package/dist/index12.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { Skeleton } from "./index7.js";
4
- import { useLoaderVisibility } from "./index56.js";
4
+ import { useLoaderVisibility } from "./index71.js";
5
5
  import { normalizeSize } from "./index4.js";
6
6
  import { cn } from "./index3.js";
7
7
  const SkeletonList = forwardRef(
package/dist/index13.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 Skeleton = require("./index7.cjs");
6
- const hooks = require("./index56.cjs");
6
+ const hooks = require("./index71.cjs");
7
7
  const classNames = require("./index3.cjs");
8
8
  const SkeletonTable = react.forwardRef(
9
9
  ({
package/dist/index13.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { Skeleton } from "./index7.js";
4
- import { useLoaderVisibility } from "./index56.js";
4
+ import { useLoaderVisibility } from "./index71.js";
5
5
  import { cn } from "./index3.js";
6
6
  const SkeletonTable = forwardRef(
7
7
  ({
package/dist/index14.cjs CHANGED
@@ -5,7 +5,7 @@ const react = require("react");
5
5
  const Skeleton = require("./index7.cjs");
6
6
  const SkeletonText = require("./index8.cjs");
7
7
  const SkeletonAvatar = require("./index9.cjs");
8
- const hooks = require("./index56.cjs");
8
+ const hooks = require("./index71.cjs");
9
9
  const classNames = require("./index3.cjs");
10
10
  const SkeletonPage = react.forwardRef(
11
11
  ({
package/dist/index14.js CHANGED
@@ -3,7 +3,7 @@ import { forwardRef } from "react";
3
3
  import { Skeleton } from "./index7.js";
4
4
  import { SkeletonText } from "./index8.js";
5
5
  import { SkeletonAvatar } from "./index9.js";
6
- import { useLoaderVisibility } from "./index56.js";
6
+ import { useLoaderVisibility } from "./index71.js";
7
7
  import { cn } from "./index3.js";
8
8
  const SkeletonPage = forwardRef(
9
9
  ({
package/dist/index15.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 Skeleton = require("./index7.cjs");
6
- const hooks = require("./index56.cjs");
6
+ const hooks = require("./index71.cjs");
7
7
  const colors = require("./index4.cjs");
8
8
  const classNames = require("./index3.cjs");
9
9
  const SkeletonForm = react.forwardRef(
package/dist/index15.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { Skeleton } from "./index7.js";
4
- import { useLoaderVisibility } from "./index56.js";
4
+ import { useLoaderVisibility } from "./index71.js";
5
5
  import { normalizeSize } from "./index4.js";
6
6
  import { cn } from "./index3.js";
7
7
  const SkeletonForm = forwardRef(
package/dist/index17.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 Skeleton = require("./index7.cjs");
6
- const hooks = require("./index56.cjs");
6
+ const hooks = require("./index71.cjs");
7
7
  const classNames = require("./index3.cjs");
8
8
  const DataTableSkeleton = react.forwardRef(
9
9
  ({
package/dist/index17.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { Skeleton } from "./index7.js";
4
- import { useLoaderVisibility } from "./index56.js";
4
+ import { useLoaderVisibility } from "./index71.js";
5
5
  import { cn } from "./index3.js";
6
6
  const DataTableSkeleton = forwardRef(
7
7
  ({
package/dist/index18.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("./index71.cjs");
6
6
  const classNames = require("./index3.cjs");
7
7
  const colors = require("./index4.cjs");
8
8
  const SpinnerCircle = react.forwardRef(
package/dist/index18.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 "./index71.js";
4
4
  import { cn } from "./index3.js";
5
5
  import { normalizeSize } from "./index4.js";
6
6
  const SpinnerCircle = forwardRef(
package/dist/index19.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("./index71.cjs");
6
6
  const classNames = require("./index3.cjs");
7
7
  const colors = require("./index4.cjs");
8
8
  const SpinnerRing = react.forwardRef(
package/dist/index19.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 "./index71.js";
4
4
  import { cn } from "./index3.js";
5
5
  import { normalizeSize } from "./index4.js";
6
6
  const SpinnerRing = forwardRef(
package/dist/index20.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("./index71.cjs");
7
7
  const classNames = require("./index3.cjs");
8
8
  const SpinnerDots = react.forwardRef(
9
9
  ({
package/dist/index20.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { normalizeSize, parseSizeToNumber } from "./index4.js";
4
- import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index56.js";
4
+ import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index71.js";
5
5
  import { cn } from "./index3.js";
6
6
  const SpinnerDots = forwardRef(
7
7
  ({
package/dist/index21.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("./index71.cjs");
6
6
  const colors = require("./index4.cjs");
7
7
  const classNames = require("./index3.cjs");
8
8
  const SpinnerBars = react.forwardRef(
package/dist/index21.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 "./index71.js";
4
4
  import { normalizeSize, parseSizeToNumber } from "./index4.js";
5
5
  import { cn } from "./index3.js";
6
6
  const SpinnerBars = forwardRef(
package/dist/index22.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("./index71.cjs");
6
6
  const classNames = require("./index3.cjs");
7
7
  const colors = require("./index4.cjs");
8
8
  const SpinnerGrid = react.forwardRef(
package/dist/index22.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 "./index71.js";
4
4
  import { cn } from "./index3.js";
5
5
  import { normalizeSize, parseSizeToNumber } from "./index4.js";
6
6
  const SpinnerGrid = forwardRef(
package/dist/index23.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("./index71.cjs");
6
6
  const classNames = require("./index3.cjs");
7
7
  const colors = require("./index4.cjs");
8
8
  const SpinnerWave = react.forwardRef(
package/dist/index23.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 "./index71.js";
4
4
  import { cn } from "./index3.js";
5
5
  import { normalizeSize } from "./index4.js";
6
6
  const SpinnerWave = forwardRef(
package/dist/index24.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("./index71.cjs");
6
6
  const classNames = require("./index3.cjs");
7
7
  const colors = require("./index4.cjs");
8
8
  const SpinnerPulse = react.forwardRef(
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 "./index71.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("./index71.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 "./index71.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("./index71.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 "./index71.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("./index71.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 "./index71.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("./index71.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 "./index71.js";
4
4
  import { cn } from "./index3.js";
5
5
  const ProgressSteps = forwardRef(
6
6
  ({