@marktiderman/genesis-ui-native 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/dist/chunk-BAU4YQZV.js +760 -0
  2. package/dist/chunk-BAU4YQZV.js.map +1 -0
  3. package/dist/chunk-DGUM43GV.js +10 -0
  4. package/dist/chunk-DGUM43GV.js.map +1 -0
  5. package/dist/chunk-HNIEFTEL.js +43 -0
  6. package/dist/chunk-HNIEFTEL.js.map +1 -0
  7. package/dist/chunk-N4WHTQIO.js +20 -0
  8. package/dist/chunk-N4WHTQIO.js.map +1 -0
  9. package/dist/chunk-OHZD7KRO.js +11 -0
  10. package/dist/chunk-OHZD7KRO.js.map +1 -0
  11. package/dist/chunk-PTJ2KCLM.js +160 -0
  12. package/dist/chunk-PTJ2KCLM.js.map +1 -0
  13. package/dist/chunk-TXJT55JC.js +2213 -0
  14. package/dist/chunk-TXJT55JC.js.map +1 -0
  15. package/dist/chunk-ULS7I6ZS.js +183 -0
  16. package/dist/chunk-ULS7I6ZS.js.map +1 -0
  17. package/dist/chunk-ZVF6PONU.js +522 -0
  18. package/dist/chunk-ZVF6PONU.js.map +1 -0
  19. package/dist/components/index.d.ts +908 -0
  20. package/dist/components/index.js +8 -0
  21. package/dist/components/index.js.map +1 -0
  22. package/dist/data/index.d.ts +117 -0
  23. package/dist/data/index.js +770 -0
  24. package/dist/data/index.js.map +1 -0
  25. package/dist/hooks/index.d.ts +31 -0
  26. package/dist/hooks/index.js +5 -0
  27. package/dist/hooks/index.js.map +1 -0
  28. package/dist/index.d.ts +11 -0
  29. package/dist/index.js +11 -0
  30. package/dist/index.js.map +1 -0
  31. package/dist/layouts/index.d.ts +364 -0
  32. package/dist/layouts/index.js +8 -0
  33. package/dist/layouts/index.js.map +1 -0
  34. package/dist/utils.d.ts +5 -0
  35. package/dist/utils.js +4 -0
  36. package/dist/utils.js.map +1 -0
  37. package/package.json +127 -0
  38. package/src/components/__tests__/accordion.test.tsx +122 -0
  39. package/src/components/__tests__/chip-group.test.tsx +45 -0
  40. package/src/components/__tests__/combobox.test.tsx +97 -0
  41. package/src/components/__tests__/drawer.test.tsx +98 -0
  42. package/src/components/__tests__/empty-state.test.tsx +66 -0
  43. package/src/components/__tests__/header-card.test.tsx +31 -0
  44. package/src/components/__tests__/layout.test.tsx +109 -0
  45. package/src/components/__tests__/list-item.test.tsx +31 -0
  46. package/src/components/__tests__/number-input.test.tsx +46 -0
  47. package/src/components/__tests__/pagination.test.tsx +43 -0
  48. package/src/components/__tests__/search-bar.test.tsx +41 -0
  49. package/src/components/__tests__/segmented-empty-alert.test.tsx +79 -0
  50. package/src/components/__tests__/slider.test.tsx +134 -0
  51. package/src/components/__tests__/stepper.test.tsx +25 -0
  52. package/src/components/__tests__/toast.test.tsx +63 -0
  53. package/src/components/accordion.tsx +223 -0
  54. package/src/components/alert.tsx +131 -0
  55. package/src/components/avatar.tsx +68 -0
  56. package/src/components/badge.tsx +80 -0
  57. package/src/components/button.tsx +118 -0
  58. package/src/components/card.tsx +120 -0
  59. package/src/components/checkbox.tsx +60 -0
  60. package/src/components/chip-group.tsx +127 -0
  61. package/src/components/combobox.tsx +137 -0
  62. package/src/components/date-time-picker.tsx +127 -0
  63. package/src/components/dialog.tsx +131 -0
  64. package/src/components/drawer.tsx +131 -0
  65. package/src/components/dropdown-menu.tsx +133 -0
  66. package/src/components/empty-state.tsx +161 -0
  67. package/src/components/header-card.tsx +116 -0
  68. package/src/components/index.ts +259 -0
  69. package/src/components/inline-alert.tsx +150 -0
  70. package/src/components/input.tsx +51 -0
  71. package/src/components/label.tsx +35 -0
  72. package/src/components/layout/box.tsx +115 -0
  73. package/src/components/layout/flex.ts +24 -0
  74. package/src/components/layout/grid.tsx +73 -0
  75. package/src/components/layout/index.ts +27 -0
  76. package/src/components/layout/inline.tsx +63 -0
  77. package/src/components/layout/spacing.ts +116 -0
  78. package/src/components/layout/stack.tsx +58 -0
  79. package/src/components/list-item.tsx +108 -0
  80. package/src/components/number-input.tsx +119 -0
  81. package/src/components/pagination.tsx +132 -0
  82. package/src/components/popover.tsx +198 -0
  83. package/src/components/progress.tsx +50 -0
  84. package/src/components/radio-group.tsx +92 -0
  85. package/src/components/refresh-control.tsx +73 -0
  86. package/src/components/search-bar.tsx +128 -0
  87. package/src/components/section-list.tsx +54 -0
  88. package/src/components/segmented-control.tsx +79 -0
  89. package/src/components/select.tsx +178 -0
  90. package/src/components/separator.tsx +31 -0
  91. package/src/components/sheet.tsx +192 -0
  92. package/src/components/skeleton.tsx +104 -0
  93. package/src/components/slider.tsx +223 -0
  94. package/src/components/stepper.tsx +96 -0
  95. package/src/components/switch.tsx +35 -0
  96. package/src/components/tabs.tsx +147 -0
  97. package/src/components/text.tsx +62 -0
  98. package/src/components/textarea.tsx +52 -0
  99. package/src/components/toast.tsx +228 -0
  100. package/src/components/toggle.tsx +85 -0
  101. package/src/components/tooltip.tsx +104 -0
  102. package/src/data/NativeDataFilters.tsx +100 -0
  103. package/src/data/NativeDataPageShell.tsx +111 -0
  104. package/src/data/NativeDetailPanel.tsx +130 -0
  105. package/src/data/NativeEmptyState.tsx +46 -0
  106. package/src/data/NativeResourceForm.tsx +157 -0
  107. package/src/data/NativeResourceFormField.tsx +280 -0
  108. package/src/data/NativeResourcePage.tsx +505 -0
  109. package/src/data/index.ts +9 -0
  110. package/src/hooks/index.ts +16 -0
  111. package/src/hooks/use-genesis-extension.ts +81 -0
  112. package/src/hooks/use-reduced-motion.ts +32 -0
  113. package/src/hooks/use-theme-mode.ts +31 -0
  114. package/src/index.ts +5 -0
  115. package/src/layouts/__tests__/auth.test.tsx +150 -0
  116. package/src/layouts/__tests__/nav-bar.test.tsx +86 -0
  117. package/src/layouts/__tests__/notifications-page.test.tsx +94 -0
  118. package/src/layouts/__tests__/screen-container.test.tsx +79 -0
  119. package/src/layouts/__tests__/settings-page.test.tsx +107 -0
  120. package/src/layouts/__tests__/settings-sub-page.test.tsx +53 -0
  121. package/src/layouts/auth.tsx +352 -0
  122. package/src/layouts/index.ts +61 -0
  123. package/src/layouts/nav-bar.tsx +200 -0
  124. package/src/layouts/notifications-page.tsx +274 -0
  125. package/src/layouts/screen-container.tsx +213 -0
  126. package/src/layouts/settings-page.tsx +195 -0
  127. package/src/layouts/settings-sub-page.tsx +183 -0
  128. package/src/nativewind.d.ts +40 -0
  129. package/src/utils.ts +6 -0
