@marktiderman/genesis-ui-native 3.7.0 → 3.8.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 (87) hide show
  1. package/README.md +4 -1
  2. package/dist/{chunk-KH2RVAI5.js → chunk-DHONOH6K.js} +24 -210
  3. package/dist/chunk-DHONOH6K.js.map +1 -0
  4. package/dist/{chunk-O4BMDV7I.js → chunk-FGIIBON3.js} +333 -21
  5. package/dist/chunk-FGIIBON3.js.map +1 -0
  6. package/dist/{chunk-YWDDDYDI.js → chunk-FOJJB6AB.js} +2 -2
  7. package/dist/{chunk-YWDDDYDI.js.map → chunk-FOJJB6AB.js.map} +1 -1
  8. package/dist/{chunk-IXC3LO2K.js → chunk-JZ7RAGDQ.js} +44 -36
  9. package/dist/chunk-JZ7RAGDQ.js.map +1 -0
  10. package/dist/{chunk-RTYO24SC.js → chunk-PWS2HLDE.js} +63 -31
  11. package/dist/chunk-PWS2HLDE.js.map +1 -0
  12. package/dist/{chunk-3KFUS7O6.js → chunk-PWYMRUAK.js} +43 -30
  13. package/dist/chunk-PWYMRUAK.js.map +1 -0
  14. package/dist/{chunk-GBNIBHSU.js → chunk-T7FEVT62.js} +53 -12
  15. package/dist/chunk-T7FEVT62.js.map +1 -0
  16. package/dist/{chunk-7NDKIIOT.js → chunk-UZCJDMGE.js} +353 -19
  17. package/dist/chunk-UZCJDMGE.js.map +1 -0
  18. package/dist/components/index.d.ts +229 -23
  19. package/dist/components/index.js +5 -6
  20. package/dist/data/index.d.ts +2 -1
  21. package/dist/data/index.js +7 -12
  22. package/dist/data/index.js.map +1 -1
  23. package/dist/hooks/index.d.ts +7 -3
  24. package/dist/hooks/index.js +2 -3
  25. package/dist/icons/lucide.d.ts +1 -1
  26. package/dist/icons/lucide.js +13 -3
  27. package/dist/icons/lucide.js.map +1 -1
  28. package/dist/{inbox-page-B7_Oi2fS.d.ts → inbox-page-BGqR_cBs.d.ts} +4 -1
  29. package/dist/index.d.ts +4 -4
  30. package/dist/index.js +8 -9
  31. package/dist/layouts/index.d.ts +12 -3
  32. package/dist/layouts/index.js +5 -6
  33. package/dist/{native-modules-DEJJQhDx.d.ts → native-modules-CeAaO2Dh.d.ts} +26 -2
  34. package/package.json +49 -1
  35. package/src/__tests__/native-modules-lists.test.tsx +1 -0
  36. package/src/components/__tests__/bulk-bar.test.tsx +36 -0
  37. package/src/components/__tests__/button-haptic.test.tsx +22 -0
  38. package/src/components/__tests__/composer-bar.test.tsx +116 -1
  39. package/src/components/__tests__/gallery-grid.test.tsx +2 -2
  40. package/src/components/__tests__/library-round-5.test.tsx +121 -0
  41. package/src/components/__tests__/share-sheet.test.tsx +47 -0
  42. package/src/components/__tests__/swipe-row-context-menu.test.tsx +215 -0
  43. package/src/components/__tests__/tab-bar.test.tsx +43 -0
  44. package/src/components/__tests__/thread-list.test.tsx +137 -0
  45. package/src/components/__tests__/tier-badge.test.tsx +57 -0
  46. package/src/components/__tests__/whats-new-sheet.test.tsx +29 -0
  47. package/src/components/bulk-bar.tsx +91 -0
  48. package/src/components/button.tsx +74 -35
  49. package/src/components/choice-card.tsx +104 -0
  50. package/src/components/composer-bar.tsx +20 -19
  51. package/src/components/context-menu.tsx +101 -0
  52. package/src/components/gallery-grid.tsx +10 -4
  53. package/src/components/index.ts +18 -1
  54. package/src/components/inline-alert.tsx +36 -1
  55. package/src/components/input.tsx +3 -0
  56. package/src/components/progress.tsx +24 -2
  57. package/src/components/rating.tsx +35 -16
  58. package/src/components/share-sheet.tsx +127 -0
  59. package/src/components/sheet.tsx +9 -1
  60. package/src/components/swipe-row.tsx +74 -0
  61. package/src/components/tab-bar.tsx +133 -0
  62. package/src/components/tabs.tsx +2 -0
  63. package/src/components/text.tsx +3 -0
  64. package/src/components/textarea.tsx +3 -0
  65. package/src/components/thread-list.tsx +48 -23
  66. package/src/components/tier-badge.tsx +74 -0
  67. package/src/components/whats-new-sheet.tsx +89 -0
  68. package/src/data/resource-view/NativeRecordView.tsx +3 -8
  69. package/src/data/resource-view/use-native-resource-view.ts +2 -2
  70. package/src/hooks/index.ts +1 -1
  71. package/src/hooks/use-theme-roles.ts +3 -0
  72. package/src/icon-names.ts +12 -2
  73. package/src/icons/lucide.ts +27 -7
  74. package/src/layouts/__tests__/inbox-page.test.tsx +26 -7
  75. package/src/layouts/__tests__/thread-page.test.tsx +89 -2
  76. package/src/layouts/inbox-page.tsx +28 -12
  77. package/src/layouts/thread-page.tsx +69 -8
  78. package/src/native-modules.tsx +16 -0
  79. package/dist/chunk-3KFUS7O6.js.map +0 -1
  80. package/dist/chunk-7NDKIIOT.js.map +0 -1
  81. package/dist/chunk-CAI7LGN6.js +0 -39
  82. package/dist/chunk-CAI7LGN6.js.map +0 -1
  83. package/dist/chunk-GBNIBHSU.js.map +0 -1
  84. package/dist/chunk-IXC3LO2K.js.map +0 -1
  85. package/dist/chunk-KH2RVAI5.js.map +0 -1
  86. package/dist/chunk-O4BMDV7I.js.map +0 -1
  87. package/dist/chunk-RTYO24SC.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  export { JUMP_SETTLE_MS, UseThreadJumpOptions, useThreadJump } from '@marktiderman/genesis-core/conversation';
