@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.
Files changed (44) hide show
  1. package/dist/package.json +2 -2
  2. package/dist/src/Form/Form.js +1 -1
  3. package/dist/src/Form/components/FormBody/FormBody.js +5 -5
  4. package/dist/src/FormatFile/components/MediaView/MediaView.js +22 -5
  5. package/dist/src/InputDate/InputDate.js +2 -2
  6. package/dist/src/InputFieldWrapper/InputFieldWrapper.js +14 -12
  7. package/dist/src/InputFieldWrapper/components/Prefix/Prefix.js +5 -2
  8. package/dist/src/InputFieldWrapper/components/Suffix/Suffix.js +5 -2
  9. package/dist/src/InputPressable/InputPressable.js +20 -8
  10. package/dist/src/InputPressable/InputPressable.style.js +3 -0
  11. package/dist/src/InputText/InputText.js +22 -11
  12. package/dist/src/InputText/InputText.style.js +4 -0
  13. package/dist/src/InputTime/InputTime.js +2 -2
  14. package/dist/tsconfig.build.tsbuildinfo +1 -1
  15. package/dist/types/src/InputDate/InputDate.d.ts +2 -1
  16. package/dist/types/src/InputFieldWrapper/InputFieldWrapper.d.ts +9 -2
  17. package/dist/types/src/InputFieldWrapper/components/Prefix/Prefix.d.ts +2 -3
  18. package/dist/types/src/InputFieldWrapper/components/Suffix/Suffix.d.ts +2 -3
  19. package/dist/types/src/InputPressable/InputPressable.d.ts +9 -1
  20. package/dist/types/src/InputPressable/InputPressable.style.d.ts +3 -0
  21. package/dist/types/src/InputSearch/InputSearch.d.ts +1 -1
  22. package/dist/types/src/InputText/InputText.d.ts +8 -0
  23. package/dist/types/src/InputText/InputText.style.d.ts +4 -0
  24. package/dist/types/src/InputTime/InputTime.d.ts +2 -1
  25. package/package.json +2 -2
  26. package/src/Form/Form.tsx +1 -0
  27. package/src/Form/components/FormBody/FormBody.tsx +6 -6
  28. package/src/FormatFile/components/MediaView/MediaView.test.tsx +283 -0
  29. package/src/FormatFile/components/MediaView/MediaView.tsx +27 -6
  30. package/src/InputDate/InputDate.tsx +5 -1
  31. package/src/InputFieldWrapper/InputFieldWrapper.test.tsx +48 -1
  32. package/src/InputFieldWrapper/InputFieldWrapper.tsx +38 -28
  33. package/src/InputFieldWrapper/components/Prefix/Prefix.test.tsx +3 -5
  34. package/src/InputFieldWrapper/components/Prefix/Prefix.tsx +6 -4
  35. package/src/InputFieldWrapper/components/Suffix/Suffix.test.tsx +2 -4
  36. package/src/InputFieldWrapper/components/Suffix/Suffix.tsx +6 -4
  37. package/src/InputPressable/InputPressable.style.ts +4 -0
  38. package/src/InputPressable/InputPressable.test.tsx +75 -1
  39. package/src/InputPressable/InputPressable.tsx +33 -7
  40. package/src/InputSearch/InputSearch.tsx +1 -0
  41. package/src/InputText/InputText.style.ts +5 -0
  42. package/src/InputText/InputText.test.tsx +75 -0
  43. package/src/InputText/InputText.tsx +32 -12
  44. 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}