@jobber/components-native 0.78.1-expose-ref-9ee8284.86 → 0.78.1-expose-ref-1f9384a.95

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components-native",
3
- "version": "0.78.1-expose-ref-9ee8284.86+9ee82844",
3
+ "version": "0.78.1-expose-ref-1f9384a.95+1f9384ac",
4
4
  "license": "MIT",
5
5
  "description": "React Native implementation of Atlantis",
6
6
  "repository": {
@@ -80,5 +80,5 @@
80
80
  "react-native-safe-area-context": "^4.5.2",
81
81
  "react-native-svg": ">=12.0.0"
82
82
  },
83
- "gitHead": "9ee828441b72af014ffb3239bc61f0d35f1ca841"
83
+ "gitHead": "1f9384acfe6a3e0c59d0b9b471934842404b0f77"
84
84
  }
@@ -3,14 +3,14 @@ import { View } from "react-native";
3
3
  import { useHorizontalStyles } from "./ContentHorizontal.style";
4
4
  import { useVerticalStyles } from "./ContentVertical.style";
5
5
  import { useSpaceAroundStyles } from "./ContentSpaceAround.style";
6
- export function Content({ children, spacing = "base", childSpacing = "base", direction = "vertical", }) {
6
+ export function Content({ children, spacing = "base", childSpacing = "base", direction = "vertical", UNSAFE_style, }) {
7
7
  const horizontalStyles = useHorizontalStyles();
8
8
  const verticalStyles = useVerticalStyles();
9
9
  const spaceAroundStyles = useSpaceAroundStyles();
10
10
  const styles = direction === "horizontal" ? horizontalStyles : verticalStyles;
11
11
  const styleName = `${spacing}Space`;
12
12
  const containerStyle = spaceAroundStyles[styleName];
13
- return (React.createElement(View, { style: [styles.wrapper, containerStyle] }, renderChildren()));
13
+ return (React.createElement(View, { style: [styles.wrapper, containerStyle, UNSAFE_style === null || UNSAFE_style === void 0 ? void 0 : UNSAFE_style.container] }, renderChildren()));
14
14
  function renderChildren() {
15
15
  const childArray = React.Children.toArray(children);
16
16
  if (childArray.length === 1)
@@ -18,10 +18,12 @@ export function Content({ children, spacing = "base", childSpacing = "base", dir
18
18
  const spaceName = `${childSpacing}ChildSpace`;
19
19
  const childContainerStyle = styles[spaceName];
20
20
  return childArray.map((child, index) => {
21
- // In order to get spacing between the children, we apply the child spacing on each of
22
- // the children except for the first (top) child
23
21
  const childStyle = index !== 0 ? [childContainerStyle] : [];
24
- return (React.createElement(View, { key: index, style: [styles.childWrapper, ...childStyle] }, child));
22
+ return (React.createElement(View, { key: index, style: [
23
+ styles.childWrapper,
24
+ ...childStyle,
25
+ UNSAFE_style === null || UNSAFE_style === void 0 ? void 0 : UNSAFE_style.childWrapper,
26
+ ] }, child));
25
27
  });
26
28
  }
27
29
  }