@s-ui/react-atom-progress-bar
Advanced tools
Comparing version 2.5.0 to 2.6.0
# CHANGELOG | ||
# 2.6.0 (2022-01-28) | ||
### Features | ||
* **components/atom/progressBar:** full refactor ([275e8be](https://github.com/SUI-Components/sui-components/commit/275e8beefbb91d1ec10bc975605654ad258b0bb8)) | ||
# 2.5.0 (2021-10-19) | ||
@@ -4,0 +13,0 @@ |
@@ -5,15 +5,6 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
import PropTypes from 'prop-types'; | ||
import LineProgressBar from './LineProgressBar'; | ||
import CircleProgressBar from './CircleProgressBar'; | ||
import LineDoubleProgressBar from './LineDoubleProgressBar'; | ||
import ProgressBarCircle from './ProgressBarCircle/index.js'; | ||
import ProgressBarLine from './ProgressBarLine/index.js'; | ||
import { TYPES, SIZES } from './settings.js'; | ||
import { jsx as _jsx } from "react/jsx-runtime"; | ||
var TYPES = { | ||
CIRCLE: 'circle', | ||
LINE: 'line', | ||
LINE_DOUBLE_BAR: 'lineDoubleBar' | ||
}; | ||
var SIZES = { | ||
LARGE: 'large', | ||
SMALL: 'small' | ||
}; | ||
@@ -26,17 +17,13 @@ var AtomProgressBar = function AtomProgressBar(_ref) { | ||
switch (type) { | ||
case TYPES.LINE: | ||
return /*#__PURE__*/_jsx(LineProgressBar, _extends({}, props)); | ||
case TYPES.CIRCLE: | ||
return /*#__PURE__*/_jsx(CircleProgressBar, _extends({ | ||
return /*#__PURE__*/_jsx(ProgressBarCircle, _extends({ | ||
size: size | ||
}, props)); | ||
case TYPES.LINE: | ||
case TYPES.LINE_DOUBLE_BAR: | ||
return /*#__PURE__*/_jsx(LineDoubleProgressBar, _extends({ | ||
default: | ||
return /*#__PURE__*/_jsx(ProgressBarLine, _extends({ | ||
size: size | ||
}, props)); | ||
default: | ||
return /*#__PURE__*/_jsx(LineProgressBar, _extends({}, props)); | ||
} | ||
@@ -43,0 +30,0 @@ }; |
{ | ||
"name": "@s-ui/react-atom-progress-bar", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"description": "", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"prepare": "npm run build:js && npm run build:styles", | ||
"prepare": "rimraf ./lib && npm run build:js && npm run build:styles", | ||
"build:js": "babel --presets sui ./src --out-dir ./lib", | ||
@@ -9,0 +9,0 @@ "build:styles": "cpx './src/**/*.scss' ./lib" |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
34568
25
316
1