@os-design/styles
Advanced tools
Comparing version 1.0.51 to 1.0.52
@@ -12,3 +12,3 @@ "use strict"; | ||
return function (p) { | ||
return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n transition: ", " ", "ms;\n "])), property, p.theme.transitionDelay); | ||
return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n transition: ", " ", "ms;\n"])), property, p.theme.transitionDelay); | ||
}; | ||
@@ -18,3 +18,3 @@ }; | ||
return function (p) { | ||
return (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n transition: all ", "ms;\n transition-property: ", ";\n "])), p.theme.transitionDelay, properties.join(', ')); | ||
return (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n transition: all ", "ms;\n transition-property: ", ";\n"])), p.theme.transitionDelay, properties.join(', ')); | ||
}; | ||
@@ -21,0 +21,0 @@ }; |
import { css } from '@emotion/react'; | ||
const singleTransitionStyles = property => p => css` | ||
transition: ${property} ${p.theme.transitionDelay}ms; | ||
`; | ||
transition: ${property} ${p.theme.transitionDelay}ms; | ||
`; | ||
const multipleTransitionsStyles = properties => p => css` | ||
transition: all ${p.theme.transitionDelay}ms; | ||
transition-property: ${properties.join(', ')}; | ||
`; | ||
transition: all ${p.theme.transitionDelay}ms; | ||
transition-property: ${properties.join(', ')}; | ||
`; | ||
@@ -10,0 +10,0 @@ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types |
{ | ||
"name": "@os-design/styles", | ||
"version": "1.0.51", | ||
"version": "1.0.52", | ||
"license": "UNLICENSED", | ||
@@ -46,3 +46,3 @@ "repository": "git@gitlab.com:os-team/libs/os-design.git", | ||
}, | ||
"gitHead": "2605fbf8f46c78800cd4ba6dcb0dd895a893bf96" | ||
"gitHead": "6b63f712ae05bd98c00f59b868ac782f3475dc99" | ||
} |
import { css } from '@emotion/react'; | ||
import { SerializedStyles } from '@emotion/serialize'; | ||
const singleTransitionStyles = (property: string) => (p) => | ||
css` | ||
transition: ${property} ${p.theme.transitionDelay}ms; | ||
`; | ||
const singleTransitionStyles = (property: string) => (p) => css` | ||
transition: ${property} ${p.theme.transitionDelay}ms; | ||
`; | ||
const multipleTransitionsStyles = (properties: string[]) => (p) => | ||
css` | ||
transition: all ${p.theme.transitionDelay}ms; | ||
transition-property: ${properties.join(', ')}; | ||
`; | ||
const multipleTransitionsStyles = (properties: string[]) => (p) => css` | ||
transition: all ${p.theme.transitionDelay}ms; | ||
transition-property: ${properties.join(', ')}; | ||
`; | ||
@@ -15,0 +13,0 @@ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types |
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
53021
511