@marktiderman/genesis-ui-native 3.11.0 → 3.12.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 (78) hide show
  1. package/README.md +69 -0
  2. package/dist/{chunk-ZUR4PK77.js → chunk-47CDRP43.js} +45 -166
  3. package/dist/chunk-47CDRP43.js.map +1 -0
  4. package/dist/{chunk-SG7LYX7Z.js → chunk-BQYT6TH2.js} +14 -6
  5. package/dist/chunk-BQYT6TH2.js.map +1 -0
  6. package/dist/{chunk-EAHK7D7N.js → chunk-C2ARUGT7.js} +146 -42
  7. package/dist/chunk-C2ARUGT7.js.map +1 -0
  8. package/dist/{chunk-VEWSY4TZ.js → chunk-D4UU6KIF.js} +236 -21
  9. package/dist/chunk-D4UU6KIF.js.map +1 -0
  10. package/dist/{chunk-GGH3ZQNO.js → chunk-TUDJDIGC.js} +4 -4
  11. package/dist/{chunk-GGH3ZQNO.js.map → chunk-TUDJDIGC.js.map} +1 -1
  12. package/dist/{chunk-PMS2V46D.js → chunk-VHUUOH46.js} +2 -2
  13. package/dist/{chunk-PMS2V46D.js.map → chunk-VHUUOH46.js.map} +1 -1
  14. package/dist/{chunk-IWWXERKQ.js → chunk-X5CPLUPZ.js} +1236 -136
  15. package/dist/chunk-X5CPLUPZ.js.map +1 -0
  16. package/dist/components/index.d.ts +510 -25
  17. package/dist/components/index.js +5 -5
  18. package/dist/data/index.d.ts +167 -33
  19. package/dist/data/index.js +1082 -760
  20. package/dist/data/index.js.map +1 -1
  21. package/dist/hooks/index.d.ts +2 -2
  22. package/dist/hooks/index.js +1 -1
  23. package/dist/icons/lucide.d.ts +1 -1
  24. package/dist/index.d.ts +6 -3
  25. package/dist/index.js +7 -7
  26. package/dist/layouts/index.d.ts +79 -6
  27. package/dist/layouts/index.js +5 -5
  28. package/dist/{native-modules-Bkm1jHO-.d.ts → native-modules-6JnyeGR-.d.ts} +55 -1
  29. package/package.json +70 -4
  30. package/src/components/__tests__/combobox.test.tsx +20 -0
  31. package/src/components/__tests__/number-input.test.tsx +112 -1
  32. package/src/components/__tests__/parity-controls.test.tsx +366 -0
  33. package/src/components/__tests__/parity-display.test.tsx +295 -0
  34. package/src/components/__tests__/twin-props.test.tsx +114 -0
  35. package/src/components/badge.tsx +3 -0
  36. package/src/components/button-group.tsx +50 -0
  37. package/src/components/calendar.tsx +183 -0
  38. package/src/components/carousel.tsx +175 -0
  39. package/src/components/chart.tsx +268 -0
  40. package/src/components/chip-group.tsx +34 -14
  41. package/src/components/choice-card.tsx +56 -19
  42. package/src/components/combobox.tsx +6 -5
  43. package/src/components/empty-state.tsx +40 -0
  44. package/src/components/flatten-children.ts +13 -0
  45. package/src/components/index.ts +49 -1
  46. package/src/components/inline-alert.tsx +3 -1
  47. package/src/components/input-group.tsx +99 -0
  48. package/src/components/input-otp.tsx +124 -0
  49. package/src/components/input.tsx +40 -12
  50. package/src/components/list-item.tsx +20 -4
  51. package/src/components/number-input.tsx +45 -15
  52. package/src/components/radio-group.tsx +5 -0
  53. package/src/components/resource.tsx +227 -0
  54. package/src/components/settings-row.tsx +194 -0
  55. package/src/components/slider.tsx +3 -9
  56. package/src/components/sortable-list.tsx +287 -0
  57. package/src/components/stat-card.tsx +106 -0
  58. package/src/components/stepper.tsx +4 -2
  59. package/src/components/widget-tile.tsx +66 -0
  60. package/src/components/workspace-switcher.tsx +217 -0
  61. package/src/data/NativeCustomView.tsx +117 -0
  62. package/src/data/NativeFormFields.tsx +312 -0
  63. package/src/data/NativeRecordPeek.tsx +130 -0
  64. package/src/data/NativeResourceFormField.tsx +32 -0
  65. package/src/data/__tests__/parity-data.test.tsx +350 -0
  66. package/src/data/index.ts +13 -0
  67. package/src/layouts/__tests__/keyboard-scroll.test.tsx +58 -2
  68. package/src/layouts/__tests__/notifications-page.test.tsx +12 -0
  69. package/src/layouts/index.ts +13 -0
  70. package/src/layouts/keyboard.tsx +22 -2
  71. package/src/layouts/notifications-page.tsx +13 -35
  72. package/src/layouts/pages.tsx +262 -0
  73. package/src/native-modules.tsx +37 -0
  74. package/dist/chunk-EAHK7D7N.js.map +0 -1
  75. package/dist/chunk-IWWXERKQ.js.map +0 -1
  76. package/dist/chunk-SG7LYX7Z.js.map +0 -1
  77. package/dist/chunk-VEWSY4TZ.js.map +0 -1
  78. package/dist/chunk-ZUR4PK77.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/thread-list.tsx","../src/components/composer-bar.tsx","../src/components/flatten-children.ts"],"names":["useState","useEffect","Platform","AccessibilityInfo","jsxs","View","jsx","Pressable","Fragment"],"mappings":";;;;;;;AAoDA,IAAM,QAAA,GAAW,CAAC,IAAA,KAAkB,iBAAA,CAAyE,2BAA2B,IAAI,CAAA;AAGrI,IAAM,uBAAA,GAA0B;AAGvC,IAAM,WAAA,GAAc,GAAA;AAGb,SAAS,gBAAA,CAAiB,CAAA,EAAkB,KAAA,GAAQ,uBAAA,EAAkC;AAC3F,EAAA,OAAO,CAAA,CAAE,cAAc,CAAA,GAAI,CAAA,CAAE,kBAAkB,MAAA,IAAU,CAAA,CAAE,YAAY,MAAA,GAAS,KAAA;AAClF;AASO,SAAS,cAAA,CACd,KAAA,EACA,aAAA,EACA,cAAA,GAAiB,CAAA,EACoE;AACrF,EAAA,IAAI,KAAA,EAAO;AACT,IAAA,MAAM,SAAA,GAAY,iBAAiB,CAAA,GAAI,IAAA,CAAK,IAAI,CAAA,EAAG,uBAAA,GAA0B,cAAc,CAAA,GAAI,GAAA;AAC/F,IAAA,OAAO;AAAA,MACL,aAAA,EAAe,KAAA;AAAA,MACf,8BAAA,EAAgC,EAAE,wBAAA,EAA0B,IAAA,EAAM,6BAA6B,SAAA,EAAW,yBAAA,EAA2B,CAAC,aAAA;AAAc,KACtJ;AAAA,EACF;AACA,EAAA,OAAO,EAAE,aAAA,EAAe,IAAA,EAAM,gCAAgC,EAAE,kBAAA,EAAoB,GAAE,EAAE;AAC1F;AA2FA,SAAS,qBAAA,CAAyB,OA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EAAA,OAAO,GAAA;AACT","file":"chunk-BQYT6TH2.js","sourcesContent":["/**\n * NativeThreadList — a conversation's list: oldest first, top to bottom (the\n * order VoiceOver reads), that opens at the newest row, follows new rows only\n * while you're at the bottom, keeps your place while earlier rows load at the\n * top, and can go to one row (a search result, the first unread).\n *\n * The atom under ThreadPage, and the one any app builds its own thread from:\n * it renders the rows it's given and never fetches. Earlier pages come from\n * `onLoadEarlier`, a row out of reach from `onLoadUntil(id)`.\n *\n * FlashList v2 (`GenesisModules.list`) when the app passed it: its chat mode\n * (`startRenderingFromBottom`, `autoscrollToBottomThreshold`, the first\n * visible row held when rows prepend). Without it, FlatList, which keeps its\n * place with `maintainVisibleContentPosition` (anchored past the header) and\n * follows the bottom by hand.\n *\n * Not inverted: in an inverted FlashList a new row at index 0 lands under the\n * composer, and VoiceOver reads each day's heading after its messages.\n *\n * Earlier rows load by themselves near the top, and the explicit \"Load\n * earlier\" button stays: VoiceOver can't reach rows a virtualized list hasn't\n * rendered. Going to a row waits for `loading`, loads until it's held,\n * scrolls to it (again after FlashList's own placement on open), highlights\n * it for two seconds and announces it. Reduce Motion scrolls without\n * animating. The reader's touch wins: a drag during a jump ends the list's own\n * scrolling and drops the jump, even one still loading, so nothing snaps back.\n *\n * A row is gone when, once `onLoadUntil` has settled, no row answers to its\n * id. The list knows only its rows: a row that's drawn (a deleted message's\n * tombstone) is there, and whatever isn't drawn isn't, whatever a cache holds.\n *\n * Promoted from genesis-chat's thread and its `useJumpToMessage` (G4); chat\n * moves onto it later.\n *\n * @stability Beta\n */\nimport { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState, type ComponentType, type ReactElement, type ReactNode } from \"react\";\nimport { AccessibilityInfo, FlatList, Platform, Pressable, View } from \"react-native\";\nimport { useGenesisModules } from \"../native-modules\";\nimport { useReducedMotion } from \"../hooks/use-reduced-motion\";\nimport { useThemeRoles } from \"../hooks/use-theme-roles\";\nimport { useThreadJump } from \"@marktiderman/genesis-core/conversation\";\nimport { NativeSkeleton } from \"./skeleton\";\nimport { NativeText } from \"./text\";\n\n/** The scroll event fields the list reads. */\ninterface ScrollMetrics {\n contentOffset: { y: number };\n contentSize: { height: number };\n layoutMeasurement: { height: number };\n}\n\nconst announce = (text: string) => (AccessibilityInfo as { announceForAccessibility?: (t: string) => void }).announceForAccessibility?.(text);\n\n/** Points from the bottom that still count as \"at the bottom\". */\nexport const THREAD_AT_BOTTOM_POINTS = 120;\n\n/** After the list scrolls itself (to the newest, to a row), how long its own scroll events don't count. */\nconst SETTLING_MS = 400;\n\n/** Whether a scroll position is at (or near) the bottom of its content. */\nexport function threadNearBottom(m: ScrollMetrics, slack = THREAD_AT_BOTTOM_POINTS): boolean {\n return m.contentOffset.y + m.layoutMeasurement.height >= m.contentSize.height - slack;\n}\n\n/**\n * How the list is set up. FlashList follows by itself, within\n * `THREAD_AT_BOTTOM_POINTS` of the bottom (its threshold is a fraction of the\n * viewport: a fifth until the viewport's height is known); FlatList keeps its\n * place on prepend, anchored on the first row past the header (index 1: the\n * header is child 0), and the list follows the bottom by hand.\n */\nexport function threadListMode(\n flash: boolean,\n reducedMotion: boolean,\n viewportHeight = 0,\n): { followsByHand: boolean; maintainVisibleContentPosition: Record<string, unknown> } {\n if (flash) {\n const threshold = viewportHeight > 0 ? Math.min(1, THREAD_AT_BOTTOM_POINTS / viewportHeight) : 0.2;\n return {\n followsByHand: false,\n maintainVisibleContentPosition: { startRenderingFromBottom: true, autoscrollToBottomThreshold: threshold, animateAutoScrollToBottom: !reducedMotion },\n };\n }\n return { followsByHand: true, maintainVisibleContentPosition: { minIndexForVisible: 1 } };\n}\n\nexport interface NativeThreadListHandle {\n /** Go to the newest row (after a send: what you send is what you look at next). */\n scrollToEnd: (options?: { animated?: boolean }) => void;\n}\n\n/** What `renderItem` is told about a row besides the row itself. */\nexport interface ThreadRowInfo {\n index: number;\n /** The row a jump just landed on, for two seconds. */\n highlighted: boolean;\n}\n\nexport interface NativeThreadListProps<T> {\n /** Oldest first. */\n data: readonly T[];\n /** A row's id. It must stay the same across refreshes (from a cache to the server), or rows jump. */\n keyExtractor: (row: T) => string;\n renderItem: (row: T, info: ThreadRowInfo) => ReactElement | null;\n /** Rows of different shapes recycle apart (FlashList): \"mine\", \"theirs\", \"event\". */\n getItemType?: (row: T) => string;\n /** The first page is loading: shows `loadingView` (a skeleton by default), and a jump waits. */\n loading?: boolean;\n loadingView?: ReactNode;\n /** There are earlier rows: loads them near the top, and shows the \"Load earlier\" button. */\n hasEarlier?: boolean;\n onLoadEarlier?: () => void;\n loadingEarlier?: boolean;\n earlierLabel?: string;\n /** Replaces the default \"Load earlier\" button. */\n renderEarlier?: (props: { loading: boolean; onPress: () => void; label: string; testID: string }) => ReactNode;\n /** Go to this row, loading earlier pages with `onLoadUntil` until it's here. A new id, or the same one after `null`, goes again. */\n jumpTo?: string | null;\n /**\n * The id `jumpTo` names a row by, when it isn't the row's key: a message keyed by the id the\n * phone gave it (so it keeps its row when the server's copy lands) and gone to by the server's\n * id. `null` for a row that can't be gone to (a day heading). `keyExtractor` by default.\n * Pass a stable function (module scope, or `useCallback`): a new one each render re-renders every row.\n */\n jumpId?: (row: T) => string | null | undefined;\n /** Load earlier pages until the row is held; resolve false when it can't be found. */\n onLoadUntil?: (id: string) => Promise<boolean>;\n /** What VoiceOver says on arriving at `jumpTo`. */\n jumpAnnouncement?: (row: T) => string;\n /** No row answers to this id once `onLoadUntil` has settled, or it failed. The list goes back to the newest row first. */\n onJumpFailed?: (id: string) => void;\n /** Whether the reader is at the bottom, as it changes (to show a \"new messages\" pill, say). */\n onAtBottomChange?: (atBottom: boolean) => void;\n /** Above the first row, before the \"Load earlier\" button: what the thread is about. */\n header?: ReactNode;\n /** Under the last row: who is typing, a \"Sending…\" line. */\n footer?: ReactNode;\n /** Shown instead of the rows when there are none. */\n empty?: ReactNode;\n testID?: string;\n}\n\n/** The FlatList and FlashList v2 props the thread passes. */\ninterface ThreadListComponentProps {\n ref?: unknown;\n data: readonly unknown[];\n renderItem: (info: { item: unknown; index: number }) => ReactElement | null;\n keyExtractor: (row: unknown) => string;\n getItemType?: (row: unknown) => string;\n extraData?: unknown;\n onStartReached?: () => void;\n onStartReachedThreshold?: number;\n ListHeaderComponent?: ReactElement | null;\n ListFooterComponent?: ReactElement | null;\n keyboardShouldPersistTaps?: \"handled\";\n keyboardDismissMode?: \"interactive\" | \"on-drag\";\n contentInsetAdjustmentBehavior?: \"automatic\";\n contentContainerStyle?: Record<string, unknown>;\n maintainVisibleContentPosition?: Record<string, unknown>;\n onScroll?: (e: { nativeEvent: ScrollMetrics }) => void;\n onScrollBeginDrag?: () => void;\n scrollEventThrottle?: number;\n onContentSizeChange?: () => void;\n onLayout?: () => void;\n onScrollToIndexFailed?: (info: { index: number; averageItemLength: number }) => void;\n accessibilityRole?: \"list\";\n testID?: string;\n}\n\ninterface ListRef {\n scrollToEnd?: (o?: { animated?: boolean }) => void;\n scrollToIndex?: (o: { index: number; animated?: boolean; viewPosition?: number }) => void;\n scrollToOffset?: (o: { offset: number; animated?: boolean }) => void;\n}\n\nfunction NativeThreadListInner<T>(props: NativeThreadListProps<T>, ref: React.ForwardedRef<NativeThreadListHandle>) {\n const {\n data,\n keyExtractor,\n renderItem,\n getItemType,\n loading = false,\n loadingView,\n hasEarlier = false,\n onLoadEarlier,\n loadingEarlier = false,\n earlierLabel = \"Load earlier messages\",\n renderEarlier,\n jumpTo,\n jumpId,\n onLoadUntil,\n jumpAnnouncement,\n onJumpFailed,\n onAtBottomChange,\n footer,\n header,\n empty,\n testID = \"thread-list\",\n } = props;\n const genesis = useGenesisModules();\n const reducedMotion = useReducedMotion();\n const List = (genesis.list ?? FlatList) as unknown as ComponentType<ThreadListComponentProps>;\n const [viewport, setViewport] = useState(0);\n const mode = threadListMode(Boolean(genesis.list), reducedMotion, viewport);\n // The last position the list reported, to re-check \"at the bottom\" after it moves itself.\n const metrics = useRef<ScrollMetrics | null>(null);\n const recheck = useRef<ReturnType<typeof setTimeout> | null>(null);\n useEffect(() => () => {\n if (recheck.current) clearTimeout(recheck.current);\n }, []);\n const listRef = useRef<ListRef | null>(null);\n // At the bottom (or not yet scrolled): new rows and a shorter list keep it there.\n const atBottom = useRef(true);\n // FlatList opens at the top and is moved down a frame later: until then the top isn't \"reached\".\n const placed = useRef(!mode.followsByHand);\n // While the list scrolls itself, its own scroll events don't move \"at the bottom\".\n const settlingUntil = useRef(0);\n // Bumped by each move the list starts and by the reader's touch: a queued try from an older move doesn't run.\n const moveId = useRef(0);\n const timers = useRef(new Set<ReturnType<typeof setTimeout>>());\n const later = useCallback((fn: () => void, ms: number) => {\n const t = setTimeout(() => {\n timers.current.delete(t);\n fn();\n }, ms);\n timers.current.add(t);\n }, []);\n useEffect(() => {\n const pending = timers.current;\n return () => pending.forEach(clearTimeout);\n }, []);\n const idOf = jumpId ?? keyExtractor;\n const latest = useRef({ data, idOf, jumpAnnouncement, onJumpFailed, onAtBottomChange });\n latest.current = { data, idOf, jumpAnnouncement, onJumpFailed, onAtBottomChange };\n // The row a jump names, by `jumpId` (the key by default).\n const indexOf = useCallback((id: string) => latest.current.data.findIndex((row) => latest.current.idOf(row) === id), []);\n\n const setAtBottom = useCallback((v: boolean) => {\n if (atBottom.current === v) return;\n atBottom.current = v;\n latest.current.onAtBottomChange?.(v);\n }, []);\n\n const toBottom = useCallback(\n (animated: boolean) => {\n settlingUntil.current = Date.now() + SETTLING_MS;\n const move = ++moveId.current;\n const go = (a: boolean) => listRef.current?.scrollToEnd?.({ animated: a && !reducedMotion });\n requestAnimationFrame(() => {\n go(animated);\n placed.current = true;\n });\n // Once more after a new row has its size (FlashList measures it after the first pass).\n if (animated) later(() => move === moveId.current && go(true), 180);\n },\n [later, reducedMotion],\n );\n\n useImperativeHandle(\n ref,\n () => ({\n scrollToEnd: (options) => {\n setAtBottom(true);\n toBottom(options?.animated ?? true);\n },\n }),\n [setAtBottom, toBottom],\n );\n\n // Going to a row: by id, so a page loading in between can't send it to the wrong row.\n const jumpTries = useRef<{ id: string; tries: number } | null>(null);\n const scrollToRow = useCallback(\n (id: string) => {\n const move = ++moveId.current;\n const scroll = () => {\n if (move !== moveId.current) return;\n const at = indexOf(id);\n if (at < 0) return;\n // Each try moves the list again: its events don't count until this one settles.\n settlingUntil.current = Date.now() + SETTLING_MS;\n listRef.current?.scrollToIndex?.({ index: at, animated: !reducedMotion, viewPosition: 0.5 });\n };\n jumpTries.current = { id, tries: 0 };\n settlingUntil.current = Date.now() + SETTLING_MS;\n requestAnimationFrame(scroll);\n // Once more after the first layout: on open, FlashList's start-at-the-bottom placement comes after\n // the first frame and would win, leaving the thread at the bottom.\n later(scroll, 250);\n },\n [indexOf, later, reducedMotion],\n );\n // A jump to a row already in view moves nothing, so no scroll event says where the list is: look\n // once its own scrolling has settled (a second try extends that; mid-way it can still read as the\n // bottom). No scroll event yet means the list hasn't moved from where it opens, the bottom.\n const lookForBottom = useCallback(() => {\n if (recheck.current) clearTimeout(recheck.current);\n const look = () => {\n const wait = settlingUntil.current - Date.now();\n if (wait > 0) {\n recheck.current = setTimeout(look, wait + 50);\n return;\n }\n if (!metrics.current || threadNearBottom(metrics.current)) setAtBottom(true);\n };\n recheck.current = setTimeout(look, SETTLING_MS + 50);\n }, [setAtBottom]);\n const has = useCallback((id: string) => indexOf(id) >= 0, [indexOf]);\n // `has` must change when the rows do, so the jump looks again.\n const hasNow = useMemo(() => (id: string) => has(id), [has, data]); // eslint-disable-line react-hooks/exhaustive-deps\n const { highlightedId, jumping, cancel: cancelJump } = useThreadJump({\n target: jumpTo,\n has: hasNow,\n loading,\n loadUntil: onLoadUntil,\n scrollTo: scrollToRow,\n onStart: () => {\n setAtBottom(false);\n placed.current = true;\n },\n onLanded: (id) => {\n lookForBottom();\n const at = indexOf(id);\n const said = at >= 0 ? latest.current.jumpAnnouncement?.(latest.current.data[at]!) : undefined;\n if (said) announce(said);\n },\n onGone: (id) => {\n // Back to where the thread opens: the newest rows.\n setAtBottom(true);\n toBottom(false);\n latest.current.onJumpFailed?.(id);\n },\n });\n\n const loadEarlier = useCallback(() => {\n if (placed.current && !jumping && hasEarlier && !loadingEarlier) onLoadEarlier?.();\n }, [hasEarlier, jumping, loadingEarlier, onLoadEarlier]);\n\n const earlierProps = { loading: loadingEarlier, onPress: () => onLoadEarlier?.(), label: earlierLabel, testID: `${testID}-earlier` };\n const listHeader = (\n <View>\n {header}\n {hasEarlier && onLoadEarlier ? (renderEarlier ? renderEarlier(earlierProps) : <DefaultEarlier {...earlierProps} />) : null}\n </View>\n );\n\n const renderListItem = useCallback(\n ({ item, index }: { item: unknown; index: number }) => renderItem(item as T, { index, highlighted: highlightedId !== null && idOf(item as T) === highlightedId }),\n [highlightedId, idOf, renderItem],\n );\n const listKey = useCallback((row: unknown) => keyExtractor(row as T), [keyExtractor]);\n const listItemType = useMemo(() => (getItemType ? (row: unknown) => getItemType(row as T) : undefined), [getItemType]);\n const onScroll = useCallback(\n (e: { nativeEvent: ScrollMetrics }) => {\n metrics.current = { contentOffset: { y: e.nativeEvent.contentOffset.y }, contentSize: { height: e.nativeEvent.contentSize.height }, layoutMeasurement: { height: e.nativeEvent.layoutMeasurement.height } };\n const height = e.nativeEvent.layoutMeasurement.height;\n setViewport((v) => (Math.abs(v - height) < 1 ? v : height));\n // The list's own scroll (to the newest, to a row) isn't the reader moving. Going to a row starts\n // at the bottom, so its first events say \"at the bottom\": taken, that turned following back on,\n // and FlatList's next layout scrolled to the end, away from the row. After a jump, onLanded\n // looks again once it has settled.\n if (Date.now() < settlingUntil.current) return;\n setAtBottom(threadNearBottom(e.nativeEvent));\n },\n [setAtBottom],\n );\n // The reader's touch ends the list's own scroll: from here their scrolling counts, even mid-jump,\n // the tries still queued don't snap them back, and a jump still loading doesn't land. Only a drag:\n // a fling follows one, and onMomentumScrollBegin isn't promised to be the reader's alone (Android\n // may report a programmatic smooth scroll), which would cancel the list's own retry. VoiceOver's\n // three-finger scroll and a wheel send no drag, so those count once the settling window (400ms) ends.\n const readerTookOver = useCallback(() => {\n settlingUntil.current = 0;\n moveId.current += 1;\n jumpTries.current = null;\n cancelJump();\n }, [cancelJump]);\n const onScrollToIndexFailed = useCallback(\n ({ index, averageItemLength }: { index: number; averageItemLength: number }) => {\n const target = jumpTries.current;\n // The reader took over.\n if (!target) return;\n // FlatList hasn't measured that far up yet: get near it, then try again by id (three times at most).\n listRef.current?.scrollToOffset?.({ offset: Math.max(0, index * averageItemLength - 200), animated: false });\n if (target.tries >= 3) return;\n target.tries += 1;\n later(() => {\n if (jumpTries.current !== target) return;\n const at = indexOf(target.id);\n if (at < 0) return;\n settlingUntil.current = Date.now() + SETTLING_MS;\n listRef.current?.scrollToIndex?.({ index: at, animated: !reducedMotion, viewPosition: 0.5 });\n lookForBottom();\n }, 250);\n },\n [indexOf, later, lookForBottom, reducedMotion],\n );\n const follow = useCallback(() => {\n if (atBottom.current && !jumping) toBottom(false);\n }, [jumping, toBottom]);\n\n if (loading && data.length === 0) {\n return (\n <View testID={`${testID}-loading`} accessible accessibilityLabel=\"Loading\" style={{ flex: 1, justifyContent: \"flex-end\", padding: 16, gap: 10 }}>\n {loadingView ?? <DefaultLoading />}\n </View>\n );\n }\n\n if (data.length === 0 && empty) {\n return (\n <View testID={testID} style={{ flex: 1, justifyContent: \"center\" }}>\n {listHeader}\n {empty}\n </View>\n );\n }\n\n return (\n <List\n ref={listRef}\n testID={testID}\n accessibilityRole=\"list\"\n data={data as readonly unknown[]}\n renderItem={renderListItem}\n keyExtractor={listKey}\n getItemType={listItemType}\n extraData={highlightedId}\n onStartReached={loadEarlier}\n onStartReachedThreshold={0.5}\n keyboardShouldPersistTaps=\"handled\"\n keyboardDismissMode={Platform.select({ ios: \"interactive\" as const, default: \"on-drag\" as const })}\n contentInsetAdjustmentBehavior=\"automatic\"\n contentContainerStyle={{ paddingVertical: 8, paddingHorizontal: 12 }}\n maintainVisibleContentPosition={mode.maintainVisibleContentPosition}\n scrollEventThrottle={32}\n onScroll={onScroll}\n onScrollBeginDrag={readerTookOver}\n onScrollToIndexFailed={onScrollToIndexFailed}\n {...(mode.followsByHand ? { onContentSizeChange: follow, onLayout: follow } : {})}\n ListHeaderComponent={listHeader}\n ListFooterComponent={footer ? <View>{footer}</View> : null}\n />\n );\n}\n\n/** A conversation's list. See the module docs. */\nexport const NativeThreadList = forwardRef(NativeThreadListInner) as <T>(\n props: NativeThreadListProps<T> & { ref?: React.Ref<NativeThreadListHandle> },\n) => ReactElement | null;\n\nfunction DefaultEarlier({ loading, label, onPress, testID }: { loading: boolean; label: string; onPress: () => void; testID: string }) {\n const colors = useThemeRoles();\n return (\n <View style={{ alignItems: \"center\", paddingVertical: 12 }}>\n {loading ? (\n <View testID={`${testID}-loading`} accessible accessibilityLabel={label} accessibilityState={{ busy: true }} style={{ gap: 8, alignItems: \"center\" }}>\n <NativeSkeleton width={180} height={14} />\n <NativeSkeleton width={120} height={14} />\n </View>\n ) : (\n <Pressable testID={testID} accessibilityRole=\"button\" accessibilityLabel={label} onPress={onPress} style={{ minHeight: 44, justifyContent: \"center\", paddingHorizontal: 16 }}>\n <NativeText preset=\"label\" style={{ color: colors.tint }}>\n {label}\n </NativeText>\n </Pressable>\n )}\n </View>\n );\n}\n\nfunction DefaultLoading() {\n return (\n <>\n <NativeSkeleton width={200} height={36} className=\"rounded-2xl\" />\n <View style={{ alignItems: \"flex-end\" }}>\n <NativeSkeleton width={160} height={36} className=\"rounded-2xl\" />\n </View>\n <NativeSkeleton width={240} height={36} className=\"rounded-2xl\" />\n </>\n );\n}\n","/**\n * NativeComposerBar — the bar you write a message in: an input that grows\n * with what you type (up to `maxLines`, then scrolls), a send button, and\n * slots beside and above it. ThreadPage's composer; chat, comments and AI\n * prompts build on it too.\n *\n * - **Modes:** `modes` with a `tone` each (\"Reply\" / \"Internal note\"). The\n * picker sits above the input, and an `internal` tone edges the bar and\n * the input in the theme's `warning` role, so a staff-only note never\n * reads like a reply (the send button keeps the tint: text on `warning`\n * would fail contrast). The row it sends carries the same tone (ThreadPage).\n * - **Slots:** `leading` (attach), `trailing` (beside send: an emoji button),\n * `above` (a reply preview, attachments waiting to send), `idleAction` (in\n * Send's place while there's nothing to send: a hold-to-record mic) and\n * `replaceInput` (instead of `leading` and the input: a recording's\n * waveform). Attachments with no text: pass `hasContent`.\n * - **More ways to send:** `sendActions` (\"Schedule\"). Touch and hold Send:\n * one action runs, several open a menu. Each is also an accessibility\n * action on Send.\n * - **Keyboard:** the bar doesn't move itself. Put it under a keyboard-aware\n * container (ThreadPage does, with `GenesisModules.keyboardAvoidingView`);\n * the list above it dismisses the keyboard interactively on a drag.\n * - **Accessibility:** send and the mode picker are 44pt targets, the input\n * is labelled by its placeholder (and says when it writes an internal\n * note), Sending is announced, and the input stays editable while a\n * message sends (the keyboard stays up).\n *\n * @stability Beta\n */\nimport { useEffect, useState, type ReactNode } from \"react\";\nimport { AccessibilityInfo, ActivityIndicator, Animated, Dimensions, Platform, Pressable, TextInput, View } from \"react-native\";\nimport type { ComposerMode } from \"@marktiderman/genesis-core/conversation\";\nimport { useThemeRoles } from \"../hooks/use-theme-roles\";\nimport { useGenesisModules } from \"../native-modules\";\nimport { usePressFeedback } from \"../hooks/use-press-feedback\";\nimport { NativeContextMenu } from \"./context-menu\";\nimport { NativeIcon } from \"./icon\";\nimport { NativeText } from \"./text\";\n\nexport type { ComposerMode, ComposerTone } from \"@marktiderman/genesis-core/conversation\";\n\nexport interface NativeComposerBarProps {\n value: string;\n onChangeText: (text: string) => void;\n onSend: () => void;\n /** A send is in flight: the button spins and won't send twice. */\n sending?: boolean;\n /** Turns sending off (besides a blank value). */\n disabled?: boolean;\n placeholder?: string;\n /** Send's label, to VoiceOver. Default \"Send\". */\n sendLabel?: string;\n sendingLabel?: string;\n maxLength?: number;\n /** The input grows to this many lines, then scrolls. Default 6. */\n maxLines?: number;\n /** Ways to send (\"Reply\", \"Internal note\"). Two or more show the picker. */\n modes?: readonly ComposerMode[];\n /** The picker's name, to VoiceOver. Default \"Send as\". */\n modesLabel?: string;\n /** The chosen mode's id. Default the first. */\n mode?: string;\n onModeChange?: (id: string) => void;\n leading?: ReactNode;\n trailing?: ReactNode;\n above?: ReactNode;\n /**\n * Whether there's something to send. By default, a `value` that isn't blank; pass `true` when\n * attachments are waiting and no text is needed, and `false` while `replaceInput` is showing.\n */\n hasContent?: boolean;\n /** Takes Send's place (the same 44pt spot) while there's nothing to send and nothing sending: a hold-to-record mic. */\n idleAction?: ReactNode;\n /** Shown instead of `leading` and the input (a recording in progress). Label it yourself: it's one region to VoiceOver. */\n replaceInput?: ReactNode;\n /** Touch and hold Send for these (one runs straight away; several open a menu). Each is also an accessibility action on Send. */\n sendActions?: readonly ComposerSendAction[];\n /** Title of the menu when there are several `sendActions`. */\n sendActionsTitle?: string;\n /** The hint on Send when it has `sendActions`. Default \"Touch and hold for more options\". */\n sendActionsHint?: string;\n /** Passed to the input (to insert at the cursor, say). */\n onSelectionChange?: (e: { nativeEvent: { selection: { start: number; end: number } } }) => void;\n /**\n * The input takes text (default). When false, Send is off and the input reads as disabled.\n * `idleAction` is the app's, so disable it too.\n */\n editable?: boolean;\n testID?: string;\n}\n\n/** Another way to send (touch and hold Send). */\nexport interface ComposerSendAction {\n id: string;\n label: string;\n onPress: () => void;\n destructive?: boolean;\n}\n\nconst LINE = 22;\nconst PAD_Y = 8;\n\nexport function NativeComposerBar({\n value,\n onChangeText,\n onSend,\n sending = false,\n disabled = false,\n placeholder = \"Message\",\n sendLabel = \"Send\",\n sendingLabel = \"Sending\",\n maxLength,\n maxLines = 6,\n modes,\n modesLabel = \"Send as\",\n mode,\n onModeChange,\n leading,\n trailing,\n above,\n hasContent,\n idleAction,\n replaceInput,\n sendActions,\n sendActionsTitle,\n sendActionsHint = \"Touch and hold for more options\",\n onSelectionChange,\n editable = true,\n testID = \"composer\",\n}: NativeComposerBarProps) {\n const colors = useThemeRoles();\n const { symbol, icons } = useGenesisModules();\n // No icon module: the arrow would draw nothing, so the button says its label.\n const hasIcon = Boolean(symbol || icons?.[\"arrow-up\"]);\n const current = modes?.find((m) => m.id === mode) ?? modes?.[0];\n const internal = current?.tone === \"internal\";\n const blank = !(hasContent ?? value.trim().length > 0);\n const canSend = !blank && !disabled && !sending && editable;\n const actions = sendActions?.length ? sendActions : null;\n const [menuOpen, setMenuOpen] = useState(false);\n const idle = idleAction != null && blank && !sending;\n const sendPress = usePressFeedback({ haptic: \"light\", scale: 0.9, disabled: !canSend });\n // A multiline input grows with its text by itself; this caps it, after which it scrolls.\n // Lines grow with the person's text size (Dynamic Type, Android font scale).\n const fontScale = Dimensions.get(\"window\").fontScale || 1;\n const maxHeight = Math.ceil(LINE * fontScale) * maxLines + PAD_Y * 2;\n // Say \"Sending\" on iOS too (a live region is Android-only).\n useEffect(() => {\n if (sending && Platform.OS === \"ios\") (AccessibilityInfo as { announceForAccessibility?: (t: string) => void }).announceForAccessibility?.(sendingLabel);\n }, [sending, sendingLabel]);\n\n return (\n <View\n testID={testID}\n style={{\n paddingHorizontal: 12,\n paddingTop: 8,\n paddingBottom: 8,\n gap: 6,\n backgroundColor: colors.groupedBackground,\n borderTopWidth: internal ? 2 : 0,\n borderTopColor: colors.warning,\n }}\n >\n {modes && modes.length > 1 ? (\n <View testID={`${testID}-modes`} accessibilityRole=\"tablist\" accessibilityLabel={modesLabel} style={{ flexDirection: \"row\", gap: 4 }}>\n {modes.map((m) => {\n const on = m.id === current?.id;\n return (\n <Pressable\n key={m.id}\n testID={`${testID}-mode-${m.id}`}\n accessibilityRole=\"tab\"\n accessibilityState={{ selected: on }}\n accessibilityLabel={m.label}\n onPress={() => onModeChange?.(m.id)}\n style={{\n minHeight: 44,\n justifyContent: \"center\",\n paddingHorizontal: 12,\n borderRadius: 22,\n backgroundColor: on ? colors.fill : \"transparent\",\n borderWidth: m.tone === \"internal\" ? 1 : 0,\n borderColor: colors.warning,\n }}\n >\n <NativeText preset=\"label\" style={{ color: on ? colors.label : colors.secondaryLabel }}>\n {m.label}\n </NativeText>\n </Pressable>\n );\n })}\n </View>\n ) : null}\n {above}\n <View style={{ flexDirection: \"row\", alignItems: \"flex-end\", gap: 8 }}>\n {replaceInput != null ? (\n <View style={{ flex: 1, minHeight: 44, justifyContent: \"center\" }}>{replaceInput}</View>\n ) : (\n <>\n {leading}\n <TextInput\n testID={`${testID}-input`}\n value={value}\n onChangeText={onChangeText}\n placeholder={internal ? current!.label : placeholder}\n placeholderTextColor={colors.tertiaryLabel as string}\n accessibilityLabel={internal ? current!.label : placeholder}\n accessibilityState={editable ? undefined : { disabled: true }}\n editable={editable}\n onSelectionChange={onSelectionChange}\n multiline\n maxLength={maxLength}\n style={{\n flex: 1,\n minHeight: 44,\n maxHeight,\n textAlignVertical: \"center\",\n paddingHorizontal: 14,\n paddingTop: PAD_Y,\n paddingBottom: PAD_Y,\n borderRadius: 22,\n fontSize: 17,\n lineHeight: LINE,\n color: colors.label as string,\n backgroundColor: colors.surface,\n borderWidth: internal ? 1 : 0,\n borderColor: colors.warning,\n opacity: editable ? 1 : 0.6,\n }}\n />\n </>\n )}\n {trailing}\n {idle ? (\n <View testID={`${testID}-idle`} style={{ minWidth: 44, height: 44, alignItems: \"center\", justifyContent: \"center\" }}>\n {idleAction}\n </View>\n ) : sending ? (\n <View testID={`${testID}-sending`} accessible accessibilityLabel={sendingLabel} accessibilityLiveRegion=\"polite\" style={{ width: 44, height: 44, alignItems: \"center\", justifyContent: \"center\" }}>\n <ActivityIndicator />\n </View>\n ) : (\n <Animated.View style={sendPress.style}>\n <Pressable\n testID={`${testID}-send`}\n accessibilityRole=\"button\"\n accessibilityLabel={sendLabel}\n accessibilityState={{ disabled: !canSend }}\n accessibilityHint={actions ? sendActionsHint : undefined}\n accessibilityActions={actions && canSend ? actions.map((a) => ({ name: a.id, label: a.label })) : undefined}\n onAccessibilityAction={actions ? (e) => actions.find((a) => a.id === e.nativeEvent.actionName)?.onPress() : undefined}\n onLongPress={actions ? () => (actions.length === 1 ? actions[0]!.onPress() : setMenuOpen(true)) : undefined}\n disabled={!canSend}\n onPressIn={sendPress.onPressIn}\n onPressOut={sendPress.onPressOut}\n onPress={() => {\n sendPress.confirm();\n onSend();\n }}\n style={{ minWidth: 44, height: 44, paddingHorizontal: hasIcon ? 0 : 14, borderRadius: 22, alignItems: \"center\", justifyContent: \"center\", backgroundColor: canSend ? colors.tint : colors.fill }}\n >\n {hasIcon ? (\n <NativeIcon name=\"arrow-up\" size={20} color={canSend ? colors.background : colors.tertiaryLabel} />\n ) : (\n <NativeText preset=\"label\" className={canSend ? \"text-primary-foreground\" : undefined} style={canSend ? undefined : { color: colors.tertiaryLabel }}>\n {sendLabel}\n </NativeText>\n )}\n </Pressable>\n </Animated.View>\n )}\n </View>\n {actions && actions.length > 1 ? <NativeContextMenu open={menuOpen} onOpenChange={setMenuOpen} actions={actions} {...(sendActionsTitle ? { title: sendActionsTitle } : {})} testID={`${testID}-send-menu`} /> : null}\n </View>\n );\n}\n","// The items in a slot's children, as a person wrote them: arrays and Fragments opened up (a\n// screen's `<>{a}{b}</>` is two stat tiles, not one), and nothing (null, false, \"\") left out.\n// `Children.toArray` alone opens arrays but keeps a Fragment as a single child.\nimport { Children, Fragment, isValidElement, type ReactNode } from \"react\";\n\nexport function flattenChildren(children: ReactNode): ReactNode[] {\n const out: ReactNode[] = [];\n for (const child of Children.toArray(children)) {\n if (isValidElement<{ children?: ReactNode }>(child) && child.type === Fragment) out.push(...flattenChildren(child.props.children));\n else if (child !== \"\") out.push(child);\n }\n return out;\n}\n"]}
