@jobber/components-native 0.116.2 → 0.116.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 +5 -5
- package/dist/src/Checkbox/Checkbox.test.js +5 -1
- package/dist/src/ContentOverlay/hooks/useViewLayoutHeight.test.js +0 -24
- package/dist/src/Form/Form.js +3 -3
- package/dist/src/FormField/FormField.test.js +5 -1
- package/dist/src/InputFieldWrapper/InputFieldWrapper.style.js +1 -7
- package/dist/src/InputText/InputText.js +1 -5
- package/dist/src/InputText/InputText.test.js +5 -1
- package/dist/src/Select/Select.style.js +2 -23
- package/dist/src/Typography/Typography.js +2 -2
- package/dist/src/primitives/Select/SelectPrimitive.js +2 -6
- package/dist/src/utils/types.js +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/tsconfig.json +4 -0
- package/dist/types/src/ActionItem/components/ActionItemContainer.style.d.ts +1 -1
- package/dist/types/src/Banner/Banner.style.d.ts +2 -2
- package/dist/types/src/Button/Button.style.d.ts +2 -2
- package/dist/types/src/Button/components/InternalButtonLoading/InternalButtonLoading.style.d.ts +9 -4
- package/dist/types/src/ButtonGroup/ButtonGroup.style.d.ts +1 -1
- package/dist/types/src/Card/Card.style.d.ts +1 -1
- package/dist/types/src/Checkbox/Checkbox.style.d.ts +2 -2
- package/dist/types/src/Checkbox/CheckboxGroup.style.d.ts +1 -1
- package/dist/types/src/ContentOverlay/BottomSheetKeyboardAwareScrollView.d.ts +2 -7
- package/dist/types/src/ContentOverlay/ContentOverlay.style.d.ts +1 -1
- package/dist/types/src/Disclosure/Disclosure.style.d.ts +1 -1
- package/dist/types/src/Divider/DividerHorizontal.style.d.ts +1 -1
- package/dist/types/src/Divider/DividerVertical.style.d.ts +1 -1
- package/dist/types/src/ErrorMessageWrapper/ErrorMessageWrapper.style.d.ts +4 -4
- package/dist/types/src/ErrorMessageWrapper/context/types.d.ts +3 -2
- package/dist/types/src/Flex/Flex.styles.d.ts +4 -4
- package/dist/types/src/Form/Form.style.d.ts +1 -1
- package/dist/types/src/Form/components/FormActionBar/FormActionBar.style.d.ts +1 -1
- package/dist/types/src/Form/components/FormBody/FormBody.style.d.ts +1 -1
- package/dist/types/src/Form/components/FormMask/FormMask.style.d.ts +2 -2
- package/dist/types/src/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.style.d.ts +1 -1
- package/dist/types/src/Form/hooks/useFormViewRefs.d.ts +2 -2
- package/dist/types/src/FormatFile/components/FileView/FileView.style.d.ts +5 -5
- package/dist/types/src/FormatFile/components/MediaView/MediaView.style.d.ts +4 -4
- package/dist/types/src/FormatFile/components/ProgressBar/ProgressBar.style.d.ts +2 -2
- package/dist/types/src/Glimmer/Glimmer.shape.style.d.ts +3 -3
- package/dist/types/src/Glimmer/Glimmer.style.d.ts +4 -4
- package/dist/types/src/InputFieldWrapper/CommonInputStyles.style.d.ts +3 -3
- package/dist/types/src/InputFieldWrapper/InputFieldWrapper.style.d.ts +4 -106
- package/dist/types/src/InputFieldWrapper/components/ClearAction/ClearAction.style.d.ts +1 -1
- package/dist/types/src/InputPressable/InputPressable.d.ts +3 -3
- package/dist/types/src/InputPressable/InputPressable.style.d.ts +11 -21
- package/dist/types/src/InputSearch/InputSearch.style.d.ts +3 -3
- package/dist/types/src/InputText/InputText.d.ts +2 -2
- package/dist/types/src/InputText/context/InputAccessoriesProvider.style.d.ts +8 -17
- package/dist/types/src/InputTime/InputTime.style.d.ts +3 -3
- package/dist/types/src/ProgressBar/ProgressBar.size.style.d.ts +2 -2
- package/dist/types/src/ProgressBar/ProgressBar.style.d.ts +4 -4
- package/dist/types/src/ProgressIndicator/ProgressIndicator.size.style.d.ts +2 -2
- package/dist/types/src/ProgressIndicator/ProgressIndicator.style.d.ts +5 -5
- package/dist/types/src/Select/Select.style.d.ts +12 -29
- package/dist/types/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.style.d.ts +4 -4
- package/dist/types/src/Switch/Switch.styles.d.ts +1 -1
- package/dist/types/src/TextList/TextList.style.d.ts +1 -1
- package/dist/types/src/Toast/Toast.styles.d.ts +1 -1
- package/dist/types/src/Typography/Typography.style.d.ts +1 -3
- package/dist/types/src/utils/types.d.ts +3 -0
- package/package.json +5 -5
- package/src/Checkbox/Checkbox.test.tsx +5 -1
- package/src/ContentOverlay/BottomSheetKeyboardAwareScrollView.tsx +9 -1
- package/src/ContentOverlay/ContentOverlay.tsx +2 -1
- package/src/ContentOverlay/hooks/useViewLayoutHeight.test.ts +3 -27
- package/src/ErrorMessageWrapper/ErrorMessageWrapper.tsx +2 -1
- package/src/ErrorMessageWrapper/context/ErrorMessageProvider.tsx +4 -3
- package/src/ErrorMessageWrapper/context/types.ts +3 -2
- package/src/Flex/Flex.styles.tsx +1 -1
- package/src/Form/Form.tsx +1 -1
- package/src/Form/components/FormActionBar/FormActionBar.tsx +2 -2
- package/src/Form/hooks/useFormViewRefs.ts +3 -3
- package/src/FormField/FormField.test.tsx +5 -1
- package/src/InputFieldWrapper/CommonInputStyles.style.ts +6 -5
- package/src/InputFieldWrapper/InputFieldWrapper.style.ts +32 -8
- package/src/InputPressable/InputPressable.style.ts +11 -1
- package/src/InputPressable/InputPressable.tsx +5 -3
- package/src/InputText/InputText.test.tsx +5 -1
- package/src/InputText/InputText.tsx +8 -8
- package/src/InputText/context/InputAccessoriesProvider.style.tsx +8 -2
- package/src/Select/Select.style.ts +31 -25
- package/src/Typography/Typography.style.ts +2 -1
- package/src/Typography/Typography.tsx +2 -2
- package/src/primitives/Select/SelectPrimitive.tsx +7 -6
- package/src/utils/types.ts +4 -0
package/dist/tsconfig.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const useStyles: () => {
|
|
2
2
|
container: {
|
|
3
|
-
width:
|
|
3
|
+
width: string;
|
|
4
4
|
borderColor: string;
|
|
5
5
|
borderStyle: "solid";
|
|
6
6
|
borderBottomWidth: number;
|
|
@@ -45,7 +45,7 @@ export declare const useStyles: () => {
|
|
|
45
45
|
marginTop: number;
|
|
46
46
|
};
|
|
47
47
|
fullWidth: {
|
|
48
|
-
width:
|
|
48
|
+
width: string;
|
|
49
49
|
};
|
|
50
50
|
bannerChildrenContent: {
|
|
51
51
|
marginBottom: number;
|
|
@@ -38,14 +38,14 @@ export declare const useStyles: () => {
|
|
|
38
38
|
};
|
|
39
39
|
content: {
|
|
40
40
|
paddingLeft: number;
|
|
41
|
-
height:
|
|
41
|
+
height: string;
|
|
42
42
|
};
|
|
43
43
|
contentWithLabel: {
|
|
44
44
|
paddingLeft: number;
|
|
45
45
|
};
|
|
46
46
|
iconStyle: {
|
|
47
47
|
position: "absolute";
|
|
48
|
-
top:
|
|
48
|
+
top: string;
|
|
49
49
|
left: number;
|
|
50
50
|
transform: {
|
|
51
51
|
translateY: number;
|
package/dist/types/src/Button/components/InternalButtonLoading/InternalButtonLoading.style.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export declare const styles: Readonly<{
|
|
2
|
+
image: Readonly<{
|
|
3
|
+
position: "absolute";
|
|
4
|
+
left: 0;
|
|
5
|
+
right: 0;
|
|
6
|
+
top: 0;
|
|
7
|
+
bottom: 0;
|
|
8
|
+
}>;
|
|
9
|
+
}>;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
+
import type { NamedExoticComponent, PropsWithoutRef, RefAttributes } from "react";
|
|
1
2
|
import type { KeyboardAwareScrollViewProps } from "react-native-keyboard-controller";
|
|
2
3
|
import { type BottomSheetScrollViewMethods } from "@gorhom/bottom-sheet";
|
|
3
|
-
declare const BottomSheetKeyboardAwareScrollView:
|
|
4
|
-
bottomOffset?: number;
|
|
5
|
-
disableScrollOnKeyboardHide?: boolean;
|
|
6
|
-
enabled?: boolean;
|
|
7
|
-
extraKeyboardSpace?: number;
|
|
8
|
-
ScrollViewComponent?: React.ComponentType<import("react-native").ScrollViewProps>;
|
|
9
|
-
} & import("react-native").ScrollViewProps & import("react").RefAttributes<BottomSheetScrollViewMethods>>;
|
|
4
|
+
declare const BottomSheetKeyboardAwareScrollView: NamedExoticComponent<PropsWithoutRef<KeyboardAwareScrollViewProps> & RefAttributes<BottomSheetScrollViewMethods>>;
|
|
10
5
|
export { BottomSheetKeyboardAwareScrollView };
|
|
11
6
|
export type { KeyboardAwareScrollViewProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const useStyles: () => {
|
|
2
2
|
wrapper: {
|
|
3
3
|
position: "relative";
|
|
4
|
-
width:
|
|
4
|
+
width: string;
|
|
5
5
|
};
|
|
6
6
|
wrapForCard: {
|
|
7
7
|
paddingHorizontal: number;
|
|
@@ -12,7 +12,7 @@ export declare const useStyles: () => {
|
|
|
12
12
|
};
|
|
13
13
|
messageWrapperIcon: {
|
|
14
14
|
flex: number;
|
|
15
|
-
flexBasis:
|
|
15
|
+
flexBasis: string;
|
|
16
16
|
paddingTop: number;
|
|
17
17
|
paddingRight: number;
|
|
18
18
|
};
|
|
@@ -23,7 +23,7 @@ export declare const useStyles: () => {
|
|
|
23
23
|
position: "absolute";
|
|
24
24
|
top: number;
|
|
25
25
|
left: number;
|
|
26
|
-
width:
|
|
27
|
-
height:
|
|
26
|
+
width: string;
|
|
27
|
+
height: string;
|
|
28
28
|
};
|
|
29
29
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { RefObject } from "react";
|
|
2
|
-
import type { NativeMethods
|
|
2
|
+
import type { NativeMethods } from "react-native";
|
|
3
|
+
import type { ViewRef } from "../../utils/types";
|
|
3
4
|
interface Methods {
|
|
4
5
|
/**
|
|
5
6
|
* Requires the method that returns
|
|
@@ -43,7 +44,7 @@ type ElementID = Element["id"];
|
|
|
43
44
|
export interface ErrorMessageContextRegisterParams {
|
|
44
45
|
readonly id: ElementID;
|
|
45
46
|
readonly hasErrorMessage: Methods["hasErrorMessage"];
|
|
46
|
-
readonly ref: RefObject<
|
|
47
|
+
readonly ref: RefObject<ViewRef | null>;
|
|
47
48
|
}
|
|
48
49
|
export interface ErrorMessageContextProps {
|
|
49
50
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ViewStyle } from "react-native";
|
|
2
|
-
import type { ColumnKeys } from "./types";
|
|
3
|
-
export declare const styles: {
|
|
2
|
+
import type { ColumnKeys, Spacing } from "./types";
|
|
3
|
+
export declare const styles: Readonly<{
|
|
4
4
|
row: {
|
|
5
5
|
flexDirection: "row";
|
|
6
6
|
};
|
|
7
|
-
}
|
|
7
|
+
}>;
|
|
8
8
|
export declare const columnStyles: Record<ColumnKeys, ViewStyle>;
|
|
9
|
-
export declare const gapStyles: Record<
|
|
9
|
+
export declare const gapStyles: Record<Spacing, ViewStyle>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { RefObject } from "react";
|
|
2
|
-
import type { View } from "react-native";
|
|
3
2
|
import type { KeyboardAwareScrollViewRef } from "react-native-keyboard-controller";
|
|
3
|
+
import type { ViewRef } from "../../utils/types";
|
|
4
4
|
interface UseFormViewRefsReturn {
|
|
5
5
|
readonly scrollViewRef: RefObject<KeyboardAwareScrollViewRef | null>;
|
|
6
|
-
readonly bottomViewRef: RefObject<
|
|
6
|
+
readonly bottomViewRef: RefObject<ViewRef | null>;
|
|
7
7
|
readonly scrollToTop: () => void;
|
|
8
8
|
}
|
|
9
9
|
export declare function useFormViewRefs(): UseFormViewRefsReturn;
|
|
@@ -11,12 +11,12 @@ export declare const useStyles: () => {
|
|
|
11
11
|
marginBottom: number;
|
|
12
12
|
};
|
|
13
13
|
fileBackground: {
|
|
14
|
-
width:
|
|
14
|
+
width: string;
|
|
15
15
|
display: "flex";
|
|
16
16
|
alignItems: "center";
|
|
17
17
|
};
|
|
18
18
|
fileBackgroundGrid: {
|
|
19
|
-
height:
|
|
19
|
+
height: string;
|
|
20
20
|
};
|
|
21
21
|
fileBackgroundFlat: {
|
|
22
22
|
justifyContent: "center";
|
|
@@ -32,7 +32,7 @@ export declare const useStyles: () => {
|
|
|
32
32
|
alignItems: "center";
|
|
33
33
|
borderTopColor: string;
|
|
34
34
|
borderTopWidth: number;
|
|
35
|
-
width:
|
|
35
|
+
width: string;
|
|
36
36
|
marginTop: number;
|
|
37
37
|
overflow: "hidden";
|
|
38
38
|
};
|
|
@@ -40,7 +40,7 @@ export declare const useStyles: () => {
|
|
|
40
40
|
alignItems: "center";
|
|
41
41
|
borderTopColor: string;
|
|
42
42
|
borderTopWidth: number;
|
|
43
|
-
width:
|
|
43
|
+
width: string;
|
|
44
44
|
overflow: "hidden";
|
|
45
45
|
};
|
|
46
46
|
fileNameGrid: {
|
|
@@ -58,7 +58,7 @@ export declare const useStyles: () => {
|
|
|
58
58
|
right: number;
|
|
59
59
|
bottom: number;
|
|
60
60
|
left: number;
|
|
61
|
-
height:
|
|
61
|
+
height: string;
|
|
62
62
|
paddingHorizontal: number;
|
|
63
63
|
};
|
|
64
64
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const useStyles: () => {
|
|
2
2
|
imageBackground: {
|
|
3
|
-
width:
|
|
3
|
+
width: string;
|
|
4
4
|
justifyContent: "center";
|
|
5
5
|
alignItems: "center";
|
|
6
6
|
};
|
|
@@ -8,15 +8,15 @@ export declare const useStyles: () => {
|
|
|
8
8
|
aspectRatio: number;
|
|
9
9
|
};
|
|
10
10
|
imageBackgroundGrid: {
|
|
11
|
-
height:
|
|
11
|
+
height: string;
|
|
12
12
|
};
|
|
13
13
|
overlay: {
|
|
14
|
-
height:
|
|
14
|
+
height: string;
|
|
15
15
|
backgroundColor: string;
|
|
16
16
|
paddingHorizontal: number;
|
|
17
17
|
};
|
|
18
18
|
overlayError: {
|
|
19
|
-
height:
|
|
19
|
+
height: string;
|
|
20
20
|
backgroundColor: string;
|
|
21
21
|
paddingHorizontal: number;
|
|
22
22
|
borderColor: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare const useStyles: () => {
|
|
2
2
|
container: {
|
|
3
|
-
width:
|
|
3
|
+
width: string;
|
|
4
4
|
height: number;
|
|
5
5
|
borderRadius: number;
|
|
6
6
|
overflow: "hidden";
|
|
7
7
|
backgroundColor: string;
|
|
8
8
|
};
|
|
9
9
|
progress: {
|
|
10
|
-
height:
|
|
10
|
+
height: string;
|
|
11
11
|
backgroundColor: string;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare const useShapeStyles: () => {
|
|
2
2
|
rectangle: {
|
|
3
|
-
width:
|
|
3
|
+
width: string;
|
|
4
4
|
};
|
|
5
5
|
square: {
|
|
6
|
-
width:
|
|
6
|
+
width: string;
|
|
7
7
|
aspectRatio: number;
|
|
8
8
|
};
|
|
9
9
|
circle: {
|
|
10
|
-
width:
|
|
10
|
+
width: string;
|
|
11
11
|
aspectRatio: number;
|
|
12
12
|
borderRadius: number;
|
|
13
13
|
};
|
|
@@ -3,7 +3,7 @@ export declare const useStyles: () => {
|
|
|
3
3
|
container: {
|
|
4
4
|
overflow: "hidden";
|
|
5
5
|
position: "relative";
|
|
6
|
-
width:
|
|
6
|
+
width: string;
|
|
7
7
|
height: number;
|
|
8
8
|
borderRadius: number;
|
|
9
9
|
};
|
|
@@ -11,8 +11,8 @@ export declare const useStyles: () => {
|
|
|
11
11
|
position: "absolute";
|
|
12
12
|
top: number;
|
|
13
13
|
left: number;
|
|
14
|
-
width:
|
|
15
|
-
height:
|
|
14
|
+
width: string;
|
|
15
|
+
height: string;
|
|
16
16
|
backgroundColor: string;
|
|
17
17
|
opacity: number;
|
|
18
18
|
};
|
|
@@ -21,6 +21,6 @@ export declare const useStyles: () => {
|
|
|
21
21
|
top: number;
|
|
22
22
|
left: number;
|
|
23
23
|
width: number;
|
|
24
|
-
height:
|
|
24
|
+
height: string;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
@@ -5,6 +5,6 @@ export declare const createCommonInputTokens: (tokens: AtlantisThemeContextValue
|
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated Use useCommonInputStyles instead
|
|
7
7
|
*/
|
|
8
|
-
export declare const commonInputStyles:
|
|
9
|
-
export declare const getCommonInputStyles: (tokens: AtlantisThemeContextValue["tokens"]) =>
|
|
10
|
-
export declare const useCommonInputStyles: () =>
|
|
8
|
+
export declare const commonInputStyles: ReturnType<typeof createCommonInputTokens>;
|
|
9
|
+
export declare const getCommonInputStyles: (tokens: AtlantisThemeContextValue["tokens"]) => ReturnType<typeof createCommonInputTokens>;
|
|
10
|
+
export declare const useCommonInputStyles: () => ReturnType<typeof getCommonInputStyles>;
|
|
@@ -1,106 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
alignItems: "center";
|
|
6
|
-
};
|
|
7
|
-
inputContainer: {
|
|
8
|
-
flexDirection: "row";
|
|
9
|
-
flex: number;
|
|
10
|
-
justifyContent: "flex-start";
|
|
11
|
-
};
|
|
12
|
-
inputFocused: {
|
|
13
|
-
borderColor: string;
|
|
14
|
-
};
|
|
15
|
-
inputInvalid: {
|
|
16
|
-
borderColor: string;
|
|
17
|
-
};
|
|
18
|
-
label: {
|
|
19
|
-
position: "absolute";
|
|
20
|
-
display: "flex";
|
|
21
|
-
justifyContent: "center";
|
|
22
|
-
top: number;
|
|
23
|
-
right: number;
|
|
24
|
-
bottom: number;
|
|
25
|
-
left: number;
|
|
26
|
-
zIndex: number;
|
|
27
|
-
};
|
|
28
|
-
miniLabel: {
|
|
29
|
-
top: number;
|
|
30
|
-
paddingTop: number;
|
|
31
|
-
backgroundColor: string;
|
|
32
|
-
marginRight: number;
|
|
33
|
-
maxHeight: number;
|
|
34
|
-
};
|
|
35
|
-
miniLabelShowClearAction: {
|
|
36
|
-
backgroundColor: string;
|
|
37
|
-
};
|
|
38
|
-
disabled: {
|
|
39
|
-
backgroundColor: string;
|
|
40
|
-
};
|
|
41
|
-
fieldAffix: {
|
|
42
|
-
flexDirection: "row";
|
|
43
|
-
};
|
|
44
|
-
fieldAffixMiniLabel: {
|
|
45
|
-
paddingTop: number;
|
|
46
|
-
top: number;
|
|
47
|
-
right: number;
|
|
48
|
-
bottom: number;
|
|
49
|
-
left: number;
|
|
50
|
-
};
|
|
51
|
-
prefixIcon: {
|
|
52
|
-
justifyContent: "center";
|
|
53
|
-
paddingRight: number;
|
|
54
|
-
};
|
|
55
|
-
prefixLabel: {
|
|
56
|
-
justifyContent: "center";
|
|
57
|
-
paddingTop: number;
|
|
58
|
-
paddingRight: number;
|
|
59
|
-
};
|
|
60
|
-
suffixIcon: {
|
|
61
|
-
justifyContent: "center";
|
|
62
|
-
paddingRight: number;
|
|
63
|
-
};
|
|
64
|
-
suffixLabel: {
|
|
65
|
-
justifyContent: "center";
|
|
66
|
-
paddingTop: number;
|
|
67
|
-
paddingRight: number;
|
|
68
|
-
};
|
|
69
|
-
suffixIconMargin: {
|
|
70
|
-
marginLeft: number;
|
|
71
|
-
};
|
|
72
|
-
suffixLabelMargin: {
|
|
73
|
-
marginLeft: number;
|
|
74
|
-
};
|
|
75
|
-
inputEndContainer: {
|
|
76
|
-
flexDirection: "row";
|
|
77
|
-
zIndex: number;
|
|
78
|
-
};
|
|
79
|
-
toolbar: {
|
|
80
|
-
flexBasis: "100%";
|
|
81
|
-
flexDirection: "row";
|
|
82
|
-
gap: number;
|
|
83
|
-
paddingBottom: number;
|
|
84
|
-
};
|
|
85
|
-
loadingSpinner: {
|
|
86
|
-
justifyContent: "center";
|
|
87
|
-
paddingRight: number;
|
|
88
|
-
};
|
|
89
|
-
loadingGlimmers: {
|
|
90
|
-
position: "absolute";
|
|
91
|
-
top: number;
|
|
92
|
-
bottom: number;
|
|
93
|
-
left: number;
|
|
94
|
-
right: number;
|
|
95
|
-
gap: number;
|
|
96
|
-
paddingTop: number;
|
|
97
|
-
paddingRight: number;
|
|
98
|
-
backgroundColor: string;
|
|
99
|
-
overflow: "hidden";
|
|
100
|
-
};
|
|
101
|
-
loadingGlimmersHasValue: {
|
|
102
|
-
top: number;
|
|
103
|
-
paddingTop: number;
|
|
104
|
-
bottom: number;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
1
|
+
import type { ViewStyle } from "react-native";
|
|
2
|
+
type Styles = Record<"container" | "field" | "inputContainer" | "inputFocused" | "inputInvalid" | "label" | "miniLabel" | "miniLabelShowClearAction" | "disabled" | "fieldAffix" | "fieldAffixMiniLabel" | "prefixIcon" | "prefixLabel" | "suffixIcon" | "suffixLabel" | "suffixIconMargin" | "suffixLabelMargin" | "inputEndContainer" | "toolbar" | "loadingSpinner" | "loadingGlimmers" | "loadingGlimmersHasValue", ViewStyle>;
|
|
3
|
+
export declare const useStyles: () => Styles;
|
|
4
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Ref } from "react";
|
|
1
|
+
import type { ComponentRef, Ref } from "react";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import type { IconNames } from "@jobber/design";
|
|
4
4
|
import type { FieldError } from "react-hook-form";
|
|
@@ -85,7 +85,7 @@ export interface InputPressableProps {
|
|
|
85
85
|
*/
|
|
86
86
|
readonly onClear?: () => void;
|
|
87
87
|
}
|
|
88
|
-
export type InputPressableRef = NativeText
|
|
89
|
-
export declare const InputPressable: React.ForwardRefExoticComponent<InputPressableProps & React.RefAttributes<
|
|
88
|
+
export type InputPressableRef = ComponentRef<typeof NativeText>;
|
|
89
|
+
export declare const InputPressable: React.ForwardRefExoticComponent<InputPressableProps & React.RefAttributes<InputPressableRef>>;
|
|
90
90
|
export declare function InputPressableInternal({ value, placeholder, disabled, invalid, error, showMiniLabel, onPress, accessibilityLabel, accessibilityHint, prefix, suffix, clearable, onClear, focused, }: InputPressableProps, ref: Ref<InputPressableRef>): React.JSX.Element;
|
|
91
91
|
export {};
|
|
@@ -1,21 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
inputDisabled: {
|
|
13
|
-
color: import("react-native").ColorValue | undefined;
|
|
14
|
-
};
|
|
15
|
-
inputInvalid: {
|
|
16
|
-
borderColor: string;
|
|
17
|
-
};
|
|
18
|
-
withoutMiniLabel: {
|
|
19
|
-
paddingTop: number;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
1
|
+
import type { TextStyle, ViewStyle } from "react-native";
|
|
2
|
+
interface Styles {
|
|
3
|
+
pressable: ViewStyle;
|
|
4
|
+
inputPressableStyles: TextStyle;
|
|
5
|
+
inputEmpty: TextStyle;
|
|
6
|
+
inputDisabled: TextStyle;
|
|
7
|
+
inputInvalid: ViewStyle;
|
|
8
|
+
withoutMiniLabel: TextStyle;
|
|
9
|
+
}
|
|
10
|
+
export declare const useStyles: () => Styles;
|
|
11
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SyntheticEvent } from "react";
|
|
1
|
+
import type { ComponentRef, SyntheticEvent } from "react";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import type { FocusEvent, StyleProp, TextInputProps, TextStyle } from "react-native";
|
|
4
4
|
import { TextInput } from "react-native";
|
|
@@ -174,6 +174,6 @@ export interface InputTextProps extends Pick<InputFieldWrapperProps, "toolbar" |
|
|
|
174
174
|
interface InputTextStyleOverride extends InputFieldStyleOverride {
|
|
175
175
|
inputText?: StyleProp<TextStyle>;
|
|
176
176
|
}
|
|
177
|
-
export type InputTextRef = Pick<TextInput
|
|
177
|
+
export type InputTextRef = Pick<ComponentRef<typeof TextInput>, "clear" | "focus" | "blur">;
|
|
178
178
|
export declare const InputText: React.ForwardRefExoticComponent<InputTextProps & React.RefAttributes<InputTextRef>>;
|
|
179
179
|
export {};
|
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
height: number;
|
|
10
|
-
};
|
|
11
|
-
lightTheme: {
|
|
12
|
-
backgroundColor: string;
|
|
13
|
-
};
|
|
14
|
-
darkTheme: {
|
|
15
|
-
backgroundColor: import("react-native").OpaqueColorValue;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
1
|
+
import { type ViewStyle } from "react-native";
|
|
2
|
+
interface Styles {
|
|
3
|
+
container: ViewStyle;
|
|
4
|
+
lightTheme: ViewStyle;
|
|
5
|
+
darkTheme: ViewStyle;
|
|
6
|
+
}
|
|
7
|
+
export declare const useStyles: () => Styles;
|
|
8
|
+
export {};
|