2
- import { o as GenesisReanimatedModule, H as HapticKind } from '../native-modules-DEJJQhDx.js';
3
- export { c as GenesisHapticsModule, s as playHaptic, t as useHaptics } from '../native-modules-DEJJQhDx.js';
2
+ import { o as GenesisReanimatedModule, H as HapticKind } from '../native-modules-CeAaO2Dh.js';
3
+ export { c as GenesisHapticsModule, s as playHaptic, t as useHaptics } from '../native-modules-CeAaO2Dh.js';
4
4
  import { Animated, ColorValue } from 'react-native';
5
5
  import { MotionSprings, MotionDurations, MotionEasings, MotionLevel, MotionTokens } from '@marktiderman/genesis-design-system/tokens/motion';
6
6
  import { ThemeRole, BrandExtensions } from '@marktiderman/genesis-design-system';
@@ -104,6 +104,10 @@ interface UseThemeRolesOptions {
104
104
  materialYou?: boolean;
105
105
  }
106
106
  declare function useThemeRoles(options?: UseThemeRolesOptions): ThemeRoleColors;
107
+ /** The colour of a message you sent, on every thread on the phone. Its text is `text-primary-foreground`. */
108
+ declare const sentBubbleColor: <C>(roles: {
109
+ tint: C;
110
+ }) => C;
107
111
 
108
112
  /**
109
113
  * Runtime shape passed to `<BrandExtensionsProvider>`. Consumers augment
@@ -126,4 +130,4 @@ declare function BrandExtensionsProvider({ value, children, }: BrandExtensionsPr
126
130
  */
127
131
  declare function useGenesisExtension<K extends keyof BrandExtensions>(key: K): BrandExtensions[K] | undefined;
128
132
 
129
- export { BrandExtensionsProvider, type BrandExtensionsProviderProps, type BrandExtensionsValue, HapticKind, type MotionHow, type MotionSpringConfig, type MotionTimingConfig, type PressFeedback, type PressFeedbackOptions, type ThemeMode, type ThemeRoleColors, type UseMotionOptions, type UseThemeRolesOptions, animateMotion, motionSpring, motionTiming, useGenesisExtension, useMotion, usePressFeedback, useReducedMotion, useThemeMode, useThemeRoles };
133
+ export { BrandExtensionsProvider, type BrandExtensionsProviderProps, type BrandExtensionsValue, HapticKind, type MotionHow, type MotionSpringConfig, type MotionTimingConfig, type PressFeedback, type PressFeedbackOptions, type ThemeMode, type ThemeRoleColors, type UseMotionOptions, type UseThemeRolesOptions, animateMotion, motionSpring, motionTiming, sentBubbleColor, useGenesisExtension, useMotion, usePressFeedback, useReducedMotion, useThemeMode, useThemeRoles };
@@ -1,6 +1,5 @@
1
- export { BrandExtensionsProvider, JUMP_SETTLE_MS, useGenesisExtension, useThreadJump } from '../chunk-YWDDDYDI.js';
2
- export { usePressFeedback } from '../chunk-CAI7LGN6.js';
3
- export { animateMotion, motionSpring, motionTiming, playHaptic, useHaptics, useMotion, useReducedMotion, useThemeMode, useThemeRoles } from '../chunk-RTYO24SC.js';
1
+ export { BrandExtensionsProvider, JUMP_SETTLE_MS, useGenesisExtension, useThreadJump } from '../chunk-FOJJB6AB.js';
2
+ export { animateMotion, motionSpring, motionTiming, playHaptic, sentBubbleColor, useHaptics, useMotion, usePressFeedback, useReducedMotion, useThemeMode, useThemeRoles } from '../chunk-PWS2HLDE.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 { r as NativeIconName, d as GenesisIconComponent } from '../native-modules-DEJJQhDx.js';
1
+ import { r as NativeIconName, d as GenesisIconComponent } from '../native-modules-CeAaO2Dh.js';
2
2
  import 'react';
3
3
  import 'react-native';
4
4
 
