styled-velocity
Advanced tools
Comparing version 0.0.20 to 0.0.21
@@ -39,3 +39,2 @@ export { Element } from './components/Element'; | ||
export { arrayOfKeys } from './utilities/object/arrayOfKeys'; | ||
export { mergeObjects } from './utilities/object/mergeObjects'; | ||
export { classNames } from './utilities/string/classNames'; | ||
@@ -50,5 +49,5 @@ export { px } from './utilities/string/px'; | ||
export { cssProperty } from './utilities/style/createStyle/cssProperty'; | ||
export { getPropertiesFromTo } from './utilities/style/createStyle/getPropertiesFromTo'; | ||
export { makeMediaQuery } from './utilities/style/createStyle/makeMediaQuery'; | ||
export { scaleFromTo } from './utilities/style/createStyle/scaleFromTo'; | ||
export { scalePxValues } from './utilities/style/createStyle/scalePxValues'; | ||
export { config } from './config/config'; |
@@ -234,8 +234,2 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "mergeObjects", { | ||
enumerable: true, | ||
get: function get() { | ||
return _mergeObjects.mergeObjects; | ||
} | ||
}); | ||
Object.defineProperty(exports, "classNames", { | ||
@@ -295,12 +289,12 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "getPropertiesFromTo", { | ||
Object.defineProperty(exports, "makeMediaQuery", { | ||
enumerable: true, | ||
get: function get() { | ||
return _getPropertiesFromTo.getPropertiesFromTo; | ||
return _makeMediaQuery.makeMediaQuery; | ||
} | ||
}); | ||
Object.defineProperty(exports, "makeMediaQuery", { | ||
Object.defineProperty(exports, "scaleFromTo", { | ||
enumerable: true, | ||
get: function get() { | ||
return _makeMediaQuery.makeMediaQuery; | ||
return _scaleFromTo.scaleFromTo; | ||
} | ||
@@ -397,4 +391,2 @@ }); | ||
var _mergeObjects = require("./utilities/object/mergeObjects"); | ||
var _classNames = require("./utilities/string/classNames"); | ||
@@ -418,9 +410,9 @@ | ||
var _getPropertiesFromTo = require("./utilities/style/createStyle/getPropertiesFromTo"); | ||
var _makeMediaQuery = require("./utilities/style/createStyle/makeMediaQuery"); | ||
var _scaleFromTo = require("./utilities/style/createStyle/scaleFromTo"); | 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AnLi91dGlsaXRpZXMvc3R5bGUvY3JlYXRlU3R5bGUvY3JlYXRlU3R5bGVGcm9tVG8nXG5leHBvcnQgeyBjc3NQcm9wZXJ0eSB9IGZyb20gJy4vdXRpbGl0aWVzL3N0eWxlL2NyZWF0ZVN0eWxlL2Nzc1Byb3BlcnR5J1xuZXhwb3J0IHsgbWFrZU1lZGlhUXVlcnkgfSBmcm9tICcuL3V0aWxpdGllcy9zdHlsZS9jcmVhdGVTdHlsZS9tYWtlTWVkaWFRdWVyeSdcbmV4cG9ydCB7IHNjYWxlRnJvbVRvIH0gZnJvbSAnLi91dGlsaXRpZXMvc3R5bGUvY3JlYXRlU3R5bGUvc2NhbGVGcm9tVG8nXG5leHBvcnQgeyBzY2FsZVB4VmFsdWVzIH0gZnJvbSAnLi91dGlsaXRpZXMvc3R5bGUvY3JlYXRlU3R5bGUvc2NhbGVQeFZhbHVlcydcblxuLyogQ29uZmlnICovXG5leHBvcnQgeyBjb25maWcgfSBmcm9tICcuL2NvbmZpZy9jb25maWcnXG4iXX0= |
@@ -17,3 +17,2 @@ export { aspectRatio } from './aspectRatio/aspectRatio'; | ||
export { arrayOfKeys } from './object/arrayOfKeys'; | ||
export { mergeObjects } from './object/mergeObjects'; | ||
export { classNames } from './string/classNames'; | ||
@@ -28,4 +27,4 @@ export { px } from './string/px'; | ||
export { cssProperty } from './style/createStyle/cssProperty'; | ||
export { getPropertiesFromTo } from './style/createStyle/getPropertiesFromTo'; | ||
export { makeMediaQuery } from './style/createStyle/makeMediaQuery'; | ||
export { scaleFromTo } from './style/createStyle/scaleFromTo'; | ||
export { scalePxValues } from './style/createStyle/scalePxValues'; |
@@ -102,8 +102,2 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "mergeObjects", { | ||
enumerable: true, | ||
get: function get() { | ||
return _mergeObjects.mergeObjects; | ||
} | ||
}); | ||
Object.defineProperty(exports, "classNames", { | ||
@@ -163,12 +157,12 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "getPropertiesFromTo", { | ||
Object.defineProperty(exports, "makeMediaQuery", { | ||
enumerable: true, | ||
get: function get() { | ||
return _getPropertiesFromTo.getPropertiesFromTo; | ||
return _makeMediaQuery.makeMediaQuery; | ||
} | ||
}); | ||
Object.defineProperty(exports, "makeMediaQuery", { | ||
Object.defineProperty(exports, "scaleFromTo", { | ||
enumerable: true, | ||
get: function get() { | ||
return _makeMediaQuery.makeMediaQuery; | ||
return _scaleFromTo.scaleFromTo; | ||
} | ||
@@ -215,4 +209,2 @@ }); | ||
var _mergeObjects = require("./object/mergeObjects"); | ||
var _classNames = require("./string/classNames"); | ||
@@ -236,7 +228,7 @@ | ||
var _getPropertiesFromTo = require("./style/createStyle/getPropertiesFromTo"); | ||
var _makeMediaQuery = require("./style/createStyle/makeMediaQuery"); | ||
var _scaleFromTo = require("./style/createStyle/scaleFromTo"); | ||
var _scalePxValues = require("./style/createStyle/scalePxValues"); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXRpZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBR0E7O0FBQ0E7O0FBQ0E7O0FBQ0E7O0FBQ0E7O0FBQ0E7O0FBQ0E7O0FBQ0E7O0FBQ0E7O0FBQ0E7O0FBQ0E7O0FBQ0E7O0FBQ0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N0eWxlL2NyZWF0ZVN0eWxlL21ha2VNZWRpYVF1ZXJ5J1xuZXhwb3J0IHsgc2NhbGVGcm9tVG8gfSBmcm9tICcuL3N0eWxlL2NyZWF0ZVN0eWxlL3NjYWxlRnJvbVRvJ1xuZXhwb3J0IHsgc2NhbGVQeFZhbHVlcyB9IGZyb20gJy4vc3R5bGUvY3JlYXRlU3R5bGUvc2NhbGVQeFZhbHVlcydcbiJdfQ== |
@@ -12,30 +12,20 @@ "use strict"; | ||
var fromToStyles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var breakpoints = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { | ||
mobile: 375, | ||
400: 400, | ||
tablet: 768, | ||
800: 800, | ||
desktop: 1440, | ||
1600: 1600, | ||
"super": 2000 | ||
}; | ||
var style = {}; | ||
var keys = (0, _.arrayOfKeys)(fromToStyles); | ||
keys.forEach(function (value, index) { | ||
var breakpoints = (0, _.arrayOfKeys)(fromToStyles); | ||
breakpoints.forEach(function (value, index) { | ||
if (index === 0) { | ||
style[0] = (0, _.px)(fromToStyles[keys[0]]); | ||
style[0] = (0, _.px)(fromToStyles[breakpoints[0]]); | ||
return; | ||
} | ||
var previousBreakpoint = keys[index - 1]; | ||
var currentBreakpoint = keys[index]; | ||
if (index === keys.length - 1) { | ||
style[breakpoints[currentBreakpoint]] = (0, _.px)(fromToStyles[keys[keys.length - 1]]); | ||
} | ||
style["".concat(breakpoints[previousBreakpoint], "-").concat(breakpoints[currentBreakpoint] - 1)] = { | ||
var previousBreakpoint = breakpoints[index - 1]; | ||
var currentBreakpoint = breakpoints[index]; | ||
style["".concat(previousBreakpoint, "-").concat(currentBreakpoint - 1)] = { | ||
min: fromToStyles[previousBreakpoint], | ||
max: fromToStyles[currentBreakpoint] | ||
}; | ||
if (index === breakpoints.length - 1) { | ||
style[currentBreakpoint] = (0, _.px)(fromToStyles[currentBreakpoint]); | ||
} | ||
}); | ||
@@ -46,2 +36,2 @@ return style; | ||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QnJlYWtwb2ludF0gPSBweChmcm9tVG9TdHlsZXNbY3VycmVudEJyZWFrcG9pbnRdKVxuICAgIH1cbiAgfSlcblxuICByZXR1cm4gc3R5bGVcbn1cbiJdfQ== |
@@ -24,6 +24,6 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "getPropertiesFromTo", { | ||
Object.defineProperty(exports, "scaleFromTo", { | ||
enumerable: true, | ||
get: function get() { | ||
return _getPropertiesFromTo.getPropertiesFromTo; | ||
return _scaleFromTo.scaleFromTo; | ||
} | ||
@@ -38,3 +38,3 @@ }); | ||
var _getPropertiesFromTo = require("./getPropertiesFromTo"); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy91dGlsaXRpZXMvc3R5bGUvY3JlYXRlU3R5bGUvaW5kZXguanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7O0FBQ0E7O0FBQ0E7O0FBQ0EiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBjcmVhdGVTdHlsZSB9IGZyb20gJy4vY3JlYXRlU3R5bGUnXG5leHBvcnQgeyBjcmVhdGVTdHlsZUZyb21PYmplY3QgfSBmcm9tICcuL2NyZWF0ZVN0eWxlRnJvbU9iamVjdCdcbmV4cG9ydCB7IGNyZWF0ZVN0eWxlRnJvbVRvIH0gZnJvbSAnLi9jcmVhdGVTdHlsZUZyb21UbydcbmV4cG9ydCB7IGdldFByb3BlcnRpZXNGcm9tVG8gfSBmcm9tICcuL2dldFByb3BlcnRpZXNGcm9tVG8nXG4iXX0= | ||
var _scaleFromTo = require("./scaleFromTo"); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy91dGlsaXRpZXMvc3R5bGUvY3JlYXRlU3R5bGUvaW5kZXguanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7O0FBQ0E7O0FBQ0E7O0FBQ0EiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBjcmVhdGVTdHlsZSB9IGZyb20gJy4vY3JlYXRlU3R5bGUnXG5leHBvcnQgeyBjcmVhdGVTdHlsZUZyb21PYmplY3QgfSBmcm9tICcuL2NyZWF0ZVN0eWxlRnJvbU9iamVjdCdcbmV4cG9ydCB7IGNyZWF0ZVN0eWxlRnJvbVRvIH0gZnJvbSAnLi9jcmVhdGVTdHlsZUZyb21UbydcbmV4cG9ydCB7IHNjYWxlRnJvbVRvIH0gZnJvbSAnLi9zY2FsZUZyb21UbydcbiJdfQ== |
export { conversionTypes } from './conversionTypes'; | ||
export { convertValue } from './convertValue/convertValue'; | ||
export { createStyle, createStyleFromObject, createStyleFromTo, getPropertiesFromTo } from './createStyle'; | ||
export { createStyle, createStyleFromObject, createStyleFromTo, scaleFromTo } from './createStyle'; |
@@ -36,6 +36,6 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "getPropertiesFromTo", { | ||
Object.defineProperty(exports, "scaleFromTo", { | ||
enumerable: true, | ||
get: function get() { | ||
return _createStyle.getPropertiesFromTo; | ||
return _createStyle.scaleFromTo; | ||
} | ||
@@ -49,2 +49,2 @@ }); | ||
var _createStyle = require("./createStyle"); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy91dGlsaXRpZXMvc3R5bGUvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7O0FBQ0E7O0FBQ0EiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBjb252ZXJzaW9uVHlwZXMgfSBmcm9tICcuL2NvbnZlcnNpb25UeXBlcydcbmV4cG9ydCB7IGNvbnZlcnRWYWx1ZSB9IGZyb20gJy4vY29udmVydFZhbHVlL2NvbnZlcnRWYWx1ZSdcbmV4cG9ydCB7IGNyZWF0ZVN0eWxlLCBjcmVhdGVTdHlsZUZyb21PYmplY3QsIGNyZWF0ZVN0eWxlRnJvbVRvLCBnZXRQcm9wZXJ0aWVzRnJvbVRvIH0gZnJvbSAnLi9jcmVhdGVTdHlsZSdcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy91dGlsaXRpZXMvc3R5bGUvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7O0FBQ0E7O0FBQ0EiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBjb252ZXJzaW9uVHlwZXMgfSBmcm9tICcuL2NvbnZlcnNpb25UeXBlcydcbmV4cG9ydCB7IGNvbnZlcnRWYWx1ZSB9IGZyb20gJy4vY29udmVydFZhbHVlL2NvbnZlcnRWYWx1ZSdcbmV4cG9ydCB7IGNyZWF0ZVN0eWxlLCBjcmVhdGVTdHlsZUZyb21PYmplY3QsIGNyZWF0ZVN0eWxlRnJvbVRvLCBzY2FsZUZyb21UbyB9IGZyb20gJy4vY3JlYXRlU3R5bGUnXG4iXX0= |
{ | ||
"name": "styled-velocity", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "Styled-Velocity, a React-based styled prop and UI library to increase your velocity and help build your Design System.", | ||
@@ -20,3 +20,6 @@ "author": "Jon K. Wheeler", | ||
"dirBuild": "./dist", | ||
"dirSrc": "./src" | ||
"dirSrc": "./src", | ||
"dirStorybook": "./.storybook", | ||
"dirStorybookBuild": "./.out", | ||
"portStorybook": "8888" | ||
}, | ||
@@ -30,2 +33,3 @@ "scripts": { | ||
"build": "yarn build:variable-exports && yarn build:commonjs && yarn build:types", | ||
"dev": "concurrently \"yarn start:storybook\" \"yarn watch:variables\"", | ||
"nuke:all:install:dev": "yarn nuke:all && yarn && yarn dev", | ||
@@ -38,3 +42,6 @@ "nuke:all:install": "yarn nuke:all && yarn", | ||
"prepublishOnly": "yarn nuke:build:rebuild", | ||
"release": "yarn release-it" | ||
"release": "yarn release-it", | ||
"start:storybook": "start-storybook -p $npm_package_config_portStorybook -c $npm_package_config_dirStorybook", | ||
"storybook": "yarn start:storybook", | ||
"watch:variables": "onchange 'src/**/*.{js,jsx,ts,tsx}' --exclude '**/{index,story}.{js,jsx,ts,tsx}' -- yarn build:variable-exports" | ||
}, | ||
@@ -53,2 +60,3 @@ "dependencies": {}, | ||
"@babel/runtime": "^7.4.4", | ||
"@storybook/react": "^5.0.11", | ||
"babel-eslint": "^10.0.1", | ||
@@ -58,7 +66,10 @@ "babel-loader": "^8.0.5", | ||
"babel-plugin-module-resolver": "^3.2.0", | ||
"concurrently": "^4.1.0", | ||
"cross-env": "^5.2.0", | ||
"eslint": "^5.9.0", | ||
"eslint-plugin-react": "^7.13.0", | ||
"fork-ts-checker-webpack-plugin": "^1.3.3", | ||
"fs": "^0.0.1-security", | ||
"glob": "^7.1.4", | ||
"onchange": "^5.2.0", | ||
"path": "^0.12.7", | ||
@@ -70,3 +81,5 @@ "prettier": "^1.17.0", | ||
"release-it": "^12.0.1", | ||
"storybook": "^1.0.0", | ||
"styled-components": "^4.2.0", | ||
"ts-loader": "^6.0.0", | ||
"tscpaths": "^0.0.7", | ||
@@ -73,0 +86,0 @@ "tslint": "^5.16.0", |
@@ -52,3 +52,2 @@ /* This file is automated via "./scripts/exportSrcIndex.js". Do not manually edit. */ | ||
export { arrayOfKeys } from './utilities/object/arrayOfKeys' | ||
export { mergeObjects } from './utilities/object/mergeObjects' | ||
export { classNames } from './utilities/string/classNames' | ||
@@ -63,4 +62,4 @@ export { px } from './utilities/string/px' | ||
export { cssProperty } from './utilities/style/createStyle/cssProperty' | ||
export { getPropertiesFromTo } from './utilities/style/createStyle/getPropertiesFromTo' | ||
export { makeMediaQuery } from './utilities/style/createStyle/makeMediaQuery' | ||
export { scaleFromTo } from './utilities/style/createStyle/scaleFromTo' | ||
export { scalePxValues } from './utilities/style/createStyle/scalePxValues' | ||
@@ -67,0 +66,0 @@ |
@@ -20,3 +20,2 @@ /* This file is automated via "./scripts/exportIndexes.js". Do not manually edit. */ | ||
export { arrayOfKeys } from './object/arrayOfKeys' | ||
export { mergeObjects } from './object/mergeObjects' | ||
export { classNames } from './string/classNames' | ||
@@ -31,4 +30,4 @@ export { px } from './string/px' | ||
export { cssProperty } from './style/createStyle/cssProperty' | ||
export { getPropertiesFromTo } from './style/createStyle/getPropertiesFromTo' | ||
export { makeMediaQuery } from './style/createStyle/makeMediaQuery' | ||
export { scaleFromTo } from './style/createStyle/scaleFromTo' | ||
export { scalePxValues } from './style/createStyle/scalePxValues' |
@@ -6,53 +6,42 @@ import { arrayOfKeys, px } from '@utils' | ||
createStyleFromTo({ | ||
mobile: headline[500]['font-size'], | ||
tablet: headline[800]['font-size'], | ||
desktop: headline[1000]['font-size'], | ||
}) | ||
createStyleFromTo({ '400': 24, '800': 64, '1600': 104 }) | ||
generates an object | ||
{ | ||
0: "24px" | ||
375-767: {min: 24, max: 64} | ||
768-1439: {min: 64, max: 104} | ||
1440: "104px" | ||
} | ||
*/ | ||
{ '0': '24px', '400-799': { min: 24, max: 64 }, '800-1599': { min: 64, max: 104 }, '1600': '104px' } | ||
export const createStyleFromTo = ( | ||
fromToStyles = {}, | ||
breakpoints = { | ||
mobile: 375, | ||
400: 400, | ||
tablet: 768, | ||
800: 800, | ||
desktop: 1440, | ||
1600: 1600, | ||
super: 2000, | ||
}, | ||
) => { | ||
*/ | ||
export const createStyleFromTo = (fromToStyles = {}) => { | ||
let style = {} | ||
const keys = arrayOfKeys(fromToStyles) | ||
const breakpoints = arrayOfKeys(fromToStyles) | ||
keys.forEach(function(value, index) { | ||
// create first | ||
breakpoints.forEach(function(value, index) { | ||
/* | ||
* create first | ||
*/ | ||
if (index === 0) { | ||
style[0] = px(fromToStyles[keys[0]]) | ||
return // return here bc there is no previous breakpoint | ||
style[0] = px(fromToStyles[breakpoints[0]]) | ||
/* | ||
* return here bc there is no previous breakpoint | ||
*/ | ||
return | ||
} | ||
const previousBreakpoint = keys[index - 1] | ||
const currentBreakpoint = keys[index] | ||
const previousBreakpoint = breakpoints[index - 1] | ||
const currentBreakpoint = breakpoints[index] | ||
// create last | ||
if (index === keys.length - 1) { | ||
style[breakpoints[currentBreakpoint]] = px(fromToStyles[keys[keys.length - 1]]) | ||
} | ||
style[`${breakpoints[previousBreakpoint]}-${breakpoints[currentBreakpoint] - 1}`] = { | ||
style[`${previousBreakpoint}-${currentBreakpoint - 1}`] = { | ||
min: fromToStyles[previousBreakpoint], | ||
max: fromToStyles[currentBreakpoint], | ||
} | ||
/* | ||
* create last | ||
*/ | ||
if (index === breakpoints.length - 1) { | ||
style[currentBreakpoint] = px(fromToStyles[currentBreakpoint]) | ||
} | ||
}) | ||
@@ -59,0 +48,0 @@ |
export { createStyle } from './createStyle' | ||
export { createStyleFromObject } from './createStyleFromObject' | ||
export { createStyleFromTo } from './createStyleFromTo' | ||
export { getPropertiesFromTo } from './getPropertiesFromTo' | ||
export { scaleFromTo } from './scaleFromTo' |
export { conversionTypes } from './conversionTypes' | ||
export { convertValue } from './convertValue/convertValue' | ||
export { createStyle, createStyleFromObject, createStyleFromTo, getPropertiesFromTo } from './createStyle' | ||
export { createStyle, createStyleFromObject, createStyleFromTo, scaleFromTo } from './createStyle' |
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
1013396
243
38
4381