@igloo-ui/button-group
Advanced tools
+1
-61
| import './button-group.css'; | ||
| import * as React from 'react'; | ||
| import cx from 'classnames'; | ||
@@ -36,63 +37,2 @@ /****************************************************************************** | ||
| var classnames = {exports: {}}; | ||
| /*! | ||
| Copyright (c) 2018 Jed Watson. | ||
| Licensed under the MIT License (MIT), see | ||
| http://jedwatson.github.io/classnames | ||
| */ | ||
| (function (module) { | ||
| /* global define */ | ||
| (function () { | ||
| var hasOwn = {}.hasOwnProperty; | ||
| function classNames() { | ||
| var classes = []; | ||
| for (var i = 0; i < arguments.length; i++) { | ||
| var arg = arguments[i]; | ||
| if (!arg) continue; | ||
| var argType = typeof arg; | ||
| if (argType === 'string' || argType === 'number') { | ||
| classes.push(arg); | ||
| } else if (Array.isArray(arg)) { | ||
| if (arg.length) { | ||
| var inner = classNames.apply(null, arg); | ||
| if (inner) { | ||
| classes.push(inner); | ||
| } | ||
| } | ||
| } else if (argType === 'object') { | ||
| if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) { | ||
| classes.push(arg.toString()); | ||
| continue; | ||
| } | ||
| for (var key in arg) { | ||
| if (hasOwn.call(arg, key) && arg[key]) { | ||
| classes.push(key); | ||
| } | ||
| } | ||
| } | ||
| } | ||
| return classes.join(' '); | ||
| } | ||
| if (module.exports) { | ||
| classNames.default = classNames; | ||
| module.exports = classNames; | ||
| } else { | ||
| window.classNames = classNames; | ||
| } | ||
| }()); | ||
| }(classnames)); | ||
| var cx = classnames.exports; | ||
| const ButtonGroupItem = (_a) => { | ||
@@ -99,0 +39,0 @@ var { children, icon, active, disabled, onClick, dataTest } = _a, rest = __rest(_a, ["children", "icon", "active", "disabled", "onClick", "dataTest"]); |
+3
-3
| { | ||
| "name": "@igloo-ui/button-group", | ||
| "version": "0.6.1", | ||
| "version": "0.7.0", | ||
| "main": "dist/ButtonGroup.js", | ||
@@ -38,5 +38,5 @@ "module": "dist/ButtonGroup.js", | ||
| "@igloo-ui/icons": "^1.12.2", | ||
| "@igloo-ui/tooltip": "^4.0.1" | ||
| "@igloo-ui/tooltip": "^4.1.0" | ||
| }, | ||
| "gitHead": "860dc9cc48b5781faac47b43fadf665a8e890016" | ||
| "gitHead": "bdc4c2acd44801ff1b0d12e1deef2e61240bccbf" | ||
| } |
26541
-4.25%95
-33.1%