@webority/mobile-ui 0.129.0 → 0.130.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/canvas-kit.json +2 -1
  2. package/dist/canvas-kit/kit.js +3358 -2919
  3. package/dist/canvas-kit/manifest.json +824 -295
  4. package/dist/canvas-kit/release.json +6 -6
  5. package/lib/commonjs/components/AppLockOverlay/AppLockOverlay.js +1 -1
  6. package/lib/commonjs/components/Avatar/Avatar.js +1 -1
  7. package/lib/commonjs/components/Banner/Banner.js +1 -1
  8. package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -1
  9. package/lib/commonjs/components/Card/Card.js +1 -1
  10. package/lib/commonjs/components/Checkbox/Checkbox.js +1 -1
  11. package/lib/commonjs/components/Confirm/confirm.js +1 -1
  12. package/lib/commonjs/components/DatePicker/DatePicker.js +1 -1
  13. package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +1 -1
  14. package/lib/commonjs/components/Dialog/Dialog.js +1 -1
  15. package/lib/commonjs/components/Drawer/Drawer.js +1 -1
  16. package/lib/commonjs/components/FieldBase/FieldBase.js +1 -1
  17. package/lib/commonjs/components/FilePicker/FilePicker.js +1 -1
  18. package/lib/commonjs/components/FloatingActionButton/FloatingActionButton.js +1 -1
  19. package/lib/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.js +1 -1
  20. package/lib/commonjs/components/IconBadge/IconBadge.js +1 -1
  21. package/lib/commonjs/components/ImageGallery/ImageGallery.js +1 -1
  22. package/lib/commonjs/components/InlineSelect/InlineSelect.js +1 -1
  23. package/lib/commonjs/components/Input/Input.js +1 -1
  24. package/lib/commonjs/components/ListItem/ListItem.js +1 -1
  25. package/lib/commonjs/components/Menu/Menu.js +1 -1
  26. package/lib/commonjs/components/Menu/MenuSurface.js +1 -1
  27. package/lib/commonjs/components/Menu/useContextMenu.js +1 -1
  28. package/lib/commonjs/components/Modal/Modal.js +1 -1
  29. package/lib/commonjs/components/OTPInput/OTPInput.js +1 -1
  30. package/lib/commonjs/components/OptionSheet/OptionSheet.js +1 -1
  31. package/lib/commonjs/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  32. package/lib/commonjs/components/PickerTrigger/PickerTrigger.js +1 -1
  33. package/lib/commonjs/components/ProfilePicker/ProfilePicker.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/SearchBar/SearchBar.js +1 -1
  38. package/lib/commonjs/components/Select/Select.js +1 -1
  39. package/lib/commonjs/components/SliderField/SliderField.js +1 -1
  40. package/lib/commonjs/components/SquircleImage/SquircleImage.js +1 -1
  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/Tour/Tour.js +1 -1
  44. package/lib/commonjs/components/index.js +1 -1
  45. package/lib/commonjs/components/not-drawn.json +0 -1
  46. package/lib/commonjs/icons.js +1 -0
  47. package/lib/commonjs/index.js +1 -1
  48. package/lib/commonjs/navigation/DiscardGuard.js +1 -1
  49. package/lib/commonjs/sizes.js +1 -0
  50. package/lib/commonjs/squircle.js +1 -0
  51. package/lib/commonjs/utils/index.js +1 -1
  52. package/lib/module/components/AppLockOverlay/AppLockOverlay.js +1 -1
  53. package/lib/module/components/Avatar/Avatar.js +1 -1
  54. package/lib/module/components/Banner/Banner.js +1 -1
  55. package/lib/module/components/BottomSheet/BottomSheet.js +1 -1
  56. package/lib/module/components/Card/Card.js +1 -1
  57. package/lib/module/components/Checkbox/Checkbox.js +1 -1
  58. package/lib/module/components/Confirm/confirm.js +1 -1
  59. package/lib/module/components/DatePicker/DatePicker.js +1 -1
  60. package/lib/module/components/DateRangePicker/DateRangePicker.js +1 -1
  61. package/lib/module/components/Dialog/Dialog.js +1 -1
  62. package/lib/module/components/Drawer/Drawer.js +1 -1
  63. package/lib/module/components/FieldBase/FieldBase.js +1 -1
  64. package/lib/module/components/FilePicker/FilePicker.js +1 -1
  65. package/lib/module/components/FloatingActionButton/FloatingActionButton.js +1 -1
  66. package/lib/module/components/ForceUpdateDialog/ForceUpdateDialog.js +1 -1
  67. package/lib/module/components/IconBadge/IconBadge.js +1 -1
  68. package/lib/module/components/ImageGallery/ImageGallery.js +1 -1
  69. package/lib/module/components/InlineSelect/InlineSelect.js +1 -1
  70. package/lib/module/components/Input/Input.js +1 -1
  71. package/lib/module/components/ListItem/ListItem.js +1 -1
  72. package/lib/module/components/Menu/Menu.js +1 -1
  73. package/lib/module/components/Menu/MenuSurface.js +1 -1
  74. package/lib/module/components/Menu/useContextMenu.js +1 -1
  75. package/lib/module/components/Modal/Modal.js +1 -1
  76. package/lib/module/components/OTPInput/OTPInput.js +1 -1
  77. package/lib/module/components/OptionSheet/OptionSheet.js +1 -1
  78. package/lib/module/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  79. package/lib/module/components/PickerTrigger/PickerTrigger.js +1 -1
  80. package/lib/module/components/ProfilePicker/ProfilePicker.js +1 -1
  81. package/lib/module/components/ProgressBar/ProgressBar.js +1 -1
  82. package/lib/module/components/Radio/Radio.js +1 -1
  83. package/lib/module/components/Rating/Rating.js +1 -1
  84. package/lib/module/components/SearchBar/SearchBar.js +1 -1
  85. package/lib/module/components/Select/Select.js +1 -1
  86. package/lib/module/components/SliderField/SliderField.js +1 -1
  87. package/lib/module/components/SquircleImage/SquircleImage.js +1 -1
  88. package/lib/module/components/TimePicker/TimePicker.js +1 -1
  89. package/lib/module/components/Tooltip/Tooltip.js +1 -1
  90. package/lib/module/components/Tour/Tour.js +1 -1
  91. package/lib/module/components/index.js +1 -1
  92. package/lib/module/components/not-drawn.json +0 -1
  93. package/lib/module/icons.js +1 -0
  94. package/lib/module/index.js +1 -1
  95. package/lib/module/navigation/DiscardGuard.js +1 -1
  96. package/lib/module/sizes.js +1 -0
  97. package/lib/module/squircle.js +1 -0
  98. package/lib/module/utils/index.js +1 -1
  99. package/lib/typescript/commonjs/components/AppLockOverlay/AppLockOverlay.d.ts +3 -3
  100. package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +7 -0
  101. package/lib/typescript/commonjs/components/Banner/Banner.d.ts +1 -1
  102. package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +4 -4
  103. package/lib/typescript/commonjs/components/Calendar/calendarStyles.d.ts +4 -4
  104. package/lib/typescript/commonjs/components/Card/Card.d.ts +1 -3
  105. package/lib/typescript/commonjs/components/DatePicker/DatePicker.d.ts +3 -3
  106. package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +3 -3
  107. package/lib/typescript/commonjs/components/Descriptions/Descriptions.d.ts +2 -2
  108. package/lib/typescript/commonjs/components/Dialog/Dialog.d.ts +1 -1
  109. package/lib/typescript/commonjs/components/Drawer/Drawer.d.ts +4 -4
  110. package/lib/typescript/commonjs/components/FieldBase/FieldBase.d.ts +8 -6
  111. package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +5 -0
  112. package/lib/typescript/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +3 -3
  113. package/lib/typescript/commonjs/components/IconBadge/IconBadge.d.ts +4 -0
  114. package/lib/typescript/commonjs/components/IconBadge/index.d.ts +1 -1
  115. package/lib/typescript/commonjs/components/Input/Input.d.ts +3 -2
  116. package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +7 -7
  117. package/lib/typescript/commonjs/components/Menu/Menu.d.ts +3 -3
  118. package/lib/typescript/commonjs/components/Menu/useContextMenu.d.ts +1 -1
  119. package/lib/typescript/commonjs/components/Modal/Modal.d.ts +4 -4
  120. package/lib/typescript/commonjs/components/OptionSheet/OptionSheet.d.ts +5 -5
  121. package/lib/typescript/commonjs/components/PhoneNumberInput/PhoneNumberInput.d.ts +3 -2
  122. package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +3 -3
  123. package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +5 -3
  124. package/lib/typescript/commonjs/components/Select/Select.d.ts +4 -3
  125. package/lib/typescript/commonjs/components/SliderField/SliderField.d.ts +2 -2
  126. package/lib/typescript/commonjs/components/SquircleImage/SquircleImage.d.ts +4 -3
  127. package/lib/typescript/commonjs/components/TimePicker/TimePicker.d.ts +3 -3
  128. package/lib/typescript/commonjs/components/Tooltip/Tooltip.d.ts +2 -2
  129. package/lib/typescript/commonjs/components/Tour/Tour.d.ts +1 -1
  130. package/lib/typescript/commonjs/components/index.d.ts +0 -2
  131. package/lib/typescript/commonjs/icons.d.ts +3 -0
  132. package/lib/typescript/commonjs/index.d.ts +7 -6
  133. package/lib/typescript/commonjs/sizes.d.ts +2 -0
  134. package/lib/typescript/commonjs/squircle.d.ts +2 -0
  135. package/lib/typescript/commonjs/utils/index.d.ts +1 -1
  136. package/lib/typescript/module/components/AppLockOverlay/AppLockOverlay.d.ts +3 -3
  137. package/lib/typescript/module/components/Avatar/Avatar.d.ts +7 -0
  138. package/lib/typescript/module/components/Banner/Banner.d.ts +1 -1
  139. package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +4 -4
  140. package/lib/typescript/module/components/Calendar/calendarStyles.d.ts +4 -4
  141. package/lib/typescript/module/components/Card/Card.d.ts +1 -3
  142. package/lib/typescript/module/components/DatePicker/DatePicker.d.ts +3 -3
  143. package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +3 -3
  144. package/lib/typescript/module/components/Descriptions/Descriptions.d.ts +2 -2
  145. package/lib/typescript/module/components/Dialog/Dialog.d.ts +1 -1
  146. package/lib/typescript/module/components/Drawer/Drawer.d.ts +4 -4
  147. package/lib/typescript/module/components/FieldBase/FieldBase.d.ts +8 -6
  148. package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +5 -0
  149. package/lib/typescript/module/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +3 -3
  150. package/lib/typescript/module/components/IconBadge/IconBadge.d.ts +4 -0
  151. package/lib/typescript/module/components/IconBadge/index.d.ts +1 -1
  152. package/lib/typescript/module/components/Input/Input.d.ts +3 -2
  153. package/lib/typescript/module/components/ListItem/ListItem.d.ts +7 -7
  154. package/lib/typescript/module/components/Menu/Menu.d.ts +3 -3
  155. package/lib/typescript/module/components/Menu/useContextMenu.d.ts +1 -1
  156. package/lib/typescript/module/components/Modal/Modal.d.ts +4 -4
  157. package/lib/typescript/module/components/OptionSheet/OptionSheet.d.ts +5 -5
  158. package/lib/typescript/module/components/PhoneNumberInput/PhoneNumberInput.d.ts +3 -2
  159. package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +3 -3
  160. package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +5 -3
  161. package/lib/typescript/module/components/Select/Select.d.ts +4 -3
  162. package/lib/typescript/module/components/SliderField/SliderField.d.ts +2 -2
  163. package/lib/typescript/module/components/SquircleImage/SquircleImage.d.ts +4 -3
  164. package/lib/typescript/module/components/TimePicker/TimePicker.d.ts +3 -3
  165. package/lib/typescript/module/components/Tooltip/Tooltip.d.ts +2 -2
  166. package/lib/typescript/module/components/Tour/Tour.d.ts +1 -1
  167. package/lib/typescript/module/components/index.d.ts +0 -2
  168. package/lib/typescript/module/icons.d.ts +3 -0
  169. package/lib/typescript/module/index.d.ts +7 -6
  170. package/lib/typescript/module/sizes.d.ts +2 -0
  171. package/lib/typescript/module/squircle.d.ts +2 -0
  172. package/lib/typescript/module/utils/index.d.ts +1 -1
  173. package/package.json +37 -7
  174. package/lib/commonjs/components/Notation/Notation.js +0 -1
  175. package/lib/commonjs/components/Notation/index.js +0 -1
  176. package/lib/module/components/Notation/Notation.js +0 -1
  177. package/lib/module/components/Notation/index.js +0 -1
  178. package/lib/typescript/commonjs/components/Notation/Notation.d.ts +0 -43
  179. package/lib/typescript/commonjs/components/Notation/index.d.ts +0 -3
  180. package/lib/typescript/module/components/Notation/Notation.d.ts +0 -43
  181. package/lib/typescript/module/components/Notation/index.d.ts +0 -3
