@symbo.ls/atoms 2.11.304 → 2.11.306

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.
package/Collection.js CHANGED
@@ -17,17 +17,19 @@ export const Collection = {
17
17
 
18
18
  const { __ref: ref } = el
19
19
 
20
+ if (isObjectLike(param)) param = deepClone(param)
21
+
20
22
  if (ref.__collectionCache) {
21
23
  const equals = JSON.stringify(param) === JSON.stringify(ref.__collectionCache)
22
24
  if (equals) {
23
25
  ref.__noCollectionDifference = true
24
26
  return
25
27
  } else {
26
- ref.__collectionCache = deepClone(param)
28
+ ref.__collectionCache = param
27
29
  delete ref.__noCollectionDifference
28
30
  }
29
31
  } else {
30
- ref.__collectionCache = deepClone(param)
32
+ ref.__collectionCache = param
31
33
  }
32
34
 
33
35
  const obj = {
package/Flex.js CHANGED
@@ -9,9 +9,9 @@ export const Flex = {
9
9
 
10
10
  class: {
11
11
  flow: ({ props }) => {
12
- const { flow } = props
13
- if (isUndefined(flow)) return
14
- let [direction, wrap] = flow.split(' ')
12
+ const { flow, reverse } = props
13
+ if (isUndefined(flow) && isUndefined(reverse)) return
14
+ let [direction, wrap] = (flow || 'row').split(' ')
15
15
  if (flow.startsWith('x') || flow.startsWith('row')) direction = 'row'
16
16
  if (flow.startsWith('y') || flow.startsWith('column')) direction = 'column'
17
17
  return {
package/Picture.js CHANGED
@@ -26,6 +26,7 @@ export const Picture = {
26
26
 
27
27
  Img: ({ props }) => ({
28
28
  width: 'inherit',
29
+ ignoreChildExtend: true,
29
30
  height: 'inherit',
30
31
  src: props.src
31
32
  })
package/Position.js CHANGED
@@ -16,6 +16,26 @@ export const Position = {
16
16
  left: ({ props, deps }) => deps.getSpacingByKey(props.left, 'left'),
17
17
  top: ({ props, deps }) => deps.getSpacingByKey(props.top, 'top'),
18
18
  right: ({ props, deps }) => deps.getSpacingByKey(props.right, 'right'),
19
- bottom: ({ props, deps }) => deps.getSpacingByKey(props.bottom, 'bottom')
19
+ bottom: ({ props, deps }) => deps.getSpacingByKey(props.bottom, 'bottom'),
20
+
21
+ verticalInset: ({ props, deps }) => {
22
+ const { verticalInset } = props
23
+ if (typeof verticalInset !== 'string') return
24
+ const vi = verticalInset.split(' ').map(v => deps.getSpacingByKey(v, 'k').k)
25
+ return {
26
+ top: vi[0],
27
+ bottom: vi[1] || vi[0]
28
+ }
29
+ },
30
+
31
+ horizontalInset: ({ props, deps }) => {
32
+ const { horizontalInset } = props
33
+ if (typeof horizontalInset !== 'string') return
34
+ const vi = horizontalInset.split(' ').map(v => deps.getSpacingByKey(v, 'k').k)
35
+ return {
36
+ left: vi[0],
37
+ right: vi[1] || vi[0]
38
+ }
39
+ }
20
40
  }
21
41
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/atoms",
3
- "version": "2.11.304",
3
+ "version": "2.11.306",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "7844f8284253f6a9b992109e1af842910c20e806",
6
+ "gitHead": "1e09060438775f1b9cf1c5d6305024faefc05bfc",
7
7
  "dependencies": {
8
8
  "@domql/state": "latest",
9
9
  "@domql/utils": "latest",