@webority/mobile-ui 0.163.0 → 0.165.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 (162) hide show
  1. package/LICENSE.txt +1 -1
  2. package/android/src/newarch/java/com/webority/mobileui/pdfrasterizer/PdfRasterizerModule.kt +4 -4
  3. package/dist/canvas-kit/kit.js +5 -5
  4. package/dist/canvas-kit/manifest.json +11 -1
  5. package/dist/canvas-kit/release.json +6 -6
  6. package/ios/PdfRasterizer.mm +3 -3
  7. package/lib/commonjs/components/Avatar/Avatar.js +1 -1
  8. package/lib/commonjs/components/Banner/Banner.js +1 -1
  9. package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -1
  10. package/lib/commonjs/components/Card/Card.js +1 -1
  11. package/lib/commonjs/components/Carousel/Carousel.js +1 -1
  12. package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +1 -1
  13. package/lib/commonjs/components/FieldBase/FieldBase.js +1 -1
  14. package/lib/commonjs/components/IconBadge/IconBadge.js +1 -1
  15. package/lib/commonjs/components/ImageGallery/ImageGallery.js +1 -1
  16. package/lib/commonjs/components/Input/Input.js +1 -1
  17. package/lib/commonjs/components/MessageBubble/MessageBubble.js +1 -1
  18. package/lib/commonjs/components/Modal/Modal.js +1 -1
  19. package/lib/commonjs/components/NumberInput/NumberInput.js +1 -1
  20. package/lib/commonjs/components/OptionSheet/OptionSheet.js +1 -1
  21. package/lib/commonjs/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  22. package/lib/commonjs/components/ProfilePicker/ProfilePicker.js +1 -1
  23. package/lib/commonjs/components/Screen/Screen.js +1 -1
  24. package/lib/commonjs/components/SearchBar/SearchBar.js +1 -1
  25. package/lib/commonjs/components/Slider/Slider.js +1 -1
  26. package/lib/commonjs/components/SliderField/SliderField.js +1 -1
  27. package/lib/commonjs/components/TagInput/TagInput.js +1 -1
  28. package/lib/commonjs/components/Tooltip/Tooltip.js +1 -1
  29. package/lib/commonjs/hooks/useDragToDismiss.js +1 -1
  30. package/lib/commonjs/theme/merge.js +1 -1
  31. package/lib/commonjs/utils/warnUnknownProps.js +1 -1
  32. package/lib/module/components/Avatar/Avatar.js +1 -1
  33. package/lib/module/components/Banner/Banner.js +1 -1
  34. package/lib/module/components/BottomSheet/BottomSheet.js +1 -1
  35. package/lib/module/components/Card/Card.js +1 -1
  36. package/lib/module/components/Carousel/Carousel.js +1 -1
  37. package/lib/module/components/DateRangePicker/DateRangePicker.js +1 -1
  38. package/lib/module/components/FieldBase/FieldBase.js +1 -1
  39. package/lib/module/components/IconBadge/IconBadge.js +1 -1
  40. package/lib/module/components/ImageGallery/ImageGallery.js +1 -1
  41. package/lib/module/components/Input/Input.js +1 -1
  42. package/lib/module/components/MessageBubble/MessageBubble.js +1 -1
  43. package/lib/module/components/Modal/Modal.js +1 -1
  44. package/lib/module/components/NumberInput/NumberInput.js +1 -1
  45. package/lib/module/components/OptionSheet/OptionSheet.js +1 -1
  46. package/lib/module/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  47. package/lib/module/components/ProfilePicker/ProfilePicker.js +1 -1
  48. package/lib/module/components/Screen/Screen.js +1 -1
  49. package/lib/module/components/SearchBar/SearchBar.js +1 -1
  50. package/lib/module/components/Slider/Slider.js +1 -1
  51. package/lib/module/components/SliderField/SliderField.js +1 -1
  52. package/lib/module/components/TagInput/TagInput.js +1 -1
  53. package/lib/module/components/Tooltip/Tooltip.js +1 -1
  54. package/lib/module/hooks/useDragToDismiss.js +1 -1
  55. package/lib/module/theme/merge.js +1 -1
  56. package/lib/module/utils/warnUnknownProps.js +1 -1
  57. package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +1 -0
  58. package/lib/typescript/commonjs/components/Autocomplete/Autocomplete.d.ts +1 -1
  59. package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +2 -1
  60. package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +5 -4
  61. package/lib/typescript/commonjs/components/Carousel/Carousel.d.ts +2 -1
  62. package/lib/typescript/commonjs/components/ChoiceGroup/ChoiceGroup.d.ts +4 -4
  63. package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +2 -1
  64. package/lib/typescript/commonjs/components/Descriptions/Descriptions.d.ts +2 -2
  65. package/lib/typescript/commonjs/components/Drawer/Drawer.d.ts +1 -1
  66. package/lib/typescript/commonjs/components/FieldBase/Chevron.d.ts +1 -1
  67. package/lib/typescript/commonjs/components/FieldBase/FieldBase.d.ts +14 -13
  68. package/lib/typescript/commonjs/components/FilePicker/FilePicker.d.ts +10 -10
  69. package/lib/typescript/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +2 -2
  70. package/lib/typescript/commonjs/components/FormField/FormField.d.ts +1 -1
  71. package/lib/typescript/commonjs/components/IconButton/IconButton.d.ts +2 -2
  72. package/lib/typescript/commonjs/components/ImageGallery/ImageGallery.d.ts +2 -1
  73. package/lib/typescript/commonjs/components/InlineSelect/InlineSelect.d.ts +7 -7
  74. package/lib/typescript/commonjs/components/Input/Input.d.ts +3 -2
  75. package/lib/typescript/commonjs/components/Menu/Menu.d.ts +1 -1
  76. package/lib/typescript/commonjs/components/Modal/Modal.d.ts +2 -1
  77. package/lib/typescript/commonjs/components/NumberInput/NumberInput.d.ts +1 -0
  78. package/lib/typescript/commonjs/components/OptionSheet/OptionSheet.d.ts +5 -5
  79. package/lib/typescript/commonjs/components/PhoneNumberInput/PhoneNumberInput.d.ts +1 -0
  80. package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +4 -4
  81. package/lib/typescript/commonjs/components/ProfilePicker/ProfilePicker.d.ts +2 -1
  82. package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +1 -1
  83. package/lib/typescript/commonjs/components/Radio/RadioDot.d.ts +2 -2
  84. package/lib/typescript/commonjs/components/Repeater/Repeater.d.ts +2 -2
  85. package/lib/typescript/commonjs/components/RichTextEditor/markdownActions.d.ts +3 -3
  86. package/lib/typescript/commonjs/components/Screen/Screen.d.ts +1 -0
  87. package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +2 -1
  88. package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +1 -1
  89. package/lib/typescript/commonjs/components/Select/Select.d.ts +6 -6
  90. package/lib/typescript/commonjs/components/Skeleton/Skeleton.d.ts +3 -3
  91. package/lib/typescript/commonjs/components/Skeleton/SkeletonClock.d.ts +3 -3
  92. package/lib/typescript/commonjs/components/Skeleton/SkeletonContent.d.ts +6 -6
  93. package/lib/typescript/commonjs/components/Skeleton/SkeletonList.d.ts +2 -2
  94. package/lib/typescript/commonjs/components/Skeleton/SkeletonProvider.d.ts +5 -5
  95. package/lib/typescript/commonjs/components/Skeleton/SkeletonSkip.d.ts +2 -2
  96. package/lib/typescript/commonjs/components/SlideToConfirm/SlideToConfirm.d.ts +1 -1
  97. package/lib/typescript/commonjs/components/Slider/Slider.d.ts +5 -0
  98. package/lib/typescript/commonjs/components/SliderField/SliderField.d.ts +1 -0
  99. package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +2 -2
  100. package/lib/typescript/commonjs/components/TagInput/TagInput.d.ts +2 -1
  101. package/lib/typescript/commonjs/components/Timeline/Timeline.d.ts +8 -8
  102. package/lib/typescript/commonjs/components/ZoomableImage/ZoomableImage.d.ts +4 -4
  103. package/lib/typescript/commonjs/hooks/useDragToDismiss.d.ts +2 -0
  104. package/lib/typescript/commonjs/specs/NativePdfRasterizer.d.ts +4 -4
  105. package/lib/typescript/commonjs/theme/animatedValue.d.ts +4 -4
  106. package/lib/typescript/commonjs/theme/types.d.ts +9 -3
  107. package/lib/typescript/commonjs/utils/feedback.d.ts +3 -3
  108. package/lib/typescript/commonjs/utils/warnUnknownProps.d.ts +2 -2
  109. package/lib/typescript/module/components/AppBar/AppBar.d.ts +1 -0
  110. package/lib/typescript/module/components/Autocomplete/Autocomplete.d.ts +1 -1
  111. package/lib/typescript/module/components/Avatar/Avatar.d.ts +2 -1
  112. package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +5 -4
  113. package/lib/typescript/module/components/Carousel/Carousel.d.ts +2 -1
  114. package/lib/typescript/module/components/ChoiceGroup/ChoiceGroup.d.ts +4 -4
  115. package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +2 -1
  116. package/lib/typescript/module/components/Descriptions/Descriptions.d.ts +2 -2
  117. package/lib/typescript/module/components/Drawer/Drawer.d.ts +1 -1
  118. package/lib/typescript/module/components/FieldBase/Chevron.d.ts +1 -1
  119. package/lib/typescript/module/components/FieldBase/FieldBase.d.ts +14 -13
  120. package/lib/typescript/module/components/FilePicker/FilePicker.d.ts +10 -10
  121. package/lib/typescript/module/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +2 -2
  122. package/lib/typescript/module/components/FormField/FormField.d.ts +1 -1
  123. package/lib/typescript/module/components/IconButton/IconButton.d.ts +2 -2
  124. package/lib/typescript/module/components/ImageGallery/ImageGallery.d.ts +2 -1
  125. package/lib/typescript/module/components/InlineSelect/InlineSelect.d.ts +7 -7
  126. package/lib/typescript/module/components/Input/Input.d.ts +3 -2
  127. package/lib/typescript/module/components/Menu/Menu.d.ts +1 -1
  128. package/lib/typescript/module/components/Modal/Modal.d.ts +2 -1
  129. package/lib/typescript/module/components/NumberInput/NumberInput.d.ts +1 -0
  130. package/lib/typescript/module/components/OptionSheet/OptionSheet.d.ts +5 -5
  131. package/lib/typescript/module/components/PhoneNumberInput/PhoneNumberInput.d.ts +1 -0
  132. package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +4 -4
  133. package/lib/typescript/module/components/ProfilePicker/ProfilePicker.d.ts +2 -1
  134. package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +1 -1
  135. package/lib/typescript/module/components/Radio/RadioDot.d.ts +2 -2
  136. package/lib/typescript/module/components/Repeater/Repeater.d.ts +2 -2
  137. package/lib/typescript/module/components/RichTextEditor/markdownActions.d.ts +3 -3
  138. package/lib/typescript/module/components/Screen/Screen.d.ts +1 -0
  139. package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +2 -1
  140. package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +1 -1
  141. package/lib/typescript/module/components/Select/Select.d.ts +6 -6
  142. package/lib/typescript/module/components/Skeleton/Skeleton.d.ts +3 -3
  143. package/lib/typescript/module/components/Skeleton/SkeletonClock.d.ts +3 -3
  144. package/lib/typescript/module/components/Skeleton/SkeletonContent.d.ts +6 -6
  145. package/lib/typescript/module/components/Skeleton/SkeletonList.d.ts +2 -2
  146. package/lib/typescript/module/components/Skeleton/SkeletonProvider.d.ts +5 -5
  147. package/lib/typescript/module/components/Skeleton/SkeletonSkip.d.ts +2 -2
  148. package/lib/typescript/module/components/SlideToConfirm/SlideToConfirm.d.ts +1 -1
  149. package/lib/typescript/module/components/Slider/Slider.d.ts +5 -0
  150. package/lib/typescript/module/components/SliderField/SliderField.d.ts +1 -0
  151. package/lib/typescript/module/components/Tabs/Tabs.d.ts +2 -2
  152. package/lib/typescript/module/components/TagInput/TagInput.d.ts +2 -1
  153. package/lib/typescript/module/components/Timeline/Timeline.d.ts +8 -8
  154. package/lib/typescript/module/components/ZoomableImage/ZoomableImage.d.ts +4 -4
  155. package/lib/typescript/module/hooks/useDragToDismiss.d.ts +2 -0
  156. package/lib/typescript/module/specs/NativePdfRasterizer.d.ts +4 -4
  157. package/lib/typescript/module/theme/animatedValue.d.ts +4 -4
  158. package/lib/typescript/module/theme/types.d.ts +9 -3
  159. package/lib/typescript/module/utils/feedback.d.ts +3 -3
  160. package/lib/typescript/module/utils/warnUnknownProps.d.ts +2 -2
  161. package/package.json +9 -10
  162. package/src/specs/NativePdfRasterizer.ts +4 -4
