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

@brightleaf/elements

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brightleaf/elements - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

lib/control/control.js

24

lib/hero/hero.js

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

});
exports.Hero = exports.HeroFooter = exports.HeroBody = exports.HeroHead = void 0;
exports.Hero = exports.HeroContext = exports.HeroFooter = exports.HeroBody = exports.HeroHead = void 0;
var _react = _interopRequireDefault(require("react"));
var _react = _interopRequireWildcard(require("react"));

@@ -17,2 +17,4 @@ var _classnames = _interopRequireDefault(require("classnames"));

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
var HeroHead = function HeroHead(_ref) {

@@ -44,2 +46,4 @@ var children = _ref.children;

exports.HeroFooter = HeroFooter;
var HeroContext = (0, _react.createContext)();
exports.HeroContext = HeroContext;

@@ -80,3 +84,7 @@ var Hero = function Hero(_ref4) {

if (!Array.isArray(children)) {
return _react.default.createElement("section", {
return _react.default.createElement(HeroContext.Provider, {
value: {
isInHero: true
}
}, _react.default.createElement("section", {
className: (0, _classnames.default)('hero', classes, sizeClasses, screenSizes, {

@@ -87,10 +95,14 @@ 'is-bold': isBold

className: "hero-body"
}, children));
}, children)));
}
return _react.default.createElement("section", {
return _react.default.createElement(HeroContext.Provider, {
value: {
isInHero: true
}
}, _react.default.createElement("section", {
className: (0, _classnames.default)('hero', classes, sizeClasses)
}, children);
}, children));
};
exports.Hero = Hero;

@@ -30,3 +30,9 @@ "use strict";

});
Object.defineProperty(exports, "HeroContext", {
enumerable: true,
get: function get() {
return _hero.HeroContext;
}
});
var _hero = require("./hero");

@@ -96,2 +96,8 @@ "use strict";

});
Object.defineProperty(exports, "Control", {
enumerable: true,
get: function get() {
return _control.Control;
}
});
Object.defineProperty(exports, "Delete", {

@@ -109,2 +115,8 @@ enumerable: true,

});
Object.defineProperty(exports, "Field", {
enumerable: true,
get: function get() {
return _field.Field;
}
});
Object.defineProperty(exports, "Footer", {

@@ -254,2 +266,26 @@ enumerable: true,

});
Object.defineProperty(exports, "SubTitle", {
enumerable: true,
get: function get() {
return _subtitle.SubTitle;
}
});
Object.defineProperty(exports, "Tag", {
enumerable: true,
get: function get() {
return _tag.Tag;
}
});
Object.defineProperty(exports, "Tags", {
enumerable: true,
get: function get() {
return _tag.Tags;
}
});
Object.defineProperty(exports, "Title", {
enumerable: true,
get: function get() {
return _title.Title;
}
});

@@ -270,2 +306,4 @@ var _autocomplete = require("./autocomplete");

var _control = require("./control");
var _delete = require("./delete");

@@ -275,2 +313,4 @@

var _field = require("./field");
var _footer = require("./footer");

@@ -290,2 +330,8 @@

var _section = require("./section");
var _section = require("./section");
var _subtitle = require("./subtitle");
var _tag = require("./tag");
var _title = require("./title");
{
"name": "@brightleaf/elements",
"version": "0.2.0",
"version": "0.3.0",
"description": "UI elements",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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