@@ -1,13 +1,14 @@
1
- import { NativeThreadList, NativeComposerBar } from './chunk-SG7LYX7Z.js';
2
- import { composeHeaderOptions, ScreenContainer, NavBarSaveButton } from './chunk-GGH3ZQNO.js';
3
- import { NativeText, NativeListItem, NativeButton, NativeSectionListHeader, NativeEmptyState, NativeInput, NativeIcon } from './chunk-VEWSY4TZ.js';
4
- import { useThemeRoles, sentBubbleColor, useGenesisModules, useThemeMode } from './chunk-PMS2V46D.js';
1
+ import { NativeThreadList, NativeComposerBar, flattenChildren } from './chunk-BQYT6TH2.js';
2
+ import { composeHeaderOptions, ScreenContainer, NavBarSaveButton } from './chunk-TUDJDIGC.js';
3
+ import { NativeText, NativeListItem, NativeButton, NativeSectionListHeader, NativeEmptyState, NativeInput, NativeImage, NativeInlineAlert, NativeIcon } from './chunk-D4UU6KIF.js';
4
+ import { useThemeRoles, sentBubbleColor, useGenesisModules, useThemeMode } from './chunk-VHUUOH46.js';
5
5
  import { cn } from './chunk-OHZD7KRO.js';