@@ -1,11 +1,11 @@
1
1
  /**
2
- * SkeletonProvider — app-level defaults for every <Skeleton> below it.
2
+ * SkeletonProvider: app-level defaults for every <Skeleton> below it.
3
3
  *
4
4
  * Two responsibilities:
5
5
  * 1. Broadcasts the default variant / speed / colors / radius /
6
6
  * placeholderCount so consumers don't repeat them per call site.
7
7
  * 2. Mounts the shared `SkeletonClockProvider` (see SkeletonClock.tsx) so
8
- * every primitive shares a single Animated.Value — synchronized shimmer
8
+ * every primitive shares a single Animated.Value: synchronized shimmer
9
9
  * across the whole subtree, one native-driver loop per provider.
10
10
  *
11
11
  * Under the OS "Reduce Motion" preference an `'auto'` skeleton pulses instead
@@ -17,7 +17,7 @@ import type { SkeletonRadius, SkeletonSpeed, SkeletonVariant } from "./Skeleton.
17
17
  /**
18
18
  * Per-instance color override for a skeleton. `background` is the resting
19
19
  * tone of the placeholder; `highlight` is the moving shimmer band (or pulse
20
- * fade). Either can be omitted — missing keys fall back to the active theme.
20
+ * fade). Either can be omitted; missing keys fall back to the active theme.
21
21
  */
