@react-md/progress
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -6,2 +6,19 @@ # Change Log | ||
## [4.0.1](https://github.com/mlaursen/react-md/compare/v4.0.0...v4.0.1) (2021-11-27) | ||
### Bug Fixes | ||
* **@react-md/utils:** Update `getPercentage` to optionally not throw errors ([ff8a1d6](https://github.com/mlaursen/react-md/commit/ff8a1d6bbcf4539e5175987f1570699b06cceb09)) | ||
### Other Internal Changes | ||
* Updated imports to use `import type` when possible ([ba96bb6](https://github.com/mlaursen/react-md/commit/ba96bb62eeddcc0879f6d584aa670850203561e6)) | ||
# [4.0.0](https://github.com/mlaursen/react-md/compare/v3.1.1...v4.0.0) (2021-11-24) | ||
@@ -8,0 +25,0 @@ |
@@ -32,3 +32,3 @@ var __assign = (this && this.__assign) || function () { | ||
if (typeof value === "number") { | ||
progress = getPercentage(min, max, value); | ||
progress = getPercentage({ min: min, max: max, value: value }); | ||
} | ||
@@ -35,0 +35,0 @@ var svgStyle = useMemo(function () { |
@@ -38,3 +38,3 @@ var __assign = (this && this.__assign) || function () { | ||
if (typeof value === "number") { | ||
progress = getPercentage(min, max, value); | ||
progress = getPercentage({ min: min, max: max, value: value }); | ||
} | ||
@@ -41,0 +41,0 @@ var barStyle = useMemo(function () { |
import { CSSProperties, HTMLAttributes } from "react"; | ||
import { ProgressProps } from "./types"; | ||
import type { ProgressProps } from "./types"; | ||
export interface CircularProgressProps extends Omit<HTMLAttributes<HTMLSpanElement>, "id">, ProgressProps { | ||
@@ -4,0 +4,0 @@ /** |
@@ -38,3 +38,3 @@ "use strict"; | ||
if (typeof value === "number") { | ||
progress = (0, utils_1.getPercentage)(min, max, value); | ||
progress = (0, utils_1.getPercentage)({ min: min, max: max, value: value }); | ||
} | ||
@@ -41,0 +41,0 @@ var svgStyle = (0, react_1.useMemo)(function () { |
import { CSSProperties, HTMLAttributes } from "react"; | ||
import { ProgressProps } from "./types"; | ||
import type { ProgressProps } from "./types"; | ||
export interface LinearProgressProps extends Omit<HTMLAttributes<HTMLDivElement>, "id">, ProgressProps { | ||
@@ -4,0 +4,0 @@ /** |
@@ -44,3 +44,3 @@ "use strict"; | ||
if (typeof value === "number") { | ||
progress = (0, utils_1.getPercentage)(min, max, value); | ||
progress = (0, utils_1.getPercentage)({ min: min, max: max, value: value }); | ||
} | ||
@@ -47,0 +47,0 @@ var barStyle = (0, react_1.useMemo)(function () { |
{ | ||
"name": "@react-md/progress", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Create horizontal, vertical, and circular progress indicators", | ||
@@ -31,5 +31,5 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@react-md/theme": "^4.0.0", | ||
"@react-md/transition": "^4.0.0", | ||
"@react-md/utils": "^4.0.0", | ||
"@react-md/theme": "^4.0.1", | ||
"@react-md/transition": "^4.0.1", | ||
"@react-md/utils": "^4.0.1", | ||
"classnames": "^2.3.1" | ||
@@ -48,3 +48,3 @@ }, | ||
}, | ||
"gitHead": "a9f2d64a777698fa65bb3196f6063cdd8321f5cb" | ||
"gitHead": "0df0f24d688ea7c867b7ef656ee9887f00215705" | ||
} |
import { CSSProperties, HTMLAttributes } from "react"; | ||
import { ProgressProps } from "./types"; | ||
import type { ProgressProps } from "./types"; | ||
export interface CircularProgressProps extends Omit<HTMLAttributes<HTMLSpanElement>, "id">, ProgressProps { | ||
@@ -4,0 +4,0 @@ /** |
import { CSSProperties, HTMLAttributes } from "react"; | ||
import { ProgressProps } from "./types"; | ||
import type { ProgressProps } from "./types"; | ||
export interface LinearProgressProps extends Omit<HTMLAttributes<HTMLDivElement>, "id">, ProgressProps { | ||
@@ -4,0 +4,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
119175
Updated@react-md/theme@^4.0.1
Updated@react-md/transition@^4.0.1
Updated@react-md/utils@^4.0.1