@marktiderman/genesis-ui-native 3.5.0 → 3.6.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 (92) hide show
  1. package/README.md +71 -7
  2. package/dist/{chunk-LBVD7XXL.js → chunk-2Z72MYHB.js} +627 -20
  3. package/dist/chunk-2Z72MYHB.js.map +1 -0
  4. package/dist/chunk-4OQOJ2OC.js +80 -0
  5. package/dist/chunk-4OQOJ2OC.js.map +1 -0
  6. package/dist/{chunk-6KWEAGRD.js → chunk-6PGLX6ET.js} +101 -6
  7. package/dist/chunk-6PGLX6ET.js.map +1 -0
  8. package/dist/{chunk-ONH2PCGH.js → chunk-AGTBABAH.js} +9 -15
  9. package/dist/chunk-AGTBABAH.js.map +1 -0
  10. package/dist/{chunk-ABVSSJNT.js → chunk-FUMSL7VZ.js} +198 -168
  11. package/dist/chunk-FUMSL7VZ.js.map +1 -0
  12. package/dist/{chunk-GHYUNNNU.js → chunk-NDXNSSM6.js} +175 -93
  13. package/dist/chunk-NDXNSSM6.js.map +1 -0
  14. package/dist/chunk-SEJ6RBP7.js +361 -0
  15. package/dist/chunk-SEJ6RBP7.js.map +1 -0
  16. package/dist/{chunk-D5RKSPMH.js → chunk-ZRQAFFTN.js} +4 -3
  17. package/dist/chunk-ZRQAFFTN.js.map +1 -0
  18. package/dist/components/index.d.ts +331 -4
  19. package/dist/components/index.js +5 -5
  20. package/dist/data/index.d.ts +68 -4
  21. package/dist/data/index.js +235 -31
  22. package/dist/data/index.js.map +1 -1
  23. package/dist/hooks/index.d.ts +60 -1
  24. package/dist/hooks/index.js +2 -3
  25. package/dist/icons/lucide.d.ts +1 -1
  26. package/dist/icons/lucide.js +7 -1
  27. package/dist/icons/lucide.js.map +1 -1
  28. package/dist/{inbox-page-BEarNEIP.d.ts → inbox-page-B7_Oi2fS.d.ts} +2 -44
  29. package/dist/index.d.ts +8 -5
  30. package/dist/index.js +8 -8
  31. package/dist/layouts/index.d.ts +40 -51
  32. package/dist/layouts/index.js +5 -4
  33. package/dist/{native-modules-PwnGltOU.d.ts → native-modules-Cl3zw3kh.d.ts} +27 -1
  34. package/package.json +78 -4
  35. package/src/__tests__/doctor-rules.test.ts +60 -0
  36. package/src/__tests__/native-modules-lists.test.tsx +1 -0
  37. package/src/components/__tests__/composer-bar.test.tsx +55 -0
  38. package/src/components/__tests__/gallery-card.test.tsx +59 -0
  39. package/src/components/__tests__/gallery-grid.test.tsx +160 -0
  40. package/src/components/__tests__/lightbox-resnap.test.tsx +50 -0
  41. package/src/components/__tests__/lightbox-zoom.test.ts +33 -0
  42. package/src/components/__tests__/lightbox.test.tsx +141 -0
  43. package/src/components/__tests__/live-indicator.test.tsx +72 -0
  44. package/src/components/__tests__/rating.test.tsx +82 -0
  45. package/src/components/__tests__/thread-list.test.tsx +156 -0
  46. package/src/components/composer-bar.tsx +198 -0
  47. package/src/components/drawer.tsx +15 -9
  48. package/src/components/gallery-card.tsx +109 -0
  49. package/src/components/gallery-grid.tsx +285 -0
  50. package/src/components/gallery-layout.ts +2 -0
  51. package/src/components/gallery-types.ts +2 -0
  52. package/src/components/index.ts +44 -0
  53. package/src/components/lightbox-zoom.tsx +282 -0
  54. package/src/components/lightbox.tsx +342 -0
  55. package/src/components/live-indicator.tsx +139 -0
  56. package/src/components/rating.tsx +128 -0
  57. package/src/components/skeleton.tsx +9 -4
  58. package/src/components/thread-list.tsx +427 -0
  59. package/src/components/toast.tsx +7 -4
  60. package/src/data/NativeConflictSheet.tsx +181 -0
  61. package/src/data/NativeResourceForm.tsx +15 -1
  62. package/src/data/index.ts +2 -0
  63. package/src/data/resource-view/NativeLinkPicker.tsx +1 -1
  64. package/src/data/resource-view/NativeRecordView.tsx +85 -8
  65. package/src/data/resource-view/NativeResourceView.tsx +79 -32
  66. package/src/data/resource-view/__tests__/native-link-picker.test.tsx +16 -0
  67. package/src/data/resource-view/__tests__/native-record-view.test.tsx +95 -1
  68. package/src/data/resource-view/__tests__/native-resource-gallery.test.tsx +125 -0
  69. package/src/data/resource-view/mapping.ts +3 -0
  70. package/src/hooks/__tests__/use-motion.test.tsx +106 -0
  71. package/src/hooks/__tests__/use-thread-jump.test.tsx +88 -0
  72. package/src/hooks/index.ts +3 -0
  73. package/src/hooks/use-motion.ts +128 -0
  74. package/src/hooks/use-thread-jump.ts +110 -0
  75. package/src/icon-names.ts +6 -0
  76. package/src/icons/lucide.ts +12 -0
  77. package/src/layouts/__tests__/inbox-page.test.tsx +6 -0
  78. package/src/layouts/__tests__/thread-page.test.tsx +114 -14
  79. package/src/layouts/inbox-page.tsx +6 -55
  80. package/src/layouts/index.ts +2 -0
  81. package/src/layouts/thread-page.tsx +326 -262
  82. package/src/native-modules.tsx +16 -2
  83. package/dist/chunk-6KWEAGRD.js.map +0 -1
  84. package/dist/chunk-7PCWEY6R.js +0 -27
  85. package/dist/chunk-7PCWEY6R.js.map +0 -1
  86. package/dist/chunk-ABVSSJNT.js.map +0 -1
  87. package/dist/chunk-D5RKSPMH.js.map +0 -1
  88. package/dist/chunk-GHYUNNNU.js.map +0 -1
  89. package/dist/chunk-LBVD7XXL.js.map +0 -1
  90. package/dist/chunk-ONH2PCGH.js.map +0 -1
  91. package/dist/chunk-Z3AQYVUA.js +0 -36
  92. package/dist/chunk-Z3AQYVUA.js.map +0 -1
@@ -1,3 +1,6 @@
1
+ export { JUMP_SETTLE_MS, UseThreadJumpOptions, useThreadJump } from '@marktiderman/genesis-core/conversation';
2
+ import { MotionSprings, MotionDurations, MotionEasings, MotionLevel, MotionTokens } from '@marktiderman/genesis-design-system/tokens/motion';
3
+ import { n as GenesisReanimatedModule } from '../native-modules-Cl3zw3kh.js';
1
4
  import { ColorValue } from 'react-native';
2
5
  import { ThemeRole, BrandExtensions } from '@marktiderman/genesis-design-system';
3
6
  import * as react from 'react';
@@ -5,6 +8,62 @@ import { ReactNode } from 'react';
5
8
 
6
9
  declare function useReducedMotion(): boolean;
7
10
 
11
+ interface UseMotionOptions {
12
+ /** The brand's motion level. Default `calm`; `none` holds everything still, like Reduce Motion. */
13
+ level?: MotionLevel;
14
+ }
15
+ declare function useMotion(options?: UseMotionOptions): MotionTokens;
16
+ /** How to get there: a named spring (keeps a gesture's velocity), or a named duration and easing. */
17
+ type MotionHow = {
18
+ spring: keyof MotionSprings;
19
+ velocity?: number;
20
+ duration?: never;
21
+ easing?: never;
22
+ } | {
23
+ duration: keyof MotionDurations;
24
+ easing?: keyof MotionEasings;
25
+ spring?: never;
26
+ velocity?: never;
27
+ };
28
+ /** What `motionSpring` gives `withSpring`. */
29
+ interface MotionSpringConfig {
30
+ damping: number;
31
+ stiffness: number;
32
+ mass: number;
33
+ velocity?: number;
34
+ }
35
+ /** What `motionTiming` gives `withTiming`. */
36
+ interface MotionTimingConfig {
37
+ duration: number;
38
+ easing?: unknown;
39
+ }
40
+ /**
41
+ * A `withSpring` config from a named spring. Worklet-safe (plain data in,
42
+ * plain data out). Under reduced motion it's the stiff, critically damped
43
+ * spring that settles in a few frames; to not move at all, check
44
+ * `motion.reduced` and assign the value.
45
+ */
46
+ declare function motionSpring(motion: MotionTokens, name: keyof MotionSprings, velocity?: number): MotionSpringConfig;
47
+ /**
48
+ * A `withTiming` config from a named duration and easing. Pass Reanimated's
49
+ * `Easing` (`R.Easing`, or `Easing` imported in a worklet) so the token's
50
+ * curve is used; a module without `Easing.bezier` gets Reanimated's default
51
+ * curve. Worklet-safe.
52
+ */
53
+ declare function motionTiming(motion: MotionTokens, duration: keyof MotionDurations, Easing: Pick<GenesisReanimatedModule["Easing"], "bezier"> | undefined, easing?: keyof MotionEasings): MotionTimingConfig;
54
+ /**
55
+ * A Reanimated animation to `toValue` with the motion tokens, for a shared
56
+ * value on the JS thread: `x.value = animateMotion(R, motion, 0, { spring: "smooth" })`.
57
+ * Under reduced motion it returns `toValue` itself, so nothing moves.
58
+ *
59
+ * It takes no completion callback: Reanimated runs one on the UI thread, so
60
+ * it must be a worklet, and the reduced path couldn't keep that promise. To
61
+ * act when an animation ends, call `withSpring` / `withTiming` yourself with
62
+ * `motionSpring` / `motionTiming` and a worklet callback. A module without
63
+ * `withSpring` (an older one, a test fake) gets a `withTiming` at `base`.
64
+ */
65
+ declare function animateMotion(R: GenesisReanimatedModule, motion: MotionTokens, toValue: number, how: MotionHow): number;
66
+
8
67
  type ThemeMode = "light" | "dark";
