@symbo.ls/atoms 2.11.261 → 2.11.263

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 (2) hide show
  1. package/Block.js +5 -5
  2. package/package.json +2 -2
package/Block.js CHANGED
@@ -28,7 +28,7 @@ export const Block = {
28
28
  display: props.display
29
29
  }),
30
30
 
31
- hide: ({ props }) => !isUndefined(props.hide) && ({
31
+ hide: ({ props }) => props.hide && ({
32
32
  display: 'none !important'
33
33
  }),
34
34
 
@@ -58,8 +58,8 @@ export const Block = {
58
58
  minHeight: ({ props, deps }) => deps.transformSizeRatio('minHeight', props),
59
59
  maxHeight: ({ props, deps }) => deps.transformSizeRatio('maxHeight', props),
60
60
  heightRange: ({ props, deps }) => {
61
- if (typeof props.widthRange !== 'string') return
62
- const [minHeight, maxHeight] = props.widthRange.split(' ')
61
+ if (typeof props.heightRange !== 'string') return
62
+ const [minHeight, maxHeight] = props.heightRange.split(' ')
63
63
  return {
64
64
  ...deps.transformSize('minHeight', minHeight),
65
65
  ...deps.transformSize('maxHeight', maxHeight || minHeight)
@@ -125,7 +125,7 @@ export const Block = {
125
125
  }),
126
126
  gridArea: ({ props, deps }) => props.gridArea && ({ gridArea: props.gridArea }),
127
127
 
128
- flex: ({ props }) => !isUndefined(props.flex) && ({
128
+ flex: ({ props }) => props.flex && ({
129
129
  flex: props.flex
130
130
  }),
131
131
  flexDirection: ({ props }) => !isUndefined(props.flexDirection) && ({
@@ -146,7 +146,7 @@ export const Block = {
146
146
  alignSelf: ({ props }) => !isUndefined(props.alignSelf) && ({
147
147
  alignSelf: props.alignSelf
148
148
  }),
149
- order: ({ props }) => !isUndefined(props.order) && ({
149
+ order: ({ props }) => props.order && ({
150
150
  order: props.order
151
151
  }),
152
152
 
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/atoms",
3
- "version": "2.11.261",
3
+ "version": "2.11.263",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "53e63702105d8c7baf0f136c5756383533bf3b30",
6
+ "gitHead": "d9a23448de2c05c7eb8577e0f53eecd2513a5041",
7
7
  "dependencies": {
8
8
  "@domql/state": "latest",
9
9
  "@domql/utils": "latest",