@@ -0,0 +1,908 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as class_variance_authority_types from 'class-variance-authority/types';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { TextProps, TextInputProps, ViewProps, SwitchProps } from 'react-native';
5
+ import React__default from 'react';
6
+
7
+ declare const textVariants: (props?: ({
8
+ preset?: "h1" | "h2" | "h3" | "h4" | "body" | "body-sm" | "caption" | "label" | null | undefined;
9
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
10
+ interface NativeTextProps extends TextProps, VariantProps<typeof textVariants> {
11
+ }
12
+ /**
13
+ * Allowed `preset` values on {@link NativeText}. Re-exported as a named type
14
+ * so consumer brand packages can build preset-driven typography APIs without
15
+ * having to reach into `NativeTextProps['preset']` themselves.
16
+ *
17
+ * Example (consumer):
18
+ * ```ts
19
+ * import type { TextPreset } from "@marktiderman/genesis-ui-native";
20
+ * function Heading({ as }: { as: TextPreset }) { ... }
21
+ * ```
22
+ */
23
+ type TextPreset = NonNullable<NativeTextProps["preset"]>;
24
+ declare function NativeText({ className, preset, children, ...props }: NativeTextProps): react_jsx_runtime.JSX.Element;
25
+
26
+ declare const buttonVariants: (props?: ({
27
+ variant?: "default" | "secondary" | "outline" | "ghost" | "destructive" | null | undefined;
28
+ size?: "sm" | "md" | "lg" | null | undefined;
29
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
30
+ declare const buttonTextVariants: (props?: ({
31
+ variant?: "default" | "secondary" | "outline" | "ghost" | "destructive" | null | undefined;
32
+ size?: "sm" | "md" | "lg" | null | undefined;
33
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
34
+ interface NativeButtonProps extends VariantProps<typeof buttonVariants> {
35
+ className?: string;
36
+ textClassName?: string;
37
+ children: React.ReactNode;
38
+ onPress?: () => void;
39
+ disabled?: boolean;
40
+ loading?: boolean;
41
+ testID?: string;
42
+ }
43
+ declare function NativeButton({ className, textClassName, variant, size, children, onPress, disabled, loading, ...props }: NativeButtonProps): react_jsx_runtime.JSX.Element;
44
+
45
+ interface NativeCardProps {
46
+ className?: string;
47
+ children?: React.ReactNode;
48
+ testID?: string;
49
+ }
50
+ declare function NativeCard({ className, children, ...props }: NativeCardProps): react_jsx_runtime.JSX.Element;
51
+ declare function NativeCardHeader({ className, children, ...props }: NativeCardProps): react_jsx_runtime.JSX.Element;
52
+ interface NativeCardTitleProps {
53
+ className?: string;
54
+ children?: React.ReactNode;
55
+ testID?: string;
56
+ }
57
+ declare function NativeCardTitle({ className, children, ...props }: NativeCardTitleProps): react_jsx_runtime.JSX.Element;
58
+ interface NativeCardDescriptionProps {
59
+ className?: string;
60
+ children?: React.ReactNode;
61
+ testID?: string;
62
+ }
63
+ declare function NativeCardDescription({ className, children, ...props }: NativeCardDescriptionProps): react_jsx_runtime.JSX.Element;
64
+ declare function NativeCardContent({ className, children, ...props }: NativeCardProps): react_jsx_runtime.JSX.Element;
65
+ declare function NativeCardFooter({ className, children, ...props }: NativeCardProps): react_jsx_runtime.JSX.Element;
66
+
67
+ interface NativeHeaderCardProps {
68
+ /** Heading rendered at the top of the card. Required. */
69
+ title: React.ReactNode;
70
+ /** Optional secondary line under the title. */
71
+ description?: React.ReactNode;
72
+ /** Main body content. Pass any node tree (text, list, form fields). */
73
+ body?: React.ReactNode;
74
+ /**
75
+ * Footer node (typically a row of buttons). When provided, renders a
76
+ * row-direction footer with internal padding. Skipped entirely when
77
+ * undefined to keep the card compact.
78
+ */
79
+ footer?: React.ReactNode;
80
+ /** Override the root container styling. */
81
+ className?: string;
82
+ /** Override the title text styling. */
83
+ titleClassName?: string;
84
+ /** Override the description text styling. */
85
+ descriptionClassName?: string;
86
+ /** Override the body container styling. */
87
+ bodyClassName?: string;
88
+ /** Override the footer container styling. */
89
+ footerClassName?: string;
90
+ /** testID on the root container. Required for instrumented screens. */
91
+ testID?: string;
92
+ }
93
+ declare function NativeHeaderCard({ title, description, body, footer, className, titleClassName, descriptionClassName, bodyClassName, footerClassName, testID, }: NativeHeaderCardProps): react_jsx_runtime.JSX.Element;
94
+
95
+ type NativeToastVariant = "default" | "success" | "destructive";
96
+ interface NativeToastOptions {
97
+ /** Bold first line. Required. */
98
+ title: string;
99
+ /** Optional second line for context. */
100
+ description?: string;
101
+ /** Visual variant. Default: "default". */
102
+ variant?: NativeToastVariant;
103
+ /** Auto-dismiss timeout (ms). Default 3500. Set 0 for sticky. */
104
+ duration?: number;
105
+ /** Optional testID forwarded to the toast root. */
106
+ testID?: string;
107
+ }
108
+ interface NativeToastContextValue {
109
+ show: (opts: NativeToastOptions) => number;
110
+ dismiss: (id?: number) => void;
111
+ }
112
+ interface NativeToastProviderProps {
113
+ children: React.ReactNode;
114
+ /** Position: "top" or "bottom". Default "bottom". */
115
+ position?: "top" | "bottom";
116
+ /** Disable entrance/exit animation. Default false. */
117
+ disableAnimation?: boolean;
118
+ }
119
+ declare function NativeToastProvider({ children, position, disableAnimation, }: NativeToastProviderProps): react_jsx_runtime.JSX.Element;
120
+ declare function useToast(): NativeToastContextValue;
121
+
122
+ interface NativeSheetProps {
123
+ /** Controlled visibility. */
124
+ open: boolean;
125
+ /** Fired when the user dismisses the sheet (backdrop, gesture, swipe). */
126
+ onOpenChange: (open: boolean) => void;
127
+ /** Snap points (gorhom-style). e.g. ["25%", "50%", "90%"]. */
128
+ snapPoints?: (string | number)[];
129
+ /** Index of initial snap point. Default 0. */
130
+ initialSnapIndex?: number;
131
+ /** Disable dismissing by tapping the backdrop. Default false. */
132
+ disableBackdropDismiss?: boolean;
133
+ children: React.ReactNode;
134
+ testID?: string;
135
+ }
136
+ declare function NativeSheet({ open, onOpenChange, snapPoints, initialSnapIndex, disableBackdropDismiss, children, testID, }: NativeSheetProps): react_jsx_runtime.JSX.Element;
137
+
138
+ interface NativePopoverProps {
139
+ open?: boolean;
140
+ defaultOpen?: boolean;
141
+ onOpenChange?: (open: boolean) => void;
142
+ children: React.ReactNode;
143
+ }
144
+ declare function NativePopover({ open: controlled, defaultOpen, onOpenChange, children, }: NativePopoverProps): react_jsx_runtime.JSX.Element;
145
+ interface NativePopoverTriggerProps {
146
+ children: React.ReactNode;
147
+ asChild?: boolean;
148
+ testID?: string;
149
+ }
150
+ declare function NativePopoverTrigger({ children, testID, }: NativePopoverTriggerProps): react_jsx_runtime.JSX.Element;
151
+ interface NativePopoverContentProps {
152
+ className?: string;
153
+ children: React.ReactNode;
154
+ /** Force a side ("top"|"bottom"). Default: auto-resolve. */
155
+ side?: "top" | "bottom";
156
+ /** Pixel offset from the anchor edge. Default 8. */
157
+ sideOffset?: number;
158
+ testID?: string;
159
+ }
160
+ declare function NativePopoverContent({ className, children, side, sideOffset, testID, }: NativePopoverContentProps): react_jsx_runtime.JSX.Element | null;
161
+
162
+ interface NativeDrawerProps {
163
+ open: boolean;
164
+ onOpenChange: (open: boolean) => void;
165
+ /** Side the drawer slides in from. Default "left". */
166
+ side?: "left" | "right";
167
+ /** Drawer width. Default 80% of screen, capped at 360. */
168
+ width?: number;
169
+ children: React.ReactNode;
170
+ className?: string;
171
+ testID?: string;
172
+ }
173
+ declare function NativeDrawer({ open, onOpenChange, side, width, children, className, testID, }: NativeDrawerProps): react_jsx_runtime.JSX.Element;
174
+
175
+ type NativeAccordionType = "single" | "multiple";
176
+ interface NativeAccordionProps {
177
+ type?: NativeAccordionType;
178
+ /** Controlled expanded values. */
179
+ value?: string[];
180
+ defaultValue?: string[];
181
+ onValueChange?: (value: string[]) => void;
182
+ className?: string;
183
+ children: React.ReactNode;
184
+ testID?: string;
185
+ }
186
+ declare function NativeAccordion({ type, value: controlled, defaultValue, onValueChange, className, children, testID, }: NativeAccordionProps): react_jsx_runtime.JSX.Element;
187
+ interface NativeAccordionItemProps {
188
+ value: string;
189
+ className?: string;
190
+ /** When true, omits the bottom divider — set on the last item in the list. */
191
+ isLast?: boolean;
192
+ children: React.ReactNode;
193
+ }
194
+ declare function NativeAccordionItem({ value, className, isLast, children, }: NativeAccordionItemProps): react_jsx_runtime.JSX.Element;
195
+ interface NativeAccordionTriggerProps {
196
+ className?: string;
197
+ children: React.ReactNode;
198
+ testID?: string;
199
+ }
200
+ declare function NativeAccordionTrigger({ className, children, testID, }: NativeAccordionTriggerProps): react_jsx_runtime.JSX.Element;
201
+ interface NativeAccordionContentProps {
202
+ className?: string;
203
+ children: React.ReactNode;
204
+ testID?: string;
205
+ }
206
+ declare function NativeAccordionContent({ className, children, testID, }: NativeAccordionContentProps): react_jsx_runtime.JSX.Element | null;
207
+
208
+ interface NativeComboboxOption<T = string> {
209
+ /** Stable identifier passed to onChange. */
210
+ value: T;
211
+ /** Visible label. */
212
+ label: string;
213
+ /** Optional secondary line. */
214
+ description?: string;
215
+ }
216
+ interface NativeComboboxProps<T = string> {
217
+ options: NativeComboboxOption<T>[];
218
+ value?: T;
219
+ onChange: (value: T) => void;
220
+ /** Placeholder for the input. */
221
+ placeholder?: string;
222
+ /**
223
+ * Color used for the placeholder text. Defaults to a token-aware muted
224
+ * value that matches NativeWind's `text-muted-foreground` resolution.
225
+ * Override per-call when an alternate brand demands a different shade.
226
+ */
227
+ placeholderTextColor?: string;
228
+ /** Override the substring filter. Return true to keep the option visible. */
229
+ filter?: (option: NativeComboboxOption<T>, query: string) => boolean;
230
+ /** Empty-state node when nothing matches. */
231
+ emptyContent?: React.ReactNode;
232
+ /** Initial query (uncontrolled mode). */
233
+ defaultQuery?: string;
234
+ className?: string;
235
+ testID?: string;
236
+ }
237
+ declare function NativeCombobox<T = string>({ options, value, onChange, placeholder, placeholderTextColor, filter, emptyContent, defaultQuery, className, testID, }: NativeComboboxProps<T>): react_jsx_runtime.JSX.Element;
238
+
239
+ interface BasePickerProps {
240
+ value: Date;
241
+ onChange: (next: Date) => void;
242
+ /** Disable the picker. */
243
+ disabled?: boolean;
244
+ /** Override the rendered button text. */
245
+ formatLabel?: (d: Date) => string;
246
+ className?: string;
247
+ testID?: string;
248
+ }
249
+ type NativeDatePickerProps = BasePickerProps;
250
+ type NativeTimePickerProps = BasePickerProps;
251
+ declare function NativeDatePicker(props: NativeDatePickerProps): react_jsx_runtime.JSX.Element;
252
+ declare function NativeTimePicker(props: NativeTimePickerProps): react_jsx_runtime.JSX.Element;
253
+
254
+ interface NativeNumberInputProps {
255
+ value: number;
256
+ onChange: (next: number) => void;
257
+ min?: number;
258
+ max?: number;
259
+ /** Increment per stepper press. Default 1. */
260
+ step?: number;
261
+ /** Decimal places shown. Default 0 (integer). */
262
+ precision?: number;
263
+ /** Disable both stepper buttons and the input. */
264
+ disabled?: boolean;
265
+ /** Disable just the typed input; keep stepper. */
266
+ readOnlyInput?: boolean;
267
+ className?: string;
268
+ inputClassName?: string;
269
+ testID?: string;
270
+ }
271
+ declare function NativeNumberInput({ value, onChange, min, max, step, precision, disabled, readOnlyInput, className, inputClassName, testID, }: NativeNumberInputProps): react_jsx_runtime.JSX.Element;
272
+
273
+ interface NativeStepperStep {
274
+ label: string;
275
+ /** Optional second-line description. */
276
+ description?: string;
277
+ }
278
+ interface NativeStepperProps {
279
+ steps: NativeStepperStep[];
280
+ /** Zero-indexed current step. */
281
+ current: number;
282
+ className?: string;
283
+ testID?: string;
284
+ }
285
+ declare function NativeStepper({ steps, current, className, testID, }: NativeStepperProps): react_jsx_runtime.JSX.Element;
286
+
287
+ interface BaseProps$1 {
288
+ min?: number;
289
+ max?: number;
290
+ step?: number;
291
+ className?: string;
292
+ trackClassName?: string;
293
+ fillClassName?: string;
294
+ thumbClassName?: string;
295
+ testID?: string;
296
+ }
297
+ interface NativeSliderProps extends BaseProps$1 {
298
+ value: number;
299
+ onChange: (value: number) => void;
300
+ }
301
+ declare function NativeSlider({ value, onChange, min, max, step, className, trackClassName, fillClassName, thumbClassName, testID, }: NativeSliderProps): react_jsx_runtime.JSX.Element;
302
+ interface NativeRangeSliderProps extends BaseProps$1 {
303
+ value: [number, number];
304
+ onChange: (value: [number, number]) => void;
305
+ }
306
+ declare function NativeRangeSlider({ value, onChange, min, max, step, className, trackClassName, fillClassName, thumbClassName, testID, }: NativeRangeSliderProps): react_jsx_runtime.JSX.Element;
307
+
308
+ interface NativeSegmentedControlOption<T = string> {
309
+ value: T;
310
+ label: string;
311
+ }
312
+ interface NativeSegmentedControlProps<T = string> {
313
+ options: NativeSegmentedControlOption<T>[];
314
+ value: T;
315
+ onChange: (value: T) => void;
316
+ /** Disable the entire control. */
317
+ disabled?: boolean;
318
+ className?: string;
319
+ testID?: string;
320
+ }
321
+ declare function NativeSegmentedControl<T = string>({ options, value, onChange, disabled, className, testID, }: NativeSegmentedControlProps<T>): react_jsx_runtime.JSX.Element;
322
+
323
+ type NativeChipGroupMode = "single" | "multiple";
324
+ interface NativeChipGroupProps {
325
+ mode?: NativeChipGroupMode;
326
+ value: string | string[];
327
+ onChange: (value: string | string[]) => void;
328
+ disabled?: boolean;
329
+ className?: string;
330
+ children: React.ReactNode;
331
+ testID?: string;
332
+ }
333
+ declare function NativeChipGroup({ mode, value, onChange, disabled, className, children, testID, }: NativeChipGroupProps): react_jsx_runtime.JSX.Element;
334
+ interface NativeChipProps {
335
+ value: string;
336
+ className?: string;
337
+ children: React.ReactNode;
338
+ testID?: string;
339
+ }
340
+ declare function NativeChip({ value, className, children, testID, }: NativeChipProps): react_jsx_runtime.JSX.Element;
341
+
342
+ interface NativePaginationProps {
343
+ /** Total page count (>= 1). */
344
+ pageCount: number;
345
+ /** Zero-indexed current page. */
346
+ page: number;
347
+ onChange: (page: number) => void;
348
+ /** Max numbered pages shown around the current page. Default 5. */
349
+ maxVisible?: number;
350
+ className?: string;
351
+ testID?: string;
352
+ }
353
+ declare function NativePagination({ pageCount, page, onChange, maxVisible, className, testID, }: NativePaginationProps): react_jsx_runtime.JSX.Element | null;
354
+
355
+ type NativeEmptyStateVariant = "first-run" | "no-results" | "error";
356
+ interface NativeEmptyStateProps {
357
+ /** Variant drives default tone + default title. Default "first-run". */
358
+ variant?: NativeEmptyStateVariant;
359
+ /** Headline. Falls back to a variant-specific default. */
360
+ title?: string;
361
+ /** Body copy shown below the title. (Alias: `description`.) */
362
+ body?: string;
363
+ /**
364
+ * @deprecated Prefer `body`. `description` remains for back-compat with
365
+ * the original C3 API; both are accepted but `body` wins if both passed.
366
+ */
367
+ description?: string;
368
+ /** Optional illustration (artwork node) above the title. */
369
+ illustration?: React.ReactNode;
370
+ /** Optional icon node above the title (use either icon or illustration). */
371
+ icon?: React.ReactNode;
372
+ /**
373
+ * Primary CTA. When provided, the consumer is responsible for rendering
374
+ * the button itself (we accept a node, not a label) so brand + token
375
+ * styling is honored. The web API takes a `{label, onPress}` descriptor;
376
+ * on native, prefer to pass a `<NativeButton>` directly to avoid
377
+ * cross-package coupling.
378
+ */
379
+ primaryAction?: React.ReactNode;
380
+ /** Secondary CTA, rendered below the primary. */
381
+ secondaryAction?: React.ReactNode;
382
+ /**
383
+ * Free-form action slot. Equivalent to `primaryAction`; accepted for
384
+ * back-compat with the C3 API. If both `action` and `primaryAction` are
385
+ * passed, `primaryAction` wins.
386
+ */
387
+ action?: React.ReactNode;
388
+ /**
389
+ * Developer-facing error details. Only rendered when __DEV__ is true at
390
+ * runtime (we infer by reading `process.env.NODE_ENV !== "production"`).
391
+ */
392
+ details?: string;
393
+ className?: string;
394
+ testID?: string;
395
+ }
396
+ declare function NativeEmptyState({ variant, title, body, description, illustration, icon, primaryAction, secondaryAction, action, details, className, testID, }: NativeEmptyStateProps): react_jsx_runtime.JSX.Element;
397
+
398
+ type NativeInlineAlertVariant = "info" | "success" | "warning" | "destructive";
399
+ interface BaseProps {
400
+ variant?: NativeInlineAlertVariant;
401
+ title?: string;
402
+ description?: string;
403
+ /** Optional icon node rendered to the left of the text. */
404
+ icon?: React.ReactNode;
405
+ /** When provided, renders an "✕" dismiss button with this label. */
406
+ onDismiss?: () => void;
407
+ className?: string;
408
+ testID?: string;
409
+ }
410
+ interface NativeInlineAlertProps extends BaseProps {
411
+ }
412
+ declare function NativeInlineAlert({ variant, title, description, icon, onDismiss, className, testID, }: NativeInlineAlertProps): react_jsx_runtime.JSX.Element;
413
+ interface NativeBannerProps extends BaseProps {
414
+ }
415
+ declare function NativeBanner({ variant, title, description, icon, onDismiss, className, testID, }: NativeBannerProps): react_jsx_runtime.JSX.Element;
416
+
417
+ interface NativeListItemProps {
418
+ title: string;
419
+ subtitle?: string;
420
+ /** Slot rendered to the left of the title (avatar / icon). */
421
+ leading?: React.ReactNode;
422
+ /** Slot rendered to the right of the title (badge / accessory). */
423
+ trailing?: React.ReactNode;
424
+ /** When true, renders a chevron-right at the end. */
425
+ showChevron?: boolean;
426
+ /** When provided, the row becomes pressable. */
427
+ onPress?: () => void;
428
+ disabled?: boolean;
429
+ className?: string;
430
+ testID?: string;
431
+ }
432
+ declare function NativeListItem({ title, subtitle, leading, trailing, showChevron, onPress, disabled, className, testID, }: NativeListItemProps): react_jsx_runtime.JSX.Element;
433
+ declare function NativeListItemDivider({ className }: {
434
+ className?: string;
435
+ }): react_jsx_runtime.JSX.Element;
436
+
437
+ interface NativeSectionListHeaderProps {
438
+ title: string;
439
+ /** Optional trailing content (e.g., a count badge). */
440
+ trailing?: React.ReactNode;
441
+ className?: string;
442
+ testID?: string;
443
+ }
444
+ declare function NativeSectionListHeader({ title, trailing, className, testID, }: NativeSectionListHeaderProps): react_jsx_runtime.JSX.Element;
445
+
446
+ interface NativeSearchBarProps {
447
+ value: string;
448
+ onChange: (value: string) => void;
449
+ /** Submit handler (return key on the keyboard). */
450
+ onSubmit?: (value: string) => void;
451
+ placeholder?: string;
452
+ /**
453
+ * Color used for the placeholder text. Defaults to a token-aware muted
454
+ * value that matches NativeWind's `text-muted-foreground` resolution.
455
+ * Override per-call when an alternate brand demands a different shade.
456
+ */
457
+ placeholderTextColor?: string;
458
+ /** When provided, renders a microphone trigger. */
459
+ onVoicePress?: () => void;
460
+ /** Show the "Cancel" button when focused. Default true. */
461
+ showCancel?: boolean;
462
+ /** Cancel button label. Default "Cancel". */
463
+ cancelLabel?: string;
464
+ className?: string;
465
+ testID?: string;
466
+ }
467
+ declare function NativeSearchBar({ value, onChange, onSubmit, placeholder, placeholderTextColor, onVoicePress, showCancel, cancelLabel, className, testID, }: NativeSearchBarProps): react_jsx_runtime.JSX.Element;
468
+
469
+ interface NativeRefreshControlProps {
470
+ refreshing: boolean;
471
+ onRefresh: () => void;
472
+ /** Hex / RGB color override. Falls back to the theme primary. */
473
+ tintColor?: string;
474
+ /** Title shown under the iOS spinner. */
475
+ title?: string;
476
+ /** Color of the iOS title text. */
477
+ titleColor?: string;
478
+ /** Android colors prop (an array of progress colors). */
479
+ colors?: string[];
480
+ /** Android progress background. */
481
+ progressBackgroundColor?: string;
482
+ testID?: string;
483
+ }
484
+ declare function NativeRefreshControl(props: NativeRefreshControlProps): react_jsx_runtime.JSX.Element | null;
485
+
486
+ declare const badgeVariants: (props?: ({
487
+ variant?: "default" | "secondary" | "outline" | "destructive" | "success" | "info" | "warning" | "muted" | null | undefined;
488
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
489
+ declare const badgeTextVariants: (props?: ({
490
+ variant?: "default" | "secondary" | "outline" | "destructive" | "success" | "info" | "warning" | "muted" | null | undefined;
491
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
492
+ interface NativeBadgeProps extends VariantProps<typeof badgeVariants> {
493
+ className?: string;
494
+ textClassName?: string;
495
+ children: React.ReactNode;
496
+ accessibilityLabel?: string;
497
+ testID?: string;
498
+ }
499
+ declare function NativeBadge({ className, textClassName, variant, children, ...props }: NativeBadgeProps): react_jsx_runtime.JSX.Element;
500
+
501
+ interface NativeInputProps extends TextInputProps {
502
+ className?: string;
503
+ inputClassName?: string;
504
+ label?: string;
505
+ error?: string;
506
+ }
507
+ declare function NativeInput({ className, inputClassName, label, error, editable, placeholderTextColor, ...props }: NativeInputProps): react_jsx_runtime.JSX.Element;
508
+
509
+ interface NativeSeparatorProps extends ViewProps {
510
+ orientation?: "horizontal" | "vertical";
511
+ }
512
+ declare function NativeSeparator({ className, orientation, ...props }: NativeSeparatorProps): react_jsx_runtime.JSX.Element;
513
+
514
+ interface NativeSkeletonProps {
515
+ className?: string;
516
+ /**
517
+ * Width of the skeleton. Use className for NativeWind sizing instead
518
+ * when possible (e.g. className="w-24 h-4").
519
+ */
520
+ width?: number;
521
+ height?: number;
522
+ /** Shorthand that sets both width and height (useful for circle skeletons). */
523
+ size?: number;
524
+ circle?: boolean;
525
+ testID?: string;
526
+ }
527
+ declare function NativeSkeleton({ className, width, height, size, circle, ...props }: NativeSkeletonProps): react_jsx_runtime.JSX.Element;
528
+
529
+ declare const alertVariants: (props?: ({
530
+ variant?: "default" | "destructive" | "success" | "info" | "warning" | null | undefined;
531
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
532
+ declare const alertTitleTextVariants: (props?: ({
533
+ variant?: "default" | "destructive" | "success" | "info" | "warning" | null | undefined;
534
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
535
+ declare const alertDescriptionTextVariants: (props?: ({
536
+ variant?: "default" | "destructive" | "success" | "info" | "warning" | null | undefined;
537
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
538
+ interface NativeAlertProps extends VariantProps<typeof alertVariants> {
539
+ className?: string;
540
+ children?: React.ReactNode;
541
+ testID?: string;
542
+ }
543
+ declare function NativeAlert({ className, variant, children, ...props }: NativeAlertProps): react_jsx_runtime.JSX.Element;
544
+ interface NativeAlertTitleProps {
545
+ className?: string;
546
+ children?: React.ReactNode;
547
+ variant?: VariantProps<typeof alertTitleTextVariants>["variant"];
548
+ }
549
+ declare function NativeAlertTitle({ className, variant, children, }: NativeAlertTitleProps): react_jsx_runtime.JSX.Element;
550
+ interface NativeAlertDescriptionProps {
551
+ className?: string;
552
+ children?: React.ReactNode;
553
+ variant?: VariantProps<typeof alertDescriptionTextVariants>["variant"];
554
+ }
555
+ declare function NativeAlertDescription({ className, variant, children, }: NativeAlertDescriptionProps): react_jsx_runtime.JSX.Element;
556
+
557
+ interface NativeAvatarProps {
558
+ className?: string;
559
+ /** Image URL */
560
+ src?: string | null;
561
+ /** Alt text for accessibility */
562
+ alt?: string;
563
+ /** Fallback text (typically initials, e.g. "MT") */
564
+ fallback?: string;
565
+ /** Size in pixels. Defaults to 40. Use className for NativeWind sizing. */
566
+ size?: number;
567
+ testID?: string;
568
+ }
569
+ declare function NativeAvatar({ className, src, alt, fallback, size, ...props }: NativeAvatarProps): react_jsx_runtime.JSX.Element;
570
+
571
+ interface NativeProgressProps {
572
+ className?: string;
573
+ /** Progress value between 0 and 100 */
574
+ value?: number;
575
+ /** Track color class. Defaults to bg-muted */
576
+ trackClassName?: string;
577
+ /** Indicator color class. Defaults to bg-primary */
578
+ indicatorClassName?: string;
579
+ testID?: string;
580
+ }
581
+ declare function NativeProgress({ className, value, trackClassName, indicatorClassName, ...props }: NativeProgressProps): react_jsx_runtime.JSX.Element;
582
+
583
+ interface NativeCheckboxProps {
584
+ className?: string;
585
+ checked?: boolean;
586
+ defaultChecked?: boolean;
587
+ onCheckedChange?: (checked: boolean) => void;
588
+ disabled?: boolean;
589
+ testID?: string;
590
+ }
591
+ declare function NativeCheckbox({ className, checked: controlledChecked, defaultChecked, onCheckedChange, disabled, ...props }: NativeCheckboxProps): react_jsx_runtime.JSX.Element;
592
+
593
+ interface NativeDialogProps {
594
+ open?: boolean;
595
+ onOpenChange?: (open: boolean) => void;
596
+ children: React.ReactNode;
597
+ }
598
+ declare function NativeDialog({ open, onOpenChange, children }: NativeDialogProps): react_jsx_runtime.JSX.Element;
599
+ interface NativeDialogContentProps {
600
+ className?: string;
601
+ children: React.ReactNode;
602
+ testID?: string;
603
+ }
604
+ declare function NativeDialogContent({ className, children, ...props }: NativeDialogContentProps): react_jsx_runtime.JSX.Element;
605
+ interface NativeDialogHeaderProps {
606
+ className?: string;
607
+ children: React.ReactNode;
608
+ }
609
+ declare function NativeDialogHeader({ className, children, }: NativeDialogHeaderProps): react_jsx_runtime.JSX.Element;
610
+ interface NativeDialogTitleProps {
611
+ className?: string;
612
+ children: React.ReactNode;
613
+ }
614
+ declare function NativeDialogTitle({ className, children, }: NativeDialogTitleProps): react_jsx_runtime.JSX.Element;
615
+ interface NativeDialogDescriptionProps {
616
+ className?: string;
617
+ children: React.ReactNode;
618
+ }
619
+ declare function NativeDialogDescription({ className, children, }: NativeDialogDescriptionProps): react_jsx_runtime.JSX.Element;
620
+ interface NativeDialogFooterProps {
621
+ className?: string;
622
+ children: React.ReactNode;
623
+ }
624
+ declare function NativeDialogFooter({ className, children, }: NativeDialogFooterProps): react_jsx_runtime.JSX.Element;
625
+
626
+ interface NativeDropdownMenuProps {
627
+ children: React__default.ReactNode;
628
+ }
629
+ declare function NativeDropdownMenu({ children }: NativeDropdownMenuProps): react_jsx_runtime.JSX.Element;
630
+ interface NativeDropdownMenuTriggerProps {
631
+ className?: string;
632
+ children: React__default.ReactNode;
633
+ testID?: string;
634
+ }
635
+ declare function NativeDropdownMenuTrigger({ className, children, ...props }: NativeDropdownMenuTriggerProps): react_jsx_runtime.JSX.Element;
636
+ interface NativeDropdownMenuContentProps {
637
+ className?: string;
638
+ children: React__default.ReactNode;
639
+ }
640
+ declare function NativeDropdownMenuContent({ className, children, }: NativeDropdownMenuContentProps): react_jsx_runtime.JSX.Element | null;
641
+ interface NativeDropdownMenuItemProps {
642
+ className?: string;
643
+ children: React__default.ReactNode;
644
+ onPress?: () => void;
645
+ disabled?: boolean;
646
+ testID?: string;
647
+ }
648
+ declare function NativeDropdownMenuItem({ className, children, onPress, disabled, ...props }: NativeDropdownMenuItemProps): react_jsx_runtime.JSX.Element;
649
+
650
+ interface NativeLabelProps extends TextProps {
651
+ children: React.ReactNode;
652
+ disabled?: boolean;
653
+ }
654
+ declare function NativeLabel({ className, children, disabled, ...props }: NativeLabelProps): react_jsx_runtime.JSX.Element;
655
+
656
+ interface NativeRadioGroupProps {
657
+ className?: string;
658
+ value?: string;
659
+ defaultValue?: string;
660
+ onValueChange?: (value: string) => void;
661
+ children: React.ReactNode;
662
+ testID?: string;
663
+ }
664
+ declare function NativeRadioGroup({ className, value: controlledValue, defaultValue, onValueChange: controlledOnValueChange, children, ...props }: NativeRadioGroupProps): react_jsx_runtime.JSX.Element;
665
+ interface NativeRadioGroupItemProps {
666
+ className?: string;
667
+ value: string;
668
+ disabled?: boolean;
669
+ testID?: string;
670
+ }
671
+ declare function NativeRadioGroupItem({ className, value, disabled, ...props }: NativeRadioGroupItemProps): react_jsx_runtime.JSX.Element;
672
+
673
+ interface NativeSelectProps {
674
+ value?: string;
675
+ defaultValue?: string;
676
+ onValueChange?: (value: string) => void;
677
+ children: React.ReactNode;
678
+ }
679
+ declare function NativeSelect({ value: controlledValue, defaultValue, onValueChange: controlledOnValueChange, children, }: NativeSelectProps): react_jsx_runtime.JSX.Element;
680
+ interface NativeSelectTriggerProps {
681
+ className?: string;
682
+ children?: React.ReactNode;
683
+ placeholder?: string;
684
+ disabled?: boolean;
685
+ testID?: string;
686
+ }
687
+ declare function NativeSelectTrigger({ className, children, placeholder, disabled, ...props }: NativeSelectTriggerProps): react_jsx_runtime.JSX.Element;
688
+ interface NativeSelectContentProps {
689
+ className?: string;
690
+ children: React.ReactNode;
691
+ }
692
+ declare function NativeSelectContent({ className, children, }: NativeSelectContentProps): react_jsx_runtime.JSX.Element | null;
693
+ interface NativeSelectItemProps {
694
+ className?: string;
695
+ value: string;
696
+ children: React.ReactNode;
697
+ testID?: string;
698
+ }
699
+ declare function NativeSelectItem({ className, value, children, ...props }: NativeSelectItemProps): react_jsx_runtime.JSX.Element;
700
+
701
+ interface NativeSwitchProps extends SwitchProps {
702
+ className?: string;
703
+ checked?: boolean;
704
+ onCheckedChange?: (checked: boolean) => void;
705
+ }
706
+ declare function NativeSwitch({ className, checked, onCheckedChange, disabled, ...props }: NativeSwitchProps): react_jsx_runtime.JSX.Element;
707
+
708
+ interface NativeTabsProps {
709
+ className?: string;
710
+ defaultValue: string;
711
+ value?: string;
712
+ onValueChange?: (value: string) => void;
713
+ children: React.ReactNode;
714
+ testID?: string;
715
+ }
716
+ declare function NativeTabs({ className, defaultValue, value: controlledValue, onValueChange: controlledOnValueChange, children, ...props }: NativeTabsProps): react_jsx_runtime.JSX.Element;
717
+ interface NativeTabsListProps {
718
+ className?: string;
719
+ children: React.ReactNode;
720
+ }
721
+ declare function NativeTabsList({ className, children }: NativeTabsListProps): react_jsx_runtime.JSX.Element;
722
+ interface NativeTabsTriggerProps {
723
+ className?: string;
724
+ value: string;
725
+ children: React.ReactNode;
726
+ disabled?: boolean;
727
+ testID?: string;
728
+ }
729
+ declare function NativeTabsTrigger({ className, value, children, disabled, ...props }: NativeTabsTriggerProps): react_jsx_runtime.JSX.Element;
730
+ interface NativeTabsContentProps {
731
+ className?: string;
732
+ value: string;
733
+ children: React.ReactNode;
734
+ }
735
+ declare function NativeTabsContent({ className, value, children, }: NativeTabsContentProps): react_jsx_runtime.JSX.Element | null;
736
+
737
+ interface NativeTextareaProps extends TextInputProps {
738
+ className?: string;
739
+ inputClassName?: string;
740
+ label?: string;
741
+ error?: string;
742
+ rows?: number;
743
+ }
744
+ declare function NativeTextarea({ className, inputClassName, label, error, editable, rows, placeholderTextColor, ...props }: NativeTextareaProps): react_jsx_runtime.JSX.Element;
745
+
746
+ declare const toggleVariants: (props?: ({
747
+ variant?: "default" | "outline" | null | undefined;
748
+ size?: "default" | "sm" | "lg" | null | undefined;
749
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
750
+ interface NativeToggleProps extends VariantProps<typeof toggleVariants> {
751
+ className?: string;
752
+ pressed?: boolean;
753
+ defaultPressed?: boolean;
754
+ onPressedChange?: (pressed: boolean) => void;
755
+ disabled?: boolean;
756
+ children: React.ReactNode;
757
+ testID?: string;
758
+ }
759
+ declare function NativeToggle({ className, variant, size, pressed: controlledPressed, defaultPressed, onPressedChange, disabled, children, ...props }: NativeToggleProps): react_jsx_runtime.JSX.Element;
760
+
761
+ interface NativeTooltipProps {
762
+ children: React.ReactNode;
763
+ }
764
+ declare function NativeTooltip({ children }: NativeTooltipProps): react_jsx_runtime.JSX.Element;
765
+ interface NativeTooltipTriggerProps {
766
+ className?: string;
767
+ children: React.ReactNode;
768
+ testID?: string;
769
+ }
770
+ declare function NativeTooltipTrigger({ className, children, ...props }: NativeTooltipTriggerProps): react_jsx_runtime.JSX.Element;
771
+ interface NativeTooltipContentProps {
772
+ className?: string;
773
+ children: React.ReactNode;
774
+ }
775
+ declare function NativeTooltipContent({ className, children, }: NativeTooltipContentProps): react_jsx_runtime.JSX.Element | null;
776
+
777
+ /**
778
+ * Shared flexbox alignment vocabulary for the row/column layout primitives
779
+ * (Stack / Inline). Kept as a tiny token map so Stack and Inline express the
780
+ * SAME `align` / `justify` props with one source of truth — variant props,
781
+ * not 30-prop configuration.
782
+ */
783
+ type FlexAlign = "start" | "center" | "end" | "stretch";
784
+ type FlexJustify = "start" | "center" | "end" | "between" | "around";
785
+
786
+ /**
787
+ * Layout spacing scale — the single source of truth for gap / padding /
788
+ * margin across the Genesis layout primitives (Stack / Inline / Box / Grid).
789
+ *
790
+ * Semantic step names map to pixel values on the 4px Tailwind grid. The
791
+ * primitives NEVER inline a px value or hand-write a `gap-N` / `p-N` class —
792
+ * they always resolve through `spacingClass()` so spacing stays token-driven
793
+ * (the Braid rule the PRD-46 research flags: "layout primitives own all
794
+ * spacing"). When the design-system semantic spacing tier lands, this scale
795
+ * re-points to it additively — consumers keep the same `SpaceToken` API.
796
+ */
797
+ declare const spaceScale: {
798
+ readonly none: 0;
799
+ readonly xs: 4;
800
+ readonly sm: 8;
801
+ readonly md: 12;
802
+ readonly lg: 16;
803
+ readonly xl: 24;
804
+ readonly "2xl": 32;
805
+ readonly "3xl": 48;
806
+ };
807
+ type SpaceToken = keyof typeof spaceScale;
808
+ /** Spacing-bearing NativeWind utility prefixes the primitives emit. */
809
+ type SpacingPrefix = "gap" | "p" | "px" | "py" | "pt" | "pb" | "pl" | "pr" | "m" | "mx" | "my" | "mt" | "mb" | "ml" | "mr";
810
+ /**
811
+ * Resolve a semantic spacing token to its NativeWind utility class for a
812
+ * given prefix — e.g. `spacingClass("gap", "md") === "gap-3"` (12px / 4).
813
+ *
814
+ * Returns a STATIC literal from `SPACING_CLASSES` (see the note there) so the
815
+ * Tailwind content scanner can compile it. The dev-only invariant check keeps
816
+ * the literal honest against `spaceScale` — if the map ever drifts from the
817
+ * token scale it throws in dev rather than silently shipping the wrong gap.
818
+ */
819
+ declare function spacingClass(prefix: SpacingPrefix, token: SpaceToken): string;
820
+
821
+ interface StackProps extends ViewProps {
822
+ /** Vertical spacing between children — resolved from the spacing token. */
823
+ gap?: SpaceToken;
824
+ /** Cross-axis (horizontal) alignment of children. */
825
+ align?: FlexAlign;
826
+ /** Main-axis (vertical) distribution of children. */
827
+ justify?: FlexJustify;
828
+ }
829
+ /**
830
+ * Render a vertical (`flex-col`) `View` with token-driven `gap` + alignment.
831
+ * @stability Beta
832
+ */
833
+ declare function Stack({ gap, align, justify, className, children, ...props }: StackProps): react_jsx_runtime.JSX.Element;
834
+
835
+ interface InlineProps extends ViewProps {
836
+ /** Horizontal spacing between children — resolved from the spacing token. */
837
+ gap?: SpaceToken;
838
+ /** Cross-axis (vertical) alignment of children. Defaults to `center`. */
839
+ align?: FlexAlign;
840
+ /** Main-axis (horizontal) distribution of children. */
841
+ justify?: FlexJustify;
842
+ /** Allow children to wrap onto multiple rows when they overflow. */
843
+ wrap?: boolean;
844
+ }
845
+ /**
846
+ * Render a horizontal (`flex-row`) `View` with token-driven `gap`, alignment, and optional wrap.
847
+ * @stability Beta
848
+ */
849
+ declare function Inline({ gap, align, justify, wrap, className, children, ...props }: InlineProps): react_jsx_runtime.JSX.Element;
850
+
851
+ /**
852
+ * Token-named surfaces — map to the SEMANTIC Genesis surface tokens (never a
853
+ * consumer-specific brand color or raw hex), so any tenant's theme drives the
854
+ * actual color. `surface` = a raised card surface, `canvas` = the page
855
+ * background, `inverse` = the inverted (foreground) surface.
856
+ */
857
+ type BoxBackground = "transparent" | "surface" | "canvas" | "inverse";
858
+ interface BoxProps extends ViewProps {
859
+ /** Padding on all sides. */
860
+ p?: SpaceToken;
861
+ /** Horizontal padding (left + right). */
862
+ px?: SpaceToken;
863
+ /** Vertical padding (top + bottom). */
864
+ py?: SpaceToken;
865
+ /** Top padding. */
866
+ pt?: SpaceToken;
867
+ /** Bottom padding. */
868
+ pb?: SpaceToken;
869
+ /** Left padding. */
870
+ pl?: SpaceToken;
871
+ /** Right padding. */
872
+ pr?: SpaceToken;
873
+ /** Margin on all sides. */
874
+ m?: SpaceToken;
875
+ /** Horizontal margin (left + right). */
876
+ mx?: SpaceToken;
877
+ /** Vertical margin (top + bottom). */
878
+ my?: SpaceToken;
879
+ /** Top margin. */
880
+ mt?: SpaceToken;
881
+ /** Bottom margin. */
882
+ mb?: SpaceToken;
883
+ /** Left margin. */
884
+ ml?: SpaceToken;
885
+ /** Right margin. */
886
+ mr?: SpaceToken;
887
+ /** Token-named background surface. */
888
+ bg?: BoxBackground;
889
+ }
890
+ /**
891
+ * Render a `View` whose padding/margin/background all resolve from tokens.
892
+ * @stability Beta
893
+ */
894
+ declare function Box({ p, px, py, pt, pb, pl, pr, m, mx, my, mt, mb, ml, mr, bg, className, children, ...props }: BoxProps): react_jsx_runtime.JSX.Element;
895
+
896
+ interface GridProps extends ViewProps {
897
+ /** Number of equal-width columns. Defaults to 2. Floored to >= 1. */
898
+ columns?: number;
899
+ /** Gutter between rows and columns — resolved from the spacing token. */
900
+ gap?: SpaceToken;
901
+ }
902
+ /**
903
+ * Render an equal-column grid by chunking children into `flex-1` rows with a token gutter.
904
+ * @stability Beta
905
+ */
906
+ declare function Grid({ columns, gap, className, children, ...props }: GridProps): react_jsx_runtime.JSX.Element;
907
+
908
+ export { Box, type BoxBackground, type BoxProps, type FlexAlign, type FlexJustify, Grid, type GridProps, Inline, type InlineProps, NativeAccordion, NativeAccordionContent, type NativeAccordionContentProps, NativeAccordionItem, type NativeAccordionItemProps, type NativeAccordionProps, NativeAccordionTrigger, type NativeAccordionTriggerProps, type NativeAccordionType, NativeAlert, NativeAlertDescription, type NativeAlertDescriptionProps, type NativeAlertProps, NativeAlertTitle, type NativeAlertTitleProps, NativeAvatar, type NativeAvatarProps, NativeBadge, type NativeBadgeProps, NativeBanner, type NativeBannerProps, NativeButton, type NativeButtonProps, NativeCard, NativeCardContent, NativeCardDescription, NativeCardFooter, NativeCardHeader, type NativeCardProps, NativeCardTitle, type NativeCardTitleProps, NativeCheckbox, type NativeCheckboxProps, NativeChip, NativeChipGroup, type NativeChipGroupMode, type NativeChipGroupProps, type NativeChipProps, NativeCombobox, type NativeComboboxOption, type NativeComboboxProps, NativeDatePicker, type NativeDatePickerProps, NativeDialog, NativeDialogContent, type NativeDialogContentProps, NativeDialogDescription, type NativeDialogDescriptionProps, NativeDialogFooter, type NativeDialogFooterProps, NativeDialogHeader, type NativeDialogHeaderProps, type NativeDialogProps, NativeDialogTitle, type NativeDialogTitleProps, NativeDrawer, type NativeDrawerProps, NativeDropdownMenu, NativeDropdownMenuContent, type NativeDropdownMenuContentProps, NativeDropdownMenuItem, type NativeDropdownMenuItemProps, type NativeDropdownMenuProps, NativeDropdownMenuTrigger, type NativeDropdownMenuTriggerProps, NativeEmptyState, type NativeEmptyStateProps, type NativeEmptyStateVariant, NativeHeaderCard, type NativeHeaderCardProps, NativeInlineAlert, type NativeInlineAlertProps, type NativeInlineAlertVariant, NativeInput, type NativeInputProps, NativeLabel, type NativeLabelProps, NativeListItem, NativeListItemDivider, type NativeListItemProps, NativeNumberInput, type NativeNumberInputProps, NativePagination, type NativePaginationProps, NativePopover, NativePopoverContent, type NativePopoverContentProps, type NativePopoverProps, NativePopoverTrigger, type NativePopoverTriggerProps, NativeProgress, type NativeProgressProps, NativeRadioGroup, NativeRadioGroupItem, type NativeRadioGroupItemProps, type NativeRadioGroupProps, NativeRangeSlider, type NativeRangeSliderProps, NativeRefreshControl, type NativeRefreshControlProps, NativeSearchBar, type NativeSearchBarProps, NativeSectionListHeader, type NativeSectionListHeaderProps, NativeSegmentedControl, type NativeSegmentedControlOption, type NativeSegmentedControlProps, NativeSelect, NativeSelectContent, type NativeSelectContentProps, NativeSelectItem, type NativeSelectItemProps, type NativeSelectProps, NativeSelectTrigger, type NativeSelectTriggerProps, NativeSeparator, type NativeSeparatorProps, NativeSheet, type NativeSheetProps, NativeSkeleton, type NativeSkeletonProps, NativeSlider, type NativeSliderProps, NativeStepper, type NativeStepperProps, type NativeStepperStep, NativeSwitch, type NativeSwitchProps, NativeTabs, NativeTabsContent, type NativeTabsContentProps, NativeTabsList, type NativeTabsListProps, type NativeTabsProps, NativeTabsTrigger, type NativeTabsTriggerProps, NativeText, type NativeTextProps, NativeTextarea, type NativeTextareaProps, NativeTimePicker, type NativeTimePickerProps, type NativeToastOptions, NativeToastProvider, type NativeToastProviderProps, type NativeToastVariant, NativeToggle, type NativeToggleProps, NativeTooltip, NativeTooltipContent, type NativeTooltipContentProps, type NativeTooltipProps, NativeTooltipTrigger, type NativeTooltipTriggerProps, type SpaceToken, type SpacingPrefix, Stack, type StackProps, type TextPreset, alertVariants, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, spaceScale, spacingClass, textVariants, toggleVariants, useToast };