@jobber/components-native 0.105.1 → 0.105.3

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.105.1",
3
+ "version": "0.105.3",
4
4
  "license": "MIT",
5
5
  "description": "React Native implementation of Atlantis",
6
6
  "repository": {
@@ -71,7 +71,7 @@
71
71
  "devDependencies": {
72
72
  "@babel/runtime": "^7.29.2",
73
73
  "@gorhom/bottom-sheet": "^5.2.8",
74
- "@jobber/design": "0.102.0",
74
+ "@jobber/design": "0.103.0",
75
75
  "@jobber/hooks": "2.21.0",
76
76
  "@react-native-community/datetimepicker": "^8.4.5",
77
77
  "@react-native/babel-preset": "^0.82.1",
@@ -122,5 +122,5 @@
122
122
  "react-native-screens": ">=4.18.0",
123
123
  "react-native-svg": ">=12.0.0"
124
124
  },
125
- "gitHead": "fff8aa8019d89e4a0d517f1eb963c8442935a16d"
125
+ "gitHead": "85613843d134dfa6dee673b87293f5e0ceb3bfa5"
126
126
  }
@@ -123,7 +123,7 @@ function FullMotionRing({ pixelSize, strokeWidth, arcColor, trackColor, style, t
123
123
  strokeDashoffset: offset,
124
124
  };
125
125
  });
126
- return (React.createElement(Animated.View, Object.assign({ style: [{ width: pixelSize, height: pixelSize }, style], testID: testID }, a11yProps),
126
+ return (React.createElement(Animated.View, Object.assign({ style: [{ justifyContent: "center", alignItems: "center" }, style] }, a11yProps, { testID: testID }),
127
127
  React.createElement(Animated.View, { style: [{ width: pixelSize, height: pixelSize }, outerStyle] },
128
128
  React.createElement(Animated.View, { style: [{ width: pixelSize, height: pixelSize }, innerStyle] },
129
129
  React.createElement(Svg, { width: pixelSize, height: pixelSize, viewBox: `0 0 ${VIEWBOX} ${VIEWBOX}` },
@@ -164,7 +164,8 @@ function ReducedMotionRing({ pixelSize, strokeWidth, ringColor, style, testID, a
164
164
  const animatedStyle = useAnimatedStyle(() => ({
165
165
  opacity: pulse.value,
166
166
  }));
167
- return (React.createElement(Animated.View, Object.assign({ style: [{ width: pixelSize, height: pixelSize }, animatedStyle, style], testID: testID }, a11yProps),
168
- React.createElement(Svg, { width: pixelSize, height: pixelSize, viewBox: `0 0 ${VIEWBOX} ${VIEWBOX}` },
169
- React.createElement(Circle, { cx: CENTER, cy: CENTER, r: RADIUS, fill: "none", stroke: ringColor, strokeWidth: strokeWidth }))));
167
+ return (React.createElement(Animated.View, Object.assign({ style: [{ justifyContent: "center", alignItems: "center" }, style], testID: testID }, a11yProps),
168
+ React.createElement(Animated.View, { style: [{ width: pixelSize, height: pixelSize }, animatedStyle] },
169
+ React.createElement(Svg, { width: pixelSize, height: pixelSize, viewBox: `0 0 ${VIEWBOX} ${VIEWBOX}` },
170
+ React.createElement(Circle, { cx: CENTER, cy: CENTER, r: RADIUS, fill: "none", stroke: ringColor, strokeWidth: strokeWidth })))));
170
171
  }
@@ -33,7 +33,7 @@ describe("ActivityIndicator", () => {
33
33
  });
34
34
  it("renders at the base (44px) size by default", () => {
35
35
  const { getByTestId } = render(React.createElement(ActivityIndicator, null));
36
- const root = getByTestId(testId);
36
+ const root = getByTestId(testId).children[0];
37
37
  const flattenedStyle = Array.isArray(root.props.style)
38
38
  ? Object.assign({}, ...root.props.style.flat(Infinity).filter(Boolean))
39
39
  : root.props.style;
@@ -44,7 +44,7 @@ describe("ActivityIndicator", () => {
44
44
  describe("size variants", () => {
45
45
  it("renders the small ring at 28px", () => {
46
46
  const { getByTestId } = render(React.createElement(ActivityIndicator, { size: "small" }));
47
- const root = getByTestId(testId);
47
+ const root = getByTestId(testId).children[0];
48
48
  const flattenedStyle = Array.isArray(root.props.style)
49
49
  ? Object.assign({}, ...root.props.style.flat(Infinity).filter(Boolean))
50
50
  : root.props.style;
@@ -53,7 +53,7 @@ describe("ActivityIndicator", () => {
53
53
  });
54
54
  it("renders the base ring at 44px when size is explicit", () => {
55
55
  const { getByTestId } = render(React.createElement(ActivityIndicator, { size: "base" }));
56
- const root = getByTestId(testId);
56
+ const root = getByTestId(testId).children[0];
57
57
  const flattenedStyle = Array.isArray(root.props.style)
58
58
  ? Object.assign({}, ...root.props.style.flat(Infinity).filter(Boolean))
59
59
  : root.props.style;
@@ -71,7 +71,7 @@ describe("ActivityIndicator", () => {
71
71
  });
72
72
  it('maps size="large" to size="base" visually', () => {
73
73
  const { getByTestId } = render(React.createElement(ActivityIndicator, { size: "large" }));
74
- const root = getByTestId(testId);
74
+ const root = getByTestId(testId).children[0];
75
75
  const flattenedStyle = Array.isArray(root.props.style)
76
76
  ? Object.assign({}, ...root.props.style.flat(Infinity).filter(Boolean))
77
77
  : root.props.style;
@@ -131,7 +131,7 @@ describe("ActivityIndicator", () => {
131
131
  it("renders the reduced-motion ring when the OS setting is on", () => {
132
132
  useReducedMotion.mockReturnValue(true);
133
133
  const { getByTestId } = render(React.createElement(ActivityIndicator, null));
134
- const root = getByTestId(testId);
134
+ const root = getByTestId(testId).children[0];
135
135
  // The reduced-motion presentation renders a single static <Circle>
136
136
  // wrapped in one Animated.View — the full-motion presentation renders
137
137
  // three nested Animated.Views. We can distinguish by the children