9
68
  declare function useThemeMode(): ThemeMode;
10
69
 
@@ -38,4 +97,4 @@ declare function BrandExtensionsProvider({ value, children, }: BrandExtensionsPr
38
97
  */
39
98
  declare function useGenesisExtension<K extends keyof BrandExtensions>(key: K): BrandExtensions[K] | undefined;
40
99
 
41
- export { BrandExtensionsProvider, type BrandExtensionsProviderProps, type BrandExtensionsValue, type ThemeMode, type ThemeRoleColors, type UseThemeRolesOptions, useGenesisExtension, useReducedMotion, useThemeMode, useThemeRoles };
100
+ export { BrandExtensionsProvider, type BrandExtensionsProviderProps, type BrandExtensionsValue, type MotionHow, type MotionSpringConfig, type MotionTimingConfig, type ThemeMode, type ThemeRoleColors, type UseMotionOptions, type UseThemeRolesOptions, animateMotion, motionSpring, motionTiming, useGenesisExtension, useMotion, useReducedMotion, useThemeMode, useThemeRoles };
@@ -1,6 +1,5 @@
1
- export { BrandExtensionsProvider, useGenesisExtension } from '../chunk-D5RKSPMH.js';
2
- export { useReducedMotion } from '../chunk-7PCWEY6R.js';
3
- export { useThemeMode, useThemeRoles } from '../chunk-Z3AQYVUA.js';
1
+ export { BrandExtensionsProvider, JUMP_SETTLE_MS, useGenesisExtension, useThreadJump } from '../chunk-ZRQAFFTN.js';
2
+ export { animateMotion, motionSpring, motionTiming, useMotion, useReducedMotion, useThemeMode, useThemeRoles } from '../chunk-4OQOJ2OC.js';
4
3
  import '../chunk-DGUM43GV.js';
5
4
  //# sourceMappingURL=index.js.map
6
5
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { q as NativeIconName, c as GenesisIconComponent } from '../native-modules-PwnGltOU.js';
1
+ import { q as NativeIconName, c as GenesisIconComponent } from '../native-modules-Cl3zw3kh.js';
2
2
  import 'react';
3
3
  import 'react-native';
4
4
 
@@ -1,14 +1,16 @@
1
1
  import '../chunk-DGUM43GV.js';
2
- import { TriangleAlert, VolumeX, Volume2, Video, User, Trash2, CircleCheck, Square, Star, Smile, Share, Settings, Search, Reply, RefreshCw, Plus, Play, Pin, Pause, Paperclip, Ellipsis, Minus, Mic, MessageCircle, Menu, Mail, LogOut, Lock, Info, Image, House, Heart, Funnel, File, ExternalLink, Maximize2, CircleX, Pencil, Download, Copy, SquarePen, X, Clock, ChevronUp, ChevronRight, ChevronLeft, ChevronDown, Check, SwitchCamera, Camera, Calendar, Bell, ArrowUp, ArrowLeft } from 'lucide-react-native';
2
+ import { TriangleAlert, VolumeX, Volume2, Video, User, Trash2, CircleCheck, Square, Star, Smile, Share, Settings2, Settings, Search, Reply, RefreshCw, Radio, Plus, Play, Pin, Pause, Paperclip, Ellipsis, Minus, Mic, MessageCircle, Menu, Maximize, Mail, LogOut, Lock, Info, Image, House, Heart, FolderPlus, Funnel, File, ExternalLink, Maximize2, CircleX, Pencil, Download, Copy, SquarePen, X, Clock, ChevronUp, ChevronRight, ChevronLeft, ChevronDown, Clapperboard, Check, SwitchCamera, Camera, Calendar, Bell, Aperture, ArrowUp, ArrowLeft } from 'lucide-react-native';
3
3
 
4
4
  var lucideIcons = {
5
5
  "arrow-left": ArrowLeft,
6
6
  "arrow-up": ArrowUp,
7
+ aperture: Aperture,
7
8
  bell: Bell,
8
9
  calendar: Calendar,
9
10
  camera: Camera,
10
11
  "camera-flip": SwitchCamera,
11
12
  check: Check,
13
+ clapperboard: Clapperboard,
12
14
  "chevron-down": ChevronDown,
13
15
  "chevron-left": ChevronLeft,
14
16
  "chevron-right": ChevronRight,
@@ -24,6 +26,7 @@ var lucideIcons = {
24
26
  "external-link": ExternalLink,
25
27
  file: File,
26
28
  filter: Funnel,
29
+ "folder-plus": FolderPlus,
27
30
  heart: Heart,
28
31
  home: House,
29
32
  image: Image,
@@ -31,6 +34,7 @@ var lucideIcons = {
31
34
  lock: Lock,
32
35
  "log-out": LogOut,
33
36
  mail: Mail,
37
+ maximize: Maximize,
34
38
  menu: Menu,
35
39
  message: MessageCircle,
36
40
  mic: Mic,
@@ -41,10 +45,12 @@ var lucideIcons = {
41
45
  pin: Pin,
42
46
  play: Play,
43
47
  plus: Plus,
48
+ radio: Radio,
44
49
  refresh: RefreshCw,
45
50
  reply: Reply,
46
51
  search: Search,
47
52
  settings: Settings,
53
+ "settings-2": Settings2,
48
54
  share: Share,
49
55
  smile: Smile,
50
56
  star: Star,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/icons/lucide.ts"],"names":[],"mappings":";;;AAqEO,IAAM,WAAA,GAA4D;AAAA,EACvE,YAAA,EAAc,SAAA;AAAA,EACd,UAAA,EAAY,OAAA;AAAA,EACZ,IAAA,EAAM,IAAA;AAAA,EACN,QAAA,EAAU,QAAA;AAAA,EACV,MAAA,EAAQ,MAAA;AAAA,EACR,aAAA,EAAe,YAAA;AAAA,EACf,KAAA,EAAO,KAAA;AAAA,EACP,cAAA,EAAgB,WAAA;AAAA,EAChB,cAAA,EAAgB,WAAA;AAAA,EAChB,eAAA,EAAiB,YAAA;AAAA,EACjB,YAAA,EAAc,SAAA;AAAA,EACd,KAAA,EAAO,KAAA;AAAA,EACP,KAAA,EAAO,CAAA;AAAA,EACP,OAAA,EAAS,SAAA;AAAA,EACT,IAAA,EAAM,IAAA;AAAA,EACN,QAAA,EAAU,QAAA;AAAA,EACV,IAAA,EAAM,MAAA;AAAA,EACN,KAAA,EAAO,OAAA;AAAA,EACP,MAAA,EAAQ,SAAA;AAAA,EACR,eAAA,EAAiB,YAAA;AAAA,EACjB,IAAA,EAAM,IAAA;AAAA,EACN,MAAA,EAAQ,MAAA;AAAA,EACR,KAAA,EAAO,KAAA;AAAA,EACP,IAAA,EAAM,KAAA;AAAA,EACN,KAAA,EAAO,KAAA;AAAA,EACP,IAAA,EAAM,IAAA;AAAA,EACN,IAAA,EAAM,IAAA;AAAA,EACN,SAAA,EAAW,MAAA;AAAA,EACX,IAAA,EAAM,IAAA;AAAA,EACN,IAAA,EAAM,IAAA;AAAA,EACN,OAAA,EAAS,aAAA;AAAA,EACT,GAAA,EAAK,GAAA;AAAA,EACL,KAAA,EAAO,KAAA;AAAA,EACP,IAAA,EAAM,QAAA;AAAA,EACN,SAAA,EAAW,SAAA;AAAA,EACX,KAAA,EAAO,KAAA;AAAA,EACP,GAAA,EAAK,GAAA;AAAA,EACL,IAAA,EAAM,IAAA;AAAA,EACN,IAAA,EAAM,IAAA;AAAA,EACN,OAAA,EAAS,SAAA;AAAA,EACT,KAAA,EAAO,KAAA;AAAA,EACP,MAAA,EAAQ,MAAA;AAAA,EACR,QAAA,EAAU,QAAA;AAAA,EACV,KAAA,EAAO,KAAA;AAAA,EACP,KAAA,EAAO,KAAA;AAAA,EACP,IAAA,EAAM,IAAA;AAAA,EACN,IAAA,EAAM,MAAA;AAAA,EACN,OAAA,EAAS,WAAA;AAAA,EACT,KAAA,EAAO,MAAA;AAAA,EACP,IAAA,EAAM,IAAA;AAAA,EACN,KAAA,EAAO,KAAA;AAAA,EACP,MAAA,EAAQ,OAAA;AAAA,EACR,YAAA,EAAc,OAAA;AAAA,EACd,OAAA,EAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAMX","file":"lucide.js","sourcesContent":["/**\n * `lucideIcons` — the lucide-react-native icon for every semantic name, the\n * icon set `NativeIcon` draws on Android and web (and on iOS when an SF\n * Symbol can't be drawn). Opt in by importing this subpath and passing it as\n * `modules.icons`; the rest of the package never imports lucide.\n *\n * Needs lucide-react-native 0.475 or later (the names below).\n *\n * @stability Beta\n */\nimport {\n ArrowLeft,\n ArrowUp,\n Bell,\n Calendar,\n Camera,\n Check,\n ChevronDown,\n ChevronLeft,\n ChevronRight,\n ChevronUp,\n CircleCheck,\n CircleX,\n Clock,\n Copy,\n Download,\n Ellipsis,\n ExternalLink,\n File,\n Funnel,\n Heart,\n House,\n Image,\n Info,\n Maximize2,\n Lock,\n LogOut,\n Mail,\n Menu,\n MessageCircle,\n Mic,\n Minus,\n Paperclip,\n Pause,\n Pencil,\n Pin,\n Play,\n Plus,\n RefreshCw,\n Reply,\n Search,\n Square,\n SwitchCamera,\n Settings,\n Share,\n Smile,\n SquarePen,\n Star,\n Trash2,\n TriangleAlert,\n User,\n Video,\n Volume2,\n VolumeX,\n X,\n} from \"lucide-react-native\";\nimport type { NativeIconName } from \"../icon-names\";\nimport type { GenesisIconComponent } from \"../native-modules\";\n\nexport const lucideIcons: Record<NativeIconName, GenesisIconComponent> = {\n \"arrow-left\": ArrowLeft,\n \"arrow-up\": ArrowUp,\n bell: Bell,\n calendar: Calendar,\n camera: Camera,\n \"camera-flip\": SwitchCamera,\n check: Check,\n \"chevron-down\": ChevronDown,\n \"chevron-left\": ChevronLeft,\n \"chevron-right\": ChevronRight,\n \"chevron-up\": ChevronUp,\n clock: Clock,\n close: X,\n compose: SquarePen,\n copy: Copy,\n download: Download,\n edit: Pencil,\n error: CircleX,\n expand: Maximize2,\n \"external-link\": ExternalLink,\n file: File,\n filter: Funnel,\n heart: Heart,\n home: House,\n image: Image,\n info: Info,\n lock: Lock,\n \"log-out\": LogOut,\n mail: Mail,\n menu: Menu,\n message: MessageCircle,\n mic: Mic,\n minus: Minus,\n more: Ellipsis,\n paperclip: Paperclip,\n pause: Pause,\n pin: Pin,\n play: Play,\n plus: Plus,\n refresh: RefreshCw,\n reply: Reply,\n search: Search,\n settings: Settings,\n share: Share,\n smile: Smile,\n star: Star,\n stop: Square,\n success: CircleCheck,\n trash: Trash2,\n user: User,\n video: Video,\n volume: Volume2,\n \"volume-off\": VolumeX,\n warning: TriangleAlert,\n // The cast widens lucide's declared `color: string` to `ColorValue`. On iOS\n // NativeIcon passes theme roles as `PlatformColor` objects; lucide hands\n // `color` to react-native-svg's stroke, whose extractBrush resolves\n // PlatformColor and DynamicColorIOS objects (react-native-svg 15,\n // src/lib/extract/extractBrush.ts).\n} as Record<NativeIconName, GenesisIconComponent>;\n"]}
1
+ {"version":3,"sources":["../../src/icons/lucide.ts"],"names":[],"mappings":";;;AA2EO,IAAM,WAAA,GAA4D;AAAA,EACvE,YAAA,EAAc,SAAA;AAAA,EACd,UAAA,EAAY,OAAA;AAAA,EACZ,QAAA,EAAU,QAAA;AAAA,EACV,IAAA,EAAM,IAAA;AAAA,EACN,QAAA,EAAU,QAAA;AAAA,EACV,MAAA,EAAQ,MAAA;AAAA,EACR,aAAA,EAAe,YAAA;AAAA,EACf,KAAA,EAAO,KAAA;AAAA,EACP,YAAA,EAAc,YAAA;AAAA,EACd,cAAA,EAAgB,WAAA;AAAA,EAChB,cAAA,EAAgB,WAAA;AAAA,EAChB,eAAA,EAAiB,YAAA;AAAA,EACjB,YAAA,EAAc,SAAA;AAAA,EACd,KAAA,EAAO,KAAA;AAAA,EACP,KAAA,EAAO,CAAA;AAAA,EACP,OAAA,EAAS,SAAA;AAAA,EACT,IAAA,EAAM,IAAA;AAAA,EACN,QAAA,EAAU,QAAA;AAAA,EACV,IAAA,EAAM,MAAA;AAAA,EACN,KAAA,EAAO,OAAA;AAAA,EACP,MAAA,EAAQ,SAAA;AAAA,EACR,eAAA,EAAiB,YAAA;AAAA,EACjB,IAAA,EAAM,IAAA;AAAA,EACN,MAAA,EAAQ,MAAA;AAAA,EACR,aAAA,EAAe,UAAA;AAAA,EACf,KAAA,EAAO,KAAA;AAAA,EACP,IAAA,EAAM,KAAA;AAAA,EACN,KAAA,EAAO,KAAA;AAAA,EACP,IAAA,EAAM,IAAA;AAAA,EACN,IAAA,EAAM,IAAA;AAAA,EACN,SAAA,EAAW,MAAA;AAAA,EACX,IAAA,EAAM,IAAA;AAAA,EACN,QAAA,EAAU,QAAA;AAAA,EACV,IAAA,EAAM,IAAA;AAAA,EACN,OAAA,EAAS,aAAA;AAAA,EACT,GAAA,EAAK,GAAA;AAAA,EACL,KAAA,EAAO,KAAA;AAAA,EACP,IAAA,EAAM,QAAA;AAAA,EACN,SAAA,EAAW,SAAA;AAAA,EACX,KAAA,EAAO,KAAA;AAAA,EACP,GAAA,EAAK,GAAA;AAAA,EACL,IAAA,EAAM,IAAA;AAAA,EACN,IAAA,EAAM,IAAA;AAAA,EACN,KAAA,EAAO,KAAA;AAAA,EACP,OAAA,EAAS,SAAA;AAAA,EACT,KAAA,EAAO,KAAA;AAAA,EACP,MAAA,EAAQ,MAAA;AAAA,EACR,QAAA,EAAU,QAAA;AAAA,EACV,YAAA,EAAc,SAAA;AAAA,EACd,KAAA,EAAO,KAAA;AAAA,EACP,KAAA,EAAO,KAAA;AAAA,EACP,IAAA,EAAM,IAAA;AAAA,EACN,IAAA,EAAM,MAAA;AAAA,EACN,OAAA,EAAS,WAAA;AAAA,EACT,KAAA,EAAO,MAAA;AAAA,EACP,IAAA,EAAM,IAAA;AAAA,EACN,KAAA,EAAO,KAAA;AAAA,EACP,MAAA,EAAQ,OAAA;AAAA,EACR,YAAA,EAAc,OAAA;AAAA,EACd,OAAA,EAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAMX","file":"lucide.js","sourcesContent":["/**\n * `lucideIcons` — the lucide-react-native icon for every semantic name, the\n * icon set `NativeIcon` draws on Android and web (and on iOS when an SF\n * Symbol can't be drawn). Opt in by importing this subpath and passing it as\n * `modules.icons`; the rest of the package never imports lucide.\n *\n * Needs lucide-react-native 0.475 or later (the names below).\n *\n * @stability Beta\n */\nimport {\n Aperture,\n ArrowLeft,\n ArrowUp,\n Bell,\n Calendar,\n Camera,\n Check,\n Clapperboard,\n ChevronDown,\n ChevronLeft,\n ChevronRight,\n ChevronUp,\n CircleCheck,\n CircleX,\n Clock,\n Copy,\n Download,\n Ellipsis,\n ExternalLink,\n File,\n FolderPlus,\n Funnel,\n Heart,\n House,\n Image,\n Info,\n Maximize,\n Maximize2,\n Lock,\n LogOut,\n Mail,\n Menu,\n MessageCircle,\n Mic,\n Minus,\n Paperclip,\n Pause,\n Pencil,\n Pin,\n Play,\n Plus,\n Radio,\n RefreshCw,\n Reply,\n Search,\n Square,\n SwitchCamera,\n Settings,\n Settings2,\n Share,\n Smile,\n SquarePen,\n Star,\n Trash2,\n TriangleAlert,\n User,\n Video,\n Volume2,\n VolumeX,\n X,\n} from \"lucide-react-native\";\nimport type { NativeIconName } from \"../icon-names\";\nimport type { GenesisIconComponent } from \"../native-modules\";\n\nexport const lucideIcons: Record<NativeIconName, GenesisIconComponent> = {\n \"arrow-left\": ArrowLeft,\n \"arrow-up\": ArrowUp,\n aperture: Aperture,\n bell: Bell,\n calendar: Calendar,\n camera: Camera,\n \"camera-flip\": SwitchCamera,\n check: Check,\n clapperboard: Clapperboard,\n \"chevron-down\": ChevronDown,\n \"chevron-left\": ChevronLeft,\n \"chevron-right\": ChevronRight,\n \"chevron-up\": ChevronUp,\n clock: Clock,\n close: X,\n compose: SquarePen,\n copy: Copy,\n download: Download,\n edit: Pencil,\n error: CircleX,\n expand: Maximize2,\n \"external-link\": ExternalLink,\n file: File,\n filter: Funnel,\n \"folder-plus\": FolderPlus,\n heart: Heart,\n home: House,\n image: Image,\n info: Info,\n lock: Lock,\n \"log-out\": LogOut,\n mail: Mail,\n maximize: Maximize,\n menu: Menu,\n message: MessageCircle,\n mic: Mic,\n minus: Minus,\n more: Ellipsis,\n paperclip: Paperclip,\n pause: Pause,\n pin: Pin,\n play: Play,\n plus: Plus,\n radio: Radio,\n refresh: RefreshCw,\n reply: Reply,\n search: Search,\n settings: Settings,\n \"settings-2\": Settings2,\n share: Share,\n smile: Smile,\n star: Star,\n stop: Square,\n success: CircleCheck,\n trash: Trash2,\n user: User,\n video: Video,\n volume: Volume2,\n \"volume-off\": VolumeX,\n warning: TriangleAlert,\n // The cast widens lucide's declared `color: string` to `ColorValue`. On iOS\n // NativeIcon passes theme roles as `PlatformColor` objects; lucide hands\n // `color` to react-native-svg's stroke, whose extractBrush resolves\n // PlatformColor and DynamicColorIOS objects (react-native-svg 15,\n // src/lib/extract/extractBrush.ts).\n} as Record<NativeIconName, GenesisIconComponent>;\n"]}
@@ -2,6 +2,7 @@ import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
  import { Slots, SlotPropsFor } from '@marktiderman/genesis-core/slots';
4
4
  import { ViewStyle } from 'react-native';
5
+ import { InboxItem, InboxSwipeAction } from '@marktiderman/genesis-core/conversation';
5
6
 
6
7
  type SafeAreaEdge = "top" | "bottom" | "left" | "right";
7
8
  type ScrollEdgeBehavior = "match" | "transparent" | "opaque";
@@ -94,47 +95,6 @@ interface ScreenHeaderProps {
94
95
  declare function composeHeaderOptions(props: ScreenHeaderProps): Record<string, unknown>;
95
96
  declare function ScreenContainer({ children, scroll, safeAreaEdges, statusBar, themeMode, className, contentClassName, keyboardShouldPersistTaps, loading, loadingLabel, onRefresh, refreshing, style, testID, }: ScreenContainerProps): react.JSX.Element;
96
97
 
97
- /** An action on a row: swipe, long press, or an accessibility action. */
98
- interface InboxSwipeAction {
99
- id: string;
100
- label: string;
101
- onPress: () => void;
102
- /** Destructive tone (delete, leave). */
103
- destructive?: boolean;
104
- }
105
- interface InboxItem {
106
- /** Stable id for keying. */
107
- id: string;
108
- title: string;
109
- /** The latest message or a summary, at most two lines. */
110
- preview?: string;
111
- /** When it last changed. Shown as a short time or date. */
112
- timestamp?: string | Date;
113
- /** Something new the person hasn't read: a dot, and the title in bold. */
114
- unread?: boolean;
115
- /** How many unread messages; shown as a count instead of the dot when above 0. */
116
- unreadCount?: number;
117
- /** A short status shown under the preview ("In progress", "12 votes"). */
118
- meta?: string;
119
- /** Replaces the unread dot (an icon). For a picture of who it is, use `avatar`, which keeps the dot. */
120
- leading?: ReactNode;
121
- /**
122
- * A picture of who or what it is (a `NativeAvatar`, about 40pt), between the
123
- * unread dot and the text. The separator then starts at the text. It is hidden
124
- * from screen readers; when it shows someone `title` doesn't name, say who in
125
- * `avatarLabel`.
126
- */
127
- avatar?: ReactNode;
128
- /** Who the avatar shows, read before the title, when `title` doesn't name them. */
129
- avatarLabel?: string;
130
- /** Shown at the end of the row (a vote button, a badge). Replaces the chevron. */
131
- trailing?: ReactNode;
132
- /** Opens the conversation. Rows with `onPress` show a chevron unless `trailing` is set. */
133
- onPress?: () => void;
134
- swipeActions?: InboxSwipeAction[];
135
- /** testID override. Default `<page testID>-row-<id>`. */
136
- testID?: string;
137
- }
138
98
  /** The parts `slots` and `slotProps` reach, with the props each receives. */
139
99
  type InboxPageSlotMap = {
140
100
  row: InboxItem & {
@@ -200,10 +160,8 @@ interface InboxPageProps extends ScreenHeaderProps {
200
160
  declare function getInboxPageStackOptions(props: ScreenHeaderProps & {
201
161
  headerTitle?: string;
202
162
  }): Record<string, unknown>;
203
- /** The default row time: `9:41`, `Yesterday`, `Monday`, then a short date. */
204
- declare function formatInboxTime(date: Date, now: Date): string;
205
163
  declare function InboxPage({ items, refreshing, onRefresh, onEndReached, loadingMore, header, sectionTitle, emptyTitle, emptyBody, emptyActionLabel, onEmptyAction, loading, error, errorTitle, errorBody, formatTime, now, slots, slotProps, testID, }: InboxPageProps): react.JSX.Element;
206
164
  /** Opens a row's actions as a menu (long press). */
207
165
  declare function showInboxActions(title: string, actions: InboxSwipeAction[], cancelLabel?: string): void;
208
166
 
209
- export { type InboxItem as I, type SafeAreaEdge as S, InboxPage as a, type InboxPageProps as b, type InboxPageSlotMap as c, type InboxSwipeAction as d, ScreenContainer as e, type ScreenContainerProps as f, type ScreenHeaderProps as g, type ScrollEdgeBehavior as h, composeHeaderOptions as i, formatInboxTime as j, getInboxPageStackOptions as k, showInboxActions as s };
167
+ export { InboxPage as I, type SafeAreaEdge as S, type InboxPageProps as a, type InboxPageSlotMap as b, ScreenContainer as c, type ScreenContainerProps as d, type ScreenHeaderProps as e, type ScrollEdgeBehavior as f, composeHeaderOptions as g, getInboxPageStackOptions as h, showInboxActions as s };
package/dist/index.d.ts CHANGED
@@ -1,13 +1,16 @@
1
- export { Box, BoxBackground, BoxProps, FULL_SCREEN_DARK, FlexAlign, FlexJustify, Grid, GridProps, Inline, InlineProps, NativeAccordion, NativeAccordionContent, NativeAccordionContentProps, NativeAccordionItem, NativeAccordionItemProps, NativeAccordionProps, NativeAccordionTrigger, NativeAccordionTriggerProps, NativeAccordionType, NativeAlert, NativeAlertDescription, NativeAlertDescriptionProps, NativeAlertProps, NativeAlertTitle, NativeAlertTitleProps, NativeAvatar, NativeAvatarProps, NativeBadge, NativeBadgeProps, NativeBanner, NativeBannerProps, NativeButton, NativeButtonProps, NativeCard, NativeCardContent, NativeCardDescription, NativeCardFooter, NativeCardHeader, NativeCardProps, NativeCardTitle, NativeCardTitleProps, NativeCheckbox, NativeCheckboxProps, NativeChip, NativeChipGroup, NativeChipGroupMode, NativeChipGroupProps, NativeChipProps, NativeCombobox, NativeComboboxOption, NativeComboboxProps, NativeDatePicker, NativeDatePickerProps, NativeDialog, NativeDialogContent, NativeDialogContentProps, NativeDialogDescription, NativeDialogDescriptionProps, NativeDialogFooter, NativeDialogFooterProps, NativeDialogHeader, NativeDialogHeaderProps, NativeDialogProps, NativeDialogTitle, NativeDialogTitleProps, NativeDrawer, NativeDrawerProps, NativeDropdownMenu, NativeDropdownMenuContent, NativeDropdownMenuContentProps, NativeDropdownMenuItem, NativeDropdownMenuItemProps, NativeDropdownMenuProps, NativeDropdownMenuTrigger, NativeDropdownMenuTriggerProps, NativeEmptyState, NativeEmptyStateProps, NativeEmptyStateVariant, NativeFullScreenModal, NativeFullScreenModalProps, NativeGlassSurface, NativeGlassSurfaceProps, NativeHeaderCard, NativeHeaderCardProps, NativeIcon, NativeIconProps, NativeImage, NativeImageProps, NativeInlineAlert, NativeInlineAlertProps, NativeInlineAlertVariant, NativeInput, NativeInputProps, NativeLabel, NativeLabelProps, NativeListItem, NativeListItemDivider, NativeListItemProps, NativeLoadingState, NativeLoadingStateEdge, NativeLoadingStateProps, NativeNumberInput, NativeNumberInputProps, NativePagination, NativePaginationProps, NativePopover, NativePopoverContent, NativePopoverContentProps, NativePopoverProps, NativePopoverTrigger, NativePopoverTriggerProps, NativeProgress, NativeProgressProps, NativeRadioGroup, NativeRadioGroupItem, NativeRadioGroupItemProps, NativeRadioGroupProps, NativeRangeSlider, NativeRangeSliderProps, NativeRefreshControl, NativeRefreshControlProps, NativeSearchBar, NativeSearchBarProps, NativeSectionListHeader, NativeSectionListHeaderProps, NativeSegmentedControl, NativeSegmentedControlOption, NativeSegmentedControlProps, NativeSelect, NativeSelectContent, NativeSelectContentProps, NativeSelectItem, NativeSelectItemProps, NativeSelectProps, NativeSelectTrigger, NativeSelectTriggerProps, NativeSeparator, NativeSeparatorProps, NativeSheet, NativeSheetLibrary, NativeSheetProps, NativeSheetProvider, NativeSheetProviderProps, NativeSheetScrollView, NativeSkeleton, NativeSkeletonProps, NativeSlider, NativeSliderProps, NativeStepper, NativeStepperProps, NativeStepperStep, NativeSwitch, NativeSwitchProps, NativeTabs, NativeTabsContent, NativeTabsContentProps, NativeTabsList, NativeTabsListProps, NativeTabsProps, NativeTabsTrigger, NativeTabsTriggerProps, NativeText, NativeTextProps, NativeTextarea, NativeTextareaProps, NativeTimePicker, NativeTimePickerProps, NativeToastOptions, NativeToastProvider, NativeToastProviderProps, NativeToastVariant, NativeToggle, NativeToggleProps, NativeTooltip, NativeTooltipContent, NativeTooltipContentProps, NativeTooltipProps, NativeTooltipTrigger, NativeTooltipTriggerProps, SpaceToken, SpacingPrefix, Stack, StackProps, TextPreset, alertVariants, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, spaceScale, spacingClass, textVariants, toggleVariants, useLiquidGlass, useReduceTransparency, useToast } from './components/index.js';
2
- export { G as GenesisDatePickerComponent, a as GenesisDatePickerProps, b as GenesisGlassModule, c as GenesisIconComponent, d as GenesisIconSet, e as GenesisImageComponent, f as GenesisImageProps, g as GenesisListComponent, h as GenesisListProps, i as GenesisModules, j as GenesisModulesProvider, k as GenesisModulesProviderProps, l as GenesisNavigationModule, m as GenesisNavigationTheme, n as GenesisReanimatedModule, o as GenesisSymbolComponent, p as GenesisSymbolProps, N as NATIVE_ICON_NAMES, q as NativeIconName, S as SF_SYMBOLS, u as useGenesisModules } from './native-modules-PwnGltOU.js';
3
- export { BrandExtensionsProvider, BrandExtensionsProviderProps, BrandExtensionsValue, ThemeMode, ThemeRoleColors, UseThemeRolesOptions, useGenesisExtension, useReducedMotion, useThemeMode, useThemeRoles } from './hooks/index.js';
4
- export { I as InboxItem, a as InboxPage, b as InboxPageProps, c as InboxPageSlotMap, d as InboxSwipeAction, S as SafeAreaEdge, e as ScreenContainer, f as ScreenContainerProps, g as ScreenHeaderProps, h as ScrollEdgeBehavior, i as composeHeaderOptions, j as formatInboxTime, k as getInboxPageStackOptions, s as showInboxActions } from './inbox-page-BEarNEIP.js';
5
- export { AppleButtonModuleLike, AppleProviderOptions, AppleSignInButton, AppleSignInButtonProps, AuthBranding, AuthBrandingProps, AuthForm, AuthFormProps, AuthFormValues, AuthScreen, AuthScreenProps, AuthScreenSlotMap, ForgotPasswordLink, GoogleProviderOptions, KEYBOARD_TOOLBAR_HEIGHT, KeyboardScrollProps, KeyboardScrollProvider, KeyboardToolbarProps, NavBarSaveButton, NavBarSaveButtonProps, NavBarSearchBar, NavBarSearchBarProps, NavBarTitle, NavBarTitleProps, NotificationItem, NotificationsPage, NotificationsPageProps, NotificationsPageSlotMap, SettingsPage, SettingsPageDangerousAction, SettingsPageProps, SettingsPageRow, SettingsPageSection, SettingsPageSlotMap, SettingsSubPage, SettingsSubPageProps, SocialAuthProvider, SocialAuthRow, SocialAuthRowProps, ThreadAttachment, ThreadComposer, ThreadLabels, ThreadMessage, ThreadPage, ThreadPageProps, ThreadPageSlotMap, appleProvider, confirmDiscardChanges, defaultStickyHeaderOffset, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, readReceiptFor, useKeyboardScroll, useKeyboardToolbar } from './layouts/index.js';
1
+ export { Box, BoxBackground, BoxProps, FULL_SCREEN_DARK, FlexAlign, FlexJustify, Grid, GridProps, Inline, InlineProps, LIGHTBOX_DISMISS_DISTANCE, LIGHTBOX_DISMISS_VELOCITY, LIGHTBOX_DOUBLE_TAP_MS, LIGHTBOX_MAX_ZOOM, NativeAccordion, NativeAccordionContent, NativeAccordionContentProps, NativeAccordionItem, NativeAccordionItemProps, NativeAccordionProps, NativeAccordionTrigger, NativeAccordionTriggerProps, NativeAccordionType, NativeAlert, NativeAlertDescription, NativeAlertDescriptionProps, NativeAlertProps, NativeAlertTitle, NativeAlertTitleProps, NativeAvatar, NativeAvatarProps, NativeBadge, NativeBadgeProps, NativeBanner, NativeBannerProps, NativeButton, NativeButtonProps, NativeCard, NativeCardContent, NativeCardDescription, NativeCardFooter, NativeCardHeader, NativeCardProps, NativeCardTitle, NativeCardTitleProps, NativeCheckbox, NativeCheckboxProps, NativeChip, NativeChipGroup, NativeChipGroupMode, NativeChipGroupProps, NativeChipProps, NativeCombobox, NativeComboboxOption, NativeComboboxProps, NativeComposerBar, NativeComposerBarProps, NativeDatePicker, NativeDatePickerProps, NativeDialog, NativeDialogContent, NativeDialogContentProps, NativeDialogDescription, NativeDialogDescriptionProps, NativeDialogFooter, NativeDialogFooterProps, NativeDialogHeader, NativeDialogHeaderProps, NativeDialogProps, NativeDialogTitle, NativeDialogTitleProps, NativeDrawer, NativeDrawerProps, NativeDropdownMenu, NativeDropdownMenuContent, NativeDropdownMenuContentProps, NativeDropdownMenuItem, NativeDropdownMenuItemProps, NativeDropdownMenuProps, NativeDropdownMenuTrigger, NativeDropdownMenuTriggerProps, NativeEmptyState, NativeEmptyStateProps, NativeEmptyStateVariant, NativeFullScreenModal, NativeFullScreenModalProps, NativeGalleryCard, NativeGalleryCardProps, NativeGalleryGrid, NativeGalleryGridProps, NativeGalleryLayout, NativeGlassSurface, NativeGlassSurfaceProps, NativeHeaderCard, NativeHeaderCardProps, NativeIcon, NativeIconProps, NativeImage, NativeImageProps, NativeInlineAlert, NativeInlineAlertProps, NativeInlineAlertVariant, NativeInput, NativeInputProps, NativeLabel, NativeLabelProps, NativeLightbox, NativeLightboxLabels, NativeLightboxProps, NativeListItem, NativeListItemDivider, NativeListItemProps, NativeLiveIndicator, NativeLiveIndicatorProps, NativeLiveIndicatorState, NativeLiveIndicatorVariant, NativeLoadingState, NativeLoadingStateEdge, NativeLoadingStateProps, NativeNumberInput, NativeNumberInputProps, NativePagination, NativePaginationProps, NativePopover, NativePopoverContent, NativePopoverContentProps, NativePopoverProps, NativePopoverTrigger, NativePopoverTriggerProps, NativeProgress, NativeProgressProps, NativeRadioGroup, NativeRadioGroupItem, NativeRadioGroupItemProps, NativeRadioGroupProps, NativeRangeSlider, NativeRangeSliderProps, NativeRating, NativeRatingProps, NativeRatingSize, NativeRefreshControl, NativeRefreshControlProps, NativeSearchBar, NativeSearchBarProps, NativeSectionListHeader, NativeSectionListHeaderProps, NativeSegmentedControl, NativeSegmentedControlOption, NativeSegmentedControlProps, NativeSelect, NativeSelectContent, NativeSelectContentProps, NativeSelectItem, NativeSelectItemProps, NativeSelectProps, NativeSelectTrigger, NativeSelectTriggerProps, NativeSeparator, NativeSeparatorProps, NativeSheet, NativeSheetLibrary, NativeSheetProps, NativeSheetProvider, NativeSheetProviderProps, NativeSheetScrollView, NativeSkeleton, NativeSkeletonProps, NativeSlider, NativeSliderProps, NativeStepper, NativeStepperProps, NativeStepperStep, NativeSwitch, NativeSwitchProps, NativeTabs, NativeTabsContent, NativeTabsContentProps, NativeTabsList, NativeTabsListProps, NativeTabsProps, NativeTabsTrigger, NativeTabsTriggerProps, NativeText, NativeTextProps, NativeTextarea, NativeTextareaProps, NativeThreadList, NativeThreadListHandle, NativeThreadListProps, NativeTimePicker, NativeTimePickerProps, NativeToastOptions, NativeToastProvider, NativeToastProviderProps, NativeToastVariant, NativeToggle, NativeToggleProps, NativeTooltip, NativeTooltipContent, NativeTooltipContentProps, NativeTooltipProps, NativeTooltipTrigger, NativeTooltipTriggerProps, NativeZoomablePhoto, NativeZoomablePhotoProps, SpaceToken, SpacingPrefix, Stack, StackProps, THREAD_AT_BOTTOM_POINTS, TextPreset, ThreadRowInfo, alertVariants, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, defaultNativeLightboxLabels, lightboxPanLimit, lightboxPinchScale, lightboxShouldDismiss, lightboxTouchDistance, nextRating, spaceScale, spacingClass, textVariants, threadListMode, threadNearBottom, toggleVariants, useLiquidGlass, useReduceTransparency, useToast } from './components/index.js';
2
+ export { G as GenesisDatePickerComponent, a as GenesisDatePickerProps, b as GenesisGlassModule, c as GenesisIconComponent, d as GenesisIconSet, e as GenesisImageComponent, f as GenesisImageProps, g as GenesisListComponent, h as GenesisListProps, i as GenesisModules, j as GenesisModulesProvider, k as GenesisModulesProviderProps, l as GenesisNavigationModule, m as GenesisNavigationTheme, n as GenesisReanimatedModule, o as GenesisSymbolComponent, p as GenesisSymbolProps, K as KeyboardAvoidingLike, N as NATIVE_ICON_NAMES, q as NativeIconName, S as SF_SYMBOLS, u as useGenesisModules } from './native-modules-Cl3zw3kh.js';
3
+ export { DEFAULT_GALLERY_RATIO, GALLERY_DEFAULTS, GalleryItem, GalleryTileAspect, JustifiedRow, JustifiedTile, galleryItemRatio, justifyRows } from '@marktiderman/genesis-core/gallery';
4
+ export { BrandExtensionsProvider, BrandExtensionsProviderProps, BrandExtensionsValue, MotionHow, MotionSpringConfig, MotionTimingConfig, ThemeMode, ThemeRoleColors, UseMotionOptions, UseThemeRolesOptions, animateMotion, motionSpring, motionTiming, useGenesisExtension, useMotion, useReducedMotion, useThemeMode, useThemeRoles } from './hooks/index.js';
5
+ export { ComposerMode, ComposerTone, InboxItem, InboxSwipeAction, JUMP_SETTLE_MS, MessageTone, ThreadAttachment, ThreadComposer, ThreadLabels, ThreadMessage, ThreadMessageStatus, UseThreadJumpOptions, formatInboxTime, readReceiptFor, useThreadJump } from '@marktiderman/genesis-core/conversation';
6
+ export { I as InboxPage, a as InboxPageProps, b as InboxPageSlotMap, S as SafeAreaEdge, c as ScreenContainer, d as ScreenContainerProps, e as ScreenHeaderProps, f as ScrollEdgeBehavior, g as composeHeaderOptions, h as getInboxPageStackOptions, s as showInboxActions } from './inbox-page-B7_Oi2fS.js';
7
+ export { AppleButtonModuleLike, AppleProviderOptions, AppleSignInButton, AppleSignInButtonProps, AuthBranding, AuthBrandingProps, AuthForm, AuthFormProps, AuthFormValues, AuthScreen, AuthScreenProps, AuthScreenSlotMap, ForgotPasswordLink, GoogleProviderOptions, KEYBOARD_TOOLBAR_HEIGHT, KeyboardScrollProps, KeyboardScrollProvider, KeyboardToolbarProps, NavBarSaveButton, NavBarSaveButtonProps, NavBarSearchBar, NavBarSearchBarProps, NavBarTitle, NavBarTitleProps, NotificationItem, NotificationsPage, NotificationsPageProps, NotificationsPageSlotMap, SettingsPage, SettingsPageDangerousAction, SettingsPageProps, SettingsPageRow, SettingsPageSection, SettingsPageSlotMap, SettingsSubPage, SettingsSubPageProps, SocialAuthProvider, SocialAuthRow, SocialAuthRowProps, ThreadPage, ThreadPageProps, ThreadPageSlotMap, appleProvider, confirmDiscardChanges, defaultStickyHeaderOffset, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, useKeyboardScroll, useKeyboardToolbar } from './layouts/index.js';
6
8
  export { cn } from './utils.js';
7
9
  import 'react';
8
10
  import 'class-variance-authority/types';
9
11
  import 'class-variance-authority';
10
12
  import 'react-native';
13
+ import '@marktiderman/genesis-design-system/tokens/motion';
11
14
  import '@marktiderman/genesis-design-system';
12
15
  import '@marktiderman/genesis-core/slots';
13
16
  import 'clsx';
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
- export { Box, FULL_SCREEN_DARK, Grid, Inline, NativeAccordion, NativeAccordionContent, NativeAccordionItem, NativeAccordionTrigger, NativeChip, NativeChipGroup, NativeCombobox, NativeDialog, NativeDialogContent, NativeDialogDescription, NativeDialogFooter, NativeDialogHeader, NativeDialogTitle, NativeDrawer, NativeDropdownMenu, NativeDropdownMenuContent, NativeDropdownMenuItem, NativeDropdownMenuTrigger, NativeFullScreenModal, NativeGlassSurface, NativeHeaderCard, NativeNumberInput, NativePagination, NativePopover, NativePopoverContent, NativePopoverTrigger, NativeProgress, NativeRadioGroup, NativeRadioGroupItem, NativeRangeSlider, NativeSlider, NativeStepper, NativeTabs, NativeTabsContent, NativeTabsList, NativeTabsTrigger, NativeToastProvider, NativeToggle, NativeTooltip, NativeTooltipContent, NativeTooltipTrigger, Stack, spaceScale, spacingClass, toggleVariants, useLiquidGlass, useReduceTransparency, useToast } from './chunk-LBVD7XXL.js';
2
- export { NativeAlert, NativeAlertDescription, NativeAlertTitle, NativeAvatar, NativeBanner, NativeCard, NativeCardContent, NativeCardDescription, NativeCardFooter, NativeCardHeader, NativeCardTitle, NativeCheckbox, NativeDatePicker, NativeImage, NativeInlineAlert, NativeLabel, NativeSearchBar, NativeSegmentedControl, NativeSelect, NativeSelectContent, NativeSelectItem, NativeSelectTrigger, NativeSeparator, NativeSheet, NativeSheetProvider, NativeSheetScrollView, NativeSkeleton, NativeSwitch, NativeTextarea, NativeTimePicker, alertVariants } from './chunk-GHYUNNNU.js';
3
- export { BrandExtensionsProvider, useGenesisExtension } from './chunk-D5RKSPMH.js';
4
- export { useReducedMotion } from './chunk-7PCWEY6R.js';
5
- export { AppleSignInButton, AuthBranding, AuthForm, AuthScreen, ForgotPasswordLink, KEYBOARD_TOOLBAR_HEIGHT, KeyboardScrollProvider, NotificationsPage, SettingsPage, SettingsSubPage, SocialAuthRow, ThreadPage, appleProvider, confirmDiscardChanges, defaultStickyHeaderOffset, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, readReceiptFor, useKeyboardScroll, useKeyboardToolbar } from './chunk-ABVSSJNT.js';
6
- export { InboxPage, NavBarSaveButton, NavBarSearchBar, NavBarTitle, ScreenContainer, composeHeaderOptions, formatInboxTime, getInboxPageStackOptions, showInboxActions } from './chunk-ONH2PCGH.js';
7
- export { GenesisModulesProvider, NATIVE_ICON_NAMES, NativeBadge, NativeButton, NativeEmptyState, NativeIcon, NativeInput, NativeListItem, NativeListItemDivider, NativeLoadingState, NativeRefreshControl, NativeSectionListHeader, NativeText, SF_SYMBOLS, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, textVariants, useGenesisModules } from './chunk-6KWEAGRD.js';
8
- export { useThemeMode, useThemeRoles } from './chunk-Z3AQYVUA.js';
1
+ export { Box, FULL_SCREEN_DARK, Grid, Inline, LIGHTBOX_DISMISS_DISTANCE, LIGHTBOX_DISMISS_VELOCITY, LIGHTBOX_DOUBLE_TAP_MS, LIGHTBOX_MAX_ZOOM, NativeAccordion, NativeAccordionContent, NativeAccordionItem, NativeAccordionTrigger, NativeChip, NativeChipGroup, NativeCombobox, NativeDialog, NativeDialogContent, NativeDialogDescription, NativeDialogFooter, NativeDialogHeader, NativeDialogTitle, NativeDrawer, NativeDropdownMenu, NativeDropdownMenuContent, NativeDropdownMenuItem, NativeDropdownMenuTrigger, NativeFullScreenModal, NativeGalleryCard, NativeGlassSurface, NativeHeaderCard, NativeLightbox, NativeLiveIndicator, NativeNumberInput, NativePagination, NativePopover, NativePopoverContent, NativePopoverTrigger, NativeProgress, NativeRadioGroup, NativeRadioGroupItem, NativeRangeSlider, NativeRating, NativeSlider, NativeStepper, NativeTabs, NativeTabsContent, NativeTabsList, NativeTabsTrigger, NativeToastProvider, NativeToggle, NativeTooltip, NativeTooltipContent, NativeTooltipTrigger, NativeZoomablePhoto, Stack, defaultNativeLightboxLabels, lightboxPanLimit, lightboxPinchScale, lightboxShouldDismiss, lightboxTouchDistance, nextRating, spaceScale, spacingClass, toggleVariants, useLiquidGlass, useReduceTransparency, useToast } from './chunk-2Z72MYHB.js';
2
+ export { DEFAULT_GALLERY_RATIO, GALLERY_DEFAULTS, NativeAlert, NativeAlertDescription, NativeAlertTitle, NativeAvatar, NativeBanner, NativeCard, NativeCardContent, NativeCardDescription, NativeCardFooter, NativeCardHeader, NativeCardTitle, NativeCheckbox, NativeDatePicker, NativeGalleryGrid, NativeImage, NativeInlineAlert, NativeLabel, NativeSearchBar, NativeSegmentedControl, NativeSelect, NativeSelectContent, NativeSelectItem, NativeSelectTrigger, NativeSeparator, NativeSheet, NativeSheetProvider, NativeSheetScrollView, NativeSwitch, NativeTextarea, NativeTimePicker, alertVariants, galleryItemRatio, justifyRows } from './chunk-NDXNSSM6.js';
3
+ export { BrandExtensionsProvider, JUMP_SETTLE_MS, useGenesisExtension, useThreadJump } from './chunk-ZRQAFFTN.js';
4
+ export { AppleSignInButton, AuthBranding, AuthForm, AuthScreen, ForgotPasswordLink, KEYBOARD_TOOLBAR_HEIGHT, KeyboardScrollProvider, NotificationsPage, SettingsPage, SettingsSubPage, SocialAuthRow, ThreadPage, appleProvider, confirmDiscardChanges, defaultStickyHeaderOffset, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, readReceiptFor, useKeyboardScroll, useKeyboardToolbar } from './chunk-FUMSL7VZ.js';
5
+ export { NativeComposerBar, NativeThreadList, THREAD_AT_BOTTOM_POINTS, threadListMode, threadNearBottom } from './chunk-SEJ6RBP7.js';
6
+ export { InboxPage, NavBarSaveButton, NavBarSearchBar, NavBarTitle, ScreenContainer, composeHeaderOptions, formatInboxTime, getInboxPageStackOptions, showInboxActions } from './chunk-AGTBABAH.js';
7
+ export { GenesisModulesProvider, NATIVE_ICON_NAMES, NativeBadge, NativeButton, NativeEmptyState, NativeIcon, NativeInput, NativeListItem, NativeListItemDivider, NativeLoadingState, NativeRefreshControl, NativeSectionListHeader, NativeSkeleton, NativeText, SF_SYMBOLS, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, textVariants, useGenesisModules } from './chunk-6PGLX6ET.js';
8
+ export { animateMotion, motionSpring, motionTiming, useMotion, useReducedMotion, useThemeMode, useThemeRoles } from './chunk-4OQOJ2OC.js';
9
9
  export { cn } from './chunk-OHZD7KRO.js';
10
10
  import './chunk-DGUM43GV.js';
11
11
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,10 @@
1
- import { g as ScreenHeaderProps } from '../inbox-page-BEarNEIP.js';
2
- export { I as InboxItem, a as InboxPage, b as InboxPageProps, c as InboxPageSlotMap, d as InboxSwipeAction, S as SafeAreaEdge, e as ScreenContainer, f as ScreenContainerProps, h as ScrollEdgeBehavior, i as composeHeaderOptions, j as formatInboxTime, k as getInboxPageStackOptions, s as showInboxActions } from '../inbox-page-BEarNEIP.js';
1
+ import { e as ScreenHeaderProps } from '../inbox-page-B7_Oi2fS.js';
2
+ export { I as InboxPage, a as InboxPageProps, b as InboxPageSlotMap, S as SafeAreaEdge, c as ScreenContainer, d as ScreenContainerProps, f as ScrollEdgeBehavior, g as composeHeaderOptions, h as getInboxPageStackOptions, s as showInboxActions } from '../inbox-page-B7_Oi2fS.js';
3
3
  import * as react from 'react';
4
4
  import { ReactNode, ComponentType } from 'react';
5
5
  import { Slots, SlotPropsFor } from '@marktiderman/genesis-core/slots';
6
+ import { ThreadMessage, ThreadComposer, ThreadLabels, ThreadAttachment } from '@marktiderman/genesis-core/conversation';
7
+ export { InboxItem, InboxSwipeAction, MessageTone, ThreadAttachment, ThreadComposer, ThreadLabels, ThreadMessage, ThreadMessageStatus, formatInboxTime, readReceiptFor } from '@marktiderman/genesis-core/conversation';
6
8
  import { ViewStyle } from 'react-native';
7
9
 
8
10
  interface NavBarSaveButtonProps {
@@ -285,54 +287,17 @@ declare function iosCompactNavigationBarHeight(version: number | string): number
285
287
  declare function defaultStickyHeaderOffset(os: string, version: number | string, safeAreaTop: number): number;
286
288
  declare function NotificationsPage({ items, refreshing, onRefresh, emptyState, emptyTitle, emptyBody, className, testID, slots, slotProps, stickyHeaderOffset, }: NotificationsPageProps): react.JSX.Element;
287
289
 
288
- interface ThreadAttachment {
289
- id: string;
290
- /** An image URI (a signed URL, a file:// path). */
291
- uri: string;
292
- width?: number;
293
- height?: number;
294
- accessibilityLabel?: string;
295
- onPress?: () => void;
296
- }
297
- interface ThreadMessage {
298
- id: string;
299
- body: string;
300
- /** Sent by the person using the app: trailing side, tint. */
301
- mine: boolean;
302
- /** Shown over theirs ("Support"); never over mine. */
303
- authorName?: string;
304
- timestamp: string | Date;
305
- /** An optimistic message: `sending`, then `sent`, or `failed` with `onRetry`. */
306
- status?: "sending" | "sent" | "failed";
307
- onRetry?: () => void;
308
- attachments?: ThreadAttachment[];
309
- }
310
- interface ThreadComposer {
311
- value: string;
312
- onChangeText: (text: string) => void;
313
- onSend: () => void;
314
- /** A send is in flight: the button spins and won't send twice. */
315
- sending?: boolean;
316
- placeholder?: string;
317
- sendLabel?: string;
318
- /** Turns the send button off (besides an empty or blank value). */
319
- disabled?: boolean;
320
- maxLength?: number;
321
- }
322
- /** What the default parts say. */
323
- interface ThreadLabels {
324
- /** Who "mine" is, to VoiceOver. */
325
- you: string;
326
- sending: string;
327
- notSent: string;
328
- retryHint: string;
329
- }
330
290
  type ThreadPageSlotMap = {
331
291
  message: ThreadMessage & {
332
292
  testID: string;
333
293
  timeLabel: string;
334
294
  showReadReceipt: boolean;
335
- labels: ThreadLabels;
295
+ labels: ThreadLabels; /** A jump just landed here (two seconds). */
296
+ highlighted: boolean;
297
+ };
298
+ event: ThreadMessage & {
299
+ testID: string;
300
+ timeLabel: string;
336
301
  };
337
302
  attachment: ThreadAttachment & {
338
303
  testID: string;
@@ -342,6 +307,10 @@ type ThreadPageSlotMap = {
342
307
  label: string;
343
308
  testID: string;
344
309
  };
310
+ unreadDivider: {
311
+ label: string;
312
+ testID: string;
313
+ };
345
314
  /** `accessory` is the `composerAccessory` slot, already rendered. */
346
315
  composer: ThreadComposer & {
347
316
  testID: string;
@@ -350,6 +319,10 @@ type ThreadPageSlotMap = {
350
319
  composerAccessory: {
351
320
  testID: string;
352
321
  };
322
+ /** Pinned above the list: a ticket's status, assignee and priority, and "more". */
323
+ headerRegion: {
324
+ testID: string;
325
+ };
353
326
  header: {
354
327
  testID: string;
355
328
  };
@@ -372,7 +345,7 @@ interface ThreadPageProps extends ScreenHeaderProps {
372
345
  composer: ThreadComposer | null;
373
346
  /** Shown instead of the composer when it is `null` ("This conversation is closed"). */
374
347
  closedNotice?: string;
375
- /** Above the messages (what the thread is about). Prefer `slots.header` for a component. */
348
+ /** Above the first message, scrolling with them. Prefer `slots.header` for a component. */
376
349
  header?: ReactNode;
377
350
  /**
378
351
  * When the other side last read the thread. My newest message sent before
@@ -380,11 +353,29 @@ interface ThreadPageProps extends ScreenHeaderProps {
380
353
  */
381
354
  readAt?: string | Date | null;
382
355
  readLabel?: string;
383
- /** There are older messages: shows a "load earlier" button at the top. */
356
+ /** There are older messages: they load near the top, and a "load earlier" button shows. */
384
357
  hasEarlier?: boolean;
385
358
  onLoadEarlier?: () => void;
386
359
  loadingEarlier?: boolean;
387
360
  earlierLabel?: string;
361
+ /** The first message the reader hasn't seen: a "New messages" divider above it. */
362
+ firstUnreadId?: string | null;
363
+ /** Go to this message (a search result, a pinned one), loading with `onLoadUntil` until it's here. */
364
+ jumpTo?: string | null;
365
+ /** Load earlier pages until the message is held; resolve false when it can't be found. */
366
+ onLoadUntil?: (id: string) => Promise<boolean>;
367
+ /** A `jumpTo` message couldn't be found (the list goes back to the newest). Default: VoiceOver says `labels.messageGone`. */
368
+ onJumpFailed?: (id: string) => void;
369
+ /** The first page is loading: a skeleton instead of the empty state, and a jump waits for it. */
370
+ loading?: boolean;
371
+ /** Fresher rows are on their way (the cache showed first): a quiet "Updating…" line under the header region, announced once. */
372
+ updating?: boolean;
373
+ /**
374
+ * For the keyboard. With the keyboard-controller module the page finds its own place on screen
375
+ * (`automaticOffset`) and this is extra space (default 0); with React Native's, it's where the
376
+ * page starts below the window's top (default 100 on iOS: a standard header).
377
+ */
378
+ keyboardVerticalOffset?: number;
388
379
  emptyTitle?: string;
389
380
  emptyBody?: string;
390
381
  formatTime?: (date: Date) => string;
@@ -399,9 +390,7 @@ interface ThreadPageProps extends ScreenHeaderProps {
399
390
  declare function getThreadPageStackOptions(props: ScreenHeaderProps & {
400
391
  headerTitle?: string;
401
392
  }): Record<string, unknown>;
402
- /** The newest of my messages the other side has read, or null. */
403
- declare function readReceiptFor(messages: readonly ThreadMessage[], readAt: string | Date | null | undefined): string | null;
404
- declare function ThreadPage({ messages, composer, closedNotice, header, readAt, readLabel, hasEarlier, onLoadEarlier, loadingEarlier, earlierLabel, emptyTitle, emptyBody, formatTime, labels: labelOverrides, slots, slotProps, testID, }: ThreadPageProps): react.JSX.Element;
393
+ declare function ThreadPage({ messages, composer, closedNotice, header, readAt, readLabel, hasEarlier, onLoadEarlier, loadingEarlier, earlierLabel, firstUnreadId, jumpTo, onLoadUntil, onJumpFailed, loading, updating, keyboardVerticalOffset, emptyTitle, emptyBody, formatTime, labels: labelOverrides, slots, slotProps, testID, }: ThreadPageProps): react.JSX.Element;
405
394
 
406
395
  interface AuthBrandingProps {
407
396
  /** Brand mark (logo node). */
@@ -677,4 +666,4 @@ interface GoogleProviderOptions {
677
666
  */
678
667
  declare function googleProvider({ onPress, label, icon, disabled, enabled }: GoogleProviderOptions): SocialAuthProvider | null;
679
668
 
680
- export { type AppleButtonModuleLike, type AppleProviderOptions, AppleSignInButton, type AppleSignInButtonProps, AuthBranding, type AuthBrandingProps, AuthForm, type AuthFormProps, type AuthFormValues, AuthScreen, type AuthScreenProps, type AuthScreenSlotMap, ForgotPasswordLink, type GoogleProviderOptions, KEYBOARD_TOOLBAR_HEIGHT, type KeyboardScrollProps, KeyboardScrollProvider, type KeyboardToolbarProps, NavBarSaveButton, type NavBarSaveButtonProps, NavBarSearchBar, type NavBarSearchBarProps, NavBarTitle, type NavBarTitleProps, type NotificationItem, NotificationsPage, type NotificationsPageProps, type NotificationsPageSlotMap, ScreenHeaderProps, SettingsPage, type SettingsPageDangerousAction, type SettingsPageProps, type SettingsPageRow, type SettingsPageSection, type SettingsPageSlotMap, SettingsSubPage, type SettingsSubPageProps, type SocialAuthProvider, SocialAuthRow, type SocialAuthRowProps, type ThreadAttachment, type ThreadComposer, type ThreadLabels, type ThreadMessage, ThreadPage, type ThreadPageProps, type ThreadPageSlotMap, appleProvider, confirmDiscardChanges, defaultStickyHeaderOffset, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, readReceiptFor, useKeyboardScroll, useKeyboardToolbar };
669
+ export { type AppleButtonModuleLike, type AppleProviderOptions, AppleSignInButton, type AppleSignInButtonProps, AuthBranding, type AuthBrandingProps, AuthForm, type AuthFormProps, type AuthFormValues, AuthScreen, type AuthScreenProps, type AuthScreenSlotMap, ForgotPasswordLink, type GoogleProviderOptions, KEYBOARD_TOOLBAR_HEIGHT, type KeyboardScrollProps, KeyboardScrollProvider, type KeyboardToolbarProps, NavBarSaveButton, type NavBarSaveButtonProps, NavBarSearchBar, type NavBarSearchBarProps, NavBarTitle, type NavBarTitleProps, type NotificationItem, NotificationsPage, type NotificationsPageProps, type NotificationsPageSlotMap, ScreenHeaderProps, SettingsPage, type SettingsPageDangerousAction, type SettingsPageProps, type SettingsPageRow, type SettingsPageSection, type SettingsPageSlotMap, SettingsSubPage, type SettingsSubPageProps, type SocialAuthProvider, SocialAuthRow, type SocialAuthRowProps, ThreadPage, type ThreadPageProps, type ThreadPageSlotMap, appleProvider, confirmDiscardChanges, defaultStickyHeaderOffset, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, useKeyboardScroll, useKeyboardToolbar };
@@ -1,7 +1,8 @@
1
- export { AppleSignInButton, AuthBranding, AuthForm, AuthScreen, ForgotPasswordLink, KEYBOARD_TOOLBAR_HEIGHT, KeyboardScrollProvider, NotificationsPage, SettingsPage, SettingsSubPage, SocialAuthRow, ThreadPage, appleProvider, confirmDiscardChanges, defaultStickyHeaderOffset, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, readReceiptFor, useKeyboardScroll, useKeyboardToolbar } from '../chunk-ABVSSJNT.js';
2
- export { InboxPage, NavBarSaveButton, NavBarSearchBar, NavBarTitle, ScreenContainer, composeHeaderOptions, formatInboxTime, getInboxPageStackOptions, showInboxActions } from '../chunk-ONH2PCGH.js';
3
- import '../chunk-6KWEAGRD.js';
4
- import '../chunk-Z3AQYVUA.js';
1
+ export { AppleSignInButton, AuthBranding, AuthForm, AuthScreen, ForgotPasswordLink, KEYBOARD_TOOLBAR_HEIGHT, KeyboardScrollProvider, NotificationsPage, SettingsPage, SettingsSubPage, SocialAuthRow, ThreadPage, appleProvider, confirmDiscardChanges, defaultStickyHeaderOffset, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, readReceiptFor, useKeyboardScroll, useKeyboardToolbar } from '../chunk-FUMSL7VZ.js';
2
+ import '../chunk-SEJ6RBP7.js';
3
+ export { InboxPage, NavBarSaveButton, NavBarSearchBar, NavBarTitle, ScreenContainer, composeHeaderOptions, formatInboxTime, getInboxPageStackOptions, showInboxActions } from '../chunk-AGTBABAH.js';
4
+ import '../chunk-6PGLX6ET.js';
5
+ import '../chunk-4OQOJ2OC.js';
5
6
  import '../chunk-OHZD7KRO.js';
6
7
  import '../chunk-DGUM43GV.js';
7
8
  //# sourceMappingURL=index.js.map
@@ -13,11 +13,13 @@ import { ColorValue } from 'react-native';
13
13
  declare const SF_SYMBOLS: {
14
14
  readonly "arrow-left": "arrow.left";
15
15
  readonly "arrow-up": "arrow.up";
16
+ readonly aperture: "camera.aperture";
16
17
  readonly bell: "bell";
17
18
  readonly calendar: "calendar";
18
19
  readonly camera: "camera";
19
20
  readonly "camera-flip": "arrow.triangle.2.circlepath.camera";
20
21
  readonly check: "checkmark";
22
+ readonly clapperboard: "movieclapper";
21
23
  readonly "chevron-down": "chevron.down";
22
24
  readonly "chevron-left": "chevron.left";
23
25
  readonly "chevron-right": "chevron.right";
@@ -33,6 +35,7 @@ declare const SF_SYMBOLS: {
33
35
  readonly "external-link": "arrow.up.right.square";
34
36
  readonly file: "doc";
35
37
  readonly filter: "line.3.horizontal.decrease";
38
+ readonly "folder-plus": "folder.badge.plus";
36
39
  readonly heart: "heart";
37
40
  readonly home: "house";
38
41
  readonly image: "photo";
@@ -40,6 +43,7 @@ declare const SF_SYMBOLS: {
40
43
  readonly lock: "lock";
41
44
  readonly "log-out": "rectangle.portrait.and.arrow.right";
42
45
  readonly mail: "envelope";
46
+ readonly maximize: "arrow.up.left.and.arrow.down.right";
43
47
  readonly menu: "line.3.horizontal";
44
48
  readonly message: "bubble.left";
45
49
  readonly mic: "mic";
@@ -50,10 +54,12 @@ declare const SF_SYMBOLS: {
50
54
  readonly pin: "pin";
51
55
  readonly play: "play.fill";
52
56
  readonly plus: "plus";
57
+ readonly radio: "dot.radiowaves.left.and.right";
53
58
  readonly refresh: "arrow.clockwise";
54
59
  readonly reply: "arrowshape.turn.up.left";
55
60
  readonly search: "magnifyingglass";
56
61
  readonly settings: "gearshape";
62
+ readonly "settings-2": "slider.horizontal.3";
57
63
  readonly share: "square.and.arrow.up";
58
64
  readonly smile: "face.smiling";
59
65
  readonly star: "star";
@@ -130,6 +136,14 @@ interface GenesisReanimatedModule {
130
136
  easing?: unknown;
131
137
  reduceMotion?: unknown;
132
138
  }, callback?: (finished?: boolean) => void) => number;
139
+ /** Optional so older injected modules and test fakes still fit; `animateMotion` falls back to `withTiming`. */
140
+ withSpring?: (toValue: number, config?: {
141
+ damping?: number;
142
+ stiffness?: number;
143
+ mass?: number;
144
+ velocity?: number;
145
+ reduceMotion?: unknown;
146
+ }, callback?: (finished?: boolean) => void) => number;
133
147
  withRepeat: (animation: number, numberOfReps?: number, reverse?: boolean, callback?: unknown, reduceMotion?: unknown) => number;
134
148
  cancelAnimation: (value: {
135
149
  value: unknown;
@@ -139,6 +153,7 @@ interface GenesisReanimatedModule {
139
153
  ease: unknown;
140
154
  out: (easing: unknown) => unknown;
141
155
  cubic: unknown;
156
+ bezier?: (x1: number, y1: number, x2: number, y2: number) => unknown;
142
157
  };
143
158
  ReduceMotion?: {
144
159
  System: unknown;
@@ -180,6 +195,7 @@ type GenesisSymbolComponent = ComponentType<GenesisSymbolProps>;
180
195
  type GenesisIconComponent = ComponentType<{
181
196
  size?: number;
182
197
  color?: ColorValue;
198
+ fill?: ColorValue;
183
199
  strokeWidth?: number;
184
200
  testID?: string;
185
201
  }>;
@@ -225,6 +241,14 @@ interface GenesisNavigationModule {
225
241
  DarkTheme: GenesisNavigationTheme;
226
242
  }
227
243
  /** Every optional native module Genesis components can use. Each is optional on its own. */
244
+ /** react-native-keyboard-controller's `KeyboardAvoidingView`, written structurally (the same shape as genesis-chat's). */
245
+ type KeyboardAvoidingLike = ComponentType<{
246
+ behavior?: "height" | "padding" | "position" | "translate-with-padding";
247
+ keyboardVerticalOffset?: number;
248
+ automaticOffset?: boolean;
249
+ children?: ReactNode;
250
+ testID?: string;
251
+ }>;
228
252
  interface GenesisModules {
229
253
  list?: GenesisListComponent;
230
254
  image?: GenesisImageComponent;
@@ -234,6 +258,8 @@ interface GenesisModules {
234
258
  icons?: GenesisIconSet;
235
259
  datePicker?: GenesisDatePickerComponent;
236
260
  navigation?: GenesisNavigationModule;
261
+ /** react-native-keyboard-controller's `KeyboardAvoidingView` (it takes `behavior: "translate-with-padding"`). */
262
+ keyboardAvoidingView?: KeyboardAvoidingLike;
237
263
  }
238
264
  interface GenesisModulesProviderProps {
239
265
  modules: GenesisModules;
@@ -250,4 +276,4 @@ declare function GenesisModulesProvider({ modules, children }: GenesisModulesPro
250
276
  /** The modules given to the nearest `GenesisModulesProvider`; `{}` without one. */
251
277
  declare function useGenesisModules(): GenesisModules;
252
278
 
253
- export { type GenesisDatePickerComponent as G, NATIVE_ICON_NAMES as N, SF_SYMBOLS as S, type GenesisDatePickerProps as a, type GenesisGlassModule as b, type GenesisIconComponent as c, type GenesisIconSet as d, type GenesisImageComponent as e, type GenesisImageProps as f, type GenesisListComponent as g, type GenesisListProps as h, type GenesisModules as i, GenesisModulesProvider as j, type GenesisModulesProviderProps as k, type GenesisNavigationModule as l, type GenesisNavigationTheme as m, type GenesisReanimatedModule as n, type GenesisSymbolComponent as o, type GenesisSymbolProps as p, type NativeIconName as q, useGenesisModules as u };
279
+ export { type GenesisDatePickerComponent as G, type KeyboardAvoidingLike as K, NATIVE_ICON_NAMES as N, SF_SYMBOLS as S, type GenesisDatePickerProps as a, type GenesisGlassModule as b, type GenesisIconComponent as c, type GenesisIconSet as d, type GenesisImageComponent as e, type GenesisImageProps as f, type GenesisListComponent as g, type GenesisListProps as h, type GenesisModules as i, GenesisModulesProvider as j, type GenesisModulesProviderProps as k, type GenesisNavigationModule as l, type GenesisNavigationTheme as m, type GenesisReanimatedModule as n, type GenesisSymbolComponent as o, type GenesisSymbolProps as p, type NativeIconName as q, useGenesisModules as u };