@theme-ui/preset-bootstrap
Advanced tools
Comparing version 0.3.2-alpha.10 to 0.3.4
@@ -1,19 +0,50 @@ | ||
function _extends() { | ||
_extends = Object.assign || function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
function _defineProperty(obj, key, value) { | ||
if (key in obj) { | ||
Object.defineProperty(obj, key, { | ||
value: value, | ||
enumerable: true, | ||
configurable: true, | ||
writable: true | ||
}); | ||
} else { | ||
obj[key] = value; | ||
} | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
} | ||
return obj; | ||
} | ||
return target; | ||
}; | ||
function ownKeys(object, enumerableOnly) { | ||
var keys = Object.keys(object); | ||
return _extends.apply(this, arguments); | ||
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; | ||
} | ||
function _objectSpread2(target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
if (i % 2) { | ||
ownKeys(Object(source), true).forEach(function (key) { | ||
_defineProperty(target, key, source[key]); | ||
}); | ||
} else if (Object.getOwnPropertyDescriptors) { | ||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); | ||
} else { | ||
ownKeys(Object(source)).forEach(function (key) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
}); | ||
} | ||
} | ||
return target; | ||
} | ||
var baseColors = { | ||
@@ -36,3 +67,3 @@ white: '#fff', | ||
}; | ||
var colors = _extends({}, baseColors, { | ||
var colors = _objectSpread2({}, baseColors, { | ||
grayDark: baseColors.gray[8], | ||
@@ -128,18 +159,18 @@ text: baseColors.gray[9], | ||
}, | ||
h1: _extends({}, heading, { | ||
h1: _objectSpread2({}, heading, { | ||
fontSize: 7 | ||
}), | ||
h2: _extends({}, heading, { | ||
h2: _objectSpread2({}, heading, { | ||
fontSize: 6 | ||
}), | ||
h3: _extends({}, heading, { | ||
h3: _objectSpread2({}, heading, { | ||
fontSize: 5 | ||
}), | ||
h4: _extends({}, heading, { | ||
h4: _objectSpread2({}, heading, { | ||
fontSize: 4 | ||
}), | ||
h5: _extends({}, heading, { | ||
h5: _objectSpread2({}, heading, { | ||
fontSize: 3 | ||
}), | ||
h6: _extends({}, heading, { | ||
h6: _objectSpread2({}, heading, { | ||
fontSize: 2 | ||
@@ -200,3 +231,3 @@ }), | ||
export default bootstrap; | ||
export { baseColors, bootstrap, breakpoints, colors, fontSizes, fontWeights, fonts, lineHeights, radii, shadows, sizes, space, styles }; | ||
export { baseColors, colors, space, breakpoints, fonts, fontWeights, fontSizes, lineHeights, sizes, radii, shadows, styles, bootstrap }; | ||
//# sourceMappingURL=index.esm.js.map |
@@ -1,19 +0,50 @@ | ||
function _extends() { | ||
_extends = Object.assign || function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
function _defineProperty(obj, key, value) { | ||
if (key in obj) { | ||
Object.defineProperty(obj, key, { | ||
value: value, | ||
enumerable: true, | ||
configurable: true, | ||
writable: true | ||
}); | ||
} else { | ||
obj[key] = value; | ||
} | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
} | ||
return obj; | ||
} | ||
return target; | ||
}; | ||
function ownKeys(object, enumerableOnly) { | ||
var keys = Object.keys(object); | ||
return _extends.apply(this, arguments); | ||
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; | ||
} | ||
function _objectSpread2(target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
if (i % 2) { | ||
ownKeys(Object(source), true).forEach(function (key) { | ||
_defineProperty(target, key, source[key]); | ||
}); | ||
} else if (Object.getOwnPropertyDescriptors) { | ||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); | ||
} else { | ||
ownKeys(Object(source)).forEach(function (key) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
}); | ||
} | ||
} | ||
return target; | ||
} | ||
var baseColors = { | ||
@@ -36,3 +67,3 @@ white: '#fff', | ||
}; | ||
var colors = _extends({}, baseColors, { | ||
var colors = _objectSpread2({}, baseColors, { | ||
grayDark: baseColors.gray[8], | ||
@@ -128,18 +159,18 @@ text: baseColors.gray[9], | ||
}, | ||
h1: _extends({}, heading, { | ||
h1: _objectSpread2({}, heading, { | ||
fontSize: 7 | ||
}), | ||
h2: _extends({}, heading, { | ||
h2: _objectSpread2({}, heading, { | ||
fontSize: 6 | ||
}), | ||
h3: _extends({}, heading, { | ||
h3: _objectSpread2({}, heading, { | ||
fontSize: 5 | ||
}), | ||
h4: _extends({}, heading, { | ||
h4: _objectSpread2({}, heading, { | ||
fontSize: 4 | ||
}), | ||
h5: _extends({}, heading, { | ||
h5: _objectSpread2({}, heading, { | ||
fontSize: 3 | ||
}), | ||
h6: _extends({}, heading, { | ||
h6: _objectSpread2({}, heading, { | ||
fontSize: 2 | ||
@@ -200,15 +231,15 @@ }), | ||
exports.baseColors = baseColors; | ||
exports.bootstrap = bootstrap; | ||
exports.colors = colors; | ||
exports.space = space; | ||
exports.breakpoints = breakpoints; | ||
exports.colors = colors; | ||
exports.default = bootstrap; | ||
exports.fonts = fonts; | ||
exports.fontWeights = fontWeights; | ||
exports.fontSizes = fontSizes; | ||
exports.fontWeights = fontWeights; | ||
exports.fonts = fonts; | ||
exports.lineHeights = lineHeights; | ||
exports.sizes = sizes; | ||
exports.radii = radii; | ||
exports.shadows = shadows; | ||
exports.sizes = sizes; | ||
exports.space = space; | ||
exports.styles = styles; | ||
exports.bootstrap = bootstrap; | ||
exports.default = bootstrap; | ||
//# sourceMappingURL=index.js.map |
@@ -22,4 +22,3 @@ function _extends() { | ||
black: '#000', | ||
gray: ['#fff', // 0 index | ||
'#f8f9fa', '#e9ecef', '#dee2e6', '#ced4da', '#adb5bd', '#6c757d', '#495057', '#343a40', '#212529'], | ||
gray: ['#fff', '#f8f9fa', '#e9ecef', '#dee2e6', '#ced4da', '#adb5bd', '#6c757d', '#495057', '#343a40', '#212529'], | ||
blue: '#007bff', | ||
@@ -34,4 +33,3 @@ indigo: '#6610f2', | ||
teal: '#20c997', | ||
cyan: '#17a2b8' // gray: gray[6], | ||
cyan: '#17a2b8' | ||
}; | ||
@@ -58,3 +56,5 @@ const colors = _extends({}, baseColors, { | ||
heading: 'inherit', | ||
monospace: 'SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace' | ||
monospace: 'SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace', | ||
// NOTE(@mxstbr): TypeScript does not let us do the self-references below if we don't provide "default" values | ||
sans: '' | ||
}; | ||
@@ -66,8 +66,10 @@ fonts.sans = fonts.body; | ||
bold: 700, | ||
light: 300 | ||
light: 300, | ||
// NOTE(@mxstbr): TypeScript does not let us do the self-references below if we don't provide "default" values | ||
normal: 0, | ||
display: 0 | ||
}; | ||
fontWeights.normal = fontWeights.body; | ||
fontWeights.display = fontWeights.light; | ||
const fontSizes = ['0.75rem', // '80%', | ||
'0.875rem', '1rem', '1.25rem', '1.5rem', '1.75rem', '2rem', '2.5rem', '3.5rem', '4.5rem', '5.5rem', '6rem']; | ||
const fontSizes = ['0.75rem', '0.875rem', '1rem', '1.25rem', '1.5rem', '1.75rem', '2rem', '2.5rem', '3.5rem', '4.5rem', '5.5rem', '6rem']; | ||
fontSizes.lead = fontSizes[3]; | ||
@@ -74,0 +76,0 @@ const lineHeights = { |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | ||
typeof define === 'function' && define.amd ? define(['exports'], factory) : | ||
(global = global || self, factory(global.presetBootstrap = {})); | ||
(factory((global.presetBootstrap = {}))); | ||
}(this, (function (exports) { | ||
function _extends() { | ||
_extends = Object.assign || function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
function _defineProperty(obj, key, value) { | ||
if (key in obj) { | ||
Object.defineProperty(obj, key, { | ||
value: value, | ||
enumerable: true, | ||
configurable: true, | ||
writable: true | ||
}); | ||
} else { | ||
obj[key] = value; | ||
} | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
} | ||
return obj; | ||
} | ||
return target; | ||
}; | ||
function ownKeys(object, enumerableOnly) { | ||
var keys = Object.keys(object); | ||
return _extends.apply(this, arguments); | ||
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; | ||
} | ||
function _objectSpread2(target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
if (i % 2) { | ||
ownKeys(Object(source), true).forEach(function (key) { | ||
_defineProperty(target, key, source[key]); | ||
}); | ||
} else if (Object.getOwnPropertyDescriptors) { | ||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); | ||
} else { | ||
ownKeys(Object(source)).forEach(function (key) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
}); | ||
} | ||
} | ||
return target; | ||
} | ||
var baseColors = { | ||
@@ -41,3 +72,3 @@ white: '#fff', | ||
}; | ||
var colors = _extends({}, baseColors, { | ||
var colors = _objectSpread2({}, baseColors, { | ||
grayDark: baseColors.gray[8], | ||
@@ -133,18 +164,18 @@ text: baseColors.gray[9], | ||
}, | ||
h1: _extends({}, heading, { | ||
h1: _objectSpread2({}, heading, { | ||
fontSize: 7 | ||
}), | ||
h2: _extends({}, heading, { | ||
h2: _objectSpread2({}, heading, { | ||
fontSize: 6 | ||
}), | ||
h3: _extends({}, heading, { | ||
h3: _objectSpread2({}, heading, { | ||
fontSize: 5 | ||
}), | ||
h4: _extends({}, heading, { | ||
h4: _objectSpread2({}, heading, { | ||
fontSize: 4 | ||
}), | ||
h5: _extends({}, heading, { | ||
h5: _objectSpread2({}, heading, { | ||
fontSize: 3 | ||
}), | ||
h6: _extends({}, heading, { | ||
h6: _objectSpread2({}, heading, { | ||
fontSize: 2 | ||
@@ -205,17 +236,17 @@ }), | ||
exports.baseColors = baseColors; | ||
exports.bootstrap = bootstrap; | ||
exports.colors = colors; | ||
exports.space = space; | ||
exports.breakpoints = breakpoints; | ||
exports.colors = colors; | ||
exports.default = bootstrap; | ||
exports.fonts = fonts; | ||
exports.fontWeights = fontWeights; | ||
exports.fontSizes = fontSizes; | ||
exports.fontWeights = fontWeights; | ||
exports.fonts = fonts; | ||
exports.lineHeights = lineHeights; | ||
exports.sizes = sizes; | ||
exports.radii = radii; | ||
exports.shadows = shadows; | ||
exports.sizes = sizes; | ||
exports.space = space; | ||
exports.styles = styles; | ||
exports.bootstrap = bootstrap; | ||
exports.default = bootstrap; | ||
}))); | ||
//# sourceMappingURL=index.umd.js.map |
{ | ||
"name": "@theme-ui/preset-bootstrap", | ||
"version": "0.3.2-alpha.10+80ad9af6", | ||
"version": "0.3.4", | ||
"main": "dist/index.js", | ||
@@ -15,3 +15,3 @@ "module": "dist/index.esm.js", | ||
}, | ||
"gitHead": "80ad9af6483a680fb703d5ebd7b8564d06e7d6c7" | ||
"gitHead": "7840f829dea27b554c5cd1cb00470770fceca2eb" | ||
} |
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
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
73330
1457
0