@marktiderman/genesis-ui-native 3.11.0 → 3.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -0
- package/dist/{chunk-ZUR4PK77.js → chunk-47CDRP43.js} +45 -166
- package/dist/chunk-47CDRP43.js.map +1 -0
- package/dist/{chunk-SG7LYX7Z.js → chunk-BQYT6TH2.js} +14 -6
- package/dist/chunk-BQYT6TH2.js.map +1 -0
- package/dist/{chunk-EAHK7D7N.js → chunk-C2ARUGT7.js} +146 -42
- package/dist/chunk-C2ARUGT7.js.map +1 -0
- package/dist/{chunk-VEWSY4TZ.js → chunk-D4UU6KIF.js} +236 -21
- package/dist/chunk-D4UU6KIF.js.map +1 -0
- package/dist/{chunk-GGH3ZQNO.js → chunk-TUDJDIGC.js} +4 -4
- package/dist/{chunk-GGH3ZQNO.js.map → chunk-TUDJDIGC.js.map} +1 -1
- package/dist/{chunk-PMS2V46D.js → chunk-VHUUOH46.js} +2 -2
- package/dist/{chunk-PMS2V46D.js.map → chunk-VHUUOH46.js.map} +1 -1
- package/dist/{chunk-IWWXERKQ.js → chunk-X5CPLUPZ.js} +1236 -136
- package/dist/chunk-X5CPLUPZ.js.map +1 -0
- package/dist/components/index.d.ts +510 -25
- package/dist/components/index.js +5 -5
- package/dist/data/index.d.ts +167 -33
- package/dist/data/index.js +1082 -760
- package/dist/data/index.js.map +1 -1
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +1 -1
- package/dist/icons/lucide.d.ts +1 -1
- package/dist/index.d.ts +6 -3
- package/dist/index.js +7 -7
- package/dist/layouts/index.d.ts +79 -6
- package/dist/layouts/index.js +5 -5
- package/dist/{native-modules-Bkm1jHO-.d.ts → native-modules-6JnyeGR-.d.ts} +55 -1
- package/package.json +70 -4
- package/src/components/__tests__/combobox.test.tsx +20 -0
- package/src/components/__tests__/number-input.test.tsx +112 -1
- package/src/components/__tests__/parity-controls.test.tsx +366 -0
- package/src/components/__tests__/parity-display.test.tsx +295 -0
- package/src/components/__tests__/twin-props.test.tsx +114 -0
- package/src/components/badge.tsx +3 -0
- package/src/components/button-group.tsx +50 -0
- package/src/components/calendar.tsx +183 -0
- package/src/components/carousel.tsx +175 -0
- package/src/components/chart.tsx +268 -0
- package/src/components/chip-group.tsx +34 -14
- package/src/components/choice-card.tsx +56 -19
- package/src/components/combobox.tsx +6 -5
- package/src/components/empty-state.tsx +40 -0
- package/src/components/flatten-children.ts +13 -0
- package/src/components/index.ts +49 -1
- package/src/components/inline-alert.tsx +3 -1
- package/src/components/input-group.tsx +99 -0
- package/src/components/input-otp.tsx +124 -0
- package/src/components/input.tsx +40 -12
- package/src/components/list-item.tsx +20 -4
- package/src/components/number-input.tsx +45 -15
- package/src/components/radio-group.tsx +5 -0
- package/src/components/resource.tsx +227 -0
- package/src/components/settings-row.tsx +194 -0
- package/src/components/slider.tsx +3 -9
- package/src/components/sortable-list.tsx +287 -0
- package/src/components/stat-card.tsx +106 -0
- package/src/components/stepper.tsx +4 -2
- package/src/components/widget-tile.tsx +66 -0
- package/src/components/workspace-switcher.tsx +217 -0
- package/src/data/NativeCustomView.tsx +117 -0
- package/src/data/NativeFormFields.tsx +312 -0
- package/src/data/NativeRecordPeek.tsx +130 -0
- package/src/data/NativeResourceFormField.tsx +32 -0
- package/src/data/__tests__/parity-data.test.tsx +350 -0
- package/src/data/index.ts +13 -0
- package/src/layouts/__tests__/keyboard-scroll.test.tsx +58 -2
- package/src/layouts/__tests__/notifications-page.test.tsx +12 -0
- package/src/layouts/index.ts +13 -0
- package/src/layouts/keyboard.tsx +22 -2
- package/src/layouts/notifications-page.tsx +13 -35
- package/src/layouts/pages.tsx +262 -0
- package/src/native-modules.tsx +37 -0
- package/dist/chunk-EAHK7D7N.js.map +0 -1
- package/dist/chunk-IWWXERKQ.js.map +0 -1
- package/dist/chunk-SG7LYX7Z.js.map +0 -1
- package/dist/chunk-VEWSY4TZ.js.map +0 -1
- package/dist/chunk-ZUR4PK77.js.map +0 -1
|
@@ -3,12 +3,15 @@ import react__default, { Ref, ComponentRef, ReactNode, ReactElement } from 'reac
|
|
|
3
3
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
import { TextProps, Text, AccessibilityState, StyleProp, ViewStyle, View, ScrollViewProps, TextInputProps, TextInput, ViewProps, ColorValue, SwitchProps, FlatListProps } from 'react-native';
|
|
6
|
-
import { H as HapticKind,
|
|
7
|
-
export { G as GenesisDatePickerComponent, a as GenesisDatePickerProps,
|
|
6
|
+
import { H as HapticKind, t as NativeIconName, c as GenesisGlassModule } from '../native-modules-6JnyeGR-.js';
|
|
7
|
+
export { G as GenesisDatePickerComponent, a as GenesisDatePickerProps, b as GenesisFilePicker, e as GenesisIconComponent, f as GenesisIconSet, g as GenesisImageComponent, h as GenesisImageProps, i as GenesisListComponent, j as GenesisListProps, k as GenesisModules, l as GenesisModulesProvider, m as GenesisModulesProviderProps, n as GenesisNavigationModule, o as GenesisNavigationTheme, p as GenesisReanimatedModule, q as GenesisSvgModule, r as GenesisSymbolComponent, s as GenesisSymbolProps, K as KeyboardAvoidingLike, N as NATIVE_ICON_NAMES, u as NativePickedFile, S as SF_SYMBOLS, w as useGenesisModules } from '../native-modules-6JnyeGR-.js';
|
|
8
8
|
import { ComposerMode, InboxSwipeAction } from '@marktiderman/genesis-core/conversation';
|
|
9
9
|
export { ComposerMode, ComposerTone } from '@marktiderman/genesis-core/conversation';
|
|
10
10
|
import { GalleryItem, GalleryTileAspect } from '@marktiderman/genesis-core/gallery';
|
|
11
11
|
export { DEFAULT_GALLERY_RATIO, GALLERY_DEFAULTS, GalleryItem, GalleryTileAspect, JustifiedRow, JustifiedTile, galleryItemRatio, justifyRows } from '@marktiderman/genesis-core/gallery';
|
|
12
|
+
import { ChartSeriesConfig, StatusBadgeStatus } from '@marktiderman/genesis-core/headless';
|
|
13
|
+
import { ChipTone, HeadlineNumber, Readiness, ReadinessLabels } from '@marktiderman/genesis-core/resource';
|
|
14
|
+
import { Workspace, WorkspaceKind } from '@marktiderman/genesis-core/workspaces';
|
|
12
15
|
|
|
13
16
|
declare const textVariants: (props?: ({
|
|
14
17
|
preset?: "h1" | "h2" | "h3" | "h4" | "body" | "body-sm" | "caption" | "label" | null | undefined;
|
|
@@ -350,6 +353,11 @@ interface NativeNumberInputProps {
|
|
|
350
353
|
step?: number;
|
|
351
354
|
/** Decimal places shown. Default 0 (integer). */
|
|
352
355
|
precision?: number;
|
|
356
|
+
/**
|
|
357
|
+
* The locale whose marks typed numbers use ("de-DE" reads "1.234,5"). Default: worked out from
|
|
358
|
+
* the text ("1,234" is 1234, "1,5" is 1.5), genesis-core's `parseNumberInput`, as on the web.
|
|
359
|
+
*/
|
|
360
|
+
locale?: string;
|
|
353
361
|
/** Disable both stepper buttons and the input. */
|
|
354
362
|
disabled?: boolean;
|
|
355
363
|
/** Disable just the typed input; keep stepper. */
|
|
@@ -358,7 +366,7 @@ interface NativeNumberInputProps {
|
|
|
358
366
|
inputClassName?: string;
|
|
359
367
|
testID?: string;
|
|
360
368
|
}
|
|
361
|
-
declare function NativeNumberInput({ value, onChange, min, max, step, precision, disabled, readOnlyInput, className, inputClassName, testID, }: NativeNumberInputProps): react.JSX.Element;
|
|
369
|
+
declare function NativeNumberInput({ value, onChange, min, max, step, precision, locale, disabled, readOnlyInput, className, inputClassName, testID, }: NativeNumberInputProps): react.JSX.Element;
|
|
362
370
|
|
|
363
371
|
interface NativeStepperStep {
|
|
364
372
|
label: string;
|
|
@@ -374,7 +382,7 @@ interface NativeStepperProps {
|
|
|
374
382
|
}
|
|
375
383
|
declare function NativeStepper({ steps, current, className, testID, }: NativeStepperProps): react.JSX.Element;
|
|
376
384
|
|
|
377
|
-
interface BaseProps$
|
|
385
|
+
interface BaseProps$2 {
|
|
378
386
|
min?: number;
|
|
379
387
|
max?: number;
|
|
380
388
|
step?: number;
|
|
@@ -384,12 +392,12 @@ interface BaseProps$1 {
|
|
|
384
392
|
thumbClassName?: string;
|
|
385
393
|
testID?: string;
|
|
386
394
|
}
|
|
387
|
-
interface NativeSliderProps extends BaseProps$
|
|
395
|
+
interface NativeSliderProps extends BaseProps$2 {
|
|
388
396
|
value: number;
|
|
389
397
|
onChange: (value: number) => void;
|
|
390
398
|
}
|
|
391
399
|
declare function NativeSlider({ value, onChange, min, max, step, className, trackClassName, fillClassName, thumbClassName, testID, }: NativeSliderProps): react.JSX.Element;
|
|
392
|
-
interface NativeRangeSliderProps extends BaseProps$
|
|
400
|
+
interface NativeRangeSliderProps extends BaseProps$2 {
|
|
393
401
|
value: [number, number];
|
|
394
402
|
onChange: (value: [number, number]) => void;
|
|
395
403
|
}
|
|
@@ -411,16 +419,30 @@ interface NativeSegmentedControlProps<T = string> {
|
|
|
411
419
|
declare function NativeSegmentedControl<T = string>({ options, value, onChange, disabled, className, testID, }: NativeSegmentedControlProps<T>): react.JSX.Element;
|
|
412
420
|
|
|
413
421
|
type NativeChipGroupMode = "single" | "multiple";
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
422
|
+
/** What a group of `mode` holds: one value in `single`, a list in `multiple`. */
|
|
423
|
+
type NativeChipGroupValue<M extends NativeChipGroupMode> = M extends "single" ? string : string[];
|
|
424
|
+
/**
|
|
425
|
+
* The props, as the web's ChipGroup: with `mode="single"`, `onChange` gets one string; with
|
|
426
|
+
* `mode="multiple"`, a list. With `mode` left out the group is `multiple` and `onChange` is typed
|
|
427
|
+
* for either, as before. `value` is one string in `single` mode and a list in `multiple`; its type
|
|
428
|
+
* still takes either, so a screen's existing `string | string[]` state keeps compiling.
|
|
429
|
+
*/
|
|
430
|
+
interface NativeChipGroupProps<M extends NativeChipGroupMode = NativeChipGroupMode> {
|
|
431
|
+
mode?: M;
|
|
432
|
+
value: string | readonly string[];
|
|
433
|
+
onChange: (value: NativeChipGroupValue<M>) => void;
|
|
434
|
+
/**
|
|
435
|
+
* In `single` mode, pressing the chosen chip clears it (`onChange("")`). Default false: pressing
|
|
436
|
+
* it calls `onChange` with its own value again, as it always has (the web's ChipGroup sends
|
|
437
|
+
* nothing then).
|
|
438
|
+
*/
|
|
439
|
+
allowEmpty?: boolean;
|
|
418
440
|
disabled?: boolean;
|
|
419
441
|
className?: string;
|
|
420
442
|
children: React.ReactNode;
|
|
421
443
|
testID?: string;
|
|
422
444
|
}
|
|
423
|
-
declare function NativeChipGroup({ mode, value, onChange, disabled, className, children, testID, }: NativeChipGroupProps): react.JSX.Element;
|
|
445
|
+
declare function NativeChipGroup<M extends NativeChipGroupMode = NativeChipGroupMode>({ mode, value, onChange, allowEmpty, disabled, className, children, testID, }: NativeChipGroupProps<M>): react.JSX.Element;
|
|
424
446
|
interface NativeChipProps {
|
|
425
447
|
value: string;
|
|
426
448
|
className?: string;
|
|
@@ -484,9 +506,24 @@ interface NativeEmptyStateProps {
|
|
|
484
506
|
testID?: string;
|
|
485
507
|
}
|
|
486
508
|
declare function NativeEmptyState({ variant, title, body, description, illustration, icon, primaryAction, secondaryAction, action, details, className, testID, }: NativeEmptyStateProps): react.JSX.Element;
|
|
509
|
+
/** An empty roadmap or feature list. */
|
|
510
|
+
declare function NativeNoFeaturesFound({ onCreate, testID }: {
|
|
511
|
+
onCreate?: () => void;
|
|
512
|
+
testID?: string;
|
|
513
|
+
}): react.JSX.Element;
|
|
514
|
+
/** A feedback inbox with nothing in it yet. */
|
|
515
|
+
declare function NativeNoFeedbackFound({ testID }: {
|
|
516
|
+
testID?: string;
|
|
517
|
+
}): react.JSX.Element;
|
|
518
|
+
/** A search or filter that matched nothing. */
|
|
519
|
+
declare function NativeNoSearchResults({ query, onClear, testID }: {
|
|
520
|
+
query?: string;
|
|
521
|
+
onClear?: () => void;
|
|
522
|
+
testID?: string;
|
|
523
|
+
}): react.JSX.Element;
|
|
487
524
|
|
|
488
525
|
type NativeInlineAlertVariant = "info" | "success" | "warning" | "destructive";
|
|
489
|
-
interface BaseProps {
|
|
526
|
+
interface BaseProps$1 {
|
|
490
527
|
variant?: NativeInlineAlertVariant;
|
|
491
528
|
title?: string;
|
|
492
529
|
description?: string;
|
|
@@ -501,10 +538,10 @@ interface BaseProps {
|
|
|
501
538
|
className?: string;
|
|
502
539
|
testID?: string;
|
|
503
540
|
}
|
|
504
|
-
interface NativeInlineAlertProps extends BaseProps {
|
|
541
|
+
interface NativeInlineAlertProps extends BaseProps$1 {
|
|
505
542
|
}
|
|
506
543
|
declare function NativeInlineAlert({ variant, title, description, icon, onDismiss, children, actions, className, testID, }: NativeInlineAlertProps): react.JSX.Element;
|
|
507
|
-
interface NativeBannerProps extends BaseProps {
|
|
544
|
+
interface NativeBannerProps extends BaseProps$1 {
|
|
508
545
|
}
|
|
509
546
|
declare function NativeBanner({ variant, title, description, icon, onDismiss, children, actions, className, testID, }: NativeBannerProps): react.JSX.Element;
|
|
510
547
|
|
|
@@ -520,10 +557,26 @@ interface NativeListItemProps {
|
|
|
520
557
|
/** When provided, the row becomes pressable. */
|
|
521
558
|
onPress?: () => void;
|
|
522
559
|
disabled?: boolean;
|
|
560
|
+
/**
|
|
561
|
+
* What a pressable row is to a screen reader. Default `button`; a row that flips its switch
|
|
562
|
+
* (NativeToggleRow) is a `switch`, and one choice of several (NativeWorkspaceSwitcher) a
|
|
563
|
+
* `radio`, each with `accessibilityState.checked`.
|
|
564
|
+
*/
|
|
565
|
+
accessibilityRole?: "button" | "switch" | "link" | "menuitem" | "radio";
|
|
566
|
+
/**
|
|
567
|
+
* What a screen reader reads for the row. Default its title and subtitle. The row is one
|
|
568
|
+
* element, so a `trailing` badge's own label is not read: put its words here too.
|
|
569
|
+
*/
|
|
570
|
+
accessibilityLabel?: string;
|
|
571
|
+
/** Merged over the row's own (`disabled`). */
|
|
572
|
+
accessibilityState?: {
|
|
573
|
+
checked?: boolean;
|
|
574
|
+
selected?: boolean;
|
|
575
|
+
};
|
|
523
576
|
className?: string;
|
|
524
577
|
testID?: string;
|
|
525
578
|
}
|
|
526
|
-
declare function NativeListItem({ title, subtitle, leading, trailing, showChevron, onPress, disabled, className, testID, }: NativeListItemProps): react.JSX.Element;
|
|
579
|
+
declare function NativeListItem({ title, subtitle, leading, trailing, showChevron, onPress, disabled, accessibilityRole, accessibilityState, accessibilityLabel, className, testID, }: NativeListItemProps): react.JSX.Element;
|
|
527
580
|
declare function NativeListItemDivider({ className }: {
|
|
528
581
|
className?: string;
|
|
529
582
|
}): react.JSX.Element;
|
|
@@ -581,10 +634,10 @@ interface NativeRefreshControlProps {
|
|
|
581
634
|
declare function NativeRefreshControl({ tintColor, colors, testID, ...rest }: NativeRefreshControlProps): react.JSX.Element;
|
|
582
635
|
|
|
583
636
|
declare const badgeVariants: (props?: ({
|
|
584
|
-
variant?: "info" | "success" | "warning" | "default" | "secondary" | "outline" | "destructive" | "muted" | null | undefined;
|
|
637
|
+
variant?: "info" | "success" | "warning" | "default" | "secondary" | "outline" | "destructive" | "muted" | "danger" | null | undefined;
|
|
585
638
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
586
639
|
declare const badgeTextVariants: (props?: ({
|
|
587
|
-
variant?: "info" | "success" | "warning" | "default" | "secondary" | "outline" | "destructive" | "muted" | null | undefined;
|
|
640
|
+
variant?: "info" | "success" | "warning" | "default" | "secondary" | "outline" | "destructive" | "muted" | "danger" | null | undefined;
|
|
588
641
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
589
642
|
interface NativeBadgeProps extends VariantProps<typeof badgeVariants> {
|
|
590
643
|
className?: string;
|
|
@@ -617,10 +670,17 @@ interface NativeInputProps extends TextInputProps {
|
|
|
617
670
|
inputClassName?: string;
|
|
618
671
|
label?: string;
|
|
619
672
|
error?: string;
|
|
673
|
+
/**
|
|
674
|
+
* Content fixed before the text, inside the field's border: an icon, a currency sign, "https://".
|
|
675
|
+
* With `leading` or `trailing` the field is an input group (NativeInputGroup).
|
|
676
|
+
*/
|
|
677
|
+
leading?: React.ReactNode;
|
|
678
|
+
/** Content fixed after the text, inside the field's border: a unit, a clear or show button. */
|
|
679
|
+
trailing?: React.ReactNode;
|
|
620
680
|
/** The underlying TextInput (React 19 passes `ref` as a prop). */
|
|
621
681
|
ref?: Ref<ComponentRef<typeof TextInput>> | undefined;
|
|
622
682
|
}
|
|
623
|
-
declare function NativeInput({ className, inputClassName, label, error, editable, placeholderTextColor, ...props }: NativeInputProps): react.JSX.Element;
|
|
683
|
+
declare function NativeInput({ className, inputClassName, label, error, editable, placeholderTextColor, leading, trailing, ...props }: NativeInputProps): react.JSX.Element;
|
|
624
684
|
|
|
625
685
|
interface NativeSeparatorProps extends ViewProps {
|
|
626
686
|
orientation?: "horizontal" | "vertical";
|
|
@@ -821,16 +881,12 @@ interface NativeLabelProps extends TextProps {
|
|
|
821
881
|
}
|
|
822
882
|
declare function NativeLabel({ className, children, disabled, ...props }: NativeLabelProps): react.JSX.Element;
|
|
823
883
|
|
|
824
|
-
interface
|
|
884
|
+
interface NativeChoiceCardBaseProps {
|
|
825
885
|
title: string;
|
|
826
886
|
/** A second line under the title, muted. */
|
|
827
887
|
description?: string;
|
|
828
888
|
/** Slot left of the text: a thumbnail (NativeImage), an icon. */
|
|
829
889
|
media?: React.ReactNode;
|
|
830
|
-
selected: boolean;
|
|
831
|
-
onPress: () => void;
|
|
832
|
-
/** A checkbox (several can be chosen) rather than a radio. */
|
|
833
|
-
multiple?: boolean;
|
|
834
890
|
disabled?: boolean;
|
|
835
891
|
/** The question still needs an answer: a destructive border and hint. */
|
|
836
892
|
invalid?: boolean;
|
|
@@ -839,7 +895,41 @@ interface NativeChoiceCardProps {
|
|
|
839
895
|
className?: string;
|
|
840
896
|
testID?: string;
|
|
841
897
|
}
|
|
842
|
-
|
|
898
|
+
/**
|
|
899
|
+
* One of several, inside a `NativeRadioGroup`, as the web's ChoiceCard sits in a RadioGroup: the
|
|
900
|
+
* group holds which is chosen (`value`, `onValueChange`), and the card is chosen when its `value` is.
|
|
901
|
+
*/
|
|
902
|
+
interface NativeChoiceCardRadioProps extends NativeChoiceCardBaseProps {
|
|
903
|
+
multiple?: false;
|
|
904
|
+
/** This card's value in its NativeRadioGroup. */
|
|
905
|
+
value: string;
|
|
906
|
+
selected?: undefined;
|
|
907
|
+
onPress?: undefined;
|
|
908
|
+
onSelectedChange?: undefined;
|
|
909
|
+
}
|
|
910
|
+
/** Any number can be chosen: a checkbox with its own state, as the web's `multiple` ChoiceCard. */
|
|
911
|
+
interface NativeChoiceCardCheckboxProps extends NativeChoiceCardBaseProps {
|
|
912
|
+
multiple: true;
|
|
913
|
+
selected: boolean;
|
|
914
|
+
/** Called when it is pressed, with the new state. */
|
|
915
|
+
onSelectedChange: (selected: boolean) => void;
|
|
916
|
+
value?: undefined;
|
|
917
|
+
onPress?: undefined;
|
|
918
|
+
}
|
|
919
|
+
/**
|
|
920
|
+
* The parent owns `selected` and answers `onPress` itself, in either mode.
|
|
921
|
+
* @deprecated Use `value` in a NativeRadioGroup, or `multiple` with `onSelectedChange`, as the web's ChoiceCard.
|
|
922
|
+
*/
|
|
923
|
+
interface NativeChoiceCardPressProps extends NativeChoiceCardBaseProps {
|
|
924
|
+
/** A checkbox (several can be chosen) rather than a radio. */
|
|
925
|
+
multiple?: boolean;
|
|
926
|
+
selected: boolean;
|
|
927
|
+
onPress: () => void;
|
|
928
|
+
value?: undefined;
|
|
929
|
+
onSelectedChange?: undefined;
|
|
930
|
+
}
|
|
931
|
+
type NativeChoiceCardProps = NativeChoiceCardRadioProps | NativeChoiceCardCheckboxProps | NativeChoiceCardPressProps;
|
|
932
|
+
declare function NativeChoiceCard(props: NativeChoiceCardProps): react.JSX.Element;
|
|
843
933
|
|
|
844
934
|
interface NativeRadioGroupProps {
|
|
845
935
|
className?: string;
|
|
@@ -1681,4 +1771,399 @@ interface NativeWhatsNewSheetProps<N extends NativeWhatsNewNote = NativeWhatsNew
|
|
|
1681
1771
|
}
|
|
1682
1772
|
declare function NativeWhatsNewSheet<N extends NativeWhatsNewNote = NativeWhatsNewNote>({ notes, dismiss, onOpenNote, title, doneLabel, learnMoreLabel, testID, noteTestID, }: NativeWhatsNewSheetProps<N>): react.JSX.Element;
|
|
1683
1773
|
|
|
1684
|
-
|
|
1774
|
+
interface NativeButtonGroupProps {
|
|
1775
|
+
orientation?: "horizontal" | "vertical";
|
|
1776
|
+
/** NativeButtons (or anything taking `className`). */
|
|
1777
|
+
children: ReactNode;
|
|
1778
|
+
/** What the group is for, read by screen readers ("Pagination"). */
|
|
1779
|
+
accessibilityLabel?: string;
|
|
1780
|
+
className?: string;
|
|
1781
|
+
testID?: string;
|
|
1782
|
+
}
|
|
1783
|
+
declare function NativeButtonGroup({ orientation, children, accessibilityLabel, className, testID }: NativeButtonGroupProps): react.JSX.Element;
|
|
1784
|
+
|
|
1785
|
+
interface NativeInputGroupProps extends Omit<NativeInputProps, "leading" | "trailing"> {
|
|
1786
|
+
/** Before the text: an icon, "$", "https://". */
|
|
1787
|
+
prefix?: ReactNode;
|
|
1788
|
+
/** After the text: a unit, a button. */
|
|
1789
|
+
suffix?: ReactNode;
|
|
1790
|
+
}
|
|
1791
|
+
declare function NativeInputGroup({ prefix, suffix, ...props }: NativeInputGroupProps): react.JSX.Element;
|
|
1792
|
+
interface NativePasswordToggleFieldProps extends Omit<NativeInputProps, "secureTextEntry" | "trailing"> {
|
|
1793
|
+
/** Shown (uncontrolled start). Default false: the password is hidden. */
|
|
1794
|
+
defaultVisible?: boolean;
|
|
1795
|
+
/** Shown, to control it. */
|
|
1796
|
+
visible?: boolean;
|
|
1797
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
1798
|
+
/** The button's words. Default "Show password" / "Hide password" (read) and "Show" / "Hide" (shown). */
|
|
1799
|
+
labels?: {
|
|
1800
|
+
show?: string;
|
|
1801
|
+
hide?: string;
|
|
1802
|
+
showAccessible?: string;
|
|
1803
|
+
hideAccessible?: string;
|
|
1804
|
+
};
|
|
1805
|
+
}
|
|
1806
|
+
declare function NativePasswordToggleField({ defaultVisible, visible: visibleProp, onVisibleChange, labels, testID, onSelectionChange, onChangeText, ...props }: NativePasswordToggleFieldProps): react.JSX.Element;
|
|
1807
|
+
|
|
1808
|
+
interface NativeInputOTPProps {
|
|
1809
|
+
/** How many characters. Default 6. */
|
|
1810
|
+
maxLength?: number;
|
|
1811
|
+
value: string;
|
|
1812
|
+
onChange: (value: string) => void;
|
|
1813
|
+
/** Called once every box is filled. */
|
|
1814
|
+
onComplete?: (value: string) => void;
|
|
1815
|
+
/**
|
|
1816
|
+
* What the code may hold, as a RegExp source tested against the whole code typed so far (as
|
|
1817
|
+
* input-otp's `pattern`). Default digits (`OTP_PATTERN_DIGITS`, the same as input-otp's
|
|
1818
|
+
* `REGEXP_ONLY_DIGITS`). Match a partial code too: "^[A-Z0-9]+$", not "^[A-Z0-9]{8}$".
|
|
1819
|
+
*/
|
|
1820
|
+
pattern?: string;
|
|
1821
|
+
/** Draws a separator after these box indexes ([2] for 123-456). */
|
|
1822
|
+
separatorAfter?: number[];
|
|
1823
|
+
disabled?: boolean;
|
|
1824
|
+
autoFocus?: boolean;
|
|
1825
|
+
/** Read by screen readers. Default "One-time code". */
|
|
1826
|
+
accessibilityLabel?: string;
|
|
1827
|
+
/** Read after the label. Default "{maxLength} characters". */
|
|
1828
|
+
accessibilityHint?: string;
|
|
1829
|
+
className?: string;
|
|
1830
|
+
testID?: string;
|
|
1831
|
+
}
|
|
1832
|
+
declare function NativeInputOTP({ maxLength, value, onChange, onComplete, pattern, separatorAfter, disabled, autoFocus, accessibilityLabel, accessibilityHint, className, testID, }: NativeInputOTPProps): react.JSX.Element;
|
|
1833
|
+
|
|
1834
|
+
/** A picked range, as react-day-picker's `DateRange`. */
|
|
1835
|
+
interface NativeCalendarRange {
|
|
1836
|
+
from: Date | undefined;
|
|
1837
|
+
to?: Date | undefined;
|
|
1838
|
+
}
|
|
1839
|
+
interface BaseProps {
|
|
1840
|
+
/** The month shown, to control it. */
|
|
1841
|
+
month?: Date;
|
|
1842
|
+
/** The month shown first, uncontrolled. Default the selection's, else today's. */
|
|
1843
|
+
defaultMonth?: Date;
|
|
1844
|
+
onMonthChange?: (month: Date) => void;
|
|
1845
|
+
/** Days that can't be picked. */
|
|
1846
|
+
disabled?: (date: Date) => boolean;
|
|
1847
|
+
/**
|
|
1848
|
+
* 0 Sunday to 6 Saturday. Default 0, as the web's Calendar (react-day-picker) draws an en-US
|
|
1849
|
+
* month; genesis-core's own default is 1, so it is passed to `monthWeeks` and `weekdayDays`.
|
|
1850
|
+
*/
|
|
1851
|
+
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
1852
|
+
/** Draw the days of the months before and after. Default true. */
|
|
1853
|
+
showOutsideDays?: boolean;
|
|
1854
|
+
/** BCP 47 locale for the month and weekday names. Default the device's. */
|
|
1855
|
+
locale?: string;
|
|
1856
|
+
/** Labels for the month buttons. */
|
|
1857
|
+
labels?: {
|
|
1858
|
+
previousMonth?: string;
|
|
1859
|
+
nextMonth?: string;
|
|
1860
|
+
};
|
|
1861
|
+
/** Today, for its mark. Default now. */
|
|
1862
|
+
today?: Date;
|
|
1863
|
+
className?: string;
|
|
1864
|
+
testID?: string;
|
|
1865
|
+
}
|
|
1866
|
+
type NativeCalendarProps = (BaseProps & {
|
|
1867
|
+
mode?: "single";
|
|
1868
|
+
selected?: Date | undefined;
|
|
1869
|
+
onSelect?: (date: Date | undefined) => void;
|
|
1870
|
+
}) | (BaseProps & {
|
|
1871
|
+
mode: "multiple";
|
|
1872
|
+
selected?: Date[] | undefined;
|
|
1873
|
+
onSelect?: (dates: Date[]) => void;
|
|
1874
|
+
}) | (BaseProps & {
|
|
1875
|
+
mode: "range";
|
|
1876
|
+
selected?: NativeCalendarRange | undefined;
|
|
1877
|
+
onSelect?: (range: NativeCalendarRange | undefined) => void;
|
|
1878
|
+
});
|
|
1879
|
+
declare function NativeCalendar(props: NativeCalendarProps): react.JSX.Element;
|
|
1880
|
+
|
|
1881
|
+
interface NativeCarouselProps {
|
|
1882
|
+
/** The slides. */
|
|
1883
|
+
children: ReactNode;
|
|
1884
|
+
/** The slide shown, to control it. */
|
|
1885
|
+
index?: number;
|
|
1886
|
+
/** The slide shown first, uncontrolled. Default 0. */
|
|
1887
|
+
defaultIndex?: number;
|
|
1888
|
+
onIndexChange?: (index: number) => void;
|
|
1889
|
+
/** Dots under the slides. Default true. */
|
|
1890
|
+
showDots?: boolean;
|
|
1891
|
+
/** Previous and next buttons. Default false (a swipe is the phone's way). */
|
|
1892
|
+
showControls?: boolean;
|
|
1893
|
+
/** What the carousel shows, read by screen readers with the page control ("Featured classes"). */
|
|
1894
|
+
accessibilityLabel?: string;
|
|
1895
|
+
/** Words: "Slide {index} of {count}", and the buttons'. */
|
|
1896
|
+
labels?: {
|
|
1897
|
+
slide?: string;
|
|
1898
|
+
previous?: string;
|
|
1899
|
+
next?: string;
|
|
1900
|
+
};
|
|
1901
|
+
className?: string;
|
|
1902
|
+
slideClassName?: string;
|
|
1903
|
+
testID?: string;
|
|
1904
|
+
}
|
|
1905
|
+
declare function NativeCarousel({ children, index: indexProp, defaultIndex, onIndexChange, showDots, showControls, accessibilityLabel, labels, className, slideClassName, testID, }: NativeCarouselProps): react.JSX.Element;
|
|
1906
|
+
|
|
1907
|
+
/** Each series by its key in the rows, as the web's `ChartConfig` (labels are text here). */
|
|
1908
|
+
type NativeChartConfig = Record<string, ChartSeriesConfig<string>>;
|
|
1909
|
+
interface NativeChartContainerProps {
|
|
1910
|
+
config: NativeChartConfig;
|
|
1911
|
+
/** The rows: one per point on the x axis. */
|
|
1912
|
+
data: readonly Record<string, unknown>[];
|
|
1913
|
+
/** The rows' field on the x axis ("month"). */
|
|
1914
|
+
xKey: string;
|
|
1915
|
+
/** Default `bar`. */
|
|
1916
|
+
type?: "bar" | "line" | "area";
|
|
1917
|
+
/** Bars on top of each other instead of side by side. */
|
|
1918
|
+
stacked?: boolean;
|
|
1919
|
+
/** The plot's height in points. Default 200. */
|
|
1920
|
+
height?: number;
|
|
1921
|
+
/** A legend under the chart. Default true with more than one series. */
|
|
1922
|
+
showLegend?: boolean;
|
|
1923
|
+
/** Lines at each tick. Default true. */
|
|
1924
|
+
showGrid?: boolean;
|
|
1925
|
+
/** How values read on the axis and to a screen reader. */
|
|
1926
|
+
valueFormat?: (value: number) => string;
|
|
1927
|
+
/** What the chart is, said before its values ("Visitors by month"). */
|
|
1928
|
+
accessibilityLabel?: string;
|
|
1929
|
+
className?: string;
|
|
1930
|
+
testID?: string;
|
|
1931
|
+
}
|
|
1932
|
+
declare function NativeChartContainer({ config, data, xKey, type, stacked, height, showLegend, showGrid, valueFormat, accessibilityLabel, className, testID, }: NativeChartContainerProps): react.JSX.Element;
|
|
1933
|
+
|
|
1934
|
+
interface NativeSortableListItemContext {
|
|
1935
|
+
/** The item's position as shown, from 0. */
|
|
1936
|
+
index: number;
|
|
1937
|
+
/** The drag handle: render it somewhere in the row. */
|
|
1938
|
+
handle: ReactNode;
|
|
1939
|
+
/** True while this item is being dragged. */
|
|
1940
|
+
isDragging: boolean;
|
|
1941
|
+
moveUp: () => void;
|
|
1942
|
+
moveDown: () => void;
|
|
1943
|
+
moveTo: (index: number) => void;
|
|
1944
|
+
}
|
|
1945
|
+
interface NativeSortableListLabels {
|
|
1946
|
+
/** `{name}`: the handle's label. Default "Reorder {name}". */
|
|
1947
|
+
reorder?: string;
|
|
1948
|
+
moveUp?: string;
|
|
1949
|
+
moveDown?: string;
|
|
1950
|
+
moveToTop?: string;
|
|
1951
|
+
moveToBottom?: string;
|
|
1952
|
+
/** `{name}`, `{n}`, `{total}`. Default "{name} moved to position {n} of {total}." */
|
|
1953
|
+
moved?: string;
|
|
1954
|
+
/** `{name}`. Default "Couldn’t move {name}." */
|
|
1955
|
+
moveFailed?: string;
|
|
1956
|
+
cancel?: string;
|
|
1957
|
+
}
|
|
1958
|
+
interface NativeSortableListProps<T> {
|
|
1959
|
+
items: readonly T[];
|
|
1960
|
+
getKey: (item: T) => string;
|
|
1961
|
+
getItemLabel: (item: T) => string;
|
|
1962
|
+
renderItem: (item: T, context: NativeSortableListItemContext) => ReactNode;
|
|
1963
|
+
/** Move the item at `from` to `to`; by the time a returned promise settles, `items` is in the new order. */
|
|
1964
|
+
onReorder: (from: number, to: number, move: {
|
|
1965
|
+
key: string;
|
|
1966
|
+
}) => void | Promise<void>;
|
|
1967
|
+
/** The list's accessible name ("Course steps"). */
|
|
1968
|
+
label: string;
|
|
1969
|
+
disabled?: boolean;
|
|
1970
|
+
/** The Move menu on a long press. Default true. */
|
|
1971
|
+
moveMenu?: boolean;
|
|
1972
|
+
/** A drag started (`true`) or ended (`false`): stop the screen's ScrollView while it runs. */
|
|
1973
|
+
onDragChange?: (dragging: boolean) => void;
|
|
1974
|
+
labels?: NativeSortableListLabels;
|
|
1975
|
+
className?: string;
|
|
1976
|
+
itemClassName?: string;
|
|
1977
|
+
testID?: string;
|
|
1978
|
+
}
|
|
1979
|
+
declare function NativeSortableList<T>({ items, getKey, getItemLabel, renderItem, onReorder, label, disabled, moveMenu, onDragChange, labels: labelsProp, className, itemClassName, testID, }: NativeSortableListProps<T>): react.JSX.Element;
|
|
1980
|
+
|
|
1981
|
+
type NativeStatCardColor = "primary" | "success" | "warning" | "info" | "destructive" | "muted";
|
|
1982
|
+
interface NativeStatCardProps {
|
|
1983
|
+
label: string;
|
|
1984
|
+
value: string | number;
|
|
1985
|
+
/** An icon (a NativeIcon) beside the label. */
|
|
1986
|
+
icon?: ReactNode;
|
|
1987
|
+
/** The icon's tone. Default `primary`. */
|
|
1988
|
+
color?: NativeStatCardColor;
|
|
1989
|
+
trend?: {
|
|
1990
|
+
value: number;
|
|
1991
|
+
label: string;
|
|
1992
|
+
};
|
|
1993
|
+
/** Makes the tile a button (open the list behind the number). */
|
|
1994
|
+
onPress?: () => void;
|
|
1995
|
+
className?: string;
|
|
1996
|
+
testID?: string;
|
|
1997
|
+
}
|
|
1998
|
+
declare function NativeStatCard({ label, value, icon, color, trend, onPress, className, testID }: NativeStatCardProps): react.JSX.Element;
|
|
1999
|
+
interface NativeStatusBadgeProps {
|
|
2000
|
+
status: StatusBadgeStatus;
|
|
2001
|
+
/** The words. Default the status's ("On track"). */
|
|
2002
|
+
children?: ReactNode;
|
|
2003
|
+
className?: string;
|
|
2004
|
+
testID?: string;
|
|
2005
|
+
}
|
|
2006
|
+
declare function NativeStatusBadge({ status, children, className, testID }: NativeStatusBadgeProps): react.JSX.Element;
|
|
2007
|
+
interface NativeUserAvatarProps {
|
|
2008
|
+
/** The person's full name: the initials and what a screen reader hears. */
|
|
2009
|
+
name: string;
|
|
2010
|
+
src?: string | null;
|
|
2011
|
+
/** `sm` 32, `default` 40, `lg` 48 points, as the web's sizes. */
|
|
2012
|
+
size?: "sm" | "default" | "lg";
|
|
2013
|
+
/** In a list of people: two letters for a one-word name, as the web's `distinct`. */
|
|
2014
|
+
distinct?: boolean;
|
|
2015
|
+
className?: string;
|
|
2016
|
+
testID?: string;
|
|
2017
|
+
}
|
|
2018
|
+
declare function NativeUserAvatar({ name, src, size, distinct, className, testID }: NativeUserAvatarProps): react.JSX.Element;
|
|
2019
|
+
|
|
2020
|
+
interface NativeReadinessChipProps {
|
|
2021
|
+
readiness: Readiness;
|
|
2022
|
+
labels?: ReadinessLabels;
|
|
2023
|
+
/** Makes it a button (open the checks). */
|
|
2024
|
+
onPress?: () => void;
|
|
2025
|
+
className?: string;
|
|
2026
|
+
}
|
|
2027
|
+
declare function NativeReadinessChip({ readiness, labels, onPress, className }: NativeReadinessChipProps): react.JSX.Element;
|
|
2028
|
+
interface NativeHeadlineNumbersProps {
|
|
2029
|
+
numbers: readonly HeadlineNumber[];
|
|
2030
|
+
isLoading?: boolean;
|
|
2031
|
+
className?: string;
|
|
2032
|
+
}
|
|
2033
|
+
declare function NativeHeadlineNumbers({ numbers, isLoading, className }: NativeHeadlineNumbersProps): react.JSX.Element | null;
|
|
2034
|
+
interface NativeSummaryCardProps {
|
|
2035
|
+
icon?: ReactNode;
|
|
2036
|
+
title: string;
|
|
2037
|
+
meta?: ReactNode;
|
|
2038
|
+
children?: ReactNode;
|
|
2039
|
+
className?: string;
|
|
2040
|
+
testID?: string;
|
|
2041
|
+
}
|
|
2042
|
+
declare function NativeSummaryCard({ icon, title, meta, children, className, testID }: NativeSummaryCardProps): react.JSX.Element;
|
|
2043
|
+
/** One item in the follow-up list, as the host describes it (the web's `FollowUpEntry`). */
|
|
2044
|
+
interface NativeFollowUpEntry {
|
|
2045
|
+
id: string;
|
|
2046
|
+
name: string;
|
|
2047
|
+
tag?: {
|
|
2048
|
+
label: string;
|
|
2049
|
+
tone?: ChipTone | undefined;
|
|
2050
|
+
} | undefined;
|
|
2051
|
+
meta?: string | undefined;
|
|
2052
|
+
comment?: string | null | undefined;
|
|
2053
|
+
rating?: {
|
|
2054
|
+
value: number;
|
|
2055
|
+
max: number;
|
|
2056
|
+
} | null | undefined;
|
|
2057
|
+
}
|
|
2058
|
+
interface NativeFollowUpListProps {
|
|
2059
|
+
entries: readonly NativeFollowUpEntry[];
|
|
2060
|
+
actions?: (entry: NativeFollowUpEntry) => ReactNode;
|
|
2061
|
+
title?: string;
|
|
2062
|
+
isLoading?: boolean;
|
|
2063
|
+
empty?: string;
|
|
2064
|
+
noComment?: string;
|
|
2065
|
+
className?: string;
|
|
2066
|
+
}
|
|
2067
|
+
declare function NativeFollowUpList({ entries, actions, title, isLoading, empty, noComment, className, }: NativeFollowUpListProps): react.JSX.Element;
|
|
2068
|
+
type NativeResponsesView = "summary" | "each";
|
|
2069
|
+
interface NativeResponsesToolbarProps {
|
|
2070
|
+
view: NativeResponsesView;
|
|
2071
|
+
onViewChange: (view: NativeResponsesView) => void;
|
|
2072
|
+
filters?: ReactNode;
|
|
2073
|
+
actions?: ReactNode;
|
|
2074
|
+
labels?: {
|
|
2075
|
+
summary?: string;
|
|
2076
|
+
each?: string;
|
|
2077
|
+
};
|
|
2078
|
+
className?: string;
|
|
2079
|
+
}
|
|
2080
|
+
declare function NativeResponsesToolbar({ view, onViewChange, filters, actions, labels, className }: NativeResponsesToolbarProps): react.JSX.Element;
|
|
2081
|
+
|
|
2082
|
+
interface NativeSettingsRowProps {
|
|
2083
|
+
label: string;
|
|
2084
|
+
description?: string;
|
|
2085
|
+
/** The control at the end: a NativeSwitch, a NativeSelect trigger, a NativeBadge, a NativeButton. */
|
|
2086
|
+
children?: ReactNode;
|
|
2087
|
+
/** Makes the row a button (a row that opens a sub-page). */
|
|
2088
|
+
onPress?: () => void;
|
|
2089
|
+
/** The drill-in chevron, for a row that opens a sub-page. */
|
|
2090
|
+
showChevron?: boolean;
|
|
2091
|
+
disabled?: boolean;
|
|
2092
|
+
className?: string;
|
|
2093
|
+
testID?: string;
|
|
2094
|
+
}
|
|
2095
|
+
declare function NativeSettingsRow({ label, description, children, onPress, showChevron, disabled, className, testID }: NativeSettingsRowProps): react.JSX.Element;
|
|
2096
|
+
interface NativeToggleRowProps {
|
|
2097
|
+
label: string;
|
|
2098
|
+
description?: string;
|
|
2099
|
+
checked?: boolean;
|
|
2100
|
+
defaultChecked?: boolean;
|
|
2101
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
2102
|
+
disabled?: boolean;
|
|
2103
|
+
className?: string;
|
|
2104
|
+
/** On the switch, as on the web. */
|
|
2105
|
+
testID?: string;
|
|
2106
|
+
rowTestID?: string;
|
|
2107
|
+
}
|
|
2108
|
+
declare function NativeToggleRow({ label, description, checked: checkedProp, defaultChecked, onCheckedChange, disabled, className, testID, rowTestID }: NativeToggleRowProps): react.JSX.Element;
|
|
2109
|
+
/** One section of a NativeResourceSettingsPage (the web's `ResourceSettingsSection`). */
|
|
2110
|
+
interface NativeResourceSettingsSection {
|
|
2111
|
+
id: string;
|
|
2112
|
+
title: string;
|
|
2113
|
+
icon?: ReactNode;
|
|
2114
|
+
description?: string;
|
|
2115
|
+
/** The rows (NativeSettingsRow, NativeToggleRow). Absent: a jump link only, with `onSelect`. */
|
|
2116
|
+
content?: ReactNode;
|
|
2117
|
+
onSelect?: () => void;
|
|
2118
|
+
}
|
|
2119
|
+
interface NativeResourceSettingsPageProps {
|
|
2120
|
+
sections: readonly NativeResourceSettingsSection[];
|
|
2121
|
+
/** The jump links' accessible name. Default "On this page". */
|
|
2122
|
+
navLabel?: string;
|
|
2123
|
+
className?: string;
|
|
2124
|
+
testID?: string;
|
|
2125
|
+
}
|
|
2126
|
+
declare function NativeResourceSettingsPage({ sections, navLabel, className, testID }: NativeResourceSettingsPageProps): react.JSX.Element;
|
|
2127
|
+
|
|
2128
|
+
interface NativeWorkspaceSwitcherProps<W extends Workspace = Workspace> {
|
|
2129
|
+
/** Every workspace; defaults to the nearest WorkspaceScope's. */
|
|
2130
|
+
workspaces?: readonly W[];
|
|
2131
|
+
/** The current workspace; defaults to the nearest WorkspaceScope's. */
|
|
2132
|
+
current?: W;
|
|
2133
|
+
/** The viewer picked a workspace: navigate to `href`. */
|
|
2134
|
+
onSelect: (workspace: W, href: string) => void;
|
|
2135
|
+
/** Where each choice goes; defaults to the WorkspaceScope's, else the workspace's landing page. */
|
|
2136
|
+
hrefFor?: (workspace: W) => string;
|
|
2137
|
+
/** The order of the kinds (default personal, roll-up, tenants). */
|
|
2138
|
+
order?: readonly WorkspaceKind[];
|
|
2139
|
+
/** Headings over each kind's group; `null` hides one. */
|
|
2140
|
+
kindLabels?: Partial<Record<WorkspaceKind, string | null>>;
|
|
2141
|
+
/** Replaces the picture (a brand mark). */
|
|
2142
|
+
renderImage?: (workspace: W, size: number) => ReactNode;
|
|
2143
|
+
/** What a screen reader hears for a badge. Default "3 new" for a number. */
|
|
2144
|
+
badgeLabel?: (workspace: W, value: string | number) => string;
|
|
2145
|
+
/** A search box over the list. `"auto"` past seven workspaces. Default `"auto"`. */
|
|
2146
|
+
search?: boolean | "auto";
|
|
2147
|
+
searchPlaceholder?: string;
|
|
2148
|
+
emptyText?: string;
|
|
2149
|
+
/** Shown when the viewer is in no workspace. Default "Choose a workspace". */
|
|
2150
|
+
placeholder?: string;
|
|
2151
|
+
/** The sheet's title and the trigger's hint. Default "Switch workspace". */
|
|
2152
|
+
label?: string;
|
|
2153
|
+
/** Rows at the bottom of the sheet ("Create an organization"). */
|
|
2154
|
+
actions?: readonly {
|
|
2155
|
+
id: string;
|
|
2156
|
+
label: string;
|
|
2157
|
+
onPress: () => void;
|
|
2158
|
+
}[];
|
|
2159
|
+
/** Controlled open state. */
|
|
2160
|
+
open?: boolean;
|
|
2161
|
+
onOpenChange?: (open: boolean) => void;
|
|
2162
|
+
/** `row` (default): picture, name and description. `compact`: the name and a chevron, for a header. */
|
|
2163
|
+
variant?: "row" | "compact";
|
|
2164
|
+
className?: string;
|
|
2165
|
+
testID?: string;
|
|
2166
|
+
}
|
|
2167
|
+
declare function NativeWorkspaceSwitcher<W extends Workspace = Workspace>({ workspaces: workspacesProp, current: currentProp, onSelect, hrefFor: hrefForProp, order, kindLabels, renderImage, badgeLabel, search, searchPlaceholder, emptyText, placeholder, label, actions, open: openProp, onOpenChange, variant, className, testID, }: NativeWorkspaceSwitcherProps<W>): react.JSX.Element;
|
|
2168
|
+
|
|
2169
|
+
export { Box, type BoxBackground, type BoxProps, type ComposerSendAction, FULL_SCREEN_DARK, type FlexAlign, type FlexJustify, GenesisGlassModule, Grid, type GridProps, Inline, type InlineProps, LIGHTBOX_DISMISS_DISTANCE, LIGHTBOX_DISMISS_VELOCITY, LIGHTBOX_DOUBLE_TAP_MS, LIGHTBOX_MAX_ZOOM, 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, type NativeBulkAction, NativeBulkBar, type NativeBulkBarProps, NativeButton, NativeButtonGroup, type NativeButtonGroupProps, type NativeButtonProps, NativeCalendar, type NativeCalendarProps, type NativeCalendarRange, NativeCard, NativeCardContent, NativeCardDescription, NativeCardFooter, NativeCardHeader, type NativeCardProps, NativeCardTitle, type NativeCardTitleProps, NativeCarousel, type NativeCarouselProps, type NativeChartConfig, NativeChartContainer, type NativeChartContainerProps, NativeCheckbox, type NativeCheckboxProps, NativeChip, NativeChipGroup, type NativeChipGroupMode, type NativeChipGroupProps, type NativeChipGroupValue, type NativeChipProps, NativeChoiceCard, type NativeChoiceCardCheckboxProps, type NativeChoiceCardPressProps, type NativeChoiceCardProps, type NativeChoiceCardRadioProps, NativeCombobox, type NativeComboboxOption, type NativeComboboxProps, NativeComposerBar, type NativeComposerBarProps, NativeContextMenu, type NativeContextMenuAction, type NativeContextMenuProps, 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, type NativeFollowUpEntry, NativeFollowUpList, type NativeFollowUpListProps, NativeFullScreenModal, type NativeFullScreenModalProps, NativeGalleryCard, type NativeGalleryCardProps, NativeGalleryGrid, type NativeGalleryGridProps, type NativeGalleryLayout, NativeGlassSurface, type NativeGlassSurfaceProps, NativeHeaderCard, type NativeHeaderCardProps, NativeHeadlineNumbers, type NativeHeadlineNumbersProps, NativeIcon, NativeIconName, type NativeIconProps, NativeImage, type NativeImageProps, NativeInlineAlert, type NativeInlineAlertProps, type NativeInlineAlertVariant, NativeInput, NativeInputGroup, type NativeInputGroupProps, NativeInputOTP, type NativeInputOTPProps, type NativeInputProps, NativeLabel, type NativeLabelProps, NativeLightbox, type NativeLightboxLabels, type NativeLightboxProps, NativeListItem, NativeListItemDivider, type NativeListItemProps, NativeLiveIndicator, type NativeLiveIndicatorProps, type NativeLiveIndicatorState, type NativeLiveIndicatorVariant, NativeLoadingState, type NativeLoadingStateEdge, type NativeLoadingStateProps, NativeNoFeaturesFound, NativeNoFeedbackFound, NativeNoSearchResults, NativeNumberInput, type NativeNumberInputProps, NativePagination, type NativePaginationProps, NativePasswordToggleField, type NativePasswordToggleFieldProps, NativePopover, NativePopoverContent, type NativePopoverContentProps, type NativePopoverProps, NativePopoverTrigger, type NativePopoverTriggerProps, NativeProgress, type NativeProgressProps, NativeRadioGroup, NativeRadioGroupItem, type NativeRadioGroupItemProps, type NativeRadioGroupProps, NativeRangeSlider, type NativeRangeSliderProps, NativeRating, type NativeRatingProps, type NativeRatingSize, type NativeRatingTone, NativeReadinessChip, type NativeReadinessChipProps, NativeRefreshControl, type NativeRefreshControlProps, NativeResourceSettingsPage, type NativeResourceSettingsPageProps, type NativeResourceSettingsSection, NativeResponsesToolbar, type NativeResponsesToolbarProps, type NativeResponsesView, 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, NativeSettingsRow, type NativeSettingsRowProps, NativeShareSheet, type NativeShareSheetProps, NativeSheet, type NativeSheetLibrary, type NativeSheetProps, NativeSheetProvider, type NativeSheetProviderProps, NativeSheetScrollView, NativeSkeleton, type NativeSkeletonProps, NativeSlider, type NativeSliderProps, NativeSortableList, type NativeSortableListItemContext, type NativeSortableListLabels, type NativeSortableListProps, NativeStatCard, type NativeStatCardColor, type NativeStatCardProps, NativeStatusBadge, type NativeStatusBadgeProps, NativeStepper, type NativeStepperProps, type NativeStepperStep, NativeSummaryCard, type NativeSummaryCardProps, NativeSwipeRow, type NativeSwipeRowProps, NativeSwitch, type NativeSwitchProps, NativeTabBar, type NativeTabBarItem, type NativeTabBarProps, NativeTabs, NativeTabsContent, type NativeTabsContentProps, NativeTabsList, type NativeTabsListProps, type NativeTabsProps, NativeTabsTrigger, type NativeTabsTriggerProps, NativeText, type NativeTextProps, NativeTextarea, type NativeTextareaProps, NativeThreadList, type NativeThreadListHandle, type NativeThreadListProps, NativeTierBadge, type NativeTierBadgeProps, NativeTimePicker, type NativeTimePickerProps, type NativeToastOptions, NativeToastProvider, type NativeToastProviderProps, type NativeToastVariant, NativeToggle, type NativeToggleProps, NativeToggleRow, type NativeToggleRowProps, NativeTooltip, NativeTooltipContent, type NativeTooltipContentProps, type NativeTooltipProps, NativeTooltipTrigger, type NativeTooltipTriggerProps, NativeUserAvatar, type NativeUserAvatarProps, type NativeWhatsNewNote, NativeWhatsNewSheet, type NativeWhatsNewSheetProps, NativeWorkspaceSwitcher, type NativeWorkspaceSwitcherProps, NativeZoomablePhoto, type NativeZoomablePhotoProps, type SpaceToken, type SpacingPrefix, Stack, type StackProps, THREAD_AT_BOTTOM_POINTS, type TextPreset, type ThreadRowInfo, alertVariants, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, defaultNativeLightboxLabels, lightboxPanLimit, lightboxPinchScale, lightboxShouldDismiss, lightboxTouchDistance, nextRating, spaceScale, spacingClass, textVariants, threadListMode, threadNearBottom, toggleVariants, useLiquidGlass, useReduceTransparency, useToast };
|