@webority/mobile-ui 0.130.2 → 0.130.3

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 (38) hide show
  1. package/dist/canvas-kit/kit.js +7877 -7827
  2. package/dist/canvas-kit/manifest.json +24 -4
  3. package/dist/canvas-kit/release.json +6 -6
  4. package/lib/commonjs/components/AppBar/AppBar.js +1 -1
  5. package/lib/commonjs/components/AppIcon/catalog.g.js +1 -1
  6. package/lib/commonjs/components/AppIcon/glyphs.g.js +1 -1
  7. package/lib/commonjs/components/AppIcon/variants.g.js +1 -1
  8. package/lib/commonjs/components/AuthedImage/AuthedImage.js +1 -1
  9. package/lib/commonjs/components/Composer/Composer.js +1 -1
  10. package/lib/commonjs/components/IconButton/IconButton.js +1 -1
  11. package/lib/commonjs/components/Markdown/Markdown.js +1 -1
  12. package/lib/commonjs/components/MessageBubble/MessageBubble.js +1 -1
  13. package/lib/commonjs/components/StatTile/StatTile.js +1 -1
  14. package/lib/module/components/AppBar/AppBar.js +1 -1
  15. package/lib/module/components/AppIcon/catalog.g.js +1 -1
  16. package/lib/module/components/AppIcon/glyphs.g.js +1 -1
  17. package/lib/module/components/AppIcon/variants.g.js +1 -1
  18. package/lib/module/components/AuthedImage/AuthedImage.js +1 -1
  19. package/lib/module/components/Composer/Composer.js +1 -1
  20. package/lib/module/components/IconButton/IconButton.js +1 -1
  21. package/lib/module/components/Markdown/Markdown.js +1 -1
  22. package/lib/module/components/MessageBubble/MessageBubble.js +1 -1
  23. package/lib/module/components/StatTile/StatTile.js +1 -1
  24. package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +4 -4
  25. package/lib/typescript/commonjs/components/AppIcon/catalog.g.d.ts +1 -1
  26. package/lib/typescript/commonjs/components/AppIcon/glyphs.g.d.ts +1 -0
  27. package/lib/typescript/commonjs/components/Composer/Composer.d.ts +2 -0
  28. package/lib/typescript/commonjs/components/IconButton/IconButton.d.ts +5 -1
  29. package/lib/typescript/commonjs/components/Markdown/Markdown.d.ts +5 -3
  30. package/lib/typescript/commonjs/components/StatTile/StatTile.d.ts +2 -2
  31. package/lib/typescript/module/components/AppBar/AppBar.d.ts +4 -4
  32. package/lib/typescript/module/components/AppIcon/catalog.g.d.ts +1 -1
  33. package/lib/typescript/module/components/AppIcon/glyphs.g.d.ts +1 -0
  34. package/lib/typescript/module/components/Composer/Composer.d.ts +2 -0
  35. package/lib/typescript/module/components/IconButton/IconButton.d.ts +5 -1
  36. package/lib/typescript/module/components/Markdown/Markdown.d.ts +5 -3
  37. package/lib/typescript/module/components/StatTile/StatTile.d.ts +2 -2
  38. package/package.json +7 -7
