Comparing version 0.17.57 to 0.17.58
@@ -60,5 +60,6 @@ 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); } | ||
var ModuleHeader = function ModuleHeader(_ref3) { | ||
var children = _ref3.children, | ||
var filter = _ref3.filter, | ||
children = _ref3.children, | ||
className = _ref3.className, | ||
other = _objectWithoutProperties(_ref3, ["children", "className"]); | ||
other = _objectWithoutProperties(_ref3, ["filter", "children", "className"]); | ||
@@ -70,3 +71,5 @@ var wrapperClasses = classNames('wfp--module__header', className); | ||
className: "wfp--module__title" | ||
}, children)); | ||
}, children), filter && React.createElement("div", { | ||
className: "wfp--module__filter" | ||
}, filter)); | ||
}; | ||
@@ -73,0 +76,0 @@ |
@@ -125,5 +125,11 @@ /*export Accordion from './components/Accordion'; | ||
export SecondaryButton from './components/SecondaryButton'; | ||
export Select from './components/Select'; | ||
export SelectItem from './components/SelectItem'; | ||
export SelectItemGroup from './components/SelectItemGroup'; | ||
*/ | ||
import _Select from './components/Select'; | ||
export { _Select as Select }; | ||
import _SelectItem from './components/SelectItem'; | ||
export { _SelectItem as SelectItem }; | ||
import _SelectItemGroup from './components/SelectItemGroup'; | ||
export { _SelectItemGroup as SelectItemGroup }; | ||
/* | ||
export Switch from './components/Switch'; | ||
@@ -196,3 +202,4 @@ */ | ||
export { _User as User }; | ||
export { Unit, unitCalc } from './components/Unit'; | ||
import _Wrapper from './components/Wrapper'; | ||
export { _Wrapper as Wrapper }; |
@@ -76,5 +76,6 @@ "use strict"; | ||
var ModuleHeader = function ModuleHeader(_ref3) { | ||
var children = _ref3.children, | ||
var filter = _ref3.filter, | ||
children = _ref3.children, | ||
className = _ref3.className, | ||
other = _objectWithoutProperties(_ref3, ["children", "className"]); | ||
other = _objectWithoutProperties(_ref3, ["filter", "children", "className"]); | ||
@@ -86,3 +87,5 @@ var wrapperClasses = (0, _classnames.default)('wfp--module__header', className); | ||
className: "wfp--module__title" | ||
}, children)); | ||
}, children), filter && _react.default.createElement("div", { | ||
className: "wfp--module__filter" | ||
}, filter)); | ||
}; | ||
@@ -89,0 +92,0 @@ |
@@ -234,2 +234,20 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "Select", { | ||
enumerable: true, | ||
get: function get() { | ||
return _Select2.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "SelectItem", { | ||
enumerable: true, | ||
get: function get() { | ||
return _SelectItem2.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "SelectItemGroup", { | ||
enumerable: true, | ||
get: function get() { | ||
return _SelectItemGroup2.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "Slider", { | ||
@@ -271,2 +289,14 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "Unit", { | ||
enumerable: true, | ||
get: function get() { | ||
return _Unit.Unit; | ||
} | ||
}); | ||
Object.defineProperty(exports, "unitCalc", { | ||
enumerable: true, | ||
get: function get() { | ||
return _Unit.unitCalc; | ||
} | ||
}); | ||
Object.defineProperty(exports, "Wrapper", { | ||
@@ -327,2 +357,8 @@ enumerable: true, | ||
var _Select2 = _interopRequireDefault(require("./components/Select")); | ||
var _SelectItem2 = _interopRequireDefault(require("./components/SelectItem")); | ||
var _SelectItemGroup2 = _interopRequireDefault(require("./components/SelectItemGroup")); | ||
var _Slider2 = _interopRequireDefault(require("./components/Slider")); | ||
@@ -340,4 +376,6 @@ | ||
var _Unit = require("./components/Unit"); | ||
var _Wrapper2 = _interopRequireDefault(require("./components/Wrapper")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
{ | ||
"name": "@wfp/ui", | ||
"version": "0.17.57", | ||
"version": "0.17.58", | ||
"description": "WFP UI-Kit Next", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2", |
@@ -57,3 +57,3 @@ import PropTypes from 'prop-types'; | ||
const ModuleHeader = ({ children, className, ...other }) => { | ||
const ModuleHeader = ({ filter, children, className, ...other }) => { | ||
const wrapperClasses = classNames('wfp--module__header', className); | ||
@@ -64,2 +64,5 @@ | ||
<h1 className="wfp--module__title">{children}</h1> | ||
{filter && | ||
<div className="wfp--module__filter">{filter}</div> | ||
} | ||
</div> | ||
@@ -66,0 +69,0 @@ ); |
@@ -118,5 +118,7 @@ /*export Accordion from './components/Accordion'; | ||
export SecondaryButton from './components/SecondaryButton'; | ||
*/ | ||
export Select from './components/Select'; | ||
export SelectItem from './components/SelectItem'; | ||
export SelectItemGroup from './components/SelectItemGroup'; | ||
/* | ||
export Switch from './components/Switch'; | ||
@@ -179,2 +181,6 @@ */ | ||
export User from './components/User'; | ||
export { Unit, unitCalc } from './components/Unit'; | ||
export Wrapper from './components/Wrapper'; |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
9837989
661
28926
7