@marktiderman/genesis-ui-native 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/components/index.d.ts +91 -85
- package/dist/data/index.d.ts +9 -10
- package/dist/hooks/index.d.ts +2 -2
- package/dist/index.d.ts +1 -2
- package/dist/layouts/index.d.ts +12 -12
- package/package.json +13 -13
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mark Tiderman
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import react__default from 'react';
|
|
2
3
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
4
|
import { VariantProps } from 'class-variance-authority';
|
|
4
5
|
import { TextProps, TextInputProps, ViewProps, SwitchProps } from 'react-native';
|
|
5
|
-
import React__default from 'react';
|
|
6
6
|
|
|
7
7
|
declare const textVariants: (props?: ({
|
|
8
8
|
preset?: "h1" | "h2" | "h3" | "h4" | "body" | "body-sm" | "caption" | "label" | null | undefined;
|
|
@@ -23,7 +23,7 @@ interface NativeTextProps extends TextProps, VariantProps<typeof textVariants> {
|
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
25
|
type TextPreset = NonNullable<NativeTextProps["preset"]>;
|
|
26
|
-
declare function NativeText({ className, preset, children, ...props }: NativeTextProps):
|
|
26
|
+
declare function NativeText({ className, preset, children, ...props }: NativeTextProps): react.JSX.Element;
|
|
27
27
|
|
|
28
28
|
declare const buttonVariants: (props?: ({
|
|
29
29
|
variant?: "default" | "secondary" | "outline" | "ghost" | "destructive" | null | undefined;
|
|
@@ -42,29 +42,29 @@ interface NativeButtonProps extends VariantProps<typeof buttonVariants> {
|
|
|
42
42
|
loading?: boolean;
|
|
43
43
|
testID?: string;
|
|
44
44
|
}
|
|
45
|
-
declare function NativeButton({ className, textClassName, variant, size, children, onPress, disabled, loading, ...props }: NativeButtonProps):
|
|
45
|
+
declare function NativeButton({ className, textClassName, variant, size, children, onPress, disabled, loading, ...props }: NativeButtonProps): react.JSX.Element;
|
|
46
46
|
|
|
47
47
|
interface NativeCardProps {
|
|
48
48
|
className?: string;
|
|
49
49
|
children?: React.ReactNode;
|
|
50
50
|
testID?: string;
|
|
51
51
|
}
|
|
52
|
-
declare function NativeCard({ className, children, ...props }: NativeCardProps):
|
|
53
|
-
declare function NativeCardHeader({ className, children, ...props }: NativeCardProps):
|
|
52
|
+
declare function NativeCard({ className, children, ...props }: NativeCardProps): react.JSX.Element;
|
|
53
|
+
declare function NativeCardHeader({ className, children, ...props }: NativeCardProps): react.JSX.Element;
|
|
54
54
|
interface NativeCardTitleProps {
|
|
55
55
|
className?: string;
|
|
56
56
|
children?: React.ReactNode;
|
|
57
57
|
testID?: string;
|
|
58
58
|
}
|
|
59
|
-
declare function NativeCardTitle({ className, children, ...props }: NativeCardTitleProps):
|
|
59
|
+
declare function NativeCardTitle({ className, children, ...props }: NativeCardTitleProps): react.JSX.Element;
|
|
60
60
|
interface NativeCardDescriptionProps {
|
|
61
61
|
className?: string;
|
|
62
62
|
children?: React.ReactNode;
|
|
63
63
|
testID?: string;
|
|
64
64
|
}
|
|
65
|
-
declare function NativeCardDescription({ className, children, ...props }: NativeCardDescriptionProps):
|
|
66
|
-
declare function NativeCardContent({ className, children, ...props }: NativeCardProps):
|
|
67
|
-
declare function NativeCardFooter({ className, children, ...props }: NativeCardProps):
|
|
65
|
+
declare function NativeCardDescription({ className, children, ...props }: NativeCardDescriptionProps): react.JSX.Element;
|
|
66
|
+
declare function NativeCardContent({ className, children, ...props }: NativeCardProps): react.JSX.Element;
|
|
67
|
+
declare function NativeCardFooter({ className, children, ...props }: NativeCardProps): react.JSX.Element;
|
|
68
68
|
|
|
69
69
|
interface NativeHeaderCardProps {
|
|
70
70
|
/** Heading rendered at the top of the card. Required. */
|
|
@@ -92,7 +92,7 @@ interface NativeHeaderCardProps {
|
|
|
92
92
|
/** testID on the root container. Required for instrumented screens. */
|
|
93
93
|
testID?: string;
|
|
94
94
|
}
|
|
95
|
-
declare function NativeHeaderCard({ title, description, body, footer, className, titleClassName, descriptionClassName, bodyClassName, footerClassName, testID, }: NativeHeaderCardProps):
|
|
95
|
+
declare function NativeHeaderCard({ title, description, body, footer, className, titleClassName, descriptionClassName, bodyClassName, footerClassName, testID, }: NativeHeaderCardProps): react.JSX.Element;
|
|
96
96
|
|
|
97
97
|
type NativeToastVariant = "default" | "success" | "destructive";
|
|
98
98
|
interface NativeToastOptions {
|
|
@@ -118,7 +118,7 @@ interface NativeToastProviderProps {
|
|
|
118
118
|
/** Disable entrance/exit animation. Default false. */
|
|
119
119
|
disableAnimation?: boolean;
|
|
120
120
|
}
|
|
121
|
-
declare function NativeToastProvider({ children, position, disableAnimation, }: NativeToastProviderProps):
|
|
121
|
+
declare function NativeToastProvider({ children, position, disableAnimation, }: NativeToastProviderProps): react.JSX.Element;
|
|
122
122
|
declare function useToast(): NativeToastContextValue;
|
|
123
123
|
|
|
124
124
|
interface NativeSheetProps {
|
|
@@ -135,7 +135,7 @@ interface NativeSheetProps {
|
|
|
135
135
|
children: React.ReactNode;
|
|
136
136
|
testID?: string;
|
|
137
137
|
}
|
|
138
|
-
declare function NativeSheet({ open, onOpenChange, snapPoints, initialSnapIndex, disableBackdropDismiss, children, testID, }: NativeSheetProps):
|
|
138
|
+
declare function NativeSheet({ open, onOpenChange, snapPoints, initialSnapIndex, disableBackdropDismiss, children, testID, }: NativeSheetProps): react.JSX.Element;
|
|
139
139
|
|
|
140
140
|
interface NativePopoverProps {
|
|
141
141
|
open?: boolean;
|
|
@@ -143,13 +143,13 @@ interface NativePopoverProps {
|
|
|
143
143
|
onOpenChange?: (open: boolean) => void;
|
|
144
144
|
children: React.ReactNode;
|
|
145
145
|
}
|
|
146
|
-
declare function NativePopover({ open: controlled, defaultOpen, onOpenChange, children, }: NativePopoverProps):
|
|
146
|
+
declare function NativePopover({ open: controlled, defaultOpen, onOpenChange, children, }: NativePopoverProps): react.JSX.Element;
|
|
147
147
|
interface NativePopoverTriggerProps {
|
|
148
148
|
children: React.ReactNode;
|
|
149
149
|
asChild?: boolean;
|
|
150
150
|
testID?: string;
|
|
151
151
|
}
|
|
152
|
-
declare function NativePopoverTrigger({ children, testID, }: NativePopoverTriggerProps):
|
|
152
|
+
declare function NativePopoverTrigger({ children, testID, }: NativePopoverTriggerProps): react.JSX.Element;
|
|
153
153
|
interface NativePopoverContentProps {
|
|
154
154
|
className?: string;
|
|
155
155
|
children: React.ReactNode;
|
|
@@ -159,7 +159,7 @@ interface NativePopoverContentProps {
|
|
|
159
159
|
sideOffset?: number;
|
|
160
160
|
testID?: string;
|
|
161
161
|
}
|
|
162
|
-
declare function NativePopoverContent({ className, children, side, sideOffset, testID, }: NativePopoverContentProps):
|
|
162
|
+
declare function NativePopoverContent({ className, children, side, sideOffset, testID, }: NativePopoverContentProps): react.JSX.Element | null;
|
|
163
163
|
|
|
164
164
|
interface NativeDrawerProps {
|
|
165
165
|
open: boolean;
|
|
@@ -172,7 +172,7 @@ interface NativeDrawerProps {
|
|
|
172
172
|
className?: string;
|
|
173
173
|
testID?: string;
|
|
174
174
|
}
|
|
175
|
-
declare function NativeDrawer({ open, onOpenChange, side, width, children, className, testID, }: NativeDrawerProps):
|
|
175
|
+
declare function NativeDrawer({ open, onOpenChange, side, width, children, className, testID, }: NativeDrawerProps): react.JSX.Element;
|
|
176
176
|
|
|
177
177
|
type NativeAccordionType = "single" | "multiple";
|
|
178
178
|
interface NativeAccordionProps {
|
|
@@ -185,7 +185,7 @@ interface NativeAccordionProps {
|
|
|
185
185
|
children: React.ReactNode;
|
|
186
186
|
testID?: string;
|
|
187
187
|
}
|
|
188
|
-
declare function NativeAccordion({ type, value: controlled, defaultValue, onValueChange, className, children, testID, }: NativeAccordionProps):
|
|
188
|
+
declare function NativeAccordion({ type, value: controlled, defaultValue, onValueChange, className, children, testID, }: NativeAccordionProps): react.JSX.Element;
|
|
189
189
|
interface NativeAccordionItemProps {
|
|
190
190
|
value: string;
|
|
191
191
|
className?: string;
|
|
@@ -193,19 +193,19 @@ interface NativeAccordionItemProps {
|
|
|
193
193
|
isLast?: boolean;
|
|
194
194
|
children: React.ReactNode;
|
|
195
195
|
}
|
|
196
|
-
declare function NativeAccordionItem({ value, className, isLast, children, }: NativeAccordionItemProps):
|
|
196
|
+
declare function NativeAccordionItem({ value, className, isLast, children, }: NativeAccordionItemProps): react.JSX.Element;
|
|
197
197
|
interface NativeAccordionTriggerProps {
|
|
198
198
|
className?: string;
|
|
199
199
|
children: React.ReactNode;
|
|
200
200
|
testID?: string;
|
|
201
201
|
}
|
|
202
|
-
declare function NativeAccordionTrigger({ className, children, testID, }: NativeAccordionTriggerProps):
|
|
202
|
+
declare function NativeAccordionTrigger({ className, children, testID, }: NativeAccordionTriggerProps): react.JSX.Element;
|
|
203
203
|
interface NativeAccordionContentProps {
|
|
204
204
|
className?: string;
|
|
205
205
|
children: React.ReactNode;
|
|
206
206
|
testID?: string;
|
|
207
207
|
}
|
|
208
|
-
declare function NativeAccordionContent({ className, children, testID, }: NativeAccordionContentProps):
|
|
208
|
+
declare function NativeAccordionContent({ className, children, testID, }: NativeAccordionContentProps): react.JSX.Element | null;
|
|
209
209
|
|
|
210
210
|
interface NativeComboboxOption<T = string> {
|
|
211
211
|
/** Stable identifier passed to onChange. */
|
|
@@ -236,7 +236,7 @@ interface NativeComboboxProps<T = string> {
|
|
|
236
236
|
className?: string;
|
|
237
237
|
testID?: string;
|
|
238
238
|
}
|
|
239
|
-
declare function NativeCombobox<T = string>({ options, value, onChange, placeholder, placeholderTextColor, filter, emptyContent, defaultQuery, className, testID, }: NativeComboboxProps<T>):
|
|
239
|
+
declare function NativeCombobox<T = string>({ options, value, onChange, placeholder, placeholderTextColor, filter, emptyContent, defaultQuery, className, testID, }: NativeComboboxProps<T>): react.JSX.Element;
|
|
240
240
|
|
|
241
241
|
interface BasePickerProps {
|
|
242
242
|
value: Date;
|
|
@@ -250,8 +250,8 @@ interface BasePickerProps {
|
|
|
250
250
|
}
|
|
251
251
|
type NativeDatePickerProps = BasePickerProps;
|
|
252
252
|
type NativeTimePickerProps = BasePickerProps;
|
|
253
|
-
declare function NativeDatePicker(props: NativeDatePickerProps):
|
|
254
|
-
declare function NativeTimePicker(props: NativeTimePickerProps):
|
|
253
|
+
declare function NativeDatePicker(props: NativeDatePickerProps): react.JSX.Element;
|
|
254
|
+
declare function NativeTimePicker(props: NativeTimePickerProps): react.JSX.Element;
|
|
255
255
|
|
|
256
256
|
interface NativeNumberInputProps {
|
|
257
257
|
value: number;
|
|
@@ -270,7 +270,7 @@ interface NativeNumberInputProps {
|
|
|
270
270
|
inputClassName?: string;
|
|
271
271
|
testID?: string;
|
|
272
272
|
}
|
|
273
|
-
declare function NativeNumberInput({ value, onChange, min, max, step, precision, disabled, readOnlyInput, className, inputClassName, testID, }: NativeNumberInputProps):
|
|
273
|
+
declare function NativeNumberInput({ value, onChange, min, max, step, precision, disabled, readOnlyInput, className, inputClassName, testID, }: NativeNumberInputProps): react.JSX.Element;
|
|
274
274
|
|
|
275
275
|
interface NativeStepperStep {
|
|
276
276
|
label: string;
|
|
@@ -284,7 +284,7 @@ interface NativeStepperProps {
|
|
|
284
284
|
className?: string;
|
|
285
285
|
testID?: string;
|
|
286
286
|
}
|
|
287
|
-
declare function NativeStepper({ steps, current, className, testID, }: NativeStepperProps):
|
|
287
|
+
declare function NativeStepper({ steps, current, className, testID, }: NativeStepperProps): react.JSX.Element;
|
|
288
288
|
|
|
289
289
|
interface BaseProps$1 {
|
|
290
290
|
min?: number;
|
|
@@ -300,12 +300,12 @@ interface NativeSliderProps extends BaseProps$1 {
|
|
|
300
300
|
value: number;
|
|
301
301
|
onChange: (value: number) => void;
|
|
302
302
|
}
|
|
303
|
-
declare function NativeSlider({ value, onChange, min, max, step, className, trackClassName, fillClassName, thumbClassName, testID, }: NativeSliderProps):
|
|
303
|
+
declare function NativeSlider({ value, onChange, min, max, step, className, trackClassName, fillClassName, thumbClassName, testID, }: NativeSliderProps): react.JSX.Element;
|
|
304
304
|
interface NativeRangeSliderProps extends BaseProps$1 {
|
|
305
305
|
value: [number, number];
|
|
306
306
|
onChange: (value: [number, number]) => void;
|
|
307
307
|
}
|
|
308
|
-
declare function NativeRangeSlider({ value, onChange, min, max, step, className, trackClassName, fillClassName, thumbClassName, testID, }: NativeRangeSliderProps):
|
|
308
|
+
declare function NativeRangeSlider({ value, onChange, min, max, step, className, trackClassName, fillClassName, thumbClassName, testID, }: NativeRangeSliderProps): react.JSX.Element;
|
|
309
309
|
|
|
310
310
|
interface NativeSegmentedControlOption<T = string> {
|
|
311
311
|
value: T;
|
|
@@ -320,7 +320,7 @@ interface NativeSegmentedControlProps<T = string> {
|
|
|
320
320
|
className?: string;
|
|
321
321
|
testID?: string;
|
|
322
322
|
}
|
|
323
|
-
declare function NativeSegmentedControl<T = string>({ options, value, onChange, disabled, className, testID, }: NativeSegmentedControlProps<T>):
|
|
323
|
+
declare function NativeSegmentedControl<T = string>({ options, value, onChange, disabled, className, testID, }: NativeSegmentedControlProps<T>): react.JSX.Element;
|
|
324
324
|
|
|
325
325
|
type NativeChipGroupMode = "single" | "multiple";
|
|
326
326
|
interface NativeChipGroupProps {
|
|
@@ -332,14 +332,14 @@ interface NativeChipGroupProps {
|
|
|
332
332
|
children: React.ReactNode;
|
|
333
333
|
testID?: string;
|
|
334
334
|
}
|
|
335
|
-
declare function NativeChipGroup({ mode, value, onChange, disabled, className, children, testID, }: NativeChipGroupProps):
|
|
335
|
+
declare function NativeChipGroup({ mode, value, onChange, disabled, className, children, testID, }: NativeChipGroupProps): react.JSX.Element;
|
|
336
336
|
interface NativeChipProps {
|
|
337
337
|
value: string;
|
|
338
338
|
className?: string;
|
|
339
339
|
children: React.ReactNode;
|
|
340
340
|
testID?: string;
|
|
341
341
|
}
|
|
342
|
-
declare function NativeChip({ value, className, children, testID, }: NativeChipProps):
|
|
342
|
+
declare function NativeChip({ value, className, children, testID, }: NativeChipProps): react.JSX.Element;
|
|
343
343
|
|
|
344
344
|
interface NativePaginationProps {
|
|
345
345
|
/** Total page count (>= 1). */
|
|
@@ -352,7 +352,7 @@ interface NativePaginationProps {
|
|
|
352
352
|
className?: string;
|
|
353
353
|
testID?: string;
|
|
354
354
|
}
|
|
355
|
-
declare function NativePagination({ pageCount, page, onChange, maxVisible, className, testID, }: NativePaginationProps):
|
|
355
|
+
declare function NativePagination({ pageCount, page, onChange, maxVisible, className, testID, }: NativePaginationProps): react.JSX.Element | null;
|
|
356
356
|
|
|
357
357
|
type NativeEmptyStateVariant = "first-run" | "no-results" | "error";
|
|
358
358
|
interface NativeEmptyStateProps {
|
|
@@ -395,7 +395,7 @@ interface NativeEmptyStateProps {
|
|
|
395
395
|
className?: string;
|
|
396
396
|
testID?: string;
|
|
397
397
|
}
|
|
398
|
-
declare function NativeEmptyState({ variant, title, body, description, illustration, icon, primaryAction, secondaryAction, action, details, className, testID, }: NativeEmptyStateProps):
|
|
398
|
+
declare function NativeEmptyState({ variant, title, body, description, illustration, icon, primaryAction, secondaryAction, action, details, className, testID, }: NativeEmptyStateProps): react.JSX.Element;
|
|
399
399
|
|
|
400
400
|
type NativeInlineAlertVariant = "info" | "success" | "warning" | "destructive";
|
|
401
401
|
interface BaseProps {
|
|
@@ -411,10 +411,10 @@ interface BaseProps {
|
|
|
411
411
|
}
|
|
412
412
|
interface NativeInlineAlertProps extends BaseProps {
|
|
413
413
|
}
|
|
414
|
-
declare function NativeInlineAlert({ variant, title, description, icon, onDismiss, className, testID, }: NativeInlineAlertProps):
|
|
414
|
+
declare function NativeInlineAlert({ variant, title, description, icon, onDismiss, className, testID, }: NativeInlineAlertProps): react.JSX.Element;
|
|
415
415
|
interface NativeBannerProps extends BaseProps {
|
|
416
416
|
}
|
|
417
|
-
declare function NativeBanner({ variant, title, description, icon, onDismiss, className, testID, }: NativeBannerProps):
|
|
417
|
+
declare function NativeBanner({ variant, title, description, icon, onDismiss, className, testID, }: NativeBannerProps): react.JSX.Element;
|
|
418
418
|
|
|
419
419
|
interface NativeListItemProps {
|
|
420
420
|
title: string;
|
|
@@ -431,10 +431,10 @@ interface NativeListItemProps {
|
|
|
431
431
|
className?: string;
|
|
432
432
|
testID?: string;
|
|
433
433
|
}
|
|
434
|
-
declare function NativeListItem({ title, subtitle, leading, trailing, showChevron, onPress, disabled, className, testID, }: NativeListItemProps):
|
|
434
|
+
declare function NativeListItem({ title, subtitle, leading, trailing, showChevron, onPress, disabled, className, testID, }: NativeListItemProps): react.JSX.Element;
|
|
435
435
|
declare function NativeListItemDivider({ className }: {
|
|
436
436
|
className?: string;
|
|
437
|
-
}):
|
|
437
|
+
}): react.JSX.Element;
|
|
438
438
|
|
|
439
439
|
interface NativeSectionListHeaderProps {
|
|
440
440
|
title: string;
|
|
@@ -443,7 +443,7 @@ interface NativeSectionListHeaderProps {
|
|
|
443
443
|
className?: string;
|
|
444
444
|
testID?: string;
|
|
445
445
|
}
|
|
446
|
-
declare function NativeSectionListHeader({ title, trailing, className, testID, }: NativeSectionListHeaderProps):
|
|
446
|
+
declare function NativeSectionListHeader({ title, trailing, className, testID, }: NativeSectionListHeaderProps): react.JSX.Element;
|
|
447
447
|
|
|
448
448
|
interface NativeSearchBarProps {
|
|
449
449
|
value: string;
|
|
@@ -466,7 +466,7 @@ interface NativeSearchBarProps {
|
|
|
466
466
|
className?: string;
|
|
467
467
|
testID?: string;
|
|
468
468
|
}
|
|
469
|
-
declare function NativeSearchBar({ value, onChange, onSubmit, placeholder, placeholderTextColor, onVoicePress, showCancel, cancelLabel, className, testID, }: NativeSearchBarProps):
|
|
469
|
+
declare function NativeSearchBar({ value, onChange, onSubmit, placeholder, placeholderTextColor, onVoicePress, showCancel, cancelLabel, className, testID, }: NativeSearchBarProps): react.JSX.Element;
|
|
470
470
|
|
|
471
471
|
interface NativeRefreshControlProps {
|
|
472
472
|
refreshing: boolean;
|
|
@@ -483,7 +483,7 @@ interface NativeRefreshControlProps {
|
|
|
483
483
|
progressBackgroundColor?: string;
|
|
484
484
|
testID?: string;
|
|
485
485
|
}
|
|
486
|
-
declare function NativeRefreshControl(props: NativeRefreshControlProps):
|
|
486
|
+
declare function NativeRefreshControl(props: NativeRefreshControlProps): react.JSX.Element | null;
|
|
487
487
|
|
|
488
488
|
declare const badgeVariants: (props?: ({
|
|
489
489
|
variant?: "default" | "secondary" | "outline" | "destructive" | "success" | "info" | "warning" | "muted" | null | undefined;
|
|
@@ -498,7 +498,7 @@ interface NativeBadgeProps extends VariantProps<typeof badgeVariants> {
|
|
|
498
498
|
accessibilityLabel?: string;
|
|
499
499
|
testID?: string;
|
|
500
500
|
}
|
|
501
|
-
declare function NativeBadge({ className, textClassName, variant, children, ...props }: NativeBadgeProps):
|
|
501
|
+
declare function NativeBadge({ className, textClassName, variant, children, ...props }: NativeBadgeProps): react.JSX.Element;
|
|
502
502
|
|
|
503
503
|
interface NativeInputProps extends TextInputProps {
|
|
504
504
|
className?: string;
|
|
@@ -506,12 +506,12 @@ interface NativeInputProps extends TextInputProps {
|
|
|
506
506
|
label?: string;
|
|
507
507
|
error?: string;
|
|
508
508
|
}
|
|
509
|
-
declare function NativeInput({ className, inputClassName, label, error, editable, placeholderTextColor, ...props }: NativeInputProps):
|
|
509
|
+
declare function NativeInput({ className, inputClassName, label, error, editable, placeholderTextColor, ...props }: NativeInputProps): react.JSX.Element;
|
|
510
510
|
|
|
511
511
|
interface NativeSeparatorProps extends ViewProps {
|
|
512
512
|
orientation?: "horizontal" | "vertical";
|
|
513
513
|
}
|
|
514
|
-
declare function NativeSeparator({ className, orientation, ...props }: NativeSeparatorProps):
|
|
514
|
+
declare function NativeSeparator({ className, orientation, ...props }: NativeSeparatorProps): react.JSX.Element;
|
|
515
515
|
|
|
516
516
|
interface NativeSkeletonProps {
|
|
517
517
|
className?: string;
|
|
@@ -526,7 +526,7 @@ interface NativeSkeletonProps {
|
|
|
526
526
|
circle?: boolean;
|
|
527
527
|
testID?: string;
|
|
528
528
|
}
|
|
529
|
-
declare function NativeSkeleton({ className, width, height, size, circle, ...props }: NativeSkeletonProps):
|
|
529
|
+
declare function NativeSkeleton({ className, width, height, size, circle, ...props }: NativeSkeletonProps): react.JSX.Element;
|
|
530
530
|
|
|
531
531
|
declare const alertVariants: (props?: ({
|
|
532
532
|
variant?: "default" | "destructive" | "success" | "info" | "warning" | null | undefined;
|
|
@@ -542,19 +542,19 @@ interface NativeAlertProps extends VariantProps<typeof alertVariants> {
|
|
|
542
542
|
children?: React.ReactNode;
|
|
543
543
|
testID?: string;
|
|
544
544
|
}
|
|
545
|
-
declare function NativeAlert({ className, variant, children, ...props }: NativeAlertProps):
|
|
545
|
+
declare function NativeAlert({ className, variant, children, ...props }: NativeAlertProps): react.JSX.Element;
|
|
546
546
|
interface NativeAlertTitleProps {
|
|
547
547
|
className?: string;
|
|
548
548
|
children?: React.ReactNode;
|
|
549
549
|
variant?: VariantProps<typeof alertTitleTextVariants>["variant"];
|
|
550
550
|
}
|
|
551
|
-
declare function NativeAlertTitle({ className, variant, children, }: NativeAlertTitleProps):
|
|
551
|
+
declare function NativeAlertTitle({ className, variant, children, }: NativeAlertTitleProps): react.JSX.Element;
|
|
552
552
|
interface NativeAlertDescriptionProps {
|
|
553
553
|
className?: string;
|
|
554
554
|
children?: React.ReactNode;
|
|
555
555
|
variant?: VariantProps<typeof alertDescriptionTextVariants>["variant"];
|
|
556
556
|
}
|
|
557
|
-
declare function NativeAlertDescription({ className, variant, children, }: NativeAlertDescriptionProps):
|
|
557
|
+
declare function NativeAlertDescription({ className, variant, children, }: NativeAlertDescriptionProps): react.JSX.Element;
|
|
558
558
|
|
|
559
559
|
interface NativeAvatarProps {
|
|
560
560
|
className?: string;
|
|
@@ -568,7 +568,7 @@ interface NativeAvatarProps {
|
|
|
568
568
|
size?: number;
|
|
569
569
|
testID?: string;
|
|
570
570
|
}
|
|
571
|
-
declare function NativeAvatar({ className, src, alt, fallback, size, ...props }: NativeAvatarProps):
|
|
571
|
+
declare function NativeAvatar({ className, src, alt, fallback, size, ...props }: NativeAvatarProps): react.JSX.Element;
|
|
572
572
|
|
|
573
573
|
interface NativeProgressProps {
|
|
574
574
|
className?: string;
|
|
@@ -580,7 +580,7 @@ interface NativeProgressProps {
|
|
|
580
580
|
indicatorClassName?: string;
|
|
581
581
|
testID?: string;
|
|
582
582
|
}
|
|
583
|
-
declare function NativeProgress({ className, value, trackClassName, indicatorClassName, ...props }: NativeProgressProps):
|
|
583
|
+
declare function NativeProgress({ className, value, trackClassName, indicatorClassName, ...props }: NativeProgressProps): react.JSX.Element;
|
|
584
584
|
|
|
585
585
|
interface NativeCheckboxProps {
|
|
586
586
|
className?: string;
|
|
@@ -590,70 +590,76 @@ interface NativeCheckboxProps {
|
|
|
590
590
|
disabled?: boolean;
|
|
591
591
|
testID?: string;
|
|
592
592
|
}
|
|
593
|
-
declare function NativeCheckbox({ className, checked: controlledChecked, defaultChecked, onCheckedChange, disabled, ...props }: NativeCheckboxProps):
|
|
593
|
+
declare function NativeCheckbox({ className, checked: controlledChecked, defaultChecked, onCheckedChange, disabled, ...props }: NativeCheckboxProps): react.JSX.Element;
|
|
594
594
|
|
|
595
595
|
interface NativeDialogProps {
|
|
596
596
|
open?: boolean;
|
|
597
597
|
onOpenChange?: (open: boolean) => void;
|
|
598
598
|
children: React.ReactNode;
|
|
599
599
|
}
|
|
600
|
-
declare function NativeDialog({ open, onOpenChange, children }: NativeDialogProps):
|
|
600
|
+
declare function NativeDialog({ open, onOpenChange, children }: NativeDialogProps): react.JSX.Element;
|
|
601
601
|
interface NativeDialogContentProps {
|
|
602
602
|
className?: string;
|
|
603
603
|
children: React.ReactNode;
|
|
604
604
|
testID?: string;
|
|
605
605
|
}
|
|
606
|
-
declare function NativeDialogContent({ className, children, ...props }: NativeDialogContentProps):
|
|
606
|
+
declare function NativeDialogContent({ className, children, ...props }: NativeDialogContentProps): react.JSX.Element;
|
|
607
607
|
interface NativeDialogHeaderProps {
|
|
608
608
|
className?: string;
|
|
609
609
|
children: React.ReactNode;
|
|
610
610
|
}
|
|
611
|
-
declare function NativeDialogHeader({ className, children, }: NativeDialogHeaderProps):
|
|
611
|
+
declare function NativeDialogHeader({ className, children, }: NativeDialogHeaderProps): react.JSX.Element;
|
|
612
612
|
interface NativeDialogTitleProps {
|
|
613
613
|
className?: string;
|
|
614
614
|
children: React.ReactNode;
|
|
615
615
|
}
|
|
616
|
-
declare function NativeDialogTitle({ className, children, }: NativeDialogTitleProps):
|
|
616
|
+
declare function NativeDialogTitle({ className, children, }: NativeDialogTitleProps): react.JSX.Element;
|
|
617
617
|
interface NativeDialogDescriptionProps {
|
|
618
618
|
className?: string;
|
|
619
619
|
children: React.ReactNode;
|
|
620
620
|
}
|
|
621
|
-
declare function NativeDialogDescription({ className, children, }: NativeDialogDescriptionProps):
|
|
621
|
+
declare function NativeDialogDescription({ className, children, }: NativeDialogDescriptionProps): react.JSX.Element;
|
|
622
622
|
interface NativeDialogFooterProps {
|
|
623
623
|
className?: string;
|
|
624
624
|
children: React.ReactNode;
|
|
625
625
|
}
|
|
626
|
-
declare function NativeDialogFooter({ className, children, }: NativeDialogFooterProps):
|
|
626
|
+
declare function NativeDialogFooter({ className, children, }: NativeDialogFooterProps): react.JSX.Element;
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* DropdownMenu — contextual list anchored to a trigger.
|
|
630
|
+
*
|
|
631
|
+
* @stability Stable
|
|
632
|
+
*/
|
|
627
633
|
|
|
628
634
|
interface NativeDropdownMenuProps {
|
|
629
|
-
children:
|
|
635
|
+
children: react__default.ReactNode;
|
|
630
636
|
}
|
|
631
|
-
declare function NativeDropdownMenu({ children }: NativeDropdownMenuProps):
|
|
637
|
+
declare function NativeDropdownMenu({ children }: NativeDropdownMenuProps): react__default.JSX.Element;
|
|
632
638
|
interface NativeDropdownMenuTriggerProps {
|
|
633
639
|
className?: string;
|
|
634
|
-
children:
|
|
640
|
+
children: react__default.ReactNode;
|
|
635
641
|
testID?: string;
|
|
636
642
|
}
|
|
637
|
-
declare function NativeDropdownMenuTrigger({ className, children, ...props }: NativeDropdownMenuTriggerProps):
|
|
643
|
+
declare function NativeDropdownMenuTrigger({ className, children, ...props }: NativeDropdownMenuTriggerProps): react__default.JSX.Element;
|
|
638
644
|
interface NativeDropdownMenuContentProps {
|
|
639
645
|
className?: string;
|
|
640
|
-
children:
|
|
646
|
+
children: react__default.ReactNode;
|
|
641
647
|
}
|
|
642
|
-
declare function NativeDropdownMenuContent({ className, children, }: NativeDropdownMenuContentProps):
|
|
648
|
+
declare function NativeDropdownMenuContent({ className, children, }: NativeDropdownMenuContentProps): react__default.JSX.Element | null;
|
|
643
649
|
interface NativeDropdownMenuItemProps {
|
|
644
650
|
className?: string;
|
|
645
|
-
children:
|
|
651
|
+
children: react__default.ReactNode;
|
|
646
652
|
onPress?: () => void;
|
|
647
653
|
disabled?: boolean;
|
|
648
654
|
testID?: string;
|
|
649
655
|
}
|
|
650
|
-
declare function NativeDropdownMenuItem({ className, children, onPress, disabled, ...props }: NativeDropdownMenuItemProps):
|
|
656
|
+
declare function NativeDropdownMenuItem({ className, children, onPress, disabled, ...props }: NativeDropdownMenuItemProps): react__default.JSX.Element;
|
|
651
657
|
|
|
652
658
|
interface NativeLabelProps extends TextProps {
|
|
653
659
|
children: React.ReactNode;
|
|
654
660
|
disabled?: boolean;
|
|
655
661
|
}
|
|
656
|
-
declare function NativeLabel({ className, children, disabled, ...props }: NativeLabelProps):
|
|
662
|
+
declare function NativeLabel({ className, children, disabled, ...props }: NativeLabelProps): react.JSX.Element;
|
|
657
663
|
|
|
658
664
|
interface NativeRadioGroupProps {
|
|
659
665
|
className?: string;
|
|
@@ -663,14 +669,14 @@ interface NativeRadioGroupProps {
|
|
|
663
669
|
children: React.ReactNode;
|
|
664
670
|
testID?: string;
|
|
665
671
|
}
|
|
666
|
-
declare function NativeRadioGroup({ className, value: controlledValue, defaultValue, onValueChange: controlledOnValueChange, children, ...props }: NativeRadioGroupProps):
|
|
672
|
+
declare function NativeRadioGroup({ className, value: controlledValue, defaultValue, onValueChange: controlledOnValueChange, children, ...props }: NativeRadioGroupProps): react.JSX.Element;
|
|
667
673
|
interface NativeRadioGroupItemProps {
|
|
668
674
|
className?: string;
|
|
669
675
|
value: string;
|
|
670
676
|
disabled?: boolean;
|
|
671
677
|
testID?: string;
|
|
672
678
|
}
|
|
673
|
-
declare function NativeRadioGroupItem({ className, value, disabled, ...props }: NativeRadioGroupItemProps):
|
|
679
|
+
declare function NativeRadioGroupItem({ className, value, disabled, ...props }: NativeRadioGroupItemProps): react.JSX.Element;
|
|
674
680
|
|
|
675
681
|
interface NativeSelectProps {
|
|
676
682
|
value?: string;
|
|
@@ -678,7 +684,7 @@ interface NativeSelectProps {
|
|
|
678
684
|
onValueChange?: (value: string) => void;
|
|
679
685
|
children: React.ReactNode;
|
|
680
686
|
}
|
|
681
|
-
declare function NativeSelect({ value: controlledValue, defaultValue, onValueChange: controlledOnValueChange, children, }: NativeSelectProps):
|
|
687
|
+
declare function NativeSelect({ value: controlledValue, defaultValue, onValueChange: controlledOnValueChange, children, }: NativeSelectProps): react.JSX.Element;
|
|
682
688
|
interface NativeSelectTriggerProps {
|
|
683
689
|
className?: string;
|
|
684
690
|
children?: React.ReactNode;
|
|
@@ -686,26 +692,26 @@ interface NativeSelectTriggerProps {
|
|
|
686
692
|
disabled?: boolean;
|
|
687
693
|
testID?: string;
|
|
688
694
|
}
|
|
689
|
-
declare function NativeSelectTrigger({ className, children, placeholder, disabled, ...props }: NativeSelectTriggerProps):
|
|
695
|
+
declare function NativeSelectTrigger({ className, children, placeholder, disabled, ...props }: NativeSelectTriggerProps): react.JSX.Element;
|
|
690
696
|
interface NativeSelectContentProps {
|
|
691
697
|
className?: string;
|
|
692
698
|
children: React.ReactNode;
|
|
693
699
|
}
|
|
694
|
-
declare function NativeSelectContent({ className, children, }: NativeSelectContentProps):
|
|
700
|
+
declare function NativeSelectContent({ className, children, }: NativeSelectContentProps): react.JSX.Element | null;
|
|
695
701
|
interface NativeSelectItemProps {
|
|
696
702
|
className?: string;
|
|
697
703
|
value: string;
|
|
698
704
|
children: React.ReactNode;
|
|
699
705
|
testID?: string;
|
|
700
706
|
}
|
|
701
|
-
declare function NativeSelectItem({ className, value, children, ...props }: NativeSelectItemProps):
|
|
707
|
+
declare function NativeSelectItem({ className, value, children, ...props }: NativeSelectItemProps): react.JSX.Element;
|
|
702
708
|
|
|
703
709
|
interface NativeSwitchProps extends SwitchProps {
|
|
704
710
|
className?: string;
|
|
705
711
|
checked?: boolean;
|
|
706
712
|
onCheckedChange?: (checked: boolean) => void;
|
|
707
713
|
}
|
|
708
|
-
declare function NativeSwitch({ className, checked, onCheckedChange, disabled, ...props }: NativeSwitchProps):
|
|
714
|
+
declare function NativeSwitch({ className, checked, onCheckedChange, disabled, ...props }: NativeSwitchProps): react.JSX.Element;
|
|
709
715
|
|
|
710
716
|
interface NativeTabsProps {
|
|
711
717
|
className?: string;
|
|
@@ -715,12 +721,12 @@ interface NativeTabsProps {
|
|
|
715
721
|
children: React.ReactNode;
|
|
716
722
|
testID?: string;
|
|
717
723
|
}
|
|
718
|
-
declare function NativeTabs({ className, defaultValue, value: controlledValue, onValueChange: controlledOnValueChange, children, ...props }: NativeTabsProps):
|
|
724
|
+
declare function NativeTabs({ className, defaultValue, value: controlledValue, onValueChange: controlledOnValueChange, children, ...props }: NativeTabsProps): react.JSX.Element;
|
|
719
725
|
interface NativeTabsListProps {
|
|
720
726
|
className?: string;
|
|
721
727
|
children: React.ReactNode;
|
|
722
728
|
}
|
|
723
|
-
declare function NativeTabsList({ className, children }: NativeTabsListProps):
|
|
729
|
+
declare function NativeTabsList({ className, children }: NativeTabsListProps): react.JSX.Element;
|
|
724
730
|
interface NativeTabsTriggerProps {
|
|
725
731
|
className?: string;
|
|
726
732
|
value: string;
|
|
@@ -728,13 +734,13 @@ interface NativeTabsTriggerProps {
|
|
|
728
734
|
disabled?: boolean;
|
|
729
735
|
testID?: string;
|
|
730
736
|
}
|
|
731
|
-
declare function NativeTabsTrigger({ className, value, children, disabled, ...props }: NativeTabsTriggerProps):
|
|
737
|
+
declare function NativeTabsTrigger({ className, value, children, disabled, ...props }: NativeTabsTriggerProps): react.JSX.Element;
|
|
732
738
|
interface NativeTabsContentProps {
|
|
733
739
|
className?: string;
|
|
734
740
|
value: string;
|
|
735
741
|
children: React.ReactNode;
|
|
736
742
|
}
|
|
737
|
-
declare function NativeTabsContent({ className, value, children, }: NativeTabsContentProps):
|
|
743
|
+
declare function NativeTabsContent({ className, value, children, }: NativeTabsContentProps): react.JSX.Element | null;
|
|
738
744
|
|
|
739
745
|
interface NativeTextareaProps extends TextInputProps {
|
|
740
746
|
className?: string;
|
|
@@ -743,7 +749,7 @@ interface NativeTextareaProps extends TextInputProps {
|
|
|
743
749
|
error?: string;
|
|
744
750
|
rows?: number;
|
|
745
751
|
}
|
|
746
|
-
declare function NativeTextarea({ className, inputClassName, label, error, editable, rows, placeholderTextColor, ...props }: NativeTextareaProps):
|
|
752
|
+
declare function NativeTextarea({ className, inputClassName, label, error, editable, rows, placeholderTextColor, ...props }: NativeTextareaProps): react.JSX.Element;
|
|
747
753
|
|
|
748
754
|
declare const toggleVariants: (props?: ({
|
|
749
755
|
variant?: "default" | "outline" | null | undefined;
|
|
@@ -758,23 +764,23 @@ interface NativeToggleProps extends VariantProps<typeof toggleVariants> {
|
|
|
758
764
|
children: React.ReactNode;
|
|
759
765
|
testID?: string;
|
|
760
766
|
}
|
|
761
|
-
declare function NativeToggle({ className, variant, size, pressed: controlledPressed, defaultPressed, onPressedChange, disabled, children, ...props }: NativeToggleProps):
|
|
767
|
+
declare function NativeToggle({ className, variant, size, pressed: controlledPressed, defaultPressed, onPressedChange, disabled, children, ...props }: NativeToggleProps): react.JSX.Element;
|
|
762
768
|
|
|
763
769
|
interface NativeTooltipProps {
|
|
764
770
|
children: React.ReactNode;
|
|
765
771
|
}
|
|
766
|
-
declare function NativeTooltip({ children }: NativeTooltipProps):
|
|
772
|
+
declare function NativeTooltip({ children }: NativeTooltipProps): react.JSX.Element;
|
|
767
773
|
interface NativeTooltipTriggerProps {
|
|
768
774
|
className?: string;
|
|
769
775
|
children: React.ReactNode;
|
|
770
776
|
testID?: string;
|
|
771
777
|
}
|
|
772
|
-
declare function NativeTooltipTrigger({ className, children, ...props }: NativeTooltipTriggerProps):
|
|
778
|
+
declare function NativeTooltipTrigger({ className, children, ...props }: NativeTooltipTriggerProps): react.JSX.Element;
|
|
773
779
|
interface NativeTooltipContentProps {
|
|
774
780
|
className?: string;
|
|
775
781
|
children: React.ReactNode;
|
|
776
782
|
}
|
|
777
|
-
declare function NativeTooltipContent({ className, children, }: NativeTooltipContentProps):
|
|
783
|
+
declare function NativeTooltipContent({ className, children, }: NativeTooltipContentProps): react.JSX.Element | null;
|
|
778
784
|
|
|
779
785
|
/**
|
|
780
786
|
* Shared flexbox alignment vocabulary for the row/column layout primitives
|
|
@@ -832,7 +838,7 @@ interface StackProps extends ViewProps {
|
|
|
832
838
|
* Render a vertical (`flex-col`) `View` with token-driven `gap` + alignment.
|
|
833
839
|
* @stability Beta
|
|
834
840
|
*/
|
|
835
|
-
declare function Stack({ gap, align, justify, className, children, ...props }: StackProps):
|
|
841
|
+
declare function Stack({ gap, align, justify, className, children, ...props }: StackProps): react.JSX.Element;
|
|
836
842
|
|
|
837
843
|
interface InlineProps extends ViewProps {
|
|
838
844
|
/** Horizontal spacing between children — resolved from the spacing token. */
|
|
@@ -848,7 +854,7 @@ interface InlineProps extends ViewProps {
|
|
|
848
854
|
* Render a horizontal (`flex-row`) `View` with token-driven `gap`, alignment, and optional wrap.
|
|
849
855
|
* @stability Beta
|
|
850
856
|
*/
|
|
851
|
-
declare function Inline({ gap, align, justify, wrap, className, children, ...props }: InlineProps):
|
|
857
|
+
declare function Inline({ gap, align, justify, wrap, className, children, ...props }: InlineProps): react.JSX.Element;
|
|
852
858
|
|
|
853
859
|
/**
|
|
854
860
|
* Token-named surfaces — map to the SEMANTIC Genesis surface tokens (never a
|
|
@@ -893,7 +899,7 @@ interface BoxProps extends ViewProps {
|
|
|
893
899
|
* Render a `View` whose padding/margin/background all resolve from tokens.
|
|
894
900
|
* @stability Beta
|
|
895
901
|
*/
|
|
896
|
-
declare function Box({ p, px, py, pt, pb, pl, pr, m, mx, my, mt, mb, ml, mr, bg, className, children, ...props }: BoxProps):
|
|
902
|
+
declare function Box({ p, px, py, pt, pb, pl, pr, m, mx, my, mt, mb, ml, mr, bg, className, children, ...props }: BoxProps): react.JSX.Element;
|
|
897
903
|
|
|
898
904
|
interface GridProps extends ViewProps {
|
|
899
905
|
/** Number of equal-width columns. Defaults to 2. Floored to >= 1. */
|
|
@@ -905,6 +911,6 @@ interface GridProps extends ViewProps {
|
|
|
905
911
|
* Render an equal-column grid by chunking children into `flex-1` rows with a token gutter.
|
|
906
912
|
* @stability Beta
|
|
907
913
|
*/
|
|
908
|
-
declare function Grid({ columns, gap, className, children, ...props }: GridProps):
|
|
914
|
+
declare function Grid({ columns, gap, className, children, ...props }: GridProps): react.JSX.Element;
|
|
909
915
|
|
|
910
916
|
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 };
|
package/dist/data/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as React from 'react';
|
|
1
|
+
import * as react from 'react';
|
|
3
2
|
import { ReactNode } from 'react';
|
|
4
3
|
import { ResourceFormFieldDef, BaseRecord } from '@marktiderman/genesis-core';
|
|
5
4
|
import { Control, UseFormReturn } from 'react-hook-form';
|
|
@@ -7,11 +6,11 @@ import { UseResourceOptions } from '@marktiderman/genesis-core/hooks';
|
|
|
7
6
|
|
|
8
7
|
interface NativeEmptyStateProps {
|
|
9
8
|
message?: string;
|
|
10
|
-
action?:
|
|
9
|
+
action?: react.ReactNode;
|
|
11
10
|
hasFilters?: boolean;
|
|
12
11
|
onClearFilters?: () => void;
|
|
13
12
|
}
|
|
14
|
-
declare function NativeEmptyState({ message, action, hasFilters, onClearFilters, }: NativeEmptyStateProps):
|
|
13
|
+
declare function NativeEmptyState({ message, action, hasFilters, onClearFilters, }: NativeEmptyStateProps): react.JSX.Element;
|
|
15
14
|
|
|
16
15
|
interface NativeDataFiltersProps {
|
|
17
16
|
search: string;
|
|
@@ -31,7 +30,7 @@ interface NativeDataFiltersProps {
|
|
|
31
30
|
onChange: (sort: string) => void;
|
|
32
31
|
};
|
|
33
32
|
}
|
|
34
|
-
declare function NativeDataFilters({ search, onSearchChange, searchPlaceholder, statusChips, sort, }: NativeDataFiltersProps):
|
|
33
|
+
declare function NativeDataFilters({ search, onSearchChange, searchPlaceholder, statusChips, sort, }: NativeDataFiltersProps): react.JSX.Element;
|
|
35
34
|
|
|
36
35
|
interface NativeDataPageShellProps {
|
|
37
36
|
title: string;
|
|
@@ -46,7 +45,7 @@ interface NativeDataPageShellProps {
|
|
|
46
45
|
emptyState?: ReactNode;
|
|
47
46
|
children: ReactNode;
|
|
48
47
|
}
|
|
49
|
-
declare function NativeDataPageShell({ title, subtitle, headerRight, isLoading, isEmpty, hasError, errorMessage, onRetry, emptyMessage, emptyState, children, }: NativeDataPageShellProps):
|
|
48
|
+
declare function NativeDataPageShell({ title, subtitle, headerRight, isLoading, isEmpty, hasError, errorMessage, onRetry, emptyMessage, emptyState, children, }: NativeDataPageShellProps): react.JSX.Element;
|
|
50
49
|
|
|
51
50
|
interface NativeDetailField<T = Record<string, unknown>> {
|
|
52
51
|
key: Extract<keyof T, string>;
|
|
@@ -61,7 +60,7 @@ interface NativeDetailPanelProps<T = Record<string, unknown>> {
|
|
|
61
60
|
onDelete?: (item: T) => void;
|
|
62
61
|
children?: ReactNode;
|
|
63
62
|
}
|
|
64
|
-
declare function NativeDetailPanel<T extends Record<string, unknown>>({ item, titleField, fields, onEdit, onDelete, children, }: NativeDetailPanelProps<T>):
|
|
63
|
+
declare function NativeDetailPanel<T extends Record<string, unknown>>({ item, titleField, fields, onEdit, onDelete, children, }: NativeDetailPanelProps<T>): react.JSX.Element;
|
|
65
64
|
|
|
66
65
|
interface NativeResourceFormFieldRendererProps {
|
|
67
66
|
field: ResourceFormFieldDef;
|
|
@@ -70,7 +69,7 @@ interface NativeResourceFormFieldRendererProps {
|
|
|
70
69
|
autoFocus?: boolean;
|
|
71
70
|
watchedValues?: Record<string, unknown>;
|
|
72
71
|
}
|
|
73
|
-
declare function NativeResourceFormFieldRenderer({ field, control, action, autoFocus, watchedValues, }: NativeResourceFormFieldRendererProps):
|
|
72
|
+
declare function NativeResourceFormFieldRenderer({ field, control, action, autoFocus, watchedValues, }: NativeResourceFormFieldRendererProps): react.JSX.Element | null;
|
|
74
73
|
|
|
75
74
|
interface NativeResourceFormProps {
|
|
76
75
|
resource: string;
|
|
@@ -84,7 +83,7 @@ interface NativeResourceFormProps {
|
|
|
84
83
|
onError?: (error: Error) => void;
|
|
85
84
|
renderForm?: (form: UseFormReturn<Record<string, unknown>>, fields: ResourceFormFieldDef[]) => ReactNode;
|
|
86
85
|
}
|
|
87
|
-
declare function NativeResourceForm({ resource, action, fields, item, listData, title, layout, onSuccess, onError, renderForm, }: NativeResourceFormProps):
|
|
86
|
+
declare function NativeResourceForm({ resource, action, fields, item, listData, title, layout, onSuccess, onError, renderForm, }: NativeResourceFormProps): react.JSX.Element;
|
|
88
87
|
|
|
89
88
|
interface NativeCardFieldDef<T> {
|
|
90
89
|
key: Extract<keyof T, string>;
|
|
@@ -112,6 +111,6 @@ interface NativeResourcePageProps<T extends BaseRecord = BaseRecord> {
|
|
|
112
111
|
headerRight?: ReactNode;
|
|
113
112
|
emptyState?: ReactNode;
|
|
114
113
|
}
|
|
115
|
-
declare function NativeResourcePage<T extends BaseRecord = BaseRecord>({ resource, resourceOptions, title, subtitle, cardFields, renderItem, searchFields, searchPlaceholder, statusFilter, onItemPress, titleField, onCreatePress, createLabel, headerRight, emptyState, }: NativeResourcePageProps<T>):
|
|
114
|
+
declare function NativeResourcePage<T extends BaseRecord = BaseRecord>({ resource, resourceOptions, title, subtitle, cardFields, renderItem, searchFields, searchPlaceholder, statusFilter, onItemPress, titleField, onCreatePress, createLabel, headerRight, emptyState, }: NativeResourcePageProps<T>): react.JSX.Element;
|
|
116
115
|
|
|
117
116
|
export { type NativeCardFieldDef, NativeDataFilters, type NativeDataFiltersProps, NativeDataPageShell, type NativeDataPageShellProps, type NativeDetailField, NativeDetailPanel, type NativeDetailPanelProps, NativeEmptyState, type NativeEmptyStateProps, NativeResourceForm, NativeResourceFormFieldRenderer, type NativeResourceFormFieldRendererProps, type NativeResourceFormProps, NativeResourcePage, type NativeResourcePageProps };
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { BrandExtensions } from '@marktiderman/genesis-design-system';
|
|
4
4
|
|
|
@@ -20,7 +20,7 @@ interface BrandExtensionsProviderProps {
|
|
|
20
20
|
value?: BrandExtensionsValue;
|
|
21
21
|
children: ReactNode;
|
|
22
22
|
}
|
|
23
|
-
declare function BrandExtensionsProvider({ value, children, }: BrandExtensionsProviderProps):
|
|
23
|
+
declare function BrandExtensionsProvider({ value, children, }: BrandExtensionsProviderProps): react.FunctionComponentElement<react.ProviderProps<Partial<BrandExtensions> | undefined>>;
|
|
24
24
|
/**
|
|
25
25
|
* Read an extension scale by key. Returns `undefined` when the provider
|
|
26
26
|
* isn't mounted OR when the key isn't declared on the brand. The return
|
package/dist/index.d.ts
CHANGED
|
@@ -2,10 +2,9 @@ export { Box, BoxBackground, BoxProps, FlexAlign, FlexJustify, Grid, GridProps,
|
|
|
2
2
|
export { BrandExtensionsProvider, BrandExtensionsProviderProps, BrandExtensionsValue, ThemeMode, useGenesisExtension, useReducedMotion, useThemeMode } from './hooks/index.js';
|
|
3
3
|
export { AuthBranding, AuthBrandingProps, AuthForm, AuthFormProps, AuthFormValues, ForgotPasswordLink, NavBarSaveButton, NavBarSaveButtonProps, NavBarSearchBar, NavBarSearchBarProps, NavBarTitle, NavBarTitleProps, NotificationItem, NotificationsPage, NotificationsPageProps, SafeAreaEdge, ScreenContainer, ScreenContainerProps, ScreenHeaderProps, ScrollEdgeBehavior, SettingsPage, SettingsPageProps, SettingsPageRow, SettingsPageSection, SettingsSubPage, SettingsSubPageProps, SocialAuthProvider, SocialAuthRow, SocialAuthRowProps, composeHeaderOptions, confirmDiscardChanges, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions } from './layouts/index.js';
|
|
4
4
|
export { cn } from './utils.js';
|
|
5
|
-
import 'react
|
|
5
|
+
import 'react';
|
|
6
6
|
import 'class-variance-authority/types';
|
|
7
7
|
import 'class-variance-authority';
|
|
8
8
|
import 'react-native';
|
|
9
|
-
import 'react';
|
|
10
9
|
import '@marktiderman/genesis-design-system';
|
|
11
10
|
import 'clsx';
|
package/dist/layouts/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
|
|
4
4
|
type SafeAreaEdge = "top" | "bottom" | "left" | "right";
|
|
@@ -69,7 +69,7 @@ interface ScreenHeaderProps {
|
|
|
69
69
|
* return <><Stack.Screen options={opts} /><ScreenContainer>...</ScreenContainer></>;
|
|
70
70
|
*/
|
|
71
71
|
declare function composeHeaderOptions(props: ScreenHeaderProps): Record<string, unknown>;
|
|
72
|
-
declare function ScreenContainer({ children, scroll, safeAreaEdges, statusBar, themeMode, className, contentClassName, keyboardShouldPersistTaps, testID, }: ScreenContainerProps):
|
|
72
|
+
declare function ScreenContainer({ children, scroll, safeAreaEdges, statusBar, themeMode, className, contentClassName, keyboardShouldPersistTaps, testID, }: ScreenContainerProps): react.JSX.Element;
|
|
73
73
|
|
|
74
74
|
interface NavBarSaveButtonProps {
|
|
75
75
|
/** Press handler. Disabled when not provided OR when `disabled`/`loading`. */
|
|
@@ -85,7 +85,7 @@ interface NavBarSaveButtonProps {
|
|
|
85
85
|
className?: string;
|
|
86
86
|
testID?: string;
|
|
87
87
|
}
|
|
88
|
-
declare function NavBarSaveButton({ onPress, label, disabled, loading, destructive, className, testID, }: NavBarSaveButtonProps):
|
|
88
|
+
declare function NavBarSaveButton({ onPress, label, disabled, loading, destructive, className, testID, }: NavBarSaveButtonProps): react.JSX.Element;
|
|
89
89
|
interface NavBarTitleProps {
|
|
90
90
|
/** Title text. */
|
|
91
91
|
title: string;
|
|
@@ -96,7 +96,7 @@ interface NavBarTitleProps {
|
|
|
96
96
|
className?: string;
|
|
97
97
|
testID?: string;
|
|
98
98
|
}
|
|
99
|
-
declare function NavBarTitle({ title, subtitle, onPress, className, testID, }: NavBarTitleProps):
|
|
99
|
+
declare function NavBarTitle({ title, subtitle, onPress, className, testID, }: NavBarTitleProps): react.JSX.Element;
|
|
100
100
|
interface NavBarSearchBarProps {
|
|
101
101
|
value: string;
|
|
102
102
|
onChangeText: (next: string) => void;
|
|
@@ -113,7 +113,7 @@ interface NavBarSearchBarProps {
|
|
|
113
113
|
* screen. For a sticky search-below-the-header pattern, prefer the
|
|
114
114
|
* standalone <NativeSearchBar> primitive.
|
|
115
115
|
*/
|
|
116
|
-
declare function NavBarSearchBar({ value, onChangeText, placeholder, onSubmit, clearable, className, testID, }: NavBarSearchBarProps):
|
|
116
|
+
declare function NavBarSearchBar({ value, onChangeText, placeholder, onSubmit, clearable, className, testID, }: NavBarSearchBarProps): react.JSX.Element;
|
|
117
117
|
|
|
118
118
|
interface SettingsPageRow {
|
|
119
119
|
/** Stable id for keying. */
|
|
@@ -173,7 +173,7 @@ interface SettingsPageProps extends ScreenHeaderProps {
|
|
|
173
173
|
declare function getSettingsPageStackOptions(props: ScreenHeaderProps & {
|
|
174
174
|
headerTitle?: string;
|
|
175
175
|
}): Record<string, unknown>;
|
|
176
|
-
declare function SettingsPage({ sections, dangerousActions, className, testID, children, }: SettingsPageProps):
|
|
176
|
+
declare function SettingsPage({ sections, dangerousActions, className, testID, children, }: SettingsPageProps): react.JSX.Element;
|
|
177
177
|
|
|
178
178
|
interface SettingsSubPageProps extends ScreenHeaderProps {
|
|
179
179
|
/** Form / detail body content. Pass any node tree. */
|
|
@@ -226,7 +226,7 @@ declare function getSettingsSubPageStackOptions(props: {
|
|
|
226
226
|
headerRight?: ScreenHeaderProps["headerRight"];
|
|
227
227
|
headerOptions?: ScreenHeaderProps["headerOptions"];
|
|
228
228
|
}): Record<string, unknown>;
|
|
229
|
-
declare function SettingsSubPage({ children, onConfirmLeave, className, testID, }: SettingsSubPageProps):
|
|
229
|
+
declare function SettingsSubPage({ children, onConfirmLeave, className, testID, }: SettingsSubPageProps): react.JSX.Element;
|
|
230
230
|
|
|
231
231
|
interface NotificationItem {
|
|
232
232
|
/** Stable id. */
|
|
@@ -280,7 +280,7 @@ declare function getNotificationsPageStackOptions(props: {
|
|
|
280
280
|
headerRight?: ScreenHeaderProps["headerRight"];
|
|
281
281
|
headerOptions?: ScreenHeaderProps["headerOptions"];
|
|
282
282
|
}): Record<string, unknown>;
|
|
283
|
-
declare function NotificationsPage({ items, refreshing, onRefresh, emptyState, emptyTitle, emptyBody, className, testID, }: NotificationsPageProps):
|
|
283
|
+
declare function NotificationsPage({ items, refreshing, onRefresh, emptyState, emptyTitle, emptyBody, className, testID, }: NotificationsPageProps): react.JSX.Element;
|
|
284
284
|
|
|
285
285
|
interface AuthBrandingProps {
|
|
286
286
|
/** Brand mark (logo node). */
|
|
@@ -293,7 +293,7 @@ interface AuthBrandingProps {
|
|
|
293
293
|
className?: string;
|
|
294
294
|
testID?: string;
|
|
295
295
|
}
|
|
296
|
-
declare function AuthBranding({ logo, headline, subhead, className, testID, }: AuthBrandingProps):
|
|
296
|
+
declare function AuthBranding({ logo, headline, subhead, className, testID, }: AuthBrandingProps): react.JSX.Element;
|
|
297
297
|
type SocialAuthProvider = {
|
|
298
298
|
/** Stable id used as React key + testID suffix. */
|
|
299
299
|
id: string;
|
|
@@ -317,7 +317,7 @@ interface SocialAuthRowProps {
|
|
|
317
317
|
className?: string;
|
|
318
318
|
testID?: string;
|
|
319
319
|
}
|
|
320
|
-
declare function SocialAuthRow({ providers, separator, className, testID, }: SocialAuthRowProps):
|
|
320
|
+
declare function SocialAuthRow({ providers, separator, className, testID, }: SocialAuthRowProps): react.JSX.Element | null;
|
|
321
321
|
interface AuthFormValues {
|
|
322
322
|
email: string;
|
|
323
323
|
/** Empty string when `mode === "magic-link"`. */
|
|
@@ -354,11 +354,11 @@ interface AuthFormProps {
|
|
|
354
354
|
className?: string;
|
|
355
355
|
testID?: string;
|
|
356
356
|
}
|
|
357
|
-
declare function AuthForm({ mode, onSubmit, validate, submitLabel, loading, errorMessage, initialEmail, belowFields, className, testID, }: AuthFormProps):
|
|
357
|
+
declare function AuthForm({ mode, onSubmit, validate, submitLabel, loading, errorMessage, initialEmail, belowFields, className, testID, }: AuthFormProps): react.JSX.Element;
|
|
358
358
|
declare function ForgotPasswordLink({ onPress, label, testID, }: {
|
|
359
359
|
onPress: () => void;
|
|
360
360
|
label?: string;
|
|
361
361
|
testID?: string;
|
|
362
|
-
}):
|
|
362
|
+
}): react.JSX.Element;
|
|
363
363
|
|
|
364
364
|
export { AuthBranding, type AuthBrandingProps, AuthForm, type AuthFormProps, type AuthFormValues, ForgotPasswordLink, NavBarSaveButton, type NavBarSaveButtonProps, NavBarSearchBar, type NavBarSearchBarProps, NavBarTitle, type NavBarTitleProps, type NotificationItem, NotificationsPage, type NotificationsPageProps, type SafeAreaEdge, ScreenContainer, type ScreenContainerProps, type ScreenHeaderProps, type ScrollEdgeBehavior, SettingsPage, type SettingsPageProps, type SettingsPageRow, type SettingsPageSection, SettingsSubPage, type SettingsSubPageProps, type SocialAuthProvider, SocialAuthRow, type SocialAuthRowProps, composeHeaderOptions, confirmDiscardChanges, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marktiderman/genesis-ui-native",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "git+https://github.com/marktiderman/genesis.git",
|
|
11
11
|
"directory": "packages/ui-native"
|
|
12
12
|
},
|
|
13
|
-
"license": "
|
|
13
|
+
"license": "MIT",
|
|
14
14
|
"publishConfig": {
|
|
15
15
|
"access": "public",
|
|
16
16
|
"provenance": false
|
|
@@ -25,6 +25,13 @@
|
|
|
25
25
|
"src",
|
|
26
26
|
"README.md"
|
|
27
27
|
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "tsup",
|
|
30
|
+
"dev": "tsup --watch",
|
|
31
|
+
"clean": "rm -rf dist",
|
|
32
|
+
"typecheck": "tsc --noEmit",
|
|
33
|
+
"test": "vitest run"
|
|
34
|
+
},
|
|
28
35
|
"exports": {
|
|
29
36
|
".": {
|
|
30
37
|
"types": "./dist/index.d.ts",
|
|
@@ -63,6 +70,8 @@
|
|
|
63
70
|
"@gorhom/bottom-sheet": ">=5.0.0",
|
|
64
71
|
"@hookform/resolvers": "^3.0.0 || ^4.0.0 || ^5.0.0",
|
|
65
72
|
"@react-native-community/datetimepicker": ">=8.0.0",
|
|
73
|
+
"@marktiderman/genesis-core": "workspace:^",
|
|
74
|
+
"@marktiderman/genesis-design-system": "workspace:^",
|
|
66
75
|
"@tanstack/react-query": "^5.0.0",
|
|
67
76
|
"clsx": "^2.0.0",
|
|
68
77
|
"expo-haptics": ">=14.0.0",
|
|
@@ -76,9 +85,7 @@
|
|
|
76
85
|
"react-native-reanimated": ">=3.0.0",
|
|
77
86
|
"react-native-safe-area-context": ">=4.0.0",
|
|
78
87
|
"tailwind-merge": "^3.0.0",
|
|
79
|
-
"zod": "^3.0.0 || ^4.0.0"
|
|
80
|
-
"@marktiderman/genesis-core": "^1.0.0",
|
|
81
|
-
"@marktiderman/genesis-design-system": "^1.1.0"
|
|
88
|
+
"zod": "^3.0.0 || ^4.0.0"
|
|
82
89
|
},
|
|
83
90
|
"peerDependenciesMeta": {
|
|
84
91
|
"react-native": {
|
|
@@ -116,12 +123,5 @@
|
|
|
116
123
|
"tsup": "^8.3.0",
|
|
117
124
|
"typescript": "^5.9.3",
|
|
118
125
|
"vitest": "^2.1.0"
|
|
119
|
-
},
|
|
120
|
-
"scripts": {
|
|
121
|
-
"build": "tsup",
|
|
122
|
-
"dev": "tsup --watch",
|
|
123
|
-
"clean": "rm -rf dist",
|
|
124
|
-
"typecheck": "tsc --noEmit",
|
|
125
|
-
"test": "vitest run"
|
|
126
126
|
}
|
|
127
|
-
}
|
|
127
|
+
}
|