@marktiderman/genesis-ui-native 2.3.0 → 2.3.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.
@@ -1,7 +1,7 @@
1
1
  import { useGenesisModules } from './chunk-EFXCJ5AN.js';
2
2
  import { useThemeRoles } from './chunk-Z3AQYVUA.js';
3
3
  import { cn } from './chunk-OHZD7KRO.js';
4
- import { View, Text, Platform, Pressable } from 'react-native';
4
+ import { View, Text, Platform, Pressable, RefreshControl } from 'react-native';
5
5
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
6
6
 
7
7
  var defaults = {
@@ -92,8 +92,10 @@ function NativeEmptyState({
92
92
  // src/icon-names.ts
93
93
  var SF_SYMBOLS = {
94
94
  "arrow-left": "arrow.left",
95
+ "arrow-up": "arrow.up",
95
96
  bell: "bell",
96
97
  calendar: "calendar",
98
+ camera: "camera",
97
99
  check: "checkmark",
98
100
  "chevron-down": "chevron.down",
99
101
  "chevron-left": "chevron.left",
@@ -101,21 +103,32 @@ var SF_SYMBOLS = {
101
103
  "chevron-up": "chevron.up",
102
104
  clock: "clock",
103
105
  close: "xmark",
106
+ compose: "square.and.pencil",
107
+ copy: "doc.on.doc",
104
108
  edit: "pencil",
105
109
  error: "xmark.circle",
106
110
  "external-link": "arrow.up.right.square",
111
+ file: "doc",
107
112
  filter: "line.3.horizontal.decrease",
108
113
  heart: "heart",
109
114
  home: "house",
115
+ image: "photo",
110
116
  info: "info.circle",
111
117
  lock: "lock",
112
118
  "log-out": "rectangle.portrait.and.arrow.right",
113
119
  mail: "envelope",
114
120
  menu: "line.3.horizontal",
121
+ message: "bubble.left",
122
+ mic: "mic",
115
123
  minus: "minus",
116
124
  more: "ellipsis",
125
+ paperclip: "paperclip",
126
+ pause: "pause.fill",
127
+ pin: "pin",
128
+ play: "play.fill",
117
129
  plus: "plus",
118
130
  refresh: "arrow.clockwise",
131
+ reply: "arrowshape.turn.up.left",
119
132
  search: "magnifyingglass",
120
133
  settings: "gearshape",
121
134
  share: "square.and.arrow.up",
@@ -246,7 +259,12 @@ function NativeSectionListHeader({
246
259
  }
247
260
  );
248
261
  }
262
+ function NativeRefreshControl({ tintColor, colors, testID, ...rest }) {
263
+ const tint = useThemeRoles().tint;
264
+ const androidTint = typeof tint === "string" ? [tint] : void 0;
265
+ return /* @__PURE__ */ jsx(RefreshControl, { ...rest, tintColor: tintColor ?? tint, colors: colors ?? androidTint, testID: testID ?? "native-refresh-control" });
266
+ }
249
267
 
250
- export { NATIVE_ICON_NAMES, NativeEmptyState, NativeIcon, NativeListItem, NativeListItemDivider, NativeSectionListHeader, SF_SYMBOLS };
251
- //# sourceMappingURL=chunk-ERHGCWTY.js.map
252
- //# sourceMappingURL=chunk-ERHGCWTY.js.map
268
+ export { NATIVE_ICON_NAMES, NativeEmptyState, NativeIcon, NativeListItem, NativeListItemDivider, NativeRefreshControl, NativeSectionListHeader, SF_SYMBOLS };
269
+ //# sourceMappingURL=chunk-W2UBJ56D.js.map
270
+ //# sourceMappingURL=chunk-W2UBJ56D.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/empty-state.tsx","../src/icon-names.ts","../src/components/icon.tsx","../src/components/list-item.tsx","../src/components/section-list.tsx","../src/components/refresh-control.tsx"],"names":["jsx","View","jsxs","Text","Platform"],"mappings":";;;;;;AAwEA,IAAM,QAAA,GAA6E;AAAA,EACjF,WAAA,EAAa,EAAE,KAAA,EAAO,kBAAA,EAAoB,MAAM,uBAAA,EAAwB;AAAA,EACxE,YAAA,EAAc,EAAE,KAAA,EAAO,YAAA,EAAc,MAAM,uBAAA,EAAwB;AAAA,EACnE,KAAA,EAAO,EAAE,KAAA,EAAO,sBAAA,EAAwB,MAAM,kBAAA;AAChD,CAAA;AAEO,SAAS,gBAAA,CAAiB;AAAA,EAC/B,OAAA,GAAU,WAAA;AAAA,EACV,KAAA;AAAA,EACA,IAAA;AAAA,EACA,WAAA;AAAA,EACA,YAAA;AAAA,EACA,IAA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AAAA,CAAC,cAAA,EAAA,EAAgB,GAAG,IAAA,EAAM,SAAA,EAAW,SAAA,IAAc,IAAA,EAAiB,MAAA,EAAQ,MAAA,IAAU,WAAA,EAAa,MAAA,EAAQ,UAAU,wBAAA,EAA0B,CAAA;AACxJ","file":"chunk-W2UBJ56D.js","sourcesContent":["/**\n * EmptyState — what to show when a list / screen has no data.\n *\n * Three semantic variants drive default messaging:\n * - \"first-run\": user has never had data here. Optimistic.\n * - \"no-results\": user filtered/searched and got nothing. Suggest reset.\n * - \"error\": fetching failed. Suggest retry.\n *\n * The variant only sets sensible defaults for `title` and tone — pass\n * your own `title`, `body`, `primaryAction`, `secondaryAction`, etc. to\n * override. Mirrors the @marktiderman/genesis-ui web `<EmptyState>` API where\n * possible (illustration vs icon slot, primary/secondary actions).\n *\n * @stability Beta\n */\nimport { Text, View } from \"react-native\";\nimport { cn } from \"../utils\";\n\nexport type NativeEmptyStateVariant = \"first-run\" | \"no-results\" | \"error\";\n\n/**\n * Action descriptor for primary/secondary CTAs. Either pass a structured\n * object (renders a Pressable button via the consumer's button slot) or\n * pass an arbitrary node via `action` for maximum flexibility.\n */\nexport interface NativeEmptyStateAction {\n label: string;\n onPress: () => void;\n testID?: string;\n}\n\nexport interface NativeEmptyStateProps {\n /** Variant drives default tone + default title. Default \"first-run\". */\n variant?: NativeEmptyStateVariant;\n /** Headline. Falls back to a variant-specific default. */\n title?: string;\n /** Body copy shown below the title. (Alias: `description`.) */\n body?: string;\n /**\n * @deprecated Prefer `body`. `description` remains for back-compat with\n * the original C3 API; both are accepted but `body` wins if both passed.\n */\n description?: string;\n /** Optional illustration (artwork node) above the title. */\n illustration?: React.ReactNode;\n /** Optional icon node above the title (use either icon or illustration). */\n icon?: React.ReactNode;\n /**\n * Primary CTA. When provided, the consumer is responsible for rendering\n * the button itself (we accept a node, not a label) so brand + token\n * styling is honored. The web API takes a `{label, onPress}` descriptor;\n * on native, prefer to pass a `<NativeButton>` directly to avoid\n * cross-package coupling.\n */\n primaryAction?: React.ReactNode;\n /** Secondary CTA, rendered below the primary. */\n secondaryAction?: React.ReactNode;\n /**\n * Free-form action slot. Equivalent to `primaryAction`; accepted for\n * back-compat with the C3 API. If both `action` and `primaryAction` are\n * passed, `primaryAction` wins.\n */\n action?: React.ReactNode;\n /**\n * Developer-facing error details. Only rendered when __DEV__ is true at\n * runtime (we infer by reading `process.env.NODE_ENV !== \"production\"`).\n */\n details?: string;\n className?: string;\n testID?: string;\n}\n\nconst defaults: Record<NativeEmptyStateVariant, { title: string; tone: string }> = {\n \"first-run\": { title: \"Nothing here yet\", tone: \"text-muted-foreground\" },\n \"no-results\": { title: \"No results\", tone: \"text-muted-foreground\" },\n error: { title: \"Something went wrong\", tone: \"text-destructive\" },\n};\n\nexport function NativeEmptyState({\n variant = \"first-run\",\n title,\n body,\n description,\n illustration,\n icon,\n primaryAction,\n secondaryAction,\n action,\n details,\n className,\n testID,\n}: NativeEmptyStateProps) {\n const meta = defaults[variant];\n const resolvedBody = body ?? description;\n const resolvedPrimary = primaryAction ?? action;\n // Read NODE_ENV defensively — some bundlers don't define `process` at\n // runtime (e.g., RN classic), so we guard via globalThis. The `details`\n // slot is dev-only; we explicitly enumerate non-production values so an\n // undefined NODE_ENV doesn't accidentally leak diagnostic strings.\n const proc = (globalThis as { process?: { env?: { NODE_ENV?: string } } })\n .process;\n const nodeEnv = proc?.env?.NODE_ENV;\n const isDev = nodeEnv === \"development\" || nodeEnv === \"test\";\n\n return (\n <View\n testID={testID ?? `empty-state-${variant}`}\n accessibilityRole=\"summary\"\n className={cn(\n \"items-center justify-center gap-3 px-8 py-12\",\n className\n )}\n >\n {illustration ? <View accessibilityElementsHidden>{illustration}</View> : null}\n {icon && !illustration ? (\n <View accessibilityElementsHidden>{icon}</View>\n ) : null}\n <Text\n testID={testID ? `${testID}-title` : undefined}\n className={cn(\n \"text-center text-lg font-semibold\",\n variant === \"error\" ? \"text-destructive\" : \"text-foreground\"\n )}\n >\n {title ?? meta.title}\n </Text>\n {resolvedBody ? (\n <Text\n testID={testID ? `${testID}-body` : undefined}\n className={cn(\"max-w-sm text-center text-sm\", meta.tone)}\n >\n {resolvedBody}\n </Text>\n ) : null}\n {resolvedPrimary ? (\n <View\n testID={testID ? `${testID}-primary-action` : undefined}\n className=\"mt-2\"\n >\n {resolvedPrimary}\n </View>\n ) : null}\n {secondaryAction ? (\n <View\n testID={testID ? `${testID}-secondary-action` : undefined}\n className=\"mt-1\"\n >\n {secondaryAction}\n </View>\n ) : null}\n {details && isDev ? (\n <Text\n testID={testID ? `${testID}-details` : undefined}\n className=\"mt-2 max-w-sm text-center text-xs text-muted-foreground\"\n >\n {details}\n </Text>\n ) : null}\n </View>\n );\n}\n","/**\n * The semantic icon names Genesis components ask for, and the SF Symbol each\n * one draws on iOS. Components say \"settings\" or \"bell\", never a library's\n * own name; `lucideIcons` (`/icons/lucide`) maps the same names for Android,\n * web and the SF Symbol fallback.\n *\n * @stability Beta\n */\nexport const SF_SYMBOLS = {\n \"arrow-left\": \"arrow.left\",\n \"arrow-up\": \"arrow.up\",\n bell: \"bell\",\n calendar: \"calendar\",\n camera: \"camera\",\n check: \"checkmark\",\n \"chevron-down\": \"chevron.down\",\n \"chevron-left\": \"chevron.left\",\n \"chevron-right\": \"chevron.right\",\n \"chevron-up\": \"chevron.up\",\n clock: \"clock\",\n close: \"xmark\",\n compose: \"square.and.pencil\",\n copy: \"doc.on.doc\",\n edit: \"pencil\",\n error: \"xmark.circle\",\n \"external-link\": \"arrow.up.right.square\",\n file: \"doc\",\n filter: \"line.3.horizontal.decrease\",\n heart: \"heart\",\n home: \"house\",\n image: \"photo\",\n info: \"info.circle\",\n lock: \"lock\",\n \"log-out\": \"rectangle.portrait.and.arrow.right\",\n mail: \"envelope\",\n menu: \"line.3.horizontal\",\n message: \"bubble.left\",\n mic: \"mic\",\n minus: \"minus\",\n more: \"ellipsis\",\n paperclip: \"paperclip\",\n pause: \"pause.fill\",\n pin: \"pin\",\n play: \"play.fill\",\n plus: \"plus\",\n refresh: \"arrow.clockwise\",\n reply: \"arrowshape.turn.up.left\",\n search: \"magnifyingglass\",\n settings: \"gearshape\",\n share: \"square.and.arrow.up\",\n star: \"star\",\n success: \"checkmark.circle\",\n trash: \"trash\",\n user: \"person\",\n warning: \"exclamationmark.triangle\",\n} as const;\n\n/** A semantic icon name: what the icon is for. */\nexport type NativeIconName = keyof typeof SF_SYMBOLS;\n\n/** Every semantic icon name. */\nexport const NATIVE_ICON_NAMES = Object.keys(SF_SYMBOLS) as NativeIconName[];\n","/**\n * NativeIcon — an icon by what it is for (\"settings\", \"bell\"), not by a\n * library's name. On iOS it draws the SF Symbol (expo-symbols' `SymbolView`,\n * passed as `modules.symbol`); on Android and web, and as the SF Symbol's\n * fallback, it draws the icon set given as `modules.icons` (`lucideIcons`\n * from `@marktiderman/genesis-ui-native/icons/lucide`). With neither, it\n * keeps the icon's space empty and warns once in development.\n *\n * Decorative by default (hidden from screen readers). Give `label` when the\n * icon carries meaning on its own, such as an icon-only button's content.\n *\n * @stability Beta\n */\nimport { Platform, View, type ColorValue } from \"react-native\";\nimport { useThemeRoles } from \"../hooks/use-theme-roles\";\nimport { SF_SYMBOLS, type NativeIconName } from \"../icon-names\";\nimport { useGenesisModules } from \"../native-modules\";\n\nexport interface NativeIconProps {\n name: NativeIconName;\n /** Points. Default 20. */\n size?: number;\n /** Default the theme's label color. */\n color?: ColorValue;\n /** iOS SF Symbol weight. */\n weight?: \"ultraLight\" | \"thin\" | \"light\" | \"regular\" | \"medium\" | \"semibold\" | \"bold\" | \"heavy\" | \"black\";\n /** Read by screen readers. Without it the icon is decorative and hidden from them. */\n label?: string;\n testID?: string;\n}\n\ndeclare const __DEV__: boolean | undefined;\nconst warned = new Set<string>();\n\nfunction warnOnce(name: string) {\n if (typeof __DEV__ === \"undefined\" || !__DEV__ || warned.has(name)) return;\n warned.add(name);\n console.warn(\n `[genesis] NativeIcon \"${name}\" has nothing to draw with: pass modules.icons (lucideIcons from \"@marktiderman/genesis-ui-native/icons/lucide\") and, for SF Symbols on iOS, modules.symbol (SymbolView from \"expo-symbols\") to GenesisModulesProvider.`,\n );\n}\n\nexport function NativeIcon({ name, size = 20, color, weight, label, testID }: NativeIconProps) {\n const { symbol: SymbolView, icons } = useGenesisModules();\n const roles = useThemeRoles();\n const tint = color ?? roles.label;\n const a11y = label\n ? { accessible: true, accessibilityRole: \"image\" as const, accessibilityLabel: label }\n : { accessible: false, accessibilityElementsHidden: true, importantForAccessibility: \"no-hide-descendants\" as const };\n const Fallback = icons?.[name];\n const fallback = Fallback ? <Fallback size={size} color={tint} testID={testID ? `${testID}-fallback` : undefined} /> : null;\n\n if (Platform.OS === \"ios\" && SymbolView) {\n return (\n <View {...a11y} testID={testID} style={{ width: size, height: size }}>\n <SymbolView name={SF_SYMBOLS[name]} size={size} tintColor={tint} weight={weight} fallback={fallback} style={{ width: size, height: size }} />\n </View>\n );\n }\n if (!fallback) warnOnce(name);\n return (\n <View {...a11y} testID={testID} style={{ width: size, height: size, alignItems: \"center\", justifyContent: \"center\" }}>\n {fallback}\n </View>\n );\n}\n","/**\n * ListItem — recurring row in a list (settings, contacts, results).\n *\n * Slots: leading (avatar / icon), title, subtitle, trailing\n * (chevron / accessory / action). Supports pressable variants with\n * automatic divider rendering between adjacent items via a wrapper\n * pattern (see <NativeListItemDivider>).\n *\n * For platform-default chevrons, pass `showChevron`; the chevron uses\n * the muted-foreground token.\n *\n * @stability Beta\n */\nimport { Platform, Pressable, Text, View } from \"react-native\";\nimport { cn } from \"../utils\";\nimport { useThemeRoles } from \"../hooks/use-theme-roles\";\nimport { useGenesisModules } from \"../native-modules\";\nimport { NativeIcon } from \"./icon\";\n\nexport interface NativeListItemProps {\n title: string;\n subtitle?: string;\n /** Slot rendered to the left of the title (avatar / icon). */\n leading?: React.ReactNode;\n /** Slot rendered to the right of the title (badge / accessory). */\n trailing?: React.ReactNode;\n /** When true, renders a chevron-right at the end. */\n showChevron?: boolean;\n /** When provided, the row becomes pressable. */\n onPress?: () => void;\n disabled?: boolean;\n className?: string;\n testID?: string;\n}\n\nexport function NativeListItem({\n title,\n subtitle,\n leading,\n trailing,\n showChevron,\n onPress,\n disabled,\n className,\n testID,\n}: NativeListItemProps) {\n const inner = (\n <>\n {leading ? <View className=\"mr-3\">{leading}</View> : null}\n <View className=\"flex-1\">\n <Text className=\"text-base text-foreground\" numberOfLines={1}>\n {title}\n </Text>\n {subtitle ? (\n <Text\n className=\"mt-0.5 text-xs text-muted-foreground\"\n numberOfLines={2}\n >\n {subtitle}\n </Text>\n ) : null}\n </View>\n {trailing ? <View className=\"ml-3\">{trailing}</View> : null}\n {showChevron ? <Chevron /> : null}\n </>\n );\n\n if (onPress) {\n return (\n <Pressable\n testID={testID ?? \"native-list-item\"}\n accessibilityRole=\"button\"\n accessibilityLabel={subtitle ? `${title}, ${subtitle}` : title}\n accessibilityState={{ disabled }}\n disabled={disabled}\n onPress={onPress}\n className={cn(\n \"min-h-[44px] flex-row items-center bg-background px-4 py-3\",\n disabled && \"opacity-50\",\n className\n )}\n >\n {inner}\n </Pressable>\n );\n }\n\n return (\n <View\n testID={testID ?? \"native-list-item\"}\n accessibilityLabel={subtitle ? `${title}, ${subtitle}` : title}\n className={cn(\n \"min-h-[44px] flex-row items-center bg-background px-4 py-3\",\n className\n )}\n >\n {inner}\n </View>\n );\n}\n\n/**\n * The drill-in chevron: an SF Symbol on iOS or the app's icon set\n * (`modules.symbol` / `modules.icons`) when given, else a text \"›\".\n */\nfunction Chevron() {\n const { symbol, icons } = useGenesisModules();\n const roles = useThemeRoles();\n if ((Platform.OS === \"ios\" && symbol) || icons?.[\"chevron-right\"]) {\n return (\n <View className=\"ml-2\">\n <NativeIcon name=\"chevron-right\" size={14} weight=\"semibold\" color={roles.tertiaryLabel} testID=\"native-list-item-chevron\" />\n </View>\n );\n }\n return (\n <Text\n accessibilityElementsHidden\n className=\"ml-2 text-base text-muted-foreground\"\n >\n ›\n </Text>\n );\n}\n\nexport function NativeListItemDivider({ className }: { className?: string }) {\n return <View className={cn(\"h-px bg-border\", className)} />;\n}\n","/**\n * SectionList header pattern — opinionated header style for\n * react-native SectionList rows.\n *\n * The full SectionList API stays with React Native; Genesis ships the\n * header component so consumers can pass it as `renderSectionHeader`\n * and get a consistent visual: muted background, uppercase tracking,\n * sticky-friendly padding.\n *\n * Pattern:\n *\n * <SectionList\n * sections={...}\n * renderItem={({ item }) => <NativeListItem title={item.label} />}\n * renderSectionHeader={({ section }) => (\n * <NativeSectionListHeader title={section.title} />\n * )}\n * />\n *\n * @stability Beta\n */\nimport { Text, View } from \"react-native\";\nimport { cn } from \"../utils\";\n\nexport interface NativeSectionListHeaderProps {\n title: string;\n /** Optional trailing content (e.g., a count badge). */\n trailing?: React.ReactNode;\n className?: string;\n testID?: string;\n}\n\nexport function NativeSectionListHeader({\n title,\n trailing,\n className,\n testID,\n}: NativeSectionListHeaderProps) {\n return (\n <View\n testID={testID ?? \"native-section-header\"}\n accessibilityRole=\"header\"\n className={cn(\n \"flex-row items-center justify-between border-b border-border bg-muted px-4 py-2\",\n className\n )}\n >\n <Text className=\"text-xs font-semibold uppercase tracking-wider text-muted-foreground\">\n {title}\n </Text>\n {trailing}\n </View>\n );\n}\n","/**\n * RefreshControl wrapper — token-aware tint over RN's RefreshControl.\n *\n * Use as the `refreshControl` prop on ScrollView / FlatList / SectionList.\n * The tint defaults to the theme's `tint` role; consumers can override\n * per-call. We re-export RN's\n * RefreshControl shape so the API mirrors what consumers already know.\n *\n * @stability Beta\n */\nimport { RefreshControl } from \"react-native\";\nimport { useThemeRoles } from \"../hooks/use-theme-roles\";\n\nexport interface NativeRefreshControlProps {\n refreshing: boolean;\n onRefresh: () => void;\n /** Hex / RGB color override. Falls back to the theme primary. */\n tintColor?: string;\n /** Title shown under the iOS spinner. */\n title?: string;\n /** Color of the iOS title text. */\n titleColor?: string;\n /** Android colors prop (an array of progress colors). */\n colors?: string[];\n /** Android progress background. */\n progressBackgroundColor?: string;\n testID?: string;\n}\n\n/**\n * Pull to refresh, tinted with the theme's `tint` role. Works under any Genesis root.\n */\n// The tint comes from `useThemeRoles`, not `useGenesisTheme` from `providers/native`: that is\n// another context, which the native app shell's `GenesisThemeProvider` never mounts, so it threw there.\nexport function NativeRefreshControl({ tintColor, colors, testID, ...rest }: NativeRefreshControlProps) {\n const tint = useThemeRoles().tint;\n const androidTint = typeof tint === \"string\" ? [tint] : undefined;\n return <RefreshControl {...rest} tintColor={tintColor ?? (tint as string)} colors={colors ?? androidTint} testID={testID ?? \"native-refresh-control\"} />;\n}\n"]}
@@ -3,8 +3,8 @@ import react__default, { ReactNode } from 'react';
3
3
  import * as class_variance_authority_types from 'class-variance-authority/types';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
  import { TextProps, ScrollViewProps, TextInputProps, ViewProps, SwitchProps, ColorValue } from 'react-native';
6
- import { o as NativeIconName, b as GenesisGlassModule } from '../native-modules-BSVaEb3D.js';
7
- export { G as GenesisDatePickerComponent, a as GenesisDatePickerProps, c as GenesisIconComponent, d as GenesisIconSet, e as GenesisImageComponent, f as GenesisImageProps, g as GenesisListComponent, h as GenesisListProps, i as GenesisModules, j as GenesisModulesProvider, k as GenesisModulesProviderProps, l as GenesisReanimatedModule, m as GenesisSymbolComponent, n as GenesisSymbolProps, N as NATIVE_ICON_NAMES, S as SF_SYMBOLS, u as useGenesisModules } from '../native-modules-BSVaEb3D.js';
6
+ import { o as NativeIconName, b as GenesisGlassModule } from '../native-modules-BGO2MnFF.js';
7
+ export { G as GenesisDatePickerComponent, a as GenesisDatePickerProps, c as GenesisIconComponent, d as GenesisIconSet, e as GenesisImageComponent, f as GenesisImageProps, g as GenesisListComponent, h as GenesisListProps, i as GenesisModules, j as GenesisModulesProvider, k as GenesisModulesProviderProps, l as GenesisReanimatedModule, m as GenesisSymbolComponent, n as GenesisSymbolProps, N as NATIVE_ICON_NAMES, S as SF_SYMBOLS, u as useGenesisModules } from '../native-modules-BGO2MnFF.js';
8
8
 
9
9
  declare const textVariants: (props?: ({
10
10
  preset?: "h1" | "h2" | "h3" | "h4" | "body" | "body-sm" | "caption" | "label" | null | undefined;
@@ -527,7 +527,10 @@ interface NativeRefreshControlProps {
527
527
  progressBackgroundColor?: string;
528
528
  testID?: string;
529
529
  }
530
- declare function NativeRefreshControl(props: NativeRefreshControlProps): react.JSX.Element | null;
530
+ /**
531
+ * Pull to refresh, tinted with the theme's `tint` role. Works under any Genesis root.
532
+ */
533
+ declare function NativeRefreshControl({ tintColor, colors, testID, ...rest }: NativeRefreshControlProps): react.JSX.Element;
531
534
 
532
535
  declare const badgeVariants: (props?: ({
533
536
  variant?: "default" | "secondary" | "outline" | "destructive" | "info" | "success" | "warning" | "muted" | null | undefined;
@@ -1,7 +1,7 @@
1
- export { Box, Grid, Inline, NativeAccordion, NativeAccordionContent, NativeAccordionItem, NativeAccordionTrigger, NativeAvatar, NativeBanner, NativeChip, NativeChipGroup, NativeCombobox, NativeDatePicker, NativeDialog, NativeDialogContent, NativeDialogDescription, NativeDialogFooter, NativeDialogHeader, NativeDialogTitle, NativeDrawer, NativeDropdownMenu, NativeDropdownMenuContent, NativeDropdownMenuItem, NativeDropdownMenuTrigger, NativeGlassSurface, NativeHeaderCard, NativeImage, NativeInlineAlert, NativeNumberInput, NativePagination, NativePopover, NativePopoverContent, NativePopoverTrigger, NativeProgress, NativeRadioGroup, NativeRadioGroupItem, NativeRangeSlider, NativeRefreshControl, NativeSearchBar, NativeSegmentedControl, NativeSheet, NativeSheetProvider, NativeSheetScrollView, NativeSlider, NativeStepper, NativeTabs, NativeTabsContent, NativeTabsList, NativeTabsTrigger, NativeTimePicker, NativeToastProvider, NativeToggle, NativeTooltip, NativeTooltipContent, NativeTooltipTrigger, Stack, spaceScale, spacingClass, toggleVariants, useLiquidGlass, useReduceTransparency, useToast } from '../chunk-W7BK3ARU.js';
1
+ export { Box, Grid, Inline, NativeAccordion, NativeAccordionContent, NativeAccordionItem, NativeAccordionTrigger, NativeAvatar, NativeBanner, NativeChip, NativeChipGroup, NativeCombobox, NativeDatePicker, NativeDialog, NativeDialogContent, NativeDialogDescription, NativeDialogFooter, NativeDialogHeader, NativeDialogTitle, NativeDrawer, NativeDropdownMenu, NativeDropdownMenuContent, NativeDropdownMenuItem, NativeDropdownMenuTrigger, NativeGlassSurface, NativeHeaderCard, NativeImage, NativeInlineAlert, NativeNumberInput, NativePagination, NativePopover, NativePopoverContent, NativePopoverTrigger, NativeProgress, NativeRadioGroup, NativeRadioGroupItem, NativeRangeSlider, NativeSearchBar, NativeSegmentedControl, NativeSheet, NativeSheetProvider, NativeSheetScrollView, NativeSlider, NativeStepper, NativeTabs, NativeTabsContent, NativeTabsList, NativeTabsTrigger, NativeTimePicker, NativeToastProvider, NativeToggle, NativeTooltip, NativeTooltipContent, NativeTooltipTrigger, Stack, spaceScale, spacingClass, toggleVariants, useLiquidGlass, useReduceTransparency, useToast } from '../chunk-Q445I7WO.js';
2
2
  export { NativeAlert, NativeAlertDescription, NativeAlertTitle, NativeCard, NativeCardContent, NativeCardDescription, NativeCardFooter, NativeCardHeader, NativeCardTitle, NativeCheckbox, NativeLabel, NativeSelect, NativeSelectContent, NativeSelectItem, NativeSelectTrigger, NativeSeparator, NativeSkeleton, NativeSwitch, NativeTextarea, alertVariants } from '../chunk-FIITITXO.js';
3
3
  import '../chunk-7PCWEY6R.js';
4
- export { NATIVE_ICON_NAMES, NativeEmptyState, NativeIcon, NativeListItem, NativeListItemDivider, NativeSectionListHeader, SF_SYMBOLS } from '../chunk-ERHGCWTY.js';
4
+ export { NATIVE_ICON_NAMES, NativeEmptyState, NativeIcon, NativeListItem, NativeListItemDivider, NativeRefreshControl, NativeSectionListHeader, SF_SYMBOLS } from '../chunk-W2UBJ56D.js';
5
5
  export { GenesisModulesProvider, NativeBadge, NativeButton, NativeInput, NativeText, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, textVariants, useGenesisModules } from '../chunk-EFXCJ5AN.js';
6
6
  import '../chunk-Z3AQYVUA.js';
7
7
  import '../chunk-OHZD7KRO.js';
@@ -1,4 +1,4 @@
1
- import { o as NativeIconName, c as GenesisIconComponent } from '../native-modules-BSVaEb3D.js';
1
+ import { o as NativeIconName, c as GenesisIconComponent } from '../native-modules-BGO2MnFF.js';
2
2
  import 'react';
3
3
  import 'react-native';
4
4
 
@@ -1,10 +1,12 @@
1
1
  import '../chunk-DGUM43GV.js';
2
- import { TriangleAlert, User, Trash2, CircleCheck, Star, Share, Settings, Search, RefreshCw, Plus, Ellipsis, Minus, Menu, Mail, LogOut, Lock, Info, House, Heart, Funnel, ExternalLink, CircleX, Pencil, X, Clock, ChevronUp, ChevronRight, ChevronLeft, ChevronDown, Check, Calendar, Bell, ArrowLeft } from 'lucide-react-native';
2
+ import { TriangleAlert, User, Trash2, CircleCheck, Star, Share, Settings, Search, Reply, RefreshCw, Plus, Play, Pin, Pause, Paperclip, Ellipsis, Minus, Mic, MessageCircle, Menu, Mail, LogOut, Lock, Info, Image, House, Heart, Funnel, File, ExternalLink, CircleX, Pencil, Copy, SquarePen, X, Clock, ChevronUp, ChevronRight, ChevronLeft, ChevronDown, Check, Camera, Calendar, Bell, ArrowUp, ArrowLeft } from 'lucide-react-native';
3
3
 
4
4
  var lucideIcons = {
5
5
  "arrow-left": ArrowLeft,
6
+ "arrow-up": ArrowUp,
6
7
  bell: Bell,
7
8
  calendar: Calendar,
9
+ camera: Camera,
8
10
  check: Check,
9
11
  "chevron-down": ChevronDown,
10
12
  "chevron-left": ChevronLeft,
@@ -12,21 +14,32 @@ var lucideIcons = {
12
14
  "chevron-up": ChevronUp,
13
15
  clock: Clock,
14
16
  close: X,
17
+ compose: SquarePen,
18
+ copy: Copy,
15
19
  edit: Pencil,
16
20
  error: CircleX,
17
21
  "external-link": ExternalLink,
22
+ file: File,
18
23
  filter: Funnel,
19
24
  heart: Heart,
20
25
  home: House,
26
+ image: Image,
21
27
  info: Info,
22
28
  lock: Lock,
23
29
  "log-out": LogOut,
24
30
  mail: Mail,
25
31
  menu: Menu,
32
+ message: MessageCircle,
33
+ mic: Mic,
26
34
  minus: Minus,
27
35
  more: Ellipsis,
36
+ paperclip: Paperclip,
37
+ pause: Pause,
38
+ pin: Pin,
39
+ play: Play,
28
40
  plus: Plus,
29
41
  refresh: RefreshCw,
42
+ reply: Reply,
30
43
  search: Search,
31
44
  settings: Settings,
32
45
  share: Share,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/icons/lucide.ts"],"names":[],"mappings":";;;AAgDO,IAAM,WAAA,GAA4D;AAAA,EACvE,YAAA,EAAc,SAAA;AAAA,EACd,IAAA,EAAM,IAAA;AAAA,EACN,QAAA,EAAU,QAAA;AAAA,EACV,KAAA,EAAO,KAAA;AAAA,EACP,cAAA,EAAgB,WAAA;AAAA,EAChB,cAAA,EAAgB,WAAA;AAAA,EAChB,eAAA,EAAiB,YAAA;AAAA,EACjB,YAAA,EAAc,SAAA;AAAA,EACd,KAAA,EAAO,KAAA;AAAA,EACP,KAAA,EAAO,CAAA;AAAA,EACP,IAAA,EAAM,MAAA;AAAA,EACN,KAAA,EAAO,OAAA;AAAA,EACP,eAAA,EAAiB,YAAA;AAAA,EACjB,MAAA,EAAQ,MAAA;AAAA,EACR,KAAA,EAAO,KAAA;AAAA,EACP,IAAA,EAAM,KAAA;AAAA,EACN,IAAA,EAAM,IAAA;AAAA,EACN,IAAA,EAAM,IAAA;AAAA,EACN,SAAA,EAAW,MAAA;AAAA,EACX,IAAA,EAAM,IAAA;AAAA,EACN,IAAA,EAAM,IAAA;AAAA,EACN,KAAA,EAAO,KAAA;AAAA,EACP,IAAA,EAAM,QAAA;AAAA,EACN,IAAA,EAAM,IAAA;AAAA,EACN,OAAA,EAAS,SAAA;AAAA,EACT,MAAA,EAAQ,MAAA;AAAA,EACR,QAAA,EAAU,QAAA;AAAA,EACV,KAAA,EAAO,KAAA;AAAA,EACP,IAAA,EAAM,IAAA;AAAA,EACN,OAAA,EAAS,WAAA;AAAA,EACT,KAAA,EAAO,MAAA;AAAA,EACP,IAAA,EAAM,IAAA;AAAA,EACN,OAAA,EAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAMX","file":"lucide.js","sourcesContent":["/**\n * `lucideIcons` — the lucide-react-native icon for every semantic name, the\n * icon set `NativeIcon` draws on Android and web (and on iOS when an SF\n * Symbol can't be drawn). Opt in by importing this subpath and passing it as\n * `modules.icons`; the rest of the package never imports lucide.\n *\n * Needs lucide-react-native 0.475 or later (the names below).\n *\n * @stability Beta\n */\nimport {\n ArrowLeft,\n Bell,\n Calendar,\n Check,\n ChevronDown,\n ChevronLeft,\n ChevronRight,\n ChevronUp,\n CircleCheck,\n CircleX,\n Clock,\n Ellipsis,\n ExternalLink,\n Funnel,\n Heart,\n House,\n Info,\n Lock,\n LogOut,\n Mail,\n Menu,\n Minus,\n Pencil,\n Plus,\n RefreshCw,\n Search,\n Settings,\n Share,\n Star,\n Trash2,\n TriangleAlert,\n User,\n X,\n} from \"lucide-react-native\";\nimport type { NativeIconName } from \"../icon-names\";\nimport type { GenesisIconComponent } from \"../native-modules\";\n\nexport const lucideIcons: Record<NativeIconName, GenesisIconComponent> = {\n \"arrow-left\": ArrowLeft,\n bell: Bell,\n calendar: Calendar,\n check: Check,\n \"chevron-down\": ChevronDown,\n \"chevron-left\": ChevronLeft,\n \"chevron-right\": ChevronRight,\n \"chevron-up\": ChevronUp,\n clock: Clock,\n close: X,\n edit: Pencil,\n error: CircleX,\n \"external-link\": ExternalLink,\n filter: Funnel,\n heart: Heart,\n home: House,\n info: Info,\n lock: Lock,\n \"log-out\": LogOut,\n mail: Mail,\n menu: Menu,\n minus: Minus,\n more: Ellipsis,\n plus: Plus,\n refresh: RefreshCw,\n search: Search,\n settings: Settings,\n share: Share,\n star: Star,\n success: CircleCheck,\n trash: Trash2,\n user: User,\n warning: TriangleAlert,\n // The cast widens lucide's declared `color: string` to `ColorValue`. On iOS\n // NativeIcon passes theme roles as `PlatformColor` objects; lucide hands\n // `color` to react-native-svg's stroke, whose extractBrush resolves\n // PlatformColor and DynamicColorIOS objects (react-native-svg 15,\n // src/lib/extract/extractBrush.ts).\n} as Record<NativeIconName, GenesisIconComponent>;\n"]}
1
+ {"version":3,"sources":["../../src/icons/lucide.ts"],"names":[],"mappings":";;;AA6DO,IAAM,WAAA,GAA4D;AAAA,EACvE,YAAA,EAAc,SAAA;AAAA,EACd,UAAA,EAAY,OAAA;AAAA,EACZ,IAAA,EAAM,IAAA;AAAA,EACN,QAAA,EAAU,QAAA;AAAA,EACV,MAAA,EAAQ,MAAA;AAAA,EACR,KAAA,EAAO,KAAA;AAAA,EACP,cAAA,EAAgB,WAAA;AAAA,EAChB,cAAA,EAAgB,WAAA;AAAA,EAChB,eAAA,EAAiB,YAAA;AAAA,EACjB,YAAA,EAAc,SAAA;AAAA,EACd,KAAA,EAAO,KAAA;AAAA,EACP,KAAA,EAAO,CAAA;AAAA,EACP,OAAA,EAAS,SAAA;AAAA,EACT,IAAA,EAAM,IAAA;AAAA,EACN,IAAA,EAAM,MAAA;AAAA,EACN,KAAA,EAAO,OAAA;AAAA,EACP,eAAA,EAAiB,YAAA;AAAA,EACjB,IAAA,EAAM,IAAA;AAAA,EACN,MAAA,EAAQ,MAAA;AAAA,EACR,KAAA,EAAO,KAAA;AAAA,EACP,IAAA,EAAM,KAAA;AAAA,EACN,KAAA,EAAO,KAAA;AAAA,EACP,IAAA,EAAM,IAAA;AAAA,EACN,IAAA,EAAM,IAAA;AAAA,EACN,SAAA,EAAW,MAAA;AAAA,EACX,IAAA,EAAM,IAAA;AAAA,EACN,IAAA,EAAM,IAAA;AAAA,EACN,OAAA,EAAS,aAAA;AAAA,EACT,GAAA,EAAK,GAAA;AAAA,EACL,KAAA,EAAO,KAAA;AAAA,EACP,IAAA,EAAM,QAAA;AAAA,EACN,SAAA,EAAW,SAAA;AAAA,EACX,KAAA,EAAO,KAAA;AAAA,EACP,GAAA,EAAK,GAAA;AAAA,EACL,IAAA,EAAM,IAAA;AAAA,EACN,IAAA,EAAM,IAAA;AAAA,EACN,OAAA,EAAS,SAAA;AAAA,EACT,KAAA,EAAO,KAAA;AAAA,EACP,MAAA,EAAQ,MAAA;AAAA,EACR,QAAA,EAAU,QAAA;AAAA,EACV,KAAA,EAAO,KAAA;AAAA,EACP,IAAA,EAAM,IAAA;AAAA,EACN,OAAA,EAAS,WAAA;AAAA,EACT,KAAA,EAAO,MAAA;AAAA,EACP,IAAA,EAAM,IAAA;AAAA,EACN,OAAA,EAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAMX","file":"lucide.js","sourcesContent":["/**\n * `lucideIcons` — the lucide-react-native icon for every semantic name, the\n * icon set `NativeIcon` draws on Android and web (and on iOS when an SF\n * Symbol can't be drawn). Opt in by importing this subpath and passing it as\n * `modules.icons`; the rest of the package never imports lucide.\n *\n * Needs lucide-react-native 0.475 or later (the names below).\n *\n * @stability Beta\n */\nimport {\n ArrowLeft,\n ArrowUp,\n Bell,\n Calendar,\n Camera,\n Check,\n ChevronDown,\n ChevronLeft,\n ChevronRight,\n ChevronUp,\n CircleCheck,\n CircleX,\n Clock,\n Copy,\n Ellipsis,\n ExternalLink,\n File,\n Funnel,\n Heart,\n House,\n Image,\n Info,\n Lock,\n LogOut,\n Mail,\n Menu,\n MessageCircle,\n Mic,\n Minus,\n Paperclip,\n Pause,\n Pencil,\n Pin,\n Play,\n Plus,\n RefreshCw,\n Reply,\n Search,\n Settings,\n Share,\n SquarePen,\n Star,\n Trash2,\n TriangleAlert,\n User,\n X,\n} from \"lucide-react-native\";\nimport type { NativeIconName } from \"../icon-names\";\nimport type { GenesisIconComponent } from \"../native-modules\";\n\nexport const lucideIcons: Record<NativeIconName, GenesisIconComponent> = {\n \"arrow-left\": ArrowLeft,\n \"arrow-up\": ArrowUp,\n bell: Bell,\n calendar: Calendar,\n camera: Camera,\n check: Check,\n \"chevron-down\": ChevronDown,\n \"chevron-left\": ChevronLeft,\n \"chevron-right\": ChevronRight,\n \"chevron-up\": ChevronUp,\n clock: Clock,\n close: X,\n compose: SquarePen,\n copy: Copy,\n edit: Pencil,\n error: CircleX,\n \"external-link\": ExternalLink,\n file: File,\n filter: Funnel,\n heart: Heart,\n home: House,\n image: Image,\n info: Info,\n lock: Lock,\n \"log-out\": LogOut,\n mail: Mail,\n menu: Menu,\n message: MessageCircle,\n mic: Mic,\n minus: Minus,\n more: Ellipsis,\n paperclip: Paperclip,\n pause: Pause,\n pin: Pin,\n play: Play,\n plus: Plus,\n refresh: RefreshCw,\n reply: Reply,\n search: Search,\n settings: Settings,\n share: Share,\n star: Star,\n success: CircleCheck,\n trash: Trash2,\n user: User,\n warning: TriangleAlert,\n // The cast widens lucide's declared `color: string` to `ColorValue`. On iOS\n // NativeIcon passes theme roles as `PlatformColor` objects; lucide hands\n // `color` to react-native-svg's stroke, whose extractBrush resolves\n // PlatformColor and DynamicColorIOS objects (react-native-svg 15,\n // src/lib/extract/extractBrush.ts).\n} as Record<NativeIconName, GenesisIconComponent>;\n"]}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { Box, BoxBackground, BoxProps, FlexAlign, FlexJustify, Grid, GridProps, Inline, InlineProps, NativeAccordion, NativeAccordionContent, NativeAccordionContentProps, NativeAccordionItem, NativeAccordionItemProps, NativeAccordionProps, NativeAccordionTrigger, NativeAccordionTriggerProps, NativeAccordionType, NativeAlert, NativeAlertDescription, NativeAlertDescriptionProps, NativeAlertProps, NativeAlertTitle, NativeAlertTitleProps, NativeAvatar, NativeAvatarProps, NativeBadge, NativeBadgeProps, NativeBanner, NativeBannerProps, NativeButton, NativeButtonProps, NativeCard, NativeCardContent, NativeCardDescription, NativeCardFooter, NativeCardHeader, NativeCardProps, NativeCardTitle, NativeCardTitleProps, NativeCheckbox, NativeCheckboxProps, NativeChip, NativeChipGroup, NativeChipGroupMode, NativeChipGroupProps, NativeChipProps, NativeCombobox, NativeComboboxOption, NativeComboboxProps, NativeDatePicker, NativeDatePickerProps, NativeDialog, NativeDialogContent, NativeDialogContentProps, NativeDialogDescription, NativeDialogDescriptionProps, NativeDialogFooter, NativeDialogFooterProps, NativeDialogHeader, NativeDialogHeaderProps, NativeDialogProps, NativeDialogTitle, NativeDialogTitleProps, NativeDrawer, NativeDrawerProps, NativeDropdownMenu, NativeDropdownMenuContent, NativeDropdownMenuContentProps, NativeDropdownMenuItem, NativeDropdownMenuItemProps, NativeDropdownMenuProps, NativeDropdownMenuTrigger, NativeDropdownMenuTriggerProps, NativeEmptyState, NativeEmptyStateProps, NativeEmptyStateVariant, NativeGlassSurface, NativeGlassSurfaceProps, NativeHeaderCard, NativeHeaderCardProps, NativeIcon, NativeIconProps, NativeImage, NativeImageProps, NativeInlineAlert, NativeInlineAlertProps, NativeInlineAlertVariant, NativeInput, NativeInputProps, NativeLabel, NativeLabelProps, NativeListItem, NativeListItemDivider, NativeListItemProps, NativeNumberInput, NativeNumberInputProps, NativePagination, NativePaginationProps, NativePopover, NativePopoverContent, NativePopoverContentProps, NativePopoverProps, NativePopoverTrigger, NativePopoverTriggerProps, NativeProgress, NativeProgressProps, NativeRadioGroup, NativeRadioGroupItem, NativeRadioGroupItemProps, NativeRadioGroupProps, NativeRangeSlider, NativeRangeSliderProps, NativeRefreshControl, NativeRefreshControlProps, NativeSearchBar, NativeSearchBarProps, NativeSectionListHeader, NativeSectionListHeaderProps, NativeSegmentedControl, NativeSegmentedControlOption, NativeSegmentedControlProps, NativeSelect, NativeSelectContent, NativeSelectContentProps, NativeSelectItem, NativeSelectItemProps, NativeSelectProps, NativeSelectTrigger, NativeSelectTriggerProps, NativeSeparator, NativeSeparatorProps, NativeSheet, NativeSheetLibrary, NativeSheetProps, NativeSheetProvider, NativeSheetProviderProps, NativeSheetScrollView, NativeSkeleton, NativeSkeletonProps, NativeSlider, NativeSliderProps, NativeStepper, NativeStepperProps, NativeStepperStep, NativeSwitch, NativeSwitchProps, NativeTabs, NativeTabsContent, NativeTabsContentProps, NativeTabsList, NativeTabsListProps, NativeTabsProps, NativeTabsTrigger, NativeTabsTriggerProps, NativeText, NativeTextProps, NativeTextarea, NativeTextareaProps, NativeTimePicker, NativeTimePickerProps, NativeToastOptions, NativeToastProvider, NativeToastProviderProps, NativeToastVariant, NativeToggle, NativeToggleProps, NativeTooltip, NativeTooltipContent, NativeTooltipContentProps, NativeTooltipProps, NativeTooltipTrigger, NativeTooltipTriggerProps, SpaceToken, SpacingPrefix, Stack, StackProps, TextPreset, alertVariants, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, spaceScale, spacingClass, textVariants, toggleVariants, useLiquidGlass, useReduceTransparency, useToast } from './components/index.js';
2
- export { G as GenesisDatePickerComponent, a as GenesisDatePickerProps, b as GenesisGlassModule, c as GenesisIconComponent, d as GenesisIconSet, e as GenesisImageComponent, f as GenesisImageProps, g as GenesisListComponent, h as GenesisListProps, i as GenesisModules, j as GenesisModulesProvider, k as GenesisModulesProviderProps, l as GenesisReanimatedModule, m as GenesisSymbolComponent, n as GenesisSymbolProps, N as NATIVE_ICON_NAMES, o as NativeIconName, S as SF_SYMBOLS, u as useGenesisModules } from './native-modules-BSVaEb3D.js';
2
+ export { G as GenesisDatePickerComponent, a as GenesisDatePickerProps, b as GenesisGlassModule, c as GenesisIconComponent, d as GenesisIconSet, e as GenesisImageComponent, f as GenesisImageProps, g as GenesisListComponent, h as GenesisListProps, i as GenesisModules, j as GenesisModulesProvider, k as GenesisModulesProviderProps, l as GenesisReanimatedModule, m as GenesisSymbolComponent, n as GenesisSymbolProps, N as NATIVE_ICON_NAMES, o as NativeIconName, S as SF_SYMBOLS, u as useGenesisModules } from './native-modules-BGO2MnFF.js';
3
3
  export { BrandExtensionsProvider, BrandExtensionsProviderProps, BrandExtensionsValue, ThemeMode, ThemeRoleColors, UseThemeRolesOptions, useGenesisExtension, useReducedMotion, useThemeMode, useThemeRoles } from './hooks/index.js';
4
4
  export { AppleButtonModuleLike, AppleProviderOptions, AppleSignInButton, AppleSignInButtonProps, AuthBranding, AuthBrandingProps, AuthForm, AuthFormProps, AuthFormValues, AuthScreen, AuthScreenProps, AuthScreenSlotMap, ForgotPasswordLink, GoogleProviderOptions, InboxItem, InboxPage, InboxPageProps, InboxPageSlotMap, InboxSwipeAction, KEYBOARD_TOOLBAR_HEIGHT, KeyboardScrollProps, KeyboardScrollProvider, KeyboardToolbarProps, NavBarSaveButton, NavBarSaveButtonProps, NavBarSearchBar, NavBarSearchBarProps, NavBarTitle, NavBarTitleProps, NotificationItem, NotificationsPage, NotificationsPageProps, NotificationsPageSlotMap, SafeAreaEdge, ScreenContainer, ScreenContainerProps, ScreenHeaderProps, ScrollEdgeBehavior, SettingsPage, SettingsPageDangerousAction, SettingsPageProps, SettingsPageRow, SettingsPageSection, SettingsPageSlotMap, SettingsSubPage, SettingsSubPageProps, SocialAuthProvider, SocialAuthRow, SocialAuthRowProps, ThreadAttachment, ThreadComposer, ThreadLabels, ThreadMessage, ThreadPage, ThreadPageProps, ThreadPageSlotMap, appleProvider, composeHeaderOptions, confirmDiscardChanges, defaultStickyHeaderOffset, formatInboxTime, getInboxPageStackOptions, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, readReceiptFor, showInboxActions, useKeyboardScroll, useKeyboardToolbar } from './layouts/index.js';
5
5
  export { cn } from './utils.js';
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
- export { Box, Grid, Inline, NativeAccordion, NativeAccordionContent, NativeAccordionItem, NativeAccordionTrigger, NativeAvatar, NativeBanner, NativeChip, NativeChipGroup, NativeCombobox, NativeDatePicker, NativeDialog, NativeDialogContent, NativeDialogDescription, NativeDialogFooter, NativeDialogHeader, NativeDialogTitle, NativeDrawer, NativeDropdownMenu, NativeDropdownMenuContent, NativeDropdownMenuItem, NativeDropdownMenuTrigger, NativeGlassSurface, NativeHeaderCard, NativeImage, NativeInlineAlert, NativeNumberInput, NativePagination, NativePopover, NativePopoverContent, NativePopoverTrigger, NativeProgress, NativeRadioGroup, NativeRadioGroupItem, NativeRangeSlider, NativeRefreshControl, NativeSearchBar, NativeSegmentedControl, NativeSheet, NativeSheetProvider, NativeSheetScrollView, NativeSlider, NativeStepper, NativeTabs, NativeTabsContent, NativeTabsList, NativeTabsTrigger, NativeTimePicker, NativeToastProvider, NativeToggle, NativeTooltip, NativeTooltipContent, NativeTooltipTrigger, Stack, spaceScale, spacingClass, toggleVariants, useLiquidGlass, useReduceTransparency, useToast } from './chunk-W7BK3ARU.js';
1
+ export { Box, Grid, Inline, NativeAccordion, NativeAccordionContent, NativeAccordionItem, NativeAccordionTrigger, NativeAvatar, NativeBanner, NativeChip, NativeChipGroup, NativeCombobox, NativeDatePicker, NativeDialog, NativeDialogContent, NativeDialogDescription, NativeDialogFooter, NativeDialogHeader, NativeDialogTitle, NativeDrawer, NativeDropdownMenu, NativeDropdownMenuContent, NativeDropdownMenuItem, NativeDropdownMenuTrigger, NativeGlassSurface, NativeHeaderCard, NativeImage, NativeInlineAlert, NativeNumberInput, NativePagination, NativePopover, NativePopoverContent, NativePopoverTrigger, NativeProgress, NativeRadioGroup, NativeRadioGroupItem, NativeRangeSlider, NativeSearchBar, NativeSegmentedControl, NativeSheet, NativeSheetProvider, NativeSheetScrollView, NativeSlider, NativeStepper, NativeTabs, NativeTabsContent, NativeTabsList, NativeTabsTrigger, NativeTimePicker, NativeToastProvider, NativeToggle, NativeTooltip, NativeTooltipContent, NativeTooltipTrigger, Stack, spaceScale, spacingClass, toggleVariants, useLiquidGlass, useReduceTransparency, useToast } from './chunk-Q445I7WO.js';
2
2
  export { NativeAlert, NativeAlertDescription, NativeAlertTitle, NativeCard, NativeCardContent, NativeCardDescription, NativeCardFooter, NativeCardHeader, NativeCardTitle, NativeCheckbox, NativeLabel, NativeSelect, NativeSelectContent, NativeSelectItem, NativeSelectTrigger, NativeSeparator, NativeSkeleton, NativeSwitch, NativeTextarea, alertVariants } from './chunk-FIITITXO.js';
3
3
  export { BrandExtensionsProvider, useGenesisExtension } from './chunk-D5RKSPMH.js';
4
4
  export { useReducedMotion } from './chunk-7PCWEY6R.js';
5
- export { AppleSignInButton, AuthBranding, AuthForm, AuthScreen, ForgotPasswordLink, InboxPage, KEYBOARD_TOOLBAR_HEIGHT, KeyboardScrollProvider, NavBarSaveButton, NavBarSearchBar, NavBarTitle, NotificationsPage, ScreenContainer, SettingsPage, SettingsSubPage, SocialAuthRow, ThreadPage, appleProvider, composeHeaderOptions, confirmDiscardChanges, defaultStickyHeaderOffset, formatInboxTime, getInboxPageStackOptions, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, readReceiptFor, showInboxActions, useKeyboardScroll, useKeyboardToolbar } from './chunk-FZY2IXOX.js';
6
- export { NATIVE_ICON_NAMES, NativeEmptyState, NativeIcon, NativeListItem, NativeListItemDivider, NativeSectionListHeader, SF_SYMBOLS } from './chunk-ERHGCWTY.js';
5
+ export { AppleSignInButton, AuthBranding, AuthForm, AuthScreen, ForgotPasswordLink, InboxPage, KEYBOARD_TOOLBAR_HEIGHT, KeyboardScrollProvider, NavBarSaveButton, NavBarSearchBar, NavBarTitle, NotificationsPage, ScreenContainer, SettingsPage, SettingsSubPage, SocialAuthRow, ThreadPage, appleProvider, composeHeaderOptions, confirmDiscardChanges, defaultStickyHeaderOffset, formatInboxTime, getInboxPageStackOptions, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, readReceiptFor, showInboxActions, useKeyboardScroll, useKeyboardToolbar } from './chunk-H4Q7COTI.js';
6
+ export { NATIVE_ICON_NAMES, NativeEmptyState, NativeIcon, NativeListItem, NativeListItemDivider, NativeRefreshControl, NativeSectionListHeader, SF_SYMBOLS } from './chunk-W2UBJ56D.js';
7
7
  export { GenesisModulesProvider, NativeBadge, NativeButton, NativeInput, NativeText, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, textVariants, useGenesisModules } from './chunk-EFXCJ5AN.js';
8
8
  export { useThemeMode, useThemeRoles } from './chunk-Z3AQYVUA.js';
9
9
  export { cn } from './chunk-OHZD7KRO.js';
@@ -377,8 +377,17 @@ interface InboxItem {
377
377
  unreadCount?: number;
378
378
  /** A short status shown under the preview ("In progress", "12 votes"). */
379
379
  meta?: string;
380
- /** Replaces the unread dot (an avatar, an icon). */
380
+ /** Replaces the unread dot (an icon). For a picture of who it is, use `avatar`, which keeps the dot. */
381
381
  leading?: ReactNode;
382
+ /**
383
+ * A picture of who or what it is (a `NativeAvatar`, about 40pt), between the
384
+ * unread dot and the text. The separator then starts at the text. It is hidden
385
+ * from screen readers; when it shows someone `title` doesn't name, say who in
386
+ * `avatarLabel`.
387
+ */
388
+ avatar?: ReactNode;
389
+ /** Who the avatar shows, read before the title, when `title` doesn't name them. */
390
+ avatarLabel?: string;
382
391
  /** Shown at the end of the row (a vote button, a badge). Replaces the chevron. */
383
392
  trailing?: ReactNode;
384
393
  /** Opens the conversation. Rows with `onPress` show a chevron unless `trailing` is set. */
@@ -1,5 +1,5 @@
1
- export { AppleSignInButton, AuthBranding, AuthForm, AuthScreen, ForgotPasswordLink, InboxPage, KEYBOARD_TOOLBAR_HEIGHT, KeyboardScrollProvider, NavBarSaveButton, NavBarSearchBar, NavBarTitle, NotificationsPage, ScreenContainer, SettingsPage, SettingsSubPage, SocialAuthRow, ThreadPage, appleProvider, composeHeaderOptions, confirmDiscardChanges, defaultStickyHeaderOffset, formatInboxTime, getInboxPageStackOptions, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, readReceiptFor, showInboxActions, useKeyboardScroll, useKeyboardToolbar } from '../chunk-FZY2IXOX.js';
2
- import '../chunk-ERHGCWTY.js';
1
+ export { AppleSignInButton, AuthBranding, AuthForm, AuthScreen, ForgotPasswordLink, InboxPage, KEYBOARD_TOOLBAR_HEIGHT, KeyboardScrollProvider, NavBarSaveButton, NavBarSearchBar, NavBarTitle, NotificationsPage, ScreenContainer, SettingsPage, SettingsSubPage, SocialAuthRow, ThreadPage, appleProvider, composeHeaderOptions, confirmDiscardChanges, defaultStickyHeaderOffset, formatInboxTime, getInboxPageStackOptions, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, readReceiptFor, showInboxActions, useKeyboardScroll, useKeyboardToolbar } from '../chunk-H4Q7COTI.js';
2
+ import '../chunk-W2UBJ56D.js';
3
3
  import '../chunk-EFXCJ5AN.js';
4
4
  import '../chunk-Z3AQYVUA.js';
5
5
  import '../chunk-OHZD7KRO.js';
@@ -12,8 +12,10 @@ import { ColorValue } from 'react-native';
12
12
  */
13
13
  declare const SF_SYMBOLS: {
14
14
  readonly "arrow-left": "arrow.left";
15
+ readonly "arrow-up": "arrow.up";
15
16
  readonly bell: "bell";
16
17
  readonly calendar: "calendar";
18
+ readonly camera: "camera";
17
19
  readonly check: "checkmark";
18
20
  readonly "chevron-down": "chevron.down";
19
21
  readonly "chevron-left": "chevron.left";
@@ -21,21 +23,32 @@ declare const SF_SYMBOLS: {
21
23
  readonly "chevron-up": "chevron.up";
22
24
  readonly clock: "clock";
23
25
  readonly close: "xmark";
26
+ readonly compose: "square.and.pencil";
27
+ readonly copy: "doc.on.doc";
24
28
  readonly edit: "pencil";
25
29
  readonly error: "xmark.circle";
26
30
  readonly "external-link": "arrow.up.right.square";
31
+ readonly file: "doc";
27
32
  readonly filter: "line.3.horizontal.decrease";
28
33
  readonly heart: "heart";
29
34
  readonly home: "house";
35
+ readonly image: "photo";
30
36
  readonly info: "info.circle";
31
37
  readonly lock: "lock";
32
38
  readonly "log-out": "rectangle.portrait.and.arrow.right";
33
39
  readonly mail: "envelope";
34
40
  readonly menu: "line.3.horizontal";
41
+ readonly message: "bubble.left";
42
+ readonly mic: "mic";
35
43
  readonly minus: "minus";
36
44
  readonly more: "ellipsis";
45
+ readonly paperclip: "paperclip";
46
+ readonly pause: "pause.fill";
47
+ readonly pin: "pin";
48
+ readonly play: "play.fill";
37
49
  readonly plus: "plus";
38
50
  readonly refresh: "arrow.clockwise";
51
+ readonly reply: "arrowshape.turn.up.left";
39
52
  readonly search: "magnifyingglass";
40
53
  readonly settings: "gearshape";
41
54
  readonly share: "square.and.arrow.up";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marktiderman/genesis-ui-native",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -29,6 +29,7 @@ vi.mock("lucide-react-native", () => {
29
29
  "ArrowLeft", "Bell", "Calendar", "Check", "ChevronDown", "ChevronLeft", "ChevronRight", "ChevronUp", "CircleCheck",
30
30
  "CircleX", "Clock", "Ellipsis", "ExternalLink", "Funnel", "Heart", "House", "Info", "Lock", "LogOut", "Mail", "Menu",
31
31
  "Minus", "Pencil", "Plus", "RefreshCw", "Search", "Settings", "Share", "Star", "Trash2", "TriangleAlert", "User", "X",
32
+ "ArrowUp", "Camera", "Copy", "File", "Image", "MessageCircle", "Mic", "Paperclip", "Pause", "Pin", "Play", "Reply", "SquarePen",
32
33
  ];
33
34
  return Object.fromEntries(names.map((n) => [n, icon(n)]));
34
35
  });
@@ -0,0 +1,35 @@
1
+ // @feat:inbox-thread
2
+ import { render, screen, fireEvent } from "@testing-library/react";
3
+ import { describe, expect, it, vi } from "vitest";
4
+ import { genesisBrand } from "@marktiderman/genesis-design-system";
5
+ import { GenesisThemeProvider } from "@marktiderman/genesis-design-system/theme";
6
+ import { NativeRefreshControl } from "../refresh-control";
7
+ import { useThemeRoles } from "../../hooks/use-theme-roles";
8
+
9
+ function Tint() {
10
+ const tint = useThemeRoles().tint;
11
+ return <span data-testid="tint">{String(tint)}</span>;
12
+ }
13
+
14
+ describe("NativeRefreshControl", () => {
15
+ it("renders under the native app shell's theme provider (it threw: it read another theme context)", () => {
16
+ const onRefresh = vi.fn();
17
+ render(
18
+ <GenesisThemeProvider brand={genesisBrand}>
19
+ <NativeRefreshControl refreshing={false} onRefresh={onRefresh} testID="rc" />
20
+ <Tint />
21
+ </GenesisThemeProvider>,
22
+ );
23
+ const rc = screen.getByTestId("rc");
24
+ expect(rc.dataset.refreshing).toBe("false");
25
+ expect(rc.dataset.tintColor).toBe(screen.getByTestId("tint").textContent);
26
+ fireEvent.click(rc);
27
+ expect(onRefresh).toHaveBeenCalled();
28
+ });
29
+
30
+ it("renders with no theme provider at all, and a given tint wins", () => {
31
+ render(<NativeRefreshControl refreshing onRefresh={() => {}} tintColor="#ff0000" testID="rc" />);
32
+ expect(screen.getByTestId("rc").dataset.tintColor).toBe("#ff0000");
33
+ expect(screen.getByTestId("rc").dataset.refreshing).toBe("true");
34
+ });
35
+ });
@@ -2,23 +2,14 @@
2
2
  * RefreshControl wrapper — token-aware tint over RN's RefreshControl.
3
3
  *
4
4
  * Use as the `refreshControl` prop on ScrollView / FlatList / SectionList.
5
- * The tint defaults to a CSS-variable resolved at runtime via the theme
6
- * provider; consumers can override per-call. We re-export RN's
5
+ * The tint defaults to the theme's `tint` role; consumers can override
6
+ * per-call. We re-export RN's
7
7
  * RefreshControl shape so the API mirrors what consumers already know.
8
8
  *
9
9
  * @stability Beta
10
10
  */
11
- // Lazy resolve of the RN export so we don't break in environments where
12
- // react-native isn't fully bundled (e.g. metro server warm-up).
13
- function resolveRefreshControl(): React.ComponentType<NativeRefreshControlProps> | null {
14
- try {
15
- // eslint-disable-next-line @typescript-eslint/no-require-imports
16
- const rn = require("react-native");
17
- return rn.RefreshControl as React.ComponentType<NativeRefreshControlProps>;
18
- } catch {
19
- return null;
20
- }
21
- }
11
+ import { RefreshControl } from "react-native";
12
+ import { useThemeRoles } from "../hooks/use-theme-roles";
22
13
 
23
14
  export interface NativeRefreshControlProps {
24
15
  refreshing: boolean;
@@ -37,37 +28,12 @@ export interface NativeRefreshControlProps {
37
28
  }
38
29
 
39
30
  /**
40
- * Resolves the active theme's primary color for use as the RefreshControl
41
- * tint. Returns undefined on platforms where the theme provider isn't
42
- * mounted (consumer can still pass `tintColor` explicitly).
31
+ * Pull to refresh, tinted with the theme's `tint` role. Works under any Genesis root.
43
32
  */
44
- // Keep the design-system hook resolution outside the render path. We
45
- // resolve the hook reference once at module load; if the consumer isn't
46
- // using genesis-design-system, we fall back to undefined and only the
47
- // caller-provided tintColor / colors apply. Using a ref-style closure
48
- // avoids conditional hooks (which would violate the rules of hooks).
49
- const useGenesisThemeRef: (() => { colors?: { primary?: string } }) | null =
50
- (() => {
51
- try {
52
- // eslint-disable-next-line @typescript-eslint/no-require-imports
53
- const provider = require("@marktiderman/genesis-design-system/providers/native");
54
- return provider.useGenesisTheme ?? null;
55
- } catch {
56
- return null;
57
- }
58
- })();
59
-
60
- export function NativeRefreshControl(props: NativeRefreshControlProps) {
61
- const RC = resolveRefreshControl();
62
- const theme = useGenesisThemeRef ? useGenesisThemeRef() : null;
63
- const themePrimary = theme?.colors?.primary;
64
- if (!RC) return null;
65
- return (
66
- <RC
67
- tintColor={props.tintColor ?? themePrimary}
68
- colors={props.colors ?? (themePrimary ? [themePrimary] : undefined)}
69
- {...props}
70
- testID={props.testID ?? "native-refresh-control"}
71
- />
72
- );
33
+ // The tint comes from `useThemeRoles`, not `useGenesisTheme` from `providers/native`: that is
34
+ // another context, which the native app shell's `GenesisThemeProvider` never mounts, so it threw there.
35
+ export function NativeRefreshControl({ tintColor, colors, testID, ...rest }: NativeRefreshControlProps) {
36
+ const tint = useThemeRoles().tint;
37
+ const androidTint = typeof tint === "string" ? [tint] : undefined;
38
+ return <RefreshControl {...rest} tintColor={tintColor ?? (tint as string)} colors={colors ?? androidTint} testID={testID ?? "native-refresh-control"} />;
73
39
  }
package/src/icon-names.ts CHANGED
@@ -8,8 +8,10 @@
8
8
  */
9
9
  export const SF_SYMBOLS = {
10
10
  "arrow-left": "arrow.left",
11
+ "arrow-up": "arrow.up",
11
12
  bell: "bell",
12
13
  calendar: "calendar",
14
+ camera: "camera",
13
15
  check: "checkmark",
14
16
  "chevron-down": "chevron.down",
15
17
  "chevron-left": "chevron.left",
@@ -17,21 +19,32 @@ export const SF_SYMBOLS = {
17
19
  "chevron-up": "chevron.up",
18
20
  clock: "clock",
19
21
  close: "xmark",
22
+ compose: "square.and.pencil",
23
+ copy: "doc.on.doc",
20
24
  edit: "pencil",
21
25
  error: "xmark.circle",
22
26
  "external-link": "arrow.up.right.square",
27
+ file: "doc",
23
28
  filter: "line.3.horizontal.decrease",
24
29
  heart: "heart",
25
30
  home: "house",
31
+ image: "photo",
26
32
  info: "info.circle",
27
33
  lock: "lock",
28
34
  "log-out": "rectangle.portrait.and.arrow.right",
29
35
  mail: "envelope",
30
36
  menu: "line.3.horizontal",
37
+ message: "bubble.left",
38
+ mic: "mic",
31
39
  minus: "minus",
32
40
  more: "ellipsis",
41
+ paperclip: "paperclip",
42
+ pause: "pause.fill",
43
+ pin: "pin",
44
+ play: "play.fill",
33
45
  plus: "plus",
34
46
  refresh: "arrow.clockwise",
47
+ reply: "arrowshape.turn.up.left",
35
48
  search: "magnifyingglass",
36
49
  settings: "gearshape",
37
50
  share: "square.and.arrow.up",
@@ -10,8 +10,10 @@
10
10
  */
11
11
  import {
12
12
  ArrowLeft,
13
+ ArrowUp,
13
14
  Bell,
14
15
  Calendar,
16
+ Camera,
15
17
  Check,
16
18
  ChevronDown,
17
19
  ChevronLeft,
@@ -20,23 +22,34 @@ import {
20
22
  CircleCheck,
21
23
  CircleX,
22
24
  Clock,
25
+ Copy,
23
26
  Ellipsis,
24
27
  ExternalLink,
28
+ File,
25
29
  Funnel,
26
30
  Heart,
27
31
  House,
32
+ Image,
28
33
  Info,
29
34
  Lock,
30
35
  LogOut,
31
36
  Mail,
32
37
  Menu,
38
+ MessageCircle,
39
+ Mic,
33
40
  Minus,
41
+ Paperclip,
42
+ Pause,
34
43
  Pencil,
44
+ Pin,
45
+ Play,
35
46
  Plus,
36
47
  RefreshCw,
48
+ Reply,
37
49
  Search,
38
50
  Settings,
39
51
  Share,
52
+ SquarePen,
40
53
  Star,
41
54
  Trash2,
42
55
  TriangleAlert,
@@ -48,8 +61,10 @@ import type { GenesisIconComponent } from "../native-modules";
48
61
 
49
62
  export const lucideIcons: Record<NativeIconName, GenesisIconComponent> = {
50
63
  "arrow-left": ArrowLeft,
64
+ "arrow-up": ArrowUp,
51
65
  bell: Bell,
52
66
  calendar: Calendar,
67
+ camera: Camera,
53
68
  check: Check,
54
69
  "chevron-down": ChevronDown,
55
70
  "chevron-left": ChevronLeft,
@@ -57,21 +72,32 @@ export const lucideIcons: Record<NativeIconName, GenesisIconComponent> = {
57
72
  "chevron-up": ChevronUp,
58
73
  clock: Clock,
59
74
  close: X,
75
+ compose: SquarePen,
76
+ copy: Copy,
60
77
  edit: Pencil,
61
78
  error: CircleX,
62
79
  "external-link": ExternalLink,
80
+ file: File,
63
81
  filter: Funnel,
64
82
  heart: Heart,
65
83
  home: House,
84
+ image: Image,
66
85
  info: Info,
67
86
  lock: Lock,
68
87
  "log-out": LogOut,
69
88
  mail: Mail,
70
89
  menu: Menu,
90
+ message: MessageCircle,
91
+ mic: Mic,
71
92
  minus: Minus,
72
93
  more: Ellipsis,
94
+ paperclip: Paperclip,
95
+ pause: Pause,
96
+ pin: Pin,
97
+ play: Play,
73
98
  plus: Plus,
74
99
  refresh: RefreshCw,
100
+ reply: Reply,
75
101
  search: Search,
76
102
  settings: Settings,
77
103
  share: Share,