@webority/mobile-ui 0.147.0 → 0.148.0

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 (184) hide show
  1. package/dist/canvas-kit/kit.js +1614 -1543
  2. package/dist/canvas-kit/manifest.json +8 -1
  3. package/dist/canvas-kit/release.json +6 -6
  4. package/lib/commonjs/components/AppBar/AppBar.js +1 -1
  5. package/lib/commonjs/components/AuthedImage/authedImageCache.js +1 -1
  6. package/lib/commonjs/components/AuthedImage/imageStore.js +1 -1
  7. package/lib/commonjs/components/AuthedImage/imageStore.web.js +1 -1
  8. package/lib/commonjs/components/Avatar/Avatar.js +1 -1
  9. package/lib/commonjs/components/Box/Box.js +1 -1
  10. package/lib/commonjs/components/FieldBase/FieldBase.js +1 -1
  11. package/lib/commonjs/components/Input/Input.js +1 -1
  12. package/lib/commonjs/components/ListItem/ListItem.js +1 -1
  13. package/lib/commonjs/components/Markdown/Markdown.js +1 -1
  14. package/lib/commonjs/components/MessageList/MessageList.js +1 -1
  15. package/lib/commonjs/components/ProgressBar/ProgressBar.js +1 -1
  16. package/lib/commonjs/components/RichTextEditor/RichTextEditor.js +1 -1
  17. package/lib/commonjs/components/SignaturePad/SignaturePad.js +1 -1
  18. package/lib/commonjs/components/SignaturePad/writePng.js +1 -1
  19. package/lib/commonjs/components/SignaturePad/writePng.web.js +1 -1
  20. package/lib/commonjs/components/WheelPicker/Wheel.js +1 -1
  21. package/lib/commonjs/index.js +1 -1
  22. package/lib/commonjs/theme/Gradient.js +1 -1
  23. package/lib/module/components/AppBar/AppBar.js +1 -1
  24. package/lib/module/components/AuthedImage/authedImageCache.js +1 -1
  25. package/lib/module/components/AuthedImage/imageStore.js +1 -1
  26. package/lib/module/components/AuthedImage/imageStore.web.js +1 -1
  27. package/lib/module/components/Avatar/Avatar.js +1 -1
  28. package/lib/module/components/Box/Box.js +1 -1
  29. package/lib/module/components/FieldBase/FieldBase.js +1 -1
  30. package/lib/module/components/Input/Input.js +1 -1
  31. package/lib/module/components/ListItem/ListItem.js +1 -1
  32. package/lib/module/components/Markdown/Markdown.js +1 -1
  33. package/lib/module/components/MessageList/MessageList.js +1 -1
  34. package/lib/module/components/ProgressBar/ProgressBar.js +1 -1
  35. package/lib/module/components/RichTextEditor/RichTextEditor.js +1 -1
  36. package/lib/module/components/SignaturePad/SignaturePad.js +1 -1
  37. package/lib/module/components/SignaturePad/writePng.js +1 -1
  38. package/lib/module/components/SignaturePad/writePng.web.js +1 -1
  39. package/lib/module/components/WheelPicker/Wheel.js +1 -1
  40. package/lib/module/index.js +1 -1
  41. package/lib/module/theme/Gradient.js +1 -1
  42. package/lib/typescript/commonjs/canvasKit/index.d.ts +15 -6
  43. package/lib/typescript/commonjs/components/AmountSlider/AmountSlider.d.ts +3 -2
  44. package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +2 -2
  45. package/lib/typescript/commonjs/components/AuthedImage/imageStore.d.ts +1 -1
  46. package/lib/typescript/commonjs/components/AuthedImage/imageStore.web.d.ts +1 -1
  47. package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +2 -2
  48. package/lib/typescript/commonjs/components/Badge/Badge.d.ts +2 -2
  49. package/lib/typescript/commonjs/components/Banner/Banner.d.ts +2 -2
  50. package/lib/typescript/commonjs/components/BarChart/BarChart.d.ts +2 -2
  51. package/lib/typescript/commonjs/components/BottomNavigation/BottomNavigation.d.ts +2 -2
  52. package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +2 -3
  53. package/lib/typescript/commonjs/components/Box/Box.d.ts +4 -4
  54. package/lib/typescript/commonjs/components/Button/Button.d.ts +3 -2
  55. package/lib/typescript/commonjs/components/Calendar/Calendar.d.ts +3 -2
  56. package/lib/typescript/commonjs/components/Calendar/calendarStyles.d.ts +25 -116
  57. package/lib/typescript/commonjs/components/Card/Card.d.ts +2 -2
  58. package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +2 -2
  59. package/lib/typescript/commonjs/components/Chip/Chip.d.ts +2 -2
  60. package/lib/typescript/commonjs/components/ChoiceGroup/ChoiceGroup.d.ts +2 -2
  61. package/lib/typescript/commonjs/components/Composer/Composer.d.ts +2 -3
  62. package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +3 -2
  63. package/lib/typescript/commonjs/components/DecimalInput/DecimalInput.d.ts +3 -2
  64. package/lib/typescript/commonjs/components/Divider/Divider.d.ts +3 -2
  65. package/lib/typescript/commonjs/components/EmptyState/EmptyState.d.ts +2 -2
  66. package/lib/typescript/commonjs/components/FileViewer/useFileViewerZoom.d.ts +14 -22
  67. package/lib/typescript/commonjs/components/FilterChipRow/FilterChipRow.d.ts +3 -2
  68. package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +2 -2
  69. package/lib/typescript/commonjs/components/FormField/FormField.d.ts +2 -2
  70. package/lib/typescript/commonjs/components/IconBadge/IconBadge.d.ts +3 -2
  71. package/lib/typescript/commonjs/components/IconButton/IconButton.d.ts +3 -2
  72. package/lib/typescript/commonjs/components/InlineSelect/InlineSelect.d.ts +2 -2
  73. package/lib/typescript/commonjs/components/Input/Input.d.ts +2 -3
  74. package/lib/typescript/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +1 -1
  75. package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +4 -3
  76. package/lib/typescript/commonjs/components/Markdown/Markdown.d.ts +3 -1
  77. package/lib/typescript/commonjs/components/Menu/useContextMenu.d.ts +2 -2
  78. package/lib/typescript/commonjs/components/Modal/Modal.d.ts +3 -3
  79. package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +4 -2
  80. package/lib/typescript/commonjs/components/ProfileCompletion/ProfileCompletion.d.ts +2 -2
  81. package/lib/typescript/commonjs/components/ProfilePicker/ProfilePicker.d.ts +2 -2
  82. package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +4 -4
  83. package/lib/typescript/commonjs/components/ProgressRing/ProgressRing.d.ts +2 -2
  84. package/lib/typescript/commonjs/components/Radio/Radio.d.ts +3 -3
  85. package/lib/typescript/commonjs/components/Rating/Rating.d.ts +2 -2
  86. package/lib/typescript/commonjs/components/RichTextEditor/RichTextEditor.d.ts +2 -2
  87. package/lib/typescript/commonjs/components/ScannerOverlay/ScannerOverlay.d.ts +2 -2
  88. package/lib/typescript/commonjs/components/Screen/Screen.d.ts +2 -2
  89. package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +3 -3
  90. package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +3 -3
  91. package/lib/typescript/commonjs/components/Select/Select.d.ts +2 -2
  92. package/lib/typescript/commonjs/components/SignaturePad/writePng.d.ts +1 -1
  93. package/lib/typescript/commonjs/components/SignaturePad/writePng.web.d.ts +1 -1
  94. package/lib/typescript/commonjs/components/SlideToConfirm/SlideToConfirm.d.ts +2 -2
  95. package/lib/typescript/commonjs/components/Slider/Slider.d.ts +2 -2
  96. package/lib/typescript/commonjs/components/SliderField/SliderField.d.ts +2 -2
  97. package/lib/typescript/commonjs/components/Sparkline/Sparkline.d.ts +3 -2
  98. package/lib/typescript/commonjs/components/Spinner/Spinner.d.ts +2 -2
  99. package/lib/typescript/commonjs/components/SquircleView/SquircleView.d.ts +3 -2
  100. package/lib/typescript/commonjs/components/StatTile/StatTile.d.ts +3 -3
  101. package/lib/typescript/commonjs/components/StatusBadge/StatusBadge.d.ts +2 -2
  102. package/lib/typescript/commonjs/components/Stepper/Stepper.d.ts +2 -2
  103. package/lib/typescript/commonjs/components/Switch/Switch.d.ts +3 -3
  104. package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +3 -3
  105. package/lib/typescript/commonjs/components/TagInput/TagInput.d.ts +3 -2
  106. package/lib/typescript/commonjs/components/Text/Text.d.ts +2 -2
  107. package/lib/typescript/commonjs/components/Tooltip/RichTooltipBody.d.ts +3 -3
  108. package/lib/typescript/commonjs/components/Tour/Tour.d.ts +2 -2
  109. package/lib/typescript/commonjs/hooks/useFieldErrorScroll.d.ts +5 -5
  110. package/lib/typescript/commonjs/index.d.ts +1 -1
  111. package/lib/typescript/commonjs/theme/Gradient.d.ts +5 -1
  112. package/lib/typescript/commonjs/theme/makeStyles.d.ts +4 -2
  113. package/lib/typescript/module/canvasKit/index.d.ts +15 -6
  114. package/lib/typescript/module/components/AmountSlider/AmountSlider.d.ts +3 -2
  115. package/lib/typescript/module/components/AppBar/AppBar.d.ts +2 -2
  116. package/lib/typescript/module/components/AuthedImage/imageStore.d.ts +1 -1
  117. package/lib/typescript/module/components/AuthedImage/imageStore.web.d.ts +1 -1
  118. package/lib/typescript/module/components/Avatar/Avatar.d.ts +2 -2
  119. package/lib/typescript/module/components/Badge/Badge.d.ts +2 -2
  120. package/lib/typescript/module/components/Banner/Banner.d.ts +2 -2
  121. package/lib/typescript/module/components/BarChart/BarChart.d.ts +2 -2
  122. package/lib/typescript/module/components/BottomNavigation/BottomNavigation.d.ts +2 -2
  123. package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +2 -3
  124. package/lib/typescript/module/components/Box/Box.d.ts +4 -4
  125. package/lib/typescript/module/components/Button/Button.d.ts +3 -2
  126. package/lib/typescript/module/components/Calendar/Calendar.d.ts +3 -2
  127. package/lib/typescript/module/components/Calendar/calendarStyles.d.ts +25 -116
  128. package/lib/typescript/module/components/Card/Card.d.ts +2 -2
  129. package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +2 -2
  130. package/lib/typescript/module/components/Chip/Chip.d.ts +2 -2
  131. package/lib/typescript/module/components/ChoiceGroup/ChoiceGroup.d.ts +2 -2
  132. package/lib/typescript/module/components/Composer/Composer.d.ts +2 -3
  133. package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +3 -2
  134. package/lib/typescript/module/components/DecimalInput/DecimalInput.d.ts +3 -2
  135. package/lib/typescript/module/components/Divider/Divider.d.ts +3 -2
  136. package/lib/typescript/module/components/EmptyState/EmptyState.d.ts +2 -2
  137. package/lib/typescript/module/components/FileViewer/useFileViewerZoom.d.ts +14 -22
  138. package/lib/typescript/module/components/FilterChipRow/FilterChipRow.d.ts +3 -2
  139. package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +2 -2
  140. package/lib/typescript/module/components/FormField/FormField.d.ts +2 -2
  141. package/lib/typescript/module/components/IconBadge/IconBadge.d.ts +3 -2
  142. package/lib/typescript/module/components/IconButton/IconButton.d.ts +3 -2
  143. package/lib/typescript/module/components/InlineSelect/InlineSelect.d.ts +2 -2
  144. package/lib/typescript/module/components/Input/Input.d.ts +2 -3
  145. package/lib/typescript/module/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +1 -1
  146. package/lib/typescript/module/components/ListItem/ListItem.d.ts +4 -3
  147. package/lib/typescript/module/components/Markdown/Markdown.d.ts +3 -1
  148. package/lib/typescript/module/components/Menu/useContextMenu.d.ts +2 -2
  149. package/lib/typescript/module/components/Modal/Modal.d.ts +3 -3
  150. package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +4 -2
  151. package/lib/typescript/module/components/ProfileCompletion/ProfileCompletion.d.ts +2 -2
  152. package/lib/typescript/module/components/ProfilePicker/ProfilePicker.d.ts +2 -2
  153. package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +4 -4
  154. package/lib/typescript/module/components/ProgressRing/ProgressRing.d.ts +2 -2
  155. package/lib/typescript/module/components/Radio/Radio.d.ts +3 -3
  156. package/lib/typescript/module/components/Rating/Rating.d.ts +2 -2
  157. package/lib/typescript/module/components/RichTextEditor/RichTextEditor.d.ts +2 -2
  158. package/lib/typescript/module/components/ScannerOverlay/ScannerOverlay.d.ts +2 -2
  159. package/lib/typescript/module/components/Screen/Screen.d.ts +2 -2
  160. package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +3 -3
  161. package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +3 -3
  162. package/lib/typescript/module/components/Select/Select.d.ts +2 -2
  163. package/lib/typescript/module/components/SignaturePad/writePng.d.ts +1 -1
  164. package/lib/typescript/module/components/SignaturePad/writePng.web.d.ts +1 -1
  165. package/lib/typescript/module/components/SlideToConfirm/SlideToConfirm.d.ts +2 -2
  166. package/lib/typescript/module/components/Slider/Slider.d.ts +2 -2
  167. package/lib/typescript/module/components/SliderField/SliderField.d.ts +2 -2
  168. package/lib/typescript/module/components/Sparkline/Sparkline.d.ts +3 -2
  169. package/lib/typescript/module/components/Spinner/Spinner.d.ts +2 -2
  170. package/lib/typescript/module/components/SquircleView/SquircleView.d.ts +3 -2
  171. package/lib/typescript/module/components/StatTile/StatTile.d.ts +3 -3
  172. package/lib/typescript/module/components/StatusBadge/StatusBadge.d.ts +2 -2
  173. package/lib/typescript/module/components/Stepper/Stepper.d.ts +2 -2
  174. package/lib/typescript/module/components/Switch/Switch.d.ts +3 -3
  175. package/lib/typescript/module/components/Tabs/Tabs.d.ts +3 -3
  176. package/lib/typescript/module/components/TagInput/TagInput.d.ts +3 -2
  177. package/lib/typescript/module/components/Text/Text.d.ts +2 -2
  178. package/lib/typescript/module/components/Tooltip/RichTooltipBody.d.ts +3 -3
  179. package/lib/typescript/module/components/Tour/Tour.d.ts +2 -2
  180. package/lib/typescript/module/hooks/useFieldErrorScroll.d.ts +5 -5
  181. package/lib/typescript/module/index.d.ts +1 -1
  182. package/lib/typescript/module/theme/Gradient.d.ts +5 -1
  183. package/lib/typescript/module/theme/makeStyles.d.ts +4 -2
  184. package/package.json +29 -29
