@yamada-ui/progress 0.3.6 → 0.3.8

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.
@@ -1,5 +1,8 @@
1
1
  // src/circle-progress.tsx
2
- import { ui, forwardRef } from "@yamada-ui/core";
2
+ import {
3
+ ui,
4
+ forwardRef
5
+ } from "@yamada-ui/core";
3
6
  import { useAnimation } from "@yamada-ui/use-animation";
4
7
  import { useToken } from "@yamada-ui/use-token";
5
8
  import { useValue } from "@yamada-ui/use-value";
@@ -61,22 +64,31 @@ var CircleProgress = forwardRef(
61
64
  transitionDuration: "0.6s",
62
65
  transitionTimingFunction: "ease"
63
66
  };
64
- return /* @__PURE__ */ jsxs(ui.div, { ref, className: cx("ui-circle-progress", className), __css: css, ...rest, children: [
65
- /* @__PURE__ */ jsxs(Shape, { size, isAnimation, speed, children: [
66
- /* @__PURE__ */ jsx(Circle, { stroke: trackColor, strokeWidth: thickness }),
67
- /* @__PURE__ */ jsx(
68
- Circle,
69
- {
70
- stroke: color,
71
- strokeWidth: thickness,
72
- strokeLinecap: isRounded ? "round" : void 0,
73
- opacity: isTransparent ? 0 : void 0,
74
- ...props
75
- }
76
- )
77
- ] }),
78
- children
79
- ] });
67
+ return /* @__PURE__ */ jsxs(
68
+ ui.div,
69
+ {
70
+ ref,
71
+ className: cx("ui-circle-progress", className),
72
+ __css: css,
73
+ ...rest,
74
+ children: [
75
+ /* @__PURE__ */ jsxs(Shape, { size, isAnimation, speed, children: [
76
+ /* @__PURE__ */ jsx(Circle, { stroke: trackColor, strokeWidth: thickness }),
77
+ /* @__PURE__ */ jsx(
78
+ Circle,
79
+ {
80
+ stroke: color,
81
+ strokeWidth: thickness,
82
+ strokeLinecap: isRounded ? "round" : void 0,
83
+ opacity: isTransparent ? 0 : void 0,
84
+ ...props
85
+ }
86
+ )
87
+ ] }),
88
+ children
89
+ ]
90
+ }
91
+ );
80
92
  }
81
93
  );
82
94
  var Circle = (rest) => /* @__PURE__ */ jsx(ui.circle, { cx: 50, cy: 50, r: 42, fill: "transparent", ...rest });
@@ -86,22 +86,31 @@ var CircleProgress = (0, import_core.forwardRef)(
86
86
  transitionDuration: "0.6s",
87
87
  transitionTimingFunction: "ease"
88
88
  };
89
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.ui.div, { ref, className: (0, import_utils.cx)("ui-circle-progress", className), __css: css, ...rest, children: [
90
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Shape, { size, isAnimation, speed, children: [
91
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Circle, { stroke: trackColor, strokeWidth: thickness }),
92
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
93
- Circle,
94
- {
95
- stroke: color,
96
- strokeWidth: thickness,
97
- strokeLinecap: isRounded ? "round" : void 0,
98
- opacity: isTransparent ? 0 : void 0,
99
- ...props
100
- }
101
- )
102
- ] }),
103
- children
104
- ] });
89
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
90
+ import_core.ui.div,
91
+ {
92
+ ref,
93
+ className: (0, import_utils.cx)("ui-circle-progress", className),
94
+ __css: css,
95
+ ...rest,
96
+ children: [
97
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Shape, { size, isAnimation, speed, children: [
98
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Circle, { stroke: trackColor, strokeWidth: thickness }),
99
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
100
+ Circle,
101
+ {
102
+ stroke: color,
103
+ strokeWidth: thickness,
104
+ strokeLinecap: isRounded ? "round" : void 0,
105
+ opacity: isTransparent ? 0 : void 0,
106
+ ...props
107
+ }
108
+ )
109
+ ] }),
110
+ children
111
+ ]
112
+ }
113
+ );
105
114
  }
106
115
  );
107
116
  var Circle = (rest) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.ui.circle, { cx: 50, cy: 50, r: 42, fill: "transparent", ...rest });
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CircleProgress,
3
3
  CircleProgressLabel
4
- } from "./chunk-ENCTHIX3.mjs";
4
+ } from "./chunk-ORE64ON5.mjs";
5
5
  export {
6
6
  CircleProgress,
7
7
  CircleProgressLabel
package/dist/index.js CHANGED
@@ -199,22 +199,31 @@ var CircleProgress = (0, import_core2.forwardRef)(
199
199
  transitionDuration: "0.6s",
200
200
  transitionTimingFunction: "ease"
201
201
  };
202
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_core2.ui.div, { ref, className: (0, import_utils2.cx)("ui-circle-progress", className), __css: css, ...rest, children: [
203
- /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Shape, { size, isAnimation, speed, children: [
204
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Circle, { stroke: trackColor, strokeWidth: thickness }),
205
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
206
- Circle,
207
- {
208
- stroke: color,
209
- strokeWidth: thickness,
210
- strokeLinecap: isRounded ? "round" : void 0,
211
- opacity: isTransparent ? 0 : void 0,
212
- ...props
213
- }
214
- )
215
- ] }),
216
- children
217
- ] });
202
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
203
+ import_core2.ui.div,
204
+ {
205
+ ref,
206
+ className: (0, import_utils2.cx)("ui-circle-progress", className),
207
+ __css: css,
208
+ ...rest,
209
+ children: [
210
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Shape, { size, isAnimation, speed, children: [
211
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Circle, { stroke: trackColor, strokeWidth: thickness }),
212
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
213
+ Circle,
214
+ {
215
+ stroke: color,
216
+ strokeWidth: thickness,
217
+ strokeLinecap: isRounded ? "round" : void 0,
218
+ opacity: isTransparent ? 0 : void 0,
219
+ ...props
220
+ }
221
+ )
222
+ ] }),
223
+ children
224
+ ]
225
+ }
226
+ );
218
227
  }
219
228
  );
220
229
  var Circle = (rest) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_core2.ui.circle, { cx: 50, cy: 50, r: 42, fill: "transparent", ...rest });
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CircleProgress,
3
3
  CircleProgressLabel
4
- } from "./chunk-ENCTHIX3.mjs";
4
+ } from "./chunk-ORE64ON5.mjs";
5
5
  import {
6
6
  Progress
7
7
  } from "./chunk-QAI6QT3G.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/progress",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "description": "Yamada UI progress components",
5
5
  "keywords": [
6
6
  "yamada",
@@ -35,11 +35,11 @@
35
35
  "url": "https://github.com/hirotomoyamada/yamada-ui/issues"
36
36
  },
37
37
  "dependencies": {
38
- "@yamada-ui/core": "0.5.1",
39
- "@yamada-ui/utils": "0.1.3",
40
- "@yamada-ui/use-value": "0.1.18",
41
- "@yamada-ui/use-token": "0.1.18",
42
- "@yamada-ui/use-animation": "0.1.18"
38
+ "@yamada-ui/core": "0.5.3",
39
+ "@yamada-ui/utils": "0.1.4",
40
+ "@yamada-ui/use-value": "0.1.20",
41
+ "@yamada-ui/use-token": "0.1.20",
42
+ "@yamada-ui/use-animation": "0.1.20"
43
43
  },
44
44
  "devDependencies": {
45
45
  "react": "^18.0.0",