premium-react-loaders 1.3.0 → 2.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 (138) hide show
  1. package/README.md +264 -30
  2. package/dist/components/pulse/TypingIndicator.d.ts.map +1 -1
  3. package/dist/context/ThemeContext.d.ts +84 -0
  4. package/dist/context/ThemeContext.d.ts.map +1 -0
  5. package/dist/context/index.d.ts +3 -0
  6. package/dist/context/index.d.ts.map +1 -0
  7. package/dist/hooks/index.d.ts +3 -0
  8. package/dist/hooks/index.d.ts.map +1 -0
  9. package/dist/hooks/useLoader.d.ts +56 -0
  10. package/dist/hooks/useLoader.d.ts.map +1 -0
  11. package/dist/index.cjs +31 -27
  12. package/dist/index.d.ts +5 -1
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +31 -27
  15. package/dist/index10.cjs +20 -32
  16. package/dist/index10.js +20 -32
  17. package/dist/index11.cjs +47 -26
  18. package/dist/index11.js +47 -26
  19. package/dist/index12.cjs +30 -127
  20. package/dist/index12.js +31 -128
  21. package/dist/index13.cjs +30 -54
  22. package/dist/index13.js +30 -54
  23. package/dist/index14.cjs +127 -44
  24. package/dist/index14.js +128 -45
  25. package/dist/index15.cjs +58 -38
  26. package/dist/index15.js +59 -39
  27. package/dist/index16.cjs +24 -37
  28. package/dist/index16.js +24 -37
  29. package/dist/index17.cjs +19 -22
  30. package/dist/index17.js +19 -22
  31. package/dist/index18.cjs +25 -21
  32. package/dist/index18.js +25 -21
  33. package/dist/index19.cjs +22 -33
  34. package/dist/index19.js +22 -33
  35. package/dist/index20.cjs +26 -36
  36. package/dist/index20.js +28 -38
  37. package/dist/index21.cjs +40 -77
  38. package/dist/index21.js +42 -79
  39. package/dist/index22.cjs +53 -103
  40. package/dist/index22.js +54 -104
  41. package/dist/index23.cjs +46 -81
  42. package/dist/index23.js +47 -82
  43. package/dist/index24.cjs +105 -104
  44. package/dist/index24.js +107 -106
  45. package/dist/index25.cjs +108 -28
  46. package/dist/index25.js +111 -31
  47. package/dist/index26.cjs +104 -37
  48. package/dist/index26.js +106 -39
  49. package/dist/index27.cjs +22 -31
  50. package/dist/index27.js +23 -32
  51. package/dist/index28.cjs +30 -30
  52. package/dist/index28.js +31 -31
  53. package/dist/index29.cjs +49 -53
  54. package/dist/index29.js +50 -54
  55. package/dist/index3.cjs +11 -3
  56. package/dist/index3.js +11 -3
  57. package/dist/index30.cjs +77 -17
  58. package/dist/index30.js +76 -16
  59. package/dist/index31.cjs +77 -121
  60. package/dist/index31.js +78 -122
  61. package/dist/index32.cjs +125 -0
  62. package/dist/index32.js +125 -0
  63. package/dist/index4.cjs +0 -1
  64. package/dist/index4.js +0 -1
  65. package/dist/index5.cjs +11 -73
  66. package/dist/index5.js +12 -74
  67. package/dist/index6.cjs +86 -66
  68. package/dist/index6.js +87 -67
  69. package/dist/index7.cjs +40 -21
  70. package/dist/index7.js +40 -21
  71. package/dist/index8.cjs +34 -22
  72. package/dist/index8.js +34 -22
  73. package/dist/index9.cjs +21 -56
  74. package/dist/index9.js +22 -57
  75. package/dist/premium-react-loaders.css +250 -1073
  76. package/dist/utils/classNames.d.ts +3 -2
  77. package/dist/utils/classNames.d.ts.map +1 -1
  78. package/package.json +5 -8
  79. package/dist/index.cjs.map +0 -1
  80. package/dist/index.js.map +0 -1
  81. package/dist/index10.cjs.map +0 -1
  82. package/dist/index10.js.map +0 -1
  83. package/dist/index11.cjs.map +0 -1
  84. package/dist/index11.js.map +0 -1
  85. package/dist/index12.cjs.map +0 -1
  86. package/dist/index12.js.map +0 -1
  87. package/dist/index13.cjs.map +0 -1
  88. package/dist/index13.js.map +0 -1
  89. package/dist/index14.cjs.map +0 -1
  90. package/dist/index14.js.map +0 -1
  91. package/dist/index15.cjs.map +0 -1
  92. package/dist/index15.js.map +0 -1
  93. package/dist/index16.cjs.map +0 -1
  94. package/dist/index16.js.map +0 -1
  95. package/dist/index17.cjs.map +0 -1
  96. package/dist/index17.js.map +0 -1
  97. package/dist/index18.cjs.map +0 -1
  98. package/dist/index18.js.map +0 -1
  99. package/dist/index19.cjs.map +0 -1
  100. package/dist/index19.js.map +0 -1
  101. package/dist/index20.cjs.map +0 -1
  102. package/dist/index20.js.map +0 -1
  103. package/dist/index21.cjs.map +0 -1
  104. package/dist/index21.js.map +0 -1
  105. package/dist/index22.cjs.map +0 -1
  106. package/dist/index22.js.map +0 -1
  107. package/dist/index23.cjs.map +0 -1
  108. package/dist/index23.js.map +0 -1
  109. package/dist/index24.cjs.map +0 -1
  110. package/dist/index24.js.map +0 -1
  111. package/dist/index25.cjs.map +0 -1
  112. package/dist/index25.js.map +0 -1
  113. package/dist/index26.cjs.map +0 -1
  114. package/dist/index26.js.map +0 -1
  115. package/dist/index27.cjs.map +0 -1
  116. package/dist/index27.js.map +0 -1
  117. package/dist/index28.cjs.map +0 -1
  118. package/dist/index28.js.map +0 -1
  119. package/dist/index29.cjs.map +0 -1
  120. package/dist/index29.js.map +0 -1
  121. package/dist/index3.cjs.map +0 -1
  122. package/dist/index3.js.map +0 -1
  123. package/dist/index30.cjs.map +0 -1
  124. package/dist/index30.js.map +0 -1
  125. package/dist/index31.cjs.map +0 -1
  126. package/dist/index31.js.map +0 -1
  127. package/dist/index4.cjs.map +0 -1
  128. package/dist/index4.js.map +0 -1
  129. package/dist/index5.cjs.map +0 -1
  130. package/dist/index5.js.map +0 -1
  131. package/dist/index6.cjs.map +0 -1
  132. package/dist/index6.js.map +0 -1
  133. package/dist/index7.cjs.map +0 -1
  134. package/dist/index7.js.map +0 -1
  135. package/dist/index8.cjs.map +0 -1
  136. package/dist/index8.js.map +0 -1
  137. package/dist/index9.cjs.map +0 -1
  138. package/dist/index9.js.map +0 -1
