@jobber/components-native 0.46.0 → 0.46.1
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 +2 -2
- package/dist/src/AtlantisContext/AtlantisContext.js +2 -2
- package/dist/src/Form/context/AtlantisFormContext.js +2 -2
- package/dist/src/InputText/context/InputAccessoriesContext.js +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/src/AtlantisContext/AtlantisContext.d.ts +1 -1
- package/dist/types/src/Form/context/AtlantisFormContext.d.ts +1 -1
- package/package.json +2 -2
- package/src/AtlantisContext/AtlantisContext.test.tsx +3 -2
- package/src/AtlantisContext/AtlantisContext.tsx +2 -2
- package/src/ButtonGroup/ButtonGroup.test.tsx +2 -2
- package/src/Form/Form.test.tsx +2 -2
- package/src/Form/components/FormErrorBanner/FormErrorBanner.test.tsx +2 -2
- package/src/Form/context/AtlantisFormContext.test.tsx +2 -3
- package/src/Form/context/AtlantisFormContext.tsx +4 -3
- package/src/InputCurrency/InputCurrency.test.tsx +2 -2
- package/src/InputDate/InputDate.test.tsx +4 -4
- package/src/InputText/context/InputAccessoriesContext.ts +4 -2
- package/src/InputTime/InputTime.test.tsx +3 -3
- package/src/hooks/useAtlantisI18n/useAtlantisI18n.test.ts +28 -7
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components-native",
|
|
3
|
-
"version": "0.46.
|
|
3
|
+
"version": "0.46.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "React Native implementation of Atlantis",
|
|
6
6
|
"repository": {
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"react-native-reanimated": "^2.17.0",
|
|
85
85
|
"react-native-safe-area-context": "^4.5.2"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "ebd19569f57d6c7ef08de4992894952452dfe583"
|
|
88
88
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import { createContext, useContext } from "react";
|
|
3
3
|
import { DEFAULT_CURRENCY_SYMBOL } from "../InputCurrency/constants";
|
|
4
|
-
export const
|
|
4
|
+
export const atlantisContextDefaultValues = {
|
|
5
5
|
dateFormat: "PP",
|
|
6
6
|
// The system time is "p"
|
|
7
7
|
timeFormat: "p",
|
|
@@ -18,7 +18,7 @@ export const defaultValues = {
|
|
|
18
18
|
return;
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
|
-
export const AtlantisContext = createContext(
|
|
21
|
+
export const AtlantisContext = createContext(atlantisContextDefaultValues);
|
|
22
22
|
export function useAtlantisContext() {
|
|
23
23
|
return useContext(AtlantisContext);
|
|
24
24
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext, useContext, useRef } from "react";
|
|
2
|
-
export const
|
|
2
|
+
export const atlantisFormContextDefaultValues = {
|
|
3
3
|
useConfirmBeforeBack: () => {
|
|
4
4
|
const ref = useRef(() => undefined);
|
|
5
5
|
return ref;
|
|
@@ -9,7 +9,7 @@ export const defaultValues = {
|
|
|
9
9
|
removeLocalCache: () => undefined,
|
|
10
10
|
}),
|
|
11
11
|
};
|
|
12
|
-
export const AtlantisFormContext = createContext(
|
|
12
|
+
export const AtlantisFormContext = createContext(atlantisFormContextDefaultValues);
|
|
13
13
|
export function useAtlantisFormContext() {
|
|
14
14
|
return useContext(AtlantisFormContext);
|
|
15
15
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext, useContext } from "react";
|
|
2
|
-
const
|
|
2
|
+
const inputAccessoriesContextDefaultValues = {
|
|
3
3
|
elements: {},
|
|
4
4
|
focusedInput: "",
|
|
5
5
|
canFocusNext: false,
|
|
@@ -11,7 +11,7 @@ const defaultValues = {
|
|
|
11
11
|
onFocusPrevious: () => undefined,
|
|
12
12
|
setFocusedInput: () => undefined,
|
|
13
13
|
};
|
|
14
|
-
export const InputAccessoriesContext = createContext(
|
|
14
|
+
export const InputAccessoriesContext = createContext(inputAccessoriesContextDefaultValues);
|
|
15
15
|
export function useInputAccessoriesContext() {
|
|
16
16
|
return useContext(InputAccessoriesContext);
|
|
17
17
|
}
|