@jobber/components-native 0.90.1-JOB-142149-547612b.8 → 0.91.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/Form/Form.js +1 -1
- package/dist/src/Form/components/FormBody/FormBody.js +5 -5
- package/dist/src/FormatFile/components/MediaView/MediaView.js +22 -5
- package/dist/src/InputDate/InputDate.js +2 -2
- package/dist/src/InputFieldWrapper/InputFieldWrapper.js +14 -12
- package/dist/src/InputFieldWrapper/components/Prefix/Prefix.js +5 -2
- package/dist/src/InputFieldWrapper/components/Suffix/Suffix.js +5 -2
- package/dist/src/InputPressable/InputPressable.js +20 -8
- package/dist/src/InputPressable/InputPressable.style.js +3 -0
- package/dist/src/InputText/InputText.js +22 -11
- package/dist/src/InputText/InputText.style.js +4 -0
- package/dist/src/InputTime/InputTime.js +2 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/src/InputDate/InputDate.d.ts +2 -1
- package/dist/types/src/InputFieldWrapper/InputFieldWrapper.d.ts +9 -2
- package/dist/types/src/InputFieldWrapper/components/Prefix/Prefix.d.ts +2 -3
- package/dist/types/src/InputFieldWrapper/components/Suffix/Suffix.d.ts +2 -3
- package/dist/types/src/InputPressable/InputPressable.d.ts +9 -1
- package/dist/types/src/InputPressable/InputPressable.style.d.ts +3 -0
- package/dist/types/src/InputSearch/InputSearch.d.ts +1 -1
- package/dist/types/src/InputText/InputText.d.ts +8 -0
- package/dist/types/src/InputText/InputText.style.d.ts +4 -0
- package/dist/types/src/InputTime/InputTime.d.ts +2 -1
- package/package.json +2 -2
- package/src/Form/Form.tsx +1 -0
- package/src/Form/components/FormBody/FormBody.tsx +6 -6
- package/src/FormatFile/components/MediaView/MediaView.test.tsx +283 -0
- package/src/FormatFile/components/MediaView/MediaView.tsx +27 -6
- package/src/InputDate/InputDate.tsx +5 -1
- package/src/InputFieldWrapper/InputFieldWrapper.test.tsx +48 -1
- package/src/InputFieldWrapper/InputFieldWrapper.tsx +38 -28
- package/src/InputFieldWrapper/components/Prefix/Prefix.test.tsx +3 -5
- package/src/InputFieldWrapper/components/Prefix/Prefix.tsx +6 -4
- package/src/InputFieldWrapper/components/Suffix/Suffix.test.tsx +2 -4
- package/src/InputFieldWrapper/components/Suffix/Suffix.tsx +6 -4
- package/src/InputPressable/InputPressable.style.ts +4 -0
- package/src/InputPressable/InputPressable.test.tsx +75 -1
- package/src/InputPressable/InputPressable.tsx +33 -7
- package/src/InputSearch/InputSearch.tsx +1 -0
- package/src/InputText/InputText.style.ts +5 -0
- package/src/InputText/InputText.test.tsx +75 -0
- package/src/InputText/InputText.tsx +32 -12
- package/src/InputTime/InputTime.tsx +5 -1
|
@@ -11,9 +11,11 @@ import { InputPressable } from "../InputPressable";
|
|
|
11
11
|
import { FormField } from "../FormField";
|
|
12
12
|
import type { InputFieldWrapperProps } from "../InputFieldWrapper";
|
|
13
13
|
import { useAtlantisI18n } from "../hooks/useAtlantisI18n";
|
|
14
|
+
import type { InputPressableProps } from "../InputPressable/InputPressable";
|
|
14
15
|
|
|
15
16
|
interface InputTimeBaseProps
|
|
16
|
-
extends Pick<InputFieldWrapperProps, "invalid" | "disabled" | "placeholder"
|
|
17
|
+
extends Pick<InputFieldWrapperProps, "invalid" | "disabled" | "placeholder">,
|
|
18
|
+
Pick<InputPressableProps, "showMiniLabel"> {
|
|
17
19
|
/**
|
|
18
20
|
* Defaulted to "always" so user can clear the time whenever there's a value.
|
|
19
21
|
*/
|
|
@@ -129,6 +131,7 @@ function InternalInputTime({
|
|
|
129
131
|
value,
|
|
130
132
|
name,
|
|
131
133
|
type = "scheduling",
|
|
134
|
+
showMiniLabel = true,
|
|
132
135
|
onChange,
|
|
133
136
|
showIcon = true,
|
|
134
137
|
}: InputTimeProps): JSX.Element {
|
|
@@ -156,6 +159,7 @@ function InternalInputTime({
|
|
|
156
159
|
return (
|
|
157
160
|
<View style={styles.container}>
|
|
158
161
|
<InputPressable
|
|
162
|
+
showMiniLabel={showMiniLabel}
|
|
159
163
|
clearable={canClearTime}
|
|
160
164
|
disabled={disabled}
|
|
161
165
|
invalid={invalid}
|