@@ -1,20 +1,20 @@
1
1
  import '../chunk-DGUM43GV.js';
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';
2
+ import { TriangleAlert, VolumeX, Volume2, Video, User, Upload, Undo2, Trash2, Table, CircleCheck, Square, Star, ArrowUpDown, Smile, Share, Settings2, Settings, Search, Reply, RefreshCw, Redo2, Radio, Plus, Play, Pin, Pause, Paperclip, Ellipsis, Minus, Mic, MessageCircle, Menu, Maximize, Mail, LogOut, Lock, List, Link, Info, Image, House, Heart, GripVertical, LayoutGrid, FolderPlus, Funnel, File, Eye, ExternalLink, Maximize2, CircleX, Pencil, Download, Copy, SquarePen, X, Clock, Clapperboard, ChevronUp, ChevronRight, ChevronLeft, ChevronDown, Check, SwitchCamera, Camera, Calendar, Bell, ArrowUp, ArrowLeft, Aperture } from 'lucide-react-native';
3
3
 
4
4
  var lucideIcons = {
5
+ aperture: Aperture,
5
6
  "arrow-left": ArrowLeft,
6
7
  "arrow-up": ArrowUp,
7
- aperture: Aperture,
8
8
  bell: Bell,
9
9
  calendar: Calendar,
10
10
  camera: Camera,
11
11
  "camera-flip": SwitchCamera,
12
12
  check: Check,
13
- clapperboard: Clapperboard,
14
13
  "chevron-down": ChevronDown,
15
14
  "chevron-left": ChevronLeft,
16
15
  "chevron-right": ChevronRight,
17
16
  "chevron-up": ChevronUp,
17
+ clapperboard: Clapperboard,
18
18
  clock: Clock,
19
19
  close: X,
20
20
  compose: SquarePen,
@@ -24,13 +24,18 @@ var lucideIcons = {
24
24
  error: CircleX,
25
25
  expand: Maximize2,
26
26
  "external-link": ExternalLink,
27
+ eye: Eye,
27
28
  file: File,
28
29
  filter: Funnel,
29
30
  "folder-plus": FolderPlus,
31
+ grid: LayoutGrid,
32
+ grip: GripVertical,
30
33
  heart: Heart,
31
34
  home: House,
32
35
  image: Image,
33
36
  info: Info,
37
+ link: Link,
38
+ list: List,
34
39
  lock: Lock,
35
40
  "log-out": LogOut,
36
41
  mail: Mail,
@@ -46,6 +51,7 @@ var lucideIcons = {
46
51
  play: Play,
47
52
  plus: Plus,
48
53
  radio: Radio,
54
+ redo: Redo2,
49
55
  refresh: RefreshCw,
50
56
  reply: Reply,
51
57
  search: Search,
@@ -53,10 +59,14 @@ var lucideIcons = {
53
59
  "settings-2": Settings2,
54
60
  share: Share,
55
61
  smile: Smile,
62
+ sort: ArrowUpDown,
56
63
  star: Star,
57
64
  stop: Square,
58
65
  success: CircleCheck,
66
+ table: Table,
59
67
  trash: Trash2,
68
+ undo: Undo2,
69
+ upload: Upload,
60
70
  user: User,
61
71
  video: Video,
62
72
  volume: Volume2,
@@ -1 +1 @@
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"]}
1
+ {"version":3,"sources":["../../src/icons/lucide.ts"],"names":[],"mappings":";;;AAqFO,IAAM,WAAA,GAA4D;AAAA,EACvE,QAAA,EAAU,QAAA;AAAA,EACV,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,YAAA,EAAc,YAAA;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,GAAA,EAAK,GAAA;AAAA,EACL,IAAA,EAAM,IAAA;AAAA,EACN,MAAA,EAAQ,MAAA;AAAA,EACR,aAAA,EAAe,UAAA;AAAA,EACf,IAAA,EAAM,UAAA;AAAA,EACN,IAAA,EAAM,YAAA;AAAA,EACN,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,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,IAAA,EAAM,KAAA;AAAA,EACN,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,WAAA;AAAA,EACN,IAAA,EAAM,IAAA;AAAA,EACN,IAAA,EAAM,MAAA;AAAA,EACN,OAAA,EAAS,WAAA;AAAA,EACT,KAAA,EAAO,KAAA;AAAA,EACP,KAAA,EAAO,MAAA;AAAA,EACP,IAAA,EAAM,KAAA;AAAA,EACN,MAAA,EAAQ,MAAA;AAAA,EACR,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 ArrowUpDown,\n Bell,\n Calendar,\n Camera,\n Check,\n ChevronDown,\n ChevronLeft,\n ChevronRight,\n ChevronUp,\n CircleCheck,\n CircleX,\n Clapperboard,\n Clock,\n Copy,\n Download,\n Ellipsis,\n ExternalLink,\n Eye,\n File,\n FolderPlus,\n Funnel,\n GripVertical,\n Heart,\n House,\n Image,\n Info,\n LayoutGrid,\n Link,\n List,\n Lock,\n LogOut,\n Mail,\n Maximize,\n Maximize2,\n Menu,\n MessageCircle,\n Mic,\n Minus,\n Paperclip,\n Pause,\n Pencil,\n Pin,\n Play,\n Plus,\n Radio,\n Redo2,\n RefreshCw,\n Reply,\n Search,\n Settings,\n Settings2,\n Share,\n Smile,\n Square,\n SquarePen,\n Star,\n SwitchCamera,\n Table,\n Trash2,\n TriangleAlert,\n Undo2,\n Upload,\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 aperture: Aperture,\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 clapperboard: Clapperboard,\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 eye: Eye,\n file: File,\n filter: Funnel,\n \"folder-plus\": FolderPlus,\n grid: LayoutGrid,\n grip: GripVertical,\n heart: Heart,\n home: House,\n image: Image,\n info: Info,\n link: Link,\n list: List,\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 redo: Redo2,\n refresh: RefreshCw,\n reply: Reply,\n search: Search,\n settings: Settings,\n \"settings-2\": Settings2,\n share: Share,\n smile: Smile,\n sort: ArrowUpDown,\n star: Star,\n stop: Square,\n success: CircleCheck,\n table: Table,\n trash: Trash2,\n undo: Undo2,\n upload: Upload,\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"]}
@@ -161,7 +161,10 @@ declare function getInboxPageStackOptions(props: ScreenHeaderProps & {
161
161
  headerTitle?: string;
162
162
  }): Record<string, unknown>;
163
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;
164
- /** Opens a row's actions as a menu (long press). */
164
+ /**
165
+ * Opens a row's actions as the system alert. `InboxPage` now opens `NativeContextMenu`; `NativeResourceView`
166
+ * still uses this.
167
+ */
165
168
  declare function showInboxActions(title: string, actions: InboxSwipeAction[], cancelLabel?: string): void;
166
169
 
167
170
  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,9 +1,9 @@
1
- export { Box, BoxBackground, BoxProps, ComposerSendAction, 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 GenesisHapticsModule, d as GenesisIconComponent, e as GenesisIconSet, f as GenesisImageComponent, g as GenesisImageProps, h as GenesisListComponent, i as GenesisListProps, j as GenesisModules, k as GenesisModulesProvider, l as GenesisModulesProviderProps, m as GenesisNavigationModule, n as GenesisNavigationTheme, o as GenesisReanimatedModule, p as GenesisSymbolComponent, q as GenesisSymbolProps, H as HapticKind, K as KeyboardAvoidingLike, N as NATIVE_ICON_NAMES, r as NativeIconName, S as SF_SYMBOLS, s as playHaptic, u as useGenesisModules, t as useHaptics } from './native-modules-DEJJQhDx.js';
1
+ export { Box, BoxBackground, BoxProps, ComposerSendAction, 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, NativeBulkAction, NativeBulkBar, NativeBulkBarProps, NativeButton, NativeButtonProps, NativeCard, NativeCardContent, NativeCardDescription, NativeCardFooter, NativeCardHeader, NativeCardProps, NativeCardTitle, NativeCardTitleProps, NativeCheckbox, NativeCheckboxProps, NativeChip, NativeChipGroup, NativeChipGroupMode, NativeChipGroupProps, NativeChipProps, NativeChoiceCard, NativeChoiceCardProps, NativeCombobox, NativeComboboxOption, NativeComboboxProps, NativeComposerBar, NativeComposerBarProps, NativeContextMenu, NativeContextMenuAction, NativeContextMenuProps, 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, NativeRatingTone, NativeRefreshControl, NativeRefreshControlProps, NativeSearchBar, NativeSearchBarProps, NativeSectionListHeader, NativeSectionListHeaderProps, NativeSegmentedControl, NativeSegmentedControlOption, NativeSegmentedControlProps, NativeSelect, NativeSelectContent, NativeSelectContentProps, NativeSelectItem, NativeSelectItemProps, NativeSelectProps, NativeSelectTrigger, NativeSelectTriggerProps, NativeSeparator, NativeSeparatorProps, NativeShareSheet, NativeShareSheetProps, NativeSheet, NativeSheetLibrary, NativeSheetProps, NativeSheetProvider, NativeSheetProviderProps, NativeSheetScrollView, NativeSkeleton, NativeSkeletonProps, NativeSlider, NativeSliderProps, NativeStepper, NativeStepperProps, NativeStepperStep, NativeSwipeRow, NativeSwipeRowProps, NativeSwitch, NativeSwitchProps, NativeTabBar, NativeTabBarItem, NativeTabBarProps, NativeTabs, NativeTabsContent, NativeTabsContentProps, NativeTabsList, NativeTabsListProps, NativeTabsProps, NativeTabsTrigger, NativeTabsTriggerProps, NativeText, NativeTextProps, NativeTextarea, NativeTextareaProps, NativeThreadList, NativeThreadListHandle, NativeThreadListProps, NativeTierBadge, NativeTierBadgeProps, NativeTimePicker, NativeTimePickerProps, NativeToastOptions, NativeToastProvider, NativeToastProviderProps, NativeToastVariant, NativeToggle, NativeToggleProps, NativeTooltip, NativeTooltipContent, NativeTooltipContentProps, NativeTooltipProps, NativeTooltipTrigger, NativeTooltipTriggerProps, NativeWhatsNewNote, NativeWhatsNewSheet, NativeWhatsNewSheetProps, 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 GenesisHapticsModule, d as GenesisIconComponent, e as GenesisIconSet, f as GenesisImageComponent, g as GenesisImageProps, h as GenesisListComponent, i as GenesisListProps, j as GenesisModules, k as GenesisModulesProvider, l as GenesisModulesProviderProps, m as GenesisNavigationModule, n as GenesisNavigationTheme, o as GenesisReanimatedModule, p as GenesisSymbolComponent, q as GenesisSymbolProps, H as HapticKind, K as KeyboardAvoidingLike, N as NATIVE_ICON_NAMES, r as NativeIconName, S as SF_SYMBOLS, s as playHaptic, u as useGenesisModules, t as useHaptics } from './native-modules-CeAaO2Dh.js';
3
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, PressFeedback, PressFeedbackOptions, ThemeMode, ThemeRoleColors, UseMotionOptions, UseThemeRolesOptions, animateMotion, motionSpring, motionTiming, useGenesisExtension, useMotion, usePressFeedback, useReducedMotion, useThemeMode, useThemeRoles } from './hooks/index.js';
4
+ export { BrandExtensionsProvider, BrandExtensionsProviderProps, BrandExtensionsValue, MotionHow, MotionSpringConfig, MotionTimingConfig, PressFeedback, PressFeedbackOptions, ThemeMode, ThemeRoleColors, UseMotionOptions, UseThemeRolesOptions, animateMotion, motionSpring, motionTiming, sentBubbleColor, useGenesisExtension, useMotion, usePressFeedback, useReducedMotion, useThemeMode, useThemeRoles } from './hooks/index.js';
5
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';
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-BGqR_cBs.js';
7
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';
8
8
  export { cn } from './utils.js';
9
9
  import 'react';
package/dist/index.js CHANGED
@@ -1,12 +1,11 @@
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-7NDKIIOT.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-KH2RVAI5.js';
3
- export { BrandExtensionsProvider, JUMP_SETTLE_MS, useGenesisExtension, useThreadJump } from './chunk-YWDDDYDI.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-GBNIBHSU.js';
5
- export { NativeComposerBar, NativeThreadList, THREAD_AT_BOTTOM_POINTS, threadListMode, threadNearBottom } from './chunk-IXC3LO2K.js';
6
- export { InboxPage, NavBarSaveButton, NavBarSearchBar, NavBarTitle, ScreenContainer, composeHeaderOptions, formatInboxTime, getInboxPageStackOptions, showInboxActions } from './chunk-3KFUS7O6.js';
7
- export { NATIVE_ICON_NAMES, NativeBadge, NativeButton, NativeEmptyState, NativeIcon, NativeInput, NativeListItem, NativeListItemDivider, NativeLoadingState, NativeRefreshControl, NativeSectionListHeader, NativeSkeleton, NativeText, SF_SYMBOLS, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, textVariants } from './chunk-O4BMDV7I.js';
8
- export { usePressFeedback } from './chunk-CAI7LGN6.js';
9
- export { GenesisModulesProvider, animateMotion, motionSpring, motionTiming, playHaptic, useGenesisModules, useHaptics, useMotion, useReducedMotion, useThemeMode, useThemeRoles } from './chunk-RTYO24SC.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, NativeBulkBar, NativeChip, NativeChipGroup, NativeChoiceCard, 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, NativeShareSheet, NativeSlider, NativeStepper, NativeTabBar, NativeTabs, NativeTabsContent, NativeTabsList, NativeTabsTrigger, NativeTierBadge, NativeToastProvider, NativeToggle, NativeTooltip, NativeTooltipContent, NativeTooltipTrigger, NativeWhatsNewSheet, NativeZoomablePhoto, Stack, defaultNativeLightboxLabels, lightboxPanLimit, lightboxPinchScale, lightboxShouldDismiss, lightboxTouchDistance, nextRating, spaceScale, spacingClass, toggleVariants, useLiquidGlass, useReduceTransparency, useToast } from './chunk-UZCJDMGE.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, NativeSwitch, NativeTextarea, NativeTimePicker, alertVariants, galleryItemRatio, justifyRows } from './chunk-DHONOH6K.js';
3
+ export { BrandExtensionsProvider, JUMP_SETTLE_MS, useGenesisExtension, useThreadJump } from './chunk-FOJJB6AB.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-T7FEVT62.js';
5
+ export { NativeComposerBar, NativeThreadList, THREAD_AT_BOTTOM_POINTS, threadListMode, threadNearBottom } from './chunk-JZ7RAGDQ.js';
6
+ export { InboxPage, NavBarSaveButton, NavBarSearchBar, NavBarTitle, ScreenContainer, composeHeaderOptions, formatInboxTime, getInboxPageStackOptions, showInboxActions } from './chunk-PWYMRUAK.js';
7
+ export { NATIVE_ICON_NAMES, NativeBadge, NativeButton, NativeContextMenu, NativeEmptyState, NativeIcon, NativeInput, NativeListItem, NativeListItemDivider, NativeLoadingState, NativeRefreshControl, NativeSectionListHeader, NativeSheet, NativeSheetProvider, NativeSheetScrollView, NativeSkeleton, NativeSwipeRow, NativeText, SF_SYMBOLS, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, textVariants } from './chunk-FGIIBON3.js';
8
+ export { GenesisModulesProvider, animateMotion, motionSpring, motionTiming, playHaptic, sentBubbleColor, useGenesisModules, useHaptics, useMotion, usePressFeedback, useReducedMotion, useThemeMode, useThemeRoles } from './chunk-PWS2HLDE.js';
10
9
  export { cn } from './chunk-OHZD7KRO.js';
11
10
  import './chunk-DGUM43GV.js';
12
11
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
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';
1
+ import { e as ScreenHeaderProps } from '../inbox-page-BGqR_cBs.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-BGqR_cBs.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';
@@ -335,6 +335,8 @@ type ThreadPageSlotMap = {
335
335
  empty: {
336
336
  title: string;
337
337
  body: string;
338
+ actionLabel?: string | undefined;
339
+ onAction?: (() => void) | undefined;
338
340
  testID: string;
339
341
  };
340
342
  };
@@ -368,6 +370,13 @@ interface ThreadPageProps extends ScreenHeaderProps {
368
370
  onJumpFailed?: (id: string) => void;
369
371
  /** The first page is loading: a skeleton instead of the empty state, and a jump waits for it. */
370
372
  loading?: boolean;
373
+ /** The read failed and there are no messages: the empty slot shows `errorTitle` / `errorBody` instead. */
374
+ error?: boolean;
375
+ errorTitle?: string;
376
+ errorBody?: string;
377
+ /** A "Try again" button with `error`. */
378
+ onRetry?: () => void;
379
+ retryLabel?: string;
371
380
  /** Fresher rows are on their way (the cache showed first): a quiet "Updating…" line under the header region, announced once. */
372
381
  updating?: boolean;
373
382
  /**
@@ -390,7 +399,7 @@ interface ThreadPageProps extends ScreenHeaderProps {
390
399
  declare function getThreadPageStackOptions(props: ScreenHeaderProps & {
391
400
  headerTitle?: string;
392
401
  }): Record<string, unknown>;
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;
402
+ declare function ThreadPage({ messages, composer, closedNotice, header, readAt, readLabel, hasEarlier, onLoadEarlier, loadingEarlier, earlierLabel, firstUnreadId, jumpTo, onLoadUntil, onJumpFailed, loading, error, errorTitle, errorBody, onRetry, retryLabel, updating, keyboardVerticalOffset, emptyTitle, emptyBody, formatTime, labels: labelOverrides, slots, slotProps, testID, }: ThreadPageProps): react.JSX.Element;
394
403
 
395
404
  interface AuthBrandingProps {
396
405
  /** Brand mark (logo node). */
@@ -1,9 +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-GBNIBHSU.js';
2
- import '../chunk-IXC3LO2K.js';
3
- export { InboxPage, NavBarSaveButton, NavBarSearchBar, NavBarTitle, ScreenContainer, composeHeaderOptions, formatInboxTime, getInboxPageStackOptions, showInboxActions } from '../chunk-3KFUS7O6.js';
4
- import '../chunk-O4BMDV7I.js';
5
- import '../chunk-CAI7LGN6.js';
6
- import '../chunk-RTYO24SC.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-T7FEVT62.js';
2
+ import '../chunk-JZ7RAGDQ.js';
3
+ export { InboxPage, NavBarSaveButton, NavBarSearchBar, NavBarTitle, ScreenContainer, composeHeaderOptions, formatInboxTime, getInboxPageStackOptions, showInboxActions } from '../chunk-PWYMRUAK.js';
4
+ import '../chunk-FGIIBON3.js';
5
+ import '../chunk-PWS2HLDE.js';
7
6
  import '../chunk-OHZD7KRO.js';
8
7
  import '../chunk-DGUM43GV.js';
9
8
  //# sourceMappingURL=index.js.map
@@ -37,19 +37,19 @@ declare function useHaptics(): (kind: HapticKind) => void;
37
37
  * @stability Beta
38
38
  */
39
39
  declare const SF_SYMBOLS: {
40
+ readonly aperture: "camera.aperture";
40
41
  readonly "arrow-left": "arrow.left";
41
42
  readonly "arrow-up": "arrow.up";
42
- readonly aperture: "camera.aperture";
43
43
  readonly bell: "bell";
44
44
  readonly calendar: "calendar";
45
45
  readonly camera: "camera";
46
46
  readonly "camera-flip": "arrow.triangle.2.circlepath.camera";
47
47
  readonly check: "checkmark";
48
- readonly clapperboard: "movieclapper";
49
48
  readonly "chevron-down": "chevron.down";
50
49
  readonly "chevron-left": "chevron.left";
51
50
  readonly "chevron-right": "chevron.right";
52
51
  readonly "chevron-up": "chevron.up";
52
+ readonly clapperboard: "movieclapper";
53
53
  readonly clock: "clock";
54
54
  readonly close: "xmark";
55
55
  readonly compose: "square.and.pencil";
@@ -59,13 +59,18 @@ declare const SF_SYMBOLS: {
59
59
  readonly error: "xmark.circle";
60
60
  readonly expand: "arrow.up.left.and.arrow.down.right";
61
61
  readonly "external-link": "arrow.up.right.square";
62
+ readonly eye: "eye";
62
63
  readonly file: "doc";
63
64
  readonly filter: "line.3.horizontal.decrease";
64
65
  readonly "folder-plus": "folder.badge.plus";
66
+ readonly grid: "square.grid.2x2";
67
+ readonly grip: "line.3.horizontal";
65
68
  readonly heart: "heart";
66
69
  readonly home: "house";
67
70
  readonly image: "photo";
68
71
  readonly info: "info.circle";
72
+ readonly link: "link";
73
+ readonly list: "list.bullet";
69
74
  readonly lock: "lock";
70
75
  readonly "log-out": "rectangle.portrait.and.arrow.right";
71
76
  readonly mail: "envelope";
@@ -81,6 +86,7 @@ declare const SF_SYMBOLS: {
81
86
  readonly play: "play.fill";
82
87
  readonly plus: "plus";
83
88
  readonly radio: "dot.radiowaves.left.and.right";
89
+ readonly redo: "arrow.uturn.forward";
84
90
  readonly refresh: "arrow.clockwise";
85
91
  readonly reply: "arrowshape.turn.up.left";
86
92
  readonly search: "magnifyingglass";
@@ -88,10 +94,14 @@ declare const SF_SYMBOLS: {
88
94
  readonly "settings-2": "slider.horizontal.3";
89
95
  readonly share: "square.and.arrow.up";
90
96
  readonly smile: "face.smiling";
97
+ readonly sort: "arrow.up.arrow.down";
91
98
  readonly star: "star";
92
99
  readonly stop: "stop.fill";
93
100
  readonly success: "checkmark.circle";
101
+ readonly table: "tablecells";
94
102
  readonly trash: "trash";
103
+ readonly undo: "arrow.uturn.backward";
104
+ readonly upload: "tray.and.arrow.up";
95
105
  readonly user: "person";
96
106
  readonly video: "video";
97
107
  readonly volume: "speaker.wave.2.fill";
@@ -288,7 +298,21 @@ interface GenesisModules {
288
298
  keyboardAvoidingView?: KeyboardAvoidingLike;
289
299
  /** expo-haptics (`import * as Haptics from "expo-haptics"`): `useHaptics`, `usePressFeedback`, and the primitives that answer a touch. Without it, no haptics. */
290
300
  haptics?: GenesisHapticsModule;
301
+ /** react-native-gesture-handler's `ReanimatedSwipeable`: NativeSwipeRow and InboxPage's rows. Without it, no swipe; the actions stay on long press. */
302
+ swipeable?: GenesisSwipeableComponent;
291
303
  }
304
+ /** The props NativeSwipeRow passes; `ReanimatedSwipeable` takes them, and its ref has `close()`. */
305
+ type GenesisSwipeableComponent = ComponentType<{
306
+ ref?: unknown;
307
+ testID?: string;
308
+ friction?: number;
309
+ overshootLeft?: boolean;
310
+ overshootRight?: boolean;
311
+ onSwipeableWillOpen?: () => void;
312
+ renderLeftActions?: () => ReactNode;
313
+ renderRightActions?: () => ReactNode;
314
+ children?: ReactNode;
315
+ }>;
292
316
  interface GenesisModulesProviderProps {
293
317
  modules: GenesisModules;
294
318
  children: ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marktiderman/genesis-ui-native",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -295,6 +295,24 @@
295
295
  "import": "@marktiderman/genesis-ui-native/components",
296
296
  "docs": "https://github.com/marktiderman/genesis/blob/main/packages/ui-native/README.md"
297
297
  },
298
+ {
299
+ "need": "a row's actions behind a swipe on the phone",
300
+ "use": "NativeSwipeRow, on GenesisModules.swipeable",
301
+ "import": "@marktiderman/genesis-ui-native/components",
302
+ "docs": "https://github.com/marktiderman/genesis/blob/main/packages/ui-native/README.md"
303
+ },
304
+ {
305
+ "need": "what a long press opens on the phone: a short list of actions",
306
+ "use": "NativeContextMenu",
307
+ "import": "@marktiderman/genesis-ui-native/components",
308
+ "docs": "https://github.com/marktiderman/genesis/blob/main/packages/ui-native/README.md"
309
+ },
310
+ {
311
+ "need": "a selectable option card on the phone (radio or checkbox, with a picture or a description)",
312
+ "use": "NativeChoiceCard",
313
+ "import": "@marktiderman/genesis-ui-native/components",
314
+ "docs": "https://github.com/marktiderman/genesis/blob/main/packages/ui-native/README.md"
315
+ },
298
316
  {
299
317
  "need": "a star rating on the phone",
300
318
  "use": "NativeRating",
@@ -306,6 +324,36 @@
306
324
  "use": "the view's gallery block (defineView) rendered by <NativeResourceView mode=\"grid\">; NativeGalleryGrid for photos that aren't records (attachments, uploads)",
307
325
  "import": "@marktiderman/genesis-ui-native",
308
326
  "docs": "https://github.com/marktiderman/genesis/blob/main/docs/RESOURCE-VIEW.md#gallery"
327
+ },
328
+ {
329
+ "need": "a bottom tab bar with any number of tabs",
330
+ "use": "NativeTabBar (past max, the last slot is More, which opens a NativeSheet)",
331
+ "import": "@marktiderman/genesis-ui-native",
332
+ "docs": "https://github.com/marktiderman/genesis/blob/main/docs/DESIGN-LIBRARY.md"
333
+ },
334
+ {
335
+ "need": "actions on the rows a list has selected",
336
+ "use": "NativeBulkBar",
337
+ "import": "@marktiderman/genesis-ui-native",
338
+ "docs": "https://github.com/marktiderman/genesis/blob/main/docs/DESIGN-LIBRARY.md"
339
+ },
340
+ {
341
+ "need": "sharing a published page's link, with a QR code",
342
+ "use": "NativeShareSheet with url, renderQr and onCopy",
343
+ "import": "@marktiderman/genesis-ui-native",
344
+ "docs": "https://github.com/marktiderman/genesis/blob/main/docs/DESIGN-LIBRARY.md"
345
+ },
346
+ {
347
+ "need": "a what's new sheet after an update",
348
+ "use": "NativeWhatsNewSheet",
349
+ "import": "@marktiderman/genesis-ui-native",
350
+ "docs": "https://github.com/marktiderman/genesis/blob/main/docs/DESIGN-LIBRARY.md"
351
+ },
352
+ {
353
+ "need": "a rank or tier label (Gold, Level 3) in a brand accent",
354
+ "use": "NativeTierBadge with tone set to a key of the brand's accents",
355
+ "import": "@marktiderman/genesis-ui-native",
356
+ "docs": "https://github.com/marktiderman/genesis/blob/main/docs/DESIGN-LIBRARY.md"
309
357
  }
310
358
  ]
311
359
  }
@@ -32,6 +32,7 @@ vi.mock("lucide-react-native", () => {
32
32
  "ArrowUp", "Camera", "Copy", "File", "Image", "MessageCircle", "Mic", "Paperclip", "Pause", "Pin", "Play", "Reply", "SquarePen",
33
33
  "Download", "Smile", "Maximize2", "Square", "SwitchCamera", "Video", "Volume2", "VolumeX",
34
34
  "Aperture", "Clapperboard", "FolderPlus", "Maximize", "Radio", "Settings2",
35
+ "ArrowUpDown", "Eye", "GripVertical", "LayoutGrid", "Link", "List", "Redo2", "Table", "Undo2", "Upload",
35
36
  ];
36
37
  return Object.fromEntries(names.map((n) => [n, icon(n)]));
37
38
  });
@@ -0,0 +1,36 @@
1
+ import { fireEvent, render, screen } from "@testing-library/react";
2
+ import { describe, expect, it, vi } from "vitest";
3
+ import { NativeBulkBar } from "../bulk-bar";
4
+
5
+ describe("NativeBulkBar", () => {
6
+ it("renders nothing while nothing is selected", () => {
7
+ render(<NativeBulkBar selected={new Set()} totalCount={3} onToggleAll={() => {}} onClearSelection={() => {}} actions={[]} />);
8
+ expect(screen.queryByTestId("native-bulk-bar")).toBeNull();
9
+ });
10
+
11
+ it("shows the count, runs actions, toggles all and clears", () => {
12
+ const archive = vi.fn();
13
+ const onToggleAll = vi.fn();
14
+ const onClear = vi.fn();
15
+ render(
16
+ <NativeBulkBar
17
+ selected={new Set(["a", "b"])}
18
+ totalCount={3}
19
+ onToggleAll={onToggleAll}
20
+ onClearSelection={onClear}
21
+ actions={[
22
+ { label: "Archive", icon: "copy", onClick: archive, testId: "bulk-archive" },
23
+ { label: "Delete", icon: "trash", onClick: () => {}, variant: "destructive", disabled: true, testId: "bulk-delete" },
24
+ ]}
25
+ />,
26
+ );
27
+ expect(screen.getByText("2 selected")).toBeTruthy();
28
+ fireEvent.click(screen.getByTestId("bulk-archive"));
29
+ expect(archive).toHaveBeenCalledTimes(1);
30
+ expect(screen.getByTestId("bulk-delete").getAttribute("aria-disabled")).toBe("true");
31
+ fireEvent.click(screen.getByTestId("native-bulk-bar-all"));
32
+ expect(onToggleAll).toHaveBeenCalled();
33
+ fireEvent.click(screen.getByTestId("native-bulk-bar-clear"));
34
+ expect(onClear).toHaveBeenCalled();
35
+ });
36
+ });
@@ -1,4 +1,5 @@
1
1
  import { fireEvent, render, screen } from "@testing-library/react";
2
+ import { Animated } from "react-native";
2
3
  import { describe, expect, it, vi } from "vitest";
3
4
  import { GenesisModulesProvider } from "../../native-modules";
4
5
  import { NativeButton } from "../button";
@@ -49,4 +50,25 @@ describe("NativeButton haptic", () => {
49
50
  expect(haptics.impactAsync).not.toHaveBeenCalled();
50
51
  expect(haptics.notificationAsync).not.toHaveBeenCalled();
51
52
  });
53
+
54
+ it("answers a touch through usePressFeedback, and not when disabled", () => {
55
+ const timing = vi.spyOn(Animated, "timing");
56
+ const { rerender } = render(<NativeButton testID="b" onPress={vi.fn()}>Save</NativeButton>);
57
+ fireEvent.pointerDown(screen.getByTestId("b"));
58
+ expect(timing).toHaveBeenCalledWith(expect.anything(), expect.objectContaining({ toValue: 0.97 }));
59
+ timing.mockClear();
60
+ rerender(<NativeButton testID="b" onPress={vi.fn()} disabled>Save</NativeButton>);
61
+ fireEvent.pointerDown(screen.getByTestId("b"));
62
+ expect(timing).not.toHaveBeenCalled();
63
+ timing.mockRestore();
64
+ });
65
+
66
+ it("keeps each size's gap, and lets a caller's layout classes reach what's inside", () => {
67
+ render(<NativeButton testID="b" size="sm" className="w-full justify-start"><i data-testid="in" /></NativeButton>);
68
+ const content = screen.getByTestId("in").parentElement!;
69
+ expect(content.className).toContain("gap-1.5");
70
+ expect(content.className).toContain("justify-start");
71
+ expect(content.className).not.toContain("w-full");
72
+ expect(screen.getByTestId("b").className).toContain("w-full");
73
+ });
52
74
  });