@@ -1,5 +1,5 @@
1
- import type { ReactNode } from "react";
2
- import type { View as RNView, StyleProp, ViewStyle } from "react-native";
1
+ import type { ForwardRefExoticComponent, ReactNode, RefAttributes } from "react";
2
+ import type { HostInstance, StyleProp, ViewStyle } from "react-native";
3
3
  import type { GradientDefinition } from "../../theme/types";
4
4
  import type { Tone } from "../../types/vocabulary";
5
5
  export interface ProgressBarLabels {
@@ -27,7 +27,7 @@ export interface ProgressBarProps {
27
27
  tone?: Tone;
28
28
  trackColor?: string;
29
29
  barColor?: string;
30
- /** Gradient fill for the determinate bar — a `GradientDefinition` or a theme gradient token name. */
30
+ /** Gradient fill for the determinate bar: a GradientDefinition or a theme gradient token name. An unknown token name throws a RangeError. */
31
31
  gradient?: GradientDefinition | string;
32
32
  /** Render a multi-colour breakdown bar (usage split) instead of a single progress fill. */
33
33
  segments?: ProgressBarSegment[];
@@ -41,7 +41,7 @@ export interface ProgressBarProps {
41
41
  labels?: Partial<ProgressBarLabels>;
42
42
  testID?: string;
43
43
  }
44
- declare const ProgressBar: import("react").ForwardRefExoticComponent<ProgressBarProps & import("react").RefAttributes<RNView>>;
44
+ declare const ProgressBar: ForwardRefExoticComponent<ProgressBarProps & RefAttributes<HostInstance>>;
45
45
  export { ProgressBar };
46
46
  export default ProgressBar;
47
47
  //# sourceMappingURL=ProgressBar.d.ts.map
@@ -11,7 +11,7 @@
11
11
  * Determinate only: an unknown-duration wait is Spinner's job.
12
12
  */
13
13
  import type React from "react";
14
- import type { View as RNView, StyleProp, ViewStyle } from "react-native";
14
+ import type { HostInstance, StyleProp, ViewStyle } from "react-native";
15
15
  import type { Tone } from "../../types/vocabulary";
16
16
  export interface ProgressRingProps {
17
17
  /** Fraction of the ring filled, 0 to 1, clamped. Default `0`. */
@@ -46,7 +46,7 @@ export interface ProgressRingProps {
46
46
  style?: StyleProp<ViewStyle>;
47
47
  testID?: string;
48
48
  }
49
- declare const ProgressRing: React.ForwardRefExoticComponent<ProgressRingProps & React.RefAttributes<RNView>>;
49
+ declare const ProgressRing: React.ForwardRefExoticComponent<ProgressRingProps & React.RefAttributes<HostInstance>>;
50
50
  export { ProgressRing };
51
51
  export default ProgressRing;
52
52
  //# sourceMappingURL=ProgressRing.d.ts.map
@@ -1,5 +1,5 @@
1
- import type { ReactNode } from "react";
2
- import type { PressableProps, View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
1
+ import type { ForwardRefExoticComponent, ReactNode, RefAttributes } from "react";
2
+ import type { HostInstance, PressableProps, StyleProp, TextStyle, ViewStyle } from "react-native";
3
3
  import type { Size, Tone } from "../../types/vocabulary";
4
4
  import type { HapticType } from "../../utils/hapticUtils";
5
5
  export type RadioSize = Extract<Size, "sm" | "md" | "lg">;
@@ -46,7 +46,7 @@ export interface RadioProps extends Omit<PressableProps, "style" | "children" |
46
46
  labelStyle?: StyleProp<TextStyle>;
47
47
  testID?: string;
48
48
  }
49
- declare const Radio: import("react").ForwardRefExoticComponent<RadioProps & import("react").RefAttributes<RNView>>;
49
+ declare const Radio: ForwardRefExoticComponent<RadioProps & RefAttributes<HostInstance>>;
50
50
  export { Radio };
51
51
  export default Radio;
52
52
  //# sourceMappingURL=Radio.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type React from "react";
2
- import type { View as RNView, StyleProp, ViewStyle } from "react-native";
2
+ import type { HostInstance, StyleProp, ViewStyle } from "react-native";
3
3
  import type { Size, Tone } from "../../types/vocabulary";
4
4
  import type { HapticType } from "../../utils/hapticUtils";
5
5
  export type RatingTone = Tone;
@@ -37,7 +37,7 @@ export interface RatingProps {
37
37
  starContainerStyle?: StyleProp<ViewStyle>;
38
38
  testID?: string;
39
39
  }
40
- declare const Rating: React.ForwardRefExoticComponent<RatingProps & React.RefAttributes<RNView>> & {
40
+ declare const Rating: React.ForwardRefExoticComponent<RatingProps & React.RefAttributes<HostInstance>> & {
41
41
  Skeleton: React.FC<RatingProps>;
42
42
  };
43
43
  export { Rating };
@@ -1,5 +1,5 @@
1
1
  import type React from "react";
2
- import type { TextInput as RNTextInput, StyleProp, TextStyle, ViewStyle } from "react-native";
2
+ import type { StyleProp, TextInputInstance, TextStyle, ViewStyle } from "react-native";
3
3
  import type { HapticType } from "../../utils";
4
4
  import type { MarkdownAction } from "./markdownActions";
5
5
  export type RichTextEditorLabels = Record<MarkdownAction, string>;
@@ -47,6 +47,6 @@ export interface RichTextEditorProps {
47
47
  * exactly what replacing the stale `react-native-pell-rich-editor` was meant to
48
48
  * escape: markdown in, markdown out, one plain TextInput, no bridge.
49
49
  */
50
- export declare const RichTextEditor: React.ForwardRefExoticComponent<RichTextEditorProps & React.RefAttributes<RNTextInput>>;
50
+ export declare const RichTextEditor: React.ForwardRefExoticComponent<RichTextEditorProps & React.RefAttributes<TextInputInstance>>;
51
51
  export default RichTextEditor;
52
52
  //# sourceMappingURL=RichTextEditor.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type React from "react";
2
- import type { View as RNView, StyleProp, ViewStyle } from "react-native";
2
+ import type { HostInstance, StyleProp, ViewStyle } from "react-native";
3
3
  import type { HapticType } from "../../utils/hapticUtils";
4
4
  /**
5
5
  * `scanning` waits for a code; `found` freezes the frame on success; `invalid`
@@ -71,7 +71,7 @@ export interface ScannerOverlayProps {
71
71
  testID?: string;
72
72
  }
73
73
  export declare const DEFAULT_SCANNER_OVERLAY_LABELS: Readonly<ScannerOverlayLabels>;
74
- declare const ScannerOverlay: React.ForwardRefExoticComponent<ScannerOverlayProps & React.RefAttributes<RNView>>;
74
+ declare const ScannerOverlay: React.ForwardRefExoticComponent<ScannerOverlayProps & React.RefAttributes<HostInstance>>;
75
75
  export { ScannerOverlay };
76
76
  export default ScannerOverlay;
77
77
  //# sourceMappingURL=ScannerOverlay.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import type { PagedListPaging } from "@webority/mobile-core/query";
2
2
  import type React from "react";
3
- import type { FlatListProps, NativeScrollEvent, NativeSyntheticEvent, ScrollView, StyleProp, ViewStyle } from "react-native";
3
+ import type { FlatListProps, NativeScrollEvent, NativeSyntheticEvent, ScrollViewInstance, StyleProp, ViewStyle } from "react-native";
4
4
  import { FlatList } from "react-native";
5
5
  import type { AppBarAction } from "../AppBar";
6
6
  import type { EmptyStateProps } from "../EmptyState";
@@ -60,7 +60,7 @@ export interface ScreenProps<ItemT = unknown> {
60
60
  floatingAction?: React.ReactElement<FloatingActionSlotProps>;
61
61
  /** Default true. */
62
62
  keyboardToolbar?: boolean;
63
- scrollRef?: React.Ref<ScrollView | FlatList<ItemT>>;
63
+ scrollRef?: React.Ref<ScrollViewInstance | FlatList<ItemT>>;
64
64
  onScroll?: (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
65
65
  contentContainerStyle?: StyleProp<ViewStyle>;
66
66
  testID?: string;
@@ -1,5 +1,5 @@
1
- import type { StyleProp, TextInputProps, TextStyle, ViewStyle } from "react-native";
2
- import { TextInput } from "react-native";
1
+ import type { ForwardRefExoticComponent, RefAttributes } from "react";
2
+ import type { StyleProp, TextInputInstance, TextInputProps, TextStyle, ViewStyle } from "react-native";
3
3
  import type { RadiusName } from "../../theme/types";
4
4
  import type { FieldVariant, Size } from "../../types/vocabulary";
5
5
  import type { HapticType } from "../../utils/hapticUtils";
@@ -92,7 +92,7 @@ export interface SearchBarProps extends Omit<TextInputProps, "style" | "value" |
92
92
  accessibilityLabel?: string;
93
93
  testID?: string;
94
94
  }
95
- declare const SearchBar: import("react").ForwardRefExoticComponent<SearchBarProps & import("react").RefAttributes<TextInput>>;
95
+ declare const SearchBar: ForwardRefExoticComponent<SearchBarProps & RefAttributes<TextInputInstance>>;
96
96
  export { SearchBar };
97
97
  export default SearchBar;
98
98
  //# sourceMappingURL=SearchBar.d.ts.map
@@ -13,8 +13,8 @@
13
13
  * and vertical extent. It is a look, not a semantic change: the roles stay
14
14
  * radiogroup / radio, and screen navigation is still Tabs.
15
15
  */
16
- import type { ReactNode } from "react";
17
- import type { View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
16
+ import type { ForwardRefExoticComponent, ReactNode, RefAttributes } from "react";
17
+ import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
18
18
  import type { RadiusName } from "../../theme/types";
19
19
  import type { Size, Tone } from "../../types/vocabulary";
20
20
  import type { HapticType } from "../../utils";
@@ -96,7 +96,7 @@ export interface SegmentedControlProps {
96
96
  labelStyle?: StyleProp<TextStyle>;
97
97
  testID?: string;
98
98
  }
99
- declare const SegmentedControl: import("react").ForwardRefExoticComponent<SegmentedControlProps & import("react").RefAttributes<RNView>>;
99
+ declare const SegmentedControl: ForwardRefExoticComponent<SegmentedControlProps & RefAttributes<HostInstance>>;
100
100
  export { SegmentedControl };
101
101
  export default SegmentedControl;
102
102
  //# sourceMappingURL=SegmentedControl.d.ts.map
@@ -7,7 +7,7 @@
7
7
  * styling, full a11y, and dark-mode auto.
8
8
  */
9
9
  import type React from "react";
10
- import type { View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
10
+ import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
11
11
  import type { FieldVariant, Size } from "../../types/vocabulary";
12
12
  import type { HapticType } from "../../utils";
13
13
  import type { SlotIcon } from "../AppIcon/slotIcon";
@@ -157,7 +157,7 @@ export interface MultiSelectProps<T = SelectOption> extends BaseSelectProps<T> {
157
157
  onChange: (value: SelectValue[]) => void;
158
158
  }
159
159
  export type SelectProps<T = SelectOption> = SingleSelectProps<T> | MultiSelectProps<T>;
160
- declare const Select: React.ForwardRefExoticComponent<SelectProps<unknown> & React.RefAttributes<RNView>>;
160
+ declare const Select: React.ForwardRefExoticComponent<SelectProps<unknown> & React.RefAttributes<HostInstance>>;
161
161
  export { Select };
162
162
  export default Select;
163
163
  //# sourceMappingURL=Select.d.ts.map
@@ -3,5 +3,5 @@
3
3
  * expo-file-system is read here, on the first signature saved, so nothing that
4
4
  * imports the pad pays for it at start (the web build uses `writePng.web.ts`).
5
5
  */
6
- export declare const writePng: (base64: string) => string;
6
+ export declare const writePng: (base64: string) => Promise<string>;
7
7
  //# sourceMappingURL=writePng.d.ts.map
@@ -1,3 +1,3 @@
1
1
  /** The browser has no cache folder: the PNG is answered as a data uri, usable as an image source or an upload body. */
2
- export declare const writePng: (base64: string) => string;
2
+ export declare const writePng: (base64: string) => Promise<string>;
3
3
  //# sourceMappingURL=writePng.web.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
2
+ import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
3
3
  import type { Size, Tone } from "../../types/vocabulary";
4
4
  import type { HapticType } from "../../utils";
5
5
  export type SlideToConfirmTone = Tone;
@@ -34,7 +34,7 @@ export interface SlideToConfirmProps {
34
34
  labelStyle?: StyleProp<TextStyle>;
35
35
  testID?: string;
36
36
  }
37
- declare const SlideToConfirm: React.ForwardRefExoticComponent<SlideToConfirmProps & React.RefAttributes<RNView>>;
37
+ declare const SlideToConfirm: React.ForwardRefExoticComponent<SlideToConfirmProps & React.RefAttributes<HostInstance>>;
38
38
  export { SlideToConfirm };
39
39
  export default SlideToConfirm;
40
40
  //# sourceMappingURL=SlideToConfirm.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type React from "react";
2
- import type { View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
2
+ import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
3
3
  import type { Size, Tone } from "../../types/vocabulary";
4
4
  import type { HapticType } from "../../utils";
5
5
  export type SliderTone = Tone;
@@ -85,7 +85,7 @@ export interface SliderRangeProps extends SliderCommonProps {
85
85
  onChange?: (value: [number, number]) => void;
86
86
  }
87
87
  export type SliderProps = SliderSingleProps | SliderRangeProps;
88
- declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<RNView>>;
88
+ declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HostInstance>>;
89
89
  export { Slider };
90
90
  export default Slider;
91
91
  //# sourceMappingURL=Slider.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type React from "react";
2
- import type { View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
2
+ import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
3
3
  import type { HapticType } from "../../utils";
4
4
  import type { SlotIcon } from "../AppIcon";
5
5
  import type { SliderSize, SliderTone, SliderVariant } from "../Slider";
@@ -91,7 +91,7 @@ interface SliderFieldRangeProps extends SliderFieldCommonProps {
91
91
  onChange?: (value: [number, number]) => void;
92
92
  }
93
93
  export type SliderFieldProps = SliderFieldSingleProps | SliderFieldRangeProps;
94
- declare const SliderField: React.ForwardRefExoticComponent<SliderFieldProps & React.RefAttributes<RNView>>;
94
+ declare const SliderField: React.ForwardRefExoticComponent<SliderFieldProps & React.RefAttributes<HostInstance>>;
95
95
  export { SliderField };
96
96
  export default SliderField;
97
97
  //# sourceMappingURL=SliderField.d.ts.map
@@ -7,7 +7,8 @@
7
7
  * reads as one image to a screen reader, with a label that states the start,
8
8
  * end, low and high values, so nothing rests on the line's colour.
9
9
  */
10
- import type { View as RNView, StyleProp, ViewStyle } from "react-native";
10
+ import type { ForwardRefExoticComponent, RefAttributes } from "react";
11
+ import type { HostInstance, StyleProp, ViewStyle } from "react-native";
11
12
  import type { Tone } from "../../types/vocabulary";
12
13
  export type SparklineTone = Tone;
13
14
  export interface SparklineLabels {
@@ -43,7 +44,7 @@ export interface SparklineProps {
43
44
  style?: StyleProp<ViewStyle>;
44
45
  testID?: string;
45
46
  }
46
- declare const Sparkline: import("react").ForwardRefExoticComponent<SparklineProps & import("react").RefAttributes<RNView>>;
47
+ declare const Sparkline: ForwardRefExoticComponent<SparklineProps & RefAttributes<HostInstance>>;
47
48
  export { Sparkline };
48
49
  export default Sparkline;
49
50
  //# sourceMappingURL=Sparkline.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type React from "react";
2
- import type { View as RNView, StyleProp, ViewStyle } from "react-native";
2
+ import type { HostInstance, StyleProp, ViewStyle } from "react-native";
3
3
  import type { Size } from "../../types/vocabulary";
4
4
  export type SpinnerSize = Extract<Size, "sm" | "md" | "lg">;
5
5
  export type SpinnerVariant = "circular" | "dots" | "contained";
@@ -25,7 +25,7 @@ export interface SpinnerProps {
25
25
  style?: StyleProp<ViewStyle>;
26
26
  testID?: string;
27
27
  }
28
- declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<RNView>>;
28
+ declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HostInstance>>;
29
29
  export { Spinner };
30
30
  export default Spinner;
31
31
  //# sourceMappingURL=Spinner.d.ts.map
@@ -1,4 +1,5 @@
1
- import type { View as RNView, ViewProps } from "react-native";
1
+ import type { ForwardRefExoticComponent, RefAttributes } from "react";
2
+ import type { HostInstance, ViewProps } from "react-native";
2
3
  export type SquircleViewProps = ViewProps;
3
4
  /**
4
5
  * A `View` whose rounded corners are smooth on both platforms, for a surface
@@ -16,7 +17,7 @@ export type SquircleViewProps = ViewProps;
16
17
  * Children are not clipped to the curve. Use `Card` or `Box` when the surface
17
18
  * is a themed card or a spacing container.
18
19
  */
19
- declare const SquircleView: import("react").ForwardRefExoticComponent<ViewProps & import("react").RefAttributes<RNView>>;
20
+ declare const SquircleView: ForwardRefExoticComponent<SquircleViewProps & RefAttributes<HostInstance>>;
20
21
  export { SquircleView };
21
22
  export default SquircleView;
22
23
  //# sourceMappingURL=SquircleView.d.ts.map
@@ -1,5 +1,5 @@
1
- import type { ReactNode } from "react";
2
- import type { View as RNView, StyleProp, ViewStyle } from "react-native";
1
+ import type { ForwardRefExoticComponent, ReactNode, RefAttributes } from "react";
2
+ import type { HostInstance, StyleProp, ViewStyle } from "react-native";
3
3
  import type { Tone } from "../../types/vocabulary";
4
4
  import type { IconVariant } from "../AppIcon/AppIcon";
5
5
  import type { SlotIcon } from "../AppIcon/slotIcon";
@@ -56,7 +56,7 @@ export interface StatTileProps {
56
56
  style?: StyleProp<ViewStyle>;
57
57
  testID?: string;
58
58
  }
59
- declare const StatTile: import("react").ForwardRefExoticComponent<StatTileProps & import("react").RefAttributes<RNView>>;
59
+ declare const StatTile: ForwardRefExoticComponent<StatTileProps & RefAttributes<HostInstance>>;
60
60
  export { StatTile };
61
61
  export default StatTile;
62
62
  //# sourceMappingURL=StatTile.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type React from "react";
2
- import type { View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
2
+ import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
3
3
  import type { FillVariant, Size, Tone } from "../../types/vocabulary";
4
4
  /**
5
5
  * The same semantic vocabulary Chip and Badge use, and the web library's
@@ -60,7 +60,7 @@ export interface StatusBadgeProps {
60
60
  textStyle?: StyleProp<TextStyle>;
61
61
  testID?: string;
62
62
  }
63
- declare const StatusBadge: React.ForwardRefExoticComponent<StatusBadgeProps & React.RefAttributes<RNView>> & {
63
+ declare const StatusBadge: React.ForwardRefExoticComponent<StatusBadgeProps & React.RefAttributes<HostInstance>> & {
64
64
  Skeleton: React.FC<StatusBadgeProps>;
65
65
  };
66
66
  export { StatusBadge };
@@ -1,5 +1,5 @@
1
1
  import type React from "react";
2
- import type { View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
2
+ import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
3
3
  import type { Tone } from "../../types/vocabulary";
4
4
  import type { HapticType } from "../../utils/hapticUtils";
5
5
  /**
@@ -92,7 +92,7 @@ export interface StepperProps {
92
92
  haptic?: HapticType | false;
93
93
  testID?: string;
94
94
  }
95
- declare const Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<RNView>> & {
95
+ declare const Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<HostInstance>> & {
96
96
  Skeleton: React.FC<StepperProps>;
97
97
  };
98
98
  export { Stepper };
@@ -1,5 +1,5 @@
1
- import type { ReactNode } from "react";
2
- import type { PressableProps, View as RNView, StyleProp, ViewStyle } from "react-native";
1
+ import type { ForwardRefExoticComponent, ReactNode, RefAttributes } from "react";
2
+ import type { HostInstance, PressableProps, StyleProp, ViewStyle } from "react-native";
3
3
  import type { Size, Tone } from "../../types/vocabulary";
4
4
  import type { HapticType } from "../../utils/hapticUtils";
5
5
  export type SwitchSize = Extract<Size, "sm" | "md" | "lg">;
@@ -50,7 +50,7 @@ export interface SwitchProps extends Omit<PressableProps, "style" | "children" |
50
50
  thumbStyle?: StyleProp<ViewStyle>;
51
51
  testID?: string;
52
52
  }
53
- declare const Switch: import("react").ForwardRefExoticComponent<SwitchProps & import("react").RefAttributes<RNView>>;
53
+ declare const Switch: ForwardRefExoticComponent<SwitchProps & RefAttributes<HostInstance>>;
54
54
  export { Switch };
55
55
  export default Switch;
56
56
  //# sourceMappingURL=Switch.d.ts.map
@@ -14,8 +14,8 @@
14
14
  * is a look, not a semantic change: the roles stay tablist/tab, and a value
15
15
  * choice is still SegmentedControl.
16
16
  */
17
- import { type ReactNode } from "react";
18
- import type { View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
17
+ import { type ForwardRefExoticComponent, type ReactNode, type RefAttributes } from "react";
18
+ import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
19
19
  import { Animated } from "react-native";
20
20
  import type { RadiusName } from "../../theme/types";
21
21
  import type { Size } from "../../types/vocabulary";
@@ -94,7 +94,7 @@ export interface TabsProps {
94
94
  accessibilityLabel?: string;
95
95
  testID?: string;
96
96
  }
97
- declare const Tabs: import("react").ForwardRefExoticComponent<TabsProps & import("react").RefAttributes<RNView>>;
97
+ declare const Tabs: ForwardRefExoticComponent<TabsProps & RefAttributes<HostInstance>>;
98
98
  export { Tabs };
99
99
  export default Tabs;
100
100
  //# sourceMappingURL=Tabs.d.ts.map
@@ -1,4 +1,5 @@
1
- import type { FocusEvent, TextInput as RNTextInput, StyleProp, ViewStyle } from "react-native";
1
+ import type { ForwardRefExoticComponent, RefAttributes } from "react";
2
+ import type { FocusEvent, StyleProp, TextInputInstance, ViewStyle } from "react-native";
2
3
  import type { HapticType } from "../../utils";
3
4
  import type { FieldBaseSize, FieldBaseVariant } from "../FieldBase";
4
5
  export interface TagInputProps {
@@ -37,6 +38,6 @@ export interface TagInputProps {
37
38
  * Chip renders a tag and Input takes text, but nothing joined them, so consumers
38
39
  * built this by hand each time (and each one disagreed about backspace).
39
40
  */
40
- export declare const TagInput: import("react").ForwardRefExoticComponent<TagInputProps & import("react").RefAttributes<RNTextInput>>;
41
+ export declare const TagInput: ForwardRefExoticComponent<TagInputProps & RefAttributes<TextInputInstance>>;
41
42
  export default TagInput;
42
43
  //# sourceMappingURL=TagInput.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type React from "react";
2
- import type { TextProps as RNTextProps, Text as RNTextRef, StyleProp, TextStyle } from "react-native";
2
+ import type { HostInstance, TextProps as RNTextProps, StyleProp, TextStyle } from "react-native";
3
3
  import type { TextName, Theme, WeightName } from "../../theme/types";
4
4
  import type { Tone } from "../../types/vocabulary";
5
5
  export type TextVariant = "display" | "h1" | "h2" | "h3" | "title" | "body" | "bodySmall" | "caption" | "label" | "overline";
@@ -25,7 +25,7 @@ export interface TextProps extends Omit<RNTextProps, "style"> {
25
25
  style?: StyleProp<TextStyle>;
26
26
  }
27
27
  export declare const resolveColor: (theme: Theme, color: string) => string;
28
- declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<RNTextRef>>;
28
+ declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HostInstance>>;
29
29
  export { Text };
30
30
  export default Text;
31
31
  //# sourceMappingURL=Text.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type React from "react";
2
- import type { Text as RNText, View as RNView, StyleProp, TextStyle } from "react-native";
2
+ import type { HostInstance, StyleProp, TextStyle } from "react-native";
3
3
  /** The one text button of a rich tooltip. */
4
4
  export interface TooltipAction {
5
5
  label: string;
@@ -12,9 +12,9 @@ interface RichTooltipBodyProps {
12
12
  action?: TooltipAction;
13
13
  onAction: () => void;
14
14
  /** Takes screen reader focus on open: the title, or the text when there is none. */
15
- focusRef: React.Ref<RNText>;
15
+ focusRef: React.Ref<HostInstance>;
16
16
  /** Takes keyboard focus on open on the web. */
17
- actionRef: React.Ref<RNView>;
17
+ actionRef: React.Ref<HostInstance>;
18
18
  messageStyle?: StyleProp<TextStyle>;
19
19
  }
20
20
  /**
@@ -1,5 +1,5 @@
1
1
  import type React from "react";
2
- import type { View as RNView } from "react-native";
2
+ import type { HostInstance } from "react-native";
3
3
  import type { Theme } from "../../theme/types";
4
4
  import type { HapticType } from "../../utils/hapticUtils";
5
5
  export interface TourStep {
@@ -8,7 +8,7 @@ export interface TourStep {
8
8
  * `collapsable={false}` so Android keeps it in the native tree. A step whose
9
9
  * view is not mounted or not on screen is skipped.
10
10
  */
11
- target: React.RefObject<RNView | null>;
11
+ target: React.RefObject<HostInstance | null>;
12
12
  title?: string;
13
13
  description: string;
14
14
  /**
@@ -1,7 +1,7 @@
1
1
  import { type Ref, type RefObject } from "react";
2
- import type { LayoutChangeEvent, ScrollView, View } from "react-native";
2
+ import type { HostInstance, LayoutChangeEvent, ScrollViewInstance } from "react-native";
3
3
  export interface FieldErrorRegistry {
4
- add: (anchor: RefObject<View | null>) => () => void;
4
+ add: (anchor: RefObject<HostInstance | null>) => () => void;
5
5
  }
6
6
  /**
7
7
  * Bringing the first field that shows an error into view. A form field that shows an error joins
@@ -12,15 +12,15 @@ export interface FieldErrorRegistry {
12
12
  * and a step lays its fields out in its own. Outside a provider a field joins nothing.
13
13
  */
14
14
  export declare const FieldErrorScrollContext: import("react").Context<FieldErrorRegistry | null>;
15
- export declare const useFieldErrorAnchor: (error: unknown, forwardedRef?: Ref<View>) => ((node: View | null) => void);
15
+ export declare const useFieldErrorAnchor: (error: unknown, forwardedRef?: Ref<HostInstance>) => ((node: HostInstance | null) => void);
16
16
  export interface UseFieldErrorScrollOptions {
17
- scrollRef: RefObject<ScrollView | null>;
17
+ scrollRef: RefObject<ScrollViewInstance | null>;
18
18
  /** Room kept above the first error so its label shows too. Defaults to 16. */
19
19
  offset?: number;
20
20
  }
21
21
  export interface UseFieldErrorScrollResult {
22
22
  registry: FieldErrorRegistry;
23
- containerRef: RefObject<View | null>;
23
+ containerRef: RefObject<HostInstance | null>;
24
24
  onContainerLayout: (event: LayoutChangeEvent) => void;
25
25
  scrollToFirstError: () => void;
26
26
  }
@@ -10,7 +10,7 @@ export { useDebounce, useFieldChain, useReducedMotion, useRefreshControl, useScr
10
10
  export type { NetworkStatusBannerProps } from "./network";
11
11
  export { NetworkStatusBanner } from "./network";
12
12
  export type { BrandOverrides, ColorMode, ColorName, ColorSchemePreference, ComponentName, ComponentSettings, ComponentSizeTokens, ComponentTokens, DurationName, EaseName, FontFaces, FontName, FontWeightValue, GradientDefinition, GradientScale, IconRegistry, IconRenderer, KitThemeBridgeProps, LeadingName, LetterSpacingName, PhoneShadow, RadiusName, Resolved, ShadowName, SizeName, SpaceName, Spring, SpringScale, TextName, TextVariantSpec, Theme, ThemeProviderProps, ThemeSettings, TokenSet, WeightName, } from "./theme";
13
- export { KitThemeBridge, lightTheme, makeStyles, radiusOf, ThemeProvider, useTheme, useThemeMode } from "./theme";
13
+ export { fontFor, KitThemeBridge, lightTheme, makeStyles, radiusOf, ThemeProvider, useTheme, useThemeMode } from "./theme";
14
14
  export type { FieldVariant, FillVariant, SelectionMode, Size, Tone, } from "./types/vocabulary";
15
15
  export type { AnnounceOptions, BreakpointKey, FeedbackIntent, HapticType, ResponsiveScales, ScreenInfo, SquirclePathParams, } from "./utils";
16
16
  export { announce, isHapticsEnabled, setHapticImplementation, setHapticsEnabled, triggerHaptic } from "./utils";
@@ -1,6 +1,10 @@
1
1
  import type React from "react";
2
- import type { LinearGradientValue, StyleProp, ViewStyle } from "react-native";
2
+ import type { StyleProp, ViewStyle } from "react-native";
3
3
  import type { GradientDefinition } from "./types";
4
+ type BackgroundImage = Extract<NonNullable<ViewStyle["experimental_backgroundImage"]>, ReadonlyArray<unknown>>[number];
5
+ type LinearGradientValue = Extract<BackgroundImage, {
6
+ type: "linear-gradient";
7
+ }>;
4
8
  /**
5
9
  * Render a linear gradient with React Native's own `experimental_backgroundImage`
6
10
  * style prop. `GradientDefinition` keeps its vector-based `start`/`end` shape,
@@ -1,5 +1,7 @@
1
- import { StyleSheet } from "react-native";
1
+ import type { ImageStyle, TextStyle, ViewStyle } from "react-native";
2
2
  import type { Theme } from "./types";
3
3
  /** `const useStyles = makeStyles((theme) => ({ ... }))`, then `const styles = useStyles()`; rebuilt only when the theme changes. */
4
- export declare function makeStyles<T extends StyleSheet.NamedStyles<T>>(factory: (theme: Theme) => T): () => T;
4
+ export declare function makeStyles<T extends {
5
+ [K in keyof T]: ViewStyle | TextStyle | ImageStyle;
6
+ }>(factory: (theme: Theme) => T): () => T;
5
7
  //# sourceMappingURL=makeStyles.d.ts.map
@@ -1,5 +1,4 @@
1
1
  import { type ReactNode } from "react";
2
- import { View } from "react-native";
3
2
  import type { ColorMode } from "../theme/types.js";
4
3
  export type PhoneChromeOs = "Ios" | "Android";
5
4
  export declare const PHONE_CHROME_INSETS: {
@@ -22,29 +21,39 @@ export interface StatusBarProps {
22
21
  /** Battery level in percent, 0 to 100. */
23
22
  battery?: number;
24
23
  }
25
- export declare const StatusBar: ({ os, colorMode, time, signal, battery }: StatusBarProps) => import("react").CElement<import("react-native").ViewProps, View>;
24
+ export declare const StatusBar: ({ os, colorMode, time, signal, battery }: StatusBarProps) => import("react").FunctionComponentElement<Omit<import("react-native").ViewProps, "ref"> & {
25
+ ref?: React.Ref<import("react-native").ViewInstance> | undefined;
26
+ }>;
26
27
  export interface HomeIndicatorProps {
27
28
  os: PhoneChromeOs;
28
29
  colorMode?: ColorMode;
29
30
  }
30
- export declare const HomeIndicator: ({ os, colorMode }: HomeIndicatorProps) => import("react").CElement<import("react-native").ViewProps, View>;
31
+ export declare const HomeIndicator: ({ os, colorMode }: HomeIndicatorProps) => import("react").FunctionComponentElement<Omit<import("react-native").ViewProps, "ref"> & {
32
+ ref?: React.Ref<import("react-native").ViewInstance> | undefined;
33
+ }>;
31
34
  export interface NavigationBarProps {
32
35
  os: PhoneChromeOs;
33
36
  colorMode?: ColorMode;
34
37
  }
35
- export declare const NavigationBar: ({ os, colorMode }: NavigationBarProps) => import("react").CElement<import("react-native").ViewProps, View> | null;
38
+ export declare const NavigationBar: ({ os, colorMode }: NavigationBarProps) => import("react").FunctionComponentElement<Omit<import("react-native").ViewProps, "ref"> & {
39
+ ref?: React.Ref<import("react-native").ViewInstance> | undefined;
40
+ }> | null;
36
41
  export interface SafeAreaProps {
37
42
  os: PhoneChromeOs;
38
43
  children?: ReactNode;
39
44
  }
40
- export declare const SafeArea: ({ os, children }: SafeAreaProps) => import("react").CElement<import("react-native").ViewProps, View>;
45
+ export declare const SafeArea: ({ os, children }: SafeAreaProps) => import("react").FunctionComponentElement<Omit<import("react-native").ViewProps, "ref"> & {
46
+ ref?: React.Ref<import("react-native").ViewInstance> | undefined;
47
+ }>;
41
48
  export type KeyboardPreviewOs = "ios" | "android";
42
49
  export interface KeyboardFrameProps {
43
50
  colorMode?: ColorMode;
44
51
  previewOs?: KeyboardPreviewOs;
45
52
  children?: ReactNode;
46
53
  }
47
- export declare const KeyboardFrame: ({ colorMode, previewOs, children }: KeyboardFrameProps) => import("react").CElement<import("react-native").ViewProps, View>;
54
+ export declare const KeyboardFrame: ({ colorMode, previewOs, children }: KeyboardFrameProps) => import("react").FunctionComponentElement<Omit<import("react-native").ViewProps, "ref"> & {
55
+ ref?: React.Ref<import("react-native").ViewInstance> | undefined;
56
+ }>;
48
57
  export interface PhoneChromeManifestProp {
49
58
  name: string;
50
59
  type: "enum" | "string" | "number";
@@ -1,5 +1,6 @@
1
1
  import { type NumberGrouping } from "@webority/mobile-core";
2
- import type { View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
2
+ import { type ForwardRefExoticComponent, type RefAttributes } from "react";
3
+ import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
3
4
  import type { HapticType } from "../../utils/index.js";
4
5
  import type { SliderSize, SliderTone, SliderVariant } from "../Slider/index.js";
5
6
  export interface AmountSliderLabels {
@@ -61,7 +62,7 @@ interface Scaled {
61
62
  type ScaleUnits = Exclude<NumberGrouping, "none">;
62
63
  /** Splits a value into the number and unit the header shows. */
63
64
  export declare const scaleAmount: (value: number, units: ScaleUnits, labels?: AmountSliderLabels) => Scaled;
64
- declare const AmountSlider: import("react").ForwardRefExoticComponent<AmountSliderProps & import("react").RefAttributes<RNView>>;
65
+ declare const AmountSlider: ForwardRefExoticComponent<AmountSliderProps & RefAttributes<HostInstance>>;
65
66
  export { AmountSlider };
66
67
  export default AmountSlider;
67
68
  //# sourceMappingURL=AmountSlider.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type React from "react";
2
- import type { View as RNView, StyleProp, ViewStyle } from "react-native";
2
+ import type { HostInstance, StyleProp, ViewStyle } from "react-native";
3
3
  import { Animated } from "react-native";
4
4
  import type { HapticType } from "../../utils/hapticUtils.js";
5
5
  import type { MenuItem } from "../Menu/index.js";
@@ -128,7 +128,7 @@ export interface AppBarProps {
128
128
  haptic?: HapticType | false;
129
129
  testID?: string;
130
130
  }
131
- declare const AppBar: React.ForwardRefExoticComponent<AppBarProps & React.RefAttributes<RNView>>;
131
+ declare const AppBar: React.ForwardRefExoticComponent<AppBarProps & React.RefAttributes<HostInstance>>;
132
132
  export { AppBar };
133
133
  export default AppBar;
134
134
  //# sourceMappingURL=AppBar.d.ts.map