@jobber/components-native 0.73.4-add-progre-0e7ddb0.7 → 0.74.0

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.
@@ -0,0 +1,11 @@
1
+ export declare const sizeStyles: {
2
+ smaller: {
3
+ height: number;
4
+ };
5
+ small: {
6
+ height: number;
7
+ };
8
+ base: {
9
+ height: number;
10
+ };
11
+ };
@@ -2,7 +2,6 @@ export declare const styles: {
2
2
  progressBarContainer: {
3
3
  marginTop: number;
4
4
  marginBottom: number;
5
- height: number;
6
5
  position: "relative";
7
6
  flexDirection: "row";
8
7
  };
@@ -35,5 +35,5 @@ export interface ProgressBarProps {
35
35
  * Set the size of the progress bar
36
36
  * @default base
37
37
  */
38
- readonly size?: "base" | "small";
38
+ readonly size?: "smaller" | "small" | "base";
39
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components-native",
3
- "version": "0.73.4-add-progre-0e7ddb0.7+0e7ddb06",
3
+ "version": "0.74.0",
4
4
  "license": "MIT",
5
5
  "description": "React Native implementation of Atlantis",
6
6
  "repository": {
@@ -79,5 +79,5 @@
79
79
  "react-native-safe-area-context": "^4.5.2",
80
80
  "react-native-svg": ">=12.0.0"
81
81
  },
82
- "gitHead": "0e7ddb0673b03d9863a56f86c79d0cac6cdfaa61"
82
+ "gitHead": "f948ae04472c41f83586ec963321116721d680be"
83
83
  }
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
2
  import { RenderAPI, fireEvent, render } from "@testing-library/react-native";
3
- // eslint-disable-next-line no-restricted-imports
4
3
  import { Text, ViewStyle } from "react-native";
5
4
  import {
6
5
  InputFieldWrapper,
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
2
  import {
3
- // eslint-disable-next-line no-restricted-imports
4
3
  Text as RNText,
5
4
  StyleProp,
6
5
  TextStyle,
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
2
  import {
3
- // eslint-disable-next-line no-restricted-imports
4
3
  Text as RNText,
5
4
  StyleProp,
6
5
  TextStyle,
@@ -1,7 +1,6 @@
1
1
  import React from "react";
2
2
  import {
3
3
  Pressable,
4
- // eslint-disable-next-line no-restricted-imports
5
4
  Text as RNText,
6
5
  StyleProp,
7
6
  TextStyle,
@@ -3,7 +3,6 @@ import {
3
3
  InputAccessoryView,
4
4
  Keyboard,
5
5
  Platform,
6
- // eslint-disable-next-line no-restricted-imports
7
6
  Button as RNButton,
8
7
  View,
9
8
  useColorScheme,
@@ -0,0 +1,7 @@
1
+ import { StyleSheet } from "react-native";
2
+
3
+ export const sizeStyles = StyleSheet.create({
4
+ smaller: { height: 4 },
5
+ small: { height: 8 },
6
+ base: { height: 16 },
7
+ });
@@ -5,7 +5,6 @@ export const styles = StyleSheet.create({
5
5
  progressBarContainer: {
6
6
  marginTop: tokens["space-small"],
7
7
  marginBottom: tokens["space-small"],
8
- height: 20,
9
8
  position: "relative",
10
9
  flexDirection: "row",
11
10
  },
@@ -4,6 +4,7 @@ import { ProgressBarProps } from "./types";
4
4
  import { styles } from "./ProgressBar.style";
5
5
  import { ProgressBarInner, calculateWidth } from "./ProgressBarInner";
6
6
  import { ProgressBarStepped } from "./ProgressBarStepped";
7
+ import { sizeStyles } from "./ProgressBar.size.style";
7
8
  import { tokens } from "../utils/design";
8
9
  import { useAtlantisI18n } from "../hooks/useAtlantisI18n";
9
10
 
@@ -35,12 +36,7 @@ export function ProgressBar({
35
36
  inProgress={inProgress}
36
37
  />
37
38
  ) : (
38
- <View
39
- style={[
40
- styles.progressBarContainer,
41
- size === "small" && { height: 10 },
42
- ]}
43
- >
39
+ <View style={[styles.progressBarContainer, sizeStyles[size]]}>
44
40
  <ProgressBarInner
45
41
  width={100}
46
42
  animationDuration={0}
@@ -11,12 +11,13 @@ exports[`renders blue inProgress bar when 1 or more jobs is in progress 1`] = `
11
11
  [
12
12
  {
13
13
  "flexDirection": "row",
14
- "height": 20,
15
14
  "marginBottom": 8,
16
15
  "marginTop": 8,
17
16
  "position": "relative",
18
17
  },
19
- false,
18
+ {
19
+ "height": 16,
20
+ },
20
21
  ]
21
22
  }
22
23
  >
@@ -92,12 +93,13 @@ exports[`renders green CompletedProgress bar when 1 or more jobs is completed 1`
92
93
  [
93
94
  {
94
95
  "flexDirection": "row",
95
- "height": 20,
96
96
  "marginBottom": 8,
97
97
  "marginTop": 8,
98
98
  "position": "relative",
99
99
  },
100
- false,
100
+ {
101
+ "height": 16,
102
+ },
101
103
  ]
102
104
  }
103
105
  >
@@ -43,5 +43,5 @@ export interface ProgressBarProps {
43
43
  * Set the size of the progress bar
44
44
  * @default base
45
45
  */
46
- readonly size?: "base" | "small";
46
+ readonly size?: "smaller" | "small" | "base";
47
47
  }
@@ -4,7 +4,6 @@ import {
4
4
  I18nManager,
5
5
  StyleProp,
6
6
  StyleSheet,
7
- // eslint-disable-next-line no-restricted-imports
8
7
  Text,
9
8
  TextProps,
10
9
  TextStyle,