@marktiderman/genesis-ui-native 3.10.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 +176 -34
- package/dist/data/index.js +1312 -985
- 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/data/resource-view/NativeResourceView.tsx +17 -2
- package/src/data/resource-view/__tests__/native-resource-gallery.test.tsx +8 -0
- package/src/data/resource-view/index.ts +1 -0
- package/src/data/resource-view/mapping.ts +4 -4
- 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
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { JUMP_SETTLE_MS, UseThreadJumpOptions, useThreadJump } from '@marktiderman/genesis-core/conversation';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { p as GenesisReanimatedModule, H as HapticKind } from '../native-modules-6JnyeGR-.js';
|
|
3
|
+
export { d as GenesisHapticsModule, v as playHaptic, x as useHaptics } from '../native-modules-6JnyeGR-.js';
|
|
4
4
|
import { Animated, ColorValue } from 'react-native';
|
|
5
5
|
import { MotionSprings, MotionDurations, MotionEasings, MotionLevel, MotionTokens } from '@marktiderman/genesis-design-system/tokens/motion';
|
|
6
6
|
import { ThemeRole, BrandExtensions } from '@marktiderman/genesis-design-system';
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { BrandExtensionsProvider, JUMP_SETTLE_MS, useGenesisExtension, useThreadJump } from '../chunk-FOJJB6AB.js';
|
|
2
|
-
export { animateMotion, motionSpring, motionTiming, playHaptic, sentBubbleColor, useHaptics, useMotion, usePressFeedback, useReducedMotion, useThemeMode, useThemeRoles } from '../chunk-
|
|
2
|
+
export { animateMotion, motionSpring, motionTiming, playHaptic, sentBubbleColor, useHaptics, useMotion, usePressFeedback, useReducedMotion, useThemeMode, useThemeRoles } from '../chunk-VHUUOH46.js';
|
|
3
3
|
import '../chunk-DGUM43GV.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/icons/lucide.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
export { Box, BoxBackground, BoxProps, ComposerSendAction, FULL_SCREEN_DARK, FlexAlign, FlexJustify, Grid, GridProps, Inline, InlineProps, LIGHTBOX_DISMISS_DISTANCE, LIGHTBOX_DISMISS_VELOCITY, LIGHTBOX_DOUBLE_TAP_MS, LIGHTBOX_MAX_ZOOM, NativeAccordion, NativeAccordionContent, NativeAccordionContentProps, NativeAccordionItem, NativeAccordionItemProps, NativeAccordionProps, NativeAccordionTrigger, NativeAccordionTriggerProps, NativeAccordionType, NativeAlert, NativeAlertDescription, NativeAlertDescriptionProps, NativeAlertProps, NativeAlertTitle, NativeAlertTitleProps, NativeAvatar, NativeAvatarProps, NativeBadge, NativeBadgeProps, NativeBanner, NativeBannerProps, NativeBulkAction, NativeBulkBar, NativeBulkBarProps, NativeButton, NativeButtonProps, NativeCard, NativeCardContent, NativeCardDescription, NativeCardFooter, NativeCardHeader, NativeCardProps, NativeCardTitle, NativeCardTitleProps, NativeCheckbox, NativeCheckboxProps, NativeChip, NativeChipGroup, NativeChipGroupMode, NativeChipGroupProps, NativeChipProps, NativeChoiceCard, NativeChoiceCardProps, NativeCombobox, NativeComboboxOption, NativeComboboxProps, NativeComposerBar, NativeComposerBarProps, NativeContextMenu, NativeContextMenuAction, NativeContextMenuProps, NativeDatePicker, NativeDatePickerProps, NativeDialog, NativeDialogContent, NativeDialogContentProps, NativeDialogDescription, NativeDialogDescriptionProps, NativeDialogFooter, NativeDialogFooterProps, NativeDialogHeader, NativeDialogHeaderProps, NativeDialogProps, NativeDialogTitle, NativeDialogTitleProps, NativeDrawer, NativeDrawerProps, NativeDropdownMenu, NativeDropdownMenuContent, NativeDropdownMenuContentProps, NativeDropdownMenuItem, NativeDropdownMenuItemProps, NativeDropdownMenuProps, NativeDropdownMenuTrigger, NativeDropdownMenuTriggerProps, NativeEmptyState, NativeEmptyStateProps, NativeEmptyStateVariant, NativeFullScreenModal, NativeFullScreenModalProps, NativeGalleryCard, NativeGalleryCardProps, NativeGalleryGrid, NativeGalleryGridProps, NativeGalleryLayout, NativeGlassSurface, NativeGlassSurfaceProps, NativeHeaderCard, NativeHeaderCardProps, NativeIcon, NativeIconProps, NativeImage, NativeImageProps, NativeInlineAlert, NativeInlineAlertProps, NativeInlineAlertVariant, NativeInput, NativeInputProps, NativeLabel, NativeLabelProps, NativeLightbox, NativeLightboxLabels, NativeLightboxProps, NativeListItem, NativeListItemDivider, NativeListItemProps, NativeLiveIndicator, NativeLiveIndicatorProps, NativeLiveIndicatorState, NativeLiveIndicatorVariant, NativeLoadingState, NativeLoadingStateEdge, NativeLoadingStateProps, NativeNumberInput, NativeNumberInputProps, NativePagination, NativePaginationProps, NativePopover, NativePopoverContent, NativePopoverContentProps, NativePopoverProps, NativePopoverTrigger, NativePopoverTriggerProps, NativeProgress, NativeProgressProps, NativeRadioGroup, NativeRadioGroupItem, NativeRadioGroupItemProps, NativeRadioGroupProps, NativeRangeSlider, NativeRangeSliderProps, NativeRating, NativeRatingProps, NativeRatingSize, NativeRatingTone, NativeRefreshControl, NativeRefreshControlProps, NativeSearchBar, NativeSearchBarProps, NativeSectionListHeader, NativeSectionListHeaderProps, NativeSegmentedControl, NativeSegmentedControlOption, NativeSegmentedControlProps, NativeSelect, NativeSelectContent, NativeSelectContentProps, NativeSelectItem, NativeSelectItemProps, NativeSelectProps, NativeSelectTrigger, NativeSelectTriggerProps, NativeSeparator, NativeSeparatorProps, NativeShareSheet, NativeShareSheetProps, NativeSheet, NativeSheetLibrary, NativeSheetProps, NativeSheetProvider, NativeSheetProviderProps, NativeSheetScrollView, NativeSkeleton, NativeSkeletonProps, NativeSlider, NativeSliderProps, NativeStepper, NativeStepperProps, NativeStepperStep, NativeSwipeRow, NativeSwipeRowProps, NativeSwitch, NativeSwitchProps, NativeTabBar, NativeTabBarItem, NativeTabBarProps, NativeTabs, NativeTabsContent, NativeTabsContentProps, NativeTabsList, NativeTabsListProps, NativeTabsProps, NativeTabsTrigger, NativeTabsTriggerProps, NativeText, NativeTextProps, NativeTextarea, NativeTextareaProps, NativeThreadList, NativeThreadListHandle, NativeThreadListProps, NativeTierBadge, NativeTierBadgeProps, NativeTimePicker, NativeTimePickerProps, NativeToastOptions, NativeToastProvider, NativeToastProviderProps, NativeToastVariant, NativeToggle, NativeToggleProps, NativeTooltip, NativeTooltipContent, NativeTooltipContentProps, NativeTooltipProps, NativeTooltipTrigger, NativeTooltipTriggerProps, NativeWhatsNewNote, NativeWhatsNewSheet, NativeWhatsNewSheetProps, NativeZoomablePhoto, NativeZoomablePhotoProps, SpaceToken, SpacingPrefix, Stack, StackProps, THREAD_AT_BOTTOM_POINTS, TextPreset, ThreadRowInfo, alertVariants, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, defaultNativeLightboxLabels, lightboxPanLimit, lightboxPinchScale, lightboxShouldDismiss, lightboxTouchDistance, nextRating, spaceScale, spacingClass, textVariants, threadListMode, threadNearBottom, toggleVariants, useLiquidGlass, useReduceTransparency, useToast } from './components/index.js';
|
|
2
|
-
export { G as GenesisDatePickerComponent, a as GenesisDatePickerProps, b as
|
|
1
|
+
export { Box, BoxBackground, BoxProps, ComposerSendAction, FULL_SCREEN_DARK, FlexAlign, FlexJustify, Grid, GridProps, Inline, InlineProps, LIGHTBOX_DISMISS_DISTANCE, LIGHTBOX_DISMISS_VELOCITY, LIGHTBOX_DOUBLE_TAP_MS, LIGHTBOX_MAX_ZOOM, NativeAccordion, NativeAccordionContent, NativeAccordionContentProps, NativeAccordionItem, NativeAccordionItemProps, NativeAccordionProps, NativeAccordionTrigger, NativeAccordionTriggerProps, NativeAccordionType, NativeAlert, NativeAlertDescription, NativeAlertDescriptionProps, NativeAlertProps, NativeAlertTitle, NativeAlertTitleProps, NativeAvatar, NativeAvatarProps, NativeBadge, NativeBadgeProps, NativeBanner, NativeBannerProps, NativeBulkAction, NativeBulkBar, NativeBulkBarProps, NativeButton, NativeButtonGroup, NativeButtonGroupProps, NativeButtonProps, NativeCalendar, NativeCalendarProps, NativeCalendarRange, NativeCard, NativeCardContent, NativeCardDescription, NativeCardFooter, NativeCardHeader, NativeCardProps, NativeCardTitle, NativeCardTitleProps, NativeCarousel, NativeCarouselProps, NativeChartConfig, NativeChartContainer, NativeChartContainerProps, NativeCheckbox, NativeCheckboxProps, NativeChip, NativeChipGroup, NativeChipGroupMode, NativeChipGroupProps, NativeChipGroupValue, NativeChipProps, NativeChoiceCard, NativeChoiceCardCheckboxProps, NativeChoiceCardPressProps, NativeChoiceCardProps, NativeChoiceCardRadioProps, NativeCombobox, NativeComboboxOption, NativeComboboxProps, NativeComposerBar, NativeComposerBarProps, NativeContextMenu, NativeContextMenuAction, NativeContextMenuProps, NativeDatePicker, NativeDatePickerProps, NativeDialog, NativeDialogContent, NativeDialogContentProps, NativeDialogDescription, NativeDialogDescriptionProps, NativeDialogFooter, NativeDialogFooterProps, NativeDialogHeader, NativeDialogHeaderProps, NativeDialogProps, NativeDialogTitle, NativeDialogTitleProps, NativeDrawer, NativeDrawerProps, NativeDropdownMenu, NativeDropdownMenuContent, NativeDropdownMenuContentProps, NativeDropdownMenuItem, NativeDropdownMenuItemProps, NativeDropdownMenuProps, NativeDropdownMenuTrigger, NativeDropdownMenuTriggerProps, NativeEmptyState, NativeEmptyStateProps, NativeEmptyStateVariant, NativeFollowUpEntry, NativeFollowUpList, NativeFollowUpListProps, NativeFullScreenModal, NativeFullScreenModalProps, NativeGalleryCard, NativeGalleryCardProps, NativeGalleryGrid, NativeGalleryGridProps, NativeGalleryLayout, NativeGlassSurface, NativeGlassSurfaceProps, NativeHeaderCard, NativeHeaderCardProps, NativeHeadlineNumbers, NativeHeadlineNumbersProps, NativeIcon, NativeIconProps, NativeImage, NativeImageProps, NativeInlineAlert, NativeInlineAlertProps, NativeInlineAlertVariant, NativeInput, NativeInputGroup, NativeInputGroupProps, NativeInputOTP, NativeInputOTPProps, NativeInputProps, NativeLabel, NativeLabelProps, NativeLightbox, NativeLightboxLabels, NativeLightboxProps, NativeListItem, NativeListItemDivider, NativeListItemProps, NativeLiveIndicator, NativeLiveIndicatorProps, NativeLiveIndicatorState, NativeLiveIndicatorVariant, NativeLoadingState, NativeLoadingStateEdge, NativeLoadingStateProps, NativeNoFeaturesFound, NativeNoFeedbackFound, NativeNoSearchResults, NativeNumberInput, NativeNumberInputProps, NativePagination, NativePaginationProps, NativePasswordToggleField, NativePasswordToggleFieldProps, NativePopover, NativePopoverContent, NativePopoverContentProps, NativePopoverProps, NativePopoverTrigger, NativePopoverTriggerProps, NativeProgress, NativeProgressProps, NativeRadioGroup, NativeRadioGroupItem, NativeRadioGroupItemProps, NativeRadioGroupProps, NativeRangeSlider, NativeRangeSliderProps, NativeRating, NativeRatingProps, NativeRatingSize, NativeRatingTone, NativeReadinessChip, NativeReadinessChipProps, NativeRefreshControl, NativeRefreshControlProps, NativeResourceSettingsPage, NativeResourceSettingsPageProps, NativeResourceSettingsSection, NativeResponsesToolbar, NativeResponsesToolbarProps, NativeResponsesView, NativeSearchBar, NativeSearchBarProps, NativeSectionListHeader, NativeSectionListHeaderProps, NativeSegmentedControl, NativeSegmentedControlOption, NativeSegmentedControlProps, NativeSelect, NativeSelectContent, NativeSelectContentProps, NativeSelectItem, NativeSelectItemProps, NativeSelectProps, NativeSelectTrigger, NativeSelectTriggerProps, NativeSeparator, NativeSeparatorProps, NativeSettingsRow, NativeSettingsRowProps, NativeShareSheet, NativeShareSheetProps, NativeSheet, NativeSheetLibrary, NativeSheetProps, NativeSheetProvider, NativeSheetProviderProps, NativeSheetScrollView, NativeSkeleton, NativeSkeletonProps, NativeSlider, NativeSliderProps, NativeSortableList, NativeSortableListItemContext, NativeSortableListLabels, NativeSortableListProps, NativeStatCard, NativeStatCardColor, NativeStatCardProps, NativeStatusBadge, NativeStatusBadgeProps, NativeStepper, NativeStepperProps, NativeStepperStep, NativeSummaryCard, NativeSummaryCardProps, NativeSwipeRow, NativeSwipeRowProps, NativeSwitch, NativeSwitchProps, NativeTabBar, NativeTabBarItem, NativeTabBarProps, NativeTabs, NativeTabsContent, NativeTabsContentProps, NativeTabsList, NativeTabsListProps, NativeTabsProps, NativeTabsTrigger, NativeTabsTriggerProps, NativeText, NativeTextProps, NativeTextarea, NativeTextareaProps, NativeThreadList, NativeThreadListHandle, NativeThreadListProps, NativeTierBadge, NativeTierBadgeProps, NativeTimePicker, NativeTimePickerProps, NativeToastOptions, NativeToastProvider, NativeToastProviderProps, NativeToastVariant, NativeToggle, NativeToggleProps, NativeToggleRow, NativeToggleRowProps, NativeTooltip, NativeTooltipContent, NativeTooltipContentProps, NativeTooltipProps, NativeTooltipTrigger, NativeTooltipTriggerProps, NativeUserAvatar, NativeUserAvatarProps, NativeWhatsNewNote, NativeWhatsNewSheet, NativeWhatsNewSheetProps, NativeWorkspaceSwitcher, NativeWorkspaceSwitcherProps, NativeZoomablePhoto, NativeZoomablePhotoProps, SpaceToken, SpacingPrefix, Stack, StackProps, THREAD_AT_BOTTOM_POINTS, TextPreset, ThreadRowInfo, alertVariants, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, defaultNativeLightboxLabels, lightboxPanLimit, lightboxPinchScale, lightboxShouldDismiss, lightboxTouchDistance, nextRating, spaceScale, spacingClass, textVariants, threadListMode, threadNearBottom, toggleVariants, useLiquidGlass, useReduceTransparency, useToast } from './components/index.js';
|
|
2
|
+
export { G as GenesisDatePickerComponent, a as GenesisDatePickerProps, b as GenesisFilePicker, c as GenesisGlassModule, d as GenesisHapticsModule, 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, H as HapticKind, K as KeyboardAvoidingLike, N as NATIVE_ICON_NAMES, t as NativeIconName, u as NativePickedFile, S as SF_SYMBOLS, v as playHaptic, w as useGenesisModules, x as useHaptics } from './native-modules-6JnyeGR-.js';
|
|
3
3
|
export { DEFAULT_GALLERY_RATIO, GALLERY_DEFAULTS, GalleryItem, GalleryTileAspect, JustifiedRow, JustifiedTile, galleryItemRatio, justifyRows } from '@marktiderman/genesis-core/gallery';
|
|
4
4
|
export { BrandExtensionsProvider, BrandExtensionsProviderProps, BrandExtensionsValue, MotionHow, MotionSpringConfig, MotionTimingConfig, PressFeedback, PressFeedbackOptions, ThemeMode, ThemeRoleColors, UseMotionOptions, UseThemeRolesOptions, animateMotion, motionSpring, motionTiming, sentBubbleColor, useGenesisExtension, useMotion, usePressFeedback, useReducedMotion, useThemeMode, useThemeRoles } from './hooks/index.js';
|
|
5
5
|
export { ComposerMode, ComposerTone, InboxItem, InboxSwipeAction, JUMP_SETTLE_MS, MessageTone, ThreadAttachment, ThreadComposer, ThreadLabels, ThreadMessage, ThreadMessageStatus, UseThreadJumpOptions, formatInboxTime, readReceiptFor, useThreadJump } from '@marktiderman/genesis-core/conversation';
|
|
6
6
|
export { I as InboxPage, a as InboxPageProps, b as InboxPageSlotMap, S as SafeAreaEdge, c as ScreenContainer, d as ScreenContainerProps, e as ScreenHeaderProps, f as ScrollEdgeBehavior, g as composeHeaderOptions, h as getInboxPageStackOptions, s as showInboxActions } from './inbox-page-BGqR_cBs.js';
|
|
7
|
-
export { AppleButtonModuleLike, AppleProviderOptions, AppleSignInButton, AppleSignInButtonProps, AuthBranding, AuthBrandingProps, AuthForm, AuthFormProps, AuthFormValues, AuthScreen, AuthScreenProps, AuthScreenSlotMap, ForgotPasswordLink, GoogleProviderOptions, KEYBOARD_TOOLBAR_HEIGHT, KeyboardScrollProps, KeyboardScrollProvider, KeyboardToolbarProps, NavBarSaveButton, NavBarSaveButtonProps, NavBarSearchBar, NavBarSearchBarProps, NavBarTitle, NavBarTitleProps, NotificationItem, NotificationsPage, NotificationsPageProps, NotificationsPageSlotMap, SettingsPage, SettingsPageDangerousAction, SettingsPageProps, SettingsPageRow, SettingsPageSection, SettingsPageSlotMap, SettingsSubPage, SettingsSubPageProps, SocialAuthProvider, SocialAuthRow, SocialAuthRowProps, ThreadPage, ThreadPageProps, ThreadPageSlotMap, appleProvider, confirmDiscardChanges, defaultStickyHeaderOffset, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, useKeyboardScroll, useKeyboardToolbar } from './layouts/index.js';
|
|
7
|
+
export { AppleButtonModuleLike, AppleProviderOptions, AppleSignInButton, AppleSignInButtonProps, AuthBranding, AuthBrandingProps, AuthForm, AuthFormProps, AuthFormValues, AuthScreen, AuthScreenProps, AuthScreenSlotMap, DashboardPage, DashboardPageProps, DetailPage, DetailPageProps, DocumentPage, DocumentPageProps, ForgotPasswordLink, FormPage, FormPageProps, GoogleProviderOptions, KEYBOARD_TOOLBAR_HEIGHT, KeyboardScrollProps, KeyboardScrollProvider, KeyboardStickyProps, KeyboardToolbarProps, NavBarSaveButton, NavBarSaveButtonProps, NavBarSearchBar, NavBarSearchBarProps, NavBarTitle, NavBarTitleProps, NotificationItem, NotificationsPage, NotificationsPageProps, NotificationsPageSlotMap, SettingsPage, SettingsPageDangerousAction, SettingsPageProps, SettingsPageRow, SettingsPageSection, SettingsPageSlotMap, SettingsSubPage, SettingsSubPageProps, SocialAuthProvider, SocialAuthRow, SocialAuthRowProps, ThreadPage, ThreadPageProps, ThreadPageSlotMap, appleProvider, confirmDiscardChanges, defaultStickyHeaderOffset, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, useKeyboardScroll, useKeyboardSticky, useKeyboardToolbar } from './layouts/index.js';
|
|
8
8
|
export { cn } from './utils.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import 'class-variance-authority/types';
|
|
11
11
|
import 'class-variance-authority';
|
|
12
12
|
import 'react-native';
|
|
13
|
+
import '@marktiderman/genesis-core/headless';
|
|
14
|
+
import '@marktiderman/genesis-core/resource';
|
|
15
|
+
import '@marktiderman/genesis-core/workspaces';
|
|
13
16
|
import '@marktiderman/genesis-design-system/tokens/motion';
|
|
14
17
|
import '@marktiderman/genesis-design-system';
|
|
15
18
|
import '@marktiderman/genesis-core/slots';
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { Box, FULL_SCREEN_DARK, Grid, Inline, LIGHTBOX_DISMISS_DISTANCE, LIGHTBOX_DISMISS_VELOCITY, LIGHTBOX_DOUBLE_TAP_MS, LIGHTBOX_MAX_ZOOM, NativeAccordion, NativeAccordionContent, NativeAccordionItem, NativeAccordionTrigger, NativeBulkBar, NativeChip, NativeChipGroup, NativeChoiceCard, NativeCombobox, NativeDialog, NativeDialogContent, NativeDialogDescription, NativeDialogFooter, NativeDialogHeader, NativeDialogTitle, NativeDrawer, NativeDropdownMenu, NativeDropdownMenuContent, NativeDropdownMenuItem, NativeDropdownMenuTrigger, NativeFullScreenModal, NativeGalleryCard, NativeGlassSurface, NativeHeaderCard, NativeLightbox, NativeLiveIndicator, NativeNumberInput, NativePagination, NativePopover, NativePopoverContent, NativePopoverTrigger,
|
|
2
|
-
export { DEFAULT_GALLERY_RATIO, GALLERY_DEFAULTS, NativeAlert, NativeAlertDescription, NativeAlertTitle, NativeAvatar,
|
|
1
|
+
export { Box, FULL_SCREEN_DARK, Grid, Inline, LIGHTBOX_DISMISS_DISTANCE, LIGHTBOX_DISMISS_VELOCITY, LIGHTBOX_DOUBLE_TAP_MS, LIGHTBOX_MAX_ZOOM, NativeAccordion, NativeAccordionContent, NativeAccordionItem, NativeAccordionTrigger, NativeBulkBar, NativeButtonGroup, NativeCalendar, NativeCarousel, NativeChartContainer, NativeChip, NativeChipGroup, NativeChoiceCard, NativeCombobox, NativeDialog, NativeDialogContent, NativeDialogDescription, NativeDialogFooter, NativeDialogHeader, NativeDialogTitle, NativeDrawer, NativeDropdownMenu, NativeDropdownMenuContent, NativeDropdownMenuItem, NativeDropdownMenuTrigger, NativeFollowUpList, NativeFullScreenModal, NativeGalleryCard, NativeGlassSurface, NativeHeaderCard, NativeHeadlineNumbers, NativeInputGroup, NativeInputOTP, NativeLightbox, NativeLiveIndicator, NativeNumberInput, NativePagination, NativePasswordToggleField, NativePopover, NativePopoverContent, NativePopoverTrigger, NativeRadioGroup, NativeRadioGroupItem, NativeRangeSlider, NativeRating, NativeReadinessChip, NativeResourceSettingsPage, NativeResponsesToolbar, NativeSettingsRow, NativeShareSheet, NativeSlider, NativeSortableList, NativeStatCard, NativeStatusBadge, NativeStepper, NativeSummaryCard, NativeTabBar, NativeTabs, NativeTabsContent, NativeTabsList, NativeTabsTrigger, NativeTierBadge, NativeToastProvider, NativeToggle, NativeToggleRow, NativeTooltip, NativeTooltipContent, NativeTooltipTrigger, NativeUserAvatar, NativeWhatsNewSheet, NativeWorkspaceSwitcher, NativeZoomablePhoto, Stack, defaultNativeLightboxLabels, lightboxPanLimit, lightboxPinchScale, lightboxShouldDismiss, lightboxTouchDistance, nextRating, spaceScale, spacingClass, toggleVariants, useLiquidGlass, useReduceTransparency, useToast } from './chunk-X5CPLUPZ.js';
|
|
2
|
+
export { DEFAULT_GALLERY_RATIO, GALLERY_DEFAULTS, NativeAlert, NativeAlertDescription, NativeAlertTitle, NativeAvatar, NativeCard, NativeCardContent, NativeCardDescription, NativeCardFooter, NativeCardHeader, NativeCardTitle, NativeCheckbox, NativeDatePicker, NativeGalleryGrid, NativeLabel, NativeProgress, NativeSearchBar, NativeSegmentedControl, NativeSelect, NativeSelectContent, NativeSelectItem, NativeSelectTrigger, NativeSeparator, NativeSwitch, NativeTextarea, NativeTimePicker, alertVariants, galleryItemRatio, justifyRows } from './chunk-47CDRP43.js';
|
|
3
3
|
export { BrandExtensionsProvider, JUMP_SETTLE_MS, useGenesisExtension, useThreadJump } from './chunk-FOJJB6AB.js';
|
|
4
|
-
export { AppleSignInButton, AuthBranding, AuthForm, AuthScreen, ForgotPasswordLink, KEYBOARD_TOOLBAR_HEIGHT, KeyboardScrollProvider, NotificationsPage, SettingsPage, SettingsSubPage, SocialAuthRow, ThreadPage, appleProvider, confirmDiscardChanges, defaultStickyHeaderOffset, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, readReceiptFor, useKeyboardScroll, useKeyboardToolbar } from './chunk-
|
|
5
|
-
export { NativeComposerBar, NativeThreadList, THREAD_AT_BOTTOM_POINTS, threadListMode, threadNearBottom } from './chunk-
|
|
6
|
-
export { InboxPage, NavBarSaveButton, NavBarSearchBar, NavBarTitle, ScreenContainer, composeHeaderOptions, formatInboxTime, getInboxPageStackOptions, showInboxActions } from './chunk-
|
|
7
|
-
export { NATIVE_ICON_NAMES, NativeBadge, NativeButton, NativeContextMenu, NativeEmptyState, NativeIcon, NativeInput, NativeListItem, NativeListItemDivider, NativeLoadingState, NativeRefreshControl, NativeSectionListHeader, NativeSheet, NativeSheetProvider, NativeSheetScrollView, NativeSkeleton, NativeSwipeRow, NativeText, SF_SYMBOLS, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, textVariants } from './chunk-
|
|
8
|
-
export { GenesisModulesProvider, animateMotion, motionSpring, motionTiming, playHaptic, sentBubbleColor, useGenesisModules, useHaptics, useMotion, usePressFeedback, useReducedMotion, useThemeMode, useThemeRoles } from './chunk-
|
|
4
|
+
export { AppleSignInButton, AuthBranding, AuthForm, AuthScreen, DashboardPage, DetailPage, DocumentPage, ForgotPasswordLink, FormPage, KEYBOARD_TOOLBAR_HEIGHT, KeyboardScrollProvider, NotificationsPage, SettingsPage, SettingsSubPage, SocialAuthRow, ThreadPage, appleProvider, confirmDiscardChanges, defaultStickyHeaderOffset, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, readReceiptFor, useKeyboardScroll, useKeyboardSticky, useKeyboardToolbar } from './chunk-C2ARUGT7.js';
|
|
5
|
+
export { NativeComposerBar, NativeThreadList, THREAD_AT_BOTTOM_POINTS, threadListMode, threadNearBottom } from './chunk-BQYT6TH2.js';
|
|
6
|
+
export { InboxPage, NavBarSaveButton, NavBarSearchBar, NavBarTitle, ScreenContainer, composeHeaderOptions, formatInboxTime, getInboxPageStackOptions, showInboxActions } from './chunk-TUDJDIGC.js';
|
|
7
|
+
export { NATIVE_ICON_NAMES, NativeBadge, NativeBanner, NativeButton, NativeContextMenu, NativeEmptyState, NativeIcon, NativeImage, NativeInlineAlert, NativeInput, NativeListItem, NativeListItemDivider, NativeLoadingState, NativeNoFeaturesFound, NativeNoFeedbackFound, NativeNoSearchResults, NativeRefreshControl, NativeSectionListHeader, NativeSheet, NativeSheetProvider, NativeSheetScrollView, NativeSkeleton, NativeSwipeRow, NativeText, SF_SYMBOLS, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, textVariants } from './chunk-D4UU6KIF.js';
|
|
8
|
+
export { GenesisModulesProvider, animateMotion, motionSpring, motionTiming, playHaptic, sentBubbleColor, useGenesisModules, useHaptics, useMotion, usePressFeedback, useReducedMotion, useThemeMode, useThemeRoles } from './chunk-VHUUOH46.js';
|
|
9
9
|
export { cn } from './chunk-OHZD7KRO.js';
|
|
10
10
|
import './chunk-DGUM43GV.js';
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
package/dist/layouts/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as ScreenHeaderProps } from '../inbox-page-BGqR_cBs.js';
|
|
2
|
-
export { I as InboxPage, a as InboxPageProps, b as InboxPageSlotMap, S as SafeAreaEdge, c as ScreenContainer,
|
|
1
|
+
import { e as ScreenHeaderProps, d as ScreenContainerProps } from '../inbox-page-BGqR_cBs.js';
|
|
2
|
+
export { I as InboxPage, a as InboxPageProps, b as InboxPageSlotMap, S as SafeAreaEdge, c as ScreenContainer, f as ScrollEdgeBehavior, g as composeHeaderOptions, h as getInboxPageStackOptions, s as showInboxActions } from '../inbox-page-BGqR_cBs.js';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { ReactNode, ComponentType } from 'react';
|
|
5
5
|
import { Slots, SlotPropsFor } from '@marktiderman/genesis-core/slots';
|
|
@@ -229,6 +229,11 @@ type NotificationsPageSlotMap = {
|
|
|
229
229
|
interface NotificationsPageProps extends ScreenHeaderProps {
|
|
230
230
|
/** Notification items. Empty array → empty state. */
|
|
231
231
|
items: NotificationItem[];
|
|
232
|
+
/**
|
|
233
|
+
* The zone whose days the headings count (an IANA name), as the web's NotificationsPage takes
|
|
234
|
+
* it. Default the device's, which is the person's own.
|
|
235
|
+
*/
|
|
236
|
+
timeZone?: string;
|
|
232
237
|
/** When true, the SectionList shows the refresh spinner. */
|
|
233
238
|
refreshing?: boolean;
|
|
234
239
|
/** Pull-to-refresh handler. */
|
|
@@ -285,7 +290,7 @@ declare function iosCompactNavigationBarHeight(version: number | string): number
|
|
|
285
290
|
* header; elsewhere 0 (the header sits above the list).
|
|
286
291
|
*/
|
|
287
292
|
declare function defaultStickyHeaderOffset(os: string, version: number | string, safeAreaTop: number): number;
|
|
288
|
-
declare function NotificationsPage({ items, refreshing, onRefresh, emptyState, emptyTitle, emptyBody, className, testID, slots, slotProps, stickyHeaderOffset, }: NotificationsPageProps): react.JSX.Element;
|
|
293
|
+
declare function NotificationsPage({ items, timeZone, refreshing, onRefresh, emptyState, emptyTitle, emptyBody, className, testID, slots, slotProps, stickyHeaderOffset, }: NotificationsPageProps): react.JSX.Element;
|
|
289
294
|
|
|
290
295
|
type ThreadPageSlotMap = {
|
|
291
296
|
message: ThreadMessage & {
|
|
@@ -489,6 +494,60 @@ declare function ForgotPasswordLink({ onPress, label, testID, }: {
|
|
|
489
494
|
testID?: string;
|
|
490
495
|
}): react.JSX.Element;
|
|
491
496
|
|
|
497
|
+
type ContainerProps = Pick<ScreenContainerProps, "onRefresh" | "refreshing" | "loading" | "loadingLabel" | "safeAreaEdges" | "className" | "contentClassName">;
|
|
498
|
+
interface PageTitleProps {
|
|
499
|
+
title: ReactNode;
|
|
500
|
+
subtitle?: ReactNode;
|
|
501
|
+
actions?: ReactNode;
|
|
502
|
+
/** Leave the in-page title out (the stack header shows it). */
|
|
503
|
+
hideTitle?: boolean;
|
|
504
|
+
testID?: string;
|
|
505
|
+
}
|
|
506
|
+
interface DashboardPageProps extends PageTitleProps, ContainerProps {
|
|
507
|
+
/** Stat tiles (NativeStatCard), two to a row. */
|
|
508
|
+
stats?: ReactNode;
|
|
509
|
+
/** Tiles per row. Default 2. */
|
|
510
|
+
statColumns?: 1 | 2 | 3;
|
|
511
|
+
children?: ReactNode;
|
|
512
|
+
}
|
|
513
|
+
declare function DashboardPage({ title, subtitle, actions, hideTitle, stats, statColumns, children, testID, ...container }: DashboardPageProps): react.JSX.Element;
|
|
514
|
+
interface DetailPageProps extends PageTitleProps, ContainerProps {
|
|
515
|
+
/** Above the title (a parent's name). */
|
|
516
|
+
breadcrumb?: ReactNode;
|
|
517
|
+
/** The web's side column; on a phone it follows the content. */
|
|
518
|
+
sidebar?: ReactNode;
|
|
519
|
+
children?: ReactNode;
|
|
520
|
+
}
|
|
521
|
+
declare function DetailPage({ title, subtitle, actions, hideTitle, breadcrumb, sidebar, children, testID, ...container }: DetailPageProps): react.JSX.Element;
|
|
522
|
+
interface DocumentPageProps extends PageTitleProps, ContainerProps {
|
|
523
|
+
/** An emoji, an image or an icon over the title. */
|
|
524
|
+
icon?: ReactNode;
|
|
525
|
+
/** A banner across the top: an image URL, or your own node. */
|
|
526
|
+
cover?: string | ReactNode;
|
|
527
|
+
/** `reading` (default) keeps a reading column on a tablet; `full` uses the width. */
|
|
528
|
+
width?: "reading" | "full";
|
|
529
|
+
children?: ReactNode;
|
|
530
|
+
}
|
|
531
|
+
declare function DocumentPage({ title, subtitle, actions, hideTitle, icon, cover, width, children, testID, ...container }: DocumentPageProps): react.JSX.Element;
|
|
532
|
+
interface FormPageProps extends ContainerProps {
|
|
533
|
+
title: ReactNode;
|
|
534
|
+
description?: ReactNode;
|
|
535
|
+
/** A summary of what to fix, over the fields. */
|
|
536
|
+
errors?: ReactNode;
|
|
537
|
+
/**
|
|
538
|
+
* The Save / Cancel row. It stays above the keyboard: through the app's keyboard-aware scroll
|
|
539
|
+
* view and `KeyboardStickyView` when it gave them (`KeyboardScrollProvider`), else in a
|
|
540
|
+
* KeyboardAvoidingView. With a keyboard-aware scroll view but no sticky view, it ends the form.
|
|
541
|
+
* A touch on it dismisses the keyboard first, so the focused field commits what's typed before
|
|
542
|
+
* the button's press runs.
|
|
543
|
+
*/
|
|
544
|
+
actions?: ReactNode;
|
|
545
|
+
hideTitle?: boolean;
|
|
546
|
+
children?: ReactNode;
|
|
547
|
+
testID?: string;
|
|
548
|
+
}
|
|
549
|
+
declare function FormPage({ title, description, errors, actions, hideTitle, children, testID, onRefresh: _onRefresh, refreshing: _refreshing, ...container }: FormPageProps): react.JSX.Element;
|
|
550
|
+
|
|
492
551
|
/** The parts of an {@link AuthScreen} that `slots` and `slotProps` reach. */
|
|
493
552
|
type AuthScreenSlotMap = {
|
|
494
553
|
branding: AuthBrandingProps;
|
|
@@ -560,18 +619,32 @@ interface KeyboardToolbarProps {
|
|
|
560
619
|
* `src/components/KeyboardToolbar/constants.ts` (1.22): move them together.
|
|
561
620
|
*/
|
|
562
621
|
declare const KEYBOARD_TOOLBAR_HEIGHT = 42;
|
|
622
|
+
/** The props Genesis passes to a view that rides on the keyboard (`KeyboardStickyView`). */
|
|
623
|
+
interface KeyboardStickyProps {
|
|
624
|
+
children?: ReactNode;
|
|
625
|
+
/** Extra distance from the keyboard, closed and open. */
|
|
626
|
+
offset?: {
|
|
627
|
+
closed?: number;
|
|
628
|
+
opened?: number;
|
|
629
|
+
};
|
|
630
|
+
}
|
|
563
631
|
interface KeyboardScrollValue {
|
|
564
632
|
component: ComponentType<KeyboardScrollProps>;
|
|
565
633
|
toolbar: ComponentType<KeyboardToolbarProps> | null;
|
|
634
|
+
sticky: ComponentType<KeyboardStickyProps> | null;
|
|
566
635
|
}
|
|
567
|
-
declare function KeyboardScrollProvider({ component, toolbar, children, }: {
|
|
636
|
+
declare function KeyboardScrollProvider({ component, toolbar, sticky, children, }: {
|
|
568
637
|
component: ComponentType<KeyboardScrollProps>;
|
|
569
638
|
/** `KeyboardToolbar` from react-native-keyboard-controller: previous / next / done above the keyboard. */
|
|
570
|
-
toolbar?: ComponentType<KeyboardToolbarProps
|
|
639
|
+
toolbar?: ComponentType<KeyboardToolbarProps> | undefined;
|
|
640
|
+
/** `KeyboardStickyView` from react-native-keyboard-controller: keeps a form's action bar above the keyboard. */
|
|
641
|
+
sticky?: ComponentType<KeyboardStickyProps> | undefined;
|
|
571
642
|
children: ReactNode;
|
|
572
643
|
}): react.FunctionComponentElement<react.ProviderProps<KeyboardScrollValue | null>>;
|
|
573
644
|
/** The app's keyboard-aware scroll view, or null when none was provided. */
|
|
574
645
|
declare function useKeyboardScroll(): ComponentType<KeyboardScrollProps> | null;
|
|
646
|
+
/** The app's keyboard-riding view for a bottom bar, or null when none was provided (or no scroll view to go with it). */
|
|
647
|
+
declare function useKeyboardSticky(): ComponentType<KeyboardStickyProps> | null;
|
|
575
648
|
/** The app's keyboard toolbar, or null when none was provided (or no scroll view to go with it). */
|
|
576
649
|
declare function useKeyboardToolbar(): ComponentType<KeyboardToolbarProps> | null;
|
|
577
650
|
|
|
@@ -675,4 +748,4 @@ interface GoogleProviderOptions {
|
|
|
675
748
|
*/
|
|
676
749
|
declare function googleProvider({ onPress, label, icon, disabled, enabled }: GoogleProviderOptions): SocialAuthProvider | null;
|
|
677
750
|
|
|
678
|
-
export { type AppleButtonModuleLike, type AppleProviderOptions, AppleSignInButton, type AppleSignInButtonProps, AuthBranding, type AuthBrandingProps, AuthForm, type AuthFormProps, type AuthFormValues, AuthScreen, type AuthScreenProps, type AuthScreenSlotMap, ForgotPasswordLink, type GoogleProviderOptions, KEYBOARD_TOOLBAR_HEIGHT, type KeyboardScrollProps, KeyboardScrollProvider, type KeyboardToolbarProps, NavBarSaveButton, type NavBarSaveButtonProps, NavBarSearchBar, type NavBarSearchBarProps, NavBarTitle, type NavBarTitleProps, type NotificationItem, NotificationsPage, type NotificationsPageProps, type NotificationsPageSlotMap, ScreenHeaderProps, SettingsPage, type SettingsPageDangerousAction, type SettingsPageProps, type SettingsPageRow, type SettingsPageSection, type SettingsPageSlotMap, SettingsSubPage, type SettingsSubPageProps, type SocialAuthProvider, SocialAuthRow, type SocialAuthRowProps, ThreadPage, type ThreadPageProps, type ThreadPageSlotMap, appleProvider, confirmDiscardChanges, defaultStickyHeaderOffset, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, useKeyboardScroll, useKeyboardToolbar };
|
|
751
|
+
export { type AppleButtonModuleLike, type AppleProviderOptions, AppleSignInButton, type AppleSignInButtonProps, AuthBranding, type AuthBrandingProps, AuthForm, type AuthFormProps, type AuthFormValues, AuthScreen, type AuthScreenProps, type AuthScreenSlotMap, DashboardPage, type DashboardPageProps, DetailPage, type DetailPageProps, DocumentPage, type DocumentPageProps, ForgotPasswordLink, FormPage, type FormPageProps, type GoogleProviderOptions, KEYBOARD_TOOLBAR_HEIGHT, type KeyboardScrollProps, KeyboardScrollProvider, type KeyboardStickyProps, type KeyboardToolbarProps, NavBarSaveButton, type NavBarSaveButtonProps, NavBarSearchBar, type NavBarSearchBarProps, NavBarTitle, type NavBarTitleProps, type NotificationItem, NotificationsPage, type NotificationsPageProps, type NotificationsPageSlotMap, ScreenContainerProps, ScreenHeaderProps, SettingsPage, type SettingsPageDangerousAction, type SettingsPageProps, type SettingsPageRow, type SettingsPageSection, type SettingsPageSlotMap, SettingsSubPage, type SettingsSubPageProps, type SocialAuthProvider, SocialAuthRow, type SocialAuthRowProps, ThreadPage, type ThreadPageProps, type ThreadPageSlotMap, appleProvider, confirmDiscardChanges, defaultStickyHeaderOffset, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, useKeyboardScroll, useKeyboardSticky, useKeyboardToolbar };
|
package/dist/layouts/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { AppleSignInButton, AuthBranding, AuthForm, AuthScreen, ForgotPasswordLink, KEYBOARD_TOOLBAR_HEIGHT, KeyboardScrollProvider, NotificationsPage, SettingsPage, SettingsSubPage, SocialAuthRow, ThreadPage, appleProvider, confirmDiscardChanges, defaultStickyHeaderOffset, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, readReceiptFor, useKeyboardScroll, useKeyboardToolbar } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
export { InboxPage, NavBarSaveButton, NavBarSearchBar, NavBarTitle, ScreenContainer, composeHeaderOptions, formatInboxTime, getInboxPageStackOptions, showInboxActions } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
1
|
+
export { AppleSignInButton, AuthBranding, AuthForm, AuthScreen, DashboardPage, DetailPage, DocumentPage, ForgotPasswordLink, FormPage, KEYBOARD_TOOLBAR_HEIGHT, KeyboardScrollProvider, NotificationsPage, SettingsPage, SettingsSubPage, SocialAuthRow, ThreadPage, appleProvider, confirmDiscardChanges, defaultStickyHeaderOffset, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, readReceiptFor, useKeyboardScroll, useKeyboardSticky, useKeyboardToolbar } from '../chunk-C2ARUGT7.js';
|
|
2
|
+
import '../chunk-BQYT6TH2.js';
|
|
3
|
+
export { InboxPage, NavBarSaveButton, NavBarSearchBar, NavBarTitle, ScreenContainer, composeHeaderOptions, formatInboxTime, getInboxPageStackOptions, showInboxActions } from '../chunk-TUDJDIGC.js';
|
|
4
|
+
import '../chunk-D4UU6KIF.js';
|
|
5
|
+
import '../chunk-VHUUOH46.js';
|
|
6
6
|
import '../chunk-OHZD7KRO.js';
|
|
7
7
|
import '../chunk-DGUM43GV.js';
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -302,6 +302,60 @@ interface GenesisModules {
|
|
|
302
302
|
haptics?: GenesisHapticsModule;
|
|
303
303
|
/** react-native-gesture-handler's `ReanimatedSwipeable`: NativeSwipeRow and InboxPage's rows. Without it, no swipe; the actions stay on long press. */
|
|
304
304
|
swipeable?: GenesisSwipeableComponent;
|
|
305
|
+
/**
|
|
306
|
+
* react-native-svg (`import * as Svg from "react-native-svg"`): NativeChartContainer draws line
|
|
307
|
+
* and area charts with it. Without it, bars still draw (they're views) and a line chart shows its
|
|
308
|
+
* points only.
|
|
309
|
+
*/
|
|
310
|
+
svg?: GenesisSvgModule;
|
|
311
|
+
/**
|
|
312
|
+
* Picks files for NativeFileUploadField (and a form's file and image fields): wrap
|
|
313
|
+
* expo-document-picker's `getDocumentAsync` or expo-image-picker's `launchImageLibraryAsync`
|
|
314
|
+
* and return the picked files, or `[]` when the person cancelled.
|
|
315
|
+
*/
|
|
316
|
+
filePicker?: GenesisFilePicker;
|
|
317
|
+
}
|
|
318
|
+
/** A file a person picked on the phone: where it is, its name, and its type and size when known. */
|
|
319
|
+
interface NativePickedFile {
|
|
320
|
+
uri: string;
|
|
321
|
+
name: string;
|
|
322
|
+
/** MIME type, e.g. "image/jpeg". */
|
|
323
|
+
type?: string | undefined;
|
|
324
|
+
/** Bytes. */
|
|
325
|
+
size?: number | undefined;
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Opens the system's picker; resolves to what was picked, `[]` when the person cancelled. Reject
|
|
329
|
+
* when it can't pick (a permission denied, an iCloud download that failed): the field shows its
|
|
330
|
+
* `labels.pickFailed` sentence, never the raw error. If your app explains a denial itself (with a
|
|
331
|
+
* link to Settings, say), do that and resolve `[]`.
|
|
332
|
+
*/
|
|
333
|
+
type GenesisFilePicker = (options: {
|
|
334
|
+
multiple: boolean;
|
|
335
|
+
accept?: string | undefined;
|
|
336
|
+
}) => Promise<NativePickedFile[]>;
|
|
337
|
+
/** The react-native-svg parts NativeChartContainer draws with. */
|
|
338
|
+
interface GenesisSvgModule {
|
|
339
|
+
default?: ComponentType<{
|
|
340
|
+
width?: number;
|
|
341
|
+
height?: number;
|
|
342
|
+
children?: ReactNode;
|
|
343
|
+
testID?: string;
|
|
344
|
+
}>;
|
|
345
|
+
Svg?: ComponentType<{
|
|
346
|
+
width?: number;
|
|
347
|
+
height?: number;
|
|
348
|
+
children?: ReactNode;
|
|
349
|
+
testID?: string;
|
|
350
|
+
}>;
|
|
351
|
+
Path: ComponentType<{
|
|
352
|
+
d: string;
|
|
353
|
+
stroke?: ColorValue;
|
|
354
|
+
strokeWidth?: number;
|
|
355
|
+
fill?: ColorValue;
|
|
356
|
+
fillOpacity?: number;
|
|
357
|
+
testID?: string;
|
|
358
|
+
}>;
|
|
305
359
|
}
|
|
306
360
|
/** The props NativeSwipeRow passes; `ReanimatedSwipeable` takes them, and its ref has `close()`. */
|
|
307
361
|
type GenesisSwipeableComponent = ComponentType<{
|
|
@@ -330,4 +384,4 @@ declare function GenesisModulesProvider({ modules, children }: GenesisModulesPro
|
|
|
330
384
|
/** The modules given to the nearest `GenesisModulesProvider`; `{}` without one. */
|
|
331
385
|
declare function useGenesisModules(): GenesisModules;
|
|
332
386
|
|
|
333
|
-
export { type GenesisDatePickerComponent as G, type HapticKind as H, type KeyboardAvoidingLike as K, NATIVE_ICON_NAMES as N, SF_SYMBOLS as S, type GenesisDatePickerProps as a, type
|
|
387
|
+
export { type GenesisDatePickerComponent as G, type HapticKind as H, type KeyboardAvoidingLike as K, NATIVE_ICON_NAMES as N, SF_SYMBOLS as S, type GenesisDatePickerProps as a, type GenesisFilePicker as b, type GenesisGlassModule as c, type GenesisHapticsModule as d, type GenesisIconComponent as e, type GenesisIconSet as f, type GenesisImageComponent as g, type GenesisImageProps as h, type GenesisListComponent as i, type GenesisListProps as j, type GenesisModules as k, GenesisModulesProvider as l, type GenesisModulesProviderProps as m, type GenesisNavigationModule as n, type GenesisNavigationTheme as o, type GenesisReanimatedModule as p, type GenesisSvgModule as q, type GenesisSymbolComponent as r, type GenesisSymbolProps as s, type NativeIconName as t, type NativePickedFile as u, playHaptic as v, useGenesisModules as w, useHaptics as x };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marktiderman/genesis-ui-native",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -82,9 +82,9 @@
|
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"@expo/ui": ">=58.0.0",
|
|
84
84
|
"@gorhom/bottom-sheet": ">=5.0.0",
|
|
85
|
-
"@hookform/resolvers": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0",
|
|
86
|
-
"@marktiderman/genesis-core": "^2.
|
|
87
|
-
"@marktiderman/genesis-design-system": "^1.
|
|
85
|
+
"@hookform/resolvers": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0",
|
|
86
|
+
"@marktiderman/genesis-core": "^2.16.0",
|
|
87
|
+
"@marktiderman/genesis-design-system": "^1.12.0",
|
|
88
88
|
"@react-native-community/datetimepicker": ">=8.0.0",
|
|
89
89
|
"@shopify/flash-list": ">=2.0.0",
|
|
90
90
|
"@tanstack/react-query": "^5.0.0",
|
|
@@ -354,6 +354,72 @@
|
|
|
354
354
|
"use": "NativeTierBadge with tone set to a key of the brand's accents",
|
|
355
355
|
"import": "@marktiderman/genesis-ui-native",
|
|
356
356
|
"docs": "https://github.com/marktiderman/genesis/blob/main/docs/DESIGN-LIBRARY.md"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"need": "a chart on the phone",
|
|
360
|
+
"use": "NativeChartContainer (config, data, xKey, type), with react-native-svg as GenesisModules.svg for lines",
|
|
361
|
+
"import": "@marktiderman/genesis-ui-native",
|
|
362
|
+
"docs": "https://github.com/marktiderman/genesis/blob/main/packages/ui-native/README.md#web-parity-twins"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"need": "a list the person reorders on the phone",
|
|
366
|
+
"use": "NativeSortableList (drag handle, long-press Move menu, screen-reader actions)",
|
|
367
|
+
"import": "@marktiderman/genesis-ui-native",
|
|
368
|
+
"docs": "https://github.com/marktiderman/genesis/blob/main/packages/ui-native/README.md#web-parity-twins"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"need": "a phone dashboard, detail, document or form page",
|
|
372
|
+
"use": "DashboardPage, DetailPage, DocumentPage or FormPage",
|
|
373
|
+
"import": "@marktiderman/genesis-ui-native/layouts",
|
|
374
|
+
"docs": "https://github.com/marktiderman/genesis/blob/main/packages/ui-native/README.md#web-parity-twins"
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"need": "a stat tile or headline numbers on the phone",
|
|
378
|
+
"use": "NativeStatCard, or NativeHeadlineNumbers",
|
|
379
|
+
"import": "@marktiderman/genesis-ui-native",
|
|
380
|
+
"docs": "https://github.com/marktiderman/genesis/blob/main/packages/ui-native/README.md#web-parity-twins"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"need": "a settings row on the phone (a label, a description and a control, or a switch)",
|
|
384
|
+
"use": "NativeSettingsRow, or NativeToggleRow",
|
|
385
|
+
"import": "@marktiderman/genesis-ui-native",
|
|
386
|
+
"docs": "https://github.com/marktiderman/genesis/blob/main/packages/ui-native/README.md#web-parity-twins"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"need": "switching workspace on the phone",
|
|
390
|
+
"use": "NativeWorkspaceSwitcher under a WorkspaceScope",
|
|
391
|
+
"import": "@marktiderman/genesis-ui-native",
|
|
392
|
+
"docs": "https://github.com/marktiderman/genesis/blob/main/packages/ui-native/README.md#web-parity-twins"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"need": "a one-time code on the phone",
|
|
396
|
+
"use": "NativeInputOTP (system code autofill on one field)",
|
|
397
|
+
"import": "@marktiderman/genesis-ui-native",
|
|
398
|
+
"docs": "https://github.com/marktiderman/genesis/blob/main/packages/ui-native/README.md#web-parity-twins"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"need": "a month grid to pick days on the phone",
|
|
402
|
+
"use": "NativeCalendar (mode single, multiple or range)",
|
|
403
|
+
"import": "@marktiderman/genesis-ui-native",
|
|
404
|
+
"docs": "https://github.com/marktiderman/genesis/blob/main/packages/ui-native/README.md#web-parity-twins"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"need": "a custom view on the phone (an app's own drawing over a view's rows)",
|
|
408
|
+
"use": "NativeCustomView, or useNativeCustomView",
|
|
409
|
+
"import": "@marktiderman/genesis-ui-native/data",
|
|
410
|
+
"docs": "https://github.com/marktiderman/genesis/blob/main/packages/ui-native/README.md#web-parity-twins"
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"need": "a record in a sheet on the phone",
|
|
414
|
+
"use": "NativeRecordPeek (the record view, with onEdit and onDelete)",
|
|
415
|
+
"import": "@marktiderman/genesis-ui-native/data",
|
|
416
|
+
"docs": "https://github.com/marktiderman/genesis/blob/main/packages/ui-native/README.md#web-parity-twins"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"need": "a form in steps, a repeating group, a file or a link field on the phone",
|
|
420
|
+
"use": "NativeWizardForm, NativeFieldArrayRenderer, NativeFileUploadField (GenesisModules.filePicker) and NativeRelationField",
|
|
421
|
+
"import": "@marktiderman/genesis-ui-native/data",
|
|
422
|
+
"docs": "https://github.com/marktiderman/genesis/blob/main/packages/ui-native/README.md#web-parity-twins"
|
|
357
423
|
}
|
|
358
424
|
]
|
|
359
425
|
}
|
|
@@ -33,6 +33,26 @@ describe("NativeCombobox", () => {
|
|
|
33
33
|
expect(screen.getByTestId("cb-option-b")).toBeTruthy();
|
|
34
34
|
});
|
|
35
35
|
|
|
36
|
+
it("matches every word typed, in any order, ignoring accents and case", () => {
|
|
37
|
+
const places: NativeComboboxOption[] = [
|
|
38
|
+
{ value: "cafe", label: "Café Lumière" },
|
|
39
|
+
{ value: "park", label: "Central Park" },
|
|
40
|
+
{ value: "pier", label: "Pier 39" },
|
|
41
|
+
];
|
|
42
|
+
render(<NativeCombobox testID="pl" options={places} value={undefined} onChange={() => {}} />);
|
|
43
|
+
const input = screen.getByTestId("pl-input");
|
|
44
|
+
fireEvent.focus(input);
|
|
45
|
+
fireEvent.change(input, { target: { value: "cafe" } });
|
|
46
|
+
expect(screen.getByTestId("pl-option-cafe")).toBeTruthy();
|
|
47
|
+
expect(screen.queryByTestId("pl-option-park")).toBeNull();
|
|
48
|
+
// Word order is free; every word must match.
|
|
49
|
+
fireEvent.change(input, { target: { value: "LUMIERE caf" } });
|
|
50
|
+
expect(screen.getByTestId("pl-option-cafe")).toBeTruthy();
|
|
51
|
+
fireEvent.change(input, { target: { value: "park pier" } });
|
|
52
|
+
expect(screen.queryByTestId("pl-option-park")).toBeNull();
|
|
53
|
+
expect(screen.queryByTestId("pl-option-pier")).toBeNull();
|
|
54
|
+
});
|
|
55
|
+
|
|
36
56
|
it("selects an option on press", () => {
|
|
37
57
|
render(<Wrapper />);
|
|
38
58
|
fireEvent.focus(screen.getByTestId("cb-input"));
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { useState } from "react";
|
|
2
2
|
import { fireEvent, render, screen } from "@testing-library/react";
|
|
3
|
-
import { describe, expect, it } from "vitest";
|
|
3
|
+
import { describe, expect, it, vi } from "vitest";
|
|
4
|
+
import { Pressable, Text } from "react-native";
|
|
4
5
|
import { NativeNumberInput } from "../number-input";
|
|
6
|
+
import { FormPage } from "../../layouts/pages";
|
|
5
7
|
|
|
6
8
|
function Wrapper(props: { initial?: number; min?: number; max?: number; step?: number }) {
|
|
7
9
|
const [v, setV] = useState(props.initial ?? 1);
|
|
@@ -43,4 +45,113 @@ describe("NativeNumberInput", () => {
|
|
|
43
45
|
expect((screen.getByTestId("qty-field") as HTMLInputElement).value).toBe("5");
|
|
44
46
|
expect(screen.getByTestId("qty-increment").getAttribute("aria-disabled")).toBe("true");
|
|
45
47
|
});
|
|
48
|
+
|
|
49
|
+
it("clearing the field keeps the value and shows it again on leaving, so the field never shows a number it doesn't hold", () => {
|
|
50
|
+
const onChange = vi.fn();
|
|
51
|
+
render(<NativeNumberInput testID="qty" value={7} onChange={onChange} />);
|
|
52
|
+
const field = screen.getByTestId("qty-field") as HTMLInputElement;
|
|
53
|
+
fireEvent.change(field, { target: { value: "" } });
|
|
54
|
+
expect(field.value).toBe("");
|
|
55
|
+
expect(onChange).not.toHaveBeenCalled();
|
|
56
|
+
fireEvent.blur(field);
|
|
57
|
+
expect(field.value).toBe("7");
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
it("keeps a half-typed number while typing, and commits each whole one", () => {
|
|
61
|
+
const onChange = vi.fn();
|
|
62
|
+
render(<NativeNumberInput testID="qty" value={1} onChange={onChange} precision={1} />);
|
|
63
|
+
const field = screen.getByTestId("qty-field") as HTMLInputElement;
|
|
64
|
+
fireEvent.change(field, { target: { value: "-" } });
|
|
65
|
+
expect(field.value).toBe("-");
|
|
66
|
+
fireEvent.change(field, { target: { value: "-2" } });
|
|
67
|
+
expect(onChange).toHaveBeenLastCalledWith(-2);
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
it("passes on a typed number only while it is in range, and clamps when the field is left", () => {
|
|
71
|
+
const onChange = vi.fn();
|
|
72
|
+
render(<NativeNumberInput testID="qty" value={12} onChange={onChange} min={10} max={20} />);
|
|
73
|
+
const field = screen.getByTestId("qty-field") as HTMLInputElement;
|
|
74
|
+
// "1" on the way to "15": below min, so nothing is sent yet.
|
|
75
|
+
fireEvent.change(field, { target: { value: "1" } });
|
|
76
|
+
expect(onChange).not.toHaveBeenCalled();
|
|
77
|
+
fireEvent.change(field, { target: { value: "15" } });
|
|
78
|
+
expect(onChange).toHaveBeenLastCalledWith(15);
|
|
79
|
+
// Out of range, then left: clamped once, on blur.
|
|
80
|
+
onChange.mockClear();
|
|
81
|
+
fireEvent.change(field, { target: { value: "99" } });
|
|
82
|
+
expect(onChange).not.toHaveBeenCalled();
|
|
83
|
+
fireEvent.blur(field);
|
|
84
|
+
expect(onChange).toHaveBeenCalledTimes(1);
|
|
85
|
+
expect(onChange).toHaveBeenLastCalledWith(20);
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
it("reads a thousands comma as a group, or the locale's own marks", () => {
|
|
89
|
+
const onChange = vi.fn();
|
|
90
|
+
const { rerender } = render(<NativeNumberInput testID="qty" value={0} onChange={onChange} />);
|
|
91
|
+
fireEvent.change(screen.getByTestId("qty-field"), { target: { value: "1,234" } });
|
|
92
|
+
expect(onChange).toHaveBeenLastCalledWith(1234);
|
|
93
|
+
rerender(<NativeNumberInput testID="qty" value={0} onChange={onChange} locale="de-DE" />);
|
|
94
|
+
fireEvent.change(screen.getByTestId("qty-field"), { target: { value: "1.234" } });
|
|
95
|
+
expect(onChange).toHaveBeenLastCalledWith(1234);
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
it("rounds a typed number to the precision when it commits, so the value is what the field shows", () => {
|
|
99
|
+
const onChange = vi.fn();
|
|
100
|
+
render(<NativeNumberInput testID="qty" value={0} onChange={onChange} precision={0} />);
|
|
101
|
+
const field = screen.getByTestId("qty-field") as HTMLInputElement;
|
|
102
|
+
fireEvent.change(field, { target: { value: "1.5" } });
|
|
103
|
+
// Past the precision: held until the edit ends.
|
|
104
|
+
expect(onChange).not.toHaveBeenCalled();
|
|
105
|
+
fireEvent.blur(field);
|
|
106
|
+
expect(onChange).toHaveBeenCalledTimes(1);
|
|
107
|
+
expect(onChange).toHaveBeenLastCalledWith(2);
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
it("doesn't send 1.2 and 1.23 while \"1,234\" is typed key by key", () => {
|
|
111
|
+
const onChange = vi.fn();
|
|
112
|
+
render(<NativeNumberInput testID="qty" value={0} onChange={onChange} />);
|
|
113
|
+
const field = screen.getByTestId("qty-field");
|
|
114
|
+
for (const t of ["1", "1,", "1,2", "1,23", "1,234"]) fireEvent.change(field, { target: { value: t } });
|
|
115
|
+
const sent = onChange.mock.calls.map((c) => c[0] as number);
|
|
116
|
+
expect(sent).not.toContain(1.2);
|
|
117
|
+
expect(sent).not.toContain(1.23);
|
|
118
|
+
expect(sent.at(-1)).toBe(1234);
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
it("commits once when the edit ends, though blur and end-editing both fire", () => {
|
|
122
|
+
const onChange = vi.fn();
|
|
123
|
+
render(<NativeNumberInput testID="qty" value={12} onChange={onChange} min={10} max={20} />);
|
|
124
|
+
const field = screen.getByTestId("qty-field");
|
|
125
|
+
fireEvent.change(field, { target: { value: "5" } });
|
|
126
|
+
fireEvent.blur(field);
|
|
127
|
+
expect(onChange.mock.calls).toEqual([[10]]);
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
it("commits an out-of-range draft when FormPage's Save is touched, before Save runs", () => {
|
|
131
|
+
const seen: number[] = [];
|
|
132
|
+
function Form() {
|
|
133
|
+
const [spots, setSpots] = useState(12);
|
|
134
|
+
return (
|
|
135
|
+
<FormPage
|
|
136
|
+
title="Class"
|
|
137
|
+
actions={
|
|
138
|
+
<Pressable testID="save" onPress={() => seen.push(spots)}>
|
|
139
|
+
<Text>Save</Text>
|
|
140
|
+
</Pressable>
|
|
141
|
+
}
|
|
142
|
+
>
|
|
143
|
+
<NativeNumberInput testID="qty" value={spots} onChange={setSpots} min={10} max={20} />
|
|
144
|
+
</FormPage>
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
render(<Form />);
|
|
148
|
+
const field = screen.getByTestId("qty-field") as HTMLInputElement;
|
|
149
|
+
field.focus();
|
|
150
|
+
fireEvent.change(field, { target: { value: "5" } });
|
|
151
|
+
// The touch starts (the keyboard is dismissed, the field commits), then the press ends.
|
|
152
|
+
fireEvent.pointerDown(screen.getByTestId("save"));
|
|
153
|
+
fireEvent.click(screen.getByTestId("save"));
|
|
154
|
+
expect(seen).toEqual([10]);
|
|
155
|
+
expect(field.value).toBe("10");
|
|
156
|
+
});
|
|
46
157
|
});
|