@clayui/button
Advanced tools
Comparing version 3.0.0-milestone.1 to 3.0.0-milestone.2
@@ -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; |
@@ -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
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
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
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
19855
18
386
4
1
+ Added@clayui/css@3.122.0(transitive)
+ Added@clayui/icon@3.111.0(transitive)
+ Addedwarning@4.0.3(transitive)