package/dist/index23.js CHANGED
@@ -1,15 +1,14 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { forwardRef, useMemo } from "react";
3
- import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index31.js";
4
- import { normalizeSize, parseSizeToNumber } from "./index4.js";
3
+ import { normalizeSize, getContrastColor } from "./index4.js";
4
+ import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index32.js";
5
5
  import { cn } from "./index3.js";
6
- const ProgressRing = forwardRef(
6
+ const ProgressBar = forwardRef(
7
7
  ({
8
8
  value = 0,
9
9
  indeterminate = false,
10
10
  showValue = false,
11
- size = "lg",
12
- thickness = 4,
11
+ height = "0.5rem",
13
12
  color = "#3b82f6",
14
13
  secondaryColor = "#e0e0e0",
15
14
  gradient = false,
@@ -22,14 +21,14 @@ const ProgressRing = forwardRef(
22
21
  transition,
23
22
  className,
24
23
  style,
25
- testId = "progress-ring",
24
+ testId = "progress-bar",
26
25
  visible = true,
27
26
  ariaLabel,
28
27
  ...rest
29
28
  }, ref) => {
30
29
  const prefersReducedMotion = useReducedMotion();
31
30
  const effectiveDuration = getEffectiveDuration(speed, respectMotionPreference, prefersReducedMotion);
32
- const gradientId = useMemo(() => `progress-gradient-${Math.random().toString(36).substr(2, 9)}`, []);
31
+ const gradientId = useMemo(() => `progress-bar-gradient-${Math.random().toString(36).substr(2, 9)}`, []);
33
32
  const { shouldRender, opacity, transitionStyle } = useLoaderVisibility(
34
33
  visible,
35
34
  delay,
@@ -39,22 +38,16 @@ const ProgressRing = forwardRef(
39
38
  if (!shouldRender) return null;
40
39
  const clampedValue = Math.min(100, Math.max(0, value));
41
40
  const clampedBuffer = buffer !== void 0 ? Math.min(100, Math.max(0, buffer)) : void 0;
42
- const sizeValue = parseSizeToNumber(size, 56);
43
- const thicknessValue = parseSizeToNumber(thickness, 4);
44
- const radius = (sizeValue - thicknessValue * 2) / 2;
45
- const circumference = 2 * Math.PI * radius;
46
- const strokeDashoffset = circumference - clampedValue / 100 * circumference;
47
- const bufferDashoffset = clampedBuffer !== void 0 ? circumference - clampedBuffer / 100 * circumference : void 0;
48
41
  const progressLabel = ariaLabel || `Loading ${clampedValue}%`;
49
42
  return /* @__PURE__ */ jsxs(
50
43
  "div",
51
44
  {
52
45
  ref,
53
46
  "data-testid": testId,
54
- className: cn("inline-flex items-center justify-center relative", className),
47
+ className: cn("relative w-full overflow-hidden rounded-full", className),
55
48
  style: {
56
- width: normalizeSize(size),
57
- height: normalizeSize(size),
49
+ height: normalizeSize(height),
50
+ backgroundColor: secondaryColor,
58
51
  ...style,
59
52
  opacity,
60
53
  transition: transitionStyle
@@ -66,75 +59,48 @@ const ProgressRing = forwardRef(
66
59
  "aria-valuemax": 100,
67
60
  ...rest,
68
61
  children: [
69
- /* @__PURE__ */ jsxs(
70
- "svg",
62
+ gradient && !indeterminate && /* @__PURE__ */ jsx("svg", { width: "0", height: "0", style: { position: "absolute" }, children: /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: gradientId, x1: "0%", y1: "0%", x2: "100%", y2: "0%", children: [
63
+ /* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: color }),
64
+ /* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: secondaryColor || "#8b5cf6" })
65
+ ] }) }) }),
66
+ clampedBuffer !== void 0 && !indeterminate && /* @__PURE__ */ jsx(
67
+ "div",
71
68
  {
72
- className: cn(indeterminate && "animate-spinner-rotate"),
73
- width: sizeValue,
74
- height: sizeValue,
75
- viewBox: `0 0 ${sizeValue} ${sizeValue}`,
76
- style: indeterminate ? {
77
- animation: `spinner-rotate ${effectiveDuration} linear infinite`,
78
- animationDirection: reverse ? "reverse" : "normal"
79
- } : void 0,
80
- children: [
81
- gradient && /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: gradientId, x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
82
- /* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: color }),
83
- /* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: secondaryColor === "#e0e0e0" ? "#8b5cf6" : secondaryColor })
84
- ] }) }),
85
- /* @__PURE__ */ jsx(
86
- "circle",
87
- {
88
- cx: sizeValue / 2,
89
- cy: sizeValue / 2,
90
- r: radius,
91
- fill: "none",
92
- stroke: gradient ? "#e0e0e0" : secondaryColor,
93
- strokeWidth: thicknessValue
94
- }
95
- ),
96
- bufferDashoffset !== void 0 && !indeterminate && /* @__PURE__ */ jsx(
97
- "circle",
98
- {
99
- cx: sizeValue / 2,
100
- cy: sizeValue / 2,
101
- r: radius,
102
- fill: "none",
103
- stroke: gradient ? `url(#${gradientId})` : color,
104
- strokeWidth: thicknessValue,
105
- strokeLinecap: "round",
106
- strokeDasharray: circumference,
107
- strokeDashoffset: bufferDashoffset,
108
- transform: `rotate(-90 ${sizeValue / 2} ${sizeValue / 2})`,
109
- opacity: 0.3
110
- }
111
- ),
112
- /* @__PURE__ */ jsx(
113
- "circle",
114
- {
115
- cx: sizeValue / 2,
116
- cy: sizeValue / 2,
117
- r: radius,
118
- fill: "none",
119
- stroke: gradient ? `url(#${gradientId})` : color,
120
- strokeWidth: thicknessValue,
121
- strokeLinecap: "round",
122
- strokeDasharray: circumference,
123
- strokeDashoffset: indeterminate ? circumference * 0.75 : strokeDashoffset,
124
- transform: `rotate(-90 ${sizeValue / 2} ${sizeValue / 2})`,
125
- style: {
126
- transition: indeterminate ? "none" : "stroke-dashoffset 0.3s ease-in-out"
127
- }
128
- }
129
- )
130
- ]
69
+ className: "absolute h-full rounded-full opacity-30",
70
+ style: {
71
+ width: `${clampedBuffer}%`,
72
+ backgroundColor: color
73
+ }
74
+ }
75
+ ),
76
+ indeterminate ? /* @__PURE__ */ jsx(
77
+ "div",
78
+ {
79
+ className: "absolute h-full rounded-full",
80
+ style: {
81
+ backgroundColor: gradient ? `url(#${gradientId})` : color,
82
+ animation: `progress-indeterminate ${effectiveDuration} ease-in-out infinite`,
83
+ animationDirection: reverse ? "reverse" : "normal",
84
+ width: "40%"
85
+ }
86
+ }
87
+ ) : /* @__PURE__ */ jsx(
88
+ "div",
89
+ {
90
+ className: "h-full rounded-full transition-all duration-300 ease-in-out",
91
+ style: {
92
+ width: `${clampedValue}%`,
93
+ background: gradient ? `url(#${gradientId})` : color
94
+ }
131
95
  }
132
96
  ),
133
97
  showValue && !indeterminate && /* @__PURE__ */ jsxs(
134
98
  "span",
135
99
  {
136
- className: "absolute text-sm font-semibold",
137
- style: { color },
100
+ className: "absolute inset-0 flex items-center justify-center text-xs font-medium",
101
+ style: {
102
+ color: clampedValue > 50 ? getContrastColor(color) : secondaryColor === "#e0e0e0" ? "#000000" : getContrastColor(secondaryColor)
103
+ },
138
104
  children: [
139
105
  clampedValue,
140
106
  "%"
@@ -146,8 +112,7 @@ const ProgressRing = forwardRef(
146
112
  );
147
113
  }
148
114
  );
149
- ProgressRing.displayName = "ProgressRing";
115
+ ProgressBar.displayName = "ProgressBar";
150
116
  export {
151
- ProgressRing
117
+ ProgressBar
152
118
  };
153
- //# sourceMappingURL=index23.js.map
package/dist/index24.cjs CHANGED
@@ -2,30 +2,34 @@
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("./index31.cjs");
5
+ const hooks = require("./index32.cjs");
6
+ const colors = require("./index4.cjs");
6
7
  const classNames = require("./index3.cjs");
7
- const ProgressSteps = react.forwardRef(
8
+ const ProgressCircle = react.forwardRef(
8
9
  ({
9
- steps,
10
- currentStep,
11
- labels,
12
- showNumbers = true,
13
- orientation = "horizontal",
14
- connector = "line",
10
+ value = 0,
11
+ indeterminate = false,
12
+ showValue = false,
13
+ size = "lg",
14
+ thickness = 4,
15
15
  color = "#3b82f6",
16
- completedColor,
17
- activeColor,
18
- inactiveColor = "#e0e0e0",
16
+ secondaryColor = "#e0e0e0",
17
+ buffer,
18
+ speed = "normal",
19
+ reverse = false,
20
+ respectMotionPreference = true,
19
21
  delay = 0,
20
22
  minDuration = 0,
21
23
  transition,
22
24
  className,
23
25
  style,
24
- testId = "progress-steps",
26
+ testId = "progress-circle",
25
27
  visible = true,
26
- ariaLabel = "Progress steps",
28
+ ariaLabel,
27
29
  ...rest
28
30
  }, ref) => {
31
+ const prefersReducedMotion = hooks.useReducedMotion();
32
+ const effectiveDuration = hooks.getEffectiveDuration(speed, respectMotionPreference, prefersReducedMotion);
29
33
  const { shouldRender, opacity, transitionStyle } = hooks.useLoaderVisibility(
30
34
  visible,
31
35
  delay,
@@ -33,113 +37,110 @@ const ProgressSteps = react.forwardRef(
33
37
  transition
34
38
  );
35
39
  if (!shouldRender) return null;
36
- const completed = completedColor || color;
37
- const active = activeColor || color;
38
- const getStepStatus = (index) => {
39
- if (index < currentStep) return "completed";
40
- if (index === currentStep) return "active";
41
- return "inactive";
42
- };
43
- const getStepColor = (status) => {
44
- if (status === "completed") return completed;
45
- if (status === "active") return active;
46
- return inactiveColor;
47
- };
48
- const getConnectorColor = (index) => {
49
- return index < currentStep ? completed : inactiveColor;
50
- };
51
- const isHorizontal = orientation === "horizontal";
52
- return /* @__PURE__ */ jsxRuntime.jsx(
40
+ const clampedValue = Math.min(100, Math.max(0, value));
41
+ const clampedBuffer = buffer !== void 0 ? Math.min(100, Math.max(0, buffer)) : void 0;
42
+ const sizeValue = colors.parseSizeToNumber(size, 56);
43
+ const thicknessValue = colors.parseSizeToNumber(thickness, 4);
44
+ const radius = (sizeValue - thicknessValue * 2) / 2;
45
+ const circumference = 2 * Math.PI * radius;
46
+ const strokeDashoffset = circumference - clampedValue / 100 * circumference;
47
+ const bufferDashoffset = clampedBuffer !== void 0 ? circumference - clampedBuffer / 100 * circumference : void 0;
48
+ const progressLabel = ariaLabel || `Loading ${clampedValue}%`;
49
+ return /* @__PURE__ */ jsxRuntime.jsxs(
53
50
  "div",
54
51
  {
55
52
  ref,
56
53
  "data-testid": testId,
57
- className: classNames.cn(
58
- "flex",
59
- isHorizontal ? "flex-row items-center w-full" : "flex-col items-start",
60
- className
61
- ),
54
+ className: classNames.cn("inline-flex items-center justify-center relative", className),
62
55
  style: {
56
+ width: colors.normalizeSize(size),
57
+ height: colors.normalizeSize(size),
63
58
  ...style,
64
59
  opacity,
65
60
  transition: transitionStyle
66
61
  },
67
62
  role: "progressbar",
68
- "aria-label": ariaLabel,
69
- "aria-valuenow": currentStep,
63
+ "aria-label": progressLabel,
64
+ "aria-valuenow": indeterminate ? void 0 : clampedValue,
70
65
  "aria-valuemin": 0,
71
- "aria-valuemax": steps - 1,
66
+ "aria-valuemax": 100,
72
67
  ...rest,
73
- children: Array.from({ length: steps }).map((_, index) => {
74
- const status = getStepStatus(index);
75
- const stepColor = getStepColor(status);
76
- const showConnector = index < steps - 1 && connector === "line";
77
- return /* @__PURE__ */ jsxRuntime.jsxs(react.Fragment, { children: [
78
- /* @__PURE__ */ jsxRuntime.jsxs(
79
- "div",
80
- {
81
- className: classNames.cn(
82
- "flex items-center",
83
- isHorizontal ? "flex-col" : "flex-row gap-3"
68
+ children: [
69
+ /* @__PURE__ */ jsxRuntime.jsxs(
70
+ "svg",
71
+ {
72
+ className: classNames.cn(indeterminate && "animate-spinner-rotate"),
73
+ width: sizeValue,
74
+ height: sizeValue,
75
+ viewBox: `0 0 ${sizeValue} ${sizeValue}`,
76
+ style: indeterminate ? {
77
+ animation: `spinner-rotate ${effectiveDuration} linear infinite`,
78
+ animationDirection: reverse ? "reverse" : "normal"
79
+ } : void 0,
80
+ children: [
81
+ /* @__PURE__ */ jsxRuntime.jsx(
82
+ "circle",
83
+ {
84
+ cx: sizeValue / 2,
85
+ cy: sizeValue / 2,
86
+ r: radius,
87
+ fill: "none",
88
+ stroke: secondaryColor,
89
+ strokeWidth: thicknessValue
90
+ }
84
91
  ),
85
- children: [
86
- /* @__PURE__ */ jsxRuntime.jsx(
87
- "div",
88
- {
89
- className: "rounded-full flex items-center justify-center font-medium text-sm transition-colors",
90
- style: {
91
- width: "2rem",
92
- height: "2rem",
93
- backgroundColor: stepColor,
94
- color: "#ffffff"
95
- },
96
- children: showNumbers && /* @__PURE__ */ jsxRuntime.jsx("span", { children: index + 1 })
97
- }
98
- ),
99
- (labels == null ? void 0 : labels[index]) && /* @__PURE__ */ jsxRuntime.jsx(
100
- "span",
101
- {
102
- className: classNames.cn(
103
- "text-xs mt-1 transition-colors",
104
- isHorizontal ? "text-center" : "text-left"
105
- ),
106
- style: {
107
- color: status === "inactive" ? "#9ca3af" : "#374151",
108
- maxWidth: isHorizontal ? "80px" : "none"
109
- },
110
- children: labels[index]
92
+ bufferDashoffset !== void 0 && !indeterminate && /* @__PURE__ */ jsxRuntime.jsx(
93
+ "circle",
94
+ {
95
+ cx: sizeValue / 2,
96
+ cy: sizeValue / 2,
97
+ r: radius,
98
+ fill: "none",
99
+ stroke: color,
100
+ strokeWidth: thicknessValue,
101
+ strokeLinecap: "round",
102
+ strokeDasharray: circumference,
103
+ strokeDashoffset: bufferDashoffset,
104
+ transform: `rotate(-90 ${sizeValue / 2} ${sizeValue / 2})`,
105
+ opacity: 0.3
106
+ }
107
+ ),
108
+ /* @__PURE__ */ jsxRuntime.jsx(
109
+ "circle",
110
+ {
111
+ cx: sizeValue / 2,
112
+ cy: sizeValue / 2,
113
+ r: radius,
114
+ fill: "none",
115
+ stroke: color,
116
+ strokeWidth: thicknessValue,
117
+ strokeLinecap: "round",
118
+ strokeDasharray: circumference,
119
+ strokeDashoffset: indeterminate ? circumference * 0.75 : strokeDashoffset,
120
+ transform: `rotate(-90 ${sizeValue / 2} ${sizeValue / 2})`,
121
+ style: {
122
+ transition: indeterminate ? "none" : "stroke-dashoffset 0.3s ease-in-out"
111
123
  }
112
- )
113
- ]
114
- }
115
- ),
116
- showConnector && /* @__PURE__ */ jsxRuntime.jsx(
117
- "div",
118
- {
119
- className: "transition-colors",
120
- style: {
121
- backgroundColor: getConnectorColor(index),
122
- ...isHorizontal ? {
123
- height: "2px",
124
- flex: 1,
125
- marginLeft: "4px",
126
- marginRight: "4px"
127
- } : {
128
- width: "2px",
129
- height: "32px",
130
- marginLeft: "15px",
131
- marginTop: (labels == null ? void 0 : labels[index]) ? "4px" : "0",
132
- marginBottom: "4px"
133
124
  }
134
- }
135
- }
136
- )
137
- ] }, index);
138
- })
125
+ )
126
+ ]
127
+ }
128
+ ),
129
+ showValue && !indeterminate && /* @__PURE__ */ jsxRuntime.jsxs(
130
+ "span",
131
+ {
132
+ className: "absolute text-sm font-medium",
133
+ style: { color },
134
+ children: [
135
+ clampedValue,
136
+ "%"
137
+ ]
138
+ }
139
+ )
140
+ ]
139
141
  }
140
142
  );
141
143
  }
142
144
  );
143
- ProgressSteps.displayName = "ProgressSteps";
144
- exports.ProgressSteps = ProgressSteps;
145
- //# sourceMappingURL=index24.cjs.map
145
+ ProgressCircle.displayName = "ProgressCircle";
146
+ exports.ProgressCircle = ProgressCircle;