@yamada-ui/progress 0.3.6 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-ENCTHIX3.mjs → chunk-ORE64ON5.mjs} +29 -17
- package/dist/circle-progress.js +25 -16
- package/dist/circle-progress.mjs +1 -1
- package/dist/index.js +25 -16
- package/dist/index.mjs +1 -1
- package/package.json +6 -6
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// src/circle-progress.tsx
|
|
2
|
-
import {
|
|
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(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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 });
|
package/dist/circle-progress.js
CHANGED
|
@@ -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)(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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 });
|
package/dist/circle-progress.mjs
CHANGED
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)(
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamada-ui/progress",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
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.
|
|
39
|
-
"@yamada-ui/utils": "0.1.
|
|
40
|
-
"@yamada-ui/use-value": "0.1.
|
|
41
|
-
"@yamada-ui/use-token": "0.1.
|
|
42
|
-
"@yamada-ui/use-animation": "0.1.
|
|
38
|
+
"@yamada-ui/core": "0.5.2",
|
|
39
|
+
"@yamada-ui/utils": "0.1.4",
|
|
40
|
+
"@yamada-ui/use-value": "0.1.19",
|
|
41
|
+
"@yamada-ui/use-token": "0.1.19",
|
|
42
|
+
"@yamada-ui/use-animation": "0.1.19"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"react": "^18.0.0",
|