@brightleaf/elements
Advanced tools
Comparing version 1.6.1 to 1.7.0
@@ -18,2 +18,4 @@ "use strict"; | ||
var _propTypes2 = require("../utils/prop-types"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -55,8 +57,5 @@ | ||
exports.Base = Base; | ||
Base.propTypes = { | ||
as: _propTypes.default.node, | ||
className: _propTypes.default.string | ||
}; | ||
Base.propTypes = _propTypes2.propTypes; | ||
Base.defaultProps = { | ||
as: 'div' | ||
}; |
@@ -14,2 +14,4 @@ "use strict"; | ||
var _propTypes = require("../utils/prop-types"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -34,3 +36,3 @@ | ||
exports.Box = Box; | ||
Box.propTypes = {}; | ||
Box.propTypes = _propTypes.propTypes; | ||
Box.defaultProps = { | ||
@@ -37,0 +39,0 @@ as: 'div' |
@@ -14,2 +14,4 @@ "use strict"; | ||
var _propTypes = require("../utils/prop-types"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -32,2 +34,3 @@ | ||
exports.Content = Content; | ||
exports.Content = Content; | ||
Content.propTypes = _propTypes.propTypes; |
@@ -14,4 +14,2 @@ "use strict"; | ||
require("../css/animations.css"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -18,0 +16,0 @@ |
@@ -14,2 +14,4 @@ "use strict"; | ||
var _propTypes = require("../utils/prop-types"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -33,3 +35,4 @@ | ||
exports.Footer = Footer; | ||
Footer.propTypes = _propTypes.propTypes; | ||
var _default = Footer; | ||
exports.default = _default; |
@@ -14,2 +14,4 @@ "use strict"; | ||
var _propTypes = require("../utils/prop-types"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -34,2 +36,3 @@ | ||
exports.Heading = Heading; | ||
Heading.propTypes = _propTypes.propTypes; | ||
Heading.defaultProps = { | ||
@@ -36,0 +39,0 @@ as: 'p' |
@@ -14,2 +14,4 @@ "use strict"; | ||
var _propTypes = require("../utils/prop-types"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -34,2 +36,3 @@ | ||
exports.Highlight = Highlight; | ||
Highlight.propTypes = _propTypes.propTypes; | ||
Highlight.defaultProps = { | ||
@@ -36,0 +39,0 @@ as: 'div' |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.allTheClasses = exports.FontWeight = exports.Size = exports.Sized = exports.BackgroundColor = exports.HasText = exports.StyleOrState = exports.Screens = exports.Sizes = exports.Colors = void 0; | ||
exports.allTheClasses = exports.Responsive = exports.Helpers = exports.FontWeight = exports.Size = exports.Sized = exports.BackgroundColor = exports.HasText = exports.StyleOrState = exports.Screens = exports.Sizes = exports.Colors = void 0; | ||
@@ -244,6 +244,98 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
var Helpers = function Helpers(_ref10) { | ||
var isClearfix = _ref10.isClearfix, | ||
isPulledLeft = _ref10.isPulledLeft, | ||
isPulledRight = _ref10.isPulledRight, | ||
isMarginless = _ref10.isMarginless, | ||
isPaddingless = _ref10.isPaddingless, | ||
isOverlay = _ref10.isOverlay, | ||
isClipped = _ref10.isClipped, | ||
isRadiusless = _ref10.isRadiusless, | ||
isShadowless = _ref10.isShadowless, | ||
isUnselectable = _ref10.isUnselectable, | ||
isInvisible = _ref10.isInvisible, | ||
isHidden = _ref10.isHidden, | ||
isScreenReaderOnly = _ref10.isScreenReaderOnly, | ||
isRelative = _ref10.isRelative; | ||
return { | ||
'is-clearfix': isClearfix, | ||
'is-pulled-left': isPulledLeft, | ||
'is-pulled-right': isPulledRight, | ||
'is-marginless': isMarginless, | ||
'is-paddingless': isPaddingless, | ||
'is-overlay': isOverlay, | ||
'is-clipped': isClipped, | ||
'is-radiusless': isRadiusless, | ||
'is-shadowless': isShadowless, | ||
'is-unselectable': isUnselectable, | ||
'is-invisible': isInvisible, | ||
'is-hidden': isHidden, | ||
'is-sr-only': isScreenReaderOnly, | ||
'is-relative': isRelative | ||
}; | ||
}; | ||
exports.Helpers = Helpers; | ||
var Responsive = function Responsive(_ref11) { | ||
var isBlock = _ref11.isBlock, | ||
isBlockMobile = _ref11.isBlockMobile, | ||
isBlockDesktopOnly = _ref11.isBlockDesktopOnly, | ||
isBlockTabletOnly = _ref11.isBlockTabletOnly, | ||
isBlockWideScreenOnly = _ref11.isBlockWideScreenOnly, | ||
isFlex = _ref11.isFlex, | ||
isFlexMobile = _ref11.isFlexMobile, | ||
isFlexDesktopOnly = _ref11.isFlexDesktopOnly, | ||
isFlexTabletOnly = _ref11.isFlexTabletOnly, | ||
isFlexWideScreenOnly = _ref11.isFlexWideScreenOnly, | ||
isInline = _ref11.isInline, | ||
isInlineMobile = _ref11.isInlineMobile, | ||
isInlineDesktopOnly = _ref11.isInlineDesktopOnly, | ||
isInlineTabletOnly = _ref11.isInlineTabletOnly, | ||
isInlineWideScreenOnly = _ref11.isInlineWideScreenOnly, | ||
isInlineBlock = _ref11.isInlineBlock, | ||
isInlineBlockMobile = _ref11.isInlineBlockMobile, | ||
isInlineBlockDesktopOnly = _ref11.isInlineBlockDesktopOnly, | ||
isInlineBlockTabletOnly = _ref11.isInlineBlockTabletOnly, | ||
isInlineBlockWideScreenOnly = _ref11.isInlineBlockWideScreenOnly, | ||
isInlineFlex = _ref11.isInlineFlex, | ||
isInlineFlexMobile = _ref11.isInlineFlexMobile, | ||
isInlineFlexTabletOnly = _ref11.isInlineFlexTabletOnly, | ||
isInlineFlexDesktopOnly = _ref11.isInlineFlexDesktopOnly, | ||
isInlineFlexWideScreenOnly = _ref11.isInlineFlexWideScreenOnly; | ||
return { | ||
'is-block': isBlock, | ||
'is-block-mobile': isBlockMobile, | ||
'is-block-tablet-only': isBlockTabletOnly, | ||
'is-block-desktop-only': isBlockDesktopOnly, | ||
'is-blockis-widescreen-only': isBlockWideScreenOnly, | ||
'is-flex': isFlex, | ||
'is-flex-mobile': isFlexMobile, | ||
'is-flex-tablet-only': isFlexTabletOnly, | ||
'is-flex-desktop-only': isFlexDesktopOnly, | ||
'is-flex-widescreen-only': isFlexWideScreenOnly, | ||
'is-inline': isInline, | ||
'is-inline-mobile': isInlineMobile, | ||
'is-inline-tablet-only': isInlineTabletOnly, | ||
'is-inline-desktop-only': isInlineDesktopOnly, | ||
'is-inline-widescreen-only': isInlineWideScreenOnly, | ||
'is-inline-block': isInlineBlock, | ||
'is-inline-block-mobile': isInlineBlockMobile, | ||
'is-inline-block-tablet-only': isInlineBlockTabletOnly, | ||
'is-inline-block-desktop-only': isInlineBlockDesktopOnly, | ||
'is-inline-block-widescreen-only': isInlineBlockWideScreenOnly, | ||
'is-inline-flex': isInlineFlex, | ||
'is-inline-flex-mobile': isInlineFlexMobile, | ||
'is-inline-flex-tablet-only': isInlineFlexTabletOnly, | ||
'is-inline-flex-desktop-only': isInlineFlexDesktopOnly, | ||
'is-inline-flex-widescreen-only': isInlineFlexWideScreenOnly | ||
}; | ||
}; | ||
exports.Responsive = Responsive; | ||
var allTheClasses = function allTheClasses(props) { | ||
return _objectSpread({}, Sized(props), {}, BackgroundColor(props), {}, Colors(props), {}, HasText(props), {}, StyleOrState(props), {}, Screens(props), {}, Sizes(props), {}, Colors(props), {}, Size(props), {}, FontWeight(props)); | ||
return _objectSpread({}, Sized(props), {}, BackgroundColor(props), {}, Colors(props), {}, HasText(props), {}, StyleOrState(props), {}, Screens(props), {}, Sizes(props), {}, Colors(props), {}, Size(props), {}, FontWeight(props), {}, Helpers(props), {}, Responsive(props)); | ||
}; | ||
exports.allTheClasses = allTheClasses; |
@@ -16,2 +16,4 @@ "use strict"; | ||
var _propTypes = require("../utils/prop-types"); | ||
var _modal = require("../modal"); | ||
@@ -239,2 +241,3 @@ | ||
exports.Notice = Notice; | ||
Notice.propTypes = _propTypes.propTypes; | ||
Notice.defaultProps = { | ||
@@ -241,0 +244,0 @@ actionText: 'OK', |
@@ -14,2 +14,4 @@ "use strict"; | ||
var _propTypes = require("../utils/prop-types"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -34,2 +36,3 @@ | ||
exports.Number = Number; | ||
Number.propTypes = _propTypes.propTypes; | ||
Number.defaultProps = { | ||
@@ -36,0 +39,0 @@ as: 'div' |
@@ -16,2 +16,4 @@ "use strict"; | ||
var _propTypes2 = require("../utils/prop-types"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -86,2 +88,3 @@ | ||
exports.Panel = Panel; | ||
exports.Panel = Panel; | ||
Panel.propTypes = _propTypes2.propTypes; |
{ | ||
"name": "@brightleaf/elements", | ||
"version": "1.6.1", | ||
"version": "1.7.0", | ||
"description": "React UI elements styled with Bulma CSS", | ||
@@ -74,2 +74,3 @@ "main": "lib/index.js", | ||
"jest": "^24.9.0", | ||
"jest-junit": "^10.0.0", | ||
"mini-css-extract-plugin": "^0.8.0", | ||
@@ -87,3 +88,13 @@ "react": "^16.10.2", | ||
"webpack-dev-server": "^3.8.2" | ||
}, | ||
"jest-junit": { | ||
"suiteName": "jest tests", | ||
"outputDirectory": "./reports", | ||
"outputName": "junit.xml", | ||
"uniqueOutputName": "false", | ||
"classNameTemplate": "{classname}-{title}", | ||
"titleTemplate": "{classname}-{title}", | ||
"ancestorSeparator": " › ", | ||
"usePathForSuiteName": "true" | ||
} | ||
} |
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
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
370448
141
7993
36