22
22
  export interface SkeletonColors {
23
23
  background?: string | undefined;
@@ -40,7 +40,7 @@ export interface SkeletonProviderDefaults {
40
40
  /**
41
41
  * Hard override for animation. `'auto'` (default) follows the OS
42
42
  * "Reduce Motion" preference: shimmer when off, pulse when on. `'always'`
43
- * forces shimmer regardless. `'never'` forces static — useful for tests or
43
+ * forces shimmer regardless. `'never'` forces static: useful for tests or
44
44
  * battery-sensitive screens.
45
45
  */
46
46
  animation?: "auto" | "always" | "never" | undefined;
@@ -52,7 +52,7 @@ export declare const SkeletonProvider: React.FC<SkeletonProviderProps>;
52
52
  /**
53
53
  * Read the current SkeletonProvider defaults. Returns an empty object when
54
54
  * no provider is mounted, so the skeleton primitives still work outside of
55
- * one — but without a shared clock or theme-coordinated colors.
55
+ * one, but without a shared clock or theme-coordinated colors.
56
56
  */
57
57
  export declare const useSkeletonDefaults: () => SkeletonProviderDefaults;
58
58
  //# sourceMappingURL=SkeletonProvider.d.ts.map
@@ -8,8 +8,8 @@ export interface SkeletonSkipProps {
8
8
  *
9
9
  * The walker recognizes this element type and returns its children unchanged
10
10
  * even while `loading` is true. Use it to keep a specific Text/Image/View
11
- * visible inside a skeleton block — e.g., a brand mark, a status icon, or a
12
- * decorative element that should never shimmer.
11
+ * visible inside a skeleton block (e.g., a brand mark, a status icon, or a
12
+ * decorative element that should never shimmer).
13
13
  *
14
14
  * @example
15
15
  * <SkeletonContent loading>
@@ -18,7 +18,7 @@ export interface SlideToConfirmProps {
18
18
  tone?: SlideToConfirmTone | undefined;
19
19
  size?: SlideToConfirmSize | undefined;
20
20
  disabled?: boolean | undefined;
21
- /** Fraction of the track (0–1) the handle must cross to confirm. Default 0.9. */
21
+ /** Fraction of the track (0-1) the handle must cross to confirm. Default 0.9. */
22
22
  threshold?: number | undefined;
23
23
  /** Auto-reset this many ms after confirm, or `false` to stay confirmed. Default `false`. */
24
24
  resetAfter?: number | false | undefined;
@@ -70,6 +70,11 @@ interface SliderCommonProps {
70
70
  labelShowDuration?: number | undefined;
71
71
  /** Override the label final opacity when visible (default 1). */
72
72
  labelOpacity?: number | undefined;
73
+ /**
74
+ * Test handles derived from it: `${testID}-track-press` on the track Pressable, `${testID}-track`
75
+ * on the track wrapper, `${testID}-fill` on the fill, `${testID}-thumb` on the low thumb, and
76
+ * `${testID}-pan` on the low thumb's pan gesture.
77
+ */
73
78
  testID?: string | undefined;
74
79
  }
75
80
  export interface SliderSingleProps extends SliderCommonProps {
@@ -76,6 +76,7 @@ interface SliderFieldCommonProps {
76
76
  boundStyle?: StyleProp<TextStyle> | undefined;
77
77
  sliderStyle?: StyleProp<ViewStyle> | undefined;
78
78
  inputStyle?: StyleProp<ViewStyle> | undefined;
79
+ /** Derives `${testID}-field` (the value box) and `${testID}-field-press` (its box-press wrapper); a range uses `-field-low` and `-field-high`. */
79
80
  testID?: string | undefined;
80
81
  }
81
82
  interface SliderFieldSingleProps extends SliderFieldCommonProps {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Tabs — top tabs with an animated underline, pill or segmented indicator.
2
+ * Tabs: top tabs with an animated underline, pill or segmented indicator.
3
3
  *
4
4
  * Layout: equal-width row by default, or horizontal-scrollable when
5
5
  * `scrollable` is true. The active indicator (underline, pill or segmented
@@ -41,7 +41,7 @@ export interface TabItem {
41
41
  key: string;
42
42
  label: string;
43
43
  icon?: TabItemIcon | undefined;
44
- /** Optional numeric/string badge — rendered inline after the label when provided. */
44
+ /** Optional numeric/string badge, rendered inline after the label when provided. */
45
45
  badge?: string | number | undefined;
46
46
  disabled?: boolean | undefined;
47
47
  }
@@ -31,10 +31,11 @@ export interface TagInputProps {
31
31
  /** Called when the text field takes focus. */
32
32
  onFocus?: ((e: FocusEvent) => void) | undefined;
33
33
  style?: StyleProp<ViewStyle> | undefined;
34
+ /** Derives `${testID}-field` (the field box) and `${testID}-field-press` (its box-press wrapper). */
34
35
  testID?: string | undefined;
35
36
  }
36
37
  /**
37
- * Chips as input — the "type a value, press enter, it becomes a tag" field.
38
+ * Chips as input: the "type a value, press enter, it becomes a tag" field.
38
39
  * Chip renders a tag and Input takes text, but nothing joined them, so consumers
39
40
  * built this by hand each time (and each one disagreed about backspace).
40
41
  */
@@ -4,13 +4,13 @@ import type { StyleProp, ViewStyle } from "react-native";
4
4
  * The status vocabulary is shared with the web library's AppTimeline so a
5
5
  * sign-off history reads identically on both surfaces.
6
6
  *
7
- * upcoming — not started yet (muted disc)
8
- * current — in progress now (warning)
9
- * done — completed (success)
10
- * onHold — blocked / waiting (info)
11
- * rejected — declined / failed (danger)
12
- * cancelled — aborted (muted)
13
- * skipped — intentionally bypassed (muted)
7
+ * upcoming: not started yet (muted disc)
8
+ * current: in progress now (warning)
9
+ * done: completed (success)
10
+ * onHold: blocked / waiting (info)
11
+ * rejected: declined / failed (danger)
12
+ * cancelled: aborted (muted)
13
+ * skipped: intentionally bypassed (muted)
14
14
  *
15
15
  * Every dot sits inside a soft halo of its own colour (the accent at 16
16
16
  * percent), the web timeline's glow. The halo is a layout wrapper, not a
@@ -24,7 +24,7 @@ export type TimelineOrientation = "vertical" | "horizontal";
24
24
  export interface TimelineItem {
25
25
  title: string;
26
26
  description?: string | undefined;
27
- /** Rendered under the title — a timestamp, an actor, a metadata line. */
27
+ /** Rendered under the title: a timestamp, an actor, a metadata line. */
28
28
  meta?: string | undefined;
29
29
  /** `progress` variant: drives the dot colour. Defaults to 'done' in a feed. */
30
30
  status?: TimelineStatus | undefined;
@@ -1,12 +1,12 @@
1
1
  /**
2
- * ZoomableImage — a standalone pinch-to-zoom / pan / double-tap-to-zoom
2
+ * ZoomableImage: a standalone pinch-to-zoom / pan / double-tap-to-zoom
3
3
  * wrapper for a single piece of content (typically one `<Image>`).
4
4
  *
5
5
  * Reuses the same Reanimated 3 gesture composition `ImageGallery`'s internal
6
6
  * lightbox slide uses (pinch clamped and rubber-banded at its limits, pan
7
7
  * gated to only engage once zoomed in, double-tap toggling between baseline
8
8
  * and `doubleTapScale`), stripped of the carousel-slide concerns that
9
- * component needs and this one does not — there is no `index`/`total`/
9
+ * component needs and this one does not; there is no `index`/`total`/
10
10
  * `active` because a standalone image is always the one being viewed.
11
11
  *
12
12
  * USAGE:
@@ -25,11 +25,11 @@ import type React from "react";
25
25
  import type { StyleProp, ViewStyle } from "react-native";
26
26
  import type { HapticType } from "../../utils/index.js";
27
27
  export interface ZoomableImageProps {
28
- /** The content to pinch-zoom, pan, and double-tap-zoom — typically a single `<Image>`. */
28
+ /** The content to pinch-zoom, pan, and double-tap-zoom (typically a single `<Image>`). */
29
29
  children: React.ReactNode;
30
30
  /** Upper bound on pinch and double-tap zoom. Default 4. */
31
31
  maxScale?: number | undefined;
32
- /** Lower bound on pinch zoom — the resting scale a pinch springs back to. Default 1. */
32
+ /** Lower bound on pinch zoom: the resting scale a pinch springs back to. Default 1. */
33
33
  minScale?: number | undefined;
34
34
  /** Scale a double tap zooms to; a second double tap returns to baseline. Default 2. */
35
35
  doubleTapScale?: number | undefined;
@@ -45,6 +45,8 @@ export interface UseDragToDismissOptions {
45
45
  contentAtTop?: (() => boolean) | undefined;
46
46
  /** The scrollable content's `useNativeGesture()`, so the sheet drag runs alongside its scroll. */
47
47
  scrollGesture?: SheetNativeGesture | undefined;
48
+ /** When set, the handle gesture gets the test id `${testID}-pan`. */
49
+ testID?: string | undefined;
48
50
  }
49
51
  export interface UseDragToDismissResult {
50
52
  /** Wrap the grab handle / title row in a `GestureDetector` with this. */
@@ -1,9 +1,9 @@
1
1
  import type { TurboModule } from "react-native";
2
2
  export interface PdfDocumentInfo {
3
- /** Opaque handle for every subsequent call (getPageInfo/renderPage/close) — NOT the file path. */
3
+ /** Opaque handle for every subsequent call (getPageInfo/renderPage/close). NOT the file path. */
4
4
  handle: string;
5
5
  pageCount: number;
6
- /** Points (1/72 in), the page size of page 0 as displayed (after the page's /Rotate) — a per-page size read happens in renderPage. */
6
+ /** Points (1/72 in), the page size of page 0 as displayed (after the page's /Rotate). A per-page size read happens in renderPage. */
7
7
  pageWidth: number;
8
8
  pageHeight: number;
9
9
  }
@@ -13,7 +13,7 @@ export interface PdfPageInfo {
13
13
  }
14
14
  export interface Spec extends TurboModule {
15
15
  /**
16
- * Opens a LOCAL pdf file (a file:// path or bare absolute path — no http(s), no
16
+ * Opens a LOCAL pdf file (a file:// path or bare absolute path; no http(s), no
17
17
  * headers, no auth: callers download remote documents with mobile-core's
18
18
  * `downloadFile` first). Returns a handle used by every other call. Throws
19
19
  * (rejects) on a missing file, a corrupt PDF, or a password-protected PDF.
@@ -27,7 +27,7 @@ export interface Spec extends TurboModule {
27
27
  /**
28
28
  * Rasterizes one page to a PNG file in the cache directory and returns its
29
29
  * absolute path. `scale` is a multiplier on the page's own point size (pass
30
- * the view width / page width ratio, capped by the caller — see
30
+ * the view width / page width ratio, capped by the caller; see
31
31
  * react-native.md's "RGBA_8888 is 4 bytes/px" guidance). Renders are
32
32
  * serialized per handle on both platforms; call sequentially per document.
33
33
  */
@@ -5,14 +5,14 @@ import { Animated } from "react-native";
5
5
  * RN's Fabric renderer deep-freezes prop trees on host components. If an
6
6
  * `Animated.Value` is reachable from a `style` prop via interpolation chains
7
7
  * (the `_parent` ref on `AnimatedInterpolation` nodes), the recursive freeze
8
- * converts the value's `_animation` slot into a throwing setter — the next
8
+ * converts the value's `_animation` slot into a throwing setter: the next
9
9
  * `Animated.timing(v).start()` then crashes with
10
10
  * "_animation: object that is meant to be immutable".
11
11
  *
12
12
  * Sealing the value at construction makes `Object.isSealed(v) === true`,
13
13
  * which causes `deepFreezeAndThrowOnMutationInDev` to skip-and-return at
14
14
  * its top guard. Existing-property mutation (`_animation`, `_value`,
15
- * `_listeners`, `_tracking`) keeps working — seal only blocks adding NEW
15
+ * `_listeners`, `_tracking`) keeps working; seal only blocks adding NEW
16
16
  * properties, which `Animated.Value` does only once: `_tracking` is declared
17
17
  * as a type but never assigned in the constructor, so `stopTracking()` (run by
18
18
  * every `timing().start()`) adds it. On a sealed value that add throws
@@ -28,7 +28,7 @@ import { Animated } from "react-native";
28
28
  * NOT on web. The reasoning above ("Animated.Value doesn't add any properties
29
29
  * post-construction") holds for React Native but not for react-native-web,
30
30
  * whose `stopTracking()` assigns `_tracking` on an instance that never declared
31
- * it — on a sealed object that throws, and the throw happens during unmount, so
31
+ * it: on a sealed object that throws, and the throw happens during unmount, so
32
32
  * it takes the whole tree down. There is no Fabric deep-freeze on web either,
33
33
  * so the seal has nothing to protect against there.
34
34
  */
@@ -37,7 +37,7 @@ export declare const createAnimatedValue: (initial: number, config?: Constructor
37
37
  * Set an `Animated.Value` to a target without going through JS.
38
38
  *
39
39
  * Once a value has been driven by the native driver, the underlying
40
- * native node owns it — calling `value.setValue(x)` from JS throws
40
+ * native node owns it: calling `value.setValue(x)` from JS throws
41
41
  * "Attempting to run JS driven animation on animated node that has been moved to native".
42
42
  * Use this helper for any value that is *also* used in a native-driven
43
43
  * `Animated.timing/spring`. A zero-duration native timing routes the update
@@ -183,11 +183,14 @@ export interface ThemeSettings {
183
183
  components?: ComponentSettings | undefined;
184
184
  }
185
185
  /** A product's brand, generated by `webority brand` as theme/generated/brand.phone.js. Never spacing, text or component sizes. */
186
+ type BrandColors = Partial<Record<ColorName, string>> & Record<string, string | undefined>;
186
187
  export interface BrandOverrides {
187
188
  colors?: {
188
- light?: Partial<Record<ColorName, string>> | undefined;
189
- dark?: Partial<Record<ColorName, string>> | undefined;
189
+ light?: BrandColors | undefined;
190
+ dark?: BrandColors | undefined;
190
191
  } | undefined;
192
+ /** What each colour the brand adds is for, by name. A colour name the library does not define must be described here. */
193
+ descriptions?: Record<string, string> | undefined;
191
194
  radius?: Partial<Record<Exclude<RadiusName, "none" | "pill">, number>> | undefined;
192
195
  font?: Partial<Record<FontName, FontFaces>> | undefined;
193
196
  }
@@ -201,7 +204,10 @@ export interface SpringScale {
201
204
  bouncy: Spring;
202
205
  snappy: Spring;
203
206
  }
204
- export interface Theme extends Omit<TokenSet, "motion"> {
207
+ export interface Theme extends Omit<TokenSet, "motion" | "colors"> {
208
+ colors: TokenSet["colors"] & {
209
+ readonly [name: string]: string | undefined;
210
+ };
205
211
  motion: TokenSet["motion"] & {
206
212
  spring: SpringScale;
207
213
  fadeDuration: number;
@@ -3,7 +3,7 @@ import { type HapticType } from "./hapticUtils.js";
3
3
  * What the interaction MEANT, not which vibration to play.
4
4
  *
5
5
  * Call sites that pick a `HapticType` directly end up disagreeing with each
6
- * other — one screen fires `impactMedium` on delete, the next fires
6
+ * other: one screen fires `impactMedium` on delete, the next fires
7
7
  * `notificationWarning`, and the app stops speaking one language. Naming the
8
8
  * intent moves that decision here, once.
9
9
  */
@@ -23,7 +23,7 @@ export declare const hapticForIntent: (intent: FeedbackIntent) => HapticType;
23
23
  export declare const feedback: {
24
24
  /** A plain press: button, row, chip. */
25
25
  readonly tap: () => void;
26
- /** Moving between options — segmented control, picker wheel, tab. */
26
+ /** Moving between options: segmented control, picker wheel, tab. */
27
27
  readonly select: () => void;
28
28
  /** A long-press threshold being crossed. */
29
29
  readonly longPress: () => void;
@@ -33,7 +33,7 @@ export declare const feedback: {
33
33
  readonly deleted: () => void;
34
34
  /** An undo landed. */
35
35
  readonly restored: () => void;
36
- /** A binary control turned on / off — switch, checkbox, favourite. */
36
+ /** A binary control turned on / off: switch, checkbox, favourite. */
37
37
  readonly toggled: (on: boolean) => void;
38
38
  /** A flow finished successfully. */
39
39
  readonly succeeded: () => void;
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * This exists for a class of bug that nothing in a JS consumer's toolchain
5
5
  * objects to. A component destructures the props it knows and ignores the rest,
6
- * so a renamed or mistyped prop is simply dropped — silently, at every call
6
+ * so a renamed or mistyped prop is simply dropped, silently, at every call
7
7
  * site. The web library hit this three times in one day: `body` instead of
8
8
  * `message` left nine destructive confirm dialogs with no explanatory text, and
9
9
  * `name` instead of `icon` emptied an entire actions column across 23 call
@@ -14,7 +14,7 @@
14
14
  * who this is for. The check therefore has to be a runtime one, and it
15
15
  * has to run where the mistake is made: the consumer's dev server.
16
16
  *
17
- * DEV ONLY — the `__DEV__` guard means it costs a release build nothing.
17
+ * DEV ONLY: the `__DEV__` guard means it costs a release build nothing.
18
18
  */
19
19
  export declare const warnUnknownProps: (componentName: string, rest: Record<string, unknown> | undefined) => void;
20
20
  //# sourceMappingURL=warnUnknownProps.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/mobile-ui",
3
- "version": "0.163.0",
3
+ "version": "0.165.0",
4
4
  "description": "Beautiful, animated, accessible React Native components, theme and form engine for Webority projects.",
5
5
  "keywords": [
6
6
  "react-native",
@@ -115,13 +115,13 @@
115
115
  }
116
116
  },
117
117
  "dependencies": {
118
- "@webority/markdown-core": "0.163.0"
118
+ "@webority/markdown-core": "0.165.0"
119
119
  },
120
120
  "peerDependencies": {
121
121
  "@react-navigation/bottom-tabs": ">=7.0.0",
122
122
  "@react-navigation/native": ">=7.0.0",
123
- "@webority/canvas-kit": "0.163.0",
124
- "@webority/mobile-core": "0.163.0",
123
+ "@webority/canvas-kit": "0.165.0",
124
+ "@webority/mobile-core": "0.165.0",
125
125
  "expo": ">=58.0.0",
126
126
  "expo-file-system": ">=58.0.0",
127
127
  "expo-haptics": ">=58.0.0",
@@ -181,14 +181,13 @@
181
181
  "@react-native/metro-config": "0.88.1",
182
182
  "@react-navigation/bottom-tabs": "7.19.2",
183
183
  "@react-navigation/native": "7.5.1",
184
- "@testing-library/react-native": "12.9.0",
184
+ "@testing-library/react-native": "14.1.0",
185
185
  "@types/node": "25.6.0",
186
186
  "@types/react": "19.3.0",
187
- "@types/react-test-renderer": "19.3.0",
188
- "@webority/canvas-kit": "0.163.0",
189
- "@webority/mobile-core": "0.163.0",
187
+ "@webority/canvas-kit": "0.165.0",
188
+ "@webority/mobile-core": "0.165.0",
190
189
  "@webority/mobile-dev": "0.0.0",
191
- "@webority/tokens": "0.163.0",
190
+ "@webority/tokens": "0.165.0",
192
191
  "expo": "58.0.23",
193
192
  "expo-file-system": "58.0.13",
194
193
  "expo-haptics": "58.0.7",
@@ -204,7 +203,7 @@
204
203
  "react-native-safe-area-context": "5.11.1",
205
204
  "react-native-svg": "15.16.0",
206
205
  "react-native-worklets": "0.13.0",
207
- "react-test-renderer": "19.3.0",
206
+ "test-renderer": "1.3.1",
208
207
  "typescript": "7.0.2"
209
208
  },
210
209
  "scripts": {
@@ -2,10 +2,10 @@ import type { TurboModule } from "react-native";
2
2
  import { TurboModuleRegistry } from "react-native";
3
3
 
4
4
  export interface PdfDocumentInfo {
5
- /** Opaque handle for every subsequent call (getPageInfo/renderPage/close) — NOT the file path. */
5
+ /** Opaque handle for every subsequent call (getPageInfo/renderPage/close). NOT the file path. */
6
6
  handle: string;
7
7
  pageCount: number;
8
- /** Points (1/72 in), the page size of page 0 as displayed (after the page's /Rotate) — a per-page size read happens in renderPage. */
8
+ /** Points (1/72 in), the page size of page 0 as displayed (after the page's /Rotate). A per-page size read happens in renderPage. */
9
9
  pageWidth: number;
10
10
  pageHeight: number;
11
11
  }
@@ -17,7 +17,7 @@ export interface PdfPageInfo {
17
17
 
18
18
  export interface Spec extends TurboModule {
19
19
  /**
20
- * Opens a LOCAL pdf file (a file:// path or bare absolute path — no http(s), no
20
+ * Opens a LOCAL pdf file (a file:// path or bare absolute path; no http(s), no
21
21
  * headers, no auth: callers download remote documents with mobile-core's
22
22
  * `downloadFile` first). Returns a handle used by every other call. Throws
23
23
  * (rejects) on a missing file, a corrupt PDF, or a password-protected PDF.
@@ -33,7 +33,7 @@ export interface Spec extends TurboModule {
33
33
  /**
34
34
  * Rasterizes one page to a PNG file in the cache directory and returns its
35
35
  * absolute path. `scale` is a multiplier on the page's own point size (pass
36
- * the view width / page width ratio, capped by the caller — see
36
+ * the view width / page width ratio, capped by the caller; see
37
37
  * react-native.md's "RGBA_8888 is 4 bytes/px" guidance). Renders are
38
38
  * serialized per handle on both platforms; call sequentially per document.
39
39
  */