@yamada-ui/progress 0.3.3 → 0.3.5

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.
@@ -6,7 +6,7 @@ import {
6
6
  omitThemeProps
7
7
  } from "@yamada-ui/core";
8
8
  import { useAnimation } from "@yamada-ui/use-animation";
9
- import { createContext, cx, valueToPercent } from "@yamada-ui/utils";
9
+ import { createContext, cx, omitObject, valueToPercent } from "@yamada-ui/utils";
10
10
  import { jsx, jsxs } from "react/jsx-runtime";
11
11
  var [ProgressProvider, useProgress] = createContext({
12
12
  name: `ProgressStylesContext`,
@@ -27,7 +27,6 @@ var Progress = forwardRef((props, ref) => {
27
27
  speed,
28
28
  borderRadius: _borderRadius,
29
29
  rounded,
30
- filledTrackColor,
31
30
  ...rest
32
31
  } = omitThemeProps(mergedProps);
33
32
  const borderRadius = (_a = _borderRadius != null ? _borderRadius : rounded) != null ? _a : styles.track.borderRadius;
@@ -44,7 +43,7 @@ var Progress = forwardRef((props, ref) => {
44
43
  className: cx("ui-progress", className),
45
44
  __css: css,
46
45
  borderRadius,
47
- ...rest,
46
+ ...omitObject(rest, ["filledTrackColor"]),
48
47
  children: [
49
48
  /* @__PURE__ */ jsx(
50
49
  ProgressFilledTrack,
@@ -0,0 +1,70 @@
1
+ import * as _yamada_ui_core from '@yamada-ui/core';
2
+ import { HTMLUIProps, CSSUIProps } from '@yamada-ui/core';
3
+
4
+ type CircleProgressOptions = {
5
+ /**
6
+ * The CSS `box-size` property.
7
+ *
8
+ * @default '6rem'
9
+ */
10
+ size?: CSSUIProps['boxSize'];
11
+ /**
12
+ * The CSS `width` property.
13
+ *
14
+ * @default '0.625ewm'
15
+ */
16
+ thickness?: CSSUIProps['width'];
17
+ /**
18
+ * The CSS `color` property.
19
+ *
20
+ * @default 'primary'
21
+ */
22
+ color?: CSSUIProps['color'];
23
+ /**
24
+ * The CSS `color` property.
25
+ *
26
+ * @default 'border'
27
+ */
28
+ trackColor?: CSSUIProps['color'];
29
+ /**
30
+ * The value of the progress.
31
+ *
32
+ * @default 0
33
+ */
34
+ value?: number;
35
+ /**
36
+ * The minimum value of the progress.
37
+ *
38
+ * @default 0
39
+ */
40
+ min?: number;
41
+ /**
42
+ * The maximum value of the progress.
43
+ *
44
+ * @default 100
45
+ */
46
+ max?: number;
47
+ /**
48
+ * If `true`, the cap of the progress indicator will be rounded.
49
+ *
50
+ * @default false
51
+ */
52
+ isRounded?: boolean;
53
+ /**
54
+ * If `true`, the progress will be indeterminate and the `value` prop will be ignored.
55
+ *
56
+ * @default false
57
+ */
58
+ isAnimation?: boolean;
59
+ /**
60
+ * The animation speed in seconds.
61
+ *
62
+ * @default '[1.4s, 2s]'
63
+ */
64
+ speed?: [string | number, string | number];
65
+ };
66
+ type CircleProgressProps = Omit<HTMLUIProps<'div'>, 'color'> & CircleProgressOptions;
67
+ declare const CircleProgress: _yamada_ui_core.Component<"div", CircleProgressProps>;
68
+ declare const CircleProgressLabel: _yamada_ui_core.UIComponent<"span", {}>;
69
+
70
+ export { CircleProgress, CircleProgressLabel, CircleProgressProps };
@@ -0,0 +1,3 @@
1
+ export { Progress, ProgressProps } from './progress.mjs';
2
+ export { CircleProgress, CircleProgressLabel, CircleProgressProps } from './circle-progress.mjs';
3
+ import '@yamada-ui/core';
package/dist/index.js CHANGED
@@ -50,7 +50,6 @@ var Progress = (0, import_core.forwardRef)((props, ref) => {
50
50
  speed,
51
51
  borderRadius: _borderRadius,
52
52
  rounded,
53
- filledTrackColor,
54
53
  ...rest
55
54
  } = (0, import_core.omitThemeProps)(mergedProps);
56
55
  const borderRadius = (_a = _borderRadius != null ? _borderRadius : rounded) != null ? _a : styles.track.borderRadius;
@@ -67,7 +66,7 @@ var Progress = (0, import_core.forwardRef)((props, ref) => {
67
66
  className: (0, import_utils.cx)("ui-progress", className),
68
67
  __css: css,
69
68
  borderRadius,
70
- ...rest,
69
+ ...(0, import_utils.omitObject)(rest, ["filledTrackColor"]),
71
70
  children: [
72
71
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
73
72
  ProgressFilledTrack,
package/dist/index.mjs CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-ENCTHIX3.mjs";
5
5
  import {
6
6
  Progress
7
- } from "./chunk-YVOKDDDL.mjs";
7
+ } from "./chunk-QAI6QT3G.mjs";
8
8
  export {
9
9
  CircleProgress,
10
10
  CircleProgressLabel,
@@ -0,0 +1,55 @@
1
+ import * as _yamada_ui_core from '@yamada-ui/core';
2
+ import { HTMLUIProps, ThemeProps, CSSUIProps } from '@yamada-ui/core';
3
+
4
+ type ProgressOptions = {
5
+ /**
6
+ * The value of the progress.
7
+ *
8
+ * @default 0
9
+ */
10
+ value?: number;
11
+ /**
12
+ * The minimum value of the progress.
13
+ *
14
+ * @default 0
15
+ */
16
+ min?: number;
17
+ /**
18
+ * The maximum value of the progress.
19
+ *
20
+ * @default 100
21
+ */
22
+ max?: number;
23
+ /**
24
+ * If `true`, the progress bar will show stripe.
25
+ *
26
+ * @default false
27
+ */
28
+ hasStripe?: boolean;
29
+ /**
30
+ * If `true`, and hasStripe is `true`, the stripes will be animated.
31
+ *
32
+ * @default false
33
+ */
34
+ isStripeAnimation?: boolean;
35
+ /**
36
+ * If `true`, the progress will be indeterminate and the `value` prop will be ignored.
37
+ *
38
+ * @default false
39
+ */
40
+ isAnimation?: boolean;
41
+ /**
42
+ * The animation speed in seconds.
43
+ *
44
+ * @default '1.4s'
45
+ */
46
+ speed?: string | number;
47
+ /**
48
+ * The CSS `color` property.
49
+ */
50
+ filledTrackColor?: CSSUIProps<'unResponsive'>['color'];
51
+ };
52
+ type ProgressProps = HTMLUIProps<'div'> & ThemeProps<'Progress'> & ProgressOptions;
53
+ declare const Progress: _yamada_ui_core.Component<"div", ProgressProps>;
54
+
55
+ export { Progress, ProgressProps };
package/dist/progress.js CHANGED
@@ -46,7 +46,6 @@ var Progress = (0, import_core.forwardRef)((props, ref) => {
46
46
  speed,
47
47
  borderRadius: _borderRadius,
48
48
  rounded,
49
- filledTrackColor,
50
49
  ...rest
51
50
  } = (0, import_core.omitThemeProps)(mergedProps);
52
51
  const borderRadius = (_a = _borderRadius != null ? _borderRadius : rounded) != null ? _a : styles.track.borderRadius;
@@ -63,7 +62,7 @@ var Progress = (0, import_core.forwardRef)((props, ref) => {
63
62
  className: (0, import_utils.cx)("ui-progress", className),
64
63
  __css: css,
65
64
  borderRadius,
66
- ...rest,
65
+ ...(0, import_utils.omitObject)(rest, ["filledTrackColor"]),
67
66
  children: [
68
67
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
69
68
  ProgressFilledTrack,
package/dist/progress.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Progress
3
- } from "./chunk-YVOKDDDL.mjs";
3
+ } from "./chunk-QAI6QT3G.mjs";
4
4
  export {
5
5
  Progress
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/progress",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
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.4.2",
39
- "@yamada-ui/utils": "0.1.2",
40
- "@yamada-ui/use-value": "0.1.15",
41
- "@yamada-ui/use-token": "0.1.15",
42
- "@yamada-ui/use-animation": "0.1.15"
38
+ "@yamada-ui/core": "0.5.0",
39
+ "@yamada-ui/utils": "0.1.3",
40
+ "@yamada-ui/use-value": "0.1.17",
41
+ "@yamada-ui/use-token": "0.1.17",
42
+ "@yamada-ui/use-animation": "0.1.17"
43
43
  },
44
44
  "devDependencies": {
45
45
  "react": "^18.0.0",