@marktiderman/genesis-ui-native 3.8.0 → 3.9.1
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.
- package/dist/{chunk-T7FEVT62.js → chunk-FM5JYR6R.js} +6 -6
- package/dist/chunk-FM5JYR6R.js.map +1 -0
- package/dist/{chunk-DHONOH6K.js → chunk-GA75M5UT.js} +4 -4
- package/dist/chunk-GA75M5UT.js.map +1 -0
- package/dist/{chunk-UZCJDMGE.js → chunk-K2WQU3XP.js} +7 -7
- package/dist/chunk-K2WQU3XP.js.map +1 -0
- package/dist/{chunk-PWYMRUAK.js → chunk-P4IN63O4.js} +4 -4
- package/dist/chunk-P4IN63O4.js.map +1 -0
- package/dist/components/index.js +2 -2
- package/dist/data/index.js +6 -6
- package/dist/data/index.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/layouts/index.js +2 -2
- package/package.json +3 -3
- package/src/components/chip-group.tsx +1 -1
- package/src/components/inline-alert.tsx +1 -1
- package/src/components/search-bar.tsx +1 -1
- package/src/components/stepper.tsx +1 -1
- package/src/components/tab-bar.tsx +2 -2
- package/src/data/resource-view/NativeLinkPicker.tsx +1 -1
- package/src/data/resource-view/NativeRecordView.tsx +1 -1
- package/src/data/resource-view/NativeResourceFormSheet.tsx +1 -1
- package/src/data/resource-view/display.tsx +1 -1
- package/src/layouts/__tests__/settings-page-native-look.test.tsx +1 -1
- package/src/layouts/auth.tsx +1 -1
- package/src/layouts/inbox-page.tsx +1 -1
- package/src/layouts/nav-bar.tsx +1 -1
- package/src/layouts/notifications-page.tsx +1 -1
- package/src/layouts/settings-page.tsx +2 -2
- package/dist/chunk-DHONOH6K.js.map +0 -1
- package/dist/chunk-PWYMRUAK.js.map +0 -1
- package/dist/chunk-T7FEVT62.js.map +0 -1
- package/dist/chunk-UZCJDMGE.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
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-
|
|
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-K2WQU3XP.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-GA75M5UT.js';
|
|
3
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-
|
|
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-FM5JYR6R.js';
|
|
5
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-
|
|
6
|
+
export { InboxPage, NavBarSaveButton, NavBarSearchBar, NavBarTitle, ScreenContainer, composeHeaderOptions, formatInboxTime, getInboxPageStackOptions, showInboxActions } from './chunk-P4IN63O4.js';
|
|
7
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
8
|
export { GenesisModulesProvider, animateMotion, motionSpring, motionTiming, playHaptic, sentBubbleColor, useGenesisModules, useHaptics, useMotion, usePressFeedback, useReducedMotion, useThemeMode, useThemeRoles } from './chunk-PWS2HLDE.js';
|
|
9
9
|
export { cn } from './chunk-OHZD7KRO.js';
|
package/dist/layouts/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
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-FM5JYR6R.js';
|
|
2
2
|
import '../chunk-JZ7RAGDQ.js';
|
|
3
|
-
export { InboxPage, NavBarSaveButton, NavBarSearchBar, NavBarTitle, ScreenContainer, composeHeaderOptions, formatInboxTime, getInboxPageStackOptions, showInboxActions } from '../chunk-
|
|
3
|
+
export { InboxPage, NavBarSaveButton, NavBarSearchBar, NavBarTitle, ScreenContainer, composeHeaderOptions, formatInboxTime, getInboxPageStackOptions, showInboxActions } from '../chunk-P4IN63O4.js';
|
|
4
4
|
import '../chunk-FGIIBON3.js';
|
|
5
5
|
import '../chunk-PWS2HLDE.js';
|
|
6
6
|
import '../chunk-OHZD7KRO.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marktiderman/genesis-ui-native",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"@expo/ui": ">=58.0.0",
|
|
84
84
|
"@gorhom/bottom-sheet": ">=5.0.0",
|
|
85
85
|
"@hookform/resolvers": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0",
|
|
86
|
-
"@marktiderman/genesis-core": "^2.
|
|
87
|
-
"@marktiderman/genesis-design-system": "^1.
|
|
86
|
+
"@marktiderman/genesis-core": "^2.13.0",
|
|
87
|
+
"@marktiderman/genesis-design-system": "^1.10.0",
|
|
88
88
|
"@react-native-community/datetimepicker": ">=8.0.0",
|
|
89
89
|
"@shopify/flash-list": ">=2.0.0",
|
|
90
90
|
"@tanstack/react-query": "^5.0.0",
|
|
@@ -50,7 +50,7 @@ const variantClasses: Record<NativeInlineAlertVariant, string> = {
|
|
|
50
50
|
|
|
51
51
|
const titleClasses: Record<NativeInlineAlertVariant, string> = {
|
|
52
52
|
info: "text-foreground",
|
|
53
|
-
success: "text-primary",
|
|
53
|
+
success: "text-primary-text",
|
|
54
54
|
warning: "text-warning",
|
|
55
55
|
destructive: "text-destructive",
|
|
56
56
|
};
|
|
@@ -120,7 +120,7 @@ export function NativeSearchBar({
|
|
|
120
120
|
}}
|
|
121
121
|
className="min-h-[44px] items-center justify-center px-2"
|
|
122
122
|
>
|
|
123
|
-
<Text className="text-base text-primary">{cancelLabel}</Text>
|
|
123
|
+
<Text className="text-base text-primary-text">{cancelLabel}</Text>
|
|
124
124
|
</Pressable>
|
|
125
125
|
) : null}
|
|
126
126
|
</View>
|
|
@@ -53,7 +53,7 @@ function Slot({ item, active }: { item: Pick<NativeTabBarItem, "label" | "icon"
|
|
|
53
53
|
</View>
|
|
54
54
|
) : null}
|
|
55
55
|
</View>
|
|
56
|
-
<Text numberOfLines={1} className={cn("text-xs font-medium", active ? "text-primary" : "text-muted-foreground")}>
|
|
56
|
+
<Text numberOfLines={1} className={cn("text-xs font-medium", active ? "text-primary-text" : "text-muted-foreground")}>
|
|
57
57
|
{item.label}
|
|
58
58
|
</Text>
|
|
59
59
|
</View>
|
|
@@ -120,7 +120,7 @@ export function NativeTabBar({
|
|
|
120
120
|
className={cn("min-h-[44px] flex-row items-center gap-3 rounded-lg px-3", active && "bg-accent")}
|
|
121
121
|
>
|
|
122
122
|
{item.icon}
|
|
123
|
-
<Text className={cn("flex-1 text-base font-medium", active ? "text-
|
|
123
|
+
<Text className={cn("flex-1 text-base font-medium", active ? "text-accent-foreground" : "text-foreground")}>{item.label}</Text>
|
|
124
124
|
{item.badge != null ? <NativeBadge variant="secondary">{item.badge}</NativeBadge> : null}
|
|
125
125
|
</Pressable>
|
|
126
126
|
);
|
|
@@ -182,7 +182,7 @@ function Option({
|
|
|
182
182
|
>
|
|
183
183
|
<Text className={muted ? "text-base text-muted-foreground" : "text-base text-foreground"}>{label}</Text>
|
|
184
184
|
{selected ? (
|
|
185
|
-
<Text className="text-base text-primary" accessible={false}>
|
|
185
|
+
<Text className="text-base text-primary-text" accessible={false}>
|
|
186
186
|
✓
|
|
187
187
|
</Text>
|
|
188
188
|
) : null}
|
|
@@ -795,7 +795,7 @@ function Group({ title, children, testID }: { title?: string | undefined; childr
|
|
|
795
795
|
return (
|
|
796
796
|
<View testID={testID} style={{ gap: 6 }}>
|
|
797
797
|
{title ? (
|
|
798
|
-
<NativeText preset="caption" accessibilityRole="header" className={ios ? "uppercase text-muted-foreground px-4" : "text-primary px-4"}>
|
|
798
|
+
<NativeText preset="caption" accessibilityRole="header" className={ios ? "uppercase text-muted-foreground px-4" : "text-primary-text px-4"}>
|
|
799
799
|
{title}
|
|
800
800
|
</NativeText>
|
|
801
801
|
) : null}
|
|
@@ -149,7 +149,7 @@ export function NativeResourceFormSheet({
|
|
|
149
149
|
hitSlop={8}
|
|
150
150
|
className="min-h-[44px] justify-center px-3"
|
|
151
151
|
>
|
|
152
|
-
<Text className="text-base text-primary">{messages.common.cancel}</Text>
|
|
152
|
+
<Text className="text-base text-primary-text">{messages.common.cancel}</Text>
|
|
153
153
|
</Pressable>
|
|
154
154
|
<NativeText preset="body" accessibilityRole="header" className="font-semibold" numberOfLines={1}>
|
|
155
155
|
{title}
|
|
@@ -166,7 +166,7 @@ function LinkText({ url, label }: { url: string; label: string }) {
|
|
|
166
166
|
return (
|
|
167
167
|
<Text
|
|
168
168
|
accessibilityRole="link"
|
|
169
|
-
className="text-base text-primary underline"
|
|
169
|
+
className="text-base text-primary-text underline"
|
|
170
170
|
onPress={() => void Linking.openURL(url)}
|
|
171
171
|
>
|
|
172
172
|
{label}
|
|
@@ -124,7 +124,7 @@ describe("SettingsPage on Android (Material)", () => {
|
|
|
124
124
|
render(<SettingsPage testID="s" sections={sections} />);
|
|
125
125
|
const header = screen.getByTestId("s-section-account-header");
|
|
126
126
|
expect(header.getAttribute("role")).toBe("header");
|
|
127
|
-
expect(header.className).toContain("text-primary");
|
|
127
|
+
expect(header.className).toContain("text-primary-text");
|
|
128
128
|
expect(header.className).not.toMatch(/\bbg-|\bborder/);
|
|
129
129
|
const style = styleOf(header);
|
|
130
130
|
expect(style.textTransform).toBeUndefined();
|
package/src/layouts/auth.tsx
CHANGED
|
@@ -363,7 +363,7 @@ export function ForgotPasswordLink({
|
|
|
363
363
|
hitSlop={8}
|
|
364
364
|
className="self-end"
|
|
365
365
|
>
|
|
366
|
-
<Text className="text-sm font-medium text-primary">{label}</Text>
|
|
366
|
+
<Text className="text-sm font-medium text-primary-text">{label}</Text>
|
|
367
367
|
</Pressable>
|
|
368
368
|
);
|
|
369
369
|
}
|
|
@@ -259,7 +259,7 @@ function SectionTitle({ title, testID }: { title: string; testID: string }) {
|
|
|
259
259
|
<NativeText
|
|
260
260
|
testID={testID}
|
|
261
261
|
accessibilityRole="header"
|
|
262
|
-
className={ios ? "px-4 pb-1.5 pt-2" : "px-4 pb-2 pt-4 text-primary"}
|
|
262
|
+
className={ios ? "px-4 pb-1.5 pt-2" : "px-4 pb-2 pt-4 text-primary-text"}
|
|
263
263
|
style={
|
|
264
264
|
ios
|
|
265
265
|
? { marginHorizontal: IOS_GROUP_MARGIN, color: colors.secondaryLabel, fontSize: 13, lineHeight: 18, textTransform: "uppercase" }
|
package/src/layouts/nav-bar.tsx
CHANGED
|
@@ -139,7 +139,7 @@ export function getNotificationsPageStackOptions(props: {
|
|
|
139
139
|
hitSlop={8}
|
|
140
140
|
className="min-h-[44px] justify-center px-3"
|
|
141
141
|
>
|
|
142
|
-
<Text className="text-base text-primary">Mark all read</Text>
|
|
142
|
+
<Text className="text-base text-primary-text">Mark all read</Text>
|
|
143
143
|
</Pressable>
|
|
144
144
|
)
|
|
145
145
|
: undefined);
|
|
@@ -239,7 +239,7 @@ function iosTrailingSeparatorInset(): boolean {
|
|
|
239
239
|
* `secondaryLabel` on the page background. It sits over the group (same
|
|
240
240
|
* margin) and is padded like a cell (`px-4`), so it lines up with the cell
|
|
241
241
|
* text. Android: a Material list subheader in the brand's primary color
|
|
242
|
-
* (`text-primary`, which follows the app's theme). Neither draws a band or a
|
|
242
|
+
* (`text-primary-text`, which follows the app's theme). Neither draws a band or a
|
|
243
243
|
* rule. iOS reads uppercased text as written in capitals, so the label is the
|
|
244
244
|
* title as written, and VoiceOver doesn't spell short words out.
|
|
245
245
|
*/
|
|
@@ -269,7 +269,7 @@ function DefaultSectionHeader({ title, testID }: SettingsPageSlotMap["sectionHea
|
|
|
269
269
|
<NativeText
|
|
270
270
|
testID={testID}
|
|
271
271
|
accessibilityRole="header"
|
|
272
|
-
className="px-4 pb-2 pt-4 text-primary"
|
|
272
|
+
className="px-4 pb-2 pt-4 text-primary-text"
|
|
273
273
|
style={{ fontSize: 14, lineHeight: 20, fontWeight: "500" }}
|
|
274
274
|
>
|
|
275
275
|
{title}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/card.tsx","../src/components/date-time-picker.tsx","../src/components/segmented-control.tsx","../src/components/inline-alert.tsx","../src/components/search-bar.tsx","../src/components/separator.tsx","../src/components/alert.tsx","../src/components/avatar.tsx","../src/components/checkbox.tsx","../src/components/label.tsx","../src/components/select.tsx","../src/components/switch.tsx","../src/components/textarea.tsx","../src/components/image.tsx","../src/components/gallery-grid.tsx"],"names":["jsx","Text","View","Pressable","jsxs","Fragment","useState","TextInput","FILL","Image","useMemo"],"mappings":";;;;;;;;;;;AAcA,SAAS,WAAW,EAAE,SAAA,EAAW,QAAA,EAAU,GAAG,OAAM,EAAoB;AACtE,EAAA,uBACE,GAAA;AAAA,IAAC,IAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,EAAA;AAAA,QACT,uDAAA;AAAA,QACA;AAAA,OACF;AAAA,MACC,GAAG,KAAA;AAAA,MAEH;AAAA;AAAA,GACH;AAEJ;AAEA,SAAS,gBAAA,CAAiB;AAAA,EACxB,SAAA;AAAA,EACA,QAAA;AAAA,EACA,GAAG;AACL,CAAA,EAAoB;AAClB,EAAA,uBACE,GAAA,CAAC,QAAK,SAAA,EAAW,EAAA,CAAG,wBAAwB,SAAS,CAAA,EAAI,GAAG,KAAA,EACzD,QAAA,EACH,CAAA;AAEJ;AAQA,SAAS,eAAA,CAAgB;AAAA,EACvB,SAAA;AAAA,EACA,QAAA;AAAA,EACA,GAAG;AACL,CAAA,EAAyB;AACvB,EAAA,uBACE,GAAA;AAAA,IAAC,IAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,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GAAM,MAAA;AAAA,MAC9C,qBAAqB,MAAA,mBAASL,IAAAK,QAAAA,EAAA,EAAG,kBAAO,CAAA,GAAM,MAAA;AAAA,MAC9C,YAAA,EAAc,QAAA,GAAW,MAAM,QAAA,EAAS,GAAI,MAAA;AAAA,MAC5C,qBAAA,EAAuB,GAAA;AAAA,MACvB,kBAAA,EAAoB,CAAA;AAAA,MACpB,UAAA,EAAY;AAAA;AAAA,MAEZ,IAAA,EACN,CAAA;AAEJ","file":"chunk-DHONOH6K.js","sourcesContent":["/**\n * Card — flat container surface. The 90% case is `<Card>{children}</Card>`. See HeaderCard for structured layouts.\n *\n * @stability Stable\n */\nimport { Text, View } from \"react-native\";\nimport { cn } from \"../utils\";\n\nexport interface NativeCardProps {\n className?: string;\n children?: React.ReactNode;\n testID?: string;\n}\n\nfunction NativeCard({ className, children, ...props }: NativeCardProps) {\n return (\n <View\n className={cn(\n \"rounded-xl border border-border bg-card p-0 shadow-sm\",\n className\n )}\n {...props}\n >\n {children}\n </View>\n );\n}\n\nfunction NativeCardHeader({\n className,\n children,\n ...props\n}: NativeCardProps) {\n return (\n <View className={cn(\"flex-col gap-1.5 p-6\", className)} {...props}>\n {children}\n </View>\n );\n}\n\nexport interface NativeCardTitleProps {\n className?: string;\n children?: React.ReactNode;\n testID?: string;\n}\n\nfunction NativeCardTitle({\n className,\n children,\n ...props\n}: NativeCardTitleProps) {\n return (\n <Text\n className={cn(\n \"text-2xl font-semibold leading-none tracking-tight text-card-foreground\",\n className\n )}\n {...props}\n >\n {children}\n </Text>\n );\n}\n\nexport interface NativeCardDescriptionProps {\n className?: string;\n children?: React.ReactNode;\n testID?: string;\n}\n\nfunction NativeCardDescription({\n className,\n children,\n ...props\n}: NativeCardDescriptionProps) {\n return (\n <Text\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n >\n {children}\n </Text>\n );\n}\n\nfunction NativeCardContent({\n className,\n children,\n ...props\n}: NativeCardProps) {\n return (\n <View className={cn(\"p-6 pt-0\", className)} {...props}>\n {children}\n </View>\n );\n}\n\nfunction NativeCardFooter({\n className,\n children,\n ...props\n}: NativeCardProps) {\n return (\n <View\n className={cn(\"flex-row items-center p-6 pt-0\", className)}\n {...props}\n >\n {children}\n </View>\n );\n}\n\nexport {\n NativeCard,\n NativeCardHeader,\n NativeCardTitle,\n NativeCardDescription,\n NativeCardContent,\n NativeCardFooter,\n};\n","/**\n * DatePicker / TimePicker — wraps @react-native-community/datetimepicker\n * with platform-correct UX (iOS wheel, Android calendar/clock dialog).\n *\n * NativeDatePicker exposes a date as a Pressable button labeled with the\n * formatted value; tapping presents the platform-native picker. Same\n * pattern for NativeTimePicker.\n *\n * Consumers must install @react-native-community/datetimepicker (peer\n * dep, marked optional). When the dep is missing, the component falls\n * back to a read-only Text label so screens still render — useful for\n * sample/demo apps without native module setup.\n *\n * Optional backend: pass `@expo/ui`'s drop-in picker as `modules.datePicker`\n * (`import DateTimePicker from \"@expo/ui/community/datetime-picker\"`) on\n * `GenesisModulesProvider` to draw SwiftUI / Jetpack Compose pickers instead.\n * Same props and behavior; the community picker stays the fallback.\n *\n * @stability Beta\n */\nimport { useMemo, useState } from \"react\";\nimport { Platform, Pressable, Text } from \"react-native\";\nimport { cn } from \"../utils\";\nimport { useGenesisModules, type GenesisDatePickerComponent } from \"../native-modules\";\n\nfunction resolveDateTimePicker(): React.ComponentType<{\n value: Date;\n mode: \"date\" | \"time\";\n display?: string;\n onChange: (e: unknown, d?: Date) => void;\n disabled?: boolean;\n style?: object;\n testID?: string;\n}> | null {\n try {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n return require(\"@react-native-community/datetimepicker\").default;\n } catch {\n return null;\n }\n}\n\ninterface BasePickerProps {\n value: Date;\n onChange: (next: Date) => void;\n /** Disable the picker. */\n disabled?: boolean;\n /** Override the rendered button text. */\n formatLabel?: (d: Date) => string;\n className?: string;\n testID?: string;\n}\n\nexport type NativeDatePickerProps = BasePickerProps;\nexport type NativeTimePickerProps = BasePickerProps;\n\nfunction PickerButton({\n value,\n onChange,\n mode,\n formatLabel,\n disabled,\n className,\n testID,\n}: BasePickerProps & { mode: \"date\" | \"time\" }) {\n const { datePicker: ExpoUiPicker } = useGenesisModules();\n const Picker = ExpoUiPicker ? null : resolveDateTimePicker();\n const [showAndroid, setShowAndroid] = useState(false);\n const isIOS = Platform.OS === \"ios\";\n\n const label = useMemo(() => {\n if (formatLabel) return formatLabel(value);\n if (mode === \"date\") return value.toDateString();\n return value.toLocaleTimeString([], { hour: \"2-digit\", minute: \"2-digit\" });\n }, [formatLabel, mode, value]);\n\n if (ExpoUiPicker) {\n return (\n <ExpoUiPickerButton\n Picker={ExpoUiPicker}\n value={value}\n onChange={onChange}\n mode={mode}\n label={label}\n disabled={disabled}\n className={className}\n testID={testID}\n />\n );\n }\n\n if (!Picker) {\n return (\n <Text\n testID={testID}\n className={cn(\n \"min-h-[44px] rounded-md border border-input bg-background px-3 py-3 text-base text-muted-foreground\",\n className\n )}\n >\n {label} (picker module not installed)\n </Text>\n );\n }\n\n // iOS: the compact picker is itself the button (it shows the value and\n // opens the wheel), so it renders alone; a button beside it showed the\n // value twice.\n if (isIOS) {\n return (\n <Picker\n testID={testID ?? `native-${mode}-picker`}\n value={value}\n mode={mode}\n display=\"compact\"\n disabled={disabled}\n style={disabled ? { opacity: 0.5 } : undefined}\n onChange={(_e, d) => {\n if (d && !disabled) onChange(d);\n }}\n />\n );\n }\n\n // Android: a button that opens the platform dialog.\n return (\n <>\n <Pressable\n testID={testID ?? `native-${mode}-picker`}\n accessibilityRole=\"button\"\n accessibilityLabel={`Pick a ${mode}`}\n accessibilityValue={{ text: label }}\n accessibilityState={{ disabled }}\n disabled={disabled}\n onPress={() => setShowAndroid(true)}\n className={cn(\n \"min-h-[44px] flex-row items-center rounded-md border border-input bg-background px-3\",\n disabled && \"opacity-50\",\n className\n )}\n >\n <Text className=\"flex-1 text-base text-foreground\">{label}</Text>\n </Pressable>\n {showAndroid ? (\n <Picker\n testID={testID ? `${testID}-picker` : undefined}\n value={value}\n mode={mode}\n display=\"default\"\n onChange={(_e, d) => {\n setShowAndroid(false);\n if (d) onChange(d);\n }}\n />\n ) : null}\n </>\n );\n}\n\n/**\n * The @expo/ui backend (`@expo/ui/community/datetime-picker`, SwiftUI on iOS\n * and Jetpack Compose on Android), a drop-in for the community picker. iOS:\n * the compact picker is the button, as above. Android: a button that mounts\n * the picker as a dialog; it fires `onValueChange` on confirm and\n * `onDismiss` on cancel, and is unmounted on either.\n */\nfunction ExpoUiPickerButton({\n Picker,\n value,\n onChange,\n mode,\n label,\n disabled,\n className,\n testID,\n}: {\n Picker: GenesisDatePickerComponent;\n value: Date;\n onChange: (next: Date) => void;\n mode: \"date\" | \"time\";\n label: string;\n disabled?: boolean;\n className?: string;\n testID?: string;\n}) {\n const [showAndroid, setShowAndroid] = useState(false);\n if (Platform.OS === \"ios\") {\n // As with the community picker: the native compact picker draws and\n // announces its own value, so `className` and the button label don't apply.\n return (\n <Picker\n testID={testID ?? `native-${mode}-picker`}\n value={value}\n mode={mode}\n display=\"compact\"\n disabled={disabled}\n style={disabled ? { opacity: 0.5 } : undefined}\n onValueChange={(_e, d) => {\n if (d && !disabled) onChange(d);\n }}\n />\n );\n }\n return (\n <>\n <Pressable\n testID={testID ?? `native-${mode}-picker`}\n accessibilityRole=\"button\"\n accessibilityLabel={`Pick a ${mode}`}\n accessibilityValue={{ text: label }}\n accessibilityState={{ disabled }}\n disabled={disabled}\n onPress={() => setShowAndroid(true)}\n className={cn(\n \"min-h-[44px] flex-row items-center rounded-md border border-input bg-background px-3\",\n disabled && \"opacity-50\",\n className\n )}\n >\n <Text className=\"flex-1 text-base text-foreground\">{label}</Text>\n </Pressable>\n {showAndroid ? (\n <Picker\n testID={testID ? `${testID}-picker` : undefined}\n value={value}\n mode={mode}\n presentation=\"dialog\"\n onValueChange={(_e, d) => {\n setShowAndroid(false);\n if (d) onChange(d);\n }}\n onDismiss={() => setShowAndroid(false)}\n />\n ) : null}\n </>\n );\n}\n\nexport function NativeDatePicker(props: NativeDatePickerProps) {\n return <PickerButton {...props} mode=\"date\" />;\n}\n\nexport function NativeTimePicker(props: NativeTimePickerProps) {\n return <PickerButton {...props} mode=\"time\" />;\n}\n","/**\n * SegmentedControl — iOS-style horizontal segmented picker.\n *\n * Use for 2-5 mutually exclusive options that fit on one line. For more\n * than 5, prefer <NativeTabs> or <NativeSelect>. Renders an Android-\n * acceptable filled-pill variant; the visual remains compact on both\n * platforms.\n *\n * @stability Beta\n */\nimport { Pressable, Text, View } from \"react-native\";\nimport { cn } from \"../utils\";\n\nexport interface NativeSegmentedControlOption<T = string> {\n value: T;\n label: string;\n}\n\nexport interface NativeSegmentedControlProps<T = string> {\n options: NativeSegmentedControlOption<T>[];\n value: T;\n onChange: (value: T) => void;\n /** Disable the entire control. */\n disabled?: boolean;\n className?: string;\n testID?: string;\n}\n\nconst SELECTED_LIFT = { shadowColor: \"black\", shadowOpacity: 0.08, shadowRadius: 2, shadowOffset: { width: 0, height: 1 }, elevation: 1 } as const;\nconst UNSELECTED_LIFT = { shadowColor: \"black\", shadowOpacity: 0, shadowRadius: 0, shadowOffset: { width: 0, height: 0 }, elevation: 0 } as const;\n\nexport function NativeSegmentedControl<T = string>({\n options,\n value,\n onChange,\n disabled,\n className,\n testID,\n}: NativeSegmentedControlProps<T>) {\n return (\n <View\n testID={testID ?? \"native-segmented\"}\n accessibilityRole=\"radiogroup\"\n className={cn(\n \"flex-row rounded-md border border-border bg-muted p-0.5\",\n disabled && \"opacity-50\",\n className\n )}\n >\n {options.map((opt) => {\n const selected = opt.value === value;\n return (\n <Pressable\n key={String(opt.value)}\n testID={\n testID\n ? `${testID}-option-${String(opt.value)}`\n : `segmented-option-${String(opt.value)}`\n }\n disabled={disabled}\n accessibilityRole=\"radio\"\n accessibilityState={{ selected, disabled }}\n onPress={() => onChange(opt.value)}\n className={cn(\n \"min-h-[36px] flex-1 items-center justify-center rounded px-3 py-1\",\n selected && \"bg-background\"\n )}\n // The lift as a style, not a `shadow-sm` class toggled on select: NativeWind treats a\n // shadow class that appears later as an upgrade and, in development, crashes printing it.\n style={selected ? SELECTED_LIFT : UNSELECTED_LIFT}\n >\n <Text\n className={cn(\n \"text-sm\",\n selected ? \"font-semibold text-foreground\" : \"text-muted-foreground\"\n )}\n >\n {opt.label}\n </Text>\n </Pressable>\n );\n })}\n </View>\n );\n}\n","/**\n * InlineAlert + Banner — non-blocking system messaging.\n *\n * NativeInlineAlert: contextual message that lives inline with related\n * content (e.g., between form fields).\n *\n * NativeBanner: top-of-screen system message (e.g., \"You're offline\").\n * Persists until the user dismisses or the condition clears. Use\n * sparingly — for transient confirmation use <NativeToast>; for\n * blocking issues use <NativeDialog>.\n *\n * Both share variants: info / success / warning / destructive. Under the\n * description, `children` takes any content (an error summary's list of\n * links, a status line) and `actions` a row of buttons (\"Retry\", \"Review\"),\n * so neither has to be drawn by hand around the alert.\n *\n * @stability Beta\n */\nimport { Pressable, Text, View } from \"react-native\";\nimport { cn } from \"../utils\";\n\nexport type NativeInlineAlertVariant =\n | \"info\"\n | \"success\"\n | \"warning\"\n | \"destructive\";\n\ninterface BaseProps {\n variant?: NativeInlineAlertVariant;\n title?: string;\n description?: string;\n /** Optional icon node rendered to the left of the text. */\n icon?: React.ReactNode;\n /** When provided, renders an \"✕\" dismiss button with this label. */\n onDismiss?: () => void;\n /** Content under the description (a list of the fields to fix, a status line). */\n children?: React.ReactNode;\n /** A row of buttons under the content (NativeButton size=\"sm\"). */\n actions?: React.ReactNode;\n className?: string;\n testID?: string;\n}\n\nconst variantClasses: Record<NativeInlineAlertVariant, string> = {\n info: \"bg-secondary border-border\",\n success: \"bg-primary/10 border-primary/30\",\n warning: \"bg-warning/10 border-warning/30\",\n destructive: \"bg-destructive/10 border-destructive/30\",\n};\n\nconst titleClasses: Record<NativeInlineAlertVariant, string> = {\n info: \"text-foreground\",\n success: \"text-primary\",\n warning: \"text-warning\",\n destructive: \"text-destructive\",\n};\n\n/** The alert's content and actions slots, under the description. */\nfunction AlertExtras({ children, actions, testID }: { children?: React.ReactNode; actions?: React.ReactNode; testID?: string | undefined }) {\n return (\n <>\n {children ? (\n <View testID={testID ? `${testID}-content` : undefined} className=\"mt-2\">\n {children}\n </View>\n ) : null}\n {actions ? (\n <View testID={testID ? `${testID}-actions` : undefined} className=\"mt-3 flex-row flex-wrap gap-2\">\n {actions}\n </View>\n ) : null}\n </>\n );\n}\n\nexport interface NativeInlineAlertProps extends BaseProps {}\n\nexport function NativeInlineAlert({\n variant = \"info\",\n title,\n description,\n icon,\n onDismiss,\n children,\n actions,\n className,\n testID,\n}: NativeInlineAlertProps) {\n return (\n <View\n testID={testID ?? `inline-alert-${variant}`}\n accessibilityRole=\"alert\"\n className={cn(\n \"flex-row gap-3 rounded-md border p-3\",\n variantClasses[variant],\n className\n )}\n >\n {icon ? <View className=\"pt-0.5\">{icon}</View> : null}\n <View className=\"flex-1\">\n {title ? (\n <Text className={cn(\"text-sm font-semibold\", titleClasses[variant])}>\n {title}\n </Text>\n ) : null}\n {description ? (\n <Text className=\"mt-0.5 text-sm text-foreground/80\">\n {description}\n </Text>\n ) : null}\n <AlertExtras testID={testID} actions={actions}>\n {children}\n </AlertExtras>\n </View>\n {onDismiss ? (\n <Pressable\n testID={testID ? `${testID}-dismiss` : undefined}\n accessibilityRole=\"button\"\n accessibilityLabel=\"Dismiss\"\n onPress={onDismiss}\n hitSlop={8}\n className=\"min-h-[24px] min-w-[24px] items-center justify-center\"\n >\n <Text className=\"text-base text-muted-foreground\">✕</Text>\n </Pressable>\n ) : null}\n </View>\n );\n}\n\nexport interface NativeBannerProps extends BaseProps {}\n\nexport function NativeBanner({\n variant = \"info\",\n title,\n description,\n icon,\n onDismiss,\n children,\n actions,\n className,\n testID,\n}: NativeBannerProps) {\n return (\n <View\n testID={testID ?? `banner-${variant}`}\n accessibilityRole=\"alert\"\n accessibilityLiveRegion=\"polite\"\n className={cn(\n \"flex-row items-start gap-3 border-b px-4 py-3\",\n variantClasses[variant],\n className\n )}\n >\n {icon ? <View className=\"pt-0.5\">{icon}</View> : null}\n <View className=\"flex-1\">\n {title ? (\n <Text className={cn(\"text-sm font-semibold\", titleClasses[variant])}>\n {title}\n </Text>\n ) : null}\n {description ? (\n <Text className=\"mt-0.5 text-sm text-foreground/80\">\n {description}\n </Text>\n ) : null}\n <AlertExtras testID={testID} actions={actions}>\n {children}\n </AlertExtras>\n </View>\n {onDismiss ? (\n <Pressable\n testID={testID ? `${testID}-dismiss` : undefined}\n accessibilityRole=\"button\"\n accessibilityLabel=\"Dismiss\"\n onPress={onDismiss}\n hitSlop={8}\n className=\"min-h-[24px] min-w-[24px] items-center justify-center\"\n >\n <Text className=\"text-base text-muted-foreground\">✕</Text>\n </Pressable>\n ) : null}\n </View>\n );\n}\n","/**\n * SearchBar — text input with cancel + clear + optional voice trigger.\n *\n * Use as the search affordance for lists and result screens. iOS-style\n * \"Cancel\" button slides in only when the input is focused and clears\n * focus on press. The clear \"✕\" appears whenever there's a value.\n *\n * Voice support is opt-in: pass `onVoicePress` to render the voice\n * button. The actual STT integration is the consumer's responsibility\n * (e.g., expo-speech-recognition); this primitive only renders the\n * trigger affordance.\n *\n * @stability Beta\n */\nimport { useRef, useState } from \"react\";\nimport { Pressable, Text, TextInput, View } from \"react-native\";\nimport { cn } from \"../utils\";\n\nexport interface NativeSearchBarProps {\n value: string;\n onChange: (value: string) => void;\n /** Submit handler (return key on the keyboard). */\n onSubmit?: (value: string) => void;\n placeholder?: string;\n /**\n * Color used for the placeholder text. Defaults to a token-aware muted\n * value that matches NativeWind's `text-muted-foreground` resolution.\n * Override per-call when an alternate brand demands a different shade.\n */\n placeholderTextColor?: string;\n /** When provided, renders a microphone trigger. */\n onVoicePress?: () => void;\n /** Show the \"Cancel\" button when focused. Default true. */\n showCancel?: boolean;\n /** Cancel button label. Default \"Cancel\". */\n cancelLabel?: string;\n className?: string;\n testID?: string;\n}\n\nexport function NativeSearchBar({\n value,\n onChange,\n onSubmit,\n placeholder = \"Search\",\n placeholderTextColor,\n onVoicePress,\n showCancel = true,\n cancelLabel = \"Cancel\",\n className,\n testID,\n}: NativeSearchBarProps) {\n const [focused, setFocused] = useState(false);\n const inputRef = useRef<React.ComponentRef<typeof TextInput>>(null);\n\n return (\n <View\n testID={testID ?? \"native-search-bar\"}\n className={cn(\"flex-row items-center gap-2\", className)}\n >\n <View className=\"flex-1 flex-row items-center rounded-md border border-input bg-background px-3\">\n <Text accessibilityElementsHidden className=\"text-sm text-muted-foreground\">\n {\"\\u{1F50D}\"}\n </Text>\n <TextInput\n ref={inputRef}\n testID={testID ? `${testID}-input` : \"search-input\"}\n value={value}\n onChangeText={onChange}\n onFocus={() => setFocused(true)}\n onBlur={() => setFocused(false)}\n onSubmitEditing={() => onSubmit?.(value)}\n placeholder={placeholder}\n placeholderTextColor={placeholderTextColor}\n accessibilityLabel={placeholder}\n returnKeyType=\"search\"\n autoCorrect={false}\n autoCapitalize=\"none\"\n clearButtonMode=\"never\"\n className=\"ml-2 min-h-[44px] flex-1 text-base text-foreground\"\n />\n {value.length > 0 ? (\n <Pressable\n testID={testID ? `${testID}-clear` : \"search-clear\"}\n accessibilityRole=\"button\"\n accessibilityLabel=\"Clear search\"\n hitSlop={8}\n onPress={() => onChange(\"\")}\n className=\"ml-1 min-h-[24px] min-w-[24px] items-center justify-center\"\n >\n <Text className=\"text-sm text-muted-foreground\">✕</Text>\n </Pressable>\n ) : null}\n {onVoicePress ? (\n <Pressable\n testID={testID ? `${testID}-voice` : \"search-voice\"}\n accessibilityRole=\"button\"\n accessibilityLabel=\"Voice search\"\n hitSlop={8}\n onPress={onVoicePress}\n className=\"ml-2 min-h-[24px] min-w-[24px] items-center justify-center\"\n >\n <Text className=\"text-sm text-muted-foreground\">{\"\\u{1F3A4}\"}</Text>\n </Pressable>\n ) : null}\n </View>\n {showCancel && focused ? (\n <Pressable\n testID={testID ? `${testID}-cancel` : \"search-cancel\"}\n accessibilityRole=\"button\"\n accessibilityLabel={cancelLabel}\n onPress={() => {\n onChange(\"\");\n // Dismiss the keyboard along with the cancel — matches iOS native\n // behavior. setFocused(false) will be triggered by the resulting\n // onBlur as well, but call it eagerly to hide the cancel button\n // immediately for snappier UX.\n inputRef.current?.blur();\n setFocused(false);\n }}\n className=\"min-h-[44px] items-center justify-center px-2\"\n >\n <Text className=\"text-base text-primary\">{cancelLabel}</Text>\n </Pressable>\n ) : null}\n </View>\n );\n}\n","/**\n * Separator — visual divider line (horizontal or vertical).\n *\n * @stability Stable\n */\nimport { View, type ViewProps } from \"react-native\";\nimport { cn } from \"../utils\";\n\nexport interface NativeSeparatorProps extends ViewProps {\n orientation?: \"horizontal\" | \"vertical\";\n}\n\nfunction NativeSeparator({\n className,\n orientation = \"horizontal\",\n ...props\n}: NativeSeparatorProps) {\n return (\n <View\n className={cn(\n \"bg-border\",\n orientation === \"horizontal\" ? \"h-px w-full\" : \"h-full w-px\",\n className\n )}\n accessibilityRole=\"none\"\n {...props}\n />\n );\n}\n\nexport { NativeSeparator };\n","/**\n * Alert — inline status message (info / success / warning / destructive).\n *\n * @stability Stable\n */\nimport { type VariantProps, cva } from \"class-variance-authority\";\nimport { Text, View } from \"react-native\";\nimport { cn } from \"../utils\";\n\nconst alertVariants = cva(\n \"rounded-lg border p-4\",\n {\n variants: {\n variant: {\n default: \"border-border bg-background\",\n destructive: \"border-destructive/50 bg-destructive/10\",\n success: \"border-success/50 bg-success/10\",\n warning: \"border-warning/50 bg-warning/10\",\n info: \"border-info/50 bg-info/10\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n);\n\nconst alertTitleTextVariants = cva(\"text-base font-semibold leading-6\", {\n variants: {\n variant: {\n default: \"text-foreground\",\n destructive: \"text-destructive\",\n success: \"text-success\",\n warning: \"text-warning\",\n info: \"text-info\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n});\n\nconst alertDescriptionTextVariants = cva(\"text-sm leading-5\", {\n variants: {\n variant: {\n default: \"text-muted-foreground\",\n destructive: \"text-destructive\",\n success: \"text-success\",\n warning: \"text-warning\",\n info: \"text-info\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n});\n\nexport interface NativeAlertProps\n extends VariantProps<typeof alertVariants> {\n className?: string;\n children?: React.ReactNode;\n testID?: string;\n}\n\nfunction NativeAlert({\n className,\n variant,\n children,\n ...props\n}: NativeAlertProps) {\n return (\n <View\n className={cn(alertVariants({ variant }), className)}\n accessibilityRole=\"alert\"\n {...props}\n >\n {children}\n </View>\n );\n}\n\nexport interface NativeAlertTitleProps {\n className?: string;\n children?: React.ReactNode;\n variant?: VariantProps<typeof alertTitleTextVariants>[\"variant\"];\n}\n\nfunction NativeAlertTitle({\n className,\n variant,\n children,\n}: NativeAlertTitleProps) {\n return (\n <Text\n className={cn(alertTitleTextVariants({ variant }), className)}\n >\n {children}\n </Text>\n );\n}\n\nexport interface NativeAlertDescriptionProps {\n className?: string;\n children?: React.ReactNode;\n variant?: VariantProps<typeof alertDescriptionTextVariants>[\"variant\"];\n}\n\nfunction NativeAlertDescription({\n className,\n variant,\n children,\n}: NativeAlertDescriptionProps) {\n return (\n <Text\n className={cn(\n alertDescriptionTextVariants({ variant }),\n \"mt-1\",\n className\n )}\n >\n {children}\n </Text>\n );\n}\n\nexport {\n NativeAlert,\n NativeAlertTitle,\n NativeAlertDescription,\n alertVariants,\n};\n","/**\n * Avatar — user/entity image with fallback initials.\n *\n * Draws with expo-image when the app passes it (`modules.image` on\n * `GenesisModulesProvider`): cached in memory and on disk, a cross-fade that\n * Reduce Motion turns off, an optional blurhash/thumbhash `placeholder`, and\n * a `recyclingKey` (the image URL by default) so a recycled list row never\n * shows the previous person's picture. Without it, React Native's `Image`.\n * The initials show until the picture loads, and again if it fails.\n *\n * @stability Stable\n */\nimport { useState } from \"react\";\nimport { Image, Text, View } from \"react-native\";\nimport { cn } from \"../utils\";\nimport { useReducedMotion } from \"../hooks/use-reduced-motion\";\nimport { useGenesisModules } from \"../native-modules\";\n\nconst FILL = { position: \"absolute\" as const, top: 0, right: 0, bottom: 0, left: 0 };\n\nexport interface NativeAvatarProps {\n className?: string;\n /** Image URL */\n src?: string | null;\n /** Alt text for accessibility */\n alt?: string;\n /** Fallback text (typically initials, e.g. \"MT\") */\n fallback?: string;\n /** Size in pixels. Defaults to 40. Use className for NativeWind sizing. */\n size?: number;\n /**\n * expo-image only: a blurhash or thumbhash shown while the picture loads,\n * as expo-image's `placeholder` takes it (`{ blurhash }`, `{ thumbhash }`).\n */\n placeholder?: { blurhash: string } | { thumbhash: string };\n /**\n * expo-image only: resets the view when it changes, for rows a recycling\n * list (FlashList) reuses. Default the image URL.\n */\n recyclingKey?: string;\n testID?: string;\n}\n\nfunction NativeAvatar({\n className,\n src,\n alt,\n fallback,\n size = 40,\n placeholder,\n recyclingKey,\n testID,\n}: NativeAvatarProps) {\n const { image: ExpoImage } = useGenesisModules();\n const reducedMotion = useReducedMotion();\n // Which URL loaded or failed, not a flag: a row FlashList recycles for\n // someone else gets the right state on its first frame, with no reset.\n const [failedSrc, setFailedSrc] = useState<string | null>(null);\n const [loadedSrc, setLoadedSrc] = useState<string | null>(null);\n const showImage = !!src && failedSrc !== src;\n const loaded = !!src && loadedSrc === src;\n const imageProps = {\n accessible: false,\n onError: () => setFailedSrc(src ?? null),\n onLoad: () => setLoadedSrc(src ?? null),\n };\n\n return (\n <View\n className={cn(\n \"items-center justify-center overflow-hidden rounded-full bg-muted\",\n className\n )}\n style={[{ width: size, height: size }]}\n accessible\n accessibilityRole=\"image\"\n accessibilityLabel={alt || fallback || \"Avatar\"}\n testID={testID}\n >\n {!showImage || !loaded ? (\n <Text\n className=\"text-sm font-medium text-muted-foreground\"\n accessibilityElementsHidden\n importantForAccessibility=\"no\"\n style={{\n fontSize: Math.round(size * 0.4),\n lineHeight: Math.round(size * 0.5),\n }}\n >\n {fallback || \"?\"}\n </Text>\n ) : null}\n {showImage ? (\n ExpoImage ? (\n <ExpoImage\n {...imageProps}\n testID={testID ? `${testID}-image` : undefined}\n source={{ uri: src }}\n style={FILL}\n contentFit=\"cover\"\n cachePolicy=\"memory-disk\"\n placeholder={placeholder}\n placeholderContentFit=\"cover\"\n transition={reducedMotion ? null : 150}\n recyclingKey={recyclingKey ?? src}\n />\n ) : (\n <Image\n {...imageProps}\n testID={testID ? `${testID}-image` : undefined}\n source={{ uri: src }}\n style={FILL}\n resizeMode=\"cover\"\n />\n )\n ) : null}\n </View>\n );\n}\n\nexport { NativeAvatar };\n","/**\n * Checkbox — binary on/off control with optional label.\n *\n * @stability Stable\n */\nimport { useState } from \"react\";\nimport { Pressable, View } from \"react-native\";\nimport { cn } from \"../utils\";\n\nexport interface NativeCheckboxProps {\n className?: string;\n checked?: boolean;\n defaultChecked?: boolean;\n onCheckedChange?: (checked: boolean) => void;\n disabled?: boolean;\n testID?: string;\n}\n\nfunction NativeCheckbox({\n className,\n checked: controlledChecked,\n defaultChecked = false,\n onCheckedChange,\n disabled,\n ...props\n}: NativeCheckboxProps) {\n const [uncontrolledChecked, setUncontrolledChecked] =\n useState(defaultChecked);\n const isChecked = controlledChecked ?? uncontrolledChecked;\n\n function handlePress() {\n const next = !isChecked;\n if (controlledChecked === undefined) {\n setUncontrolledChecked(next);\n }\n onCheckedChange?.(next);\n }\n\n return (\n <Pressable\n className={cn(\n \"h-5 w-5 items-center justify-center rounded border border-border\",\n isChecked && \"border-primary bg-primary\",\n disabled && \"opacity-50\",\n className\n )}\n onPress={handlePress}\n disabled={disabled}\n accessibilityRole=\"checkbox\"\n accessibilityState={{ checked: isChecked }}\n {...props}\n >\n {isChecked ? (\n <View className=\"h-2.5 w-2.5 rounded-sm bg-primary-foreground\" />\n ) : null}\n </Pressable>\n );\n}\n\nexport { NativeCheckbox };\n","/**\n * Label — form-control label, paired via htmlFor / nativeID.\n *\n * @stability Stable\n */\nimport { Text, type TextProps } from \"react-native\";\nimport { cn } from \"../utils\";\n\nexport interface NativeLabelProps extends TextProps {\n children: React.ReactNode;\n disabled?: boolean;\n}\n\nfunction NativeLabel({\n className,\n children,\n disabled,\n ...props\n}: NativeLabelProps) {\n return (\n <Text\n className={cn(\n \"text-sm font-medium text-foreground\",\n disabled && \"opacity-70\",\n className\n )}\n accessibilityState={disabled ? { disabled } : undefined}\n {...props}\n >\n {children}\n </Text>\n );\n}\n\nexport { NativeLabel };\n","/**\n * Select — single-selection dropdown trigger + content.\n *\n * @stability Stable\n */\nimport { createContext, useContext, useState } from \"react\";\nimport { Modal, Pressable, Text, View } from \"react-native\";\nimport { cn } from \"../utils\";\n\ninterface SelectContextValue {\n value: string;\n onValueChange: (value: string) => void;\n open: boolean;\n setOpen: (open: boolean) => void;\n}\n\nconst SelectContext = createContext<SelectContextValue | null>(null);\n\nfunction useSelect() {\n const context = useContext(SelectContext);\n if (!context)\n throw new Error(\"Select components must be used within <NativeSelect>\");\n return context;\n}\n\nexport interface NativeSelectProps {\n value?: string;\n defaultValue?: string;\n onValueChange?: (value: string) => void;\n children: React.ReactNode;\n}\n\nfunction NativeSelect({\n value: controlledValue,\n defaultValue = \"\",\n onValueChange: controlledOnValueChange,\n children,\n}: NativeSelectProps) {\n const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue);\n const [open, setOpen] = useState(false);\n const value = controlledValue ?? uncontrolledValue;\n const onValueChange = controlledOnValueChange ?? setUncontrolledValue;\n\n return (\n <SelectContext.Provider value={{ value, onValueChange, open, setOpen }}>\n {children}\n </SelectContext.Provider>\n );\n}\n\nexport interface NativeSelectTriggerProps {\n className?: string;\n children?: React.ReactNode;\n placeholder?: string;\n disabled?: boolean;\n testID?: string;\n}\n\nfunction NativeSelectTrigger({\n className,\n children,\n placeholder,\n disabled,\n ...props\n}: NativeSelectTriggerProps) {\n const { value, open, setOpen } = useSelect();\n\n return (\n <Pressable\n className={cn(\n \"h-10 flex-row items-center justify-between rounded-md border border-input bg-background px-3\",\n disabled && \"opacity-50\",\n className\n )}\n onPress={() => setOpen(true)}\n disabled={disabled}\n accessibilityRole=\"button\"\n accessibilityState={{ expanded: open, disabled }}\n {...props}\n >\n {children ?? (\n <Text\n className={cn(\n \"text-sm\",\n value ? \"text-foreground\" : \"text-muted-foreground\"\n )}\n >\n {value || placeholder || \"Select...\"}\n </Text>\n )}\n <Text className=\"text-sm text-muted-foreground\">{\"\\u25BE\"}</Text>\n </Pressable>\n );\n}\n\nexport interface NativeSelectContentProps {\n className?: string;\n children: React.ReactNode;\n}\n\nfunction NativeSelectContent({\n className,\n children,\n}: NativeSelectContentProps) {\n const { open, setOpen } = useSelect();\n\n if (!open) return null;\n\n return (\n <Modal transparent animationType=\"fade\" onRequestClose={() => setOpen(false)}>\n <Pressable className=\"flex-1 items-center justify-center bg-black/50\" onPress={() => setOpen(false)}>\n {/* Intentional no-op: prevents overlay press from closing the modal when touching content area */}\n <Pressable onPress={() => {}}>\n <View\n className={cn(\n \"min-w-[10rem] rounded-md border border-border bg-popover p-1 shadow-md\",\n className\n )}\n >\n {children}\n </View>\n </Pressable>\n </Pressable>\n </Modal>\n );\n}\n\nexport interface NativeSelectItemProps {\n className?: string;\n value: string;\n children: React.ReactNode;\n testID?: string;\n}\n\nfunction NativeSelectItem({\n className,\n value,\n children,\n ...props\n}: NativeSelectItemProps) {\n const { value: selectedValue, onValueChange, setOpen } = useSelect();\n const isSelected = selectedValue === value;\n\n return (\n <Pressable\n className={cn(\n \"flex-row items-center rounded-sm px-2 py-1.5\",\n isSelected && \"bg-accent\",\n className\n )}\n onPress={() => {\n onValueChange(value);\n setOpen(false);\n }}\n {...props}\n >\n {typeof children === \"string\" ? (\n <Text\n className={cn(\n \"text-sm\",\n isSelected ? \"text-accent-foreground\" : \"text-popover-foreground\"\n )}\n >\n {children}\n </Text>\n ) : (\n children\n )}\n </Pressable>\n );\n}\n\nexport {\n NativeSelect,\n NativeSelectTrigger,\n NativeSelectContent,\n NativeSelectItem,\n};\n","/**\n * Switch — boolean toggle (iOS-style).\n *\n * @stability Stable\n */\nimport { Switch, type SwitchProps, View } from \"react-native\";\nimport { cn } from \"../utils\";\n\nexport interface NativeSwitchProps extends SwitchProps {\n className?: string;\n checked?: boolean;\n onCheckedChange?: (checked: boolean) => void;\n}\n\nfunction NativeSwitch({\n className,\n checked,\n onCheckedChange,\n disabled,\n ...props\n}: NativeSwitchProps) {\n return (\n <View className={cn(disabled && \"opacity-50\", className)}>\n <Switch\n value={checked}\n onValueChange={onCheckedChange}\n disabled={disabled}\n accessibilityState={{ checked: checked, disabled }}\n {...props}\n />\n </View>\n );\n}\n\nexport { NativeSwitch };\n","/**\n * Textarea — multi-line text field.\n *\n * @stability Stable\n */\nimport type { ComponentRef, Ref } from \"react\";\nimport { Text, TextInput, type TextInputProps, View } from \"react-native\";\nimport { nativeColors } from \"@marktiderman/genesis-design-system/tokens/native\";\nimport { cn } from \"../utils\";\n\nexport interface NativeTextareaProps extends TextInputProps {\n className?: string;\n inputClassName?: string;\n label?: string;\n error?: string;\n /** The underlying TextInput (React 19 passes `ref` as a prop). */\n ref?: Ref<ComponentRef<typeof TextInput>> | undefined;\n /** How many lines tall the field is, on both platforms (passed as `numberOfLines`). Default 4. */\n rows?: number;\n}\n\nfunction NativeTextarea({\n className,\n inputClassName,\n label,\n error,\n editable = true,\n rows = 4,\n placeholderTextColor,\n ...props\n}: NativeTextareaProps) {\n return (\n <View className={cn(\"gap-1.5\", className)}>\n {label ? (\n <Text className=\"text-sm font-medium text-foreground\">{label}</Text>\n ) : null}\n <TextInput\n className={cn(\n \"rounded-md border border-input bg-background px-3 py-2 text-base text-foreground\",\n !editable && \"opacity-50\",\n error && \"border-destructive\",\n inputClassName\n )}\n multiline\n numberOfLines={rows}\n editable={editable}\n placeholderTextColor={placeholderTextColor ?? nativeColors.neutral[400]}\n {...props}\n />\n {error ? (\n <Text className=\"text-sm text-destructive\">{error}</Text>\n ) : null}\n </View>\n );\n}\n\nexport { NativeTextarea };\n","/**\n * NativeImage — a remote picture (thumbnail, cover, photo) with caching.\n *\n * Draws with expo-image when the app passes it (`modules.image` on\n * `GenesisModulesProvider`): cached in memory and on disk, an optional\n * blurhash/thumbhash `placeholder`, a cross-fade that Reduce Motion turns\n * off, and a `recyclingKey` (the URL by default) so a recycled FlashList row\n * never flashes the previous picture. Without it, React Native's `Image`.\n *\n * Give it a size (className or `width`/`height`). Decorative unless `alt` is\n * given.\n *\n * @stability Beta\n */\nimport { Image, View } from \"react-native\";\nimport { cn } from \"../utils\";\nimport { useReducedMotion } from \"../hooks/use-reduced-motion\";\nimport { useGenesisModules } from \"../native-modules\";\n\nexport interface NativeImageProps {\n src: string;\n /** Read by screen readers. Without it the picture is decorative. */\n alt?: string;\n className?: string;\n width?: number;\n height?: number;\n /** Default `\"cover\"`. */\n contentFit?: \"cover\" | \"contain\";\n /** expo-image only: `{ blurhash }` or `{ thumbhash }` shown while loading. */\n placeholder?: { blurhash: string } | { thumbhash: string };\n /** expo-image only: resets the view when it changes (recycled rows). Default `src`. */\n recyclingKey?: string;\n /** expo-image only: load order among images. */\n priority?: \"low\" | \"normal\" | \"high\";\n /** The picture couldn't be loaded (draw a fallback). */\n onError?: () => void;\n testID?: string;\n}\n\nconst FILL = { position: \"absolute\" as const, top: 0, right: 0, bottom: 0, left: 0 };\n\nexport function NativeImage({\n src,\n alt,\n className,\n width,\n height,\n contentFit = \"cover\",\n placeholder,\n recyclingKey,\n priority,\n onError,\n testID,\n}: NativeImageProps) {\n const { image: ExpoImage } = useGenesisModules();\n const reducedMotion = useReducedMotion();\n const a11y = alt\n ? { accessible: true, accessibilityRole: \"image\" as const, accessibilityLabel: alt }\n : { accessible: false, accessibilityElementsHidden: true, importantForAccessibility: \"no-hide-descendants\" as const };\n return (\n <View\n {...a11y}\n testID={testID}\n className={cn(\"overflow-hidden bg-muted\", className)}\n style={width !== undefined || height !== undefined ? { width, height } : undefined}\n >\n {ExpoImage ? (\n <ExpoImage\n testID={testID ? `${testID}-image` : undefined}\n accessible={false}\n source={{ uri: src }}\n style={FILL}\n contentFit={contentFit}\n cachePolicy=\"memory-disk\"\n placeholder={placeholder}\n placeholderContentFit={contentFit}\n transition={reducedMotion ? null : 150}\n recyclingKey={recyclingKey ?? src}\n priority={priority}\n onError={onError}\n />\n ) : (\n <Image\n testID={testID ? `${testID}-image` : undefined}\n accessible={false}\n source={{ uri: src }}\n style={FILL}\n resizeMode={contentFit}\n onError={onError}\n />\n )}\n </View>\n );\n}\n","/**\n * NativeGalleryGrid — photos in rows: justified (each row scaled to fill the\n * width, as in a photo library) or a fixed-column grid (square tiles by\n * default, or each item's own shape with `aspectRatio=\"item\"`).\n *\n * Rows come from the pure `justifyRows`, so the same items pack the same way\n * as the web `GalleryGrid`, with the same defaults (`GALLERY_DEFAULTS`) and\n * the same props, `onItemPress` in place of the web's `onItemClick` (as\n * `NativeResourcePage` pairs with `ResourcePage`). The first paint lays out\n * at the window width, and `onLayout` corrects it to the container's. The rows are a\n * virtualized `FlatList` (the grid scrolls itself; `header` and `footer` go\n * above and below), so a long gallery mounts only what's near the screen and\n * `loadMore` fires when scrolling nears the end, for \"load more\". Don't put\n * it inside a ScrollView: it fills its parent (`flex-1`), and nested it would\n * draw every row and fire `loadMore` at once. Put what goes above or below\n * it in `header` and `footer`. Tiles are\n * `NativeImage` over a `bg-muted` placeholder sized from the item's ratio (so\n * rows don't reflow while the picture loads), tappable when `onItemPress` is\n * given (or when selecting); `renderItem` replaces the tile's content and\n * `renderBadges` overlays its top-left.\n *\n * Selection (`selected` + `onSelectionChange`) toggles an id per press, in\n * place of `onItemPress` (as on web), and rings the chosen tiles. `groupBy`\n * lays each group out separately under a header.\n *\n * @stability Beta\n */\nimport { useMemo, useState, type ReactNode } from \"react\";\nimport { Dimensions, FlatList, Pressable, Text, View, type FlatListProps, type LayoutChangeEvent } from \"react-native\";\nimport { cn } from \"../utils\";\nimport { galleryItemRatio, justifyRows } from \"./gallery-layout\";\nimport { GALLERY_DEFAULTS, type GalleryItem, type GalleryTileAspect } from \"./gallery-types\";\nimport { NativeImage } from \"./image\";\n\nexport type NativeGalleryLayout = \"justified\" | \"grid\";\n\nexport interface NativeGalleryGridProps {\n items: GalleryItem[];\n /** Default \"justified\". */\n layout?: NativeGalleryLayout;\n /** Grid layout only: tiles per row. Default 3. */\n columns?: number;\n /** Grid layout only: each tile's shape, a ratio or `\"item\"` for the item's own. Default 1 (square), as on web. */\n aspectRatio?: GalleryTileAspect;\n /** Justified layout only: target row height in points. Default 180. */\n rowHeight?: number;\n /** Points between tiles. Default 4. */\n gap?: number;\n /** Called on a press. Not called when `onSelectionChange` is set: a press then only toggles the selection. */\n onItemPress?: (item: GalleryItem, index: number) => void;\n /** Replaces the tile's content (the image by default). */\n renderItem?: (item: GalleryItem, index: number) => ReactNode;\n /** Overlaid top-left of the default tile. */\n renderBadges?: (item: GalleryItem, index: number) => ReactNode;\n /** Ids of the selected items. With `onSelectionChange`, a press toggles the tile. */\n selected?: string[];\n onSelectionChange?: (ids: string[], detail: { item: GalleryItem; index: number }) => void;\n /** Called when scrolling nears the last rows (FlatList's `onEndReached`): the hook for \"load more\" (NativeResourceView's name). */\n loadMore?: () => void;\n /** @deprecated Use `loadMore`. */\n onNearEnd?: () => void;\n /** Above the first row, scrolling with it. */\n header?: ReactNode;\n /** Below the last row (a \"Loading more\" spinner). */\n footer?: ReactNode;\n /** Groups items (in order of first appearance), each under a header reading the key (a view's `groupBy`, for an array). */\n groupBy?: (item: GalleryItem) => string;\n /** @deprecated Use `groupBy`. */\n getGroup?: (item: GalleryItem) => string;\n /** iOS: how the list insets under a large-title or translucent header. Default `\"automatic\"`, so the first row starts below the header. */\n contentInsetAdjustmentBehavior?: FlatListProps<unknown>[\"contentInsetAdjustmentBehavior\"];\n className?: string;\n testID?: string;\n}\n\ninterface Group {\n key: string | null;\n entries: { item: GalleryItem; index: number }[];\n}\n\nfunction groupItems(items: GalleryItem[], groupBy?: (item: GalleryItem) => string): Group[] {\n if (!groupBy) return [{ key: null, entries: items.map((item, index) => ({ item, index })) }];\n const groups: Group[] = [];\n const byKey = new Map<string, Group>();\n items.forEach((item, index) => {\n const key = groupBy(item);\n let group = byKey.get(key);\n if (!group) {\n group = { key, entries: [] };\n byKey.set(key, group);\n groups.push(group);\n }\n group.entries.push({ item, index });\n });\n return groups;\n}\n\n/** One line of the list: a group's header, or a row of tiles with their sizes. */\ntype Line =\n | { kind: \"header\"; key: string; group: string }\n | { kind: \"row\"; key: string; group: string | null; first: boolean; tiles: { item: GalleryItem; index: number; width: number; height: number }[] };\n\nexport function NativeGalleryGrid({\n items,\n layout = \"justified\",\n columns = GALLERY_DEFAULTS.columns,\n aspectRatio = 1,\n rowHeight = GALLERY_DEFAULTS.rowHeight,\n gap = GALLERY_DEFAULTS.gap,\n onItemPress,\n renderItem,\n renderBadges,\n selected,\n onSelectionChange,\n loadMore: loadMoreProp,\n onNearEnd,\n header,\n footer,\n groupBy: groupByProp,\n getGroup,\n contentInsetAdjustmentBehavior = \"automatic\",\n className,\n testID = \"native-gallery-grid\",\n}: NativeGalleryGridProps) {\n const loadMore = loadMoreProp ?? onNearEnd;\n const groupBy = groupByProp ?? getGroup;\n // Start from the window width so the list mounts on the first paint (iOS applies the\n // large-title content inset only to a scroll view present at mount); onLayout corrects it.\n const [width, setWidth] = useState(() => Dimensions.get(\"window\").width);\n const onLayout = (e: LayoutChangeEvent) => {\n const next = e.nativeEvent.layout.width;\n if (next !== width) setWidth(next);\n };\n\n const selecting = Boolean(onSelectionChange);\n const selectedIds = selected ?? [];\n const isSelected = (item: GalleryItem) => selectedIds.includes(item.id);\n\n const lines = useMemo<Line[]>(() => {\n if (width <= 0) return [];\n const out: Line[] = [];\n groupItems(items, groupBy).forEach((group) => {\n if (group.key !== null) out.push({ kind: \"header\", key: `h:${group.key}`, group: group.key });\n const rows: Line[] = [];\n if (layout === \"grid\") {\n const cols = Math.max(1, Math.floor(columns));\n const side = (width - gap * (cols - 1)) / cols;\n for (let i = 0; i < group.entries.length; i += cols) {\n const slice = group.entries.slice(i, i + cols);\n // A row is as tall as its tallest tile (\"item\" shapes differ); squares by default.\n const heights = slice.map(({ item }) => side / (aspectRatio === \"item\" ? galleryItemRatio(item) : aspectRatio));\n rows.push({\n kind: \"row\",\n key: `r:${group.key ?? \"\"}:${i}`,\n group: group.key,\n first: i === 0,\n tiles: slice.map(({ item, index }, n) => ({ item, index, width: side, height: heights[n]! })),\n });\n }\n } else {\n justifyRows(group.entries.map((e) => e.item), width, rowHeight, gap).forEach((row, r) => {\n rows.push({\n kind: \"row\",\n key: `r:${group.key ?? \"\"}:${r}`,\n group: group.key,\n first: r === 0,\n tiles: row.tiles.map((t) => ({ item: t.item, index: group.entries[t.index]!.index, width: t.width, height: t.height })),\n });\n });\n }\n out.push(...rows);\n });\n return out;\n }, [width, items, groupBy, layout, columns, aspectRatio, rowHeight, gap]);\n\n const press = (item: GalleryItem, index: number) => {\n if (onSelectionChange) {\n const next = isSelected(item) ? selectedIds.filter((id) => id !== item.id) : [...selectedIds, item.id];\n onSelectionChange(next, { item, index });\n return;\n }\n onItemPress?.(item, index);\n };\n\n const tile = (item: GalleryItem, index: number, size: { width: number; height: number }) => {\n const chosen = isSelected(item);\n const content = renderItem ? (\n renderItem(item, index)\n ) : (\n <>\n <View className=\"absolute inset-0 bg-muted\" />\n {item.src ? (\n <NativeImage src={item.src} alt={item.alt} className=\"h-full w-full\" />\n ) : (\n // No image: a neutral tile with its words, so the count matches what's drawn. The tile's\n // own label (alt, then caption) names a pressable tile, so the words are hidden from\n // readers then; a plain tile isn't pressable, so the placeholder is the named image.\n <View\n testID={`${testID}-placeholder-${item.id}`}\n {...(onItemPress || selecting\n ? { importantForAccessibility: \"no-hide-descendants\" as const, accessibilityElementsHidden: true }\n : {\n accessible: true,\n accessibilityRole: \"image\" as const,\n accessibilityLabel: item.alt ?? item.caption ?? `Photo ${index + 1} of ${items.length}`,\n })}\n className=\"h-full w-full items-center justify-center gap-0.5 p-2\"\n >\n {item.alt ? (\n <Text numberOfLines={2} className=\"text-center text-sm font-medium text-foreground\">\n {item.alt}\n </Text>\n ) : null}\n {item.caption ? (\n <Text numberOfLines={2} className=\"text-center text-xs text-muted-foreground\">\n {item.caption}\n </Text>\n ) : null}\n </View>\n )}\n {renderBadges ? (\n <View testID={`${testID}-badges-${item.id}`} pointerEvents=\"box-none\" className=\"absolute left-1 top-1 flex-row items-center gap-1\">\n {renderBadges(item, index)}\n </View>\n ) : null}\n </>\n );\n const tileID = `${testID}-item-${item.id}`;\n const tileClass = cn(\"overflow-hidden rounded-md bg-muted\", chosen && \"border-2 border-ring\");\n if (onItemPress || selecting) {\n return (\n <Pressable\n key={item.id}\n testID={tileID}\n accessibilityRole=\"button\"\n accessibilityLabel={item.alt ?? item.caption ?? `Photo ${index + 1} of ${items.length}`}\n accessibilityState={selecting ? { selected: chosen } : undefined}\n onPress={() => press(item, index)}\n className={tileClass}\n style={size}\n >\n {content}\n </Pressable>\n );\n }\n return (\n <View key={item.id} testID={tileID} className={tileClass} style={size}>\n {content}\n </View>\n );\n };\n\n const renderLine = ({ item: line, index: n }: { item: Line; index: number }) => {\n if (line.kind === \"header\") {\n return (\n <Text accessibilityRole=\"header\" testID={`${testID}-group-${line.group}`} className=\"mb-2 text-sm font-medium text-muted-foreground\" style={{ marginTop: n === 0 ? 0 : gap * 3 }}>\n {line.group}\n </Text>\n );\n }\n return (\n <View\n className=\"flex-row\"\n testID={line.group === null ? undefined : `${testID}-row-${line.group}`}\n style={{ gap, marginTop: line.first ? 0 : gap }}\n >\n {line.tiles.map((t) => tile(t.item, t.index, { width: t.width, height: t.height }))}\n </View>\n );\n };\n\n return (\n <View testID={testID} onLayout={onLayout} className={cn(\"w-full flex-1\", className)}>\n {width > 0 ? (\n <FlatList\n testID={`${testID}-list`}\n contentInsetAdjustmentBehavior={contentInsetAdjustmentBehavior}\n data={lines}\n keyExtractor={(line) => line.key}\n renderItem={renderLine}\n ListHeaderComponent={header ? <>{header}</> : undefined}\n ListFooterComponent={footer ? <>{footer}</> : undefined}\n onEndReached={loadMore ? () => loadMore() : undefined}\n onEndReachedThreshold={0.5}\n initialNumToRender={8}\n windowSize={7}\n />\n ) : null}\n </View>\n );\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/layouts/screen-container.tsx","../src/layouts/nav-bar.tsx","../src/layouts/inbox-page.tsx"],"names":["jsx","jsxs","View","SafeAreaView","ScrollView","Pressable"],"mappings":";;;;;;;;;;;;AAkIO,SAAS,qBACd,KAAA,EACyB;AACzB,EAAA,MAAM;AAAA,IACJ,WAAA;AAAA,IACA,UAAA;AAAA,IACA,WAAA;AAAA,IACA,KAAA;AAAA,IACA,kBAAA;AAAA,IACA;AAAA,GACF,GAAI,KAAA;AAEJ,EAAA,MAAM,OAAgC,EAAC;AACvC,EAAA,IAAI,WAAA,KAAgB,MAAA,EAAW,IAAA,CAAK,KAAA,GAAQ,WAAA;AAC5C,EAAA,IAAI,UAAA,OAAiB,UAAA,GAAa,UAAA;AAClC,EAAA,IAAI,WAAA,OAAkB,WAAA,GAAc,WAAA;AACpC,EAAA,IAAI,KAAA,EAAO;AAET,IAAA,IAAA,CAAK,gBAAA,GAAmB,IAAA;AACxB,IAAA,IAAI,uBAAuB,aAAA,EAAe;AACxC,MAAA,IAAA,CAAK,iBAAA,GAAoB,IAAA;AAAA,IAC3B,CAAA,MAAA,IAAW,uBAAuB,QAAA,EAAU;AAC1C,MAAA,IAAA,CAAK,6BAAA,GAAgC,IAAA;AAAA,IACvC;AAAA,EACF;AAEA,EAAA,IAAI,aAAA,EAAe;AACjB,IAAA,MAAA,CAAO,MAAA,CAAO,MAAM,aAAa,CAAA;AAAA,EACnC;AACA,EAAA,OAAO,IAAA;AACT;AAEA,IAAM,aAAA,GAAgC,CAAC,MAAA,EAAQ,OAAO,CAAA;AAKtD,IAAM,uBAAA,GAAmD,EAAE,WAAA,EAAa,IAAA,EAAM,iBAAiB,aAAA,EAAc;AAO7G,SAAS,eAAA,CACP,WACA,YAAA,EAC8C;AAC9C,EAAA,IAAI,cAAc,MAAA,EAAQ;AACxB,IAAA,OAAO,YAAA,KAAiB,SAAS,eAAA,GAAkB,cAAA;AAAA,EACrD;AAC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mB,cAAA,EAAe,SAAA,EAAU,MAAA,EAAO,MAAA,EAAgB,CAAA;AAE3H;AAEA,SAAS,aAAa,EAAE,KAAA,EAAO,MAAM,WAAA,EAAa,QAAA,EAAU,QAAO,EAA8B;AAC/F,EAAA,uBACEA,GAAAA;AAAA,IAAC,gBAAA;AAAA,IAAA;AAAA,MACC,OAAA,EAAQ,WAAA;AAAA,MACR,KAAA;AAAA,MACA,IAAA;AAAA,MACA,MAAA;AAAA,MACA,aAAA,EACE,WAAA,IAAe,QAAA,mBACbA,GAAAA,CAAC,YAAA,EAAA,EAAa,OAAA,EAAS,QAAA,EAAU,MAAA,EAAQ,CAAA,EAAG,MAAM,CAAA,OAAA,CAAA,EAC/C,uBACH,CAAA,GACE;AAAA;AAAA,GAER;AAEJ","file":"chunk-PWYMRUAK.js","sourcesContent":["/**\n * ScreenContainer — Layer-2 page primitive.\n *\n * Wires the chrome every layout needs without imposing layout structure:\n * - Safe-area edges (configurable via `safeAreaEdges`)\n * - StatusBar style (light / dark / auto)\n * - Scroll vs static body\n * - Tokens-aware background (`bg-background`)\n * - A loading state (`loading`): a centred `NativeLoadingState` in place of the body\n * - Pull to refresh (`onRefresh` + `refreshing`): a theme-tinted `NativeRefreshControl`\n *\n * Header customization is delegated: pass `headerLeft`, `headerRight`,\n * `large`, `scrollEdgeBehavior`, `safeAreaEdges`, plus any direct\n * `headerOptions` passthrough to `<Stack.Screen options={...} />`. We\n * **do not** render the navigation header ourselves — Expo Router /\n * React Navigation render the platform-native header. Consumer either:\n *\n * (a) Wraps the screen in `<ScreenContainer>` and ALSO declares\n * `<Stack.Screen options={headerOptionsFromProps(props)} />` at the\n * top of the screen (we export a helper `composeHeaderOptions` for\n * this), OR\n * (b) Imports `<NavBarTitle>` / `<NavBarSearchBar>` / `<NavBarSaveButton>`\n * sub-primitives and threads them through `headerLeft` / `headerRight`\n * options manually.\n *\n * The Layer-3/4 layouts (SettingsPage, etc.) compose ScreenContainer + a\n * helper that wires Stack.Screen so consumers get the 3-line ergonomics.\n *\n * @stability Beta\n */\nimport type { ReactNode } from \"react\";\nimport { ScrollView, StatusBar, View, type ViewStyle } from \"react-native\";\nimport { SafeAreaView } from \"react-native-safe-area-context\";\nimport { cn } from \"../utils\";\nimport { useThemeMode } from \"../hooks/use-theme-mode\";\nimport { NativeLoadingState } from \"../components/loading-state\";\nimport { NativeRefreshControl } from \"../components/refresh-control\";\n\nexport type SafeAreaEdge = \"top\" | \"bottom\" | \"left\" | \"right\";\n\nexport type ScrollEdgeBehavior = \"match\" | \"transparent\" | \"opaque\";\n\nexport interface ScreenContainerProps {\n /** Screen body. Pass any node tree. */\n children: ReactNode;\n /** When `true`, the body is wrapped in a vertical ScrollView. Default `false`. */\n scroll?: boolean;\n /**\n * SafeAreaView edges. Defaults to `[\"left\", \"right\"]` — top/bottom are\n * normally handled by the navigation header / tab bar.\n */\n safeAreaEdges?: SafeAreaEdge[];\n /**\n * StatusBar appearance. `\"auto\"` follows the resolved theme mode.\n */\n statusBar?: \"light\" | \"dark\" | \"auto\" | \"hidden\";\n /**\n * Force light or dark theme on this screen regardless of OS preference.\n * Default `\"system\"` (follow OS).\n */\n themeMode?: \"light\" | \"dark\" | \"system\";\n /** Override root container className. */\n className?: string;\n /** Override inner content container className (the ScrollView's contentContainerClassName when scroll=true). */\n contentClassName?: string;\n /**\n * `keyboardShouldPersistTaps` for the inner ScrollView. Default `\"handled\"`.\n * Only used when `scroll` is true.\n */\n keyboardShouldPersistTaps?: \"always\" | \"never\" | \"handled\";\n /**\n * When `true`, a centred `NativeLoadingState` (theme-tinted spinner,\n * announced as loading) replaces the body, inside the same safe area and\n * background. Use it for redirect and first-load screens: the body is\n * unmounted while it's on, so a form underneath loses its state. Default `false`.\n */\n loading?: boolean;\n /** Text under the spinner while `loading`, and what screen readers announce: pass translated text. */\n loadingLabel?: string;\n /**\n * Pull to refresh: a theme-tinted `NativeRefreshControl` on the body, as InboxPage and\n * NotificationsPage have. Pulling needs a scroll view, so passing it makes the body scroll\n * (as `scroll`). Off unless passed. Never with a list child (FlatList, SectionList,\n * NativeResourceView, InboxPage): a list inside a ScrollView loses virtualization, and those\n * lists have their own pull to refresh.\n */\n onRefresh?: () => void | Promise<void>;\n /** The refresh spinner shows while `true`: pass your query's refetching state. Default `false`. */\n refreshing?: boolean;\n /** Style on the root, e.g. a theme-role background color. */\n style?: ViewStyle;\n /** testID on the root container. */\n testID?: string;\n}\n\n/**\n * Layer-3 named-prop slots that layouts can accept and forward to\n * `composeHeaderOptions()` for `<Stack.Screen options={...}>`.\n */\nexport interface ScreenHeaderProps {\n /** Custom header title. Falls back to `<Stack.Screen name>` mapping. */\n headerTitle?: string;\n /** Custom node rendered on the left of the nav bar. */\n headerLeft?: () => ReactNode;\n /** Custom node rendered on the right of the nav bar. */\n headerRight?: () => ReactNode;\n /** When true, iOS uses large-title mode + scroll-edge appearance. */\n large?: boolean;\n /** iOS scroll-edge behavior. `\"match\"` collapses, `\"transparent\"` always transparent, `\"opaque\"` always opaque. */\n scrollEdgeBehavior?: ScrollEdgeBehavior;\n /** Direct passthrough merged INTO the resolved options object. Wins over named props. */\n headerOptions?: Record<string, unknown>;\n}\n\n/**\n * Compose a `<Stack.Screen options={...}>` object from Layer-3 named\n * props + a direct `headerOptions` passthrough. Layouts call this and\n * pass the result to `<Stack.Screen>` so the host's expo-router stack\n * renders a platform-native large title / scroll-edge appearance.\n *\n * Usage (in a layout primitive):\n *\n * const opts = composeHeaderOptions({\n * headerTitle: \"Settings\",\n * large: true,\n * scrollEdgeBehavior: \"match\",\n * headerOptions: rest.headerOptions,\n * });\n * return <><Stack.Screen options={opts} /><ScreenContainer>...</ScreenContainer></>;\n */\nexport function composeHeaderOptions(\n props: ScreenHeaderProps,\n): Record<string, unknown> {\n const {\n headerTitle,\n headerLeft,\n headerRight,\n large,\n scrollEdgeBehavior,\n headerOptions,\n } = props;\n\n const opts: Record<string, unknown> = {};\n if (headerTitle !== undefined) opts.title = headerTitle;\n if (headerLeft) opts.headerLeft = headerLeft;\n if (headerRight) opts.headerRight = headerRight;\n if (large) {\n // iOS large-title mode. Android falls back to standard.\n opts.headerLargeTitle = true;\n if (scrollEdgeBehavior === \"transparent\") {\n opts.headerTransparent = true;\n } else if (scrollEdgeBehavior === \"opaque\") {\n opts.headerLargeTitleShadowVisible = true;\n }\n }\n // Direct passthrough wins.\n if (headerOptions) {\n Object.assign(opts, headerOptions);\n }\n return opts;\n}\n\nconst DEFAULT_EDGES: SafeAreaEdge[] = [\"left\", \"right\"];\n\n// A see-through Android status bar. React Native 0.88 dropped both props from StatusBar's types\n// (Android is always edge to edge there, so they do nothing); earlier versions still need them.\n// Spread untyped so the screen compiles against either.\nconst TRANSLUCENT_ANDROID_BAR: Record<string, unknown> = { translucent: true, backgroundColor: \"transparent\" };\n\n/**\n * Resolve the StatusBar bar style from the user's `statusBar` setting +\n * the resolved theme mode. `\"auto\"` follows theme; explicit overrides\n * win; anything else falls back to `\"default\"`.\n */\nfunction resolveBarStyle(\n statusBar: \"light\" | \"dark\" | \"auto\" | \"hidden\",\n resolvedMode: \"light\" | \"dark\",\n): \"default\" | \"light-content\" | \"dark-content\" {\n if (statusBar === \"auto\") {\n return resolvedMode === \"dark\" ? \"light-content\" : \"dark-content\";\n }\n if (statusBar === \"light\") return \"light-content\";\n if (statusBar === \"dark\") return \"dark-content\";\n return \"default\";\n}\n\nexport function ScreenContainer({\n children,\n scroll = false,\n safeAreaEdges = DEFAULT_EDGES,\n statusBar = \"auto\",\n themeMode = \"system\",\n className,\n contentClassName,\n keyboardShouldPersistTaps = \"handled\",\n loading = false,\n loadingLabel,\n onRefresh,\n refreshing = false,\n style,\n testID,\n}: ScreenContainerProps) {\n const osMode = useThemeMode();\n const resolvedMode = themeMode === \"system\" ? osMode : themeMode;\n const barStyle = resolveBarStyle(statusBar, resolvedMode);\n\n const body = loading ? (\n <View testID={testID ? `${testID}-body` : undefined} className={cn(\"flex-1\", contentClassName)}>\n <NativeLoadingState fullScreen={false} label={loadingLabel} testID={`${testID ?? \"screen-container\"}-loading`} />\n </View>\n ) : scroll || onRefresh ? (\n <ScrollView\n testID={testID ? `${testID}-scroll` : undefined}\n refreshControl={\n onRefresh ? (\n <NativeRefreshControl testID={`${testID ?? \"screen-container\"}-refresh`} refreshing={refreshing} onRefresh={() => void onRefresh()} />\n ) : undefined\n }\n keyboardShouldPersistTaps={keyboardShouldPersistTaps}\n contentInsetAdjustmentBehavior=\"automatic\"\n contentContainerClassName={cn(\"flex-grow\", contentClassName)}\n >\n {children}\n </ScrollView>\n ) : (\n <View\n testID={testID ? `${testID}-body` : undefined}\n className={cn(\"flex-1\", contentClassName)}\n >\n {children}\n </View>\n );\n\n return (\n <SafeAreaView\n testID={testID ?? \"screen-container\"}\n edges={safeAreaEdges}\n className={cn(\"flex-1 bg-background\", className)}\n style={style}\n >\n {statusBar !== \"hidden\" ? (\n <StatusBar\n barStyle={\n barStyle as\n | \"default\"\n | \"light-content\"\n | \"dark-content\"\n }\n {...TRANSLUCENT_ANDROID_BAR}\n />\n ) : (\n <StatusBar hidden />\n )}\n {body}\n </SafeAreaView>\n );\n}\n","/**\n * Nav-bar sub-primitives — escape hatches for `<Stack.Screen>` `headerLeft`,\n * `headerRight`, and custom title view.\n *\n * Use these when the named-prop slots on a layout aren't enough — e.g.,\n * a screen needs a save button on the right that's wired to dirty-state,\n * or a search bar replaces the title on a results screen.\n *\n * Pass directly into `headerLeft={() => <NavBarSearchBar ... />}` or\n * compose into a custom `headerTitle={() => <NavBarTitle ... />}` slot.\n *\n * @stability Beta\n */\nimport { Pressable, Text, TextInput, View } from \"react-native\";\nimport { nativeColors } from \"@marktiderman/genesis-design-system/tokens/native\";\nimport { cn } from \"../utils\";\n\n// ---------------------------------------------------------------------------\n// NavBarSaveButton\n// ---------------------------------------------------------------------------\n\nexport interface NavBarSaveButtonProps {\n /** Press handler. Disabled when not provided OR when `disabled`/`loading`. */\n onPress?: () => void;\n /** Visible label. Default `\"Save\"`. */\n label?: string;\n /** When true, the button is muted and not pressable. Use this for clean / pristine forms. */\n disabled?: boolean;\n /** When true, label switches to a busy indicator and presses are blocked. */\n loading?: boolean;\n /** When true, render label in destructive tone. */\n destructive?: boolean;\n className?: string;\n testID?: string;\n}\n\nexport function NavBarSaveButton({\n onPress,\n label = \"Save\",\n disabled,\n loading,\n destructive,\n className,\n testID,\n}: NavBarSaveButtonProps) {\n const isDisabled = !!disabled || !!loading || !onPress;\n return (\n <Pressable\n testID={testID ?? \"nav-bar-save-button\"}\n accessibilityRole=\"button\"\n accessibilityLabel={label}\n accessibilityState={{ disabled: isDisabled, busy: !!loading }}\n onPress={isDisabled ? undefined : onPress}\n disabled={isDisabled}\n className={cn(\"min-h-[44px] justify-center px-3\", className)}\n hitSlop={8}\n >\n <Text\n className={cn(\n \"text-base font-semibold\",\n destructive ? \"text-destructive\" : \"text-primary\",\n isDisabled && \"opacity-40\"\n )}\n >\n {loading ? \"…\" : label}\n </Text>\n </Pressable>\n );\n}\n\n// ---------------------------------------------------------------------------\n// NavBarTitle\n// ---------------------------------------------------------------------------\n\nexport interface NavBarTitleProps {\n /** Title text. */\n title: string;\n /** Optional smaller subtitle line under the title. */\n subtitle?: string;\n /** Optional press handler — turns the title row into a tap target (e.g., reveal a picker). */\n onPress?: () => void;\n className?: string;\n testID?: string;\n}\n\nexport function NavBarTitle({\n title,\n subtitle,\n onPress,\n className,\n testID,\n}: NavBarTitleProps) {\n const inner = (\n <View className={cn(\"items-center justify-center\", className)}>\n <Text\n testID={testID ? `${testID}-title` : undefined}\n className=\"text-base font-semibold text-foreground\"\n numberOfLines={1}\n >\n {title}\n </Text>\n {subtitle ? (\n <Text\n testID={testID ? `${testID}-subtitle` : undefined}\n className=\"text-xs text-muted-foreground\"\n numberOfLines={1}\n >\n {subtitle}\n </Text>\n ) : null}\n </View>\n );\n\n if (onPress) {\n return (\n <Pressable\n testID={testID ?? \"nav-bar-title\"}\n accessibilityRole=\"button\"\n accessibilityLabel={subtitle ? `${title}, ${subtitle}` : title}\n onPress={onPress}\n hitSlop={8}\n >\n {inner}\n </Pressable>\n );\n }\n\n return (\n <View testID={testID ?? \"nav-bar-title\"} accessibilityRole=\"header\">\n {inner}\n </View>\n );\n}\n\n// ---------------------------------------------------------------------------\n// NavBarSearchBar\n// ---------------------------------------------------------------------------\n\nexport interface NavBarSearchBarProps {\n value: string;\n onChangeText: (next: string) => void;\n placeholder?: string;\n /** Called when the user submits the search (return key). */\n onSubmit?: () => void;\n /** Render a clear (X) button when value is non-empty. Default true. */\n clearable?: boolean;\n className?: string;\n testID?: string;\n}\n\n/**\n * Inline search input meant to occupy the title slot on a search results\n * screen. For a sticky search-below-the-header pattern, prefer the\n * standalone <NativeSearchBar> primitive.\n */\nexport function NavBarSearchBar({\n value,\n onChangeText,\n placeholder = \"Search\",\n onSubmit,\n clearable = true,\n className,\n testID,\n}: NavBarSearchBarProps) {\n return (\n <View\n testID={testID ?? \"nav-bar-search\"}\n className={cn(\n \"min-h-[36px] flex-row items-center rounded-full bg-muted px-3\",\n className\n )}\n >\n <TextInput\n testID={testID ? `${testID}-input` : undefined}\n accessibilityLabel={placeholder}\n value={value}\n onChangeText={onChangeText}\n onSubmitEditing={onSubmit}\n placeholder={placeholder}\n placeholderTextColor={nativeColors.neutral[400]}\n returnKeyType=\"search\"\n autoCorrect={false}\n autoCapitalize=\"none\"\n clearButtonMode={clearable ? \"while-editing\" : \"never\"}\n className=\"flex-1 text-base text-foreground\"\n />\n {clearable && value.length > 0 ? (\n <Pressable\n testID={testID ? `${testID}-clear` : undefined}\n accessibilityRole=\"button\"\n accessibilityLabel=\"Clear search\"\n onPress={() => onChangeText(\"\")}\n hitSlop={8}\n className=\"ml-2 px-1\"\n >\n <Text className=\"text-base text-muted-foreground\">×</Text>\n </Pressable>\n ) : null}\n </View>\n );\n}\n","/**\n * InboxPage — a list of conversations or tickets: unread state, a time, a\n * preview line, swipe actions, pull to refresh, paging and an empty state.\n *\n * Generic: the rows are whatever the app has (support reports, direct\n * messages, an idea board). Data and actions come in as props; the layout\n * draws them the platform's way. On iOS it is the Settings app's inset\n * grouped style, like `SettingsPage`: the page is `groupedBackground`, the\n * rows one rounded group on `surface` with hairline separators that start at\n * the text. On Android rows are full width.\n *\n * Swipe actions: each row's `swipeActions` are always reachable without a\n * gesture library, as VoiceOver / TalkBack custom actions and on long press\n * (`NativeContextMenu`). The swipe itself is `NativeSwipeRow`, once the app\n * passes `GenesisModules.swipeable` (`ReanimatedSwipeable` from\n * react-native-gesture-handler, an optional peer), with each action's `side`.\n * The `swipeable` slot takes your own wrapper instead; it receives the actions\n * and the row.\n *\n * Rows: `avatar` puts a picture of who it is between the unread dot and the\n * text (an unread count shows at the end of the row, as in Mail); `leading`\n * replaces the dot.\n *\n * Slots: `row`, `swipeable`, `header` (above the group), `footer` (below it,\n * the paging spinner by default) and `empty`. `slots` swaps a part for your\n * component (same props), `slotProps` feeds the default more props, `null`\n * drops it.\n *\n * Header: `getInboxPageStackOptions()` for `<Stack.Screen options>`.\n *\n * @stability Beta\n */\nimport { createContext, Fragment, useContext, useState, type ReactNode } from \"react\";\nimport { renderSlot, type SlotPropsFor, type Slots } from \"@marktiderman/genesis-core/slots\";\nimport { Alert, FlatList, Platform, Pressable, ScrollView, StyleSheet, View } from \"react-native\";\nimport { SafeAreaView } from \"react-native-safe-area-context\";\nimport { useThemeRoles } from \"../hooks/use-theme-roles\";\nimport { NativeEmptyState } from \"../components/empty-state\";\nimport { NativeText } from \"../components/text\";\nimport { NativeButton } from \"../components/button\";\nimport { NativeBadge } from \"../components/badge\";\nimport { NativeContextMenu } from \"../components/context-menu\";\nimport { NativeRefreshControl } from \"../components/refresh-control\";\nimport { NativeSwipeRow } from \"../components/swipe-row\";\nimport { NativeLoadingState } from \"../components/loading-state\";\nimport { composeHeaderOptions, type ScreenHeaderProps } from \"./screen-container\";\nimport { formatInboxTime, type InboxItem, type InboxSwipeAction } from \"@marktiderman/genesis-core/conversation\";\n\n// The conversation contract is genesis-core's, shared with genesis-ui's InboxPage.\nexport type { InboxItem, InboxSwipeAction } from \"@marktiderman/genesis-core/conversation\";\nexport { formatInboxTime } from \"@marktiderman/genesis-core/conversation\";\n\n/** The parts `slots` and `slotProps` reach, with the props each receives. */\nexport type InboxPageSlotMap = {\n row: InboxItem & { testID: string; isFirst: boolean; isLast: boolean; timeLabel: string | null };\n swipeable: { actions: InboxSwipeAction[]; testID: string; children?: ReactNode };\n header: { testID: string };\n footer: { loadingMore: boolean; testID: string };\n empty: { title: string; body: string; actionLabel?: string; onAction?: () => void; testID: string };\n};\n\nexport interface InboxPageProps extends ScreenHeaderProps {\n /** Newest first, as they should show. Empty → the empty state. */\n items: InboxItem[];\n refreshing?: boolean;\n onRefresh?: () => void | Promise<void>;\n /** Called near the end of the list, to load the next page. */\n onEndReached?: () => void;\n /** A next page is loading: the default footer shows a spinner. */\n loadingMore?: boolean;\n /** Above the group (a filter, a call to action). Prefer `slots.header` for a component. */\n header?: ReactNode;\n /** An optional title over the group, in the Settings header style. */\n sectionTitle?: string;\n emptyTitle?: string;\n emptyBody?: string;\n /** The first page is loading: a spinner instead of the empty state. */\n loading?: boolean;\n /** The read failed: the empty slot shows `errorTitle` / `errorBody` instead (and pull to refresh retries). */\n error?: boolean;\n errorTitle?: string;\n errorBody?: string;\n /** A button in the empty state (\"Send feedback\"). */\n emptyActionLabel?: string;\n onEmptyAction?: () => void;\n /** How a row's time reads. Default: the time today, \"Yesterday\", the weekday this week, else the date. */\n formatTime?: (date: Date, now: Date) => string;\n /** The clock, for tests. */\n now?: () => Date;\n slots?: Slots<InboxPageSlotMap>;\n slotProps?: SlotPropsFor<InboxPageSlotMap>;\n /** testID on the root. Default `\"inbox-page\"`. */\n testID?: string;\n}\n\n/** `<Stack.Screen options>` for an InboxPage: a large title that collapses on scroll. */\nexport function getInboxPageStackOptions(props: ScreenHeaderProps & { headerTitle?: string }): Record<string, unknown> {\n return composeHeaderOptions({\n headerTitle: props.headerTitle ?? \"Inbox\",\n large: props.large ?? true,\n scrollEdgeBehavior: props.scrollEdgeBehavior ?? \"match\",\n headerLeft: props.headerLeft,\n headerRight: props.headerRight,\n headerOptions: props.headerOptions,\n });\n}\n\n/** Opens the page's one actions menu for a row. */\nconst OpenRowMenu = createContext<(row: InboxPageSlotMap[\"row\"]) => void>(() => undefined);\n\n/** The row's leading padding, the unread dot's column, an avatar's default size and its gap to the text. */\nconst ROW_PADDING = 16;\nconst LEADING_WIDTH = 18;\nconst DEFAULT_AVATAR = 40;\nconst AVATAR_GAP = 12;\n\n/** UIKit's inset grouped margin on a phone, in points (as SettingsPage). */\nconst IOS_GROUP_MARGIN = 16;\n\nfunction iosGroupRadius(): number {\n return Number.parseFloat(String(Platform.Version)) >= 26 ? 26 : 10;\n}\n\nexport function InboxPage({\n items,\n refreshing,\n onRefresh,\n onEndReached,\n loadingMore = false,\n header,\n sectionTitle,\n emptyTitle,\n emptyBody,\n emptyActionLabel,\n onEmptyAction,\n loading = false,\n error = false,\n errorTitle,\n errorBody,\n formatTime = formatInboxTime,\n now = () => new Date(),\n slots = {},\n slotProps = {},\n testID = \"inbox-page\",\n}: InboxPageProps) {\n const colors = useThemeRoles();\n const clock = now();\n // One menu for the page: its row stays set while the sheet goes, so its words don't vanish first.\n const [menuRow, setMenuRow] = useState<InboxPageSlotMap[\"row\"] | null>(null);\n const [menuOpen, setMenuOpen] = useState(false);\n const rows: InboxPageSlotMap[\"row\"][] = items.map((item, index) => ({\n ...item,\n testID: item.testID ?? `${testID}-row-${item.id}`,\n isFirst: index === 0,\n isLast: index === items.length - 1,\n timeLabel: item.timestamp ? formatTime(typeof item.timestamp === \"string\" ? new Date(item.timestamp) : item.timestamp, clock) : null,\n }));\n\n const headerNode = (\n <View>\n {header ?? renderSlot(EmptyPart, slots.header, { testID: `${testID}-header` }, slotProps.header)}\n {sectionTitle ? <SectionTitle title={sectionTitle} testID={`${testID}-section-title`} /> : null}\n </View>\n );\n\n const refreshControl = onRefresh ? <NativeRefreshControl testID={`${testID}-refresh`} refreshing={!!refreshing} onRefresh={() => void onRefresh()} /> : undefined;\n\n if (items.length === 0) {\n // A scroll view, not a plain view: under a large-title (or translucent) header only a\n // scroll view's automatic content inset moves the content below the header, and pull to\n // refresh needs one too.\n return (\n <SafeAreaView testID={testID} edges={[\"left\", \"right\", \"bottom\"]} style={{ flex: 1, backgroundColor: colors.groupedBackground }}>\n <ScrollView\n testID={`${testID}-empty-scroll`}\n contentInsetAdjustmentBehavior=\"automatic\"\n keyboardShouldPersistTaps=\"handled\"\n contentContainerStyle={{ flexGrow: 1, paddingTop: 8, paddingBottom: 32 }}\n refreshControl={refreshControl}\n >\n {headerNode}\n {loading ? (\n <NativeLoadingState fullScreen={false} testID={`${testID}-loading`} />\n ) : (\n renderSlot(\n DefaultEmpty,\n slots.empty,\n error\n ? {\n title: errorTitle ?? \"Couldn't load this\",\n body: errorBody ?? \"Check your connection, then pull to refresh.\",\n actionLabel: onRefresh ? \"Try again\" : undefined,\n onAction: onRefresh ? () => void onRefresh() : undefined,\n testID: `${testID}-error`,\n }\n : {\n title: emptyTitle ?? \"Nothing here yet\",\n body: emptyBody ?? \"When there's something new, it shows up here.\",\n actionLabel: emptyActionLabel,\n onAction: onEmptyAction,\n testID: `${testID}-empty`,\n },\n slotProps.empty,\n )\n )}\n </ScrollView>\n </SafeAreaView>\n );\n }\n\n return (\n <SafeAreaView testID={testID} edges={[\"left\", \"right\", \"bottom\"]} style={{ flex: 1, backgroundColor: colors.groupedBackground }}>\n <OpenRowMenu.Provider\n value={(row) => {\n setMenuRow(row);\n setMenuOpen(true);\n }}\n >\n <FlatList\n testID={`${testID}-list`}\n data={rows}\n keyExtractor={(row) => row.id}\n contentInsetAdjustmentBehavior=\"automatic\"\n // The header can hold a text field (the idea board's \"Suggest\"): its button's first tap\n // must press it, not only close the keyboard.\n keyboardShouldPersistTaps=\"handled\"\n ListHeaderComponent={headerNode}\n ListFooterComponent={renderSlot(DefaultFooter, slots.footer, { loadingMore, testID: `${testID}-footer` }, slotProps.footer)}\n contentContainerStyle={{ paddingTop: 8, paddingBottom: 32 }}\n onEndReached={onEndReached}\n onEndReachedThreshold={0.5}\n refreshControl={refreshControl}\n renderItem={({ item: row }) => {\n const content = renderSlot(DefaultRow, slots.row, row, slotProps.row);\n const actions = row.swipeActions ?? [];\n return (\n <Fragment>\n {actions.length && slots.swipeable !== null\n ? renderSlot(NativeSwipeRow, slots.swipeable, { actions, testID: `${row.testID}-swipe`, children: content }, slotProps.swipeable)\n : content}\n </Fragment>\n );\n }}\n />\n </OpenRowMenu.Provider>\n {menuRow ? <NativeContextMenu open={menuOpen} onOpenChange={setMenuOpen} title={menuRow.title} actions={menuRow.swipeActions ?? []} testID={`${testID}-menu`} /> : null}\n </SafeAreaView>\n );\n}\n\nfunction EmptyPart(_props: InboxPageSlotMap[\"header\"]) {\n return null;\n}\n\nfunction SectionTitle({ title, testID }: { title: string; testID: string }) {\n const colors = useThemeRoles();\n const ios = Platform.OS === \"ios\";\n return (\n <NativeText\n testID={testID}\n accessibilityRole=\"header\"\n className={ios ? \"px-4 pb-1.5 pt-2\" : \"px-4 pb-2 pt-4 text-primary\"}\n style={\n ios\n ? { marginHorizontal: IOS_GROUP_MARGIN, color: colors.secondaryLabel, fontSize: 13, lineHeight: 18, textTransform: \"uppercase\" }\n : { fontSize: 14, lineHeight: 20, fontWeight: \"500\" }\n }\n >\n {title}\n </NativeText>\n );\n}\n\n/**\n * Opens a row's actions as the system alert. `InboxPage` now opens `NativeContextMenu`; `NativeResourceView`\n * still uses this.\n */\nexport function showInboxActions(title: string, actions: InboxSwipeAction[], cancelLabel = \"Cancel\"): void {\n Alert.alert(title, undefined, [\n ...actions.map((a) => ({ text: a.label, style: a.destructive ? (\"destructive\" as const) : (\"default\" as const), onPress: a.onPress })),\n { text: cancelLabel, style: \"cancel\" as const },\n ]);\n}\n\nfunction DefaultRow(row: InboxPageSlotMap[\"row\"]) {\n const colors = useThemeRoles();\n const ios = Platform.OS === \"ios\";\n const [pressed, setPressed] = useState(false);\n const openMenu = useContext(OpenRowMenu);\n const actions = row.swipeActions ?? [];\n const radius = iosGroupRadius();\n const unreadLabel = row.unreadCount && row.unreadCount > 0 ? `${row.unreadCount} unread` : row.unread ? \"Unread\" : null;\n const label = [unreadLabel, row.avatar ? row.avatarLabel : null, row.title, row.timeLabel, row.preview, row.meta].filter(Boolean).join(\", \");\n // The separator starts at the text: the row's padding, the dot's column, and the avatar when there is one.\n const [avatarWidth, setAvatarWidth] = useState(0);\n const separatorInset = ROW_PADDING + LEADING_WIDTH + (row.avatar ? (avatarWidth || DEFAULT_AVATAR) + AVATAR_GAP : 0);\n return (\n <View\n testID={`${row.testID}-cell`}\n style={[\n { backgroundColor: colors.surface },\n ios\n ? {\n marginHorizontal: IOS_GROUP_MARGIN,\n borderTopLeftRadius: row.isFirst ? radius : 0,\n borderTopRightRadius: row.isFirst ? radius : 0,\n borderBottomLeftRadius: row.isLast ? radius : 0,\n borderBottomRightRadius: row.isLast ? radius : 0,\n overflow: \"hidden\",\n }\n : null,\n ]}\n >\n <Pressable\n testID={row.testID}\n accessibilityRole={row.onPress ? \"button\" : undefined}\n accessibilityLabel={label}\n accessibilityState={row.selected ? { selected: true } : undefined}\n accessibilityActions={actions.map((a) => ({ name: a.id, label: a.label }))}\n onAccessibilityAction={(event) => actions.find((a) => a.id === event.nativeEvent.actionName)?.onPress()}\n onPress={row.onPress}\n onLongPress={actions.length ? () => openMenu(row) : undefined}\n onPressIn={() => setPressed(true)}\n onPressOut={() => setPressed(false)}\n style={{ flexDirection: \"row\", alignItems: \"center\", paddingHorizontal: ROW_PADDING, paddingVertical: 11, minHeight: 60, backgroundColor: (pressed && row.onPress) || row.selected ? colors.fill : undefined }}\n >\n <View style={{ width: LEADING_WIDTH, alignItems: \"flex-start\" }}>\n {row.leading ?? (row.unreadCount && row.unreadCount > 0 ? null : <UnreadDot unread={!!row.unread} testID={`${row.testID}-unread`} color={colors.tint} />)}\n </View>\n {row.avatar ? (\n <View\n testID={`${row.testID}-avatar`}\n accessibilityElementsHidden\n importantForAccessibility=\"no-hide-descendants\"\n onLayout={(e) => setAvatarWidth(Math.round(e.nativeEvent.layout.width))}\n style={{ marginRight: AVATAR_GAP }}\n >\n {row.avatar}\n </View>\n ) : null}\n <View style={{ flex: 1, minWidth: 0 }}>\n <View style={{ flexDirection: \"row\", alignItems: \"baseline\" }}>\n <NativeText\n numberOfLines={1}\n style={{ flex: 1, color: colors.label, fontSize: 17, lineHeight: 22, fontWeight: row.unread || (row.unreadCount ?? 0) > 0 ? \"600\" : \"400\" }}\n >\n {row.title}\n </NativeText>\n {row.timeLabel ? (\n <NativeText testID={`${row.testID}-time`} style={{ marginLeft: 8, color: colors.secondaryLabel, fontSize: 15, lineHeight: 20 }}>\n {row.timeLabel}\n </NativeText>\n ) : null}\n </View>\n {row.preview ? (\n <NativeText numberOfLines={2} style={{ marginTop: 2, color: colors.secondaryLabel, fontSize: 15, lineHeight: 20 }}>\n {row.preview}\n </NativeText>\n ) : null}\n {row.meta ? (\n <NativeText testID={`${row.testID}-meta`} style={{ marginTop: 4, color: colors.tertiaryLabel, fontSize: 13, lineHeight: 18 }}>\n {row.meta}\n </NativeText>\n ) : null}\n </View>\n {row.unreadCount && row.unreadCount > 0 ? (\n <View style={{ marginLeft: 8 }}>\n <NativeBadge testID={`${row.testID}-count`}>{String(row.unreadCount)}</NativeBadge>\n </View>\n ) : null}\n {row.trailing ? <View style={{ marginLeft: 8 }}>{row.trailing}</View> : row.onPress ? <Chevron color={colors.tertiaryLabel} /> : null}\n </Pressable>\n {row.isLast ? null : (\n <View accessibilityElementsHidden importantForAccessibility=\"no-hide-descendants\" style={{ flexDirection: \"row\", height: StyleSheet.hairlineWidth }}>\n <View testID={`${row.testID}-separator-inset`} style={{ width: separatorInset }} />\n <View testID={`${row.testID}-separator-line`} style={{ flex: 1, backgroundColor: colors.separator }} />\n </View>\n )}\n </View>\n );\n}\n\nfunction Chevron({ color }: { color: unknown }) {\n return (\n <NativeText accessibilityElementsHidden importantForAccessibility=\"no\" style={{ marginLeft: 8, color: color as string, fontSize: 20, lineHeight: 22 }}>\n ›\n </NativeText>\n );\n}\n\nfunction UnreadDot({ unread, testID, color }: { unread: boolean; testID: string; color: unknown }) {\n if (!unread) return <View testID={testID} style={{ width: 10, height: 10 }} />;\n return <View testID={testID} style={{ width: 10, height: 10, borderRadius: 5, backgroundColor: color as string }} />;\n}\n\nfunction DefaultFooter({ loadingMore, testID }: InboxPageSlotMap[\"footer\"]) {\n if (!loadingMore) return null;\n return (\n <NativeLoadingState fullScreen={false} size=\"small\" accessibilityLabel=\"Loading more\" className=\"py-4\" testID={testID} />\n );\n}\n\nfunction DefaultEmpty({ title, body, actionLabel, onAction, testID }: InboxPageSlotMap[\"empty\"]) {\n return (\n <NativeEmptyState\n variant=\"first-run\"\n title={title}\n body={body}\n testID={testID}\n primaryAction={\n actionLabel && onAction ? (\n <NativeButton onPress={onAction} testID={`${testID}-action`}>\n {actionLabel}\n </NativeButton>\n ) : undefined\n }\n />\n );\n}\n"]}
|