@jsenv/navi 0.16.44 → 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.
@@ -4891,12 +4891,6 @@ const FLOW_PROPS = {
4891
4891
  box: () => {},
4892
4892
  row: () => {},
4893
4893
  column: () => {},
4894
-
4895
- position: PASS_THROUGH,
4896
- absolute: applyToCssPropWhenTruthy("position", "absolute", "static"),
4897
- relative: applyToCssPropWhenTruthy("position", "relative", "static"),
4898
- fixed: applyToCssPropWhenTruthy("position", "fixed", "static"),
4899
- sticky: applyToCssPropWhenTruthy("position", "sticky", "static"),
4900
4894
  };
4901
4895
  const OUTER_SPACING_PROPS = {
4902
4896
  margin: PASS_THROUGH,
@@ -5070,10 +5064,24 @@ const POSITION_PROPS = {
5070
5064
  }
5071
5065
  return undefined;
5072
5066
  },
5073
- left: PASS_THROUGH,
5074
- top: PASS_THROUGH,
5075
- bottom: PASS_THROUGH,
5076
- right: PASS_THROUGH,
5067
+ position: PASS_THROUGH,
5068
+ absolute: applyToCssPropWhenTruthy("position", "absolute", "static"),
5069
+ relative: applyToCssPropWhenTruthy("position", "relative", "static"),
5070
+ fixed: applyToCssPropWhenTruthy("position", "fixed", "static"),
5071
+ sticky: applyToCssPropWhenTruthy("position", "sticky", "static"),
5072
+ left: (value) => {
5073
+ return { left: value === true ? 0 : value };
5074
+ },
5075
+ // Allow to write <Box sticky top /> instead of <Box sticky top="0" />
5076
+ top: (value) => {
5077
+ return { top: value === true ? 0 : value };
5078
+ },
5079
+ bottom: (value) => {
5080
+ return { bottom: value === true ? 0 : value };
5081
+ },
5082
+ right: (value) => {
5083
+ return { right: value === true ? 0 : value };
5084
+ },
5077
5085
 
5078
5086
  transform: PASS_THROUGH,
5079
5087
  translateX: (value) => {