@kaakao-ui/styled-mixins
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -18,7 +18,7 @@ 'use strict'; | ||
if (!Object.keys(m)) return undefined; | ||
m.b = m.b && m.b !== m.m ? theme === null || theme === void 0 ? void 0 : (_theme$space = theme.space) === null || _theme$space === void 0 ? void 0 : _theme$space[Number(m.b)] : m.b; | ||
m.l = m.l && m.l !== m.m ? theme === null || theme === void 0 ? void 0 : (_theme$space2 = theme.space) === null || _theme$space2 === void 0 ? void 0 : _theme$space2[Number(m.l)] : m.l; | ||
m.m = m.m ? theme === null || theme === void 0 ? void 0 : (_theme$space3 = theme.space) === null || _theme$space3 === void 0 ? void 0 : _theme$space3[Number(m.m)] : m.m; | ||
m.r = m.r && m.r !== m.m ? theme === null || theme === void 0 ? void 0 : (_theme$space4 = theme.space) === null || _theme$space4 === void 0 ? void 0 : _theme$space4[Number(m.r)] : m.r; | ||
m.t = m.t && m.t !== m.m ? theme === null || theme === void 0 ? void 0 : (_theme$space5 = theme.space) === null || _theme$space5 === void 0 ? void 0 : _theme$space5[Number(m.t)] : m.t; | ||
m.b = m.b && m.b !== m.m ? (theme === null || theme === void 0 ? void 0 : (_theme$space = theme.space) === null || _theme$space === void 0 ? void 0 : _theme$space[Number(m.b)]) || m.b : ''; | ||
m.l = m.l && m.l !== m.m ? (theme === null || theme === void 0 ? void 0 : (_theme$space2 = theme.space) === null || _theme$space2 === void 0 ? void 0 : _theme$space2[Number(m.l)]) || m.l : ''; | ||
m.m = m.m ? (theme === null || theme === void 0 ? void 0 : (_theme$space3 = theme.space) === null || _theme$space3 === void 0 ? void 0 : _theme$space3[Number(m.m)]) || m.m : ''; | ||
m.r = m.r && m.r !== m.m ? (theme === null || theme === void 0 ? void 0 : (_theme$space4 = theme.space) === null || _theme$space4 === void 0 ? void 0 : _theme$space4[Number(m.r)]) || m.r : ''; | ||
m.t = m.t && m.t !== m.m ? (theme === null || theme === void 0 ? void 0 : (_theme$space5 = theme.space) === null || _theme$space5 === void 0 ? void 0 : _theme$space5[Number(m.t)]) || m.t : ''; | ||
return styledComponents.css(["margin:", ";margin-block-end:", ";margin-block-start:", ";margin-inline-end:", ";margin-inline-start:", ";@supports not (margin-block-end:1rem){margin-bottom:", ";margin-left:", ";margin-right:", ";margin-top:", ";}"], m.m, m.b, m.t, m.r, m.l, m.b, m.t, m.r, m.l); | ||
@@ -38,7 +38,7 @@ } | ||
if (!Object.keys(p)) return undefined; | ||
p.b = p.b && p.b !== p.m ? theme === null || theme === void 0 ? void 0 : (_theme$space = theme.space) === null || _theme$space === void 0 ? void 0 : _theme$space[Number(p.b)] : p.b; | ||
p.l = p.l && p.l !== p.m ? theme === null || theme === void 0 ? void 0 : (_theme$space2 = theme.space) === null || _theme$space2 === void 0 ? void 0 : _theme$space2[Number(p.l)] : p.l; | ||
p.m = p.m ? theme === null || theme === void 0 ? void 0 : (_theme$space3 = theme.space) === null || _theme$space3 === void 0 ? void 0 : _theme$space3[Number(p.m)] : p.m; | ||
p.r = p.r && p.r !== p.m ? theme === null || theme === void 0 ? void 0 : (_theme$space4 = theme.space) === null || _theme$space4 === void 0 ? void 0 : _theme$space4[Number(p.r)] : p.r; | ||
p.t = p.t && p.t !== p.m ? theme === null || theme === void 0 ? void 0 : (_theme$space5 = theme.space) === null || _theme$space5 === void 0 ? void 0 : _theme$space5[Number(p.t)] : p.t; | ||
p.b = p.b && p.b !== p.m ? (theme === null || theme === void 0 ? void 0 : (_theme$space = theme.space) === null || _theme$space === void 0 ? void 0 : _theme$space[Number(p.b)]) || p.b : ''; | ||
p.l = p.l && p.l !== p.m ? (theme === null || theme === void 0 ? void 0 : (_theme$space2 = theme.space) === null || _theme$space2 === void 0 ? void 0 : _theme$space2[Number(p.l)]) || p.l : ''; | ||
p.m = p.m ? (theme === null || theme === void 0 ? void 0 : (_theme$space3 = theme.space) === null || _theme$space3 === void 0 ? void 0 : _theme$space3[Number(p.m)]) || p.m : ''; | ||
p.r = p.r && p.r !== p.m ? (theme === null || theme === void 0 ? void 0 : (_theme$space4 = theme.space) === null || _theme$space4 === void 0 ? void 0 : _theme$space4[Number(p.r)]) || p.r : ''; | ||
p.t = p.t && p.t !== p.m ? (theme === null || theme === void 0 ? void 0 : (_theme$space5 = theme.space) === null || _theme$space5 === void 0 ? void 0 : _theme$space5[Number(p.t)]) || p.t : ''; | ||
return styledComponents.css(["padding:", ";padding-block-end:", ";padding-block-start:", ";padding-inline-end:", ";padding-inline-start:", ";@supports not (padding-block-end:1rem){padding-bottom:", ";padding-left:", ";padding-right:", ";padding-top:", ";}"], p.m, p.b, p.t, p.r, p.l, p.b, p.t, p.r, p.l); | ||
@@ -45,0 +45,0 @@ } |
@@ -14,7 +14,7 @@ import { useTheme, css } from 'styled-components'; | ||
if (!Object.keys(m)) return undefined; | ||
m.b = m.b && m.b !== m.m ? theme === null || theme === void 0 ? void 0 : (_theme$space = theme.space) === null || _theme$space === void 0 ? void 0 : _theme$space[Number(m.b)] : m.b; | ||
m.l = m.l && m.l !== m.m ? theme === null || theme === void 0 ? void 0 : (_theme$space2 = theme.space) === null || _theme$space2 === void 0 ? void 0 : _theme$space2[Number(m.l)] : m.l; | ||
m.m = m.m ? theme === null || theme === void 0 ? void 0 : (_theme$space3 = theme.space) === null || _theme$space3 === void 0 ? void 0 : _theme$space3[Number(m.m)] : m.m; | ||
m.r = m.r && m.r !== m.m ? theme === null || theme === void 0 ? void 0 : (_theme$space4 = theme.space) === null || _theme$space4 === void 0 ? void 0 : _theme$space4[Number(m.r)] : m.r; | ||
m.t = m.t && m.t !== m.m ? theme === null || theme === void 0 ? void 0 : (_theme$space5 = theme.space) === null || _theme$space5 === void 0 ? void 0 : _theme$space5[Number(m.t)] : m.t; | ||
m.b = m.b && m.b !== m.m ? (theme === null || theme === void 0 ? void 0 : (_theme$space = theme.space) === null || _theme$space === void 0 ? void 0 : _theme$space[Number(m.b)]) || m.b : ''; | ||
m.l = m.l && m.l !== m.m ? (theme === null || theme === void 0 ? void 0 : (_theme$space2 = theme.space) === null || _theme$space2 === void 0 ? void 0 : _theme$space2[Number(m.l)]) || m.l : ''; | ||
m.m = m.m ? (theme === null || theme === void 0 ? void 0 : (_theme$space3 = theme.space) === null || _theme$space3 === void 0 ? void 0 : _theme$space3[Number(m.m)]) || m.m : ''; | ||
m.r = m.r && m.r !== m.m ? (theme === null || theme === void 0 ? void 0 : (_theme$space4 = theme.space) === null || _theme$space4 === void 0 ? void 0 : _theme$space4[Number(m.r)]) || m.r : ''; | ||
m.t = m.t && m.t !== m.m ? (theme === null || theme === void 0 ? void 0 : (_theme$space5 = theme.space) === null || _theme$space5 === void 0 ? void 0 : _theme$space5[Number(m.t)]) || m.t : ''; | ||
return css(["margin:", ";margin-block-end:", ";margin-block-start:", ";margin-inline-end:", ";margin-inline-start:", ";@supports not (margin-block-end:1rem){margin-bottom:", ";margin-left:", ";margin-right:", ";margin-top:", ";}"], m.m, m.b, m.t, m.r, m.l, m.b, m.t, m.r, m.l); | ||
@@ -34,7 +34,7 @@ } | ||
if (!Object.keys(p)) return undefined; | ||
p.b = p.b && p.b !== p.m ? theme === null || theme === void 0 ? void 0 : (_theme$space = theme.space) === null || _theme$space === void 0 ? void 0 : _theme$space[Number(p.b)] : p.b; | ||
p.l = p.l && p.l !== p.m ? theme === null || theme === void 0 ? void 0 : (_theme$space2 = theme.space) === null || _theme$space2 === void 0 ? void 0 : _theme$space2[Number(p.l)] : p.l; | ||
p.m = p.m ? theme === null || theme === void 0 ? void 0 : (_theme$space3 = theme.space) === null || _theme$space3 === void 0 ? void 0 : _theme$space3[Number(p.m)] : p.m; | ||
p.r = p.r && p.r !== p.m ? theme === null || theme === void 0 ? void 0 : (_theme$space4 = theme.space) === null || _theme$space4 === void 0 ? void 0 : _theme$space4[Number(p.r)] : p.r; | ||
p.t = p.t && p.t !== p.m ? theme === null || theme === void 0 ? void 0 : (_theme$space5 = theme.space) === null || _theme$space5 === void 0 ? void 0 : _theme$space5[Number(p.t)] : p.t; | ||
p.b = p.b && p.b !== p.m ? (theme === null || theme === void 0 ? void 0 : (_theme$space = theme.space) === null || _theme$space === void 0 ? void 0 : _theme$space[Number(p.b)]) || p.b : ''; | ||
p.l = p.l && p.l !== p.m ? (theme === null || theme === void 0 ? void 0 : (_theme$space2 = theme.space) === null || _theme$space2 === void 0 ? void 0 : _theme$space2[Number(p.l)]) || p.l : ''; | ||
p.m = p.m ? (theme === null || theme === void 0 ? void 0 : (_theme$space3 = theme.space) === null || _theme$space3 === void 0 ? void 0 : _theme$space3[Number(p.m)]) || p.m : ''; | ||
p.r = p.r && p.r !== p.m ? (theme === null || theme === void 0 ? void 0 : (_theme$space4 = theme.space) === null || _theme$space4 === void 0 ? void 0 : _theme$space4[Number(p.r)]) || p.r : ''; | ||
p.t = p.t && p.t !== p.m ? (theme === null || theme === void 0 ? void 0 : (_theme$space5 = theme.space) === null || _theme$space5 === void 0 ? void 0 : _theme$space5[Number(p.t)]) || p.t : ''; | ||
return css(["padding:", ";padding-block-end:", ";padding-block-start:", ";padding-inline-end:", ";padding-inline-start:", ";@supports not (padding-block-end:1rem){padding-bottom:", ";padding-left:", ";padding-right:", ";padding-top:", ";}"], p.m, p.b, p.t, p.r, p.l, p.b, p.t, p.r, p.l); | ||
@@ -41,0 +41,0 @@ } |
import { FlattenSimpleInterpolation } from 'styled-components'; | ||
import { ISpace } from './Space.types'; | ||
declare function Space(props: ISpace): FlattenSimpleInterpolation | undefined; | ||
declare function Space(props: ISpace): FlattenSimpleInterpolation; | ||
export default Space; |
{ | ||
"name": "@kaakao-ui/styled-mixins", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "A framework-agnostic collection of Styled Components mixins for creating logical CSS styles with appropriate fallbacks.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
13193