@coinbase/cds-mobile 0.0.0 → 8.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +43 -0
- package/README.md +14 -0
- package/dts/accordion/Accordion.d.ts +18 -0
- package/dts/accordion/Accordion.d.ts.map +1 -0
- package/dts/accordion/AccordionHeader.d.ts +70 -0
- package/dts/accordion/AccordionHeader.d.ts.map +1 -0
- package/dts/accordion/AccordionItem.d.ts +31 -0
- package/dts/accordion/AccordionItem.d.ts.map +1 -0
- package/dts/accordion/AccordionPanel.d.ts +32 -0
- package/dts/accordion/AccordionPanel.d.ts.map +1 -0
- package/dts/accordion/__figma__/Accordion.figma.d.ts +2 -0
- package/dts/accordion/__figma__/Accordion.figma.d.ts.map +1 -0
- package/dts/accordion/index.d.ts +3 -0
- package/dts/accordion/index.d.ts.map +1 -0
- package/dts/alpha/carousel/Carousel.d.ts +68 -0
- package/dts/alpha/carousel/Carousel.d.ts.map +1 -0
- package/dts/alpha/carousel/CarouselControlsWrapper.d.ts +8 -0
- package/dts/alpha/carousel/CarouselControlsWrapper.d.ts.map +1 -0
- package/dts/alpha/carousel/CarouselItem.d.ts +41 -0
- package/dts/alpha/carousel/CarouselItem.d.ts.map +1 -0
- package/dts/alpha/carousel/types.d.ts +32 -0
- package/dts/alpha/carousel/types.d.ts.map +1 -0
- package/dts/alpha/carousel/useCarousel.d.ts +14 -0
- package/dts/alpha/carousel/useCarousel.d.ts.map +1 -0
- package/dts/alpha/carousel/useCarouselItem.d.ts +22 -0
- package/dts/alpha/carousel/useCarouselItem.d.ts.map +1 -0
- package/dts/animation/AnimationProps.d.ts +7 -0
- package/dts/animation/AnimationProps.d.ts.map +1 -0
- package/dts/animation/Lottie.d.ts +28 -0
- package/dts/animation/Lottie.d.ts.map +1 -0
- package/dts/animation/Lottie.e2e.d.ts +11 -0
- package/dts/animation/Lottie.e2e.d.ts.map +1 -0
- package/dts/animation/LottieStatusAnimation.d.ts +8 -0
- package/dts/animation/LottieStatusAnimation.d.ts.map +1 -0
- package/dts/animation/convertMotionConfig.d.ts +21 -0
- package/dts/animation/convertMotionConfig.d.ts.map +1 -0
- package/dts/animation/createLottie.d.ts +35 -0
- package/dts/animation/createLottie.d.ts.map +1 -0
- package/dts/animation/createLottie.e2e.d.ts +34 -0
- package/dts/animation/createLottie.e2e.d.ts.map +1 -0
- package/dts/animation/index.d.ts +7 -0
- package/dts/animation/index.d.ts.map +1 -0
- package/dts/animation/lottieProgresConfig.d.ts +6 -0
- package/dts/animation/lottieProgresConfig.d.ts.map +1 -0
- package/dts/animation/mocks.d.ts +46 -0
- package/dts/animation/mocks.d.ts.map +1 -0
- package/dts/animation/types.d.ts +54 -0
- package/dts/animation/types.d.ts.map +1 -0
- package/dts/animation/useLottie.d.ts +6 -0
- package/dts/animation/useLottie.d.ts.map +1 -0
- package/dts/animation/useLottie.e2e.d.ts +34 -0
- package/dts/animation/useLottie.e2e.d.ts.map +1 -0
- package/dts/animation/useLottieColorFilters.d.ts +14 -0
- package/dts/animation/useLottieColorFilters.d.ts.map +1 -0
- package/dts/animation/useRotateAnimation.d.ts +19 -0
- package/dts/animation/useRotateAnimation.d.ts.map +1 -0
- package/dts/banner/Banner.d.ts +109 -0
- package/dts/banner/Banner.d.ts.map +1 -0
- package/dts/buttons/AvatarButton.d.ts +11 -0
- package/dts/buttons/AvatarButton.d.ts.map +1 -0
- package/dts/buttons/Button.d.ts +136 -0
- package/dts/buttons/Button.d.ts.map +1 -0
- package/dts/buttons/ButtonGroup.d.ts +23 -0
- package/dts/buttons/ButtonGroup.d.ts.map +1 -0
- package/dts/buttons/DefaultSlideButtonBackground.d.ts +22 -0
- package/dts/buttons/DefaultSlideButtonBackground.d.ts.map +1 -0
- package/dts/buttons/DefaultSlideButtonHandle.d.ts +74 -0
- package/dts/buttons/DefaultSlideButtonHandle.d.ts.map +1 -0
- package/dts/buttons/IconButton.d.ts +20 -0
- package/dts/buttons/IconButton.d.ts.map +1 -0
- package/dts/buttons/IconCounterButton.d.ts +42 -0
- package/dts/buttons/IconCounterButton.d.ts.map +1 -0
- package/dts/buttons/SlideButton.d.ts +237 -0
- package/dts/buttons/SlideButton.d.ts.map +1 -0
- package/dts/buttons/__figma__/AvatarButton.figma.d.ts +2 -0
- package/dts/buttons/__figma__/AvatarButton.figma.d.ts.map +1 -0
- package/dts/buttons/__figma__/Button.figma.d.ts +2 -0
- package/dts/buttons/__figma__/Button.figma.d.ts.map +1 -0
- package/dts/buttons/__figma__/ButtonGroup.figma.d.ts +2 -0
- package/dts/buttons/__figma__/ButtonGroup.figma.d.ts.map +1 -0
- package/dts/buttons/__figma__/IconButton.figma.d.ts +2 -0
- package/dts/buttons/__figma__/IconButton.figma.d.ts.map +1 -0
- package/dts/buttons/__figma__/SlideButton.figma.d.ts +2 -0
- package/dts/buttons/__figma__/SlideButton.figma.d.ts.map +1 -0
- package/dts/buttons/index.d.ts +7 -0
- package/dts/buttons/index.d.ts.map +1 -0
- package/dts/cards/AnnouncementCard.d.ts +9 -0
- package/dts/cards/AnnouncementCard.d.ts.map +1 -0
- package/dts/cards/Card.d.ts +21 -0
- package/dts/cards/Card.d.ts.map +1 -0
- package/dts/cards/CardBody.d.ts +56 -0
- package/dts/cards/CardBody.d.ts.map +1 -0
- package/dts/cards/CardFooter.d.ts +14 -0
- package/dts/cards/CardFooter.d.ts.map +1 -0
- package/dts/cards/CardGroup.d.ts +45 -0
- package/dts/cards/CardGroup.d.ts.map +1 -0
- package/dts/cards/CardHeader.d.ts +13 -0
- package/dts/cards/CardHeader.d.ts.map +1 -0
- package/dts/cards/CardMedia.d.ts +5 -0
- package/dts/cards/CardMedia.d.ts.map +1 -0
- package/dts/cards/CardRemoteImage.d.ts +5 -0
- package/dts/cards/CardRemoteImage.d.ts.map +1 -0
- package/dts/cards/ContainedAssetCard.d.ts +43 -0
- package/dts/cards/ContainedAssetCard.d.ts.map +1 -0
- package/dts/cards/ContentCard/ContentCard.d.ts +30 -0
- package/dts/cards/ContentCard/ContentCard.d.ts.map +1 -0
- package/dts/cards/ContentCard/ContentCardBody.d.ts +57 -0
- package/dts/cards/ContentCard/ContentCardBody.d.ts.map +1 -0
- package/dts/cards/ContentCard/ContentCardFooter.d.ts +35 -0
- package/dts/cards/ContentCard/ContentCardFooter.d.ts.map +1 -0
- package/dts/cards/ContentCard/ContentCardHeader.d.ts +49 -0
- package/dts/cards/ContentCard/ContentCardHeader.d.ts.map +1 -0
- package/dts/cards/ContentCard/__figma__/ContentCard.figma.d.ts +2 -0
- package/dts/cards/ContentCard/__figma__/ContentCard.figma.d.ts.map +1 -0
- package/dts/cards/ContentCard/__figma__/ContentCardBody.figma.d.ts +2 -0
- package/dts/cards/ContentCard/__figma__/ContentCardBody.figma.d.ts.map +1 -0
- package/dts/cards/ContentCard/__figma__/ContentCardFooter.figma.d.ts +2 -0
- package/dts/cards/ContentCard/__figma__/ContentCardFooter.figma.d.ts.map +1 -0
- package/dts/cards/ContentCard/__figma__/ContentCardHeader.figma.d.ts +2 -0
- package/dts/cards/ContentCard/__figma__/ContentCardHeader.figma.d.ts.map +1 -0
- package/dts/cards/ContentCard/index.d.ts +5 -0
- package/dts/cards/ContentCard/index.d.ts.map +1 -0
- package/dts/cards/DataCard.d.ts +19 -0
- package/dts/cards/DataCard.d.ts.map +1 -0
- package/dts/cards/FeatureEntryCard.d.ts +9 -0
- package/dts/cards/FeatureEntryCard.d.ts.map +1 -0
- package/dts/cards/FeedCard.d.ts +36 -0
- package/dts/cards/FeedCard.d.ts.map +1 -0
- package/dts/cards/FloatingAssetCard.d.ts +35 -0
- package/dts/cards/FloatingAssetCard.d.ts.map +1 -0
- package/dts/cards/LikeButton.d.ts +21 -0
- package/dts/cards/LikeButton.d.ts.map +1 -0
- package/dts/cards/NudgeCard.d.ts +72 -0
- package/dts/cards/NudgeCard.d.ts.map +1 -0
- package/dts/cards/UpsellCard.d.ts +55 -0
- package/dts/cards/UpsellCard.d.ts.map +1 -0
- package/dts/cards/__figma__/AnnouncementCard.figma.d.ts +2 -0
- package/dts/cards/__figma__/AnnouncementCard.figma.d.ts.map +1 -0
- package/dts/cards/__figma__/ContainedAssetCard.figma.d.ts +2 -0
- package/dts/cards/__figma__/ContainedAssetCard.figma.d.ts.map +1 -0
- package/dts/cards/__figma__/FloatingAssetCard.figma.d.ts +2 -0
- package/dts/cards/__figma__/FloatingAssetCard.figma.d.ts.map +1 -0
- package/dts/cards/__figma__/NudgeCard.figma.d.ts +2 -0
- package/dts/cards/__figma__/NudgeCard.figma.d.ts.map +1 -0
- package/dts/cards/__figma__/UpsellCard.figma.d.ts +2 -0
- package/dts/cards/__figma__/UpsellCard.figma.d.ts.map +1 -0
- package/dts/cards/index.d.ts +11 -0
- package/dts/cards/index.d.ts.map +1 -0
- package/dts/carousel/Carousel.d.ts +352 -0
- package/dts/carousel/Carousel.d.ts.map +1 -0
- package/dts/carousel/CarouselItem.d.ts +6 -0
- package/dts/carousel/CarouselItem.d.ts.map +1 -0
- package/dts/carousel/DefaultCarouselNavigation.d.ts +54 -0
- package/dts/carousel/DefaultCarouselNavigation.d.ts.map +1 -0
- package/dts/carousel/DefaultCarouselPagination.d.ts +20 -0
- package/dts/carousel/DefaultCarouselPagination.d.ts.map +1 -0
- package/dts/carousel/index.d.ts +5 -0
- package/dts/carousel/index.d.ts.map +1 -0
- package/dts/cells/Cell.d.ts +52 -0
- package/dts/cells/Cell.d.ts.map +1 -0
- package/dts/cells/CellAccessory.d.ts +13 -0
- package/dts/cells/CellAccessory.d.ts.map +1 -0
- package/dts/cells/CellDetail.d.ts +19 -0
- package/dts/cells/CellDetail.d.ts.map +1 -0
- package/dts/cells/CellHelperText.d.ts +10 -0
- package/dts/cells/CellHelperText.d.ts.map +1 -0
- package/dts/cells/CellMedia.d.ts +40 -0
- package/dts/cells/CellMedia.d.ts.map +1 -0
- package/dts/cells/ContentCell.d.ts +20 -0
- package/dts/cells/ContentCell.d.ts.map +1 -0
- package/dts/cells/ContentCellFallback.d.ts +17 -0
- package/dts/cells/ContentCellFallback.d.ts.map +1 -0
- package/dts/cells/ListCell.d.ts +39 -0
- package/dts/cells/ListCell.d.ts.map +1 -0
- package/dts/cells/ListCellFallback.d.ts +37 -0
- package/dts/cells/ListCellFallback.d.ts.map +1 -0
- package/dts/cells/MediaFallback.d.ts +8 -0
- package/dts/cells/MediaFallback.d.ts.map +1 -0
- package/dts/cells/__figma__/ContentCell.figma.d.ts +2 -0
- package/dts/cells/__figma__/ContentCell.figma.d.ts.map +1 -0
- package/dts/cells/__figma__/ListCell.figma.d.ts +2 -0
- package/dts/cells/__figma__/ListCell.figma.d.ts.map +1 -0
- package/dts/cells/index.d.ts +7 -0
- package/dts/cells/index.d.ts.map +1 -0
- package/dts/chips/Chip.d.ts +22 -0
- package/dts/chips/Chip.d.ts.map +1 -0
- package/dts/chips/ChipProps.d.ts +45 -0
- package/dts/chips/ChipProps.d.ts.map +1 -0
- package/dts/chips/InputChip.d.ts +12 -0
- package/dts/chips/InputChip.d.ts.map +1 -0
- package/dts/chips/SelectChip.d.ts +27 -0
- package/dts/chips/SelectChip.d.ts.map +1 -0
- package/dts/chips/TabbedChips.d.ts +16 -0
- package/dts/chips/TabbedChips.d.ts.map +1 -0
- package/dts/chips/__figma__/InputChip.figma.d.ts +2 -0
- package/dts/chips/__figma__/InputChip.figma.d.ts.map +1 -0
- package/dts/chips/__figma__/SelectChip.figma.d.ts +2 -0
- package/dts/chips/__figma__/SelectChip.figma.d.ts.map +1 -0
- package/dts/chips/__figma__/TabbedChips.figma.d.ts +2 -0
- package/dts/chips/__figma__/TabbedChips.figma.d.ts.map +1 -0
- package/dts/coachmark/Coachmark.d.ts +99 -0
- package/dts/coachmark/Coachmark.d.ts.map +1 -0
- package/dts/coachmark/__figma__/Coachmark.figma.d.ts +2 -0
- package/dts/coachmark/__figma__/Coachmark.figma.d.ts.map +1 -0
- package/dts/collapsible/Collapsible.d.ts +68 -0
- package/dts/collapsible/Collapsible.d.ts.map +1 -0
- package/dts/collapsible/index.d.ts +2 -0
- package/dts/collapsible/index.d.ts.map +1 -0
- package/dts/collapsible/useCollapsibleAnimation.d.ts +24 -0
- package/dts/collapsible/useCollapsibleAnimation.d.ts.map +1 -0
- package/dts/collapsible/useCollapsibleDirection.d.ts +18 -0
- package/dts/collapsible/useCollapsibleDirection.d.ts.map +1 -0
- package/dts/collapsible/useToggleAnimation.d.ts +9 -0
- package/dts/collapsible/useToggleAnimation.d.ts.map +1 -0
- package/dts/controls/Checkbox.d.ts +25 -0
- package/dts/controls/Checkbox.d.ts.map +1 -0
- package/dts/controls/CheckboxCell.d.ts +32 -0
- package/dts/controls/CheckboxCell.d.ts.map +1 -0
- package/dts/controls/CheckboxGroup.d.ts +48 -0
- package/dts/controls/CheckboxGroup.d.ts.map +1 -0
- package/dts/controls/Control.d.ts +70 -0
- package/dts/controls/Control.d.ts.map +1 -0
- package/dts/controls/ControlGroup.d.ts +39 -0
- package/dts/controls/ControlGroup.d.ts.map +1 -0
- package/dts/controls/HelperText.d.ts +16 -0
- package/dts/controls/HelperText.d.ts.map +1 -0
- package/dts/controls/InputIcon.d.ts +16 -0
- package/dts/controls/InputIcon.d.ts.map +1 -0
- package/dts/controls/InputIconButton.d.ts +13 -0
- package/dts/controls/InputIconButton.d.ts.map +1 -0
- package/dts/controls/InputLabel.d.ts +4 -0
- package/dts/controls/InputLabel.d.ts.map +1 -0
- package/dts/controls/InputStack.d.ts +67 -0
- package/dts/controls/InputStack.d.ts.map +1 -0
- package/dts/controls/Menu.d.ts +10 -0
- package/dts/controls/Menu.d.ts.map +1 -0
- package/dts/controls/NativeInput.d.ts +65 -0
- package/dts/controls/NativeInput.d.ts.map +1 -0
- package/dts/controls/Radio.d.ts +13 -0
- package/dts/controls/Radio.d.ts.map +1 -0
- package/dts/controls/RadioCell.d.ts +32 -0
- package/dts/controls/RadioCell.d.ts.map +1 -0
- package/dts/controls/RadioGroup.d.ts +62 -0
- package/dts/controls/RadioGroup.d.ts.map +1 -0
- package/dts/controls/SearchInput.d.ts +148 -0
- package/dts/controls/SearchInput.d.ts.map +1 -0
- package/dts/controls/Select.d.ts +58 -0
- package/dts/controls/Select.d.ts.map +1 -0
- package/dts/controls/SelectContext.d.ts +17 -0
- package/dts/controls/SelectContext.d.ts.map +1 -0
- package/dts/controls/SelectOption.d.ts +15 -0
- package/dts/controls/SelectOption.d.ts.map +1 -0
- package/dts/controls/Switch.d.ts +9 -0
- package/dts/controls/Switch.d.ts.map +1 -0
- package/dts/controls/TextInput.d.ts +143 -0
- package/dts/controls/TextInput.d.ts.map +1 -0
- package/dts/controls/__figma__/Checkbox.figma.d.ts +2 -0
- package/dts/controls/__figma__/Checkbox.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/CheckboxCell.figma.d.ts +2 -0
- package/dts/controls/__figma__/CheckboxCell.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/CheckboxGroup.figma.d.ts +2 -0
- package/dts/controls/__figma__/CheckboxGroup.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/RadioCell.figma.d.ts +2 -0
- package/dts/controls/__figma__/RadioCell.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/RadioGroup.figma.d.ts +2 -0
- package/dts/controls/__figma__/RadioGroup.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/SearchInput.figma.d.ts +2 -0
- package/dts/controls/__figma__/SearchInput.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/Select.figma.d.ts +2 -0
- package/dts/controls/__figma__/Select.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/SelectOption.figma.d.ts +2 -0
- package/dts/controls/__figma__/SelectOption.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/Switch.figma.d.ts +2 -0
- package/dts/controls/__figma__/Switch.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/TextInput.figma.d.ts +2 -0
- package/dts/controls/__figma__/TextInput.figma.d.ts.map +1 -0
- package/dts/controls/context.d.ts +5 -0
- package/dts/controls/context.d.ts.map +1 -0
- package/dts/controls/index.d.ts +16 -0
- package/dts/controls/index.d.ts.map +1 -0
- package/dts/controls/useControlMotionProps.d.ts +24 -0
- package/dts/controls/useControlMotionProps.d.ts.map +1 -0
- package/dts/controls/useSelect.d.ts +17 -0
- package/dts/controls/useSelect.d.ts.map +1 -0
- package/dts/core/theme.d.ts +94 -0
- package/dts/core/theme.d.ts.map +1 -0
- package/dts/dates/DateInput.d.ts +22 -0
- package/dts/dates/DateInput.d.ts.map +1 -0
- package/dts/dates/DatePicker.d.ts +114 -0
- package/dts/dates/DatePicker.d.ts.map +1 -0
- package/dts/dates/__figma__/DatePicker.figma.d.ts +2 -0
- package/dts/dates/__figma__/DatePicker.figma.d.ts.map +1 -0
- package/dts/dots/DotCount.d.ts +74 -0
- package/dts/dots/DotCount.d.ts.map +1 -0
- package/dts/dots/DotStatusColor.d.ts +37 -0
- package/dts/dots/DotStatusColor.d.ts.map +1 -0
- package/dts/dots/DotSymbol.d.ts +67 -0
- package/dts/dots/DotSymbol.d.ts.map +1 -0
- package/dts/dots/__figma__/DotCount.figma.d.ts +2 -0
- package/dts/dots/__figma__/DotCount.figma.d.ts.map +1 -0
- package/dts/dots/__figma__/DotStatusColor.figma.d.ts +2 -0
- package/dts/dots/__figma__/DotStatusColor.figma.d.ts.map +1 -0
- package/dts/dots/__figma__/DotSymbol.figma.d.ts +2 -0
- package/dts/dots/__figma__/DotSymbol.figma.d.ts.map +1 -0
- package/dts/dots/dotStyles.d.ts +17 -0
- package/dts/dots/dotStyles.d.ts.map +1 -0
- package/dts/dots/index.d.ts +4 -0
- package/dts/dots/index.d.ts.map +1 -0
- package/dts/dots/useDotsLayout.d.ts +4 -0
- package/dts/dots/useDotsLayout.d.ts.map +1 -0
- package/dts/examples/ExampleScreen.d.ts +20 -0
- package/dts/examples/ExampleScreen.d.ts.map +1 -0
- package/dts/gradients/LinearGradient.d.ts +71 -0
- package/dts/gradients/LinearGradient.d.ts.map +1 -0
- package/dts/hooks/useA11y.d.ts +5 -0
- package/dts/hooks/useA11y.d.ts.map +1 -0
- package/dts/hooks/useAnimatedTransition.d.ts +8 -0
- package/dts/hooks/useAnimatedTransition.d.ts.map +1 -0
- package/dts/hooks/useAppState.d.ts +7 -0
- package/dts/hooks/useAppState.d.ts.map +1 -0
- package/dts/hooks/useCellSpacing.d.ts +236 -0
- package/dts/hooks/useCellSpacing.d.ts.map +1 -0
- package/dts/hooks/useCheckboxGroupState.d.ts +3 -0
- package/dts/hooks/useCheckboxGroupState.d.ts.map +1 -0
- package/dts/hooks/useContentSize.d.ts +7 -0
- package/dts/hooks/useContentSize.d.ts.map +1 -0
- package/dts/hooks/useDeviceColorScheme.d.ts +4 -0
- package/dts/hooks/useDeviceColorScheme.d.ts.map +1 -0
- package/dts/hooks/useDeviceFontScale.d.ts +3 -0
- package/dts/hooks/useDeviceFontScale.d.ts.map +1 -0
- package/dts/hooks/useDimensions.d.ts +7 -0
- package/dts/hooks/useDimensions.d.ts.map +1 -0
- package/dts/hooks/useDotPinStyles.d.ts +14 -0
- package/dts/hooks/useDotPinStyles.d.ts.map +1 -0
- package/dts/hooks/useEventHandler.d.ts +7 -0
- package/dts/hooks/useEventHandler.d.ts.map +1 -0
- package/dts/hooks/useHasNotch.d.ts +2 -0
- package/dts/hooks/useHasNotch.d.ts.map +1 -0
- package/dts/hooks/useHorizontallyScrollingPressables.d.ts +27 -0
- package/dts/hooks/useHorizontallyScrollingPressables.d.ts.map +1 -0
- package/dts/hooks/useInputBorderAnimation.d.ts +15 -0
- package/dts/hooks/useInputBorderAnimation.d.ts.map +1 -0
- package/dts/hooks/useInputBorderStyle.d.ts +25 -0
- package/dts/hooks/useInputBorderStyle.d.ts.map +1 -0
- package/dts/hooks/useLayout.d.ts +4 -0
- package/dts/hooks/useLayout.d.ts.map +1 -0
- package/dts/hooks/usePressAnimation.d.ts +10 -0
- package/dts/hooks/usePressAnimation.d.ts.map +1 -0
- package/dts/hooks/useSafeBottomPadding.d.ts +2 -0
- package/dts/hooks/useSafeBottomPadding.d.ts.map +1 -0
- package/dts/hooks/useScreenReaderStatus.d.ts +7 -0
- package/dts/hooks/useScreenReaderStatus.d.ts.map +1 -0
- package/dts/hooks/useScrollOffset.d.ts +8 -0
- package/dts/hooks/useScrollOffset.d.ts.map +1 -0
- package/dts/hooks/useScrollTo.d.ts +21 -0
- package/dts/hooks/useScrollTo.d.ts.map +1 -0
- package/dts/hooks/useSelectionCellBorderStyle.d.ts +30 -0
- package/dts/hooks/useSelectionCellBorderStyle.d.ts.map +1 -0
- package/dts/hooks/useStatusBarHeight.d.ts +6 -0
- package/dts/hooks/useStatusBarHeight.d.ts.map +1 -0
- package/dts/hooks/useTextAlign.d.ts +10 -0
- package/dts/hooks/useTextAlign.d.ts.map +1 -0
- package/dts/hooks/useTheme.d.ts +4 -0
- package/dts/hooks/useTheme.d.ts.map +1 -0
- package/dts/hooks/useWebBrowserOpener.d.ts +6 -0
- package/dts/hooks/useWebBrowserOpener.d.ts.map +1 -0
- package/dts/icons/Icon.d.ts +50 -0
- package/dts/icons/Icon.d.ts.map +1 -0
- package/dts/icons/LogoMark.d.ts +9 -0
- package/dts/icons/LogoMark.d.ts.map +1 -0
- package/dts/icons/LogoWordmark.d.ts +8 -0
- package/dts/icons/LogoWordmark.d.ts.map +1 -0
- package/dts/icons/SubBrandLogoMark.d.ts +7 -0
- package/dts/icons/SubBrandLogoMark.d.ts.map +1 -0
- package/dts/icons/SubBrandLogoWordmark.d.ts +7 -0
- package/dts/icons/SubBrandLogoWordmark.d.ts.map +1 -0
- package/dts/icons/TextIcon.d.ts +26 -0
- package/dts/icons/TextIcon.d.ts.map +1 -0
- package/dts/icons/__figma__/Icon.figma.d.ts +2 -0
- package/dts/icons/__figma__/Icon.figma.d.ts.map +1 -0
- package/dts/icons/__figma__/LogoMark.figma.d.ts +2 -0
- package/dts/icons/__figma__/LogoMark.figma.d.ts.map +1 -0
- package/dts/icons/__figma__/LogoWordmark.figma.d.ts +2 -0
- package/dts/icons/__figma__/LogoWordmark.figma.d.ts.map +1 -0
- package/dts/icons/__figma__/SubBrandLogoMark.figma.d.ts +2 -0
- package/dts/icons/__figma__/SubBrandLogoMark.figma.d.ts.map +1 -0
- package/dts/icons/__figma__/SubBrandLogoWordmark.figma.d.ts +2 -0
- package/dts/icons/__figma__/SubBrandLogoWordmark.figma.d.ts.map +1 -0
- package/dts/icons/index.d.ts +7 -0
- package/dts/icons/index.d.ts.map +1 -0
- package/dts/illustrations/HeroSquare.d.ts +19 -0
- package/dts/illustrations/HeroSquare.d.ts.map +1 -0
- package/dts/illustrations/Pictogram.d.ts +18 -0
- package/dts/illustrations/Pictogram.d.ts.map +1 -0
- package/dts/illustrations/SpotIcon.d.ts +18 -0
- package/dts/illustrations/SpotIcon.d.ts.map +1 -0
- package/dts/illustrations/SpotRectangle.d.ts +19 -0
- package/dts/illustrations/SpotRectangle.d.ts.map +1 -0
- package/dts/illustrations/SpotSquare.d.ts +18 -0
- package/dts/illustrations/SpotSquare.d.ts.map +1 -0
- package/dts/illustrations/__figma__/HeroSquare.figma.d.ts +2 -0
- package/dts/illustrations/__figma__/HeroSquare.figma.d.ts.map +1 -0
- package/dts/illustrations/__figma__/Pictogram.figma.d.ts +2 -0
- package/dts/illustrations/__figma__/Pictogram.figma.d.ts.map +1 -0
- package/dts/illustrations/__figma__/SpotIcon.figma.d.ts +2 -0
- package/dts/illustrations/__figma__/SpotIcon.figma.d.ts.map +1 -0
- package/dts/illustrations/__figma__/SpotRectangle.figma.d.ts +2 -0
- package/dts/illustrations/__figma__/SpotRectangle.figma.d.ts.map +1 -0
- package/dts/illustrations/__figma__/SpotSquare.figma.d.ts +2 -0
- package/dts/illustrations/__figma__/SpotSquare.figma.d.ts.map +1 -0
- package/dts/illustrations/createIllustration.d.ts +73 -0
- package/dts/illustrations/createIllustration.d.ts.map +1 -0
- package/dts/illustrations/index.d.ts +6 -0
- package/dts/illustrations/index.d.ts.map +1 -0
- package/dts/index.d.ts +4 -0
- package/dts/index.d.ts.map +1 -0
- package/dts/layout/Box.d.ts +75 -0
- package/dts/layout/Box.d.ts.map +1 -0
- package/dts/layout/Divider.d.ts +18 -0
- package/dts/layout/Divider.d.ts.map +1 -0
- package/dts/layout/Fallback.d.ts +21 -0
- package/dts/layout/Fallback.d.ts.map +1 -0
- package/dts/layout/Group.d.ts +96 -0
- package/dts/layout/Group.d.ts.map +1 -0
- package/dts/layout/HStack.d.ts +29 -0
- package/dts/layout/HStack.d.ts.map +1 -0
- package/dts/layout/OverflowGradient.d.ts +9 -0
- package/dts/layout/OverflowGradient.d.ts.map +1 -0
- package/dts/layout/Spacer.d.ts +29 -0
- package/dts/layout/Spacer.d.ts.map +1 -0
- package/dts/layout/VStack.d.ts +29 -0
- package/dts/layout/VStack.d.ts.map +1 -0
- package/dts/layout/__figma__/Divider.figma.d.ts +2 -0
- package/dts/layout/__figma__/Divider.figma.d.ts.map +1 -0
- package/dts/layout/__figma__/Fallback.figma.d.ts +2 -0
- package/dts/layout/__figma__/Fallback.figma.d.ts.map +1 -0
- package/dts/layout/index.d.ts +9 -0
- package/dts/layout/index.d.ts.map +1 -0
- package/dts/loaders/Spinner.d.ts +4 -0
- package/dts/loaders/Spinner.d.ts.map +1 -0
- package/dts/loaders/index.d.ts +2 -0
- package/dts/loaders/index.d.ts.map +1 -0
- package/dts/media/Avatar.d.ts +59 -0
- package/dts/media/Avatar.d.ts.map +1 -0
- package/dts/media/Carousel/Carousel.d.ts +32 -0
- package/dts/media/Carousel/Carousel.d.ts.map +1 -0
- package/dts/media/Carousel/CarouselItem.d.ts +16 -0
- package/dts/media/Carousel/CarouselItem.d.ts.map +1 -0
- package/dts/media/Carousel/CarouselItemContext.d.ts +25 -0
- package/dts/media/Carousel/CarouselItemContext.d.ts.map +1 -0
- package/dts/media/Carousel/index.d.ts +5 -0
- package/dts/media/Carousel/index.d.ts.map +1 -0
- package/dts/media/Carousel/types.d.ts +28 -0
- package/dts/media/Carousel/types.d.ts.map +1 -0
- package/dts/media/Carousel/useCarousel.d.ts +14 -0
- package/dts/media/Carousel/useCarousel.d.ts.map +1 -0
- package/dts/media/Carousel/useCarouselItem.d.ts +4 -0
- package/dts/media/Carousel/useCarouselItem.d.ts.map +1 -0
- package/dts/media/Carousel/useDismissCarouselItem.d.ts +15 -0
- package/dts/media/Carousel/useDismissCarouselItem.d.ts.map +1 -0
- package/dts/media/RemoteImage.d.ts +84 -0
- package/dts/media/RemoteImage.d.ts.map +1 -0
- package/dts/media/RemoteImageFallbackXmls/dark.d.ts +2 -0
- package/dts/media/RemoteImageFallbackXmls/dark.d.ts.map +1 -0
- package/dts/media/RemoteImageFallbackXmls/light.d.ts +2 -0
- package/dts/media/RemoteImageFallbackXmls/light.d.ts.map +1 -0
- package/dts/media/RemoteImageGroup.d.ts +39 -0
- package/dts/media/RemoteImageGroup.d.ts.map +1 -0
- package/dts/media/__figma__/Avatar.figma.d.ts +2 -0
- package/dts/media/__figma__/Avatar.figma.d.ts.map +1 -0
- package/dts/media/index.d.ts +5 -0
- package/dts/media/index.d.ts.map +1 -0
- package/dts/motion/AnimatedCaret.d.ts +18 -0
- package/dts/motion/AnimatedCaret.d.ts.map +1 -0
- package/dts/motion/ColorSurge.d.ts +29 -0
- package/dts/motion/ColorSurge.d.ts.map +1 -0
- package/dts/motion/Pulse.d.ts +56 -0
- package/dts/motion/Pulse.d.ts.map +1 -0
- package/dts/motion/Shake.d.ts +20 -0
- package/dts/motion/Shake.d.ts.map +1 -0
- package/dts/motion/convertMotionConfig.d.ts +51 -0
- package/dts/motion/convertMotionConfig.d.ts.map +1 -0
- package/dts/motion/types.d.ts +8 -0
- package/dts/motion/types.d.ts.map +1 -0
- package/dts/motion/withMotionTiming.d.ts +13 -0
- package/dts/motion/withMotionTiming.d.ts.map +1 -0
- package/dts/multi-content-module/MultiContentModule.d.ts +35 -0
- package/dts/multi-content-module/MultiContentModule.d.ts.map +1 -0
- package/dts/multi-content-module/__figma__/MultiContentModule.figma.d.ts +2 -0
- package/dts/multi-content-module/__figma__/MultiContentModule.figma.d.ts.map +1 -0
- package/dts/navigation/BrowserBar.d.ts +43 -0
- package/dts/navigation/BrowserBar.d.ts.map +1 -0
- package/dts/navigation/BrowserBarSearchInput.d.ts +23 -0
- package/dts/navigation/BrowserBarSearchInput.d.ts.map +1 -0
- package/dts/navigation/NavBarIconButton.d.ts +30 -0
- package/dts/navigation/NavBarIconButton.d.ts.map +1 -0
- package/dts/navigation/NavigationSubtitle.d.ts +12 -0
- package/dts/navigation/NavigationSubtitle.d.ts.map +1 -0
- package/dts/navigation/NavigationTitle.d.ts +10 -0
- package/dts/navigation/NavigationTitle.d.ts.map +1 -0
- package/dts/navigation/NavigationTitleSelect.d.ts +22 -0
- package/dts/navigation/NavigationTitleSelect.d.ts.map +1 -0
- package/dts/navigation/TopNavBar.d.ts +98 -0
- package/dts/navigation/TopNavBar.d.ts.map +1 -0
- package/dts/navigation/__figma__/BrowserBar.figma.d.ts +2 -0
- package/dts/navigation/__figma__/BrowserBar.figma.d.ts.map +1 -0
- package/dts/navigation/__figma__/TopNavBar.figma.d.ts +2 -0
- package/dts/navigation/__figma__/TopNavBar.figma.d.ts.map +1 -0
- package/dts/navigation/index.d.ts +8 -0
- package/dts/navigation/index.d.ts.map +1 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberAffixSection.d.ts +3 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberAffixSection.d.ts.map +1 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberDigit.d.ts +8 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberDigit.d.ts.map +1 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberMask.d.ts +3 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberMask.d.ts.map +1 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberSymbol.d.ts +3 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberSymbol.d.ts.map +1 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberValueSection.d.ts +3 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberValueSection.d.ts.map +1 -0
- package/dts/numbers/RollingNumber/RollingNumber.d.ts +516 -0
- package/dts/numbers/RollingNumber/RollingNumber.d.ts.map +1 -0
- package/dts/numbers/RollingNumber/index.d.ts +7 -0
- package/dts/numbers/RollingNumber/index.d.ts.map +1 -0
- package/dts/numbers/RollingNumber/useColorPulse.d.ts +23 -0
- package/dts/numbers/RollingNumber/useColorPulse.d.ts.map +1 -0
- package/dts/numbers/index.d.ts +2 -0
- package/dts/numbers/index.d.ts.map +1 -0
- package/dts/numpad/Numpad.d.ts +76 -0
- package/dts/numpad/Numpad.d.ts.map +1 -0
- package/dts/numpad/__figma__/Numpad.figma.d.ts +2 -0
- package/dts/numpad/__figma__/Numpad.figma.d.ts.map +1 -0
- package/dts/overlays/Alert.d.ts +97 -0
- package/dts/overlays/Alert.d.ts.map +1 -0
- package/dts/overlays/PortalProvider.d.ts +20 -0
- package/dts/overlays/PortalProvider.d.ts.map +1 -0
- package/dts/overlays/Toast.d.ts +40 -0
- package/dts/overlays/Toast.d.ts.map +1 -0
- package/dts/overlays/__figma__/Alert.figma.d.ts +2 -0
- package/dts/overlays/__figma__/Alert.figma.d.ts.map +1 -0
- package/dts/overlays/__figma__/Toast.figma.d.ts +2 -0
- package/dts/overlays/__figma__/Toast.figma.d.ts.map +1 -0
- package/dts/overlays/drawer/Drawer.d.ts +114 -0
- package/dts/overlays/drawer/Drawer.d.ts.map +1 -0
- package/dts/overlays/drawer/DrawerStatusBar.d.ts +9 -0
- package/dts/overlays/drawer/DrawerStatusBar.d.ts.map +1 -0
- package/dts/overlays/drawer/useDrawerAnimation.d.ts +24 -0
- package/dts/overlays/drawer/useDrawerAnimation.d.ts.map +1 -0
- package/dts/overlays/drawer/useDrawerPanResponder.d.ts +24 -0
- package/dts/overlays/drawer/useDrawerPanResponder.d.ts.map +1 -0
- package/dts/overlays/drawer/useDrawerSpacing.d.ts +27 -0
- package/dts/overlays/drawer/useDrawerSpacing.d.ts.map +1 -0
- package/dts/overlays/handlebar/HandleBar.d.ts +6 -0
- package/dts/overlays/handlebar/HandleBar.d.ts.map +1 -0
- package/dts/overlays/index.d.ts +12 -0
- package/dts/overlays/index.d.ts.map +1 -0
- package/dts/overlays/modal/Modal.d.ts +45 -0
- package/dts/overlays/modal/Modal.d.ts.map +1 -0
- package/dts/overlays/modal/ModalBody.d.ts +6 -0
- package/dts/overlays/modal/ModalBody.d.ts.map +1 -0
- package/dts/overlays/modal/ModalFooter.d.ts +29 -0
- package/dts/overlays/modal/ModalFooter.d.ts.map +1 -0
- package/dts/overlays/modal/ModalHeader.d.ts +46 -0
- package/dts/overlays/modal/ModalHeader.d.ts.map +1 -0
- package/dts/overlays/modal/__figma__/Modal.figma.d.ts +2 -0
- package/dts/overlays/modal/__figma__/Modal.figma.d.ts.map +1 -0
- package/dts/overlays/modal/useModalAnimation.d.ts +10 -0
- package/dts/overlays/modal/useModalAnimation.d.ts.map +1 -0
- package/dts/overlays/overlay/Overlay.d.ts +9 -0
- package/dts/overlays/overlay/Overlay.d.ts.map +1 -0
- package/dts/overlays/overlay/useOverlayAnimation.d.ts +11 -0
- package/dts/overlays/overlay/useOverlayAnimation.d.ts.map +1 -0
- package/dts/overlays/tooltip/InternalTooltip.d.ts +4 -0
- package/dts/overlays/tooltip/InternalTooltip.d.ts.map +1 -0
- package/dts/overlays/tooltip/Tooltip.d.ts +22 -0
- package/dts/overlays/tooltip/Tooltip.d.ts.map +1 -0
- package/dts/overlays/tooltip/TooltipProps.d.ts +98 -0
- package/dts/overlays/tooltip/TooltipProps.d.ts.map +1 -0
- package/dts/overlays/tooltip/__figma__/Tooltip.figma.d.ts +2 -0
- package/dts/overlays/tooltip/__figma__/Tooltip.figma.d.ts.map +1 -0
- package/dts/overlays/tooltip/useTooltipAnimation.d.ts +9 -0
- package/dts/overlays/tooltip/useTooltipAnimation.d.ts.map +1 -0
- package/dts/overlays/tooltip/useTooltipPosition.d.ts +12 -0
- package/dts/overlays/tooltip/useTooltipPosition.d.ts.map +1 -0
- package/dts/overlays/tray/Tray.d.ts +43 -0
- package/dts/overlays/tray/Tray.d.ts.map +1 -0
- package/dts/overlays/tray/__figma__/Tray.figma.d.ts +2 -0
- package/dts/overlays/tray/__figma__/Tray.figma.d.ts.map +1 -0
- package/dts/overlays/useAlertAnimation.d.ts +11 -0
- package/dts/overlays/useAlertAnimation.d.ts.map +1 -0
- package/dts/overlays/useModal.d.ts +6 -0
- package/dts/overlays/useModal.d.ts.map +1 -0
- package/dts/overlays/usePortal.d.ts +3 -0
- package/dts/overlays/usePortal.d.ts.map +1 -0
- package/dts/overlays/useToast.d.ts +9 -0
- package/dts/overlays/useToast.d.ts.map +1 -0
- package/dts/overlays/useToastAnimation.d.ts +10 -0
- package/dts/overlays/useToastAnimation.d.ts.map +1 -0
- package/dts/overlays/useToastPanResponder.d.ts +17 -0
- package/dts/overlays/useToastPanResponder.d.ts.map +1 -0
- package/dts/page/PageFooter.d.ts +50 -0
- package/dts/page/PageFooter.d.ts.map +1 -0
- package/dts/page/PageHeader.d.ts +112 -0
- package/dts/page/PageHeader.d.ts.map +1 -0
- package/dts/page/__figma__/PageFooter.figma.d.ts +2 -0
- package/dts/page/__figma__/PageFooter.figma.d.ts.map +1 -0
- package/dts/page/__figma__/PageHeader.figma.d.ts +2 -0
- package/dts/page/__figma__/PageHeader.figma.d.ts.map +1 -0
- package/dts/section-header/SectionHeader.d.ts +20 -0
- package/dts/section-header/SectionHeader.d.ts.map +1 -0
- package/dts/section-header/__figma__/SectionHeader.figma.d.ts +2 -0
- package/dts/section-header/__figma__/SectionHeader.figma.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperHeaderHorizontal.d.ts +3 -0
- package/dts/stepper/DefaultStepperHeaderHorizontal.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperIconVertical.d.ts +3 -0
- package/dts/stepper/DefaultStepperIconVertical.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperLabelVertical.d.ts +3 -0
- package/dts/stepper/DefaultStepperLabelVertical.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperProgressHorizontal.d.ts +3 -0
- package/dts/stepper/DefaultStepperProgressHorizontal.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperProgressVertical.d.ts +3 -0
- package/dts/stepper/DefaultStepperProgressVertical.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperStepHorizontal.d.ts +3 -0
- package/dts/stepper/DefaultStepperStepHorizontal.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperStepVertical.d.ts +3 -0
- package/dts/stepper/DefaultStepperStepVertical.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperSubstepContainerHorizontal.d.ts +3 -0
- package/dts/stepper/DefaultStepperSubstepContainerHorizontal.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperSubstepContainerVertical.d.ts +3 -0
- package/dts/stepper/DefaultStepperSubstepContainerVertical.d.ts.map +1 -0
- package/dts/stepper/Stepper.d.ts +224 -0
- package/dts/stepper/Stepper.d.ts.map +1 -0
- package/dts/stepper/index.d.ts +11 -0
- package/dts/stepper/index.d.ts.map +1 -0
- package/dts/sticky-footer/StickyFooter.d.ts +40 -0
- package/dts/sticky-footer/StickyFooter.d.ts.map +1 -0
- package/dts/sticky-footer/__figma__/StickyFooter.figma.d.ts +2 -0
- package/dts/sticky-footer/__figma__/StickyFooter.figma.d.ts.map +1 -0
- package/dts/styles/fallbackShimmer.d.ts +5 -0
- package/dts/styles/fallbackShimmer.d.ts.map +1 -0
- package/dts/styles/getBorderStyles.d.ts +46 -0
- package/dts/styles/getBorderStyles.d.ts.map +1 -0
- package/dts/styles/getFlushStyles.d.ts +9 -0
- package/dts/styles/getFlushStyles.d.ts.map +1 -0
- package/dts/styles/getInteractableStyles.d.ts +55 -0
- package/dts/styles/getInteractableStyles.d.ts.map +1 -0
- package/dts/styles/pinStyles.d.ts +29 -0
- package/dts/styles/pinStyles.d.ts.map +1 -0
- package/dts/styles/styleProps.d.ts +117 -0
- package/dts/styles/styleProps.d.ts.map +1 -0
- package/dts/system/AndroidNavigationBar.d.ts +11 -0
- package/dts/system/AndroidNavigationBar.d.ts.map +1 -0
- package/dts/system/EventHandlerProvider.d.ts +8 -0
- package/dts/system/EventHandlerProvider.d.ts.map +1 -0
- package/dts/system/Interactable.d.ts +69 -0
- package/dts/system/Interactable.d.ts.map +1 -0
- package/dts/system/Pressable.d.ts +87 -0
- package/dts/system/Pressable.d.ts.map +1 -0
- package/dts/system/PressableOpacity.d.ts +12 -0
- package/dts/system/PressableOpacity.d.ts.map +1 -0
- package/dts/system/StatusBar.d.ts +27 -0
- package/dts/system/StatusBar.d.ts.map +1 -0
- package/dts/system/ThemeProvider.d.ts +23 -0
- package/dts/system/ThemeProvider.d.ts.map +1 -0
- package/dts/system/__figma__/AndroidNavigationBar.figma.d.ts +2 -0
- package/dts/system/__figma__/AndroidNavigationBar.figma.d.ts.map +1 -0
- package/dts/system/index.d.ts +8 -0
- package/dts/system/index.d.ts.map +1 -0
- package/dts/tabs/SegmentedTab.d.ts +34 -0
- package/dts/tabs/SegmentedTab.d.ts.map +1 -0
- package/dts/tabs/SegmentedTabs.d.ts +15 -0
- package/dts/tabs/SegmentedTabs.d.ts.map +1 -0
- package/dts/tabs/SegmentedTabsActiveIndicator.d.ts +7 -0
- package/dts/tabs/SegmentedTabsActiveIndicator.d.ts.map +1 -0
- package/dts/tabs/TabIndicator.d.ts +29 -0
- package/dts/tabs/TabIndicator.d.ts.map +1 -0
- package/dts/tabs/TabLabel.d.ts +24 -0
- package/dts/tabs/TabLabel.d.ts.map +1 -0
- package/dts/tabs/TabNavigation.d.ts +85 -0
- package/dts/tabs/TabNavigation.d.ts.map +1 -0
- package/dts/tabs/Tabs.d.ts +43 -0
- package/dts/tabs/Tabs.d.ts.map +1 -0
- package/dts/tabs/__figma__/SegmentedTabs.figma.d.ts +2 -0
- package/dts/tabs/__figma__/SegmentedTabs.figma.d.ts.map +1 -0
- package/dts/tabs/__figma__/TabNavigation.figma.d.ts +2 -0
- package/dts/tabs/__figma__/TabNavigation.figma.d.ts.map +1 -0
- package/dts/tabs/hooks/useDotAnimation.d.ts +8 -0
- package/dts/tabs/hooks/useDotAnimation.d.ts.map +1 -0
- package/dts/tabs/hooks/useTabIndicatorStyles.d.ts +17 -0
- package/dts/tabs/hooks/useTabIndicatorStyles.d.ts.map +1 -0
- package/dts/tabs/index.d.ts +6 -0
- package/dts/tabs/index.d.ts.map +1 -0
- package/dts/tag/Tag.d.ts +60 -0
- package/dts/tag/Tag.d.ts.map +1 -0
- package/dts/tag/__figma__/Tag.figma.d.ts +2 -0
- package/dts/tag/__figma__/Tag.figma.d.ts.map +1 -0
- package/dts/themes/coinbaseDenseTheme.d.ts +556 -0
- package/dts/themes/coinbaseDenseTheme.d.ts.map +1 -0
- package/dts/themes/coinbaseHighContrastTheme.d.ts +555 -0
- package/dts/themes/coinbaseHighContrastTheme.d.ts.map +1 -0
- package/dts/themes/coinbaseTheme.d.ts +555 -0
- package/dts/themes/coinbaseTheme.d.ts.map +1 -0
- package/dts/themes/defaultHighContrastTheme.d.ts +555 -0
- package/dts/themes/defaultHighContrastTheme.d.ts.map +1 -0
- package/dts/themes/defaultTheme.d.ts +555 -0
- package/dts/themes/defaultTheme.d.ts.map +1 -0
- package/dts/tour/DefaultTourMask.d.ts +10 -0
- package/dts/tour/DefaultTourMask.d.ts.map +1 -0
- package/dts/tour/DefaultTourStepArrow.d.ts +7 -0
- package/dts/tour/DefaultTourStepArrow.d.ts.map +1 -0
- package/dts/tour/Tour.d.ts +71 -0
- package/dts/tour/Tour.d.ts.map +1 -0
- package/dts/tour/TourStep.d.ts +17 -0
- package/dts/tour/TourStep.d.ts.map +1 -0
- package/dts/tour/index.d.ts +5 -0
- package/dts/tour/index.d.ts.map +1 -0
- package/dts/typography/Link.d.ts +54 -0
- package/dts/typography/Link.d.ts.map +1 -0
- package/dts/typography/Text.d.ts +127 -0
- package/dts/typography/Text.d.ts.map +1 -0
- package/dts/typography/TextBody.d.ts +31 -0
- package/dts/typography/TextBody.d.ts.map +1 -0
- package/dts/typography/TextCaption.d.ts +31 -0
- package/dts/typography/TextCaption.d.ts.map +1 -0
- package/dts/typography/TextDisplay1.d.ts +31 -0
- package/dts/typography/TextDisplay1.d.ts.map +1 -0
- package/dts/typography/TextDisplay2.d.ts +31 -0
- package/dts/typography/TextDisplay2.d.ts.map +1 -0
- package/dts/typography/TextDisplay3.d.ts +31 -0
- package/dts/typography/TextDisplay3.d.ts.map +1 -0
- package/dts/typography/TextHeadline.d.ts +31 -0
- package/dts/typography/TextHeadline.d.ts.map +1 -0
- package/dts/typography/TextInherited.d.ts +31 -0
- package/dts/typography/TextInherited.d.ts.map +1 -0
- package/dts/typography/TextLabel1.d.ts +31 -0
- package/dts/typography/TextLabel1.d.ts.map +1 -0
- package/dts/typography/TextLabel2.d.ts +31 -0
- package/dts/typography/TextLabel2.d.ts.map +1 -0
- package/dts/typography/TextLegal.d.ts +31 -0
- package/dts/typography/TextLegal.d.ts.map +1 -0
- package/dts/typography/TextTitle1.d.ts +31 -0
- package/dts/typography/TextTitle1.d.ts.map +1 -0
- package/dts/typography/TextTitle2.d.ts +31 -0
- package/dts/typography/TextTitle2.d.ts.map +1 -0
- package/dts/typography/TextTitle3.d.ts +31 -0
- package/dts/typography/TextTitle3.d.ts.map +1 -0
- package/dts/typography/TextTitle4.d.ts +31 -0
- package/dts/typography/TextTitle4.d.ts.map +1 -0
- package/dts/typography/__figma__/Link.figma.d.ts +2 -0
- package/dts/typography/__figma__/Link.figma.d.ts.map +1 -0
- package/dts/typography/index.d.ts +16 -0
- package/dts/typography/index.d.ts.map +1 -0
- package/dts/utils/customTabsHelper.d.ts +5 -0
- package/dts/utils/customTabsHelper.d.ts.map +1 -0
- package/dts/utils/debounce.d.ts +6 -0
- package/dts/utils/debounce.d.ts.map +1 -0
- package/dts/utils/flattenAndJoinNodes.d.ts +24 -0
- package/dts/utils/flattenAndJoinNodes.d.ts.map +1 -0
- package/dts/utils/getAdjustedFontScale.d.ts +7 -0
- package/dts/utils/getAdjustedFontScale.d.ts.map +1 -0
- package/dts/utils/getSpacerStyle.d.ts +27 -0
- package/dts/utils/getSpacerStyle.d.ts.map +1 -0
- package/dts/utils/haptics.d.ts +9 -0
- package/dts/utils/haptics.d.ts.map +1 -0
- package/dts/utils/isValidURL.d.ts +2 -0
- package/dts/utils/isValidURL.d.ts.map +1 -0
- package/dts/utils/openWebBrowser.d.ts +53 -0
- package/dts/utils/openWebBrowser.d.ts.map +1 -0
- package/dts/utils/testHelpers.d.ts +582 -0
- package/dts/utils/testHelpers.d.ts.map +1 -0
- package/dts/visualizations/Counter.d.ts +15 -0
- package/dts/visualizations/Counter.d.ts.map +1 -0
- package/dts/visualizations/DefaultProgressCircleContent.d.ts +9 -0
- package/dts/visualizations/DefaultProgressCircleContent.d.ts.map +1 -0
- package/dts/visualizations/ProgressBar.d.ts +103 -0
- package/dts/visualizations/ProgressBar.d.ts.map +1 -0
- package/dts/visualizations/ProgressBarWithFixedLabels.d.ts +63 -0
- package/dts/visualizations/ProgressBarWithFixedLabels.d.ts.map +1 -0
- package/dts/visualizations/ProgressBarWithFloatLabel.d.ts +46 -0
- package/dts/visualizations/ProgressBarWithFloatLabel.d.ts.map +1 -0
- package/dts/visualizations/ProgressCircle.d.ts +141 -0
- package/dts/visualizations/ProgressCircle.d.ts.map +1 -0
- package/dts/visualizations/ProgressContainerWithButtons.d.ts +6 -0
- package/dts/visualizations/ProgressContainerWithButtons.d.ts.map +1 -0
- package/dts/visualizations/ProgressIndicator.d.ts +46 -0
- package/dts/visualizations/ProgressIndicator.d.ts.map +1 -0
- package/dts/visualizations/ProgressTextLabel.d.ts +23 -0
- package/dts/visualizations/ProgressTextLabel.d.ts.map +1 -0
- package/dts/visualizations/VisualizationContainer.d.ts +16 -0
- package/dts/visualizations/VisualizationContainer.d.ts.map +1 -0
- package/dts/visualizations/__figma__/ProgressBar.figma.d.ts +2 -0
- package/dts/visualizations/__figma__/ProgressBar.figma.d.ts.map +1 -0
- package/dts/visualizations/__figma__/ProgressCircle.figma.d.ts +2 -0
- package/dts/visualizations/__figma__/ProgressCircle.figma.d.ts.map +1 -0
- package/dts/visualizations/getProgressBarLabelParts.d.ts +16 -0
- package/dts/visualizations/getProgressBarLabelParts.d.ts.map +1 -0
- package/dts/visualizations/index.d.ts +7 -0
- package/dts/visualizations/index.d.ts.map +1 -0
- package/esm/accordion/Accordion.js +30 -0
- package/esm/accordion/AccordionHeader.js +104 -0
- package/esm/accordion/AccordionItem.js +51 -0
- package/esm/accordion/AccordionPanel.js +25 -0
- package/esm/accordion/__figma__/Accordion.figma.js +42 -0
- package/esm/accordion/__stories__/Accordion.stories.js +275 -0
- package/esm/accordion/index.js +2 -0
- package/esm/alpha/carousel/Carousel.js +244 -0
- package/esm/alpha/carousel/CarouselControlsWrapper.js +29 -0
- package/esm/alpha/carousel/CarouselItem.js +134 -0
- package/esm/alpha/carousel/types.js +1 -0
- package/esm/alpha/carousel/useCarousel.js +25 -0
- package/esm/alpha/carousel/useCarouselItem.js +36 -0
- package/esm/animation/AnimationProps.js +1 -0
- package/esm/animation/Lottie.e2e.js +2 -0
- package/esm/animation/Lottie.js +55 -0
- package/esm/animation/LottieStatusAnimation.js +29 -0
- package/esm/animation/__stories__/Lottie.stories.js +33 -0
- package/esm/animation/__stories__/LottieStatusAnimation.stories.js +39 -0
- package/esm/animation/convertMotionConfig.js +30 -0
- package/esm/animation/createLottie.e2e.js +2 -0
- package/esm/animation/createLottie.js +104 -0
- package/esm/animation/index.js +6 -0
- package/esm/animation/lottieProgresConfig.js +6 -0
- package/esm/animation/mocks.js +45 -0
- package/esm/animation/types.js +1 -0
- package/esm/animation/useLottie.e2e.js +2 -0
- package/esm/animation/useLottie.js +10 -0
- package/esm/animation/useLottieColorFilters.js +42 -0
- package/esm/animation/useRotateAnimation.js +26 -0
- package/esm/banner/Banner.js +209 -0
- package/esm/banner/__stories__/Banner.stories.js +310 -0
- package/esm/buttons/AvatarButton.js +37 -0
- package/esm/buttons/Button.js +140 -0
- package/esm/buttons/ButtonGroup.js +34 -0
- package/esm/buttons/DefaultSlideButtonBackground.js +45 -0
- package/esm/buttons/DefaultSlideButtonHandle.js +138 -0
- package/esm/buttons/IconButton.js +87 -0
- package/esm/buttons/IconCounterButton.js +42 -0
- package/esm/buttons/SlideButton.js +145 -0
- package/esm/buttons/__figma__/AvatarButton.figma.js +25 -0
- package/esm/buttons/__figma__/Button.figma.js +65 -0
- package/esm/buttons/__figma__/ButtonGroup.figma.js +48 -0
- package/esm/buttons/__figma__/IconButton.figma.js +29 -0
- package/esm/buttons/__figma__/SlideButton.figma.js +26 -0
- package/esm/buttons/__stories__/AvatarButton.stories.js +132 -0
- package/esm/buttons/__stories__/Button.stories.js +181 -0
- package/esm/buttons/__stories__/ButtonGroup.stories.js +170 -0
- package/esm/buttons/__stories__/IconButton.stories.js +183 -0
- package/esm/buttons/__stories__/IconCounterButton.stories.js +80 -0
- package/esm/buttons/__stories__/SlideButton.stories.js +169 -0
- package/esm/buttons/index.js +6 -0
- package/esm/cards/AnnouncementCard.js +43 -0
- package/esm/cards/Card.js +100 -0
- package/esm/cards/CardBody.js +169 -0
- package/esm/cards/CardFooter.js +23 -0
- package/esm/cards/CardGroup.js +30 -0
- package/esm/cards/CardHeader.js +40 -0
- package/esm/cards/CardMedia.js +48 -0
- package/esm/cards/CardRemoteImage.js +18 -0
- package/esm/cards/ContainedAssetCard.js +78 -0
- package/esm/cards/ContentCard/ContentCard.js +29 -0
- package/esm/cards/ContentCard/ContentCardBody.js +47 -0
- package/esm/cards/ContentCard/ContentCardFooter.js +20 -0
- package/esm/cards/ContentCard/ContentCardHeader.js +46 -0
- package/esm/cards/ContentCard/__figma__/ContentCard.figma.js +32 -0
- package/esm/cards/ContentCard/__figma__/ContentCardBody.figma.js +39 -0
- package/esm/cards/ContentCard/__figma__/ContentCardFooter.figma.js +142 -0
- package/esm/cards/ContentCard/__figma__/ContentCardHeader.figma.js +25 -0
- package/esm/cards/ContentCard/index.js +4 -0
- package/esm/cards/DataCard.js +68 -0
- package/esm/cards/FeatureEntryCard.js +39 -0
- package/esm/cards/FeedCard.js +95 -0
- package/esm/cards/FloatingAssetCard.js +65 -0
- package/esm/cards/LikeButton.js +89 -0
- package/esm/cards/NudgeCard.js +121 -0
- package/esm/cards/UpsellCard.js +92 -0
- package/esm/cards/__figma__/AnnouncementCard.figma.js +18 -0
- package/esm/cards/__figma__/ContainedAssetCard.figma.js +39 -0
- package/esm/cards/__figma__/FloatingAssetCard.figma.js +30 -0
- package/esm/cards/__figma__/NudgeCard.figma.js +54 -0
- package/esm/cards/__figma__/UpsellCard.figma.js +46 -0
- package/esm/cards/__stories__/Card.stories.js +396 -0
- package/esm/cards/__stories__/ContainedAssetCard.stories.js +134 -0
- package/esm/cards/__stories__/ContentCard.stories.js +332 -0
- package/esm/cards/__stories__/FloatingAssetCard.stories.js +81 -0
- package/esm/cards/__stories__/NudgeCard.stories.js +179 -0
- package/esm/cards/__stories__/UpsellCard.stories.js +143 -0
- package/esm/cards/index.js +12 -0
- package/esm/carousel/Carousel.js +391 -0
- package/esm/carousel/CarouselItem.js +58 -0
- package/esm/carousel/DefaultCarouselNavigation.js +52 -0
- package/esm/carousel/DefaultCarouselPagination.js +49 -0
- package/esm/carousel/__stories__/Carousel.stories.js +740 -0
- package/esm/carousel/index.js +4 -0
- package/esm/cells/Cell.js +158 -0
- package/esm/cells/CellAccessory.js +43 -0
- package/esm/cells/CellDetail.js +35 -0
- package/esm/cells/CellHelperText.js +34 -0
- package/esm/cells/CellMedia.js +68 -0
- package/esm/cells/ContentCell.js +99 -0
- package/esm/cells/ContentCellFallback.js +43 -0
- package/esm/cells/ListCell.js +78 -0
- package/esm/cells/ListCellFallback.js +110 -0
- package/esm/cells/MediaFallback.js +23 -0
- package/esm/cells/__figma__/ContentCell.figma.js +35 -0
- package/esm/cells/__figma__/ListCell.figma.js +74 -0
- package/esm/cells/__stories__/ContentCell.stories.js +227 -0
- package/esm/cells/__stories__/ContentCellFallback.stories.js +96 -0
- package/esm/cells/__stories__/ListCell.stories.js +763 -0
- package/esm/cells/__stories__/ListCellFallback.stories.js +244 -0
- package/esm/cells/index.js +6 -0
- package/esm/chips/Chip.js +63 -0
- package/esm/chips/ChipProps.js +1 -0
- package/esm/chips/InputChip.js +28 -0
- package/esm/chips/SelectChip.js +124 -0
- package/esm/chips/TabbedChips.js +84 -0
- package/esm/chips/__figma__/InputChip.figma.js +26 -0
- package/esm/chips/__figma__/SelectChip.figma.js +39 -0
- package/esm/chips/__figma__/TabbedChips.figma.js +55 -0
- package/esm/chips/__stories__/Chip.stories.js +108 -0
- package/esm/chips/__stories__/InputChip.stories.js +48 -0
- package/esm/chips/__stories__/SelectChip.stories.js +128 -0
- package/esm/chips/__stories__/TabbedChips.stories.js +65 -0
- package/esm/coachmark/Coachmark.js +73 -0
- package/esm/coachmark/__figma__/Coachmark.figma.js +41 -0
- package/esm/coachmark/__stories__/Coachmark.stories.js +107 -0
- package/esm/collapsible/Collapsible.js +128 -0
- package/esm/collapsible/__stories__/Collapsible.stories.js +127 -0
- package/esm/collapsible/index.js +1 -0
- package/esm/collapsible/useCollapsibleAnimation.js +37 -0
- package/esm/collapsible/useCollapsibleDirection.js +23 -0
- package/esm/collapsible/useToggleAnimation.js +19 -0
- package/esm/controls/Checkbox.js +95 -0
- package/esm/controls/CheckboxCell.js +188 -0
- package/esm/controls/CheckboxGroup.js +102 -0
- package/esm/controls/Control.js +155 -0
- package/esm/controls/ControlGroup.js +46 -0
- package/esm/controls/HelperText.js +52 -0
- package/esm/controls/InputIcon.js +39 -0
- package/esm/controls/InputIconButton.js +39 -0
- package/esm/controls/InputLabel.js +17 -0
- package/esm/controls/InputStack.js +131 -0
- package/esm/controls/Menu.js +19 -0
- package/esm/controls/NativeInput.js +61 -0
- package/esm/controls/Radio.js +101 -0
- package/esm/controls/RadioCell.js +186 -0
- package/esm/controls/RadioGroup.js +95 -0
- package/esm/controls/SearchInput.js +102 -0
- package/esm/controls/Select.js +197 -0
- package/esm/controls/SelectContext.js +18 -0
- package/esm/controls/SelectOption.js +71 -0
- package/esm/controls/Switch.js +102 -0
- package/esm/controls/TextInput.js +201 -0
- package/esm/controls/__figma__/Checkbox.figma.js +27 -0
- package/esm/controls/__figma__/CheckboxCell.figma.js +38 -0
- package/esm/controls/__figma__/CheckboxGroup.figma.js +23 -0
- package/esm/controls/__figma__/RadioCell.figma.js +38 -0
- package/esm/controls/__figma__/RadioGroup.figma.js +47 -0
- package/esm/controls/__figma__/SearchInput.figma.js +35 -0
- package/esm/controls/__figma__/Select.figma.js +62 -0
- package/esm/controls/__figma__/SelectOption.figma.js +35 -0
- package/esm/controls/__figma__/Switch.figma.js +16 -0
- package/esm/controls/__figma__/TextInput.figma.js +125 -0
- package/esm/controls/__stories__/Checkbox.stories.js +143 -0
- package/esm/controls/__stories__/CheckboxCell.stories.js +292 -0
- package/esm/controls/__stories__/ControlGroup.stories.js +235 -0
- package/esm/controls/__stories__/InputIcon.stories.js +134 -0
- package/esm/controls/__stories__/InputIconButton.stories.js +120 -0
- package/esm/controls/__stories__/InputStack.stories.js +208 -0
- package/esm/controls/__stories__/RadioCell.stories.js +296 -0
- package/esm/controls/__stories__/RadioGroup.stories.js +141 -0
- package/esm/controls/__stories__/SearchInput.stories.js +200 -0
- package/esm/controls/__stories__/Select.stories.js +422 -0
- package/esm/controls/__stories__/SelectOption.stories.js +60 -0
- package/esm/controls/__stories__/Switch.stories.js +69 -0
- package/esm/controls/__stories__/TextInput.stories.js +543 -0
- package/esm/controls/context.js +2 -0
- package/esm/controls/index.js +15 -0
- package/esm/controls/useControlMotionProps.js +35 -0
- package/esm/controls/useSelect.js +13 -0
- package/esm/core/theme.js +1 -0
- package/esm/dates/DateInput.js +107 -0
- package/esm/dates/DatePicker.js +119 -0
- package/esm/dates/__figma__/DatePicker.figma.js +43 -0
- package/esm/dates/__stories__/DateInput.stories.js +68 -0
- package/esm/dates/__stories__/DatePicker.stories.js +34 -0
- package/esm/dots/DotCount.js +140 -0
- package/esm/dots/DotStatusColor.js +61 -0
- package/esm/dots/DotSymbol.js +101 -0
- package/esm/dots/__figma__/DotCount.figma.js +16 -0
- package/esm/dots/__figma__/DotStatusColor.figma.js +23 -0
- package/esm/dots/__figma__/DotSymbol.figma.js +45 -0
- package/esm/dots/__stories__/Dot.stories.js +480 -0
- package/esm/dots/__stories__/DotMisc.stories.js +39 -0
- package/esm/dots/dotStyles.js +10 -0
- package/esm/dots/index.js +3 -0
- package/esm/dots/useDotsLayout.js +8 -0
- package/esm/examples/ExampleScreen.js +76 -0
- package/esm/gradients/LinearGradient.js +67 -0
- package/esm/gradients/__stories__/LinearGradient.stories.js +78 -0
- package/esm/hooks/useA11y.js +36 -0
- package/esm/hooks/useAnimatedTransition.js +24 -0
- package/esm/hooks/useAppState.js +15 -0
- package/esm/hooks/useCellSpacing.js +27 -0
- package/esm/hooks/useCheckboxGroupState.js +1 -0
- package/esm/hooks/useContentSize.js +15 -0
- package/esm/hooks/useDeviceColorScheme.js +25 -0
- package/esm/hooks/useDeviceFontScale.js +20 -0
- package/esm/hooks/useDimensions.js +19 -0
- package/esm/hooks/useDotPinStyles.js +28 -0
- package/esm/hooks/useEventHandler.js +6 -0
- package/esm/hooks/useHasNotch.js +9 -0
- package/esm/hooks/useHorizontallyScrollingPressables.js +104 -0
- package/esm/hooks/useInputBorderAnimation.js +32 -0
- package/esm/hooks/useInputBorderStyle.js +55 -0
- package/esm/hooks/useLayout.js +14 -0
- package/esm/hooks/usePressAnimation.js +23 -0
- package/esm/hooks/useSafeBottomPadding.js +11 -0
- package/esm/hooks/useScreenReaderStatus.js +25 -0
- package/esm/hooks/useScrollOffset.js +36 -0
- package/esm/hooks/useScrollTo.js +32 -0
- package/esm/hooks/useSelectionCellBorderStyle.js +58 -0
- package/esm/hooks/useStatusBarHeight.js +36 -0
- package/esm/hooks/useTextAlign.js +19 -0
- package/esm/hooks/useTheme.js +9 -0
- package/esm/hooks/useWebBrowserOpener.js +27 -0
- package/esm/icons/Icon.js +86 -0
- package/esm/icons/LogoMark.js +35 -0
- package/esm/icons/LogoWordmark.js +29 -0
- package/esm/icons/SubBrandLogoMark.js +33 -0
- package/esm/icons/SubBrandLogoWordmark.js +33 -0
- package/esm/icons/TextIcon.js +48 -0
- package/esm/icons/__figma__/Icon.figma.js +2996 -0
- package/esm/icons/__figma__/LogoMark.figma.js +20 -0
- package/esm/icons/__figma__/LogoWordmark.figma.js +32 -0
- package/esm/icons/__figma__/SubBrandLogoMark.figma.js +47 -0
- package/esm/icons/__figma__/SubBrandLogoWordmark.figma.js +48 -0
- package/esm/icons/__stories__/Icon.stories.js +98 -0
- package/esm/icons/__stories__/IconSheet.js +27 -0
- package/esm/icons/__stories__/Logo.stories.js +332 -0
- package/esm/icons/index.js +6 -0
- package/esm/illustrations/HeroSquare.js +3 -0
- package/esm/illustrations/Pictogram.js +3 -0
- package/esm/illustrations/SpotIcon.js +3 -0
- package/esm/illustrations/SpotRectangle.js +3 -0
- package/esm/illustrations/SpotSquare.js +3 -0
- package/esm/illustrations/__figma__/HeroSquare.figma.js +2104 -0
- package/esm/illustrations/__figma__/Pictogram.figma.js +1774 -0
- package/esm/illustrations/__figma__/SpotIcon.figma.js +340 -0
- package/esm/illustrations/__figma__/SpotRectangle.figma.js +1102 -0
- package/esm/illustrations/__figma__/SpotSquare.figma.js +1192 -0
- package/esm/illustrations/__stories__/HeroSquare.stories.js +2 -0
- package/esm/illustrations/__stories__/Pictogram.stories.js +2 -0
- package/esm/illustrations/__stories__/SpotIcon.stories.js +2 -0
- package/esm/illustrations/__stories__/SpotRectangle.stories.js +2 -0
- package/esm/illustrations/__stories__/SpotSquare.stories.js +2 -0
- package/esm/illustrations/__stories__/getIllustrationSheet.js +164 -0
- package/esm/illustrations/createIllustration.js +55 -0
- package/esm/illustrations/index.js +5 -0
- package/esm/index.js +3 -0
- package/esm/jest.d.js +3 -0
- package/esm/layout/Box.js +250 -0
- package/esm/layout/Divider.js +37 -0
- package/esm/layout/Fallback.js +98 -0
- package/esm/layout/Group.js +40 -0
- package/esm/layout/HStack.js +16 -0
- package/esm/layout/OverflowGradient.js +74 -0
- package/esm/layout/Spacer.js +44 -0
- package/esm/layout/VStack.js +16 -0
- package/esm/layout/__figma__/Divider.figma.js +27 -0
- package/esm/layout/__figma__/Fallback.figma.js +21 -0
- package/esm/layout/__stories__/Box.stories.js +327 -0
- package/esm/layout/__stories__/Divider.stories.js +34 -0
- package/esm/layout/__stories__/Group.stories.js +109 -0
- package/esm/layout/__stories__/LoremIpsum.js +25 -0
- package/esm/layout/__stories__/Spacer.stories.js +115 -0
- package/esm/layout/index.js +8 -0
- package/esm/loaders/Spinner.js +21 -0
- package/esm/loaders/__stories__/Spinner.stories.js +18 -0
- package/esm/loaders/index.js +1 -0
- package/esm/media/Avatar.js +119 -0
- package/esm/media/Carousel/Carousel.js +152 -0
- package/esm/media/Carousel/CarouselItem.js +64 -0
- package/esm/media/Carousel/CarouselItemContext.js +22 -0
- package/esm/media/Carousel/index.js +4 -0
- package/esm/media/Carousel/types.js +1 -0
- package/esm/media/Carousel/useCarousel.js +23 -0
- package/esm/media/Carousel/useCarouselItem.js +17 -0
- package/esm/media/Carousel/useDismissCarouselItem.js +65 -0
- package/esm/media/RemoteImage.js +178 -0
- package/esm/media/RemoteImageFallbackXmls/dark.js +3 -0
- package/esm/media/RemoteImageFallbackXmls/light.js +3 -0
- package/esm/media/RemoteImageGroup.js +111 -0
- package/esm/media/__figma__/Avatar.figma.js +56 -0
- package/esm/media/__stories__/Avatar.stories.js +134 -0
- package/esm/media/__stories__/CarouselAlphaExample.js +93 -0
- package/esm/media/__stories__/CarouselMedia.stories.js +183 -0
- package/esm/media/__stories__/RemoteImage.stories.js +269 -0
- package/esm/media/__stories__/RemoteImageGroup.stories.js +289 -0
- package/esm/media/index.js +4 -0
- package/esm/motion/AnimatedCaret.js +61 -0
- package/esm/motion/ColorSurge.js +44 -0
- package/esm/motion/Pulse.js +54 -0
- package/esm/motion/Shake.js +51 -0
- package/esm/motion/__stories__/AnimatedCaret.stories.js +27 -0
- package/esm/motion/__stories__/HintMotion.stories.js +182 -0
- package/esm/motion/convertMotionConfig.js +34 -0
- package/esm/motion/types.js +1 -0
- package/esm/motion/withMotionTiming.js +16 -0
- package/esm/multi-content-module/MultiContentModule.js +59 -0
- package/esm/multi-content-module/__figma__/MultiContentModule.figma.js +31 -0
- package/esm/multi-content-module/__stories__/MultiContentModule.stories.js +390 -0
- package/esm/navigation/BrowserBar.js +77 -0
- package/esm/navigation/BrowserBarSearchInput.js +43 -0
- package/esm/navigation/NavBarIconButton.js +61 -0
- package/esm/navigation/NavigationSubtitle.js +19 -0
- package/esm/navigation/NavigationTitle.js +18 -0
- package/esm/navigation/NavigationTitleSelect.js +84 -0
- package/esm/navigation/TopNavBar.js +121 -0
- package/esm/navigation/__figma__/BrowserBar.figma.js +58 -0
- package/esm/navigation/__figma__/TopNavBar.figma.js +312 -0
- package/esm/navigation/__stories__/BrowserBar.stories.js +121 -0
- package/esm/navigation/__stories__/BrowserBarSearchInput.stories.js +62 -0
- package/esm/navigation/__stories__/NavBarIconButton.stories.js +59 -0
- package/esm/navigation/__stories__/NavigationSubtitle.stories.js +152 -0
- package/esm/navigation/__stories__/NavigationTitle.stories.js +198 -0
- package/esm/navigation/__stories__/NavigationTitleSelect.stories.js +253 -0
- package/esm/navigation/__stories__/TopNavBar.stories.js +108 -0
- package/esm/navigation/index.js +7 -0
- package/esm/numbers/RollingNumber/DefaultRollingNumberAffixSection.js +33 -0
- package/esm/numbers/RollingNumber/DefaultRollingNumberDigit.js +73 -0
- package/esm/numbers/RollingNumber/DefaultRollingNumberMask.js +27 -0
- package/esm/numbers/RollingNumber/DefaultRollingNumberSymbol.js +31 -0
- package/esm/numbers/RollingNumber/DefaultRollingNumberValueSection.js +97 -0
- package/esm/numbers/RollingNumber/RollingNumber.js +270 -0
- package/esm/numbers/RollingNumber/index.js +6 -0
- package/esm/numbers/RollingNumber/useColorPulse.js +48 -0
- package/esm/numbers/__stories__/RollingNumber.stories.js +1008 -0
- package/esm/numbers/index.js +1 -0
- package/esm/numpad/Numpad.js +150 -0
- package/esm/numpad/__figma__/Numpad.figma.js +63 -0
- package/esm/numpad/__stories__/Numpad.stories.js +230 -0
- package/esm/overlays/Alert.js +147 -0
- package/esm/overlays/PortalProvider.js +56 -0
- package/esm/overlays/Toast.js +126 -0
- package/esm/overlays/__figma__/Alert.figma.js +32 -0
- package/esm/overlays/__figma__/Toast.figma.js +51 -0
- package/esm/overlays/__stories__/AlertBasic.stories.js +35 -0
- package/esm/overlays/__stories__/AlertLongTitle.stories.js +35 -0
- package/esm/overlays/__stories__/AlertOverModal.stories.js +72 -0
- package/esm/overlays/__stories__/AlertPortal.stories.js +47 -0
- package/esm/overlays/__stories__/AlertSingleAction.stories.js +34 -0
- package/esm/overlays/__stories__/AlertVerticalActions.stories.js +36 -0
- package/esm/overlays/__stories__/DrawerBottom.stories.js +15 -0
- package/esm/overlays/__stories__/DrawerFallback.stories.js +92 -0
- package/esm/overlays/__stories__/DrawerLeft.stories.js +15 -0
- package/esm/overlays/__stories__/DrawerMisc.stories.js +52 -0
- package/esm/overlays/__stories__/DrawerRight.stories.js +15 -0
- package/esm/overlays/__stories__/DrawerScrollable.stories.js +82 -0
- package/esm/overlays/__stories__/DrawerTop.stories.js +15 -0
- package/esm/overlays/__stories__/Drawers.js +138 -0
- package/esm/overlays/__stories__/ModalBackButton.stories.js +47 -0
- package/esm/overlays/__stories__/ModalBasic.stories.js +46 -0
- package/esm/overlays/__stories__/ModalLong.stories.js +54 -0
- package/esm/overlays/__stories__/ModalPortal.stories.js +50 -0
- package/esm/overlays/__stories__/Overlay.stories.js +48 -0
- package/esm/overlays/__stories__/Toast.stories.js +69 -0
- package/esm/overlays/__stories__/TooltipV2.stories.js +297 -0
- package/esm/overlays/__stories__/TrayAction.stories.js +195 -0
- package/esm/overlays/__stories__/TrayBasic.stories.js +13 -0
- package/esm/overlays/__stories__/TrayFallback.stories.js +16 -0
- package/esm/overlays/__stories__/TrayFeedCard.stories.js +57 -0
- package/esm/overlays/__stories__/TrayInformational.stories.js +158 -0
- package/esm/overlays/__stories__/TrayMessaging.stories.js +74 -0
- package/esm/overlays/__stories__/TrayMisc.stories.js +187 -0
- package/esm/overlays/__stories__/TrayNavigation.stories.js +73 -0
- package/esm/overlays/__stories__/TrayPromotional.stories.js +74 -0
- package/esm/overlays/__stories__/TrayScrollable.stories.js +15 -0
- package/esm/overlays/__stories__/TrayTall.stories.js +16 -0
- package/esm/overlays/__stories__/TrayWithTitle.stories.js +15 -0
- package/esm/overlays/__stories__/Trays.js +119 -0
- package/esm/overlays/drawer/Drawer.js +183 -0
- package/esm/overlays/drawer/DrawerStatusBar.js +21 -0
- package/esm/overlays/drawer/useDrawerAnimation.js +76 -0
- package/esm/overlays/drawer/useDrawerPanResponder.js +181 -0
- package/esm/overlays/drawer/useDrawerSpacing.js +40 -0
- package/esm/overlays/handlebar/HandleBar.js +40 -0
- package/esm/overlays/index.js +11 -0
- package/esm/overlays/modal/Modal.js +100 -0
- package/esm/overlays/modal/ModalBody.js +48 -0
- package/esm/overlays/modal/ModalFooter.js +39 -0
- package/esm/overlays/modal/ModalHeader.js +63 -0
- package/esm/overlays/modal/__figma__/Modal.figma.js +74 -0
- package/esm/overlays/modal/useModalAnimation.js +24 -0
- package/esm/overlays/overlay/Overlay.js +31 -0
- package/esm/overlays/overlay/useOverlayAnimation.js +32 -0
- package/esm/overlays/tooltip/InternalTooltip.js +92 -0
- package/esm/overlays/tooltip/Tooltip.js +107 -0
- package/esm/overlays/tooltip/TooltipProps.js +1 -0
- package/esm/overlays/tooltip/__figma__/Tooltip.figma.js +90 -0
- package/esm/overlays/tooltip/useTooltipAnimation.js +31 -0
- package/esm/overlays/tooltip/useTooltipPosition.js +76 -0
- package/esm/overlays/tray/Tray.js +90 -0
- package/esm/overlays/tray/__figma__/Tray.figma.js +225 -0
- package/esm/overlays/useAlertAnimation.js +16 -0
- package/esm/overlays/useModal.js +6 -0
- package/esm/overlays/usePortal.js +2 -0
- package/esm/overlays/useToast.js +39 -0
- package/esm/overlays/useToastAnimation.js +24 -0
- package/esm/overlays/useToastPanResponder.js +92 -0
- package/esm/page/PageFooter.js +23 -0
- package/esm/page/PageHeader.js +58 -0
- package/esm/page/__figma__/PageFooter.figma.js +18 -0
- package/esm/page/__figma__/PageHeader.figma.js +58 -0
- package/esm/page/__stories__/PageFooter.stories.js +57 -0
- package/esm/page/__stories__/PageFooterInPage.stories.js +82 -0
- package/esm/page/__stories__/PageHeader.stories.js +210 -0
- package/esm/page/__stories__/PageHeaderInErrorEmptyState.stories.js +71 -0
- package/esm/page/__stories__/PageHeaderInPage.stories.js +79 -0
- package/esm/section-header/SectionHeader.js +60 -0
- package/esm/section-header/__figma__/SectionHeader.figma.js +50 -0
- package/esm/section-header/__stories__/SectionHeader.stories.js +133 -0
- package/esm/stepper/DefaultStepperHeaderHorizontal.js +78 -0
- package/esm/stepper/DefaultStepperIconVertical.js +34 -0
- package/esm/stepper/DefaultStepperLabelVertical.js +61 -0
- package/esm/stepper/DefaultStepperProgressHorizontal.js +42 -0
- package/esm/stepper/DefaultStepperProgressVertical.js +87 -0
- package/esm/stepper/DefaultStepperStepHorizontal.js +146 -0
- package/esm/stepper/DefaultStepperStepVertical.js +156 -0
- package/esm/stepper/DefaultStepperSubstepContainerHorizontal.js +20 -0
- package/esm/stepper/DefaultStepperSubstepContainerVertical.js +18 -0
- package/esm/stepper/Stepper.js +220 -0
- package/esm/stepper/__stories__/StepperHorizontal.stories.js +321 -0
- package/esm/stepper/__stories__/StepperVertical.stories.js +575 -0
- package/esm/stepper/index.js +12 -0
- package/esm/sticky-footer/StickyFooter.js +31 -0
- package/esm/sticky-footer/__figma__/StickyFooter.figma.js +25 -0
- package/esm/sticky-footer/__stories__/StickyFooter.stories.js +52 -0
- package/esm/sticky-footer/__stories__/StickyFooterWithTray.stories.js +103 -0
- package/esm/styles/fallbackShimmer.js +4 -0
- package/esm/styles/getBorderStyles.js +60 -0
- package/esm/styles/getFlushStyles.js +18 -0
- package/esm/styles/getInteractableStyles.js +60 -0
- package/esm/styles/pinStyles.js +28 -0
- package/esm/styles/styleProps.js +89 -0
- package/esm/system/AndroidNavigationBar.js +42 -0
- package/esm/system/EventHandlerProvider.js +7 -0
- package/esm/system/Interactable.js +64 -0
- package/esm/system/Pressable.js +255 -0
- package/esm/system/PressableOpacity.js +20 -0
- package/esm/system/StatusBar.js +66 -0
- package/esm/system/ThemeProvider.js +51 -0
- package/esm/system/__figma__/AndroidNavigationBar.figma.js +23 -0
- package/esm/system/__stories__/Frontier.stories.js +100 -0
- package/esm/system/__stories__/Palette.stories.js +100 -0
- package/esm/system/__stories__/PatternDisclosureHighFrictionBenefit.stories.js +95 -0
- package/esm/system/__stories__/PatternDisclosureHighFrictionRisk.stories.js +116 -0
- package/esm/system/__stories__/PatternDisclosureLowFriction.stories.js +100 -0
- package/esm/system/__stories__/PatternDisclosureMedFriction.stories.js +100 -0
- package/esm/system/__stories__/PatternError.stories.js +62 -0
- package/esm/system/__stories__/Pressable.stories.js +175 -0
- package/esm/system/__stories__/PressableOpacity.stories.js +33 -0
- package/esm/system/__stories__/Spectrum.stories.js +38 -0
- package/esm/system/__stories__/ThemeProvider.stories.js +171 -0
- package/esm/system/index.js +7 -0
- package/esm/tabs/SegmentedTab.js +76 -0
- package/esm/tabs/SegmentedTabs.js +28 -0
- package/esm/tabs/SegmentedTabsActiveIndicator.js +15 -0
- package/esm/tabs/TabIndicator.js +46 -0
- package/esm/tabs/TabLabel.js +111 -0
- package/esm/tabs/TabNavigation.js +145 -0
- package/esm/tabs/Tabs.js +143 -0
- package/esm/tabs/__figma__/SegmentedTabs.figma.js +79 -0
- package/esm/tabs/__figma__/TabNavigation.figma.js +83 -0
- package/esm/tabs/__stories__/SegmentedTabs.stories.js +209 -0
- package/esm/tabs/__stories__/TabIndicator.stories.js +34 -0
- package/esm/tabs/__stories__/TabLabel.stories.js +55 -0
- package/esm/tabs/__stories__/TabNavigation.stories.js +148 -0
- package/esm/tabs/__stories__/Tabs.stories.js +79 -0
- package/esm/tabs/hooks/useDotAnimation.js +48 -0
- package/esm/tabs/hooks/useTabIndicatorStyles.js +24 -0
- package/esm/tabs/index.js +5 -0
- package/esm/tag/Tag.js +48 -0
- package/esm/tag/__figma__/Tag.figma.js +78 -0
- package/esm/tag/__stories__/Tag.stories.js +57 -0
- package/esm/themes/coinbaseDenseTheme.js +122 -0
- package/esm/themes/coinbaseHighContrastTheme.js +568 -0
- package/esm/themes/coinbaseTheme.js +568 -0
- package/esm/themes/defaultHighContrastTheme.js +568 -0
- package/esm/themes/defaultTheme.js +568 -0
- package/esm/tour/DefaultTourMask.js +63 -0
- package/esm/tour/DefaultTourStepArrow.js +38 -0
- package/esm/tour/Tour.js +141 -0
- package/esm/tour/TourStep.js +24 -0
- package/esm/tour/__stories__/Tour.stories.js +423 -0
- package/esm/tour/index.js +4 -0
- package/esm/typography/Link.js +46 -0
- package/esm/typography/Text.js +203 -0
- package/esm/typography/TextBody.js +16 -0
- package/esm/typography/TextCaption.js +16 -0
- package/esm/typography/TextDisplay1.js +18 -0
- package/esm/typography/TextDisplay2.js +18 -0
- package/esm/typography/TextDisplay3.js +18 -0
- package/esm/typography/TextHeadline.js +16 -0
- package/esm/typography/TextInherited.js +16 -0
- package/esm/typography/TextLabel1.js +16 -0
- package/esm/typography/TextLabel2.js +16 -0
- package/esm/typography/TextLegal.js +16 -0
- package/esm/typography/TextTitle1.js +18 -0
- package/esm/typography/TextTitle2.js +18 -0
- package/esm/typography/TextTitle3.js +16 -0
- package/esm/typography/TextTitle4.js +16 -0
- package/esm/typography/__figma__/Link.figma.js +28 -0
- package/esm/typography/__stories__/Link.stories.js +295 -0
- package/esm/typography/__stories__/Text.stories.js +93 -0
- package/esm/typography/__stories__/TextBody.stories.js +7 -0
- package/esm/typography/__stories__/TextCaption.stories.js +7 -0
- package/esm/typography/__stories__/TextCore.stories.js +7 -0
- package/esm/typography/__stories__/TextDisplay1.stories.js +7 -0
- package/esm/typography/__stories__/TextDisplay2.stories.js +7 -0
- package/esm/typography/__stories__/TextDisplay3.stories.js +7 -0
- package/esm/typography/__stories__/TextExamples.js +176 -0
- package/esm/typography/__stories__/TextHeadline.stories.js +7 -0
- package/esm/typography/__stories__/TextLabel1.stories.js +7 -0
- package/esm/typography/__stories__/TextLabel2.stories.js +7 -0
- package/esm/typography/__stories__/TextLegal.stories.js +7 -0
- package/esm/typography/__stories__/TextTitle1.stories.js +7 -0
- package/esm/typography/__stories__/TextTitle2.stories.js +7 -0
- package/esm/typography/__stories__/TextTitle3.stories.js +7 -0
- package/esm/typography/__stories__/TextTitle4.stories.js +7 -0
- package/esm/typography/index.js +15 -0
- package/esm/utils/customTabsHelper.js +8 -0
- package/esm/utils/debounce.js +16 -0
- package/esm/utils/flattenAndJoinNodes.js +47 -0
- package/esm/utils/getAdjustedFontScale.js +13 -0
- package/esm/utils/getSpacerStyle.js +27 -0
- package/esm/utils/haptics.js +22 -0
- package/esm/utils/isValidURL.js +4 -0
- package/esm/utils/openWebBrowser.js +61 -0
- package/esm/utils/testHelpers.js +31 -0
- package/esm/visualizations/Counter.js +45 -0
- package/esm/visualizations/DefaultProgressCircleContent.js +21 -0
- package/esm/visualizations/ProgressBar.js +105 -0
- package/esm/visualizations/ProgressBarWithFixedLabels.js +146 -0
- package/esm/visualizations/ProgressBarWithFloatLabel.js +106 -0
- package/esm/visualizations/ProgressCircle.js +162 -0
- package/esm/visualizations/ProgressContainerWithButtons.js +39 -0
- package/esm/visualizations/ProgressIndicator.js +58 -0
- package/esm/visualizations/ProgressTextLabel.js +50 -0
- package/esm/visualizations/VisualizationContainer.js +31 -0
- package/esm/visualizations/__figma__/ProgressBar.figma.js +99 -0
- package/esm/visualizations/__figma__/ProgressCircle.figma.js +26 -0
- package/esm/visualizations/__stories__/ProgressBar.stories.js +478 -0
- package/esm/visualizations/__stories__/ProgressCircle.stories.js +432 -0
- package/esm/visualizations/getProgressBarLabelParts.js +11 -0
- package/esm/visualizations/index.js +6 -0
- package/package.json +187 -6
- package/index.js +0 -1
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
2
|
+
import { FlatList } from 'react-native';
|
|
3
|
+
import { prices } from '@coinbase/cds-common/internal/data/prices';
|
|
4
|
+
import { Button } from '../../buttons/Button';
|
|
5
|
+
import { Menu } from '../../controls/Menu';
|
|
6
|
+
import { SelectOption } from '../../controls/SelectOption';
|
|
7
|
+
import { Fallback, VStack } from '../../layout';
|
|
8
|
+
import { Tray } from '../tray/Tray';
|
|
9
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
export const options = prices.slice(0, 4);
|
|
11
|
+
const lotsOfOptions = prices.slice(0, 30);
|
|
12
|
+
export const DefaultTray = _ref => {
|
|
13
|
+
let {
|
|
14
|
+
title
|
|
15
|
+
} = _ref;
|
|
16
|
+
const [isTrayVisible, setIsTrayVisible] = useState(true);
|
|
17
|
+
const setIsTrayVisibleOff = useCallback(() => setIsTrayVisible(false), [setIsTrayVisible]);
|
|
18
|
+
const setIsTrayVisibleOn = useCallback(() => setIsTrayVisible(true), [setIsTrayVisible]);
|
|
19
|
+
const [value, setValue] = useState();
|
|
20
|
+
const trayRef = useRef(null);
|
|
21
|
+
const handleOptionPress = () => {
|
|
22
|
+
var _trayRef$current;
|
|
23
|
+
(_trayRef$current = trayRef.current) == null || _trayRef$current.handleClose();
|
|
24
|
+
};
|
|
25
|
+
const handleTrayVisibilityChange = useCallback(e => {
|
|
26
|
+
console.log('Tray visibility changed:', e);
|
|
27
|
+
}, []);
|
|
28
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
29
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
30
|
+
onPress: setIsTrayVisibleOn,
|
|
31
|
+
children: "Open"
|
|
32
|
+
}), isTrayVisible && /*#__PURE__*/_jsx(Tray, {
|
|
33
|
+
ref: trayRef,
|
|
34
|
+
onCloseComplete: setIsTrayVisibleOff,
|
|
35
|
+
onVisibilityChange: handleTrayVisibilityChange,
|
|
36
|
+
title: title,
|
|
37
|
+
children: /*#__PURE__*/_jsx(Menu, {
|
|
38
|
+
onChange: setValue,
|
|
39
|
+
value: value,
|
|
40
|
+
children: options.map(option => /*#__PURE__*/_jsx(SelectOption, {
|
|
41
|
+
description: "BTC",
|
|
42
|
+
onPress: handleOptionPress,
|
|
43
|
+
title: option,
|
|
44
|
+
value: option
|
|
45
|
+
}, option))
|
|
46
|
+
})
|
|
47
|
+
})]
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
const TrayFallbackContent = () => {
|
|
51
|
+
return /*#__PURE__*/_jsx(VStack, {
|
|
52
|
+
gap: 2,
|
|
53
|
+
paddingStart: 3,
|
|
54
|
+
children: lotsOfOptions.map((item, i) => /*#__PURE__*/_jsx(Fallback, {
|
|
55
|
+
height: 30,
|
|
56
|
+
rectWidthVariant: i,
|
|
57
|
+
width: 100
|
|
58
|
+
}, item))
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
export const ScrollableTray = _ref2 => {
|
|
62
|
+
let {
|
|
63
|
+
title,
|
|
64
|
+
fallbackEnabled,
|
|
65
|
+
verticalDrawerPercentageOfView
|
|
66
|
+
} = _ref2;
|
|
67
|
+
const [isTrayVisible, setIsTrayVisible] = useState(true);
|
|
68
|
+
const setIsTrayVisibleOff = useCallback(() => setIsTrayVisible(false), [setIsTrayVisible]);
|
|
69
|
+
const setIsTrayVisibleOn = useCallback(() => setIsTrayVisible(true), [setIsTrayVisible]);
|
|
70
|
+
const [value, setValue] = useState();
|
|
71
|
+
const trayRef = useRef(null);
|
|
72
|
+
const [isLoading, setIsLoading] = useState(fallbackEnabled);
|
|
73
|
+
useEffect(() => {
|
|
74
|
+
if (isTrayVisible && fallbackEnabled) {
|
|
75
|
+
setIsLoading(true);
|
|
76
|
+
setTimeout(() => setIsLoading(false), __DEV__ ? 2000 : 20000);
|
|
77
|
+
}
|
|
78
|
+
}, [isTrayVisible, fallbackEnabled]);
|
|
79
|
+
const spacingStyles = useMemo(() => ({
|
|
80
|
+
paddingBottom: 200
|
|
81
|
+
}), []);
|
|
82
|
+
const handleOptionPress = useCallback(() => {
|
|
83
|
+
var _trayRef$current2;
|
|
84
|
+
(_trayRef$current2 = trayRef.current) == null || _trayRef$current2.handleClose();
|
|
85
|
+
}, []);
|
|
86
|
+
const renderItem = useCallback(_ref3 => {
|
|
87
|
+
let {
|
|
88
|
+
index,
|
|
89
|
+
item
|
|
90
|
+
} = _ref3;
|
|
91
|
+
return /*#__PURE__*/_jsx(SelectOption, {
|
|
92
|
+
description: "BTC",
|
|
93
|
+
onPress: handleOptionPress,
|
|
94
|
+
title: item,
|
|
95
|
+
value: item
|
|
96
|
+
}, index);
|
|
97
|
+
}, [handleOptionPress]);
|
|
98
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
99
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
100
|
+
onPress: setIsTrayVisibleOn,
|
|
101
|
+
children: "Open"
|
|
102
|
+
}), isTrayVisible && /*#__PURE__*/_jsx(Tray, {
|
|
103
|
+
ref: trayRef,
|
|
104
|
+
disableCapturePanGestureToDismiss: true,
|
|
105
|
+
onCloseComplete: setIsTrayVisibleOff,
|
|
106
|
+
title: title,
|
|
107
|
+
verticalDrawerPercentageOfView: verticalDrawerPercentageOfView,
|
|
108
|
+
children: isLoading ? /*#__PURE__*/_jsx(TrayFallbackContent, {}) : /*#__PURE__*/_jsx(Menu, {
|
|
109
|
+
onChange: setValue,
|
|
110
|
+
value: value,
|
|
111
|
+
children: /*#__PURE__*/_jsx(FlatList, {
|
|
112
|
+
contentContainerStyle: spacingStyles,
|
|
113
|
+
data: lotsOfOptions,
|
|
114
|
+
renderItem: renderItem
|
|
115
|
+
})
|
|
116
|
+
})
|
|
117
|
+
})]
|
|
118
|
+
});
|
|
119
|
+
};
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
const _excluded = ["children", "pin", "onCloseComplete", "preventDismissGestures", "preventHardwareBackBehaviorAndroid", "hideHandleBar", "disableCapturePanGestureToDismiss", "onBlur", "verticalDrawerPercentageOfView", "handleBarAccessibilityLabel"];
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
|
+
import React, { forwardRef, memo, useCallback, useEffect, useImperativeHandle, useMemo, useRef } from 'react';
|
|
5
|
+
import { Animated, Modal, Platform, StyleSheet, useWindowDimensions, View } from 'react-native';
|
|
6
|
+
import { drawerAnimationDefaultDuration, MAX_OVER_DRAG } from '@coinbase/cds-common/animation/drawer';
|
|
7
|
+
import { OverlayContentContext } from '@coinbase/cds-common/overlays/OverlayContentContext';
|
|
8
|
+
import { horizontalDrawerPercentageOfView, verticalDrawerPercentageOfView as defaultVerticalDrawerPercentageOfView } from '@coinbase/cds-common/tokens/drawer';
|
|
9
|
+
import { useTheme } from '../../hooks/useTheme';
|
|
10
|
+
import { Box } from '../../layout/Box';
|
|
11
|
+
import { HandleBar } from '../handlebar/HandleBar';
|
|
12
|
+
import { Overlay } from '../overlay/Overlay';
|
|
13
|
+
import { useOverlayAnimation } from '../overlay/useOverlayAnimation';
|
|
14
|
+
import { DrawerStatusBar } from './DrawerStatusBar';
|
|
15
|
+
import { useDrawerAnimation } from './useDrawerAnimation';
|
|
16
|
+
import { useDrawerPanResponder } from './useDrawerPanResponder';
|
|
17
|
+
import { useDrawerSpacing } from './useDrawerSpacing';
|
|
18
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
+
const overlayContentContextValue = {
|
|
20
|
+
isDrawer: true
|
|
21
|
+
};
|
|
22
|
+
export const Drawer = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Drawer(_ref, ref) {
|
|
23
|
+
let {
|
|
24
|
+
children,
|
|
25
|
+
pin = 'bottom',
|
|
26
|
+
onCloseComplete,
|
|
27
|
+
preventDismissGestures = false,
|
|
28
|
+
preventHardwareBackBehaviorAndroid = false,
|
|
29
|
+
hideHandleBar = false,
|
|
30
|
+
disableCapturePanGestureToDismiss = false,
|
|
31
|
+
onBlur,
|
|
32
|
+
verticalDrawerPercentageOfView = defaultVerticalDrawerPercentageOfView,
|
|
33
|
+
handleBarAccessibilityLabel = 'Dismiss'
|
|
34
|
+
} = _ref,
|
|
35
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
36
|
+
const {
|
|
37
|
+
activeColorScheme
|
|
38
|
+
} = useTheme();
|
|
39
|
+
const {
|
|
40
|
+
width,
|
|
41
|
+
height
|
|
42
|
+
} = useWindowDimensions();
|
|
43
|
+
const isAndroid = Platform.OS === 'android';
|
|
44
|
+
const {
|
|
45
|
+
drawerAnimation,
|
|
46
|
+
animateDrawerOut,
|
|
47
|
+
animateDrawerIn,
|
|
48
|
+
drawerAnimationStyles,
|
|
49
|
+
animateSwipeToClose
|
|
50
|
+
} = useDrawerAnimation(pin, verticalDrawerPercentageOfView);
|
|
51
|
+
const [opacityAnimation, animateOverlayIn, animateOverlayOut] = useOverlayAnimation(drawerAnimationDefaultDuration);
|
|
52
|
+
const spacingStyles = useDrawerSpacing(pin);
|
|
53
|
+
const isMounted = useRef(false);
|
|
54
|
+
const handleClose = useCallback(() => {
|
|
55
|
+
Animated.parallel([animateDrawerOut, animateOverlayOut]).start(_ref2 => {
|
|
56
|
+
let {
|
|
57
|
+
finished
|
|
58
|
+
} = _ref2;
|
|
59
|
+
if (finished) {
|
|
60
|
+
isMounted.current = false;
|
|
61
|
+
onCloseComplete == null || onCloseComplete();
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}, [animateDrawerOut, animateOverlayOut, onCloseComplete]);
|
|
65
|
+
const handleRequestClose = useCallback(() => preventHardwareBackBehaviorAndroid && isAndroid ? undefined : handleClose(), [preventHardwareBackBehaviorAndroid, handleClose, isAndroid]);
|
|
66
|
+
const handleSwipeToClose = useCallback(() => {
|
|
67
|
+
if (!preventDismissGestures) {
|
|
68
|
+
Animated.parallel([animateSwipeToClose, animateOverlayOut]).start(_ref3 => {
|
|
69
|
+
let {
|
|
70
|
+
finished
|
|
71
|
+
} = _ref3;
|
|
72
|
+
if (finished) {
|
|
73
|
+
isMounted.current = false;
|
|
74
|
+
onCloseComplete == null || onCloseComplete();
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
}, [preventDismissGestures, animateSwipeToClose, animateOverlayOut, onCloseComplete]);
|
|
79
|
+
useEffect(() => {
|
|
80
|
+
if (!isMounted.current) {
|
|
81
|
+
Animated.parallel([animateOverlayIn, animateDrawerIn]).start(_ref4 => {
|
|
82
|
+
let {
|
|
83
|
+
finished
|
|
84
|
+
} = _ref4;
|
|
85
|
+
if (finished) {
|
|
86
|
+
isMounted.current = true;
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}, [drawerAnimation, animateDrawerIn, animateOverlayIn]);
|
|
91
|
+
const panGestureHandlers = useDrawerPanResponder({
|
|
92
|
+
pin,
|
|
93
|
+
drawerAnimation,
|
|
94
|
+
animateDrawerIn,
|
|
95
|
+
disableCapturePanGestureToDismiss,
|
|
96
|
+
onBlur,
|
|
97
|
+
handleSwipeToClose,
|
|
98
|
+
opacityAnimation,
|
|
99
|
+
verticalDrawerPercentageOfView
|
|
100
|
+
});
|
|
101
|
+
const isPinHorizontal = pin === 'left' || pin === 'right';
|
|
102
|
+
const shouldShowHandleBar = !hideHandleBar && pin === 'bottom';
|
|
103
|
+
|
|
104
|
+
// leave 15% of the screenwidth as open area for menu drawer
|
|
105
|
+
const horizontalDrawerWidth = useMemo(() => width * horizontalDrawerPercentageOfView + MAX_OVER_DRAG, [width]);
|
|
106
|
+
// drawer will automatically size itself based on content, but will cap at 75% of viewport height (can override)
|
|
107
|
+
const verticalDrawerMaxHeight = useMemo(() => height * verticalDrawerPercentageOfView + MAX_OVER_DRAG, [height, verticalDrawerPercentageOfView]);
|
|
108
|
+
const getPanGestureHandlers = !preventDismissGestures ? panGestureHandlers.panHandlers : undefined;
|
|
109
|
+
const handleOverlayPress = useCallback(() => {
|
|
110
|
+
if (!preventDismissGestures) {
|
|
111
|
+
onBlur == null || onBlur();
|
|
112
|
+
handleClose();
|
|
113
|
+
}
|
|
114
|
+
}, [handleClose, preventDismissGestures, onBlur]);
|
|
115
|
+
const cardStyles = StyleSheet.create({
|
|
116
|
+
spacing: _extends({}, spacingStyles),
|
|
117
|
+
overflowStyles: {
|
|
118
|
+
overflow: 'hidden'
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
const combinedStyles = [cardStyles.spacing, drawerAnimationStyles];
|
|
122
|
+
useImperativeHandle(ref, () => ({
|
|
123
|
+
handleClose
|
|
124
|
+
}), [handleClose]);
|
|
125
|
+
|
|
126
|
+
// this hack clips internal content from overflowing the borderRadius, but also make sure the handlebar still shows if handlebar is enabled
|
|
127
|
+
const content = useMemo(() => {
|
|
128
|
+
if (shouldShowHandleBar) {
|
|
129
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
130
|
+
children: [/*#__PURE__*/_jsx(HandleBar, {
|
|
131
|
+
accessibilityLabel: handleBarAccessibilityLabel,
|
|
132
|
+
accessibilityRole: "button",
|
|
133
|
+
onAccessibilityTap: handleClose
|
|
134
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
135
|
+
borderRadius: 400,
|
|
136
|
+
style: shouldShowHandleBar && cardStyles.overflowStyles,
|
|
137
|
+
children: typeof children === 'function' ? children({
|
|
138
|
+
handleClose
|
|
139
|
+
}) : children
|
|
140
|
+
})]
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
return /*#__PURE__*/_jsx(View, {
|
|
144
|
+
children: typeof children === 'function' ? children({
|
|
145
|
+
handleClose
|
|
146
|
+
}) : children
|
|
147
|
+
});
|
|
148
|
+
}, [shouldShowHandleBar, cardStyles, children, handleClose, handleBarAccessibilityLabel]);
|
|
149
|
+
return /*#__PURE__*/_jsx(Modal, _extends({
|
|
150
|
+
hardwareAccelerated: true,
|
|
151
|
+
transparent: true,
|
|
152
|
+
visible: true,
|
|
153
|
+
animationType: "none",
|
|
154
|
+
onRequestClose: handleRequestClose
|
|
155
|
+
}, props, {
|
|
156
|
+
accessibilityRole: "alert",
|
|
157
|
+
children: /*#__PURE__*/_jsxs(OverlayContentContext.Provider, {
|
|
158
|
+
value: overlayContentContextValue,
|
|
159
|
+
children: [/*#__PURE__*/_jsx(DrawerStatusBar, {
|
|
160
|
+
visible: true,
|
|
161
|
+
pin: pin
|
|
162
|
+
}), /*#__PURE__*/_jsx(Overlay, {
|
|
163
|
+
onTouchStart: handleOverlayPress,
|
|
164
|
+
opacity: opacityAnimation,
|
|
165
|
+
testID: "drawer-overlay"
|
|
166
|
+
}), /*#__PURE__*/_jsx(Box, _extends({}, getPanGestureHandlers, {
|
|
167
|
+
animated: true,
|
|
168
|
+
borderRadius: isPinHorizontal ? 0 : 400,
|
|
169
|
+
bordered: activeColorScheme === 'dark',
|
|
170
|
+
elevation: 2,
|
|
171
|
+
maxHeight: !isPinHorizontal ? verticalDrawerMaxHeight : '100%',
|
|
172
|
+
onAccessibilityEscape: handleClose,
|
|
173
|
+
pin: pin,
|
|
174
|
+
style: combinedStyles
|
|
175
|
+
// close modal when user performs the "escape" accessibility gesture
|
|
176
|
+
// https://reactnative.dev/docs/accessibility#onaccessibilityescape-ios
|
|
177
|
+
,
|
|
178
|
+
width: isPinHorizontal ? horizontalDrawerWidth : '100%',
|
|
179
|
+
children: content
|
|
180
|
+
}))]
|
|
181
|
+
})
|
|
182
|
+
}));
|
|
183
|
+
}));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { memo } from 'react';
|
|
2
|
+
import { Platform, StatusBar } from 'react-native';
|
|
3
|
+
import { useHasNotch } from '../../hooks/useHasNotch';
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
export const DrawerStatusBar = /*#__PURE__*/memo(function DrawerStatusBar(_ref) {
|
|
6
|
+
let {
|
|
7
|
+
pin,
|
|
8
|
+
visible
|
|
9
|
+
} = _ref;
|
|
10
|
+
/** this is only used for when the drawer comes from the side or top, and it fades out the menus in the notches (time and wifi/battery) */
|
|
11
|
+
const hasNotch = useHasNotch();
|
|
12
|
+
const updateStatusBar = hasNotch && ['left', 'right', 'top'].includes(pin);
|
|
13
|
+
return Platform.select({
|
|
14
|
+
ios: updateStatusBar ? /*#__PURE__*/_jsx(StatusBar, {
|
|
15
|
+
animated: true,
|
|
16
|
+
hidden: visible
|
|
17
|
+
}) : null,
|
|
18
|
+
default: null
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
DrawerStatusBar.displayName = 'DrawerStatusBar';
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { useMemo, useRef } from 'react';
|
|
2
|
+
import { Animated, Easing, useWindowDimensions } from 'react-native';
|
|
3
|
+
import { animateDrawerInConfig, animateDrawerOutConfig, drawerAnimationDefaultDuration, MAX_OVER_DRAG } from '@coinbase/cds-common/animation/drawer';
|
|
4
|
+
import { durations } from '@coinbase/cds-common/motion/tokens';
|
|
5
|
+
import { handleBarOffset, horizontalDrawerPercentageOfView, verticalDrawerPercentageOfView as defaultVerticalDrawerPercentageOfView } from '@coinbase/cds-common/tokens/drawer';
|
|
6
|
+
import { convertMotionConfig } from '../../animation/convertMotionConfig';
|
|
7
|
+
const animateDrawer = {
|
|
8
|
+
animateIn: convertMotionConfig(animateDrawerInConfig),
|
|
9
|
+
animateOut: convertMotionConfig(animateDrawerOutConfig)
|
|
10
|
+
};
|
|
11
|
+
export const useDrawerAnimation = function (pin, verticalDrawerPercentageOfView) {
|
|
12
|
+
if (pin === void 0) {
|
|
13
|
+
pin = 'bottom';
|
|
14
|
+
}
|
|
15
|
+
if (verticalDrawerPercentageOfView === void 0) {
|
|
16
|
+
verticalDrawerPercentageOfView = defaultVerticalDrawerPercentageOfView;
|
|
17
|
+
}
|
|
18
|
+
const windowDimensions = useWindowDimensions();
|
|
19
|
+
const isPinVertical = pin === 'top' || pin === 'bottom';
|
|
20
|
+
const drawerDimension = isPinVertical ? windowDimensions.height * verticalDrawerPercentageOfView : windowDimensions.width * horizontalDrawerPercentageOfView;
|
|
21
|
+
const drawerAnimation = useRef(new Animated.Value(0));
|
|
22
|
+
const animateDrawerIn = useMemo(() => Animated.timing(drawerAnimation.current, animateDrawer.animateIn), []);
|
|
23
|
+
const animateDrawerOut = useMemo(() => Animated.timing(drawerAnimation.current, animateDrawer.animateOut), []);
|
|
24
|
+
|
|
25
|
+
/** custom animation config for swipe and fling to close that has no friction and is faster */
|
|
26
|
+
const animateSwipeToClose = useMemo(() => Animated.timing(drawerAnimation.current, {
|
|
27
|
+
toValue: animateDrawerOutConfig.toValue,
|
|
28
|
+
useNativeDriver: true,
|
|
29
|
+
duration: isPinVertical ? durations.fast3 : durations[drawerAnimationDefaultDuration],
|
|
30
|
+
easing: Easing.ease
|
|
31
|
+
}), [isPinVertical]);
|
|
32
|
+
const translation = useMemo(() => {
|
|
33
|
+
switch (pin) {
|
|
34
|
+
case 'top':
|
|
35
|
+
return {
|
|
36
|
+
translateY: drawerAnimation.current.interpolate({
|
|
37
|
+
inputRange: [0, 1],
|
|
38
|
+
outputRange: [-drawerDimension, -MAX_OVER_DRAG]
|
|
39
|
+
})
|
|
40
|
+
};
|
|
41
|
+
case 'left':
|
|
42
|
+
return {
|
|
43
|
+
translateX: drawerAnimation.current.interpolate({
|
|
44
|
+
inputRange: [0, 1],
|
|
45
|
+
outputRange: [-drawerDimension, -MAX_OVER_DRAG]
|
|
46
|
+
})
|
|
47
|
+
};
|
|
48
|
+
case 'right':
|
|
49
|
+
return {
|
|
50
|
+
translateX: drawerAnimation.current.interpolate({
|
|
51
|
+
inputRange: [0, 1],
|
|
52
|
+
outputRange: [drawerDimension, MAX_OVER_DRAG]
|
|
53
|
+
})
|
|
54
|
+
};
|
|
55
|
+
case 'bottom':
|
|
56
|
+
default:
|
|
57
|
+
return {
|
|
58
|
+
translateY: drawerAnimation.current.interpolate({
|
|
59
|
+
inputRange: [0, 1],
|
|
60
|
+
outputRange: [drawerDimension + handleBarOffset, MAX_OVER_DRAG]
|
|
61
|
+
})
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}, [pin, drawerDimension]);
|
|
65
|
+
return useMemo(() => {
|
|
66
|
+
return {
|
|
67
|
+
drawerAnimation: drawerAnimation.current,
|
|
68
|
+
animateDrawerOut,
|
|
69
|
+
animateDrawerIn,
|
|
70
|
+
drawerAnimationStyles: {
|
|
71
|
+
transform: [translation]
|
|
72
|
+
},
|
|
73
|
+
animateSwipeToClose
|
|
74
|
+
};
|
|
75
|
+
}, [animateDrawerOut, animateDrawerIn, translation, animateSwipeToClose]);
|
|
76
|
+
};
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { useCallback, useMemo } from 'react';
|
|
2
|
+
import { PanResponder, useWindowDimensions } from 'react-native';
|
|
3
|
+
import { DISMISSAL_DRAG_THRESHOLD, DISMISSAL_VELOCITY_THRESHOLD, MAX_OVER_DRAG, MIN_PAN_DISTANCE } from '@coinbase/cds-common/animation/drawer';
|
|
4
|
+
import { handleBarHeight, handleBarOffset, horizontalDrawerPercentageOfView, normalizeDrawerPanDistanceMultiplier, verticalDrawerPercentageOfView as defaultVerticalDrawerPercentageOfView } from '@coinbase/cds-common/tokens/drawer';
|
|
5
|
+
import { modulate } from '@coinbase/cds-common/utils/modulate';
|
|
6
|
+
/** accumulated distance of the gesture - max over drag */
|
|
7
|
+
const calculateDragOffset = x => {
|
|
8
|
+
const newX = x / 100;
|
|
9
|
+
return MAX_OVER_DRAG * Math.tanh(newX);
|
|
10
|
+
};
|
|
11
|
+
export const useDrawerPanResponder = _ref => {
|
|
12
|
+
let {
|
|
13
|
+
pin,
|
|
14
|
+
drawerAnimation,
|
|
15
|
+
animateDrawerIn,
|
|
16
|
+
disableCapturePanGestureToDismiss,
|
|
17
|
+
onBlur,
|
|
18
|
+
handleSwipeToClose,
|
|
19
|
+
opacityAnimation,
|
|
20
|
+
verticalDrawerPercentageOfView = defaultVerticalDrawerPercentageOfView
|
|
21
|
+
} = _ref;
|
|
22
|
+
// drawer dimensions
|
|
23
|
+
const {
|
|
24
|
+
width,
|
|
25
|
+
height
|
|
26
|
+
} = useWindowDimensions();
|
|
27
|
+
const drawerWidth = width * horizontalDrawerPercentageOfView + MAX_OVER_DRAG;
|
|
28
|
+
const handleBarTotalHeight = handleBarOffset + handleBarHeight;
|
|
29
|
+
const drawerHeight = pin === 'bottom' ? height * verticalDrawerPercentageOfView + handleBarTotalHeight + MAX_OVER_DRAG : height * verticalDrawerPercentageOfView + MAX_OVER_DRAG;
|
|
30
|
+
const isHorizontalDrawer = pin === 'left' || pin === 'right';
|
|
31
|
+
|
|
32
|
+
/** calculates whether gesture was great enough to warrant a response */
|
|
33
|
+
const shouldHandleGesture = useCallback(_ref2 => {
|
|
34
|
+
let {
|
|
35
|
+
dx,
|
|
36
|
+
dy
|
|
37
|
+
} = _ref2;
|
|
38
|
+
if (pin === 'bottom') {
|
|
39
|
+
return dy > MIN_PAN_DISTANCE || dy < -MIN_PAN_DISTANCE;
|
|
40
|
+
}
|
|
41
|
+
return dx > MIN_PAN_DISTANCE || dx < -MIN_PAN_DISTANCE;
|
|
42
|
+
}, [pin]);
|
|
43
|
+
const shouldCaptureGestures = useCallback((_, state) => {
|
|
44
|
+
if (disableCapturePanGestureToDismiss) {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
return shouldHandleGesture(state);
|
|
48
|
+
}, [shouldHandleGesture, disableCapturePanGestureToDismiss]);
|
|
49
|
+
|
|
50
|
+
/** translate gesture state based on pin position */
|
|
51
|
+
const parseGestureState = useCallback(gestureState => {
|
|
52
|
+
let dragDirection;
|
|
53
|
+
let isOverDrag = false;
|
|
54
|
+
const distance = pin === 'top' || pin === 'bottom' ? gestureState.dy : gestureState.dx;
|
|
55
|
+
const velocity = pin === 'top' || pin === 'bottom' ? gestureState.vy : gestureState.vx;
|
|
56
|
+
const isDragging = Math.abs(distance) > MIN_PAN_DISTANCE;
|
|
57
|
+
switch (pin) {
|
|
58
|
+
case 'left':
|
|
59
|
+
case 'right':
|
|
60
|
+
dragDirection = gestureState.dx <= 0 ? 'left' : 'right';
|
|
61
|
+
break;
|
|
62
|
+
case 'bottom':
|
|
63
|
+
case 'top':
|
|
64
|
+
default:
|
|
65
|
+
dragDirection = gestureState.dy <= 0 ? 'up' : 'down';
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
switch (pin) {
|
|
69
|
+
case 'left':
|
|
70
|
+
isOverDrag = dragDirection === 'right';
|
|
71
|
+
break;
|
|
72
|
+
case 'right':
|
|
73
|
+
isOverDrag = dragDirection === 'left';
|
|
74
|
+
break;
|
|
75
|
+
case 'bottom':
|
|
76
|
+
isOverDrag = dragDirection === 'up';
|
|
77
|
+
break;
|
|
78
|
+
case 'top':
|
|
79
|
+
default:
|
|
80
|
+
isOverDrag = dragDirection === 'down';
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
distance,
|
|
85
|
+
velocity,
|
|
86
|
+
isDragging,
|
|
87
|
+
dragDirection,
|
|
88
|
+
isOverDrag
|
|
89
|
+
};
|
|
90
|
+
}, [pin]);
|
|
91
|
+
const isTryingToDismiss = useCallback(dragDirection => {
|
|
92
|
+
if (pin === 'left' && dragDirection === 'left' || pin === 'right' && dragDirection === 'right' || pin === 'bottom' && dragDirection === 'down' || pin === 'top' && dragDirection === 'up') {
|
|
93
|
+
return true;
|
|
94
|
+
}
|
|
95
|
+
return false;
|
|
96
|
+
}, [pin]);
|
|
97
|
+
const isFlingToDismiss = useCallback(velocity => {
|
|
98
|
+
switch (pin) {
|
|
99
|
+
case 'top':
|
|
100
|
+
case 'left':
|
|
101
|
+
return velocity <= -DISMISSAL_VELOCITY_THRESHOLD;
|
|
102
|
+
case 'bottom':
|
|
103
|
+
case 'right':
|
|
104
|
+
default:
|
|
105
|
+
return velocity >= DISMISSAL_VELOCITY_THRESHOLD;
|
|
106
|
+
}
|
|
107
|
+
}, [pin]);
|
|
108
|
+
const isSwipeToDismiss = useCallback(distance => {
|
|
109
|
+
switch (pin) {
|
|
110
|
+
case 'top':
|
|
111
|
+
case 'left':
|
|
112
|
+
return distance <= -DISMISSAL_DRAG_THRESHOLD;
|
|
113
|
+
case 'bottom':
|
|
114
|
+
case 'right':
|
|
115
|
+
default:
|
|
116
|
+
return distance >= DISMISSAL_DRAG_THRESHOLD;
|
|
117
|
+
}
|
|
118
|
+
}, [pin]);
|
|
119
|
+
const shouldDismiss = useCallback(gestureState => {
|
|
120
|
+
const {
|
|
121
|
+
velocity,
|
|
122
|
+
dragDirection,
|
|
123
|
+
distance
|
|
124
|
+
} = parseGestureState(gestureState);
|
|
125
|
+
if (isTryingToDismiss(dragDirection) && (isFlingToDismiss(velocity) || isSwipeToDismiss(distance))) {
|
|
126
|
+
return true;
|
|
127
|
+
}
|
|
128
|
+
return false;
|
|
129
|
+
}, [isTryingToDismiss, parseGestureState, isFlingToDismiss, isSwipeToDismiss]);
|
|
130
|
+
const panGestureHandlers = useMemo(() => {
|
|
131
|
+
return PanResponder.create({
|
|
132
|
+
onStartShouldSetPanResponder: () => true,
|
|
133
|
+
onMoveShouldSetPanResponder: shouldCaptureGestures,
|
|
134
|
+
onMoveShouldSetPanResponderCapture: shouldCaptureGestures,
|
|
135
|
+
onPanResponderMove: (_, gestureState) => {
|
|
136
|
+
const {
|
|
137
|
+
isDragging,
|
|
138
|
+
distance,
|
|
139
|
+
isOverDrag
|
|
140
|
+
} = parseGestureState(gestureState);
|
|
141
|
+
const isInvertedPin = pin === 'bottom' || pin === 'right';
|
|
142
|
+
const horizontalDrawerMaxPanDistance = isInvertedPin ? -drawerWidth : drawerWidth;
|
|
143
|
+
const verticalDrawerMaxPanDistance = isInvertedPin ? -drawerHeight : drawerHeight;
|
|
144
|
+
if (isDragging) {
|
|
145
|
+
if (isOverDrag) {
|
|
146
|
+
const normalizedDistance = modulate(Math.abs(distance), {
|
|
147
|
+
inputRange: [0, MAX_OVER_DRAG],
|
|
148
|
+
outputRange: [0, 0.1],
|
|
149
|
+
clamp: true
|
|
150
|
+
});
|
|
151
|
+
drawerAnimation.setOffset(calculateDragOffset(normalizedDistance));
|
|
152
|
+
} else {
|
|
153
|
+
const normalizedDrawerTransition = modulate(distance, {
|
|
154
|
+
inputRange: [0, isHorizontalDrawer ? horizontalDrawerMaxPanDistance : verticalDrawerMaxPanDistance],
|
|
155
|
+
outputRange: [0, normalizeDrawerPanDistanceMultiplier],
|
|
156
|
+
clamp: false
|
|
157
|
+
});
|
|
158
|
+
drawerAnimation.setOffset(normalizedDrawerTransition);
|
|
159
|
+
const normalizedOpacityTransition = modulate(distance, {
|
|
160
|
+
inputRange: [0, isHorizontalDrawer ? horizontalDrawerMaxPanDistance : verticalDrawerMaxPanDistance],
|
|
161
|
+
outputRange: [0, 1],
|
|
162
|
+
clamp: false
|
|
163
|
+
});
|
|
164
|
+
opacityAnimation.setOffset(normalizedOpacityTransition);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
onPanResponderRelease: (_, gestureState) => {
|
|
169
|
+
drawerAnimation.flattenOffset();
|
|
170
|
+
opacityAnimation.flattenOffset();
|
|
171
|
+
if (shouldDismiss(gestureState)) {
|
|
172
|
+
onBlur == null || onBlur();
|
|
173
|
+
handleSwipeToClose();
|
|
174
|
+
} else {
|
|
175
|
+
animateDrawerIn.start();
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
}, [drawerAnimation, animateDrawerIn, parseGestureState, shouldCaptureGestures, shouldDismiss, drawerWidth, drawerHeight, pin, isHorizontalDrawer, onBlur, handleSwipeToClose, opacityAnimation]);
|
|
180
|
+
return panGestureHandlers;
|
|
181
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
3
|
+
import { MAX_OVER_DRAG } from '@coinbase/cds-common/animation/drawer';
|
|
4
|
+
import { useSafeBottomPadding } from '../../hooks/useSafeBottomPadding';
|
|
5
|
+
export const useDrawerSpacing = function (pin) {
|
|
6
|
+
if (pin === void 0) {
|
|
7
|
+
pin = 'bottom';
|
|
8
|
+
}
|
|
9
|
+
const {
|
|
10
|
+
top
|
|
11
|
+
} = useSafeAreaInsets();
|
|
12
|
+
const safeBottomPadding = useSafeBottomPadding();
|
|
13
|
+
const safeAreaStyles = useMemo(() => {
|
|
14
|
+
switch (pin) {
|
|
15
|
+
case 'top':
|
|
16
|
+
return {
|
|
17
|
+
paddingTop: top + MAX_OVER_DRAG
|
|
18
|
+
};
|
|
19
|
+
case 'left':
|
|
20
|
+
return {
|
|
21
|
+
paddingTop: top,
|
|
22
|
+
paddingLeft: MAX_OVER_DRAG
|
|
23
|
+
};
|
|
24
|
+
case 'bottom':
|
|
25
|
+
return {
|
|
26
|
+
paddingBottom: safeBottomPadding + MAX_OVER_DRAG
|
|
27
|
+
};
|
|
28
|
+
case 'right':
|
|
29
|
+
return {
|
|
30
|
+
paddingTop: top,
|
|
31
|
+
paddingRight: MAX_OVER_DRAG
|
|
32
|
+
};
|
|
33
|
+
default:
|
|
34
|
+
return {
|
|
35
|
+
paddingBottom: safeBottomPadding + MAX_OVER_DRAG
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
}, [pin, safeBottomPadding, top]);
|
|
39
|
+
return safeAreaStyles;
|
|
40
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { StyleSheet, View } from 'react-native';
|
|
4
|
+
import { handleBarHeight, handleBarOffset } from '@coinbase/cds-common/tokens/drawer';
|
|
5
|
+
import { useTheme } from '../../hooks/useTheme';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
export const HandleBar = props => {
|
|
8
|
+
const theme = useTheme();
|
|
9
|
+
const handleBarBackgroundColor = theme.color.bgSecondary;
|
|
10
|
+
const handleBarStyles = {
|
|
11
|
+
backgroundColor: handleBarBackgroundColor,
|
|
12
|
+
marginBottom: theme.space[2]
|
|
13
|
+
};
|
|
14
|
+
return /*#__PURE__*/_jsx(View, _extends({
|
|
15
|
+
accessible: true,
|
|
16
|
+
style: styles.touchableArea,
|
|
17
|
+
testID: "handleBar"
|
|
18
|
+
}, props, {
|
|
19
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
20
|
+
style: [styles.handleBar, handleBarStyles]
|
|
21
|
+
})
|
|
22
|
+
}));
|
|
23
|
+
};
|
|
24
|
+
const styles = StyleSheet.create({
|
|
25
|
+
touchableArea: {
|
|
26
|
+
position: 'absolute',
|
|
27
|
+
top: -handleBarOffset,
|
|
28
|
+
left: 0,
|
|
29
|
+
right: 0,
|
|
30
|
+
height: handleBarOffset,
|
|
31
|
+
alignItems: 'center',
|
|
32
|
+
justifyContent: 'flex-end'
|
|
33
|
+
},
|
|
34
|
+
handleBar: {
|
|
35
|
+
width: 64,
|
|
36
|
+
height: handleBarHeight,
|
|
37
|
+
borderRadius: 4
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
HandleBar.displayName = 'HandleBar';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './Alert';
|
|
2
|
+
export * from './drawer/Drawer';
|
|
3
|
+
export * from './modal/Modal';
|
|
4
|
+
export * from './modal/ModalBody';
|
|
5
|
+
export * from './modal/ModalFooter';
|
|
6
|
+
export * from './modal/ModalHeader';
|
|
7
|
+
export * from './overlay/Overlay';
|
|
8
|
+
export * from './overlay/useOverlayAnimation';
|
|
9
|
+
export * from './Toast';
|
|
10
|
+
export * from './tooltip/Tooltip';
|
|
11
|
+
export * from './tray/Tray';
|