@symbo.ls/atoms 2.11.306 → 2.11.309

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/Block.js CHANGED
@@ -77,6 +77,7 @@ export const Block = {
77
77
  borderWidth: ({ props, deps }) => deps.transformSizeRatio('borderWidth', props),
78
78
 
79
79
  padding: ({ props, deps }) => deps.transformSizeRatio('padding', props),
80
+ scrollPadding: ({ props, deps }) => deps.transformSizeRatio('scrollPadding', props),
80
81
  paddingInline: ({ props, deps }) => {
81
82
  if (typeof props.paddingInline !== 'string') return
82
83
  const [paddingInlineStart, paddingInlineEnd] = props.paddingInline.split(' ')
package/Collection.js CHANGED
@@ -17,19 +17,17 @@ export const Collection = {
17
17
 
18
18
  const { __ref: ref } = el
19
19
 
20
- if (isObjectLike(param)) param = deepClone(param)
21
-
22
20
  if (ref.__collectionCache) {
23
21
  const equals = JSON.stringify(param) === JSON.stringify(ref.__collectionCache)
24
22
  if (equals) {
25
23
  ref.__noCollectionDifference = true
26
24
  return
27
25
  } else {
28
- ref.__collectionCache = param
26
+ ref.__collectionCache = deepClone(param)
29
27
  delete ref.__noCollectionDifference
30
28
  }
31
29
  } else {
32
- ref.__collectionCache = param
30
+ ref.__collectionCache = deepClone(param)
33
31
  }
34
32
 
35
33
  const obj = {
package/Flex.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- import { isUndefined } from '@domql/utils'
3
+ import { isString } from '@domql/utils'
4
4
 
5
5
  export const Flex = {
6
6
  props: {
@@ -10,18 +10,18 @@ export const Flex = {
10
10
  class: {
11
11
  flow: ({ props }) => {
12
12
  const { flow, reverse } = props
13
- if (isUndefined(flow) && isUndefined(reverse)) return
13
+ if (!isString(flow)) return
14
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 {
18
- flexFlow: (direction || '') + (props.reverse ? '-reverse' : '') + ' ' + (wrap || '')
18
+ flexFlow: (direction || '') + (reverse ? '-reverse' : '') + ' ' + (wrap || '')
19
19
  }
20
20
  },
21
21
 
22
22
  wrap: ({ props }) => props.wrap && ({ flexWrap: props.wrap }),
23
23
  align: ({ props }) => {
24
- if (typeof props.align !== 'string') return
24
+ if (!isString(props.align)) return
25
25
  const [alignItems, justifyContent] = props.align.split(' ')
26
26
  return { alignItems, justifyContent }
27
27
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/atoms",
3
- "version": "2.11.306",
3
+ "version": "2.11.309",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "1e09060438775f1b9cf1c5d6305024faefc05bfc",
6
+ "gitHead": "22c3a3069fd57b6d539d661564f1ea9719a7f7cf",
7
7
  "dependencies": {
8
8
  "@domql/state": "latest",
9
9
  "@domql/utils": "latest",