@symbo.ls/atoms 2.11.421 → 2.11.424

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/Position.js +3 -2
  2. package/package.json +2 -2
package/Position.js CHANGED
@@ -7,9 +7,10 @@ export const Position = {
7
7
 
8
8
  class: {
9
9
  position: ({ props }) => props.position && ({ position: props.position }),
10
- inset: ({ props, deps }) => {
10
+ inset: ({ props, deps, context }) => {
11
11
  const { inset } = props
12
- if (typeof inset !== 'string') return
12
+ if (context.utils.isNumber(inset)) return ({ inset })
13
+ if (!context.utils.isString(inset)) return
13
14
  return { inset: inset.split(' ').map(v => deps.getSpacingByKey(v, 'k').k).join(' ') }
14
15
  },
15
16
 
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/atoms",
3
- "version": "2.11.421",
3
+ "version": "2.11.424",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "c8c0374c888db13ddd96d6602f441ab80f13c203",
6
+ "gitHead": "3708811dd9976df392626400dd5560e1b11237b1",
7
7
  "dependencies": {
8
8
  "@domql/state": "latest",
9
9
  "@domql/utils": "latest",