@jobber/components-native 0.75.0 → 0.75.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/Disclosure/Disclosure.js +2 -2
- package/dist/src/Form/components/FormCache/FormCache.js +0 -2
- package/dist/src/FormatFile/components/_mocks/mockFiles.js +1 -1
- package/dist/src/Heading/Heading.js +2 -2
- package/dist/src/Text/Text.js +2 -2
- package/dist/src/Typography/Typography.js +2 -4
- package/dist/src/utils/test/wait.js +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/src/ActionLabel/ActionLabel.d.ts +0 -1
- package/dist/types/src/ActivityIndicator/ActivityIndicator.d.ts +0 -1
- package/dist/types/src/AtlantisContext/AtlantisContext.d.ts +0 -1
- package/dist/types/src/AutoLink/AutoLink.d.ts +0 -1
- package/dist/types/src/AutoLink/components/ComposeTextWithLinks/ComposeTextWithLinks.d.ts +0 -1
- package/dist/types/src/AutoLink/components/Link/Link.d.ts +0 -1
- package/dist/types/src/Banner/Banner.d.ts +0 -1
- package/dist/types/src/Banner/components/BannerIcon/BannerIcon.d.ts +0 -1
- package/dist/types/src/BottomSheet/components/BottomSheetOption/BottomSheetOption.d.ts +0 -1
- package/dist/types/src/Button/Button.d.ts +0 -1
- package/dist/types/src/ButtonGroup/ButtonGroup.d.ts +0 -1
- package/dist/types/src/ButtonGroup/ButtonGroupAction.d.ts +0 -1
- package/dist/types/src/Checkbox/Checkbox.d.ts +0 -1
- package/dist/types/src/Checkbox/CheckboxGroup.d.ts +0 -1
- package/dist/types/src/Chip/Chip.d.ts +0 -1
- package/dist/types/src/ContentOverlay/ContentOverlay.d.ts +3 -2
- package/dist/types/src/Divider/Divider.d.ts +0 -1
- package/dist/types/src/EmptyState/EmptyState.d.ts +0 -1
- package/dist/types/src/ErrorMessageWrapper/context/ErrorMessageContext.d.ts +0 -1
- package/dist/types/src/Form/Form.d.ts +0 -1
- package/dist/types/src/Form/components/FormActionBar/FormActionBar.d.ts +0 -1
- package/dist/types/src/Form/components/FormBody/FormBody.d.ts +0 -1
- package/dist/types/src/Form/components/FormCache/FormCache.d.ts +0 -1
- package/dist/types/src/Form/components/FormErrorBanner/FormErrorBanner.d.ts +0 -1
- package/dist/types/src/Form/components/FormMask/FormMask.d.ts +0 -1
- package/dist/types/src/Form/components/FormMessage/FormMessage.d.ts +0 -2
- package/dist/types/src/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.d.ts +0 -1
- package/dist/types/src/Form/components/FormMessageBanner/FormMessageBanner.d.ts +0 -1
- package/dist/types/src/Form/components/FormSaveButton/FormSaveButton.d.ts +0 -1
- package/dist/types/src/Form/context/AtlantisFormContext.d.ts +0 -1
- package/dist/types/src/FormatFile/FormatFile.d.ts +0 -1
- package/dist/types/src/FormatFile/components/ErrorIcon/ErrorIcon.d.ts +0 -1
- package/dist/types/src/FormatFile/components/FileView/FileView.d.ts +0 -1
- package/dist/types/src/FormatFile/components/MediaView/MediaView.d.ts +0 -1
- package/dist/types/src/FormatFile/components/ProgressBar/ProgressBar.d.ts +0 -2
- package/dist/types/src/FormatFile/components/_mocks/mockFiles.d.ts +4 -4
- package/dist/types/src/FormatFile/context/FormatFileContext.d.ts +0 -1
- package/dist/types/src/Glimmer/Glimmer.d.ts +0 -1
- package/dist/types/src/Heading/Heading.d.ts +0 -1
- package/dist/types/src/Icon/Icon.d.ts +0 -1
- package/dist/types/src/InputCurrency/InputCurrency.d.ts +0 -1
- package/dist/types/src/InputDate/InputDate.d.ts +0 -1
- package/dist/types/src/InputFieldWrapper/components/ClearAction/ClearAction.d.ts +0 -1
- package/dist/types/src/InputFieldWrapper/components/Prefix/Prefix.d.ts +0 -1
- package/dist/types/src/InputFieldWrapper/components/Suffix/Suffix.d.ts +0 -1
- package/dist/types/src/InputSearch/components/FilterButton.d.ts +0 -1
- package/dist/types/src/InputText/context/InputAccessoriesContext.d.ts +0 -1
- package/dist/types/src/InputTime/InputTime.d.ts +0 -1
- package/dist/types/src/Menu/Menu.d.ts +0 -1
- package/dist/types/src/Menu/components/MenuOption/MenuOption.d.ts +0 -1
- package/dist/types/src/Menu/components/Overlay/Overlay.d.ts +0 -1
- package/dist/types/src/Menu/types.d.ts +0 -1
- package/dist/types/src/ProgressBar/ProgressBar.d.ts +0 -1
- package/dist/types/src/ProgressBar/ProgressBarInner.d.ts +0 -1
- package/dist/types/src/ProgressBar/ProgressBarStepped.d.ts +0 -1
- package/dist/types/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.d.ts +0 -1
- package/dist/types/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.ios.d.ts +0 -1
- package/dist/types/src/Select/components/SelectInternalPicker/SelectInternalPicker.d.ts +0 -1
- package/dist/types/src/Select/components/SelectPressable/SelectPressable.d.ts +0 -1
- package/dist/types/src/StatusLabel/StatusLabel.d.ts +0 -1
- package/dist/types/src/Switch/Switch.d.ts +0 -1
- package/dist/types/src/Switch/components/BaseSwitch/BaseSwitch.d.ts +0 -1
- package/dist/types/src/Text/Text.d.ts +0 -1
- package/dist/types/src/TextList/TextList.d.ts +0 -1
- package/dist/types/src/ThumbnailList/ThumbnailList.d.ts +0 -1
- package/dist/types/src/Toast/Toast.d.ts +0 -1
- package/package.json +2 -2
- package/src/Form/components/FormCache/FormCache.tsx +0 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { Modalize } from "react-native-modalize";
|
|
2
3
|
import { ContentOverlayProps } from "./types";
|
|
3
4
|
export declare const ContentOverlay: React.ForwardRefExoticComponent<ContentOverlayProps & React.RefAttributes<{
|
|
4
|
-
open?:
|
|
5
|
-
close?:
|
|
5
|
+
open?: Modalize["open"];
|
|
6
|
+
close?: Modalize["close"];
|
|
6
7
|
} | undefined>>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FormSaveButtonProps } from "../../types";
|
|
3
2
|
export declare function FormSaveButton({ primaryAction, loading, label, secondaryActions, setSecondaryActionLoading, onOpenBottomSheet, onCloseBottomSheet, }: FormSaveButtonProps): JSX.Element;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { File, FileUpload, StatusCode } from "../../types";
|
|
2
2
|
export declare const FILE_UPLOAD_MOCK_FILE: ({ progress, status, }: {
|
|
3
3
|
progress: number;
|
|
4
|
-
status?: StatusCode
|
|
4
|
+
status?: StatusCode;
|
|
5
5
|
}) => FileUpload;
|
|
6
6
|
export declare const FILE_UPLOAD_MOCK_IMAGE: ({ progress, size, status, }: {
|
|
7
7
|
progress: number;
|
|
8
|
-
size?: number
|
|
9
|
-
status?: StatusCode
|
|
8
|
+
size?: number;
|
|
9
|
+
status?: StatusCode;
|
|
10
10
|
}) => FileUpload;
|
|
11
11
|
export declare const FILE_UPLOAD_MOCK_PDF: ({ progress, status, }: {
|
|
12
12
|
progress: number;
|
|
13
|
-
status?: StatusCode
|
|
13
|
+
status?: StatusCode;
|
|
14
14
|
}) => FileUpload;
|
|
15
15
|
export declare const FILE_MOCK_PDF: File;
|
|
16
16
|
export declare const FILE_MOCK_VIDEO: File;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { InputAccessoriesContextProps } from "./types";
|
|
3
2
|
export declare const InputAccessoriesContext: import("react").Context<InputAccessoriesContextProps>;
|
|
4
3
|
export declare function useInputAccessoriesContext(): InputAccessoriesContextProps;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SelectInternalPickerProps } from "../../types";
|
|
3
2
|
type SelectDefaultPickerProps = SelectInternalPickerProps;
|
|
4
3
|
export declare function SelectDefaultPicker({ children, options, disabled, onChange, }: SelectDefaultPickerProps): JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components-native",
|
|
3
|
-
"version": "0.75.
|
|
3
|
+
"version": "0.75.1",
|
|
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": "
|
|
82
|
+
"gitHead": "621a745c5403d89930eca6ab091bc64ad8c8f5e4"
|
|
83
83
|
}
|
|
@@ -41,8 +41,6 @@ export function FormCache<T extends FieldValues>({
|
|
|
41
41
|
// https://github.com/react-hook-form/react-hook-form/issues/2978
|
|
42
42
|
setLocalCache(omit(formData, localCacheExclude));
|
|
43
43
|
} else {
|
|
44
|
-
// @ts-expect-error Typescript thinks that the FieldValues defined in useWatch is different
|
|
45
|
-
// from the one in useFormContext
|
|
46
44
|
setLocalCache(formData);
|
|
47
45
|
}
|
|
48
46
|
}, [formData, isDirty, localCacheExclude, setLocalCache, shouldExclude]);
|