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

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.
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { ProgressBarProps } from "./types";
3
- export declare function ProgressBar({ loading, total, current, inProgress, reverseTheme, header, variation, }: ProgressBarProps): JSX.Element;
3
+ export declare function ProgressBar({ loading, total, current, inProgress, reverseTheme, header, variation, size, }: ProgressBarProps): JSX.Element;
@@ -31,4 +31,9 @@ export interface ProgressBarProps {
31
31
  * @default progress
32
32
  */
33
33
  readonly variation?: "progress" | "stepped";
34
+ /**
35
+ * Set the size of the progress bar
36
+ * @default base
37
+ */
38
+ readonly size?: "base" | "small";
34
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components-native",
3
- "version": "0.73.2",
3
+ "version": "0.73.4-add-progre-0e7ddb0.7+0e7ddb06",
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": "3f58a9109fa4ae2a15ebf8280390a35f7c706fe5"
82
+ "gitHead": "0e7ddb0673b03d9863a56f86c79d0cac6cdfaa61"
83
83
  }
@@ -15,6 +15,7 @@ export function ProgressBar({
15
15
  reverseTheme = false,
16
16
  header,
17
17
  variation = "progress",
18
+ size = "base",
18
19
  }: ProgressBarProps): JSX.Element {
19
20
  const { t } = useAtlantisI18n();
20
21
 
@@ -34,7 +35,12 @@ export function ProgressBar({
34
35
  inProgress={inProgress}
35
36
  />
36
37
  ) : (
37
- <View style={styles.progressBarContainer}>
38
+ <View
39
+ style={[
40
+ styles.progressBarContainer,
41
+ size === "small" && { height: 10 },
42
+ ]}
43
+ >
38
44
  <ProgressBarInner
39
45
  width={100}
40
46
  animationDuration={0}
@@ -8,13 +8,16 @@ exports[`renders blue inProgress bar when 1 or more jobs is in progress 1`] = `
8
8
  >
9
9
  <View
10
10
  style={
11
- {
12
- "flexDirection": "row",
13
- "height": 20,
14
- "marginBottom": 8,
15
- "marginTop": 8,
16
- "position": "relative",
17
- }
11
+ [
12
+ {
13
+ "flexDirection": "row",
14
+ "height": 20,
15
+ "marginBottom": 8,
16
+ "marginTop": 8,
17
+ "position": "relative",
18
+ },
19
+ false,
20
+ ]
18
21
  }
19
22
  >
20
23
  <View
@@ -86,13 +89,16 @@ exports[`renders green CompletedProgress bar when 1 or more jobs is completed 1`
86
89
  >
87
90
  <View
88
91
  style={
89
- {
90
- "flexDirection": "row",
91
- "height": 20,
92
- "marginBottom": 8,
93
- "marginTop": 8,
94
- "position": "relative",
95
- }
92
+ [
93
+ {
94
+ "flexDirection": "row",
95
+ "height": 20,
96
+ "marginBottom": 8,
97
+ "marginTop": 8,
98
+ "position": "relative",
99
+ },
100
+ false,
101
+ ]
96
102
  }
97
103
  >
98
104
  <View
@@ -38,4 +38,10 @@ export interface ProgressBarProps {
38
38
  * @default progress
39
39
  */
40
40
  readonly variation?: "progress" | "stepped";
41
+
42
+ /**
43
+ * Set the size of the progress bar
44
+ * @default base
45
+ */
46
+ readonly size?: "base" | "small";
41
47
  }
@@ -133,6 +133,7 @@ export function Select({
133
133
  styleOverride={{
134
134
  container: { paddingLeft: undefined },
135
135
  }}
136
+ assistiveText={assistiveText}
136
137
  >
137
138
  <View
138
139
  testID={getTestID(testID)}
@@ -174,16 +175,6 @@ export function Select({
174
175
  </View>
175
176
  </View>
176
177
  </SelectInternalPicker>
177
-
178
- {assistiveText && (
179
- <Text
180
- level="textSupporting"
181
- variation={textVariation}
182
- hideFromScreenReader={true}
183
- >
184
- {assistiveText}
185
- </Text>
186
- )}
187
178
  </View>
188
179
  </InputFieldWrapper>
189
180
  );