@symbo.ls/atoms 2.11.111 → 2.11.114

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 (3) hide show
  1. package/Block.js +11 -1
  2. package/Media.js +1 -1
  3. package/package.json +2 -2
package/Block.js CHANGED
@@ -171,6 +171,16 @@ export const List = {
171
171
 
172
172
  export const Gutter = {
173
173
  props: {
174
- boxSize: 'C1',
174
+ size: 'C1'
175
175
  },
176
+ class: {
177
+ size: ({ props }) => {
178
+ if (typeof props.size !== 'string') return
179
+ const [height, width] = props.size.split(' ')
180
+ return {
181
+ ...getSpacingByKey(height, 'height'),
182
+ ...getSpacingByKey(width || height, 'width')
183
+ }
184
+ }
185
+ }
176
186
  }
package/Media.js CHANGED
@@ -150,7 +150,7 @@ const beforeClassAssign = (element, s) => {
150
150
  }
151
151
 
152
152
 
153
- const parentProps = element.parent.props
153
+ const parentProps = element.parent && element.parent.props
154
154
  if (parentProps && parentProps.spacingRatio && parentProps.inheritSpacingRatio) {
155
155
  element.setProps({
156
156
  spacingRatio: parentProps.spacingRatio,
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/atoms",
3
- "version": "2.11.111",
3
+ "version": "2.11.114",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "aa3de4cf73a9919ac866233c63cc5879c8e1fac8",
6
+ "gitHead": "9d866c6f842526ba2090e0b09c9178de6fec41a9",
7
7
  "dependencies": {
8
8
  "@domql/state": "latest",
9
9
  "@domql/utils": "latest",