New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@fenderdigital/react-circle

Package Overview
Dependencies
Maintainers
7
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fenderdigital/react-circle - npm Package Compare versions

Comparing version 1.0.2 to 2.0.0

lib/Circle.d.ts

63

lib/Circle.js

@@ -1,54 +0,15 @@

'use strict';
exports.__esModule = true;
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var circleClasses = 'br-100 overflow-hidden flex items-center justify-center w-100 h-100';
var Circle = function Circle(_ref) {
var color = _ref.color,
children = _ref.children,
dimensions = _ref.dimensions,
opacity = _ref.opacity;
return _react2.default.createElement(
'div',
{
className: 'circle bg-' + color + ' o-' + opacity + ' ' + circleClasses,
'data-id': 'circle',
style: dimensions
},
children
);
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Circle.propTypes = process.env.NODE_ENV !== "production" ? {
color: _propTypes2.default.string,
children: _propTypes2.default.node,
dimensions: _propTypes2.default.shape({
width: _propTypes2.default.string,
height: _propTypes2.default.string
}),
opacity: _propTypes2.default.number
} : {};
Circle.defaultProps = {
color: 'light-gray',
children: null,
dimensions: {
width: '1rem',
height: '1rem'
},
opacity: 100
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importDefault(require("react"));
var Circle = function (_a) {
var id = _a.id, _b = _a.color, color = _b === void 0 ? 'light-gray' : _b, children = _a.children, _c = _a.dimensions, dimensions = _c === void 0 ? {
width: '1rem',
height: '1rem',
} : _c, _d = _a.opacity, opacity = _d === void 0 ? 100 : _d;
return (react_1.default.createElement("div", { id: id, className: "circle bg-" + color + " o-" + opacity + " br-100 overflow-hidden flex items-center justify-center w-100 h-100", style: dimensions }, children));
};
exports.default = Circle;
module.exports = exports['default'];
//# sourceMappingURL=Circle.js.map

@@ -18,5 +18,6 @@ {

"scripts": {
"prepare": "nwb clean --config ../../nwb.config.js && nwb build-react-component --config ../../nwb.config.js"
"prepare": "rm -rf ./lib && tsc"
},
"version": "1.0.2"
"version": "2.0.0",
"gitHead": "7e84336060a9f2921558ee8a9be1fdb8bfec5c2d"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc