@webority/mobile-ui 0.127.0 → 0.129.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 (206) hide show
  1. package/dist/canvas-kit/kit.js +8170 -7898
  2. package/dist/canvas-kit/manifest.json +218 -6
  3. package/dist/canvas-kit/release.json +6 -6
  4. package/lib/commonjs/components/Accordion/Accordion.js +1 -1
  5. package/lib/commonjs/components/AppBar/AppBar.js +1 -1
  6. package/lib/commonjs/components/AppIcon/AppIcon.js +1 -1
  7. package/lib/commonjs/components/AppIcon/catalog.g.js +1 -1
  8. package/lib/commonjs/components/AppIcon/glyphs.g.js +1 -1
  9. package/lib/commonjs/components/AppIcon/variants.g.js +1 -1
  10. package/lib/commonjs/components/Banner/Banner.js +1 -1
  11. package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -1
  12. package/lib/commonjs/components/Box/Box.js +1 -1
  13. package/lib/commonjs/components/Button/Button.js +1 -1
  14. package/lib/commonjs/components/Card/Card.js +1 -1
  15. package/lib/commonjs/components/Composer/Composer.js +1 -1
  16. package/lib/commonjs/components/DatePicker/DatePicker.js +1 -1
  17. package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +1 -1
  18. package/lib/commonjs/components/Descriptions/Descriptions.js +1 -1
  19. package/lib/commonjs/components/FieldBase/ChoiceText.js +1 -1
  20. package/lib/commonjs/components/FieldBase/FieldBase.js +1 -1
  21. package/lib/commonjs/components/FieldBase/useFloatingLabel.js +1 -1
  22. package/lib/commonjs/components/FileViewer/FileViewer.js +1 -1
  23. package/lib/commonjs/components/FileViewer/FileViewerImage.js +1 -0
  24. package/lib/commonjs/components/FileViewer/fileSource.js +1 -0
  25. package/lib/commonjs/components/FormField/FormField.js +1 -1
  26. package/lib/commonjs/components/Input/Input.js +1 -1
  27. package/lib/commonjs/components/Markdown/Markdown.js +1 -1
  28. package/lib/commonjs/components/Menu/MenuSurface.js +1 -1
  29. package/lib/commonjs/components/Modal/Modal.js +1 -1
  30. package/lib/commonjs/components/Notation/Notation.js +1 -1
  31. package/lib/commonjs/components/NumberInput/NumberInput.js +1 -1
  32. package/lib/commonjs/components/OTPInput/OTPResendRow.js +1 -0
  33. package/lib/commonjs/components/OTPInput/index.js +1 -1
  34. package/lib/commonjs/components/ProgressBar/ProgressBar.js +1 -1
  35. package/lib/commonjs/components/Radio/Radio.js +1 -1
  36. package/lib/commonjs/components/Rating/Rating.js +1 -1
  37. package/lib/commonjs/components/SectionHeader/SectionHeader.js +1 -1
  38. package/lib/commonjs/components/Select/Select.js +1 -1
  39. package/lib/commonjs/components/Text/Text.js +1 -1
  40. package/lib/commonjs/components/Text/textInk.js +1 -0
  41. package/lib/commonjs/components/TimePicker/TimePicker.js +1 -1
  42. package/lib/commonjs/components/Tooltip/Tooltip.js +1 -1
  43. package/lib/commonjs/components/index.js +1 -1
  44. package/lib/commonjs/components/not-drawn.json +2 -0
  45. package/lib/commonjs/form/HookFormField.js +1 -1
  46. package/lib/commonjs/hooks/index.js +1 -1
  47. package/lib/commonjs/hooks/useFieldErrorScroll.js +1 -0
  48. package/lib/commonjs/hooks/useResendCountdown.js +1 -0
  49. package/lib/commonjs/index.js +1 -1
  50. package/lib/commonjs/navigation/index.js +1 -1
  51. package/lib/commonjs/navigation/useNavigationTheme.js +1 -0
  52. package/lib/commonjs/utils/feedback.js +1 -1
  53. package/lib/commonjs/utils/hapticUtils.js +1 -1
  54. package/lib/module/components/Accordion/Accordion.js +1 -1
  55. package/lib/module/components/AppBar/AppBar.js +1 -1
  56. package/lib/module/components/AppIcon/AppIcon.js +1 -1
  57. package/lib/module/components/AppIcon/catalog.g.js +1 -1
  58. package/lib/module/components/AppIcon/glyphs.g.js +1 -1
  59. package/lib/module/components/AppIcon/variants.g.js +1 -1
  60. package/lib/module/components/Banner/Banner.js +1 -1
  61. package/lib/module/components/BottomSheet/BottomSheet.js +1 -1
  62. package/lib/module/components/Box/Box.js +1 -1
  63. package/lib/module/components/Button/Button.js +1 -1
  64. package/lib/module/components/Card/Card.js +1 -1
  65. package/lib/module/components/Composer/Composer.js +1 -1
  66. package/lib/module/components/DatePicker/DatePicker.js +1 -1
  67. package/lib/module/components/DateRangePicker/DateRangePicker.js +1 -1
  68. package/lib/module/components/Descriptions/Descriptions.js +1 -1
  69. package/lib/module/components/FieldBase/ChoiceText.js +1 -1
  70. package/lib/module/components/FieldBase/FieldBase.js +1 -1
  71. package/lib/module/components/FieldBase/useFloatingLabel.js +1 -1
  72. package/lib/module/components/FileViewer/FileViewer.js +1 -1
  73. package/lib/module/components/FileViewer/FileViewerImage.js +1 -0
  74. package/lib/module/components/FileViewer/fileSource.js +1 -0
  75. package/lib/module/components/FormField/FormField.js +1 -1
  76. package/lib/module/components/Input/Input.js +1 -1
  77. package/lib/module/components/Markdown/Markdown.js +1 -1
  78. package/lib/module/components/Menu/MenuSurface.js +1 -1
  79. package/lib/module/components/Modal/Modal.js +1 -1
  80. package/lib/module/components/Notation/Notation.js +1 -1
  81. package/lib/module/components/NumberInput/NumberInput.js +1 -1
  82. package/lib/module/components/OTPInput/OTPResendRow.js +1 -0
  83. package/lib/module/components/OTPInput/index.js +1 -1
  84. package/lib/module/components/ProgressBar/ProgressBar.js +1 -1
  85. package/lib/module/components/Radio/Radio.js +1 -1
  86. package/lib/module/components/Rating/Rating.js +1 -1
  87. package/lib/module/components/SectionHeader/SectionHeader.js +1 -1
  88. package/lib/module/components/Select/Select.js +1 -1
  89. package/lib/module/components/Text/Text.js +1 -1
  90. package/lib/module/components/Text/textInk.js +1 -0
  91. package/lib/module/components/TimePicker/TimePicker.js +1 -1
  92. package/lib/module/components/Tooltip/Tooltip.js +1 -1
  93. package/lib/module/components/index.js +1 -1
  94. package/lib/module/components/not-drawn.json +2 -0
  95. package/lib/module/form/HookFormField.js +1 -1
  96. package/lib/module/hooks/index.js +1 -1
  97. package/lib/module/hooks/useFieldErrorScroll.js +1 -0
  98. package/lib/module/hooks/useResendCountdown.js +1 -0
  99. package/lib/module/index.js +1 -1
  100. package/lib/module/navigation/index.js +1 -1
  101. package/lib/module/navigation/useNavigationTheme.js +1 -0
  102. package/lib/module/utils/feedback.js +1 -1
  103. package/lib/module/utils/hapticUtils.js +1 -1
  104. package/lib/typescript/commonjs/components/Accordion/Accordion.d.ts +2 -1
  105. package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +2 -1
  106. package/lib/typescript/commonjs/components/AppIcon/AppIcon.d.ts +6 -3
  107. package/lib/typescript/commonjs/components/AppIcon/catalog.g.d.ts +1 -1
  108. package/lib/typescript/commonjs/components/AppIcon/glyphs.g.d.ts +1 -0
  109. package/lib/typescript/commonjs/components/AppIcon/index.d.ts +1 -1
  110. package/lib/typescript/commonjs/components/Banner/Banner.d.ts +2 -1
  111. package/lib/typescript/commonjs/components/Box/Box.d.ts +2 -2
  112. package/lib/typescript/commonjs/components/Button/Button.d.ts +3 -0
  113. package/lib/typescript/commonjs/components/Calendar/calendarStyles.d.ts +4 -4
  114. package/lib/typescript/commonjs/components/Card/Card.d.ts +5 -4
  115. package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +2 -1
  116. package/lib/typescript/commonjs/components/Chip/Chip.d.ts +2 -1
  117. package/lib/typescript/commonjs/components/Composer/Composer.d.ts +4 -0
  118. package/lib/typescript/commonjs/components/DatePicker/DatePicker.d.ts +4 -14
  119. package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +4 -14
  120. package/lib/typescript/commonjs/components/FileViewer/FileViewer.d.ts +5 -33
  121. package/lib/typescript/commonjs/components/FileViewer/FileViewerImage.d.ts +5 -0
  122. package/lib/typescript/commonjs/components/FileViewer/fileSource.d.ts +24 -0
  123. package/lib/typescript/commonjs/components/FileViewer/index.d.ts +1 -1
  124. package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +3 -0
  125. package/lib/typescript/commonjs/components/Markdown/Markdown.d.ts +3 -1
  126. package/lib/typescript/commonjs/components/Modal/Modal.d.ts +10 -0
  127. package/lib/typescript/commonjs/components/Notation/Notation.d.ts +5 -15
  128. package/lib/typescript/commonjs/components/NumberInput/NumberInput.d.ts +2 -0
  129. package/lib/typescript/commonjs/components/OTPInput/OTPResendRow.d.ts +25 -0
  130. package/lib/typescript/commonjs/components/OTPInput/index.d.ts +2 -0
  131. package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +5 -0
  132. package/lib/typescript/commonjs/components/PickerTrigger/index.d.ts +1 -1
  133. package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +2 -0
  134. package/lib/typescript/commonjs/components/Radio/Radio.d.ts +2 -0
  135. package/lib/typescript/commonjs/components/Rating/Rating.d.ts +2 -0
  136. package/lib/typescript/commonjs/components/SectionHeader/SectionHeader.d.ts +2 -0
  137. package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +2 -0
  138. package/lib/typescript/commonjs/components/Slider/Slider.d.ts +2 -0
  139. package/lib/typescript/commonjs/components/Stepper/Stepper.d.ts +2 -0
  140. package/lib/typescript/commonjs/components/Switch/Switch.d.ts +2 -0
  141. package/lib/typescript/commonjs/components/Text/Text.d.ts +2 -0
  142. package/lib/typescript/commonjs/components/Text/textInk.d.ts +14 -0
  143. package/lib/typescript/commonjs/components/TimePicker/TimePicker.d.ts +4 -15
  144. package/lib/typescript/commonjs/components/Tooltip/Tooltip.d.ts +2 -1
  145. package/lib/typescript/commonjs/components/index.d.ts +5 -4
  146. package/lib/typescript/commonjs/form/HookFormField.d.ts +4 -4
  147. package/lib/typescript/commonjs/hooks/index.d.ts +4 -0
  148. package/lib/typescript/commonjs/hooks/useFieldErrorScroll.d.ts +28 -0
  149. package/lib/typescript/commonjs/hooks/useResendCountdown.d.ts +16 -0
  150. package/lib/typescript/commonjs/index.d.ts +3 -3
  151. package/lib/typescript/commonjs/navigation/index.d.ts +1 -0
  152. package/lib/typescript/commonjs/navigation/useNavigationTheme.d.ts +7 -0
  153. package/lib/typescript/commonjs/utils/feedback.d.ts +2 -2
  154. package/lib/typescript/commonjs/utils/hapticUtils.d.ts +2 -0
  155. package/lib/typescript/module/components/Accordion/Accordion.d.ts +2 -1
  156. package/lib/typescript/module/components/AppBar/AppBar.d.ts +2 -1
  157. package/lib/typescript/module/components/AppIcon/AppIcon.d.ts +6 -3
  158. package/lib/typescript/module/components/AppIcon/catalog.g.d.ts +1 -1
  159. package/lib/typescript/module/components/AppIcon/glyphs.g.d.ts +1 -0
  160. package/lib/typescript/module/components/AppIcon/index.d.ts +1 -1
  161. package/lib/typescript/module/components/Banner/Banner.d.ts +2 -1
  162. package/lib/typescript/module/components/Box/Box.d.ts +2 -2
  163. package/lib/typescript/module/components/Button/Button.d.ts +3 -0
  164. package/lib/typescript/module/components/Calendar/calendarStyles.d.ts +4 -4
  165. package/lib/typescript/module/components/Card/Card.d.ts +5 -4
  166. package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +2 -1
  167. package/lib/typescript/module/components/Chip/Chip.d.ts +2 -1
  168. package/lib/typescript/module/components/Composer/Composer.d.ts +4 -0
  169. package/lib/typescript/module/components/DatePicker/DatePicker.d.ts +4 -14
  170. package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +4 -14
  171. package/lib/typescript/module/components/FileViewer/FileViewer.d.ts +5 -33
  172. package/lib/typescript/module/components/FileViewer/FileViewerImage.d.ts +5 -0
  173. package/lib/typescript/module/components/FileViewer/fileSource.d.ts +24 -0
  174. package/lib/typescript/module/components/FileViewer/index.d.ts +1 -1
  175. package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +3 -0
  176. package/lib/typescript/module/components/Markdown/Markdown.d.ts +3 -1
  177. package/lib/typescript/module/components/Modal/Modal.d.ts +10 -0
  178. package/lib/typescript/module/components/Notation/Notation.d.ts +5 -15
  179. package/lib/typescript/module/components/NumberInput/NumberInput.d.ts +2 -0
  180. package/lib/typescript/module/components/OTPInput/OTPResendRow.d.ts +25 -0
  181. package/lib/typescript/module/components/OTPInput/index.d.ts +2 -0
  182. package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +5 -0
  183. package/lib/typescript/module/components/PickerTrigger/index.d.ts +1 -1
  184. package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +2 -0
  185. package/lib/typescript/module/components/Radio/Radio.d.ts +2 -0
  186. package/lib/typescript/module/components/Rating/Rating.d.ts +2 -0
  187. package/lib/typescript/module/components/SectionHeader/SectionHeader.d.ts +2 -0
  188. package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +2 -0
  189. package/lib/typescript/module/components/Slider/Slider.d.ts +2 -0
  190. package/lib/typescript/module/components/Stepper/Stepper.d.ts +2 -0
  191. package/lib/typescript/module/components/Switch/Switch.d.ts +2 -0
  192. package/lib/typescript/module/components/Text/Text.d.ts +2 -0
  193. package/lib/typescript/module/components/Text/textInk.d.ts +14 -0
  194. package/lib/typescript/module/components/TimePicker/TimePicker.d.ts +4 -15
  195. package/lib/typescript/module/components/Tooltip/Tooltip.d.ts +2 -1
  196. package/lib/typescript/module/components/index.d.ts +5 -4
  197. package/lib/typescript/module/form/HookFormField.d.ts +4 -4
  198. package/lib/typescript/module/hooks/index.d.ts +4 -0
  199. package/lib/typescript/module/hooks/useFieldErrorScroll.d.ts +28 -0
  200. package/lib/typescript/module/hooks/useResendCountdown.d.ts +16 -0
  201. package/lib/typescript/module/index.d.ts +3 -3
  202. package/lib/typescript/module/navigation/index.d.ts +1 -0
  203. package/lib/typescript/module/navigation/useNavigationTheme.d.ts +7 -0
  204. package/lib/typescript/module/utils/feedback.d.ts +2 -2
  205. package/lib/typescript/module/utils/hapticUtils.d.ts +2 -0
  206. package/package.json +7 -7
