@symbo.ls/atoms 2.11.345 → 2.11.348

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
@@ -213,6 +213,8 @@ export const Block = {
213
213
  resize: props.resize
214
214
  }),
215
215
 
216
+ verticalAlign: ({ props }) => !isUndefined(props.verticalAlign) && ({ flexWrap: props.verticalAlign }),
217
+
216
218
  columns: ({ props }) => !isUndefined(props.columns) && ({
217
219
  columns: props.columns
218
220
  }),
package/Collection.js CHANGED
@@ -9,8 +9,11 @@ export const Collection = {
9
9
  const { __ref: ref } = el
10
10
  const hasChildren = isArray(el.props?.children)
11
11
 
12
- if (hasChildren) param = el.props?.children
13
- else if (!param) return
12
+ if (hasChildren) {
13
+ param = el.props?.children
14
+ const childrenAs = el.props?.childrenAs
15
+ if (childrenAs) param = param.map(v => ({ [childrenAs]: v }))
16
+ } else if (!param) return
14
17
 
15
18
  if (isString(param)) {
16
19
  if (param === 'state') param = state.parse()
package/Flex.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- import { isString, isUndefined } from '@domql/utils'
3
+ import { isString } from '@domql/utils'
4
4
 
5
5
  export const Flex = {
6
6
  props: {
@@ -19,8 +19,6 @@ export const Flex = {
19
19
  }
20
20
  },
21
21
 
22
- verticalAlign: ({ props }) => !isUndefined(props.verticalAlign) && ({ flexWrap: props.verticalAlign }),
23
-
24
22
  wrap: ({ props }) => props.wrap && ({ flexWrap: props.wrap }),
25
23
  align: ({ props }) => {
26
24
  if (!isString(props.align)) return
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/atoms",
3
- "version": "2.11.345",
3
+ "version": "2.11.348",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "16dfb3da91effacbd9aa6c6f7e0a6d222c54e83d",
6
+ "gitHead": "8e803e4354ac436a9ea39c37fd02bc72bccbf132",
7
7
  "dependencies": {
8
8
  "@domql/state": "latest",
9
9
  "@domql/utils": "latest",