@arch-ui/theme
Advanced tools
Comparing version 0.0.5 to 0.0.6
# @arch-ui/theme | ||
## 0.0.6 | ||
### Patch Changes | ||
- [`129b0f6`](https://github.com/keystonejs/keystone/commit/129b0f61f34adb7482901d2da4ddb14ce1aedd62) [#2092](https://github.com/keystonejs/keystone/pull/2092) - Upgrade all Babel deps to the same version (7.7.4) | ||
## 0.0.5 | ||
@@ -4,0 +10,0 @@ |
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
function _interopDefault(ex) { | ||
return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] : ex; | ||
} | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var _objectSpread = _interopDefault(require("@babel/runtime/helpers/objectSpread")); | ||
var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty')); | ||
var colorUtils = require('@arch-ui/color-utils'); | ||
var colorUtils = require('@arch-ui/color-utils'); // colors with intention | ||
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; } | ||
function _objectSpread(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; } | ||
@@ -79,2 +77,3 @@ const intent = { | ||
const shadows = ["0px 2px 5px 0px ".concat(shade(0.12)), "0px 5px 10px 0px ".concat(shade(0.12)), "0px 6px 12px -2px ".concat(shade(0.12), ", 0 0 0 1px ").concat(shade(0.08)), "0px 6px 12px -2px ".concat(shade(0.24), ", 0 0 0 1px ").concat(shade(0.08))]; | ||
const fontFamily = "\n -apple-system,\n BlinkMacSystemFont,\n \"Segoe UI\",\n Roboto,\n Helvetica,\n Arial,\n sans-serif,\n \"Apple Color Emoji\",\n \"Segoe UI Emoji\",\n \"Segoe UI Symbol\"\n"; | ||
@@ -107,8 +106,9 @@ const borderRadius = 6; | ||
}; | ||
exports.borderRadius = borderRadius; | ||
exports.colors = colors; | ||
exports.fontFamily = fontFamily; | ||
exports.borderRadius = borderRadius; | ||
exports.gridSize = gridSize; | ||
exports.fontSize = fontSize; | ||
exports.colors = colors; | ||
exports.globalStyles = globalStyles; | ||
exports.gridSize = gridSize; | ||
exports.shadows = shadows; |
@@ -11,4 +11,27 @@ "use strict"; | ||
var _objectSpread = _interopDefault(require("@babel/runtime/helpers/objectSpread")), colorUtils = require("@arch-ui/color-utils"); | ||
var _defineProperty = _interopDefault(require("@babel/runtime/helpers/defineProperty")), colorUtils = require("@arch-ui/color-utils"); | ||
function ownKeys(object, enumerableOnly) { | ||
var keys = Object.keys(object); | ||
if (Object.getOwnPropertySymbols) { | ||
var symbols = Object.getOwnPropertySymbols(object); | ||
enumerableOnly && (symbols = symbols.filter((function(sym) { | ||
return Object.getOwnPropertyDescriptor(object, sym).enumerable; | ||
}))), keys.push.apply(keys, symbols); | ||
} | ||
return keys; | ||
} | ||
function _objectSpread(target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = null != arguments[i] ? arguments[i] : {}; | ||
i % 2 ? ownKeys(Object(source), !0).forEach((function(key) { | ||
_defineProperty(target, key, source[key]); | ||
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach((function(key) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
})); | ||
} | ||
return target; | ||
} | ||
const intent = { | ||
@@ -84,4 +107,4 @@ create: "#34c240", | ||
exports.fontFamily = fontFamily, exports.borderRadius = 6, exports.gridSize = 8, | ||
exports.fontSize = 16, exports.colors = colors, exports.globalStyles = globalStyles, | ||
exports.borderRadius = 6, exports.colors = colors, exports.fontFamily = fontFamily, | ||
exports.fontSize = 16, exports.globalStyles = globalStyles, exports.gridSize = 8, | ||
exports.shadows = shadows; |
@@ -1,5 +0,8 @@ | ||
import _objectSpread from '@babel/runtime/helpers/esm/objectSpread'; | ||
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty'; | ||
import { lighten, darken, alpha } from '@arch-ui/color-utils'; | ||
// colors with intention | ||
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; } | ||
function _objectSpread(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; } | ||
const intent = { | ||
@@ -65,3 +68,3 @@ create: '#34c240', | ||
const shade = alpha$$1 => "rgba(9, 30, 66, ".concat(alpha$$1, ")"); | ||
const shade = alpha => "rgba(9, 30, 66, ".concat(alpha, ")"); | ||
@@ -98,2 +101,2 @@ const shadows = ["0px 2px 5px 0px ".concat(shade(0.12)), "0px 5px 10px 0px ".concat(shade(0.12)), "0px 6px 12px -2px ".concat(shade(0.12), ", 0 0 0 1px ").concat(shade(0.08)), "0px 6px 12px -2px ".concat(shade(0.24), ", 0 0 0 1px ").concat(shade(0.08))]; | ||
export { fontFamily, borderRadius, gridSize, fontSize, colors, globalStyles, shadows }; | ||
export { borderRadius, colors, fontFamily, fontSize, globalStyles, gridSize, shadows }; |
{ | ||
"name": "@arch-ui/theme", | ||
"description": "Common Theme as used throughout @arch-ui packages and @keystone-alpha Admin UI.", | ||
"version": "0.0.5", | ||
"description": "Common Theme as used throughout @arch-ui packages and @keystonejs Admin UI.", | ||
"version": "0.0.6", | ||
"author": "Jed Watson", | ||
@@ -10,5 +10,5 @@ "license": "MIT", | ||
"@arch-ui/color-utils": "0.0.1", | ||
"@babel/runtime": "^7.4.3" | ||
"@babel/runtime": "^7.7.4" | ||
}, | ||
"module": "dist/theme.esm.js" | ||
} | ||
} |
@@ -1,4 +0,2 @@ | ||
// @flow | ||
import { lighten, darken, alpha } from '@arch-ui/color-utils'; | ||
import type { Variants } from './types'; | ||
@@ -33,3 +31,3 @@ // colors with intention | ||
function makeVariants(color): Variants { | ||
function makeVariants(color) { | ||
const variants = {}; | ||
@@ -36,0 +34,0 @@ source.forEach(n => (variants[`L${n}`] = lighten(color, n))); |
@@ -1,2 +0,1 @@ | ||
// @flow | ||
export const fontFamily = ` | ||
@@ -3,0 +2,0 @@ -apple-system, |
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
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
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
15253
11
400
1
Updated@babel/runtime@^7.7.4