Socket
Socket
Sign inDemoInstall

@s-ui/react-atom-progress-bar

Package Overview
Dependencies
5
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.5.0 to 2.6.0

lib/ProgressBarCircle/Circle/index.js

9

CHANGELOG.md
# 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 @@

27

lib/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc