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

beema

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

beema - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

485

dist/index.js

@@ -1,290 +0,343 @@

'use strict';
// modules are defined as an array
// [ module function, map of requires ]
//
// map of requires is short require name -> numeric require
//
// anything defined in a previous bundle is accessed via the
// orig method which is the require for previous bundles
Object.defineProperty(exports, '__esModule', { value: true });
// eslint-disable-next-line no-global-assign
parcelRequire = (function (modules, cache, entry, globalName) {
// Save the require from previous bundle to this closure if any
var previousRequire = typeof parcelRequire === 'function' && parcelRequire;
var nodeRequire = typeof require === 'function' && require;
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
function newRequire(name, jumped) {
if (!cache[name]) {
if (!modules[name]) {
// if we cannot find the module within our internal map or
// cache jump to the current global require ie. the last bundle
// that was added to the page.
var currentRequire = typeof parcelRequire === 'function' && parcelRequire;
if (!jumped && currentRequire) {
return currentRequire(name, true);
}
var styled = _interopDefault(require('styled-components'));
var React = _interopDefault(require('react'));
// If there are other bundles on this page the require from the
// previous one is saved to 'previousRequire'. Repeat this as
// many times as there are bundles until the module is found or
// we exhaust the require chain.
if (previousRequire) {
return previousRequire(name, true);
}
var Avatar = styled.div.withConfig({ displayName: "avatar__Avatar", componentId: "lmiaq0-0" })(["display:flex;flex-wrap:wrap;margin:0;padding:0;list-style:none;align-items:center;"]);
// Try the node require function if it exists.
if (nodeRequire && typeof name === 'string') {
return nodeRequire(name);
}
var err = new Error('Cannot find module \'' + name + '\'');
err.code = 'MODULE_NOT_FOUND';
throw err;
}
localRequire.resolve = resolve;
localRequire.cache = {};
var module = cache[name] = new newRequire.Module(name);
modules[name][0].call(module.exports, localRequire, module, module.exports, this);
}
return cache[name].exports;
function localRequire(x){
return newRequire(localRequire.resolve(x));
}
function resolve(x){
return modules[name][1][x] || x;
}
}
var AvatarImage = styled.img.withConfig({ displayName: "avatar__AvatarImage", componentId: "lmiaq0-1" })(["padding-right:30px;height:80px;width:80px;"]);
function Module(moduleName) {
this.id = moduleName;
this.bundle = newRequire;
this.exports = {};
}
newRequire.isParcelRequire = true;
newRequire.Module = Module;
newRequire.modules = modules;
newRequire.cache = cache;
newRequire.parent = previousRequire;
newRequire.register = function (id, exports) {
modules[id] = [function (require, module) {
module.exports = exports;
}, {}];
};
for (var i = 0; i < entry.length; i++) {
newRequire(entry[i]);
}
if (entry.length) {
// Expose entry point to Node, AMD or browser globals
// Based on https://github.com/ForbesLindesay/umd/blob/master/template.js
var mainExports = newRequire(entry[entry.length - 1]);
// CommonJS
if (typeof exports === "object" && typeof module !== "undefined") {
module.exports = mainExports;
var AvatarHeading = styled.div.withConfig({ displayName: "avatar__AvatarHeading", componentId: "lmiaq0-2" })(["flex:1;"]);
// RequireJS
} else if (typeof define === "function" && define.amd) {
define(function () {
return mainExports;
});
var Button = styled.button.withConfig({ displayName: "button__Button", componentId: "wkokv4-0" })(["margin:0;border:none;overflow:visible;font:inherit;color:inherit;text-transform:none;display:inline-block;box-sizing:border-box;padding:0 30px;vertical-align:middle;font-size:14px;line-height:38px;text-align:center;text-decoration:none;text-transform:uppercase;transition:0.1s ease-in-out;transition-property:color,background-color,border-color;background-color:transparent;color:#222;border:1px solid #e5e5e5;:not(:disabled){cursor:pointer;}:active,:hover,:focus{background-color:transparent;color:#222;border-color:#b2b2b2;}:active{border-color:#999;}:hover{text-decoration:none;}:focus{outline:none;}"]);
var Badge = styled.span.withConfig({ displayName: "badge__Badge", componentId: "sc-63swuu-0" })(["box-sizing:border-box;min-width:22px;height:22px;padding:0 5px;border-radius:500px;vertical-align:middle;background:#1e87f0;color:#fff;font-size:14px;display:inline-flex;justify-content:center;align-items:center;"]);
var Card = styled.div.withConfig({ displayName: "card__Card", componentId: "qxuu6z-0" })(["position:relative;box-sizing:border-box;transition:box-shadow 0.1s ease-in-out;background:#fff;color:#666;box-shadow:0 5px 15px rgba(0,0,0,0.08);", ""],
function (_ref) {var hover = _ref.hover;return (
hover ? "\n :hover {\n background: #fff;\n box-shadow: 0 14px 25px rgba(0,0,0,0.16);\n }\n " : "");});
var CardBody = styled.div.withConfig({ displayName: "card__CardBody", componentId: "qxuu6z-1" })(["padding:30px 30px;::before,::after{content:'';display:table;}::after{clear:both;}:last-child{margin-bottom:0;}@media (min-width:1200px){padding:40px 40px;}"]);
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];
}
}
// <script>
} else if (globalName) {
this[globalName] = mainExports;
}
}
return target;
};
// Override the current require with this new one
return newRequire;
})({"node_modules/parcel/src/builtins/bundle-url.js":[function(require,module,exports) {
var bundleURL = null;
return _extends.apply(this, arguments);
}
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];
function getBundleURLCached() {
if (!bundleURL) {
bundleURL = getBundleURL();
}
return target;
return bundleURL;
}
function _objectWithoutProperties(source, excluded) {
if (source == null) return {};
function getBundleURL() {
// Attempt to find the URL of the current script and use that as the base URL
try {
throw new Error();
} catch (err) {
var matches = ('' + err.stack).match(/(https?|file|ftp):\/\/[^)\n]+/g);
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];
if (matches) {
return getBaseURL(matches[0]);
}
}
return target;
return '/';
}
var DotNav = styled.ul.withConfig({ displayName: "dotnav__DotNav", componentId: "pzmwt7-0" })(["display:flex;flex-wrap:wrap;margin:0;padding:0;list-style:none;"]);
function getBaseURL(url) {
return ('' + url).replace(/^((?:https?|file|ftp):\/\/.+)\/[^/]+$/, '$1') + '/';
}
exports.getBundleURL = getBundleURLCached;
exports.getBaseURL = getBaseURL;
},{}],"node_modules/parcel/src/builtins/css-loader.js":[function(require,module,exports) {
var bundle = require('./bundle-url');
function updateLink(link) {
var newLink = link.cloneNode();
newLink.onload = function () {
link.remove();
};
newLink.href = link.href.split('?')[0] + '?' + Date.now();
link.parentNode.insertBefore(newLink, link.nextSibling);
}
var cssTimeout = null;
function reloadCSS() {
if (cssTimeout) {
return;
}
var DotNavItemContainer = styled.li.withConfig({ displayName: "dotnav__DotNavItemContainer", componentId: "pzmwt7-1" })(["flex:none;padding-left:12px;"]);
cssTimeout = setTimeout(function () {
var links = document.querySelectorAll('link[rel="stylesheet"]');
for (var i = 0; i < links.length; i++) {
if (bundle.getBaseURL(links[i].href) === bundle.getBundleURL()) {
updateLink(links[i]);
}
}
cssTimeout = null;
}, 50);
}
module.exports = reloadCSS;
},{"./bundle-url":"node_modules/parcel/src/builtins/bundle-url.js"}],"node_modules/parcel/src/builtins/hmr-runtime.js":[function(require,module,exports) {
var global = arguments[3];
var OVERLAY_ID = '__parcel__error__overlay__';
var OldModule = module.bundle.Module;
var DotNavAnchor = styled.a.withConfig({ displayName: "dotnav__DotNavAnchor", componentId: "pzmwt7-2" })(["display:block;box-sizing:border-box;width:10px;height:10px;border-radius:50%;background:transparent;text-indent:100%;overflow:hidden;white-space:nowrap;border:1px solid rgba(102,102,102,0.4);transition:0.2s ease-in-out;transition-property:background-color,border-color;", ":hover,:focus{background-color:rgba(102,102,102,0.6);outline:none;border-color:transparent;}:active{background-color:rgba(102,102,102,0.2);border-color:transparent;}"],
function Module(moduleName) {
OldModule.call(this, moduleName);
this.hot = {
data: module.bundle.hotData,
_acceptCallbacks: [],
_disposeCallbacks: [],
accept: function (fn) {
this._acceptCallbacks.push(fn || function () {});
},
dispose: function (fn) {
this._disposeCallbacks.push(fn);
}
};
module.bundle.hotData = null;
}
module.bundle.Module = Module;
var parent = module.bundle.parent;
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
var hostname = "" || location.hostname;
var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
var ws = new WebSocket(protocol + '://' + hostname + ':' + "58927" + '/');
ws.onmessage = function (event) {
var data = JSON.parse(event.data);
if (data.type === 'update') {
console.clear();
data.assets.forEach(function (asset) {
hmrApply(global.parcelRequire, asset);
});
data.assets.forEach(function (asset) {
if (!asset.isNew) {
hmrAccept(global.parcelRequire, asset.id);
}
});
}
if (data.type === 'reload') {
ws.close();
ws.onclose = function () {
location.reload();
};
}
if (data.type === 'error-resolved') {
console.log('[parcel] ✨ Error resolved');
removeErrorOverlay();
}
if (data.type === 'error') {
console.error('[parcel] 🚨 ' + data.error.message + '\n' + data.error.stack);
removeErrorOverlay();
var overlay = createErrorOverlay(data);
document.body.appendChild(overlay);
}
};
}
function removeErrorOverlay() {
var overlay = document.getElementById(OVERLAY_ID);
if (overlay) {
overlay.remove();
}
}
function createErrorOverlay(data) {
var overlay = document.createElement('div');
overlay.id = OVERLAY_ID; // html encode message and stack trace
var message = document.createElement('div');
var stackTrace = document.createElement('pre');
message.innerText = data.error.message;
stackTrace.innerText = data.error.stack;
overlay.innerHTML = '<div style="background: black; font-size: 16px; color: white; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; padding: 30px; opacity: 0.85; font-family: Menlo, Consolas, monospace; z-index: 9999;">' + '<span style="background: red; padding: 2px 4px; border-radius: 2px;">ERROR</span>' + '<span style="top: 2px; margin-left: 5px; position: relative;">🚨</span>' + '<div style="font-size: 18px; font-weight: bold; margin-top: 20px;">' + message.innerHTML + '</div>' + '<pre>' + stackTrace.innerHTML + '</pre>' + '</div>';
return overlay;
}
function (_ref) {var active = _ref.active;return (
active && "\n background-color: rgba(102,102,102,0.6);\n border-color: transparent;\n ");});
function getParents(bundle, id) {
var modules = bundle.modules;
if (!modules) {
return [];
}
var parents = [];
var k, d, dep;
for (k in modules) {
for (d in modules[k][1]) {
dep = modules[k][1][d];
if (dep === id || Array.isArray(dep) && dep[dep.length - 1] === id) {
parents.push(k);
}
}
}
if (bundle.parent) {
parents = parents.concat(getParents(bundle.parent, id));
}
return parents;
}
function hmrApply(bundle, asset) {
var modules = bundle.modules;
if (!modules) {
return;
}
if (modules[asset.id] || !bundle.parent) {
var fn = new Function('require', 'module', 'exports', asset.generated.js);
asset.isNew = !modules[asset.id];
modules[asset.id] = [fn, asset.deps];
} else if (bundle.parent) {
hmrApply(bundle.parent, asset);
}
}
function hmrAccept(bundle, id) {
var modules = bundle.modules;
if (!modules) {
return;
}
if (!modules[id] && bundle.parent) {
return hmrAccept(bundle.parent, id);
}
var cached = bundle.cache[id];
bundle.hotData = {};
if (cached) {
cached.hot.data = bundle.hotData;
}
if (cached && cached.hot && cached.hot._disposeCallbacks.length) {
cached.hot._disposeCallbacks.forEach(function (cb) {
cb(bundle.hotData);
});
}
delete bundle.cache[id];
bundle(id);
cached = bundle.cache[id];
var DotNavItem = function DotNavItem(_ref2) {var children = _ref2.children,props = _objectWithoutProperties(_ref2, ["children"]);return (
React.createElement(DotNavItemContainer, null,
React.createElement(DotNavAnchor, props, children)));};
if (cached && cached.hot && cached.hot._acceptCallbacks.length) {
cached.hot._acceptCallbacks.forEach(function (cb) {
cb();
});
var Divider = styled.hr.withConfig({ displayName: "divider__Divider", componentId: "sc-16po2iz-0" })(["border:none;position:relative;height:20px;background-image:url('data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%3Ccircle%20fill%3D%22none%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%222%22%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%227%22%20%2F%3E%0A%3C%2Fsvg%3E%0A');background-repeat:no-repeat;background-position:50% 50%;::before{right:calc(50% + (50px / 2));width:100%;}::after{left:calc(50% + (50px / 2));width:100%;}::before,::after{content:'';position:absolute;top:50%;max-width:calc(50% - (50px / 2));border-bottom:1px solid #e5e5e5;}"]);
return true;
}
var Input = styled.input.withConfig({ displayName: "input__Input", componentId: "gp8sa-0" })(["height:40px;vertical-align:middle;display:inline-block;box-sizing:border-box;margin:0;border-radius:0;font:inherit;overflow:visible;max-width:100%;width:100%;padding:0 10px;background:#fff;color:#666;border:1px solid #e5e5e5;transition:0.2s ease-in-out;transition-property:color,background-color,border;-webkit-appearance:none;[type='search']::-webkit-search-cancel-button,[type='search']::-webkit-search-decoration{-webkit-appearance:none;}[type='number']::-webkit-inner-spin-button,[type='number']::-webkit-outer-spin-button{height:auto;}::placeholder,::-moz-placeholder{opacity:1;color:#999;}:focus{outline:none;background-color:#fff;color:#666;border-color:#1e87f0;}:disabled{background-color:#f8f8f8;color:#999;border-color:#e5e5e5;}"]);
var Input$1 = styled.input.withConfig({ displayName: "checkbox__Input", componentId: "k04vlu-0" })(["display:inline-block;height:16px;width:16px;overflow:hidden;margin-top:-4px;vertical-align:middle;-webkit-appearance:none;-moz-appearance:none;background-color:transparent;background-repeat:no-repeat;background-position:50% 50%;border:1px solid #ccc;transition:0.2s ease-in-out;transition-property:background-color,border;box-sizing:border-box;margin:0;border-radius:0;font:inherit;:not(:disabled){cursor:pointer;}:focus{outline:none;border-color:#1e87f0;}:checked,:indeterminate{background-image:url('data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2214%22%20height%3D%2211%22%20viewBox%3D%220%200%2014%2011%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%3Cpolygon%20fill%3D%22%23fff%22%20points%3D%2212%201%205%207.5%202%205%201%205.5%205%2010%2013%201.5%22%20%2F%3E%0A%3C%2Fsvg%3E%0A');}:checked:focus,:indeterminate:focus{background-color:#0e6dcd;}:disabled{background-color:#f8f8f8;border-color:#e5e5e5;}:disabled:checked,:disabled:indeterminate{background-image:url('data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2214%22%20height%3D%2211%22%20viewBox%3D%220%200%2014%2011%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%3Cpolygon%20fill%3D%22%23999%22%20points%3D%2212%201%205%207.5%202%205%201%205.5%205%2010%2013%201.5%22%20%2F%3E%0A%3C%2Fsvg%3E%0A');}"]);
var Checkbox = function Checkbox(props) {return React.createElement(Input$1, _extends({}, props, { type: "checkbox" }));};
var Input$2 = styled.input.withConfig({ displayName: "radiobutton__Input", componentId: "sc-1tdcva5-0" })(["display:inline-block;height:16px;width:16px;overflow:hidden;margin-top:-4px;vertical-align:middle;-webkit-appearance:none;-moz-appearance:none;background-color:transparent;background-repeat:no-repeat;background-position:50% 50%;border:1px solid #ccc;transition:0.2s ease-in-out;transition-property:background-color,border;box-sizing:border-box;margin:0;border-radius:0;font:inherit;border-radius:50%;:not(:disabled){cursor:pointer;}:focus{outline:none;border-color:#1e87f0;}:checked{background-image:url('data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%3Ccircle%20fill%3D%22%23fff%22%20cx%3D%228%22%20cy%3D%228%22%20r%3D%222%22%20%2F%3E%0A%3C%2Fsvg%3E');}:checked{background-color:#1e87f0;border-color:transparent;}:checked:focus,:indeterminate:focus{background-color:#0e6dcd;}:disabled{background-color:#f8f8f8;border-color:#e5e5e5;}:disabled:checked,:disabled:indeterminate{background-image:url('data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%3Ccircle%20fill%3D%22%23999%22%20cx%3D%228%22%20cy%3D%228%22%20r%3D%222%22%20%2F%3E%0A%3C%2Fsvg%3E');}"]);
var RadioButton = function RadioButton(props) {return React.createElement(Input$2, _extends({}, props, { type: "radio" }));};
var Textarea = styled.textarea.withConfig({ displayName: "textarea__Textarea", componentId: "rzb81y-0" })(["padding-top:4px;padding-bottom:4px;vertical-align:top;max-width:100%;width:100%;border:0 none;padding:0 10px;background:#fff;color:#666;border:1px solid #e5e5e5;transition:0.2s ease-in-out;transition-property:color,background-color,border;-webkit-appearance:none;overflow:auto;box-sizing:border-box;margin:0;border-radius:0;font:inherit;:focus{outline:none;background-color:#fff;color:#666;border-color:#1e87f0;}:disabled{background-color:#f8f8f8;color:#999;border-color:#e5e5e5;}::placeholder,::-moz-placeholder{opacity:1;color:#999;}"]);
var Select = styled.select.withConfig({ displayName: "select__Select", componentId: "t0ya6-0" })(["max-width:100%;width:100%;border:0 none;padding:0 10px;background:#fff;color:#666;border:1px solid #e5e5e5;transition:0.2s ease-in-out;transition-property:color,background-color,border;text-transform:none;box-sizing:border-box;margin:0;border-radius:0;font:inherit;:not([multiple]):not([size]){-webkit-appearance:none;-moz-appearance:none;padding-right:20px;background-image:url('data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2224%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2016%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%3Cpolygon%20fill%3D%22%23666%22%20points%3D%2212%201%209%206%2015%206%22%20%2F%3E%0A%20%20%20%20%3Cpolygon%20fill%3D%22%23666%22%20points%3D%2212%2013%209%208%2015%208%22%20%2F%3E%0A%3C%2Fsvg%3E%0A');background-repeat:no-repeat;background-position:100% 50%;height:40px;vertical-align:middle;display:inline-block;}:not([multiple]):not([size])::-ms-expand{display:none;}:focus{outline:none;background-color:#fff;color:#666;border-color:#1e87f0;}:not([multiple]):not([size]):disabled{background-image:url('data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2224%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2016%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%3Cpolygon%20fill%3D%22%23999%22%20points%3D%2212%201%209%206%2015%206%22%20%2F%3E%0A%20%20%20%20%3Cpolygon%20fill%3D%22%23999%22%20points%3D%2212%2013%209%208%2015%208%22%20%2F%3E%0A%3C%2Fsvg%3E%0A');}:disabled{background-color:#f8f8f8;color:#999;border-color:#e5e5e5;}"]);
exports.Avatar = Avatar;
exports.AvatarHeading = AvatarHeading;
exports.AvatarImage = AvatarImage;
exports.Button = Button;
exports.Badge = Badge;
exports.Card = Card;
exports.CardBody = CardBody;
exports.DotNav = DotNav;
exports.DotNavItem = DotNavItem;
exports.Divider = Divider;
exports.Input = Input;
exports.Checkbox = Checkbox;
exports.RadioButton = RadioButton;
exports.Textarea = Textarea;
exports.Select = Select;
return getParents(global.parcelRequire, id).some(function (id) {
return hmrAccept(global.parcelRequire, id);
});
}
},{}]},{},["node_modules/parcel/src/builtins/hmr-runtime.js"], null)
{
"name": "beema",
"version": "0.1.1",
"version": "0.2.0",
"description": "UI library of styled react components. No Grid, Just components.",

@@ -53,4 +53,5 @@ "main": "dist/index.js",

"react": "16.8.3",
"styled-components": "4.1.3"
"styled-components": "4.1.3",
"styled-system": "^4.1.0"
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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