6
6
  import { createContext, memo, Fragment, useState, useMemo, createElement, useContext, useCallback, useRef, useEffect } from 'react';
7
7
  import { renderSlot } from '@marktiderman/genesis-core/slots';
8
- import { View, Pressable, Platform, StyleSheet, Alert, KeyboardAvoidingView, ScrollView, RefreshControl, SectionList, Image, Text, AccessibilityInfo, Linking } from 'react-native';
8
+ import { View, Pressable, Platform, StyleSheet, Alert, KeyboardAvoidingView, ScrollView, RefreshControl, SectionList, Image, Text, AccessibilityInfo, Keyboard, Linking } from 'react-native';
9
9
  import { jsxs, jsx, Fragment as Fragment$1 } from 'react/jsx-runtime';
10
- import { SafeAreaInsetsContext, SafeAreaView } from 'react-native-safe-area-context';
10
+ import { groupNotificationsByDay } from '@marktiderman/genesis-core/headless';
11
+ import { SafeAreaInsetsContext, SafeAreaView, useSafeAreaInsets } from 'react-native-safe-area-context';
11
12
  import { readReceiptFor, DEFAULT_THREAD_LABELS, formatMessageTime } from '@marktiderman/genesis-core/conversation';
12
13
  export { readReceiptFor } from '@marktiderman/genesis-core/conversation';
