@os-design/utils
Advanced tools
Comparing version 0.0.16 to 0.0.17
@@ -1,7 +0,6 @@ | ||
import { WithTheme } from '@os-design/theming'; | ||
export interface WithSizing { | ||
sizing?: 'small' | 'medium' | 'large'; | ||
} | ||
declare const sizing: (p: WithTheme & WithSizing) => import("@emotion/utils").SerializedStyles; | ||
declare const sizing: (p: any) => import("@emotion/utils").SerializedStyles; | ||
export default sizing; | ||
//# sourceMappingURL=sizing.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const core_1 = require("@emotion/core"); | ||
const sizing = (p) => core_1.css ` | ||
const sizing = p => core_1.css ` | ||
font-size: ${p.theme.sizing[p.sizing || 'medium']}em; | ||
@@ -6,0 +6,0 @@ `; |
@@ -1,4 +0,3 @@ | ||
import { WithTheme } from '@os-design/theming'; | ||
declare const transition: (...properties: string[]) => (p: WithTheme) => import("@emotion/utils").SerializedStyles; | ||
declare const transition: (...properties: string[]) => (p: any) => import("@emotion/utils").SerializedStyles; | ||
export default transition; | ||
//# sourceMappingURL=transition.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const core_1 = require("@emotion/core"); | ||
const single = (property) => (p) => core_1.css ` | ||
const single = (property) => p => core_1.css ` | ||
transition: ${property} ${p.theme.transitionDelay}ms; | ||
`; | ||
const multiple = (properties) => (p) => core_1.css ` | ||
const multiple = (properties) => p => core_1.css ` | ||
transition: all ${p.theme.transitionDelay}ms; | ||
transition-property: ${properties.join(',')}; | ||
`; | ||
const transition = (...properties) => (p) => (properties.length === 1 ? single(properties[0])(p) : multiple(properties)(p)); | ||
const transition = (...properties) => p => (properties.length === 1 ? single(properties[0])(p) : multiple(properties)(p)); | ||
exports.default = transition; | ||
//# sourceMappingURL=transition.js.map |
{ | ||
"name": "@os-design/utils", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"license": "MIT", | ||
@@ -25,3 +25,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "677f3711e59075570fbb02e5c2a7c81d2993e80a" | ||
"gitHead": "64d05ffdde4adb188106234212412ba2f2113f26" | ||
} |
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
35801
436