@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.
Files changed (86) hide show
  1. package/dist/package.json +5 -5
  2. package/dist/src/Checkbox/Checkbox.test.js +5 -1
  3. package/dist/src/ContentOverlay/hooks/useViewLayoutHeight.test.js +0 -24
  4. package/dist/src/Form/Form.js +3 -3
  5. package/dist/src/FormField/FormField.test.js +5 -1
  6. package/dist/src/InputFieldWrapper/InputFieldWrapper.style.js +1 -7
  7. package/dist/src/InputText/InputText.js +1 -5
  8. package/dist/src/InputText/InputText.test.js +5 -1
  9. package/dist/src/Select/Select.style.js +2 -23
  10. package/dist/src/Typography/Typography.js +2 -2
  11. package/dist/src/primitives/Select/SelectPrimitive.js +2 -6
  12. package/dist/src/utils/types.js +1 -0
  13. package/dist/tsconfig.build.tsbuildinfo +1 -1
  14. package/dist/tsconfig.json +4 -0
  15. package/dist/types/src/ActionItem/components/ActionItemContainer.style.d.ts +1 -1
  16. package/dist/types/src/Banner/Banner.style.d.ts +2 -2
  17. package/dist/types/src/Button/Button.style.d.ts +2 -2
  18. package/dist/types/src/Button/components/InternalButtonLoading/InternalButtonLoading.style.d.ts +9 -4
  19. package/dist/types/src/ButtonGroup/ButtonGroup.style.d.ts +1 -1
  20. package/dist/types/src/Card/Card.style.d.ts +1 -1
  21. package/dist/types/src/Checkbox/Checkbox.style.d.ts +2 -2
  22. package/dist/types/src/Checkbox/CheckboxGroup.style.d.ts +1 -1
  23. package/dist/types/src/ContentOverlay/BottomSheetKeyboardAwareScrollView.d.ts +2 -7
  24. package/dist/types/src/ContentOverlay/ContentOverlay.style.d.ts +1 -1
  25. package/dist/types/src/Disclosure/Disclosure.style.d.ts +1 -1
  26. package/dist/types/src/Divider/DividerHorizontal.style.d.ts +1 -1
  27. package/dist/types/src/Divider/DividerVertical.style.d.ts +1 -1
  28. package/dist/types/src/ErrorMessageWrapper/ErrorMessageWrapper.style.d.ts +4 -4
  29. package/dist/types/src/ErrorMessageWrapper/context/types.d.ts +3 -2
  30. package/dist/types/src/Flex/Flex.styles.d.ts +4 -4
  31. package/dist/types/src/Form/Form.style.d.ts +1 -1
  32. package/dist/types/src/Form/components/FormActionBar/FormActionBar.style.d.ts +1 -1
  33. package/dist/types/src/Form/components/FormBody/FormBody.style.d.ts +1 -1
  34. package/dist/types/src/Form/components/FormMask/FormMask.style.d.ts +2 -2
  35. package/dist/types/src/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.style.d.ts +1 -1
  36. package/dist/types/src/Form/hooks/useFormViewRefs.d.ts +2 -2
  37. package/dist/types/src/FormatFile/components/FileView/FileView.style.d.ts +5 -5
  38. package/dist/types/src/FormatFile/components/MediaView/MediaView.style.d.ts +4 -4
  39. package/dist/types/src/FormatFile/components/ProgressBar/ProgressBar.style.d.ts +2 -2
  40. package/dist/types/src/Glimmer/Glimmer.shape.style.d.ts +3 -3
  41. package/dist/types/src/Glimmer/Glimmer.style.d.ts +4 -4
  42. package/dist/types/src/InputFieldWrapper/CommonInputStyles.style.d.ts +3 -3
  43. package/dist/types/src/InputFieldWrapper/InputFieldWrapper.style.d.ts +4 -106
  44. package/dist/types/src/InputFieldWrapper/components/ClearAction/ClearAction.style.d.ts +1 -1
  45. package/dist/types/src/InputPressable/InputPressable.d.ts +3 -3
  46. package/dist/types/src/InputPressable/InputPressable.style.d.ts +11 -21
  47. package/dist/types/src/InputSearch/InputSearch.style.d.ts +3 -3
  48. package/dist/types/src/InputText/InputText.d.ts +2 -2
  49. package/dist/types/src/InputText/context/InputAccessoriesProvider.style.d.ts +8 -17
  50. package/dist/types/src/InputTime/InputTime.style.d.ts +3 -3
  51. package/dist/types/src/ProgressBar/ProgressBar.size.style.d.ts +2 -2
  52. package/dist/types/src/ProgressBar/ProgressBar.style.d.ts +4 -4
  53. package/dist/types/src/ProgressIndicator/ProgressIndicator.size.style.d.ts +2 -2
  54. package/dist/types/src/ProgressIndicator/ProgressIndicator.style.d.ts +5 -5
  55. package/dist/types/src/Select/Select.style.d.ts +12 -29
  56. package/dist/types/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.style.d.ts +4 -4
  57. package/dist/types/src/Switch/Switch.styles.d.ts +1 -1
  58. package/dist/types/src/TextList/TextList.style.d.ts +1 -1
  59. package/dist/types/src/Toast/Toast.styles.d.ts +1 -1
  60. package/dist/types/src/Typography/Typography.style.d.ts +1 -3
  61. package/dist/types/src/utils/types.d.ts +3 -0
  62. package/package.json +5 -5
  63. package/src/Checkbox/Checkbox.test.tsx +5 -1
  64. package/src/ContentOverlay/BottomSheetKeyboardAwareScrollView.tsx +9 -1
  65. package/src/ContentOverlay/ContentOverlay.tsx +2 -1
  66. package/src/ContentOverlay/hooks/useViewLayoutHeight.test.ts +3 -27
  67. package/src/ErrorMessageWrapper/ErrorMessageWrapper.tsx +2 -1
  68. package/src/ErrorMessageWrapper/context/ErrorMessageProvider.tsx +4 -3
  69. package/src/ErrorMessageWrapper/context/types.ts +3 -2
  70. package/src/Flex/Flex.styles.tsx +1 -1
  71. package/src/Form/Form.tsx +1 -1
  72. package/src/Form/components/FormActionBar/FormActionBar.tsx +2 -2
  73. package/src/Form/hooks/useFormViewRefs.ts +3 -3
  74. package/src/FormField/FormField.test.tsx +5 -1
  75. package/src/InputFieldWrapper/CommonInputStyles.style.ts +6 -5
  76. package/src/InputFieldWrapper/InputFieldWrapper.style.ts +32 -8
  77. package/src/InputPressable/InputPressable.style.ts +11 -1
  78. package/src/InputPressable/InputPressable.tsx +5 -3
  79. package/src/InputText/InputText.test.tsx +5 -1
  80. package/src/InputText/InputText.tsx +8 -8
  81. package/src/InputText/context/InputAccessoriesProvider.style.tsx +8 -2
  82. package/src/Select/Select.style.ts +31 -25
  83. package/src/Typography/Typography.style.ts +2 -1
  84. package/src/Typography/Typography.tsx +2 -2
  85. package/src/primitives/Select/SelectPrimitive.tsx +7 -6
  86. package/src/utils/types.ts +4 -0