@@ -33,7 +33,9 @@ export interface FloatingActionButtonProps {
33
33
  accessibilityHint?: string;
34
34
  /** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
35
35
  haptic?: HapticType | false;
36
+ /** The outer box. Applied last on that node, so it wins over containerStyle. */
36
37
  style?: StyleProp<ViewStyle>;
38
+ /** Alias of style, applied before it on the same node. Use style. */
37
39
  containerStyle?: StyleProp<ViewStyle>;
38
40
  labelStyle?: StyleProp<ViewStyle>;
39
41
  testID?: string;
@@ -81,6 +83,7 @@ export interface FloatingActionButtonGroupProps {
81
83
  hideOnScroll?: boolean;
82
84
  /** Whether the list behind the group is scrolling right now; wire to your scroll handler. */
83
85
  isScrolling?: boolean;
86
+ /** Styles the group wrapper, not an alias of `style`. */
84
87
  containerStyle?: StyleProp<ViewStyle>;
85
88
  secondaryActionStyle?: StyleProp<ViewStyle>;
86
89
  labelPillStyle?: StyleProp<ViewStyle>;
@@ -18,6 +18,8 @@ export interface MarkdownProps<T = string> {
18
18
  onAppLinkPress?: (target: T) => void;
19
19
  /** Called instead of Linking.openURL when a web or contact link is pressed. */
20
20
  onLinkPress?: (href: string) => void;
21
+ /** Opens a relative link, such as `/pricing`, in the host. Without it, relative links show as plain text. */
22
+ onPageLinkPress?: (href: string) => void;
21
23
  /**
22
24
  * When true, renders the component as its authored skeleton placeholder shape.
23
25
  * The placeholder mirrors the real layout's footprint so the UI doesn't reflow
@@ -33,7 +35,7 @@ export interface MarkdownProps<T = string> {
33
35
  * Renders the shared markdown grammar with the theme's own type scale and colours,
34
36
  * with no dependency. Inline HTML is plain text.
35
37
  */
36
- export declare function Markdown<T = string>({ children, links, headings, resolveLink, isCitation, onOpenCitation, onAppLinkPress, onLinkPress, loading, style, textStyle, testID, }: MarkdownProps<T>): React.ReactElement | null;
38
+ export declare function Markdown<T = string>({ children, links, headings, resolveLink, isCitation, onOpenCitation, onAppLinkPress, onLinkPress, onPageLinkPress, loading, style, textStyle, testID, }: MarkdownProps<T>): React.ReactElement | null;
37
39
  export declare namespace Markdown {
38
40
  var displayName: string;
39
41
  }
@@ -2,6 +2,7 @@ import type React from "react";
2
2
  import type { LayoutRectangle, View as RNView, StyleProp, ViewStyle } from "react-native";
3
3
  import type { HapticType } from "../../utils/hapticUtils.js";
4
4
  import type { PlacementAlign, PlacementPreference } from "../../utils/placement.js";
5
+ import type { ModalInsets } from "../ModalSafeArea/ModalSafeArea.js";
5
6
  export type ModalPresentation = "centered" | "bottom" | "fullScreen" | "anchored";
6
7
  export interface ModalLabels {
7
8
  close: string;
@@ -59,6 +60,15 @@ export interface ModalProps {
59
60
  /** Horizontal alignment of the anchored presentation against the anchor. Default "center". */
60
61
  align?: PlacementAlign;
61
62
  testID?: string;
63
+ /**
64
+ * Draws no surface, radius, shadow, padding or width around children: the children are the card.
65
+ * The dim layer, the dismiss tap, the safe area and the toast host stay with Modal. For "bottom" the
66
+ * children sit on the bottom edge at full width; for "fullScreen" they fill the layer and
67
+ * must place themselves (an anchored surface). Not valid with "anchored" (throws). Default false.
68
+ */
69
+ bare?: boolean;
70
+ /** Called with the top and bottom insets of the window the modal draws in, whenever they change. */
71
+ onInsetsChange?: (insets: ModalInsets) => void;
62
72
  }
63
73
  declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<RNView>>;
64
74
  export { Modal };
@@ -1,5 +1,4 @@
1
1
  import type React from "react";
2
- import type { ColorValue, StyleProp, TextStyle } from "react-native";
3
2
  export interface NotationRun {
4
3
  text: string;
5
4
  /** The subscript that follows `text`, when the run is a symbol. */
@@ -32,21 +31,12 @@ export interface NotationProps {
32
31
  }
33
32
  /** The text split into runs: `{ text }` for prose, `{ text, sub }` for a symbol and its subscript. */
34
33
  export declare const parseNotation: (text: string | null | undefined) => NotationRun[];
35
- /** The size and ink of the Text a Notation sits in, which the subscript's View cannot inherit. */
36
- export interface NotationInk {
37
- fontSize: number;
38
- color: ColorValue;
39
- }
40
- /**
41
- * Provided by a field's text lines (FieldLabel, the floating label, FieldMessage, the FormField
42
- * label, helper and error, and the Checkbox, Radio and Switch label, description and error) so a
43
- * subscript inside one scales and inks with that line.
44
- */
45
- export declare const NotationInkContext: React.Context<NotationInk | null>;
46
- /** The ink for a line's provider: the line's own `style` size and colour win over its defaults. */
47
- export declare const useNotationInk: (style: StyleProp<TextStyle>, fontSize: number, color: ColorValue) => NotationInk;
48
34
  /** A symbol of a standard with its subscript drawn small and lowered below the baseline. */
49
- export declare const Notation: React.FC<NotationProps>;
35
+ export declare const Notation: {
36
+ ({ text, base, sub, desc, color, testID }: NotationProps): React.ReactElement;
37
+ /** Elements whose type sets `inlineText` render inline inside Descriptions values. */
38
+ inlineText: boolean;
39
+ };
50
40
  /** A symbol as the standard prints it: `sym('C', 'IP')` is C with a small IP, then `desc` if given. */
51
41
  export declare const sym: (base: string, sub?: string, desc?: string, color?: string) => React.ReactElement;
52
42
  export default Notation;
@@ -46,7 +46,9 @@ export interface NumberInputProps {
46
46
  haptic?: HapticType | false;
47
47
  labels?: Partial<NumberInputLabels>;
48
48
  accessibilityLabel?: string;
49
+ /** The outer box. Applied last on that node, so it wins over containerStyle. */
49
50
  style?: StyleProp<ViewStyle>;
51
+ /** Alias of style, applied before it on the same node. Use style. */
50
52
  containerStyle?: StyleProp<ViewStyle>;
51
53
  inputStyle?: StyleProp<TextStyle>;
52
54
  buttonStyle?: StyleProp<ViewStyle>;
@@ -0,0 +1,25 @@
1
+ import type { StyleProp, ViewStyle } from "react-native";
2
+ export interface OTPResendRowLabels {
3
+ expiresIn: (time: string) => string;
4
+ expired: string;
5
+ resendIn: (time: string) => string;
6
+ resendWaitSpoken: (seconds: number) => string;
7
+ resend: string;
8
+ sendNew: string;
9
+ }
10
+ export declare const DEFAULT_OTP_RESEND_ROW_LABELS: Readonly<OTPResendRowLabels>;
11
+ export interface OTPResendRowProps {
12
+ resendSecondsLeft: number;
13
+ expirySecondsLeft?: number | null;
14
+ onResend: () => void;
15
+ resending?: boolean;
16
+ labels?: Partial<OTPResendRowLabels>;
17
+ style?: StyleProp<ViewStyle>;
18
+ testID?: string;
19
+ }
20
+ declare const OTPResendRow: {
21
+ ({ resendSecondsLeft, expirySecondsLeft, onResend, resending, labels: labelsProp, style, testID, }: OTPResendRowProps): import("react").JSX.Element;
22
+ displayName: string;
23
+ };
24
+ export { OTPResendRow };
25
+ //# sourceMappingURL=OTPResendRow.d.ts.map
@@ -1,3 +1,5 @@
1
1
  export type { OTPInputLabels, OTPInputProps, OTPInputRef, OTPInputSize } from "./OTPInput.js";
2
2
  export { DEFAULT_OTP_INPUT_LABELS, default, OTPInput } from "./OTPInput.js";
3
+ export type { OTPResendRowLabels, OTPResendRowProps } from "./OTPResendRow.js";
4
+ export { DEFAULT_OTP_RESEND_ROW_LABELS, OTPResendRow } from "./OTPResendRow.js";
3
5
  //# sourceMappingURL=index.d.ts.map
@@ -66,6 +66,11 @@ export interface PickerTriggerProps {
66
66
  labels?: Partial<PickerTriggerLabels>;
67
67
  testID?: string;
68
68
  }
69
+ /** The PickerTrigger props a picker forwards to its built-in trigger field. */
70
+ export type PickerTriggerPassThroughProps = Pick<PickerTriggerProps, "label" | "help" | "placeholder" | "helperText" | "error" | "required" | "disabled" | "size" | "variant" | "clearable" | "onClear" | "leadingIcon" | "trailing" | "triggerStyle" | "valueStyle" | "labelStyle" | "messageStyle" | "accessibilityLabel"> & {
71
+ /** Copy for the trigger field (placeholder, selection, noSelection, clear). Named apart from labels, which is the copy of the picker sheet. */
72
+ triggerLabels?: Partial<PickerTriggerLabels>;
73
+ };
69
74
  declare const PickerTrigger: React.ForwardRefExoticComponent<PickerTriggerProps & React.RefAttributes<RNView>>;
70
75
  export { PickerTrigger };
71
76
  export default PickerTrigger;
@@ -1,3 +1,3 @@
1
- export type { PickerTriggerLabels, PickerTriggerProps, PickerTriggerSize, PickerTriggerVariant } from "./PickerTrigger.js";
1
+ export type { PickerTriggerLabels, PickerTriggerPassThroughProps, PickerTriggerProps, PickerTriggerSize, PickerTriggerVariant, } from "./PickerTrigger.js";
2
2
  export { DEFAULT_PICKER_TRIGGER_LABELS, default, PickerTrigger } from "./PickerTrigger.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -32,7 +32,9 @@ export interface ProgressBarProps {
32
32
  /** Render a multi-colour breakdown bar (usage split) instead of a single progress fill. */
33
33
  segments?: ProgressBarSegment[];
34
34
  animated?: boolean;
35
+ /** The outer box. Applied last on that node, so it wins over containerStyle. */
35
36
  style?: StyleProp<ViewStyle>;
37
+ /** Alias of style, applied before it on the same node. Use style. */
36
38
  containerStyle?: StyleProp<ViewStyle>;
37
39
  barStyle?: StyleProp<ViewStyle>;
38
40
  accessibilityLabel?: string;
@@ -37,7 +37,9 @@ export interface RadioProps extends Omit<PressableProps, "style" | "children" |
37
37
  tone?: RadioTone;
38
38
  accessibilityLabel?: string;
39
39
  haptic?: HapticType | false;
40
+ /** The outer box. Applied last on that node, so it wins over containerStyle. */
40
41
  style?: StyleProp<ViewStyle>;
42
+ /** Alias of style, applied before it on the same node. Use style. */
41
43
  containerStyle?: StyleProp<ViewStyle>;
42
44
  circleStyle?: StyleProp<ViewStyle>;
43
45
  dotStyle?: StyleProp<ViewStyle>;
@@ -30,7 +30,9 @@ export interface RatingProps {
30
30
  haptic?: HapticType | false;
31
31
  labels?: Partial<RatingLabels>;
32
32
  accessibilityLabel?: string;
33
+ /** The outer box. Applied last on that node, so it wins over containerStyle. */
33
34
  style?: StyleProp<ViewStyle>;
35
+ /** Alias of style, applied before it on the same node. Use style. */
34
36
  containerStyle?: StyleProp<ViewStyle>;
35
37
  starContainerStyle?: StyleProp<ViewStyle>;
36
38
  testID?: string;
@@ -16,6 +16,8 @@ export interface SectionHeaderProps {
16
16
  variant?: SectionHeaderVariant;
17
17
  /** Drop the room above, for the first heading of a block. */
18
18
  flush?: boolean;
19
+ /** Drop the room below, for a heading that sits tight on the content under it. flush drops the room above. */
20
+ flushBottom?: boolean;
19
21
  /** Draws the required marker after the heading and announces the heading as required. */
20
22
  required?: boolean;
21
23
  /** A link at the end of the heading row, such as See all. */
@@ -85,7 +85,9 @@ export interface SegmentedControlProps {
85
85
  /** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
86
86
  haptic?: HapticType | false;
87
87
  accessibilityLabel?: string;
88
+ /** The outer box. Applied last on that node, so it wins over containerStyle. */
88
89
  style?: StyleProp<ViewStyle>;
90
+ /** Alias of style, applied before it on the same node. Use style. */
89
91
  containerStyle?: StyleProp<ViewStyle>;
90
92
  segmentStyle?: StyleProp<ViewStyle>;
91
93
  selectedIndicatorStyle?: StyleProp<ViewStyle>;
@@ -56,7 +56,9 @@ interface SliderCommonProps {
56
56
  * catching. Pass false to disable; pass a HapticType to override.
57
57
  */
58
58
  haptic?: HapticType | false;
59
+ /** The outer box. Applied last on that node, so it wins over containerStyle. */
59
60
  style?: StyleProp<ViewStyle>;
61
+ /** Alias of style, applied before it on the same node. Use style. */
60
62
  containerStyle?: StyleProp<ViewStyle>;
61
63
  trackStyle?: StyleProp<ViewStyle>;
62
64
  fillStyle?: StyleProp<ViewStyle>;
@@ -78,7 +78,9 @@ export interface StepperProps {
78
78
  */
79
79
  loading?: boolean;
80
80
  accessibilityLabel?: string;
81
+ /** The outer box. Applied last on that node, so it wins over containerStyle. */
81
82
  style?: StyleProp<ViewStyle>;
83
+ /** Alias of style, applied before it on the same node. Use style. */
82
84
  containerStyle?: StyleProp<ViewStyle>;
83
85
  circleStyle?: StyleProp<ViewStyle>;
84
86
  labelStyle?: StyleProp<TextStyle>;
@@ -42,7 +42,9 @@ export interface SwitchProps extends Omit<PressableProps, "style" | "children" |
42
42
  * Use for playful/brand-flavored switches; default off for system feel.
43
43
  */
44
44
  bounce?: boolean;
45
+ /** The outer box. Applied last on that node, so it wins over containerStyle. */
45
46
  style?: StyleProp<ViewStyle>;
47
+ /** Alias of style, applied before it on the same node. Use style. With no label or text, it wraps the Pressable instead. */
46
48
  containerStyle?: StyleProp<ViewStyle>;
47
49
  trackStyle?: StyleProp<ViewStyle>;
48
50
  thumbStyle?: StyleProp<ViewStyle>;
@@ -19,6 +19,8 @@ export interface TextProps extends Omit<RNTextProps, "style"> {
19
19
  align?: TextStyle["textAlign"];
20
20
  italic?: boolean;
21
21
  underline?: boolean;
22
+ /** Draws a line through the text, for a done or reversed item. It joins with underline. */
23
+ strikethrough?: boolean;
22
24
  children?: React.ReactNode;
23
25
  style?: StyleProp<TextStyle>;
24
26
  }
@@ -0,0 +1,14 @@
1
+ import type { ColorValue, StyleProp, TextStyle } from "react-native";
2
+ /** The size and ink of the text line a child sits in, which an inline View cannot inherit. */
3
+ export interface TextInk {
4
+ fontSize: number;
5
+ color: ColorValue;
6
+ }
7
+ /**
8
+ * The size and colour of the text line around a child, published by Text and the field label lines,
9
+ * so inline elements match their line.
10
+ */
11
+ export declare const TextInkContext: import("react").Context<TextInk | null>;
12
+ /** The ink for a line's provider: the line's own `style` size and colour win over its defaults. */
13
+ export declare const useTextInk: (style: StyleProp<TextStyle>, fontSize: number, color: ColorValue) => TextInk;
14
+ //# sourceMappingURL=textInk.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import type React from "react";
2
2
  import type { StyleProp, ViewStyle } from "react-native";
3
3
  import type { HapticType } from "../../utils/hapticUtils.js";
4
- import type { FieldBaseSize, FieldBaseVariant } from "../FieldBase/index.js";
4
+ import type { PickerTriggerPassThroughProps } from "../PickerTrigger/PickerTrigger.js";
5
5
  export type TimeFormat = "12h" | "24h";
6
6
  export type Period = "AM" | "PM";
7
7
  export type MinuteStep = 1 | 5 | 15 | 30;
@@ -34,7 +34,7 @@ export declare const DEFAULT_TIME_PICKER_LABELS: Readonly<TimePickerLabels>;
34
34
  * and manages its own modal open state. `onChange` is still called on
35
35
  * confirm.
36
36
  */
37
- export interface TimePickerProps {
37
+ export interface TimePickerProps extends PickerTriggerPassThroughProps {
38
38
  /** Controlled-modal visibility. When omitted, the component enters trigger mode. */
39
39
  visible?: boolean;
40
40
  value?: TimeValue | null;
@@ -45,27 +45,16 @@ export interface TimePickerProps {
45
45
  /** Chrome copy, merged over DEFAULT_TIME_PICKER_LABELS. */
46
46
  labels?: Partial<TimePickerLabels>;
47
47
  testID?: string;
48
+ /** The outer box. Applied last on that node, so it wins over containerStyle. */
48
49
  style?: StyleProp<ViewStyle>;
49
- /** Outer container style applied to the bottom sheet. */
50
+ /** Applied to the bottom sheet, before style on the same node. */
50
51
  containerStyle?: StyleProp<ViewStyle>;
51
52
  /** Style override for the title text container. */
52
53
  headerLabelStyle?: StyleProp<ViewStyle>;
53
54
  /** Style override for the cancel/confirm footer buttons. */
54
55
  footerButtonStyle?: StyleProp<ViewStyle>;
55
- label?: string;
56
- placeholder?: string;
57
- helperText?: string;
58
- error?: string | boolean;
59
- required?: boolean;
60
- disabled?: boolean;
61
- size?: FieldBaseSize;
62
- variant?: FieldBaseVariant;
63
- clearable?: boolean;
64
- onClear?: () => void;
65
56
  /** Override the trigger field's value formatting. Defaults to `format`-aware h:mm/HH:mm. */
66
57
  formatValue?: (time: TimeValue) => string;
67
- /** Style passed through to the PickerTrigger field row. */
68
- triggerStyle?: StyleProp<ViewStyle>;
69
58
  /** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
70
59
  haptic?: HapticType | false;
71
60
  }
@@ -41,8 +41,9 @@ export interface TooltipProps {
41
41
  maxWidth?: number;
42
42
  showArrow?: boolean;
43
43
  accessibilityLabel?: string;
44
+ /** The outer box. Applied last on that node, so it wins over containerStyle. */
44
45
  style?: StyleProp<ViewStyle>;
45
- /** Alias of `style`. Applied to the outer animated tooltip wrapper (merged additively). */
46
+ /** Alias of style, applied before it on the same node. Use style. */
46
47
  containerStyle?: StyleProp<ViewStyle>;
47
48
  /** Style override applied to the arrow caret View. */
48
49
  arrowStyle?: StyleProp<ViewStyle>;
@@ -70,7 +70,7 @@ export type { ErrorBoundaryInfo, ErrorBoundaryLabels, ErrorBoundaryProps } from
70
70
  export { DEFAULT_ERROR_BOUNDARY_LABELS, ErrorBoundary, useErrorHandler, withErrorBoundary } from "./ErrorBoundary/index.js";
71
71
  export type { FilePickerFile, FilePickerFileState, FilePickerFileStatus, FilePickerLabels, FilePickerProps, FilePickerRef, FilePickerSource, FilePickerTriggerState, FilePickerVariant, } from "./FilePicker/index.js";
72
72
  export { DEFAULT_FILE_PICKER_LABELS, FilePicker, formatFileSize } from "./FilePicker/index.js";
73
- export type { FileViewerProps, FileViewerSource } from "./FileViewer/index.js";
73
+ export type { FileViewerKind, FileViewerProps, FileViewerSource } from "./FileViewer/index.js";
74
74
  export { FileViewer } from "./FileViewer/index.js";
75
75
  export type { FilterChipItem, FilterChipRowProps } from "./FilterChipRow/index.js";
76
76
  export { FilterChipRow } from "./FilterChipRow/index.js";
@@ -118,15 +118,15 @@ export type { OnboardingPage, OnboardingPagerLabels, OnboardingPagerProps, } fro
118
118
  export { DEFAULT_ONBOARDING_PAGER_LABELS, OnboardingPager } from "./OnboardingPager/index.js";
119
119
  export type { OptionRenderState, OptionSheetLabels, OptionSheetProps, OptionSheetSection } from "./OptionSheet/index.js";
120
120
  export { DEFAULT_OPTION_SHEET_LABELS, OptionSheet } from "./OptionSheet/index.js";
121
- export type { OTPInputLabels, OTPInputProps, OTPInputRef, OTPInputSize } from "./OTPInput/index.js";
122
- export { DEFAULT_OTP_INPUT_LABELS, OTPInput } from "./OTPInput/index.js";
121
+ export type { OTPInputLabels, OTPInputProps, OTPInputRef, OTPInputSize, OTPResendRowLabels, OTPResendRowProps } from "./OTPInput/index.js";
122
+ export { DEFAULT_OTP_INPUT_LABELS, DEFAULT_OTP_RESEND_ROW_LABELS, OTPInput, OTPResendRow } from "./OTPInput/index.js";
123
123
  export type { PagedListFooterLabels, PagedListFooterProps } from "./PagedListFooter/index.js";
124
124
  export { DEFAULT_PAGED_LIST_FOOTER_LABELS, PagedListFooter } from "./PagedListFooter/index.js";
125
125
  export type { PermissionPromptFallback, PermissionPromptLabels, PermissionPromptProps, PermissionPromptView, UsePermissionPromptOptions, UsePermissionPromptResult, } from "./PermissionPrompt/index.js";
126
126
  export { DEFAULT_PERMISSION_PROMPT_LABELS, PermissionPrompt, usePermissionPrompt } from "./PermissionPrompt/index.js";
127
127
  export type { CallingCode, PhoneNumberInfo, PhoneNumberInputLabelMode, PhoneNumberInputLabels, PhoneNumberInputProps, PhoneNumberInputRef, PhoneNumberValidation, PhoneNumberValue, } from "./PhoneNumberInput/index.js";
128
128
  export { ALL_CALLING_CODES, DEFAULT_CALLING_CODES, DEFAULT_PHONE_NUMBER_INPUT_LABELS, formatE164, PhoneNumberInput, parseE164, } from "./PhoneNumberInput/index.js";
129
- export type { PickerTriggerLabels, PickerTriggerProps, PickerTriggerSize, PickerTriggerVariant } from "./PickerTrigger/index.js";
129
+ export type { PickerTriggerLabels, PickerTriggerPassThroughProps, PickerTriggerProps, PickerTriggerSize, PickerTriggerVariant, } from "./PickerTrigger/index.js";
130
130
  export { DEFAULT_PICKER_TRIGGER_LABELS, PickerTrigger } from "./PickerTrigger/index.js";
131
131
  export type { ProfileCompletionAvatarTone, ProfileCompletionLabels, ProfileCompletionProps, ProfileCompletionRingVariant, ProfileCompletionSize, } from "./ProfileCompletion/index.js";
132
132
  export { DEFAULT_PROFILE_COMPLETION_LABELS, ProfileCompletion } from "./ProfileCompletion/index.js";
@@ -194,6 +194,7 @@ export type { TagInputProps } from "./TagInput/index.js";
194
194
  export { TagInput } from "./TagInput/index.js";
195
195
  export type { TextColor, TextProps, TextVariant } from "./Text/index.js";
196
196
  export { Text } from "./Text/index.js";
197
+ export { TextInkContext, useTextInk } from "./Text/textInk.js";
197
198
  export type { TimelineItem, TimelineOrientation, TimelineProps, TimelineStatus, TimelineVariant, } from "./Timeline/index.js";
198
199
  export { Timeline } from "./Timeline/index.js";
199
200
  export type { MinuteStep, Period, TimeFormat, TimePickerLabels, TimePickerProps, TimeValue } from "./TimePicker/index.js";
@@ -6,10 +6,10 @@ import { type HookFieldProps } from "./useHookFormField.js";
6
6
  type FieldChromeProps = Omit<FormFieldProps, "children" | "error">;
7
7
  export type HookFormFieldProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TTransformedValues = TFieldValues> = FieldChromeProps & UseControllerProps<TFieldValues, TName, TTransformedValues> & {
8
8
  /**
9
- * A text input element (`<Input />`, `<PhoneNumberInput />`) gets `value`,
10
- * `onChangeText`, `onBlur`, `error` and a ref injected. Any other control
11
- * takes the render-prop form:
12
- * `{(field) => <Select value={field.value} onChange={field.onChange} error={field.error} />}`.
9
+ * A text input element (`<Input />`) gets `value`, `onChangeText`, `onBlur`,
10
+ * `error` and a ref injected. Any other control takes the render-prop form,
11
+ * for example a `PhoneNumberInput`, which takes an object `value` and `onChange`:
12
+ * `{(field) => <PhoneNumberInput value={field.value} onChange={field.onChange} error={field.error} />}`.
13
13
  * A render-prop control that is passed `error` draws it itself, so the
14
14
  * frame leaves its own copy out; one that is not passed `error` has the
15
15
  * message drawn under it by the frame.
@@ -5,6 +5,8 @@ export type { DragToDismissController, SheetNativeGesture, SheetPanGesture, UseD
5
5
  export { createDragToDismissController, DRAG_DISMISS_DISTANCE, DRAG_DISMISS_VELOCITY, useDragToDismiss, } from "./useDragToDismiss.js";
6
6
  export type { FieldChain, FieldChainProps } from "./useFieldChain.js";
7
7
  export { useFieldChain } from "./useFieldChain.js";
8
+ export type { FieldErrorRegistry, UseFieldErrorScrollOptions, UseFieldErrorScrollResult } from "./useFieldErrorScroll.js";
9
+ export { FieldErrorScrollContext, useFieldErrorAnchor, useFieldErrorScroll } from "./useFieldErrorScroll.js";
8
10
  export { FLICK_TOLERANCE, useFlickGuard } from "./useFlickGuard.js";
9
11
  export type { MotionDurationKey, PresenceMotion } from "./usePresenceMotion.js";
10
12
  export { PRESENCE_REDUCE_MOTION, usePresenceMotion } from "./usePresenceMotion.js";
@@ -13,6 +15,8 @@ export { PRESS_ANIMATION_PRESETS, usePressAnimation } from "./usePressAnimation.
13
15
  export { useReducedMotion } from "./useReducedMotion.js";
14
16
  export type { UseRefreshControlLabels, UseRefreshControlOptions, UseRefreshControlResult, } from "./useRefreshControl.js";
15
17
  export { useRefreshControl } from "./useRefreshControl.js";
18
+ export type { UseResendCountdownOptions, UseResendCountdownResult } from "./useResendCountdown.js";
19
+ export { useResendCountdown } from "./useResendCountdown.js";
16
20
  export type { ScrollDirection, UseScrollDirectionOptions, UseScrollDirectionResult, } from "./useScrollDirection.js";
17
21
  export { useScrollDirection } from "./useScrollDirection.js";
18
22
  export type { UseToggleResult } from "./useToggle.js";
@@ -0,0 +1,28 @@
1
+ import { type Ref, type RefObject } from "react";
2
+ import type { LayoutChangeEvent, ScrollView, View } from "react-native";
3
+ export interface FieldErrorRegistry {
4
+ add: (anchor: RefObject<View | null>) => () => void;
5
+ }
6
+ /**
7
+ * Bringing the first field that shows an error into view. A form field that shows an error joins
8
+ * the registry a screen provides (useFieldErrorAnchor, in the app's field wrappers); a refused step
9
+ * measures every member against a container inside the scroll content and scrolls to the topmost.
10
+ *
11
+ * Topmost by measurement rather than first by error key, because the keys follow the schema's order
12
+ * and a step lays its fields out in its own. Outside a provider a field joins nothing.
13
+ */
14
+ export declare const FieldErrorScrollContext: import("react").Context<FieldErrorRegistry | null>;
15
+ export declare const useFieldErrorAnchor: (error: unknown, forwardedRef?: Ref<View>) => ((node: View | null) => void);
16
+ export interface UseFieldErrorScrollOptions {
17
+ scrollRef: RefObject<ScrollView | null>;
18
+ /** Room kept above the first error so its label shows too. Defaults to 16. */
19
+ offset?: number;
20
+ }
21
+ export interface UseFieldErrorScrollResult {
22
+ registry: FieldErrorRegistry;
23
+ containerRef: RefObject<View | null>;
24
+ onContainerLayout: (event: LayoutChangeEvent) => void;
25
+ scrollToFirstError: () => void;
26
+ }
27
+ export declare const useFieldErrorScroll: ({ scrollRef, offset }: UseFieldErrorScrollOptions) => UseFieldErrorScrollResult;
28
+ //# sourceMappingURL=useFieldErrorScroll.d.ts.map
@@ -0,0 +1,16 @@
1
+ export interface UseResendCountdownOptions {
2
+ /** Seconds before a new code may be asked for. */
3
+ resendSeconds: number;
4
+ /** Seconds the code stays valid; null or undefined when the code has no known expiry. */
5
+ expirySeconds?: number | null;
6
+ /** Wall-clock start (Date.now()) of the current challenge. Changing it restarts both timers. */
7
+ startedAtMs: number;
8
+ }
9
+ export interface UseResendCountdownResult {
10
+ /** Whole seconds left before Resend is allowed; 0 when allowed. */
11
+ resendSecondsLeft: number;
12
+ /** Whole seconds left on the code; null when there is no expiry. 0 when expired. */
13
+ expirySecondsLeft: number | null;
14
+ }
15
+ export declare const useResendCountdown: ({ resendSeconds, expirySeconds, startedAtMs }: UseResendCountdownOptions) => UseResendCountdownResult;
16
+ //# sourceMappingURL=useResendCountdown.d.ts.map
@@ -1,11 +1,11 @@
1
1
  export { PHONE_CHROME_INSETS } from "./canvasKit/index.js";
2
2
  export * from "./components/index.js";
3
- export type { AppIconName, AppIconProps, AppIconSize, CuratedIconName, IconName, IconsaxShadowedName, IconVariant, SlotIcon, SlotIconRef, SlotIconState, SlotNode, } from "./components/AppIcon/index.js";
3
+ export type { AppIconColor, AppIconName, AppIconProps, AppIconSize, CuratedIconName, IconName, IconsaxShadowedName, IconVariant, SlotIcon, SlotIconRef, SlotIconState, SlotNode, } from "./components/AppIcon/index.js";
4
4
  export { APP_ICON_SIZES, AppIcon, CURATED_ICON_NAMES, defaultIcons, ICON_NAMES, ICONSAX_SUFFIX, renderSlotIcon, } from "./components/AppIcon/index.js";
5
5
  export type { FormCompletion, HookFieldProps, HookFormFieldProps, UseFormCompletionOptions } from "./form/index.js";
6
6
  export { deletePath, getPath, HookFormField, isFieldFilled, setPath, useFormCompletion, useHookFormField, } from "./form/index.js";
7
- export type { FieldChain, FieldChainProps, MotionDurationKey, PresenceMotion, PressAnimationPreset, ScrollDirection, UseControllableStateOptions, UsePressAnimationOptions, UsePressAnimationResult, UseRefreshControlLabels, UseRefreshControlOptions, UseRefreshControlResult, UseScrollDirectionOptions, UseScrollDirectionResult, UseToggleResult, } from "./hooks/index.js";
8
- export { FLICK_TOLERANCE, PRESENCE_REDUCE_MOTION, PRESS_ANIMATION_PRESETS, useControllableState, useDebounce, useFieldChain, useFlickGuard, usePresenceMotion, usePressAnimation, useReducedMotion, useRefreshControl, useScrollDirection, useToggle, } from "./hooks/index.js";
7
+ export type { FieldChain, FieldChainProps, FieldErrorRegistry, MotionDurationKey, PresenceMotion, PressAnimationPreset, ScrollDirection, UseControllableStateOptions, UseFieldErrorScrollOptions, UseFieldErrorScrollResult, UsePressAnimationOptions, UsePressAnimationResult, UseRefreshControlLabels, UseRefreshControlOptions, UseRefreshControlResult, UseResendCountdownOptions, UseResendCountdownResult, UseScrollDirectionOptions, UseScrollDirectionResult, UseToggleResult, } from "./hooks/index.js";
8
+ export { FieldErrorScrollContext, FLICK_TOLERANCE, PRESENCE_REDUCE_MOTION, PRESS_ANIMATION_PRESETS, useControllableState, useDebounce, useFieldChain, useFieldErrorAnchor, useFieldErrorScroll, useFlickGuard, usePresenceMotion, usePressAnimation, useReducedMotion, useRefreshControl, useResendCountdown, useScrollDirection, useToggle, } from "./hooks/index.js";
9
9
  export type { NetworkStatusBannerProps } from "./network/index.js";
10
10
  export { NetworkStatusBanner } from "./network/index.js";
11
11
  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/index.js";
@@ -2,4 +2,5 @@ export type { DiscardGuardHandle, DiscardGuardLabels, DiscardGuardProps } from "
2
2
  export { DEFAULT_DISCARD_GUARD_LABELS, DiscardGuard } from "./DiscardGuard.js";
3
3
  export type { NavigationScreenKind, NavigationScreenProps } from "./NavigationScreen.js";
4
4
  export { NavigationScreen } from "./NavigationScreen.js";
5
+ export { useNavigationTheme } from "./useNavigationTheme.js";
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The app's tokens in React Navigation's theme shape. Without it the container paints its light
3
+ * default behind every transition, which flashes white in dark mode.
4
+ */
5
+ import type { Theme } from "@react-navigation/native";
6
+ export declare const useNavigationTheme: () => Theme;
7
+ //# sourceMappingURL=useNavigationTheme.d.ts.map
@@ -9,8 +9,8 @@ import { type HapticType } from "./hapticUtils.js";
9
9
  */
10
10
  export type FeedbackIntent = "tap" | "select" | "longPress" | "created" | "deleted" | "restored" | "toggledOn" | "toggledOff" | "succeeded" | "warned" | "failed";
11
11
  /**
12
- * Gate every intent from one place, so an app's "haptics" setting needs no
13
- * per-component plumbing.
12
+ * Gates `triggerHaptic` itself, so every caller is silenced by one setting: the
13
+ * library components and the app's own calls alike, not only these intents.
14
14
  */
15
15
  export declare const configureFeedback: (prefs: {
16
16
  haptics: boolean;
@@ -1,4 +1,6 @@
1
1
  export type HapticType = "selection" | "impactLight" | "impactMedium" | "impactHeavy" | "notificationSuccess" | "notificationWarning" | "notificationError" | "longPress" | "tick" | "denseTick" | "confirm" | "reject" | "gestureStart";
2
+ export declare const setHapticsEnabled: (enabled: boolean) => void;
3
+ export declare const isHapticsEnabled: () => boolean;
2
4
  export declare const triggerHaptic: (type?: HapticType) => void;
3
5
  /**
4
6
  * Replace the haptic backend. Intended for TESTS and for the showcase; an app
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/mobile-ui",
3
- "version": "0.127.0",
3
+ "version": "0.129.0",
4
4
  "description": "Beautiful, animated, accessible React Native components, theme and form engine for Webority projects.",
5
5
  "keywords": [
6
6
  "react-native",
@@ -85,13 +85,13 @@
85
85
  }
86
86
  },
87
87
  "dependencies": {
88
- "@webority/markdown-core": "0.127.0"
88
+ "@webority/markdown-core": "0.129.0"
89
89
  },
90
90
  "peerDependencies": {
91
91
  "@react-navigation/bottom-tabs": ">=7.0.0",
92
92
  "@react-navigation/native": ">=7.0.0",
93
- "@webority/canvas-kit": "0.127.0",
94
- "@webority/mobile-core": "0.127.0",
93
+ "@webority/canvas-kit": "0.129.0",
94
+ "@webority/mobile-core": "0.129.0",
95
95
  "expo": ">=57.0.0",
96
96
  "expo-file-system": ">=57.0.0",
97
97
  "expo-haptics": ">=57.0.0",
@@ -155,10 +155,10 @@
155
155
  "@types/node": "25.6.0",
156
156
  "@types/react": "19.2.18",
157
157
  "@types/react-test-renderer": "19.1.0",
158
- "@webority/canvas-kit": "0.127.0",
159
- "@webority/mobile-core": "0.127.0",
158
+ "@webority/canvas-kit": "0.129.0",
159
+ "@webority/mobile-core": "0.129.0",
160
160
  "@webority/mobile-dev": "0.0.0",
161
- "@webority/tokens": "0.127.0",
161
+ "@webority/tokens": "0.129.0",
162
162
  "expo": "57.0.31",
163
163
  "expo-file-system": "57.0.7",
164
164
  "expo-haptics": "57.0.3",