@symbo.ls/atoms
Advanced tools
Comparing version 2.11.305 to 2.11.306
@@ -12,5 +12,5 @@ 'use strict' | ||
flow: ({ props }) => { | ||
const { flow } = props | ||
if (isUndefined(flow)) return | ||
let [direction, wrap] = flow.split(' ') | ||
const { flow, reverse } = props | ||
if (isUndefined(flow) && isUndefined(reverse)) return | ||
let [direction, wrap] = (flow || 'row').split(' ') | ||
if (flow.startsWith('x') || flow.startsWith('row')) direction = 'row' | ||
@@ -17,0 +17,0 @@ if (flow.startsWith('y') || flow.startsWith('column')) direction = 'column' |
{ | ||
"name": "@symbo.ls/atoms", | ||
"version": "2.11.305", | ||
"version": "2.11.306", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"gitHead": "14569e713ad6d47a3be207df9f23dc0338a2d562", | ||
"gitHead": "1e09060438775f1b9cf1c5d6305024faefc05bfc", | ||
"dependencies": { | ||
@@ -8,0 +8,0 @@ "@domql/state": "latest", |
@@ -19,4 +19,24 @@ 'use strict' | ||
right: ({ props, deps }) => deps.getSpacingByKey(props.right, 'right'), | ||
bottom: ({ props, deps }) => deps.getSpacingByKey(props.bottom, 'bottom') | ||
bottom: ({ props, deps }) => deps.getSpacingByKey(props.bottom, 'bottom'), | ||
verticalInset: ({ props, deps }) => { | ||
const { verticalInset } = props | ||
if (typeof verticalInset !== 'string') return | ||
const vi = verticalInset.split(' ').map(v => deps.getSpacingByKey(v, 'k').k) | ||
return { | ||
top: vi[0], | ||
bottom: vi[1] || vi[0] | ||
} | ||
}, | ||
horizontalInset: ({ props, deps }) => { | ||
const { horizontalInset } = props | ||
if (typeof horizontalInset !== 'string') return | ||
const vi = horizontalInset.split(' ').map(v => deps.getSpacingByKey(v, 'k').k) | ||
return { | ||
left: vi[0], | ||
right: vi[1] || vi[0] | ||
} | ||
} | ||
} | ||
} |
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
50038
1396