13
14
 
@@ -169,7 +170,7 @@ function DefaultRow({ isLast, id: _id, leading, ...row }) {
169
170
  )
170
171
  ] });
171
172
  }
172
- function DefaultFootnote({ text }) {
173
+ function DefaultFootnote({ text: text2 }) {
173
174
  const colors = useThemeRoles();
174
175
  if (Platform.OS === "ios") {
175
176
  return /* @__PURE__ */ jsx(
@@ -178,11 +179,11 @@ function DefaultFootnote({ text }) {
178
179
  dynamicTypeRamp: "footnote",
179
180
  className: "px-4 pt-1.5",
180
181
  style: { marginHorizontal: IOS_GROUP_MARGIN, color: colors.secondaryLabel, fontSize: 13, lineHeight: 18 },
181
- children: text
182
+ children: text2
182
183
  }
183
184
  );
184
185
  }
185
- return /* @__PURE__ */ jsx(NativeText, { preset: "body-sm", className: "px-4 pt-2", style: { color: colors.secondaryLabel }, children: text });
186
+ return /* @__PURE__ */ jsx(NativeText, { preset: "body-sm", className: "px-4 pt-2", style: { color: colors.secondaryLabel }, children: text2 });
186
187
  }
187
188
  function DefaultDangerousActions({ actions, testID }) {
188
189
  return /* @__PURE__ */ jsx(View, { testID, className: cn("mt-8 gap-2 px-4"), children: actions.map((action) => /* @__PURE__ */ jsx(
@@ -204,14 +205,18 @@ var KeyboardScrollContext = createContext(null);
204
205
  function KeyboardScrollProvider({
205
206
  component,
206
207
  toolbar,
208
+ sticky,
207
209
  children
208
210
  }) {
209
- const value = useMemo(() => ({ component, toolbar: toolbar ?? null }), [component, toolbar]);
211
+ const value = useMemo(() => ({ component, toolbar: toolbar ?? null, sticky: sticky ?? null }), [component, toolbar, sticky]);
210
212
  return createElement(KeyboardScrollContext.Provider, { value }, children);
211
213
  }
212
214
  function useKeyboardScroll() {
213
215
  return useContext(KeyboardScrollContext)?.component ?? null;
214
216
  }
217
+ function useKeyboardSticky() {
218
+ return useContext(KeyboardScrollContext)?.sticky ?? null;
219
+ }
215
220
  function useKeyboardToolbar() {
216
221
  return useContext(KeyboardScrollContext)?.toolbar ?? null;
217
222
  }
@@ -347,33 +352,8 @@ function getNotificationsPageStackOptions(props) {
347
352
  headerOptions
348
353
  });
349
354
  }
350
- function bucketFor(ts, now = /* @__PURE__ */ new Date()) {
351
- const d = typeof ts === "string" ? new Date(ts) : ts;
352
- const startOfDay = (date) => {
353
- const x = new Date(date);
354
- x.setHours(0, 0, 0, 0);
355
- return x.getTime();
356
- };
357
- const today = startOfDay(now);
358
- const yesterday = today - 24 * 60 * 60 * 1e3;
359
- const day = startOfDay(d);
360
- if (day === today) return "Today";
361
- if (day === yesterday) return "Yesterday";
362
- return "Earlier";
363
- }
364
- function groupByDate(items, now = /* @__PURE__ */ new Date()) {
365
- const map = /* @__PURE__ */ new Map();
366
- for (const item of items) {
367
- const bucket = bucketFor(item.timestamp, now);
368
- const arr = map.get(bucket) ?? [];
369
- arr.push(item);
370
- map.set(bucket, arr);
371
- }
372
- const order = ["Today", "Yesterday", "Earlier"];
373
- return order.filter((title) => map.has(title)).map((title) => ({
374
- title,
375
- data: map.get(title) ?? []
376
- }));
355
+ function groupByDate(items, now = /* @__PURE__ */ new Date(), timeZone) {
356
+ return groupNotificationsByDay(items, { now, timeZone });
377
357
  }
378
358
  function flattenSections(sections) {
379
359
  const rows = [];
@@ -401,6 +381,7 @@ function defaultStickyHeaderOffset(os, version, safeAreaTop) {
401
381
  }
402
382
  function NotificationsPage({
403
383
  items,
384
+ timeZone,
404
385
  refreshing,
405
386
  onRefresh,
406
387
  emptyState,
@@ -414,7 +395,7 @@ function NotificationsPage({
414
395
  }) {
415
396
  const safeTop = useContext(SafeAreaInsetsContext)?.top ?? 0;
416
397
  const stickAt = stickyHeaderOffset ?? defaultStickyHeaderOffset(Platform.OS, Platform.Version, safeTop);
417
- const sections = useMemo(() => groupByDate(items), [items]);
398
+ const sections = useMemo(() => groupByDate(items, /* @__PURE__ */ new Date(), timeZone), [items, timeZone]);
418
399
  const { list: FlashList } = useGenesisModules();
419
400
  const flat = useMemo(() => flattenSections(sections), [sections]);
420
401
  const renderFlatRow = useCallback(
@@ -545,7 +526,7 @@ function UnreadDot({
545
526
  }
546
527
  );
547
528
  }
548
- var announce = (text) => AccessibilityInfo.announceForAccessibility?.(text);
529
+ var announce = (text2) => AccessibilityInfo.announceForAccessibility?.(text2);
549
530
  function getThreadPageStackOptions(props) {
550
531
  return composeHeaderOptions({
551
532
  headerTitle: props.headerTitle ?? "Conversation",
@@ -1068,6 +1049,129 @@ function ForgotPasswordLink({
1068
1049
  }
1069
1050
  );
1070
1051
  }
1052
+ var text = (node, className, header = false) => typeof node === "string" || typeof node === "number" ? /* @__PURE__ */ jsx(Text, { className, accessibilityRole: header ? "header" : void 0, children: node }) : node;
1053
+ function PageTitle({ title, subtitle, actions, hideTitle, testID, size = "page", above }) {
1054
+ if (hideTitle && !actions && !above) return null;
1055
+ return /* @__PURE__ */ jsxs(View, { testID: `${testID}-header`, className: "gap-2", children: [
1056
+ above,
1057
+ hideTitle ? null : /* @__PURE__ */ jsxs(View, { className: "gap-1", children: [
1058
+ text(title, size === "document" ? "text-3xl font-bold text-foreground" : "text-2xl font-bold text-foreground", true),
1059
+ subtitle ? text(subtitle, "text-sm text-muted-foreground") : null
1060
+ ] }),
1061
+ actions ? /* @__PURE__ */ jsx(View, { className: "flex-row flex-wrap items-center gap-2", children: actions }) : null
1062
+ ] });
1063
+ }
1064
+ function DashboardPage({ title, subtitle, actions, hideTitle, stats, statColumns = 2, children, testID = "dashboard-page", ...container }) {
1065
+ const tiles = flattenChildren(stats);
1066
+ const basis = statColumns === 1 ? "w-full" : statColumns === 3 ? "min-w-[30%]" : "min-w-[45%]";
1067
+ return /* @__PURE__ */ jsxs(ScreenContainer, { ...container, scroll: true, testID, contentClassName: cn("gap-6 p-4", container.contentClassName), children: [
1068
+ /* @__PURE__ */ jsx(PageTitle, { title, subtitle, actions, hideTitle, testID }),
1069
+ tiles.length ? /* @__PURE__ */ jsx(View, { testID: `${testID}-stats`, className: "flex-row flex-wrap gap-3", children: tiles.map((tile, i) => /* @__PURE__ */ jsx(View, { className: cn("flex-1", basis), children: tile }, i)) }) : null,
1070
+ /* @__PURE__ */ jsx(View, { testID: `${testID}-body`, className: "gap-8", children })
1071
+ ] });
1072
+ }
1073
+ function DetailPage({ title, subtitle, actions, hideTitle, breadcrumb, sidebar, children, testID = "detail-page", ...container }) {
1074
+ return /* @__PURE__ */ jsxs(ScreenContainer, { ...container, scroll: true, testID, contentClassName: cn("gap-6 p-4", container.contentClassName), children: [
1075
+ /* @__PURE__ */ jsx(
1076
+ PageTitle,
1077
+ {
1078
+ title,
1079
+ subtitle,
1080
+ actions,
1081
+ hideTitle,
1082
+ testID,
1083
+ above: breadcrumb ? text(breadcrumb, "text-sm text-muted-foreground") : void 0
1084
+ }
1085
+ ),
1086
+ /* @__PURE__ */ jsx(View, { testID: `${testID}-content`, children }),
1087
+ sidebar ? /* @__PURE__ */ jsx(View, { testID: `${testID}-sidebar`, className: "gap-4 border-t border-border pt-4", children: sidebar }) : null
1088
+ ] });
1089
+ }
1090
+ function DocumentPage({ title, subtitle, actions, hideTitle, icon, cover, width = "reading", children, testID = "document-page", ...container }) {
1091
+ const hasCover = cover != null && cover !== false;
1092
+ return /* @__PURE__ */ jsxs(ScreenContainer, { ...container, scroll: true, testID, contentClassName: cn("pb-8", container.contentClassName), children: [
1093
+ hasCover ? /* @__PURE__ */ jsx(View, { testID: `${testID}-cover`, className: "h-40 w-full overflow-hidden bg-muted", children: typeof cover === "string" ? /* @__PURE__ */ jsx(NativeImage, { src: cover, className: "h-full w-full" }) : cover }) : null,
1094
+ /* @__PURE__ */ jsxs(View, { className: cn("w-full gap-6 px-4", width === "reading" && "max-w-[680px] self-center", hasCover ? "pt-0" : "pt-4"), children: [
1095
+ /* @__PURE__ */ jsx(
1096
+ PageTitle,
1097
+ {
1098
+ title,
1099
+ subtitle,
1100
+ actions,
1101
+ hideTitle,
1102
+ testID,
1103
+ size: "document",
1104
+ above: icon != null ? /* @__PURE__ */ jsx(View, { testID: `${testID}-icon`, className: cn("h-16 w-16 items-center justify-center", hasCover && "-mt-8"), accessibilityElementsHidden: typeof icon === "string", children: typeof icon === "string" ? /* @__PURE__ */ jsx(Text, { className: "text-5xl", children: icon }) : icon }) : void 0
1105
+ }
1106
+ ),
1107
+ /* @__PURE__ */ jsx(View, { testID: `${testID}-body`, children })
1108
+ ] })
1109
+ ] });
1110
+ }
1111
+ var dismissKeyboard = () => {
1112
+ Keyboard.dismiss();
1113
+ return false;
1114
+ };
1115
+ var FORM_ACTIONS_HEIGHT = 64;
1116
+ function FormPage({ title, description, errors, actions, hideTitle, children, testID = "form-page", onRefresh: _onRefresh, refreshing: _refreshing, ...container }) {
1117
+ const KeyboardScroll = useKeyboardScroll();
1118
+ const KeyboardToolbar = useKeyboardToolbar();
1119
+ const Sticky = useKeyboardSticky();
1120
+ const insets = useSafeAreaInsets();
1121
+ const { contentClassName, ...outer } = container;
1122
+ const form = /* @__PURE__ */ jsxs(Fragment$1, { children: [
1123
+ /* @__PURE__ */ jsx(PageTitle, { title, subtitle: description, hideTitle, testID }),
1124
+ errors ? /* @__PURE__ */ jsx(NativeInlineAlert, { variant: "destructive", testID: `${testID}-errors`, children: text(errors, "text-sm text-foreground") }) : null,
1125
+ /* @__PURE__ */ jsx(View, { testID: `${testID}-fields`, className: "gap-6", children })
1126
+ ] });
1127
+ const bar = (inFlow) => actions ? /* @__PURE__ */ jsx(
1128
+ View,
1129
+ {
1130
+ testID: `${testID}-actions`,
1131
+ onStartShouldSetResponderCapture: dismissKeyboard,
1132
+ className: cn("flex-row flex-wrap items-center justify-end gap-2", !inFlow && "border-t border-border bg-background px-4 py-3"),
1133
+ children: actions
1134
+ }
1135
+ ) : null;
1136
+ if (KeyboardScroll) {
1137
+ const toolbar = KeyboardToolbar ? KEYBOARD_TOOLBAR_HEIGHT : 0;
1138
+ const sticky = Boolean(Sticky && actions);
1139
+ return /* @__PURE__ */ jsxs(ScreenContainer, { testID, ...outer, children: [
1140
+ /* @__PURE__ */ jsx(
1141
+ KeyboardScroll,
1142
+ {
1143
+ testID: `${testID}-scroll`,
1144
+ keyboardShouldPersistTaps: "handled",
1145
+ contentInsetAdjustmentBehavior: "automatic",
1146
+ bottomOffset: 24 + toolbar + (sticky ? FORM_ACTIONS_HEIGHT : 0),
1147
+ children: /* @__PURE__ */ jsxs(View, { className: cn("gap-6 p-4", contentClassName), children: [
1148
+ form,
1149
+ sticky ? null : bar(true)
1150
+ ] })
1151
+ }
1152
+ ),
1153
+ sticky && Sticky ? (
1154
+ // Open, the bar meets the keyboard (or its toolbar) rather than floating the home indicator's height above it.
1155
+ /* @__PURE__ */ jsx(Sticky, { offset: { closed: 0, opened: insets.bottom - toolbar }, children: bar(false) })
1156
+ ) : null,
1157
+ KeyboardToolbar ? /* @__PURE__ */ jsx(KeyboardToolbar, {}) : null
1158
+ ] });
1159
+ }
1160
+ return /* @__PURE__ */ jsx(KeyboardAvoidingView, { testID: `${testID}-kav`, style: { flex: 1 }, behavior: Platform.OS === "ios" ? "padding" : void 0, children: /* @__PURE__ */ jsxs(ScreenContainer, { testID, ...outer, children: [
1161
+ /* @__PURE__ */ jsx(
1162
+ ScrollView,
1163
+ {
1164
+ testID: `${testID}-scroll`,
1165
+ className: "flex-1",
1166
+ contentContainerClassName: cn("gap-6 p-4", contentClassName),
1167
+ keyboardShouldPersistTaps: "handled",
1168
+ contentInsetAdjustmentBehavior: "automatic",
1169
+ children: form
1170
+ }
1171
+ ),
1172
+ bar(false)
1173
+ ] }) });
1174
+ }
1071
1175
  function AuthScreen({
1072
1176
  branding,
1073
1177
  providers: givenProviders,
@@ -1189,6 +1293,6 @@ function googleProvider({ onPress, label = "Continue with Google", icon, disable
1189
1293
  return { id: "google", label, icon, onPress, disabled };
1190
1294
  }
1191
1295
 
1192
- export { AppleSignInButton, AuthBranding, AuthForm, AuthScreen, ForgotPasswordLink, KEYBOARD_TOOLBAR_HEIGHT, KeyboardScrollProvider, NotificationsPage, SettingsPage, SettingsSubPage, SocialAuthRow, ThreadPage, appleProvider, confirmDiscardChanges, defaultStickyHeaderOffset, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, useKeyboardScroll, useKeyboardToolbar };
1193
- //# sourceMappingURL=chunk-EAHK7D7N.js.map
1194
- //# sourceMappingURL=chunk-EAHK7D7N.js.map
1296
+ export { AppleSignInButton, AuthBranding, AuthForm, AuthScreen, DashboardPage, DetailPage, DocumentPage, ForgotPasswordLink, FormPage, KEYBOARD_TOOLBAR_HEIGHT, KeyboardScrollProvider, NotificationsPage, SettingsPage, SettingsSubPage, SocialAuthRow, ThreadPage, appleProvider, confirmDiscardChanges, defaultStickyHeaderOffset, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, useKeyboardScroll, useKeyboardSticky, useKeyboardToolbar };
1297
+ //# sourceMappingURL=chunk-C2ARUGT7.js.map
1298
+ //# sourceMappingURL=chunk-C2ARUGT7.js.map