@@ -18,14 +18,14 @@ export declare const DEFAULT_DATE_RANGE_PICKER_LABELS: Readonly<DateRangePickerL
18
18
  /**
19
19
  * DateRangePicker — supports two usage modes:
20
20
  *
21
- * 1. Controlled-modal mode (pass `visible` + `onClose`): renders only the
21
+ * 1. Controlled-modal mode (pass `open` + `onClose`): renders only the
22
22
  * modal; parent owns open/close state.
23
- * 2. Trigger mode (omit `visible`): renders a built-in `PickerTrigger`
23
+ * 2. Trigger mode (omit `open`): renders a built-in `PickerTrigger`
24
24
  * field that opens an internally-managed modal on tap. Confirm fires
25
25
  * `onChange?.(...)` and closes.
26
26
  */
27
27
  export interface DateRangePickerProps extends PickerTriggerPassThroughProps {
28
- visible?: boolean;
28
+ open?: boolean;
29
29
  value: DateRange;
30
30
  onChange?: (range: {
31
31
  start: Date;
@@ -11,8 +11,8 @@ export interface DescriptionItem {
11
11
  */
12
12
  label: React.ReactNode;
13
13
  /**
14
- * A string, a number, a `sym()` / `Notation` or a list of those renders as text in the value's
15
- * size, weight and colour (`strong`, `tone`), the subscript included. Any other node (a badge, a
14
+ * A string, a number or a list of those renders as text in the value's
15
+ * size, weight and colour (`strong`, `tone`). Any other node (a badge, a
16
16
  * Text of your own) renders as-is in a View and owns its type. Empty renders as a plain hyphen, "-".
17
17
  */
18
18
  value?: React.ReactNode;
@@ -16,7 +16,7 @@ export interface DialogAction {
16
16
  disabled?: boolean;
17
17
  }
18
18
  export interface DialogProps {
19
- visible: boolean;
19
+ open: boolean;
20
20
  onClose: () => void;
21
21
  title?: string;
22
22
  message?: string;
@@ -27,12 +27,12 @@ export interface DrawerLabels {
27
27
  }
28
28
  export declare const DEFAULT_DRAWER_LABELS: DrawerLabels;
29
29
  export interface DrawerProps {
30
- /** Controlled visibility. Omit to use internal state. */
31
- visible?: boolean;
30
+ /** Controlled open state. Omit to use internal state. */
31
+ open?: boolean;
32
32
  /** Initial visibility for uncontrolled usage. */
33
- defaultVisible?: boolean;
33
+ defaultOpen?: boolean;
34
34
  /** Fired whenever the drawer transitions open/closed. */
35
- onVisibleChange?: (visible: boolean) => void;
35
+ onOpenChange?: (open: boolean) => void;
36
36
  /** Edge the drawer slides in from. */
37
37
  side?: DrawerSide;
38
38
  /** Drawer dimension along the slide axis (width for left/right, height for top/bottom). */
@@ -116,15 +116,15 @@ export interface FieldBaseProps {
116
116
  paddingRight?: number;
117
117
  /** Override vertical padding (single-line). Multiline parents usually leave this default. */
118
118
  paddingVertical?: number;
119
- /** Override corner radius (shorthand — all four corners). SearchBar pill uses this to apply `radius.pill`. */
120
- borderRadius?: number;
121
- /** Top-left corner radius. Wins over `borderRadius`. */
119
+ /** Corner radius token (shorthand for all four corners), resolved through `theme.radius`. SearchBar pill uses `"pill"`. */
120
+ radius?: keyof Theme["radius"];
121
+ /** Top-left corner radius. Wins over `radius`. */
122
122
  borderTopLeftRadius?: number;
123
- /** Top-right corner radius. Wins over `borderRadius`. */
123
+ /** Top-right corner radius. Wins over `radius`. */
124
124
  borderTopRightRadius?: number;
125
- /** Bottom-left corner radius. Wins over `borderRadius`. */
125
+ /** Bottom-left corner radius. Wins over `radius`. */
126
126
  borderBottomLeftRadius?: number;
127
- /** Bottom-right corner radius. Wins over `borderRadius`. */
127
+ /** Bottom-right corner radius. Wins over `radius`. */
128
128
  borderBottomRightRadius?: number;
129
129
  /** Override border width (shorthand — all four sides). OTP uses 1.5; everything else inherits `size.border`. */
130
130
  borderWidth?: number;
@@ -138,6 +138,8 @@ export interface FieldBaseProps {
138
138
  borderLeftWidth?: number;
139
139
  /** Gap between leading / children / trailing. Defaults to `theme.space.md` (the spec's 12px). */
140
140
  gap?: number;
141
+ /** Drop the room below the field, for a field that sits tight on the content under it. */
142
+ flushBottom?: boolean;
141
143
  style?: StyleProp<ViewStyle>;
142
144
  testID?: string;
143
145
  accessibilityRole?: AccessibilityRole;
@@ -27,6 +27,11 @@ export interface FloatingActionButtonProps {
27
27
  position?: FloatingActionButtonPosition;
28
28
  bottomOffset?: number;
29
29
  disabled?: boolean;
30
+ /**
31
+ * Replaces the icon with a Spinner and ignores presses, for an action already in flight.
32
+ * The button keeps its colours and reports itself busy to assistive technology.
33
+ */
34
+ loading?: boolean;
30
35
  hideOnScroll?: boolean;
31
36
  isScrolling?: boolean;
32
37
  accessibilityLabel: string;
@@ -8,8 +8,8 @@ export interface ForceUpdateDialogLabels {
8
8
  }
9
9
  export declare const DEFAULT_FORCE_UPDATE_DIALOG_LABELS: ForceUpdateDialogLabels;
10
10
  export interface ForceUpdateDialogProps {
11
- /** Whether the dialog is visible. */
12
- visible: boolean;
11
+ /** Whether the dialog is open. */
12
+ open: boolean;
13
13
  /** Called when the dialog is dismissed (only fired when `mandatory` is `false`). */
14
14
  onClose?: () => void;
15
15
  /**
@@ -43,7 +43,7 @@ export interface ForceUpdateDialogProps {
43
43
  * const { isUpdateRequired, updateUrl } = useVersionCheck(isAppReady);
44
44
  * return (
45
45
  * <ForceUpdateDialog
46
- * visible={isUpdateRequired}
46
+ * open={isUpdateRequired}
47
47
  * mandatory
48
48
  * updateUrl={updateUrl}
49
49
  * />
@@ -11,6 +11,8 @@ export type IconBadgeTone = Tone;
11
11
  * overlaps.
12
12
  */
13
13
  export type IconBadgeFill = "tint" | "halo" | "surface";
14
+ /** `circle`: a full circle. `squircle`: a smooth-cornered square drawn as a path on both platforms. */
15
+ export type IconBadgeShape = "circle" | "squircle";
14
16
  export interface IconBadgeProps {
15
17
  /**
16
18
  * The icon: an AppIcon name (`icon="shield-tick"`), `{ name, variant }`, a
@@ -32,6 +34,8 @@ export interface IconBadgeProps {
32
34
  color?: string;
33
35
  /** Default `'tint'`. See {@link IconBadgeFill}. */
34
36
  fill?: IconBadgeFill;
37
+ /** Default `'circle'`. `'squircle'` draws the smooth-cornered shape instead. */
38
+ shape?: IconBadgeShape;
35
39
  /** Width and height in points, for a host that sizes the circle itself. Wins over `size`; a named icon takes half of it, rounded. */
36
40
  dimension?: number;
37
41
  /**
@@ -1,3 +1,3 @@
1
- export type { IconBadgeFill, IconBadgeProps, IconBadgeSize, IconBadgeTone } from "./IconBadge.js";
1
+ export type { IconBadgeFill, IconBadgeProps, IconBadgeShape, IconBadgeSize, IconBadgeTone } from "./IconBadge.js";
2
2
  export { IconBadge } from "./IconBadge.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,7 @@
1
1
  import type React from "react";
2
2
  import type { BlurEvent, FocusEvent, StyleProp, TextInputProps, TextStyle, ViewStyle } from "react-native";
3
3
  import { TextInput } from "react-native";
4
+ import type { RadiusName } from "../../theme/types.js";
4
5
  import type { FieldVariant, Size } from "../../types/vocabulary.js";
5
6
  import type { SlotIcon, SlotIconState } from "../AppIcon/slotIcon.js";
6
7
  import type { ButtonTone, ButtonVariant } from "../Button/index.js";
@@ -171,8 +172,8 @@ export interface InputProps extends Omit<TextInputProps, "style"> {
171
172
  labelStyle?: StyleProp<TextStyle>;
172
173
  /** Style applied to the helper/error text below the field. */
173
174
  messageStyle?: StyleProp<TextStyle>;
174
- /** Per-instance override for the field's corner radius. Wins over the field size's radius. */
175
- borderRadius?: number;
175
+ /** A theme radius name (`sm`, `md`, `lg`, `xl`, `pill`) for the field's corner. Wins over the field size's radius. */
176
+ radius?: Exclude<RadiusName, "none">;
176
177
  onFocus?: (e: FocusEvent) => void;
177
178
  onBlur?: (e: BlurEvent) => void;
178
179
  accessibilityLabel?: string;
@@ -10,7 +10,7 @@ export type ListItemSize = Extract<Size, "sm" | "md" | "lg">;
10
10
  /** `menu` is a popup menu row: 48 pt high, no press scale, announced as a menu item. */
11
11
  export type ListItemVariant = "list" | "menu";
12
12
  /**
13
- * Where the `right` slot sits. `side` is beside the text, `below` is under the
13
+ * Where the `trailing` slot sits. `side` is beside the text, `below` is under the
14
14
  * subtitle and description, and `auto` is `side` until the user's text size is
15
15
  * above 1.2 times the default, then `below`, so a badge stops squeezing the title.
16
16
  */
@@ -43,7 +43,7 @@ export interface ListItemProps {
43
43
  subtitle?: React.ReactNode;
44
44
  description?: string;
45
45
  /**
46
- * Content drawn in the text column under the description, before a `right`
46
+ * Content drawn in the text column under the description, before a `trailing`
47
47
  * slot placed below. Inside the row's press target.
48
48
  */
49
49
  children?: React.ReactNode;
@@ -51,17 +51,17 @@ export interface ListItemProps {
51
51
  titleLines?: number;
52
52
  /** Lines a text subtitle may take before it is truncated. Default 1; 0 for no limit. */
53
53
  subtitleLines?: number;
54
- left?: React.ReactNode;
54
+ leading?: React.ReactNode;
55
55
  /**
56
56
  * A leading icon in a tinted circle (an IconBadge sized to the row). Drawn in
57
- * the left slot when `left` is not given; `left` wins when both are set.
57
+ * the leading slot when `leading` is not given; `leading` wins when both are set.
58
58
  */
59
59
  icon?: SlotIcon;
60
60
  /** Tone of the `icon` circle. Default `'primary'`. */
61
61
  iconTone?: Tone;
62
- right?: React.ReactNode;
62
+ trailing?: React.ReactNode;
63
63
  /**
64
- * Where the `right` slot is drawn. Default `'auto'`: beside the text, and
64
+ * Where the `trailing` slot is drawn. Default `'auto'`: beside the text, and
65
65
  * under the subtitle when the font scale is above 1.2. The chevron always
66
66
  * stays at the side.
67
67
  */
@@ -69,7 +69,7 @@ export interface ListItemProps {
69
69
  /**
70
70
  * Selection mode. The whole row becomes one checkbox (role `checkbox`, with
71
71
  * its `checked` state announced) and the box is drawn in the leading slot,
72
- * before any `left` or `icon`. Pressing the row calls `onCheckedChange` and
72
+ * before any `leading` or `icon`. Pressing the row calls `onCheckedChange` and
73
73
  * `onPress` is not used. The box is a drawing, not a control, so nothing
74
74
  * nests inside the row's press target.
75
75
  */
@@ -20,9 +20,9 @@ export interface MenuProps {
20
20
  presentation?: MenuPresentation;
21
21
  /** Default `'disable'`: unavailable items stay visible, dimmed and focusable. */
22
22
  unavailable?: MenuUnavailable;
23
- /** Controlled visibility. */
24
- visible?: boolean;
25
- onVisibleChange?: (visible: boolean) => void;
23
+ /** Controlled open state. */
24
+ open?: boolean;
25
+ onOpenChange?: (open: boolean) => void;
26
26
  /** Haptic on choosing an item. Pass false to disable; a HapticType to override. */
27
27
  haptic?: HapticType | false;
28
28
  /** Accessible name of the menu when there is no `title`. */
@@ -21,7 +21,7 @@ export interface ContextMenuConfig {
21
21
  presentation?: MenuPresentation;
22
22
  /** Preferred side of the pressed view. Default `'bottom'`. */
23
23
  placement?: PlacementPreference;
24
- onVisibleChange?: (visible: boolean) => void;
24
+ onOpenChange?: (open: boolean) => void;
25
25
  accessibilityLabel?: string;
26
26
  /** Accessible names of the tap-outside area (`close`, default 'Close menu') and of a submenu's Back row (`back`, default 'Back'). */
27
27
  labels?: Partial<MenuLabels>;
@@ -9,20 +9,20 @@ export interface ModalLabels {
9
9
  }
10
10
  export declare const DEFAULT_MODAL_LABELS: Readonly<ModalLabels>;
11
11
  /**
12
- * Grace period between `visible` flipping false and the native modal being
12
+ * Grace period between `open` flipping false and the native modal being
13
13
  * safely gone. Unmounting the tree (navigation reset, auth flip) before this
14
14
  * elapses races Android's ReactModalHostView dismiss and NPE-crashes.
15
15
  */
16
16
  export declare const MODAL_DISMISS_GRACE_MS = 300;
17
17
  export interface ModalProps {
18
- visible: boolean;
18
+ open: boolean;
19
19
  onClose: () => void;
20
20
  presentation?: ModalPresentation;
21
21
  backdropOpacity?: number;
22
22
  backdropPressClose?: boolean;
23
23
  animationDuration?: number;
24
24
  /**
25
- * Whether a modal that is visible as it mounts plays its enter animation.
25
+ * Whether a modal that is open as it mounts plays its enter animation.
26
26
  * When false it is drawn at rest at once, scrim included; later opens and
27
27
  * every close animate as usual. Default true.
28
28
  */
@@ -40,7 +40,7 @@ export interface ModalProps {
40
40
  */
41
41
  restoreFocusRef?: React.RefObject<RNView | null>;
42
42
  /**
43
- * Fired once after the modal closes, MODAL_DISMISS_GRACE_MS after `visible`
43
+ * Fired once after the modal closes, MODAL_DISMISS_GRACE_MS after `open`
44
44
  * flips false — the earliest point it is safe to unmount the surrounding
45
45
  * tree (navigate away, flip auth state) without racing the native dismiss
46
46
  * on Android. Sequence follow-up work (or a follow-up modal) from here.
@@ -50,17 +50,17 @@ export interface OptionSheetLabels {
50
50
  }
51
51
  export declare const DEFAULT_OPTION_SHEET_LABELS: Readonly<OptionSheetLabels>;
52
52
  export interface OptionSheetProps<T = SelectOption> {
53
- visible: boolean;
54
- /** Requests close (backdrop tap, hardware back, multi Done). Caller flips `visible`. */
53
+ open: boolean;
54
+ /** Requests close (backdrop tap, hardware back, multi Done). Caller flips `open`. */
55
55
  onClose: () => void;
56
56
  /**
57
57
  * Called once, after the close has finished: the Modal's exit is over and it
58
- * is about to unmount (`MODAL_DISMISS_GRACE_MS` after `visible` turns false).
58
+ * is about to unmount (`MODAL_DISMISS_GRACE_MS` after `open` turns false).
59
59
  * Present anything native (an image picker, the share sheet) from here.
60
60
  */
61
61
  onAfterClose?: () => void;
62
- /** Called with `true` when `visible` turns on and `false` when it turns off, not again while it stays the same. */
63
- onVisibleChange?: (visible: boolean) => void;
62
+ /** Called with `true` when `open` turns on and `false` when it turns off, not again while it stays the same. */
63
+ onOpenChange?: (open: boolean) => void;
64
64
  /** Sheet heading. Also the modal's a11y label fallback. */
65
65
  title?: string;
66
66
  options: ReadonlyArray<T>;
@@ -1,6 +1,7 @@
1
1
  import type { PhoneCountry, PhoneValidationKind } from "@webority/mobile-core";
2
2
  import type { ReactNode } from "react";
3
3
  import type { StyleProp, TextInputProps, TextStyle, ViewStyle } from "react-native";
4
+ import type { Theme } from "../../theme/types.js";
4
5
  import type { FieldVariant, Size } from "../../types/vocabulary.js";
5
6
  import type { HapticType } from "../../utils/index.js";
6
7
  /** How the label sits: static above the box, or floating up from inside it. */
@@ -188,8 +189,8 @@ export interface PhoneNumberInputProps extends Pick<TextInputProps, "returnKeyTy
188
189
  disabled?: boolean;
189
190
  size?: Extract<Size, "sm" | "md" | "lg">;
190
191
  variant?: FieldVariant;
191
- /** Per-instance corner radius. Wins over the field size's radius. */
192
- borderRadius?: number;
192
+ /** Corner radius token from the theme (none, sm, md, lg, xl, pill). Wins over the field size's radius. */
193
+ radius?: keyof Theme["radius"];
193
194
  /** Strings the field draws itself: the placeholder, the picker's headings and search box, the invalid-number texts, the country button's name. */
194
195
  labels?: Partial<PhoneNumberInputLabels>;
195
196
  haptic?: HapticType | false;
@@ -50,8 +50,8 @@ export interface PickerTriggerProps {
50
50
  clearable?: boolean;
51
51
  /** Called when the clear affordance is pressed. */
52
52
  onClear?: () => void;
53
- /** Leading icon slot (e.g. calendar / clock). */
54
- leadingIcon?: React.ReactNode;
53
+ /** Left icon slot (e.g. calendar / clock). */
54
+ leftIcon?: React.ReactNode;
55
55
  /** Trailing slot — defaults to a chevron when unset. Pass `null` to suppress. */
56
56
  trailing?: React.ReactNode;
57
57
  disabled?: boolean;
@@ -67,7 +67,7 @@ export interface PickerTriggerProps {
67
67
  testID?: string;
68
68
  }
69
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"> & {
70
+ export type PickerTriggerPassThroughProps = Pick<PickerTriggerProps, "label" | "help" | "placeholder" | "helperText" | "error" | "required" | "disabled" | "size" | "variant" | "clearable" | "onClear" | "leftIcon" | "trailing" | "triggerStyle" | "valueStyle" | "labelStyle" | "messageStyle" | "accessibilityLabel"> & {
71
71
  /** Copy for the trigger field (placeholder, selection, noSelection, clear). Named apart from labels, which is the copy of the picker sheet. */
72
72
  triggerLabels?: Partial<PickerTriggerLabels>;
73
73
  };
@@ -1,5 +1,6 @@
1
1
  import type { StyleProp, TextInputProps, TextStyle, ViewStyle } from "react-native";
2
2
  import { TextInput } from "react-native";
3
+ import type { RadiusName } from "../../theme/types.js";
3
4
  import type { FieldVariant, Size } from "../../types/vocabulary.js";
4
5
  import type { HapticType } from "../../utils/hapticUtils.js";
5
6
  import type { SlotIcon } from "../AppIcon/slotIcon.js";
@@ -45,10 +46,11 @@ export interface SearchBarProps extends Omit<TextInputProps, "style" | "value" |
45
46
  size?: Extract<Size, "sm" | "md" | "lg">;
46
47
  variant?: FieldVariant;
47
48
  /**
48
- * Corner radius. Default: the theme's `components["search-bar"].<size>.radius`
49
- * (the pill). Ignored on `underline`, which is always square.
49
+ * Corner radius from the theme's radius scale. Default: the theme's
50
+ * `components["search-bar"].<size>.radius` (the pill). Ignored on `underline`,
51
+ * which is always square.
50
52
  */
51
- borderRadius?: number;
53
+ radius?: RadiusName;
52
54
  /**
53
55
  * Chips under the field that narrow what is searched, for example All, People, Files.
54
56
  * Put the broadest scope first: it is the one selected until the person picks another.
@@ -13,6 +13,7 @@ import type { HapticType } from "../../utils/index.js";
13
13
  import type { SlotIcon } from "../AppIcon/slotIcon.js";
14
14
  import type { SelectOption, SelectValue } from "../OptionSheet/OptionSheet.js";
15
15
  export type SelectSize = Extract<Size, "sm" | "md" | "lg">;
16
+ type SelectRadius = "sm" | "md" | "lg" | "xl" | "pill";
16
17
  export type { SelectOption, SelectValue };
17
18
  export interface SelectLabels {
18
19
  placeholder: string;
@@ -47,7 +48,7 @@ interface BaseSelectProps<T = SelectOption> {
47
48
  getOptionIcon?: (option: T) => React.ReactNode;
48
49
  placeholder?: string;
49
50
  /** Called with `true` when the option sheet opens and `false` when it closes. */
50
- onVisibleChange?: (visible: boolean) => void;
51
+ onOpenChange?: (open: boolean) => void;
51
52
  searchable?: boolean;
52
53
  /**
53
54
  * Haptic feedback for interactions. Pass false to disable; pass a HapticType
@@ -127,8 +128,8 @@ interface BaseSelectProps<T = SelectOption> {
127
128
  chevronColor?: string;
128
129
  /** Size of the built-in chevron in pixels. Ignored when `rightIcon` is set. Default: the field size's `icon`. */
129
130
  chevronSize?: number;
130
- /** Per-instance override for the trigger's corner radius. Wins over the field size's radius. */
131
- borderRadius?: number;
131
+ /** A theme radius token name for the trigger's corner. Wins over the field size's radius. */
132
+ radius?: SelectRadius;
132
133
  accessibilityLabel?: string;
133
134
  /** Style for the field label text above the trigger; the same prop as Input's and NumberInput's. */
134
135
  labelStyle?: StyleProp<TextStyle>;
@@ -49,9 +49,9 @@ interface SliderFieldCommonProps {
49
49
  /** Minus and plus buttons at the ends of the track, stepping by `step`. Single mode only. Default `false`. */
50
50
  showStepper?: boolean;
51
51
  /** Icon at the start of the row, outside the bounds. */
52
- startIcon?: SlotIcon;
52
+ leftIcon?: SlotIcon;
53
53
  /** Icon at the end of the row, outside the bounds. */
54
- endIcon?: SlotIcon;
54
+ rightIcon?: SlotIcon;
55
55
  /** Replaces the formatted `min` at the start of the track. */
56
56
  startLabel?: string;
57
57
  /** Replaces the formatted `max` at the end of the track. */
@@ -1,7 +1,8 @@
1
1
  import { type ImageProps } from "expo-image";
2
+ import { type RadiusName } from "../../theme/index.js";
2
3
  export interface SquircleImageProps extends ImageProps {
3
- /** Corner radius of the image, the same number `SquircleView` takes. */
4
- borderRadius: number;
4
+ /** Corner radius token of the image: none, sm, md, lg, xl or pill. */
5
+ radius: RadiusName;
5
6
  /** Paints the corners outside the smooth curve on Android. Default: the theme's base surface. */
6
7
  cornerColor?: string;
7
8
  }
@@ -13,7 +14,7 @@ export interface SquircleImageProps extends ImageProps {
13
14
  * through.
14
15
  */
15
16
  declare const SquircleImage: {
16
- ({ borderRadius, cornerColor, style, onLayout, ...imageProps }: SquircleImageProps): import("react").JSX.Element;
17
+ ({ radius, cornerColor, style, onLayout, ...imageProps }: SquircleImageProps): import("react").JSX.Element;
17
18
  displayName: string;
18
19
  };
19
20
  export { SquircleImage };
@@ -26,17 +26,17 @@ export declare const DEFAULT_TIME_PICKER_LABELS: Readonly<TimePickerLabels>;
26
26
  /**
27
27
  * TimePicker supports two modes:
28
28
  *
29
- * 1. Controlled-modal mode — pass `visible`, `onChange`, `onClose`. The
29
+ * 1. Controlled-modal mode: pass `open`, `onChange`, `onClose`. The
30
30
  * component renders only the modal sheet and the caller owns open/close
31
31
  * state plus its own trigger UI.
32
- * 2. Trigger mode — omit `visible`. The component renders a PickerTrigger
32
+ * 2. Trigger mode: omit `open`. The component renders a PickerTrigger
33
33
  * field (label / value / placeholder / chevron / clear / helper / error)
34
34
  * and manages its own modal open state. `onChange` is still called on
35
35
  * confirm.
36
36
  */
37
37
  export interface TimePickerProps extends PickerTriggerPassThroughProps {
38
38
  /** Controlled-modal visibility. When omitted, the component enters trigger mode. */
39
- visible?: boolean;
39
+ open?: boolean;
40
40
  value?: TimeValue | null;
41
41
  onChange?: (time: TimeValue) => void;
42
42
  onClose?: () => void;
@@ -35,8 +35,8 @@ export interface TooltipProps {
35
35
  * never attached to a child with its own `contextMenu`: the menu wins.
36
36
  */
37
37
  trigger?: TooltipTrigger;
38
- visible?: boolean;
39
- onVisibleChange?: (visible: boolean) => void;
38
+ open?: boolean;
39
+ onOpenChange?: (open: boolean) => void;
40
40
  hideOnContentPress?: boolean;
41
41
  maxWidth?: number;
42
42
  showArrow?: boolean;
@@ -46,7 +46,7 @@ export interface TourProps {
46
46
  tourId: string;
47
47
  steps: TourStep[];
48
48
  /** Set true to run the tour; set it back to false from `onClose`. */
49
- visible: boolean;
49
+ open: boolean;
50
50
  onClose: (reason: TourCloseReason) => void;
51
51
  /** Consulted before showing and written when the tour finishes or is skipped. */
52
52
  seenStore?: TourSeenStore;
@@ -110,8 +110,6 @@ export type { MessageListLabels, MessageListProps, MessageRenderInfo } from "./M
110
110
  export { DEFAULT_MESSAGE_LIST_LABELS, MessageList } from "./MessageList/index.js";
111
111
  export type { ModalLabels, ModalPresentation, ModalProps } from "./Modal/index.js";
112
112
  export { DEFAULT_MODAL_LABELS, MODAL_DISMISS_GRACE_MS, Modal } from "./Modal/index.js";
113
- export type { NotationProps, NotationRun, NotationTextRun } from "./Notation/index.js";
114
- export { Notation, parseNotation, sym } from "./Notation/index.js";
115
113
  export type { NumberInputLabels, NumberInputProps, NumberInputRef, NumberInputSize, NumberInputVariant } from "./NumberInput/index.js";
116
114
  export { DEFAULT_NUMBER_INPUT_LABELS, NumberInput } from "./NumberInput/index.js";
117
115
  export type { OnboardingPage, OnboardingPagerLabels, OnboardingPagerProps, } from "./OnboardingPager/index.js";
@@ -0,0 +1,3 @@
1
+ export { CURATED_ICON_NAMES, defaultIcons, ICON_NAMES } from "./components/AppIcon/index.js";
2
+ export { textOf } from "./theme/index.js";
3
+ //# sourceMappingURL=icons.d.ts.map
@@ -1,16 +1,17 @@
1
1
  export { PHONE_CHROME_INSETS } from "./canvasKit/index.js";
2
- export * from "./components/index.js";
2
+ export type * from "./components/index.js";
3
+ export { Accordion, AccordionGroup, ALL_CALLING_CODES, AmountSlider, AnimatePresence, AppBar, AppLockOverlay, AsyncBlock, AuthedImage, Autocomplete, Avatar, AvatarGroup, authedImageCacheStats, Badge, Banner, BarChart, BottomNavigation, BottomSheet, Box, Button, buttonLabelInk, Calendar, Card, Carousel, Checkbox, Chip, ChoiceGroup, Composer, Confetti, ConfirmHost, clearAuthedImageCache, confirm, DatePicker, DateRangePicker, DateSeparator, DEFAULT_CALLING_CODES, DecimalInput, Descriptions, Dialog, Divider, Drawer, defineStatusMap, EmptyState, ErrorBoundary, FilePicker, FileViewer, FilterChipRow, FloatingActionButton, FloatingActionButtonGroup, ForceUpdateDialog, FormField, formatE164, formatFileSize, getAuthedImageCacheLimit, IconBadge, IconButton, ImageGallery, InlineSelect, Input, KeyboardAwareScrollView, KeyboardToolbar, ListItem, ListSection, LoaderOverlay, loader, Markdown, Menu, MessageBubble, MessageList, MODAL_DISMISS_GRACE_MS, Modal, NumberInput, OnboardingPager, OptionSheet, OTPInput, OTPResendRow, PagedListFooter, PermissionPrompt, PhoneNumberInput, PickerTrigger, ProfileCompletion, ProfilePicker, ProgressBar, ProgressRing, Radio, RadioDot, RadioGroup, Rating, Repeater, RichTextEditor, Row, ScannerOverlay, Screen, SearchBar, SectionHeader, SegmentedControl, Select, SignaturePad, Skeleton, SkeletonCircle, SkeletonClockProvider, SkeletonContent, SkeletonList, SkeletonProvider, SkeletonSkip, SkeletonText, Slider, SliderField, SlideToConfirm, SortableList, Spacer, Sparkline, Spinner, SquircleImage, SquircleView, Stack, StatTile, StatusBadge, Stepper, Swipeable, Switch, setAuthedImageCacheLimit, Tabs, TagInput, Text, TextInkContext, Timeline, TimePicker, Toast, ToastHost, ToastProvider, Tooltip, Tour, TypingIndicator, toast, useBottomSheet, useErrorHandler, useRecentSearches, useTextInk, useToast, WheelPicker, withErrorBoundary, ZoomableImage, } from "./components/index.js";
3
4
  export type { AppIconColor, AppIconName, AppIconProps, AppIconSize, CuratedIconName, IconName, IconsaxShadowedName, IconVariant, SlotIcon, SlotIconRef, SlotIconState, SlotNode, } from "./components/AppIcon/index.js";
4
- export { APP_ICON_SIZES, AppIcon, CURATED_ICON_NAMES, defaultIcons, ICON_NAMES, ICONSAX_SUFFIX, renderSlotIcon, } from "./components/AppIcon/index.js";
5
+ export { AppIcon } from "./components/AppIcon/index.js";
5
6
  export type { FormCompletion, HookFieldProps, HookFormFieldProps, UseFormCompletionOptions } from "./form/index.js";
6
- export { deletePath, getPath, HookFormField, isFieldFilled, setPath, useFormCompletion, useHookFormField, } from "./form/index.js";
7
+ export { HookFormField, useHookFormField } from "./form/index.js";
7
8
  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
+ export { useDebounce, useFieldChain, useReducedMotion, useRefreshControl, useScrollDirection } from "./hooks/index.js";
9
10
  export type { NetworkStatusBannerProps } from "./network/index.js";
10
11
  export { NetworkStatusBanner } from "./network/index.js";
11
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/index.js";
12
- export { COLOR_NAMES, DURATION_NAMES, darkTheme, EASE_NAMES, FONT_NAMES, KitThemeBridge, LEADING_NAMES, LETTER_SPACING_NAMES, lightTheme, makeStyles, mergeBrand, RADIUS_NAMES, radiusOf, resolveBadgeSize, resolveButtonSize, resolveCheckboxSize, resolveChipSize, resolveEmptyStateSize, resolveFieldSize, resolveFloatingActionButtonSize, resolveListItemSize, resolveOtpInputSize, resolveRadioSize, resolveSegmentedControlSize, resolveSliderSize, resolveSwitchSize, resolveTabsSize, SHADOW_NAMES, SIZE_NAMES, SPACE_NAMES, spaceOf, TEXT_NAMES, ThemeProvider, textOf, useTheme, useThemeMode, WEIGHT_NAMES, } from "./theme/index.js";
13
+ export { KitThemeBridge, lightTheme, makeStyles, radiusOf, ThemeProvider, useTheme, useThemeMode } from "./theme/index.js";
13
14
  export type { FieldVariant, FillVariant, SelectionMode, Size, Tone, } from "./types/vocabulary.js";
14
15
  export type { AnnounceOptions, BreakpointKey, FeedbackIntent, HapticType, ResponsiveScales, ScreenInfo, SquirclePathParams, } from "./utils/index.js";
15
- export { announce, Breakpoints, configureFeedback, feedback, hapticForIntent, isFeedbackEnabled, isScreenSize, isTablet, SQUIRCLE_MIN_RADIUS, SQUIRCLE_SMOOTHING, setHapticImplementation, shadowStyle, smoothCorners, squircleApplies, squircleHostRadius, squirclePath, triggerHaptic, useScreenDimensions, warnUnknownProps, } from "./utils/index.js";
16
+ export { announce, isHapticsEnabled, setHapticImplementation, setHapticsEnabled, triggerHaptic } from "./utils/index.js";
16
17
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,2 @@
1
+ export { resolveBadgeSize, resolveButtonSize, resolveCheckboxSize, resolveChipSize, resolveEmptyStateSize, resolveFieldSize, resolveFloatingActionButtonSize, resolveListItemSize, resolveOtpInputSize, resolveRadioSize, resolveSegmentedControlSize, resolveSliderSize, resolveSwitchSize, resolveTabsSize, } from "./theme/index.js";
2
+ //# sourceMappingURL=sizes.d.ts.map
@@ -0,0 +1,2 @@
1
+ export { squircleApplies, squircleHostRadius, squirclePath } from "./utils/index.js";
2
+ //# sourceMappingURL=squircle.d.ts.map
@@ -5,7 +5,7 @@ export { smoothCorners } from "./corners.js";
5
5
  export type { FeedbackIntent } from "./feedback.js";
6
6
  export { configureFeedback, feedback, hapticForIntent, isFeedbackEnabled } from "./feedback.js";
7
7
  export type { HapticType } from "./hapticUtils.js";
8
- export { resolveHaptic, setHapticImplementation, triggerHaptic } from "./hapticUtils.js";
8
+ export { isHapticsEnabled, resolveHaptic, setHapticImplementation, setHapticsEnabled, triggerHaptic, } from "./hapticUtils.js";
9
9
  export { mergeRefs } from "./mergeRefs.js";
10
10
  export type { BreakpointKey, ResponsiveScales, ScreenInfo } from "./responsive.js";
11
11
  export { Breakpoints, isScreenSize, isTablet, Responsive, ScreenDimensions, useScreenDimensions, } from "./responsive.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/mobile-ui",
3
- "version": "0.129.0",
3
+ "version": "0.130.1",
4
4
  "description": "Beautiful, animated, accessible React Native components, theme and form engine for Webority projects.",
5
5
  "keywords": [
6
6
  "react-native",
@@ -50,6 +50,36 @@
50
50
  "default": "./lib/commonjs/navigation/index.js"
51
51
  }
52
52
  },
53
+ "./sizes": {
54
+ "import": {
55
+ "types": "./lib/typescript/module/sizes.d.ts",
56
+ "default": "./lib/module/sizes.js"
57
+ },
58
+ "require": {
59
+ "types": "./lib/typescript/commonjs/sizes.d.ts",
60
+ "default": "./lib/commonjs/sizes.js"
61
+ }
62
+ },
63
+ "./squircle": {
64
+ "import": {
65
+ "types": "./lib/typescript/module/squircle.d.ts",
66
+ "default": "./lib/module/squircle.js"
67
+ },
68
+ "require": {
69
+ "types": "./lib/typescript/commonjs/squircle.d.ts",
70
+ "default": "./lib/commonjs/squircle.js"
71
+ }
72
+ },
73
+ "./icons": {
74
+ "import": {
75
+ "types": "./lib/typescript/module/icons.d.ts",
76
+ "default": "./lib/module/icons.js"
77
+ },
78
+ "require": {
79
+ "types": "./lib/typescript/commonjs/icons.d.ts",
80
+ "default": "./lib/commonjs/icons.js"
81
+ }
82
+ },
53
83
  "./canvas-kit/*": "./dist/canvas-kit/*",
54
84
  "./package.json": "./package.json"
55
85
  },
@@ -85,13 +115,13 @@
85
115
  }
86
116
  },
87
117
  "dependencies": {
88
- "@webority/markdown-core": "0.129.0"
118
+ "@webority/markdown-core": "0.130.1"
89
119
  },
90
120
  "peerDependencies": {
91
121
  "@react-navigation/bottom-tabs": ">=7.0.0",
92
122
  "@react-navigation/native": ">=7.0.0",
93
- "@webority/canvas-kit": "0.129.0",
94
- "@webority/mobile-core": "0.129.0",
123
+ "@webority/canvas-kit": "0.130.1",
124
+ "@webority/mobile-core": "0.130.1",
95
125
  "expo": ">=57.0.0",
96
126
  "expo-file-system": ">=57.0.0",
97
127
  "expo-haptics": ">=57.0.0",
@@ -155,10 +185,10 @@
155
185
  "@types/node": "25.6.0",
156
186
  "@types/react": "19.2.18",
157
187
  "@types/react-test-renderer": "19.1.0",
158
- "@webority/canvas-kit": "0.129.0",
159
- "@webority/mobile-core": "0.129.0",
188
+ "@webority/canvas-kit": "0.130.1",
189
+ "@webority/mobile-core": "0.130.1",
160
190
  "@webority/mobile-dev": "0.0.0",
161
- "@webority/tokens": "0.129.0",
191
+ "@webority/tokens": "0.130.1",
162
192
  "expo": "57.0.31",
163
193
  "expo-file-system": "57.0.7",
164
194
  "expo-haptics": "57.0.3",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.sym=exports.parseNotation=exports.default=exports.Notation=void 0;var _react=require("react"),_reactNative=require("react-native"),_index=require("../../theme/index.js"),_textInk=require("../Text/textInk.js"),_jsxRuntime=require("react/jsx-runtime");const SUBSCRIPTED=/(?<![A-Za-z0-9_])([A-Za-z])_([A-Za-z0-9]+)(?![A-Za-z0-9_])/g,parseNotation=t=>{const e=String(t??""),r=[];let s=0;for(const t of e.matchAll(SUBSCRIPTED)){const n=t.index??0;n>s&&r.push({text:e.slice(s,n)}),r.push({text:t[1],sub:t[2]}),s=n+t[0].length}return s<e.length&&r.push({text:e.slice(s)}),r};exports.parseNotation=parseNotation;const SUB_DROP=.4,Subscript=({children:t,color:e})=>{const r=(0,_index.useTheme)(),s=(0,_react.useContext)(_textInk.TextInkContext),n=Math.round(.75*(s?.fontSize??r.text.sm.size));return(0,_jsxRuntime.jsx)(_reactNative.View,{style:{transform:[{translateY:Math.round(.4*n)}]},children:(0,_jsxRuntime.jsx)(_reactNative.Text,{maxFontSizeMultiplier:r.settings.maxFontSizeMultiplier,style:[styles.sub,{fontSize:n,lineHeight:n,color:e??s?.color??r.colors["text-body"],...(0,_index.fontFor)(r,"normal")}],children:t})})},renderNotation=(t,e)=>parseNotation(t).map((t,r)=>t.sub?(0,_jsxRuntime.jsxs)(_react.Fragment,{children:[t.text,(0,_jsxRuntime.jsx)(Subscript,{color:e,children:t.sub})]},r):(0,_jsxRuntime.jsx)(_react.Fragment,{children:t.text},r)),Notation=({text:t,base:e,sub:r,desc:s,color:n,testID:i})=>null!=e?(0,_jsxRuntime.jsxs)(_reactNative.Text,{testID:i,children:[e,r?(0,_jsxRuntime.jsx)(Subscript,{color:n,children:r}):null,s?` ${s}`:null]}):(0,_jsxRuntime.jsx)(_reactNative.Text,{testID:i,children:"string"==typeof t||null==t?renderNotation(t??"",n):t.map((t,e)=>"string"==typeof t?(0,_jsxRuntime.jsx)(_react.Fragment,{children:renderNotation(t,n)},e):(0,_jsxRuntime.jsx)(_react.Fragment,{children:t.verbatim},e))});exports.Notation=Notation,Notation.inlineText=!0;const sym=(t,e,r,s)=>(0,_jsxRuntime.jsx)(Notation,{base:t,sub:e,desc:r,color:s});exports.sym=sym;const styles=_reactNative.StyleSheet.create({sub:{includeFontPadding:!1}});var _default=exports.default=Notation;