@jsenv/navi 0.16.45 → 0.16.46
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/dist/jsenv_navi.js +9 -8
- package/dist/jsenv_navi.js.map +3 -3
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -5069,17 +5069,18 @@ const POSITION_PROPS = {
|
|
|
5069
5069
|
relative: applyToCssPropWhenTruthy("position", "relative", "static"),
|
|
5070
5070
|
fixed: applyToCssPropWhenTruthy("position", "fixed", "static"),
|
|
5071
5071
|
sticky: applyToCssPropWhenTruthy("position", "sticky", "static"),
|
|
5072
|
-
left: (value
|
|
5073
|
-
return { left: value };
|
|
5072
|
+
left: (value) => {
|
|
5073
|
+
return { left: value === true ? 0 : value };
|
|
5074
5074
|
},
|
|
5075
|
-
top
|
|
5076
|
-
|
|
5075
|
+
// Allow to write <Box sticky top /> instead of <Box sticky top="0" />
|
|
5076
|
+
top: (value) => {
|
|
5077
|
+
return { top: value === true ? 0 : value };
|
|
5077
5078
|
},
|
|
5078
|
-
bottom: (value
|
|
5079
|
-
return { bottom: value };
|
|
5079
|
+
bottom: (value) => {
|
|
5080
|
+
return { bottom: value === true ? 0 : value };
|
|
5080
5081
|
},
|
|
5081
|
-
right: (value
|
|
5082
|
-
return { right: value };
|
|
5082
|
+
right: (value) => {
|
|
5083
|
+
return { right: value === true ? 0 : value };
|
|
5083
5084
|
},
|
|
5084
5085
|
|
|
5085
5086
|
transform: PASS_THROUGH,
|