Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@clayui/button

Package Overview
Dependencies
Maintainers
3
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clayui/button - npm Package Compare versions

Comparing version 3.0.0-milestone.1 to 3.0.0-milestone.2

lib/Button.js

5

lib/Group.js

@@ -6,3 +6,3 @@ "use strict";

});
exports.ClayButtonGroup = void 0;
exports.default = void 0;

@@ -41,2 +41,3 @@ var _classnames = _interopRequireDefault(require("classnames"));

exports.ClayButtonGroup = ClayButtonGroup;
var _default = ClayButtonGroup;
exports.default = _default;

48

lib/index.js

@@ -6,42 +6,22 @@ "use strict";

});
Object.defineProperty(exports, "ClayButtonWithIcon", {
enumerable: true,
get: function get() {
return _ButtonWithIcon.default;
}
});
exports.default = void 0;
var _classnames = _interopRequireDefault(require("classnames"));
var _Button = _interopRequireDefault(require("./Button"));
var _react = _interopRequireDefault(require("react"));
var _ButtonWithIcon = _interopRequireDefault(require("./ButtonWithIcon"));
var _Group = require("./Group");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
var ClayButton = function ClayButton(_ref) {
var block = _ref.block,
children = _ref.children,
className = _ref.className,
_ref$displayType = _ref.displayType,
displayType = _ref$displayType === void 0 ? 'primary' : _ref$displayType,
monospaced = _ref.monospaced,
small = _ref.small,
_ref$type = _ref.type,
type = _ref$type === void 0 ? 'button' : _ref$type,
otherProps = _objectWithoutProperties(_ref, ["block", "children", "className", "displayType", "monospaced", "small", "type"]);
return _react.default.createElement("button", _extends({}, otherProps, {
className: (0, _classnames.default)(className, 'btn', "btn-".concat(displayType), {
'btn-block': block,
'btn-monospaced': monospaced,
'btn-sm': small
}),
type: type
}), children);
};
ClayButton.Group = _Group.ClayButtonGroup;
var _default = ClayButton;
/**
* © 2019 Liferay, Inc. <https://liferay.com>
*
* SPDX-License-Identifier: BSD-3-Clause
*/
var _default = _Button.default;
exports.default = _default;
{
"name": "@clayui/button",
"version": "3.0.0-milestone.1",
"version": "3.0.0-milestone.2",
"description": "ClayButton component",

@@ -21,3 +21,3 @@ "license": "BSD-3-Clause",

"build:types": "tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "npm run build && npm run build:types",
"prepublishOnly": "yarn build && yarn build:types",
"test": "jest --config ../../jest.config.js"

@@ -30,6 +30,7 @@ },

"dependencies": {
"@clayui/icon": "^3.0.0-milestone.2",
"classnames": "^2.2.6"
},
"devDependencies": {
"@clayui/css": "^3.0.0-milestone.1"
"@clayui/css": "^3.0.0-milestone.2"
},

@@ -42,3 +43,4 @@ "peerDependencies": {

"extends browserslist-config-clay"
]
],
"gitHead": "fff144f638baed3d75ca83937f9bbe9f8290cf0f"
}

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

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