@symbo.ls/atoms 2.11.270 → 2.11.277

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
@@ -103,16 +103,16 @@ export const Block = {
103
103
  if (typeof props.marginInline !== 'string') return
104
104
  const [marginInlineStart, marginInlineEnd] = props.marginInline.split(' ')
105
105
  return {
106
- ...deps.getSpacingByKey('marginInlineStart', marginInlineStart),
107
- ...deps.getSpacingByKey('marginInlineEnd', marginInlineEnd || marginInlineStart)
106
+ ...deps.transformSize('marginInlineStart', marginInlineStart),
107
+ ...deps.transformSize('marginInlineEnd', marginInlineEnd || marginInlineStart)
108
108
  }
109
109
  },
110
110
  marginBlock: ({ props, deps }) => {
111
111
  if (typeof props.marginBlock !== 'string') return
112
112
  const [marginBlockStart, marginBlockEnd] = props.marginBlock.split(' ')
113
113
  return {
114
- ...deps.getSpacingByKey('marginBlockStart', marginBlockStart),
115
- ...deps.getSpacingByKey('marginBlockEnd', marginBlockEnd || marginBlockStart)
114
+ ...deps.transformSize('marginBlockStart', marginBlockStart),
115
+ ...deps.transformSize('marginBlockEnd', marginBlockEnd || marginBlockStart)
116
116
  }
117
117
  },
118
118
  marginInlineStart: ({ props, deps }) => deps.transformSizeRatio('marginInlineStart', props),
package/Collection.js CHANGED
@@ -71,7 +71,7 @@ export const Collection = {
71
71
  return data
72
72
  },
73
73
 
74
- $setStateCollection: (param, el, state) => {
74
+ $stateCollection: (param, el, state) => {
75
75
  if (!param) return
76
76
 
77
77
  if (isString(param)) {
@@ -114,7 +114,7 @@ export const Collection = {
114
114
  return obj
115
115
  },
116
116
 
117
- $setPropsCollection: (param, el, state) => {
117
+ $propsCollection: (param, el, state) => {
118
118
  if (!param) return
119
119
 
120
120
  if (isString(param)) {
@@ -155,7 +155,7 @@ export const Collection = {
155
155
  el.content = obj
156
156
 
157
157
  // const set = () => {
158
- // el.set(obj, { preventDefineUpdate: '$setPropsCollection' })
158
+ // el.set(obj, { preventDefineUpdate: '$propsCollection' })
159
159
  // }
160
160
 
161
161
  // if (el.props && el.props.lazyLoad) {
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/atoms",
3
- "version": "2.11.270",
3
+ "version": "2.11.277",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "4694cb8cc07ed7dd10624ad23e3ea5de7f45881a",
6
+ "gitHead": "5c53dc0f4f9da030b53f8925109157365b8cd3de",
7
7
  "dependencies": {
8
8
  "@domql/state": "latest",
9
9
  "@domql/utils": "latest",