@@ -4,6 +4,10 @@
4
4
  "outDir": "./dist",
5
5
  "module": "ESNext",
6
6
  "moduleResolution": "bundler",
7
+ "customConditions": [
8
+ "react-native",
9
+ "react-native-strict-api",
10
+ ],
7
11
  "skipLibCheck": true,
8
12
  "declaration": true,
9
13
  "declarationDir": "./dist/types",
@@ -1,6 +1,6 @@
1
1
  export declare const useStyles: () => {
2
2
  container: {
3
- width: "100%";
3
+ width: string;
4
4
  flexDirection: "row";
5
5
  paddingVertical: number;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  export declare const useStyles: () => {
2
2
  container: {
3
- width: "100%";
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: "100%";
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: "100%";
41
+ height: string;
42
42
  };
43
43
  contentWithLabel: {
44
44
  paddingLeft: number;
45
45
  };
46
46
  iconStyle: {
47
47
  position: "absolute";
48
- top: "50%";
48
+ top: string;
49
49
  left: number;
50
50
  transform: {
51
51
  translateY: number;
@@ -1,4 +1,9 @@
1
- import { StyleSheet } from "react-native";
2
- export declare const styles: {
3
- image: StyleSheet.AbsoluteFillStyle;
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,6 +1,6 @@
1
1
  export declare const useStyles: () => {
2
2
  buttonGroup: {
3
- width: "100%";
3
+ width: string;
4
4
  flexDirection: "row";
5
5
  justifyContent: "flex-end";
6
6
  gap: number;
@@ -1,6 +1,6 @@
1
1
  export declare const useStyles: () => {
2
2
  container: {
3
- width: "100%";
3
+ width: string;
4
4
  backgroundColor: string;
5
5
  };
6
6
  lowElevation: {
@@ -1,9 +1,9 @@
1
1
  export declare const useStyles: () => {
2
2
  container: {
3
- width: "100%";
3
+ width: string;
4
4
  };
5
5
  checkBoxContainer: {
6
- width: "100%";
6
+ width: string;
7
7
  justifyContent: "space-between";
8
8
  flexDirection: "row";
9
9
  alignItems: "center";
@@ -1,6 +1,6 @@
1
1
  export declare const useStyles: () => {
2
2
  container: {
3
- width: "100%";
3
+ width: string;
4
4
  justifyContent: "center";
5
5
  alignItems: "center";
6
6
  paddingHorizontal: number;
@@ -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: import("react").NamedExoticComponent<{
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 };
@@ -27,7 +27,7 @@ export declare const useStyles: () => {
27
27
  position: "absolute";
28
28
  top: number;
29
29
  height: number;
30
- width: "100%";
30
+ width: string;
31
31
  shadowColor: string;
32
32
  shadowOffset: {
33
33
  width: number;
@@ -1,6 +1,6 @@
1
1
  export declare const useStyles: () => {
2
2
  container: {
3
- width: "100%";
3
+ width: string;
4
4
  };
5
5
  headerContainer: {
6
6
  flexDirection: "row";
@@ -2,7 +2,7 @@ export declare const useHorizontalStyles: () => {
2
2
  base: {
3
3
  height: number;
4
4
  margin: number;
5
- width: "auto";
5
+ width: string;
6
6
  borderBottomColor: string;
7
7
  borderBottomWidth: number;
8
8
  };
@@ -1,7 +1,7 @@
1
1
  export declare const useVerticalStyles: () => {
2
2
  base: {
3
3
  margin: number;
4
- height: "100%";
4
+ height: string;
5
5
  width: number;
6
6
  borderRightWidth: number;
7
7
  borderRightColor: string;
@@ -1,7 +1,7 @@
1
1
  export declare const useStyles: () => {
2
2
  wrapper: {
3
3
  position: "relative";
4
- width: "100%";
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: "auto";
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: "100%";
27
- height: "100%";
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, View } from "react-native";
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<View | null>;
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<"small" | "base" | "none" | "smallest" | "smaller" | "large", ViewStyle>;
9
+ export declare const gapStyles: Record<Spacing, ViewStyle>;
@@ -2,7 +2,7 @@ export declare const useStyles: () => {
2
2
  container: {
3
3
  flex: number;
4
4
  flexGrow: number;
5
- width: "100%";
5
+ width: string;
6
6
  };
7
7
  safeArea: {
8
8
  backgroundColor: string;
@@ -10,6 +10,6 @@ export declare const useStyles: () => {
10
10
  elevation: number;
11
11
  padding: number;
12
12
  backgroundColor: string;
13
- width: "100%";
13
+ width: string;
14
14
  };
15
15
  };
@@ -2,7 +2,7 @@ export declare const useStyles: () => {
2
2
  container: {
3
3
  flex: number;
4
4
  flexGrow: number;
5
- width: "100%";
5
+ width: string;
6
6
  };
7
7
  safeArea: {
8
8
  backgroundColor: string;
@@ -1,8 +1,8 @@
1
1
  export declare const useStyles: () => {
2
2
  mask: {
3
3
  zIndex: number;
4
- width: "100%";
5
- height: "100%";
4
+ width: string;
5
+ height: string;
6
6
  position: "absolute";
7
7
  top: number;
8
8
  left: number;
@@ -11,7 +11,7 @@ export declare const useStyles: () => {
11
11
  zIndex: number;
12
12
  };
13
13
  scrollWrapper: {
14
- height: "100%";
14
+ height: string;
15
15
  };
16
16
  scrollWrapperContent: {
17
17
  flexGrow: number;
@@ -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<View | null>;
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: "100%";
14
+ width: string;
15
15
  display: "flex";
16
16
  alignItems: "center";
17
17
  };
18
18
  fileBackgroundGrid: {
19
- height: "100%";
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: "100%";
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: "100%";
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: "100%";
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: "100%";
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: "100%";
11
+ height: string;
12
12
  };
13
13
  overlay: {
14
- height: "100%";
14
+ height: string;
15
15
  backgroundColor: string;
16
16
  paddingHorizontal: number;
17
17
  };
18
18
  overlayError: {
19
- height: "100%";
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: "100%";
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: "100%";
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: "100%";
3
+ width: string;
4
4
  };
5
5
  square: {
6
- width: "auto";
6
+ width: string;
7
7
  aspectRatio: number;
8
8
  };
9
9
  circle: {
10
- width: "auto";
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: "100%";
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: "100%";
15
- height: "100%";
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: "100%";
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: Record<string, ViewStyle | TextStyle>;
9
- export declare const getCommonInputStyles: (tokens: AtlantisThemeContextValue["tokens"]) => Record<string, ViewStyle | TextStyle>;
10
- export declare const useCommonInputStyles: () => Record<string, ViewStyle | TextStyle>;
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
- export declare const useStyles: () => {
2
- container: import("react-native").ViewStyle;
3
- field: {
4
- flexDirection: "row";
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,7 +1,7 @@
1
1
  export declare const useStyles: () => {
2
2
  container: {
3
3
  width: number;
4
- height: "100%";
4
+ height: string;
5
5
  flexDirection: "row";
6
6
  justifyContent: "center";
7
7
  alignItems: "center";
@@ -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<NativeText>>;
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
- export declare const useStyles: () => {
2
- pressable: {
3
- flex: number;
4
- };
5
- inputPressableStyles: {
6
- paddingTop: number;
7
- lineHeight: number | undefined;
8
- };
9
- inputEmpty: {
10
- paddingTop: number;
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,5 +1,5 @@
1
- export declare const styles: {
1
+ export declare const styles: Readonly<{
2
2
  container: {
3
- width: "100%";
3
+ width: string;
4
4
  };
5
- };
5
+ }>;
@@ -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, "clear" | "focus" | "blur">;
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
- export declare const useStyles: () => {
2
- container: {
3
- flexDirection: "row";
4
- justifyContent: "flex-end";
5
- alignItems: "center";
6
- paddingHorizontal: number;
7
- borderTopWidth: number;
8
- borderTopColor: string;
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 {};