@@ -200,6 +200,7 @@ export declare const GLYPHS: {
200
200
  readonly "task-square": "<path d=\"M12.37 8.88h5.25M6.38 8.88l.75.75 2.25-2.25M12.37 15.88h5.25M6.38 15.88l.75.75 2.25-2.25\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>";
201
201
  readonly telephone: "<path d=\"M21.97 18.33c0 .36-.08.73-.25 1.09-.17.36-.39.7-.68 1.02-.49.54-1.03.93-1.64 1.18-.6.25-1.25.38-1.95.38-1.02 0-2.11-.24-3.26-.73s-2.3-1.15-3.44-1.98a28.75 28.75 0 0 1-3.28-2.8 28.414 28.414 0 0 1-2.79-3.27c-.82-1.14-1.48-2.28-1.96-3.41C2.24 8.67 2 7.58 2 6.54c0-.68.12-1.33.36-1.93.24-.61.62-1.17 1.15-1.67C4.15 2.31 4.85 2 5.59 2c.28 0 .56.06.81.18.26.12.49.3.67.56l2.32 3.27c.18.25.31.48.4.7.09.21.14.42.14.61 0 .24-.07.48-.21.71-.13.23-.32.47-.56.71l-.76.79c-.11.11-.16.24-.16.4 0 .08.01.15.03.23.03.08.06.14.08.2.18.33.49.76.93 1.28.45.52.93 1.05 1.45 1.58.54.53 1.06 1.02 1.59 1.47.52.44.95.74 1.29.92.05.02.11.05.18.08.08.03.16.04.25.04.17 0 .3-.06.41-.17l.76-.75c.25-.25.49-.44.72-.56.23-.14.46-.21.71-.21.19 0 .39.04.61.13.22.09.45.22.7.39l3.31 2.35c.26.18.44.39.55.64.1.25.16.5.16.78Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\"></path>";
202
202
  readonly text: "<path d=\"M2.67 7.17V5.35c0-1.15.93-2.07 2.07-2.07h14.52c1.15 0 2.07.93 2.07 2.07v1.82M12 20.72V4.11M8.06 20.72h7.88\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>";
203
+ readonly "thumbs-down": "<path d=\"m16.52 5.65-3.1-2.4c-.4-.4-1.3-.6-1.9-.6h-3.8c-1.2 0-2.5.9-2.8 2.1l-2.4 7.3c-.5 1.4.4 2.6 1.9 2.6h4c.6 0 1.1.5 1 1.2l-.5 3.2c-.2.9.4 1.9 1.3 2.2.8.3 1.8-.1 2.2-.7l4.1-6.1\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\"></path><path d=\"M21.62 5.65v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>";
203
204
  readonly "thumbs-up": "<path d=\"m7.48 18.35 3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l2.4-7.3c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\"></path><path d=\"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>";
204
205
  readonly "tick-circle": "<path d=\"M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"m7.75 12 2.83 2.83 5.67-5.66\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>";
205
206
  readonly trash: "<path d=\"M21 5.98c-3.33-.33-6.68-.5-10.02-.5-1.98 0-3.96.1-5.94.3L3 5.98M8.5 4.97l.22-1.31C8.88 2.71 9 2 10.69 2h2.62c1.69 0 1.82.75 1.97 1.67l.22 1.3M18.85 9.14l-.65 10.07C18.09 20.78 18 22 15.21 22H8.79C6 22 5.91 20.78 5.8 19.21L5.15 9.14M10.33 16.5h3.33M9.5 12.5h5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>";
@@ -17,6 +17,8 @@ export interface ComposerProps {
17
17
  placeholder?: string;
18
18
  /** The text box's screen-reader name. Default: `placeholder`. */
19
19
  accessibilityLabel?: string;
20
+ /** Read after the text box's name, never drawn: a hint a sighted person does not need. */
21
+ hint?: string;
20
22
  labels?: Partial<ComposerLabels>;
21
23
  /**
22
24
  * A reply is arriving: the person can type but not send, and send shows a spinner. With `onStop`
@@ -1,4 +1,4 @@
1
- import type { GestureResponderEvent, View as RNView, StyleProp, ViewStyle } from "react-native";
1
+ import type { AccessibilityState, GestureResponderEvent, View as RNView, StyleProp, ViewStyle } from "react-native";
2
2
  import type { FillVariant, Size, Tone } from "../../types/vocabulary.js";
3
3
  import type { HapticType } from "../../utils/index.js";
4
4
  import type { IconVariant } from "../AppIcon/AppIcon.js";
@@ -29,6 +29,10 @@ export interface IconButtonProps {
29
29
  onPress?: (e: GestureResponderEvent) => void;
30
30
  /** Required — icon-only controls need an accessible name. */
31
31
  accessibilityLabel: string;
32
+ /** Read after the name, never drawn: what the press does, for a control whose name alone is not enough. */
33
+ accessibilityHint?: string;
34
+ /** Accessibility state beyond the ones IconButton sets. Selected from here does not fill the button; only active does. The button's own disabled state wins over a caller's. */
35
+ accessibilityState?: AccessibilityState;
32
36
  tone?: IconButtonTone;
33
37
  variant?: IconButtonVariant;
34
38
  size?: IconButtonSize;
@@ -1,13 +1,15 @@
1
- import { type MarkdownHeadings, type MarkdownLinks } from "@webority/markdown-core";
1
+ import { type FigureRun, type MarkdownHeadings, type MarkdownLinks } from "@webority/markdown-core";
2
2
  import type React from "react";
3
3
  import type { StyleProp, TextStyle, ViewStyle } from "react-native";
4
4
  export interface MarkdownProps<T = string> {
5
5
  /** The markdown source. An empty or missing string renders nothing. */
6
6
  children?: string;
7
- /** `web` makes web and contact addresses pressable; `app` makes the links `resolveLink` maps pressable. Any other scheme is plain text. */
7
+ /** `web` makes web and contact addresses pressable; `app` makes the links `resolveLink` maps pressable; `page` also asks `resolveLink` about every address and opens only relative addresses and addresses on the site's own origin. Any other scheme is plain text. */
8
8
  links?: MarkdownLinks;
9
9
  /** `outline` sizes each heading by its level; `text` draws every heading as bold body text. */
10
10
  headings?: MarkdownHeadings;
11
+ /** Splits plain text into runs; a sub or sup run draws raised or lowered. Without it, text draws as written. Code spans and blocks are never split. */
12
+ figureText?: (text: string) => FigureRun[];
11
13
  /** Maps an app link's address to what `onAppLinkPress` receives. Null leaves the link as plain text. */
12
14
  resolveLink?: (href: string) => T | null | undefined;
13
15
  /** Says whether a `[inner]` run is a citation the host can open. Without it, no run is a citation. */
@@ -35,7 +37,7 @@ export interface MarkdownProps<T = string> {
35
37
  * Renders the shared markdown grammar with the theme's own type scale and colours,
36
38
  * with no dependency. Inline HTML is plain text.
37
39
  */
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;
40
+ export declare function Markdown<T = string>({ children, links, headings, figureText, resolveLink, isCitation, onOpenCitation, onAppLinkPress, onLinkPress, onPageLinkPress, loading, style, textStyle, testID, }: MarkdownProps<T>): React.ReactElement | null;
39
41
  export declare namespace Markdown {
40
42
  var displayName: string;
41
43
  }
@@ -23,8 +23,8 @@ export interface StatTileLabels {
23
23
  }
24
24
  export declare const DEFAULT_STAT_TILE_LABELS: Readonly<StatTileLabels>;
25
25
  export interface StatTileProps {
26
- /** What the figure measures, drawn small above it. */
27
- label: string;
26
+ /** What the figure measures, drawn small above it: text, or a node such as sub and sup runs. */
27
+ label: ReactNode;
28
28
  /** The figure, always given. A string or number is drawn in the heading style; a node is drawn as is. */
29
29
  value: NonNullable<ReactNode>;
30
30
  /** Leading icon in a tinted circle: an AppIcon name, `{ name, variant }`, a render fn or any node. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/mobile-ui",
3
- "version": "0.130.2",
3
+ "version": "0.130.3",
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.130.2"
118
+ "@webority/markdown-core": "0.130.3"
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.130.2",
124
- "@webority/mobile-core": "0.130.2",
123
+ "@webority/canvas-kit": "0.130.3",
124
+ "@webority/mobile-core": "0.130.3",
125
125
  "expo": ">=57.0.0",
126
126
  "expo-file-system": ">=57.0.0",
127
127
  "expo-haptics": ">=57.0.0",
@@ -185,10 +185,10 @@
185
185
  "@types/node": "25.6.0",
186
186
  "@types/react": "19.2.18",
187
187
  "@types/react-test-renderer": "19.1.0",
188
- "@webority/canvas-kit": "0.130.2",
189
- "@webority/mobile-core": "0.130.2",
188
+ "@webority/canvas-kit": "0.130.3",
189
+ "@webority/mobile-core": "0.130.3",
190
190
  "@webority/mobile-dev": "0.0.0",
191
- "@webority/tokens": "0.130.2",
191
+ "@webority/tokens": "0.130.3",
192
192
  "expo": "57.0.31",
193
193
  "expo-file-system": "57.0.7",
194
194
  "expo-haptics": "57.0.3",