@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,740 @@
|
|
|
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, { memo, useCallback, useMemo, useRef, useState } from 'react';
|
|
3
|
+
import { Dimensions, Image, StyleSheet, View } from 'react-native';
|
|
4
|
+
import Animated, { useAnimatedStyle, useSharedValue, withSpring } from 'react-native-reanimated';
|
|
5
|
+
import { assets, coinbaseOneLogo } from '@coinbase/cds-common/internal/data/assets';
|
|
6
|
+
import { animated, useSpring } from '@react-spring/native';
|
|
7
|
+
import { Button } from '../../buttons';
|
|
8
|
+
import { IconButton } from '../../buttons/IconButton';
|
|
9
|
+
import { ContainedAssetCard } from '../../cards/ContainedAssetCard';
|
|
10
|
+
import { NudgeCard } from '../../cards/NudgeCard';
|
|
11
|
+
import { UpsellCard } from '../../cards/UpsellCard';
|
|
12
|
+
import { Example, ExampleScreen } from '../../examples/ExampleScreen';
|
|
13
|
+
import { useTheme } from '../../hooks/useTheme';
|
|
14
|
+
import { Box, HStack, VStack } from '../../layout';
|
|
15
|
+
import { RemoteImage } from '../../media';
|
|
16
|
+
import { Pressable } from '../../system/Pressable';
|
|
17
|
+
import { Link, TextHeadline, TextLabel2 } from '../../typography';
|
|
18
|
+
import { Text } from '../../typography/Text';
|
|
19
|
+
import { Carousel } from '../Carousel';
|
|
20
|
+
import { CarouselItem } from '../CarouselItem';
|
|
21
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
22
|
+
const styles = StyleSheet.create({
|
|
23
|
+
sampleCard: {
|
|
24
|
+
height: 192,
|
|
25
|
+
// 12rem equivalent
|
|
26
|
+
alignItems: 'center',
|
|
27
|
+
justifyContent: 'center',
|
|
28
|
+
borderRadius: 16,
|
|
29
|
+
borderWidth: 1,
|
|
30
|
+
borderStyle: 'dashed'
|
|
31
|
+
},
|
|
32
|
+
upsellImage: {
|
|
33
|
+
width: 130,
|
|
34
|
+
height: 174,
|
|
35
|
+
position: 'relative',
|
|
36
|
+
left: 10
|
|
37
|
+
},
|
|
38
|
+
assetImage: {
|
|
39
|
+
width: 32,
|
|
40
|
+
height: 32
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
const SampleCard = _ref => {
|
|
44
|
+
let {
|
|
45
|
+
text
|
|
46
|
+
} = _ref;
|
|
47
|
+
const theme = useTheme();
|
|
48
|
+
return /*#__PURE__*/_jsx(View, {
|
|
49
|
+
style: [styles.sampleCard, {
|
|
50
|
+
backgroundColor: theme.color.accentSubtleBlue,
|
|
51
|
+
borderColor: theme.color.accentBoldBlue
|
|
52
|
+
}],
|
|
53
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
54
|
+
color: "fgPrimary",
|
|
55
|
+
font: "label1",
|
|
56
|
+
children: text
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
const SampleUpsellCard = () => /*#__PURE__*/_jsx(UpsellCard, {
|
|
61
|
+
action: "Buy Bitcoin now",
|
|
62
|
+
description: "Check out the most popular assets",
|
|
63
|
+
media: /*#__PURE__*/_jsx(Image, {
|
|
64
|
+
alt: "Coinbase One",
|
|
65
|
+
source: {
|
|
66
|
+
uri: coinbaseOneLogo
|
|
67
|
+
},
|
|
68
|
+
style: styles.upsellImage
|
|
69
|
+
}),
|
|
70
|
+
onActionPress: () => console.log('pressed'),
|
|
71
|
+
title: "Headline",
|
|
72
|
+
width: "100%"
|
|
73
|
+
});
|
|
74
|
+
const sampleItems = [/*#__PURE__*/_jsx(SampleCard, {
|
|
75
|
+
text: "Slide 1"
|
|
76
|
+
}, "1"), /*#__PURE__*/_jsx(SampleCard, {
|
|
77
|
+
text: "Slide 2"
|
|
78
|
+
}, "2"), /*#__PURE__*/_jsx(SampleCard, {
|
|
79
|
+
text: "Slide 3"
|
|
80
|
+
}, "3"), /*#__PURE__*/_jsx(SampleCard, {
|
|
81
|
+
text: "Slide 4"
|
|
82
|
+
}, "4"), /*#__PURE__*/_jsx(SampleCard, {
|
|
83
|
+
text: "Slide 5"
|
|
84
|
+
}, "5"), /*#__PURE__*/_jsx(SampleCard, {
|
|
85
|
+
text: "Slide 6"
|
|
86
|
+
}, "6"), /*#__PURE__*/_jsx(SampleCard, {
|
|
87
|
+
text: "Slide 7"
|
|
88
|
+
}, "7"), /*#__PURE__*/_jsx(SampleCard, {
|
|
89
|
+
text: "Slide 8"
|
|
90
|
+
}, "8"), /*#__PURE__*/_jsx(SampleCard, {
|
|
91
|
+
text: "Slide 9"
|
|
92
|
+
}, "9"), /*#__PURE__*/_jsx(SampleCard, {
|
|
93
|
+
text: "Slide 10"
|
|
94
|
+
}, "10")];
|
|
95
|
+
const SeeAllComponent = () => /*#__PURE__*/_jsx(TextHeadline, {
|
|
96
|
+
children: /*#__PURE__*/_jsx(Link, {
|
|
97
|
+
to: "https://coinbase.com/",
|
|
98
|
+
children: "See all"
|
|
99
|
+
})
|
|
100
|
+
});
|
|
101
|
+
const SquareAssetCard = _ref2 => {
|
|
102
|
+
let {
|
|
103
|
+
imageUrl,
|
|
104
|
+
name
|
|
105
|
+
} = _ref2;
|
|
106
|
+
return /*#__PURE__*/_jsx(ContainedAssetCard, {
|
|
107
|
+
description: /*#__PURE__*/_jsx(Text, {
|
|
108
|
+
color: "fgPositive",
|
|
109
|
+
font: "label2",
|
|
110
|
+
numberOfLines: 2,
|
|
111
|
+
children: "\u21976.37%"
|
|
112
|
+
}),
|
|
113
|
+
header: /*#__PURE__*/_jsx(RemoteImage, {
|
|
114
|
+
height: 32,
|
|
115
|
+
source: imageUrl,
|
|
116
|
+
style: styles.assetImage,
|
|
117
|
+
width: 32
|
|
118
|
+
}),
|
|
119
|
+
subtitle: name,
|
|
120
|
+
title: "$0.87"
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
const BasicExamples = () => {
|
|
124
|
+
const theme = useTheme();
|
|
125
|
+
const horizontalPadding = theme.space[2];
|
|
126
|
+
const windowWidth = Dimensions.get('window').width;
|
|
127
|
+
const carouselSizing = windowWidth - horizontalPadding * 2;
|
|
128
|
+
const horizontalGap = theme.space[1];
|
|
129
|
+
const twoItemsWidth = (carouselSizing - horizontalGap) / 2;
|
|
130
|
+
const threeItemsWidth = (carouselSizing - horizontalGap * 2) / 3;
|
|
131
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
132
|
+
children: [/*#__PURE__*/_jsx(Example, {
|
|
133
|
+
paddingX: 0,
|
|
134
|
+
children: /*#__PURE__*/_jsx(Carousel, {
|
|
135
|
+
styles: {
|
|
136
|
+
root: {
|
|
137
|
+
paddingHorizontal: horizontalPadding
|
|
138
|
+
},
|
|
139
|
+
carousel: {
|
|
140
|
+
gap: horizontalGap
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
title: "Snap Page",
|
|
144
|
+
children: sampleItems.map((item, index) => /*#__PURE__*/_jsx(CarouselItem, {
|
|
145
|
+
id: "spaced-" + index,
|
|
146
|
+
width: threeItemsWidth,
|
|
147
|
+
children: item
|
|
148
|
+
}, "spaced-" + index))
|
|
149
|
+
})
|
|
150
|
+
}), /*#__PURE__*/_jsx(Example, {
|
|
151
|
+
paddingX: 0,
|
|
152
|
+
children: /*#__PURE__*/_jsx(Carousel, {
|
|
153
|
+
drag: "snap",
|
|
154
|
+
snapMode: "item",
|
|
155
|
+
styles: {
|
|
156
|
+
root: {
|
|
157
|
+
paddingHorizontal: horizontalPadding
|
|
158
|
+
},
|
|
159
|
+
carousel: {
|
|
160
|
+
gap: horizontalGap
|
|
161
|
+
},
|
|
162
|
+
title: {
|
|
163
|
+
color: theme.color.fgPrimary
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
title: "Snap Item",
|
|
167
|
+
children: sampleItems.map((item, index) => /*#__PURE__*/_jsx(CarouselItem, {
|
|
168
|
+
id: "snap-" + index,
|
|
169
|
+
width: twoItemsWidth,
|
|
170
|
+
children: item
|
|
171
|
+
}, "snap-" + index))
|
|
172
|
+
})
|
|
173
|
+
}), /*#__PURE__*/_jsx(Example, {
|
|
174
|
+
paddingX: 0,
|
|
175
|
+
children: /*#__PURE__*/_jsx(Carousel, {
|
|
176
|
+
NavigationComponent: SeeAllComponent,
|
|
177
|
+
drag: "free",
|
|
178
|
+
snapMode: "item",
|
|
179
|
+
styles: {
|
|
180
|
+
root: {
|
|
181
|
+
paddingHorizontal: horizontalPadding
|
|
182
|
+
},
|
|
183
|
+
carousel: {
|
|
184
|
+
gap: horizontalGap
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
title: "Square Items Carousel",
|
|
188
|
+
children: Object.values(assets).map(asset => /*#__PURE__*/_jsx(CarouselItem, {
|
|
189
|
+
id: asset.symbol,
|
|
190
|
+
children: /*#__PURE__*/_jsx(SquareAssetCard, {
|
|
191
|
+
imageUrl: asset.imageUrl,
|
|
192
|
+
name: asset.symbol
|
|
193
|
+
})
|
|
194
|
+
}, asset.symbol))
|
|
195
|
+
})
|
|
196
|
+
}), /*#__PURE__*/_jsx(Example, {
|
|
197
|
+
paddingX: 0,
|
|
198
|
+
children: /*#__PURE__*/_jsxs(Carousel, {
|
|
199
|
+
drag: "snap",
|
|
200
|
+
snapMode: "page",
|
|
201
|
+
styles: {
|
|
202
|
+
root: {
|
|
203
|
+
paddingHorizontal: horizontalPadding
|
|
204
|
+
},
|
|
205
|
+
carousel: {
|
|
206
|
+
gap: theme.space[1]
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
title: "Full Width Cards",
|
|
210
|
+
children: [/*#__PURE__*/_jsx(CarouselItem, {
|
|
211
|
+
id: "upsell-1",
|
|
212
|
+
width: "100%",
|
|
213
|
+
children: /*#__PURE__*/_jsx(SampleUpsellCard, {})
|
|
214
|
+
}), /*#__PURE__*/_jsx(CarouselItem, {
|
|
215
|
+
id: "upsell-2",
|
|
216
|
+
width: "100%",
|
|
217
|
+
children: /*#__PURE__*/_jsx(SampleUpsellCard, {})
|
|
218
|
+
}), /*#__PURE__*/_jsx(CarouselItem, {
|
|
219
|
+
id: "upsell-3",
|
|
220
|
+
width: "100%",
|
|
221
|
+
children: /*#__PURE__*/_jsx(SampleUpsellCard, {})
|
|
222
|
+
}), /*#__PURE__*/_jsx(CarouselItem, {
|
|
223
|
+
id: "upsell-4",
|
|
224
|
+
width: "100%",
|
|
225
|
+
children: /*#__PURE__*/_jsx(SampleUpsellCard, {})
|
|
226
|
+
}), /*#__PURE__*/_jsx(CarouselItem, {
|
|
227
|
+
id: "upsell-5",
|
|
228
|
+
width: "100%",
|
|
229
|
+
children: /*#__PURE__*/_jsx(SampleUpsellCard, {})
|
|
230
|
+
})]
|
|
231
|
+
})
|
|
232
|
+
}), /*#__PURE__*/_jsx(Example, {
|
|
233
|
+
paddingX: 0,
|
|
234
|
+
children: /*#__PURE__*/_jsx(Carousel, {
|
|
235
|
+
drag: "none",
|
|
236
|
+
styles: {
|
|
237
|
+
root: {
|
|
238
|
+
paddingHorizontal: horizontalPadding
|
|
239
|
+
},
|
|
240
|
+
carousel: {
|
|
241
|
+
gap: horizontalGap
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
title: "Navigation Only (No Drag)",
|
|
245
|
+
children: sampleItems.slice(0, 4).map((item, index) => /*#__PURE__*/_jsx(CarouselItem, {
|
|
246
|
+
id: "nav-only-" + index,
|
|
247
|
+
width: "100%",
|
|
248
|
+
children: item
|
|
249
|
+
}, "nav-only-" + index))
|
|
250
|
+
})
|
|
251
|
+
}), /*#__PURE__*/_jsx(Example, {
|
|
252
|
+
paddingX: 0,
|
|
253
|
+
children: /*#__PURE__*/_jsx(Carousel, {
|
|
254
|
+
hideNavigation: true,
|
|
255
|
+
hidePagination: true,
|
|
256
|
+
styles: {
|
|
257
|
+
root: {
|
|
258
|
+
paddingHorizontal: horizontalPadding
|
|
259
|
+
},
|
|
260
|
+
carousel: {
|
|
261
|
+
gap: horizontalGap
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
title: "Drag Only (No Navigation or Pagination)",
|
|
265
|
+
children: sampleItems.slice(0, 4).map((item, index) => /*#__PURE__*/_jsx(CarouselItem, {
|
|
266
|
+
id: "drag-only-" + index,
|
|
267
|
+
width: "100%",
|
|
268
|
+
children: item
|
|
269
|
+
}, "drag-only-" + index))
|
|
270
|
+
})
|
|
271
|
+
})]
|
|
272
|
+
});
|
|
273
|
+
};
|
|
274
|
+
const CustomComponentsExample = () => {
|
|
275
|
+
const theme = useTheme();
|
|
276
|
+
const CustomPaginationComponent = _ref3 => {
|
|
277
|
+
let {
|
|
278
|
+
totalPages,
|
|
279
|
+
activePageIndex,
|
|
280
|
+
onPressPage,
|
|
281
|
+
style
|
|
282
|
+
} = _ref3;
|
|
283
|
+
const canGoPrevious = activePageIndex > 0;
|
|
284
|
+
const canGoNext = activePageIndex < totalPages - 1;
|
|
285
|
+
const onPrevious = () => {
|
|
286
|
+
onPressPage(activePageIndex - 1);
|
|
287
|
+
};
|
|
288
|
+
const onNext = () => {
|
|
289
|
+
onPressPage(activePageIndex + 1);
|
|
290
|
+
};
|
|
291
|
+
return /*#__PURE__*/_jsxs(HStack, {
|
|
292
|
+
justifyContent: "space-between",
|
|
293
|
+
style: style,
|
|
294
|
+
children: [/*#__PURE__*/_jsxs(HStack, {
|
|
295
|
+
gap: 1,
|
|
296
|
+
children: [/*#__PURE__*/_jsx(IconButton, {
|
|
297
|
+
accessibilityLabel: "Previous",
|
|
298
|
+
disabled: !canGoPrevious,
|
|
299
|
+
name: "caretLeft",
|
|
300
|
+
onPress: onPrevious,
|
|
301
|
+
variant: "foregroundMuted"
|
|
302
|
+
}), /*#__PURE__*/_jsx(IconButton, {
|
|
303
|
+
accessibilityLabel: "Next",
|
|
304
|
+
disabled: !canGoNext,
|
|
305
|
+
name: "caretRight",
|
|
306
|
+
onPress: onNext,
|
|
307
|
+
variant: "foregroundMuted"
|
|
308
|
+
})]
|
|
309
|
+
}), /*#__PURE__*/_jsx(HStack, {
|
|
310
|
+
alignItems: "center",
|
|
311
|
+
gap: 1,
|
|
312
|
+
children: Array.from({
|
|
313
|
+
length: totalPages
|
|
314
|
+
}, (_, index) => /*#__PURE__*/_jsx(Pressable, {
|
|
315
|
+
accessibilityLabel: "Go to page " + (index + 1),
|
|
316
|
+
background: index === activePageIndex ? 'bgPrimary' : 'bgSecondary',
|
|
317
|
+
borderColor: index === activePageIndex ? 'fgPrimary' : 'bgLine',
|
|
318
|
+
borderRadius: 400,
|
|
319
|
+
height: 16,
|
|
320
|
+
onPress: () => onPressPage(index),
|
|
321
|
+
width: 16
|
|
322
|
+
}, index))
|
|
323
|
+
})]
|
|
324
|
+
});
|
|
325
|
+
};
|
|
326
|
+
return /*#__PURE__*/_jsx(Example, {
|
|
327
|
+
paddingX: 0,
|
|
328
|
+
children: /*#__PURE__*/_jsxs(Carousel, {
|
|
329
|
+
NavigationComponent: SeeAllComponent,
|
|
330
|
+
PaginationComponent: CustomPaginationComponent,
|
|
331
|
+
styles: {
|
|
332
|
+
root: {
|
|
333
|
+
paddingHorizontal: theme.space[3],
|
|
334
|
+
paddingVertical: theme.space[0.5]
|
|
335
|
+
},
|
|
336
|
+
carousel: {
|
|
337
|
+
gap: theme.space[2]
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
title: "Learn more",
|
|
341
|
+
children: [/*#__PURE__*/_jsx(CarouselItem, {
|
|
342
|
+
id: "earn-more-crypto",
|
|
343
|
+
width: "100%",
|
|
344
|
+
children: /*#__PURE__*/_jsx(NudgeCard, {
|
|
345
|
+
action: "Start earning",
|
|
346
|
+
description: "You've got unstaked crypto. Stake it now to earn more.",
|
|
347
|
+
minWidth: 0,
|
|
348
|
+
onActionPress: () => console.log('Action pressed'),
|
|
349
|
+
pictogram: "key",
|
|
350
|
+
title: "Earn more crypto",
|
|
351
|
+
width: "100%"
|
|
352
|
+
})
|
|
353
|
+
}), /*#__PURE__*/_jsx(CarouselItem, {
|
|
354
|
+
id: "secure-your-account",
|
|
355
|
+
width: "100%",
|
|
356
|
+
children: /*#__PURE__*/_jsx(NudgeCard, {
|
|
357
|
+
action: "Enable 2FA",
|
|
358
|
+
description: "Add two-factor authentication for enhanced security.",
|
|
359
|
+
minWidth: 0,
|
|
360
|
+
onActionPress: () => console.log('Enable 2FA pressed'),
|
|
361
|
+
pictogram: "shield",
|
|
362
|
+
title: "Secure your account",
|
|
363
|
+
width: "100%"
|
|
364
|
+
})
|
|
365
|
+
}), /*#__PURE__*/_jsx(CarouselItem, {
|
|
366
|
+
id: "complete-your-profile",
|
|
367
|
+
width: "100%",
|
|
368
|
+
children: /*#__PURE__*/_jsx(NudgeCard, {
|
|
369
|
+
action: "Update profile",
|
|
370
|
+
description: "Add more details to personalize your experience.",
|
|
371
|
+
minWidth: 0,
|
|
372
|
+
onActionPress: () => console.log('Update profile pressed'),
|
|
373
|
+
pictogram: "accountsNavigation",
|
|
374
|
+
title: "Complete your profile",
|
|
375
|
+
width: "100%"
|
|
376
|
+
})
|
|
377
|
+
})]
|
|
378
|
+
})
|
|
379
|
+
});
|
|
380
|
+
};
|
|
381
|
+
const DynamicContentExample = () => {
|
|
382
|
+
const theme = useTheme();
|
|
383
|
+
const [items, setItems] = useState(Object.values(assets).slice(0, 3));
|
|
384
|
+
function addAsset() {
|
|
385
|
+
const randomAsset = Object.values(assets)[Math.floor(Math.random() * Object.values(assets).length)];
|
|
386
|
+
setItems([...items, _extends({}, randomAsset, {
|
|
387
|
+
symbol: randomAsset.symbol + "-" + items.length
|
|
388
|
+
})]);
|
|
389
|
+
}
|
|
390
|
+
return /*#__PURE__*/_jsxs(Example, {
|
|
391
|
+
paddingX: 0,
|
|
392
|
+
children: [/*#__PURE__*/_jsxs(HStack, {
|
|
393
|
+
alignItems: "center",
|
|
394
|
+
gap: 2,
|
|
395
|
+
justifyContent: "flex-end",
|
|
396
|
+
paddingX: 2,
|
|
397
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
398
|
+
compact: true,
|
|
399
|
+
onPress: addAsset,
|
|
400
|
+
children: "Add Asset"
|
|
401
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
402
|
+
compact: true,
|
|
403
|
+
disabled: items.length === 0,
|
|
404
|
+
onPress: () => setItems(items.slice(0, -1)),
|
|
405
|
+
children: "Remove Last"
|
|
406
|
+
})]
|
|
407
|
+
}), /*#__PURE__*/_jsx(Carousel, {
|
|
408
|
+
styles: {
|
|
409
|
+
root: {
|
|
410
|
+
paddingHorizontal: theme.space[3]
|
|
411
|
+
},
|
|
412
|
+
carousel: {
|
|
413
|
+
gap: theme.space[1],
|
|
414
|
+
height: 156
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
title: "Explore Assets",
|
|
418
|
+
children: items.map(asset => /*#__PURE__*/_jsx(CarouselItem, {
|
|
419
|
+
id: asset.symbol,
|
|
420
|
+
children: /*#__PURE__*/_jsx(SquareAssetCard, {
|
|
421
|
+
imageUrl: asset.imageUrl,
|
|
422
|
+
name: asset.symbol
|
|
423
|
+
})
|
|
424
|
+
}, asset.symbol))
|
|
425
|
+
})]
|
|
426
|
+
});
|
|
427
|
+
};
|
|
428
|
+
const AnimatedExample = () => {
|
|
429
|
+
const theme = useTheme();
|
|
430
|
+
const SquareAssetCard = /*#__PURE__*/memo(_ref4 => {
|
|
431
|
+
let {
|
|
432
|
+
imageUrl,
|
|
433
|
+
name
|
|
434
|
+
} = _ref4;
|
|
435
|
+
const theme = useTheme();
|
|
436
|
+
const squareSize = 156;
|
|
437
|
+
const largeSize = 327;
|
|
438
|
+
const [isHighlighted, setIsHighlighted] = useState(false);
|
|
439
|
+
const [size, setSize] = useState('s');
|
|
440
|
+
const width = useSharedValue(squareSize);
|
|
441
|
+
const handleClick = useCallback(() => {
|
|
442
|
+
const newHighlighted = !isHighlighted;
|
|
443
|
+
setIsHighlighted(newHighlighted);
|
|
444
|
+
if (newHighlighted) {
|
|
445
|
+
setSize('l');
|
|
446
|
+
width.value = withSpring(largeSize);
|
|
447
|
+
} else {
|
|
448
|
+
setSize('s');
|
|
449
|
+
width.value = withSpring(squareSize);
|
|
450
|
+
}
|
|
451
|
+
}, [isHighlighted, width, largeSize, squareSize]);
|
|
452
|
+
const animatedStyle = useAnimatedStyle(() => {
|
|
453
|
+
return {
|
|
454
|
+
width: width.value,
|
|
455
|
+
overflow: 'hidden',
|
|
456
|
+
borderRadius: theme.borderRadius[500]
|
|
457
|
+
};
|
|
458
|
+
});
|
|
459
|
+
return /*#__PURE__*/_jsx(Animated.View, {
|
|
460
|
+
style: animatedStyle,
|
|
461
|
+
children: /*#__PURE__*/_jsx(ContainedAssetCard, {
|
|
462
|
+
description: /*#__PURE__*/_jsx(TextLabel2, {
|
|
463
|
+
color: "fgPositive",
|
|
464
|
+
numberOfLines: 2,
|
|
465
|
+
children: "\u21976.37%"
|
|
466
|
+
}),
|
|
467
|
+
header: /*#__PURE__*/_jsx(RemoteImage, {
|
|
468
|
+
height: 32,
|
|
469
|
+
source: imageUrl,
|
|
470
|
+
width: 32
|
|
471
|
+
}),
|
|
472
|
+
onPress: handleClick,
|
|
473
|
+
size: size,
|
|
474
|
+
subtitle: name,
|
|
475
|
+
title: "$0.87",
|
|
476
|
+
children: /*#__PURE__*/_jsx(VStack, {
|
|
477
|
+
height: squareSize,
|
|
478
|
+
justifyContent: "center",
|
|
479
|
+
padding: 1
|
|
480
|
+
})
|
|
481
|
+
})
|
|
482
|
+
});
|
|
483
|
+
});
|
|
484
|
+
return /*#__PURE__*/_jsx(Example, {
|
|
485
|
+
paddingX: 0,
|
|
486
|
+
children: /*#__PURE__*/_jsx(Carousel, {
|
|
487
|
+
styles: {
|
|
488
|
+
root: {
|
|
489
|
+
paddingHorizontal: theme.space[3]
|
|
490
|
+
},
|
|
491
|
+
carousel: {
|
|
492
|
+
gap: theme.space[1]
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
title: "Explore Assets",
|
|
496
|
+
children: Object.values(assets).map(asset => /*#__PURE__*/_jsx(CarouselItem, {
|
|
497
|
+
id: asset.symbol,
|
|
498
|
+
children: /*#__PURE__*/_jsx(SquareAssetCard, {
|
|
499
|
+
imageUrl: asset.imageUrl,
|
|
500
|
+
name: asset.symbol
|
|
501
|
+
})
|
|
502
|
+
}, asset.symbol))
|
|
503
|
+
})
|
|
504
|
+
});
|
|
505
|
+
};
|
|
506
|
+
const ImperativeApiExample = () => {
|
|
507
|
+
const theme = useTheme();
|
|
508
|
+
const carouselRef = useRef(null);
|
|
509
|
+
const [currentPageInfo, setCurrentPageInfo] = useState('Page 1');
|
|
510
|
+
const handleGoToPage = pageIndex => {
|
|
511
|
+
if (carouselRef.current) {
|
|
512
|
+
const clampedPageIndex = Math.max(0, Math.min(carouselRef.current.totalPages - 1, pageIndex));
|
|
513
|
+
carouselRef.current.goToPage(clampedPageIndex);
|
|
514
|
+
setCurrentPageInfo("Page " + (clampedPageIndex + 1));
|
|
515
|
+
}
|
|
516
|
+
};
|
|
517
|
+
const handleGoToFirstPage = () => {
|
|
518
|
+
handleGoToPage(0);
|
|
519
|
+
};
|
|
520
|
+
const handleGoToLastPage = () => {
|
|
521
|
+
if (carouselRef.current) {
|
|
522
|
+
handleGoToPage(carouselRef.current.totalPages - 1);
|
|
523
|
+
}
|
|
524
|
+
};
|
|
525
|
+
const handleGoToPrevPage = () => {
|
|
526
|
+
if (carouselRef.current) {
|
|
527
|
+
handleGoToPage(carouselRef.current.activePageIndex - 1);
|
|
528
|
+
}
|
|
529
|
+
};
|
|
530
|
+
const handleGoToNextPage = () => {
|
|
531
|
+
if (carouselRef.current) {
|
|
532
|
+
handleGoToPage(carouselRef.current.activePageIndex + 1);
|
|
533
|
+
}
|
|
534
|
+
};
|
|
535
|
+
return /*#__PURE__*/_jsx(Example, {
|
|
536
|
+
paddingX: 0,
|
|
537
|
+
children: /*#__PURE__*/_jsxs(VStack, {
|
|
538
|
+
gap: 2,
|
|
539
|
+
children: [/*#__PURE__*/_jsxs(HStack, {
|
|
540
|
+
alignItems: "center",
|
|
541
|
+
gap: 2,
|
|
542
|
+
justifyContent: "space-between",
|
|
543
|
+
paddingX: 3,
|
|
544
|
+
children: [/*#__PURE__*/_jsxs(HStack, {
|
|
545
|
+
gap: 1,
|
|
546
|
+
children: [/*#__PURE__*/_jsx(IconButton, {
|
|
547
|
+
accessibilityLabel: "Go to first page",
|
|
548
|
+
name: "doubleChevronRight",
|
|
549
|
+
onPress: handleGoToFirstPage,
|
|
550
|
+
style: {
|
|
551
|
+
transform: [{
|
|
552
|
+
rotate: '180deg'
|
|
553
|
+
}]
|
|
554
|
+
},
|
|
555
|
+
variant: "secondary"
|
|
556
|
+
}), /*#__PURE__*/_jsx(IconButton, {
|
|
557
|
+
active: true,
|
|
558
|
+
accessibilityLabel: "Go to previous page",
|
|
559
|
+
name: "arrowLeft",
|
|
560
|
+
onPress: handleGoToPrevPage,
|
|
561
|
+
variant: "secondary"
|
|
562
|
+
})]
|
|
563
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
564
|
+
alignItems: "center",
|
|
565
|
+
background: "bgSecondary",
|
|
566
|
+
borderRadius: 500,
|
|
567
|
+
flexGrow: 1,
|
|
568
|
+
justifyContent: "center",
|
|
569
|
+
paddingX: 2,
|
|
570
|
+
paddingY: 1,
|
|
571
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
572
|
+
color: "fgMuted",
|
|
573
|
+
font: "label1",
|
|
574
|
+
children: currentPageInfo
|
|
575
|
+
})
|
|
576
|
+
}), /*#__PURE__*/_jsxs(HStack, {
|
|
577
|
+
gap: 1,
|
|
578
|
+
children: [/*#__PURE__*/_jsx(IconButton, {
|
|
579
|
+
active: true,
|
|
580
|
+
accessibilityLabel: "Go to next page",
|
|
581
|
+
name: "arrowRight",
|
|
582
|
+
onPress: handleGoToNextPage,
|
|
583
|
+
variant: "secondary"
|
|
584
|
+
}), /*#__PURE__*/_jsx(IconButton, {
|
|
585
|
+
accessibilityLabel: "Go to last page",
|
|
586
|
+
name: "doubleChevronRight",
|
|
587
|
+
onPress: handleGoToLastPage,
|
|
588
|
+
variant: "secondary"
|
|
589
|
+
})]
|
|
590
|
+
})]
|
|
591
|
+
}), /*#__PURE__*/_jsx(Carousel, {
|
|
592
|
+
ref: carouselRef,
|
|
593
|
+
hideNavigation: true,
|
|
594
|
+
hidePagination: true,
|
|
595
|
+
drag: "none",
|
|
596
|
+
snapMode: "item",
|
|
597
|
+
styles: {
|
|
598
|
+
root: {
|
|
599
|
+
paddingHorizontal: theme.space[3]
|
|
600
|
+
},
|
|
601
|
+
carousel: {
|
|
602
|
+
gap: theme.space[1]
|
|
603
|
+
}
|
|
604
|
+
},
|
|
605
|
+
title: "Explore Assets",
|
|
606
|
+
children: Object.values(assets).map(asset => /*#__PURE__*/_jsx(CarouselItem, {
|
|
607
|
+
accessibilityLabel: asset.name,
|
|
608
|
+
id: asset.symbol,
|
|
609
|
+
children: /*#__PURE__*/_jsx(SquareAssetCard, {
|
|
610
|
+
imageUrl: asset.imageUrl,
|
|
611
|
+
name: asset.symbol
|
|
612
|
+
})
|
|
613
|
+
}, asset.symbol))
|
|
614
|
+
})]
|
|
615
|
+
})
|
|
616
|
+
});
|
|
617
|
+
};
|
|
618
|
+
const AnimatedPaginationExample = () => {
|
|
619
|
+
const theme = useTheme();
|
|
620
|
+
const AnimatedDot = /*#__PURE__*/memo(_ref5 => {
|
|
621
|
+
let {
|
|
622
|
+
index,
|
|
623
|
+
isActive,
|
|
624
|
+
dotSize,
|
|
625
|
+
activeDotWidth,
|
|
626
|
+
onPress,
|
|
627
|
+
theme
|
|
628
|
+
} = _ref5;
|
|
629
|
+
const springProps = useSpring({
|
|
630
|
+
width: isActive ? activeDotWidth : dotSize,
|
|
631
|
+
backgroundColor: isActive ? theme.color.bgPrimary : theme.color.bgLine,
|
|
632
|
+
config: {
|
|
633
|
+
tension: 300,
|
|
634
|
+
friction: 25
|
|
635
|
+
}
|
|
636
|
+
});
|
|
637
|
+
const baseStyle = useMemo(() => ({
|
|
638
|
+
height: dotSize,
|
|
639
|
+
borderRadius: dotSize / 2
|
|
640
|
+
}), [dotSize]);
|
|
641
|
+
return /*#__PURE__*/_jsx(Pressable, {
|
|
642
|
+
accessibilityLabel: "Go to page " + (index + 1),
|
|
643
|
+
borderRadius: 1000,
|
|
644
|
+
height: dotSize,
|
|
645
|
+
onPress: onPress,
|
|
646
|
+
children: /*#__PURE__*/_jsx(animated.View, {
|
|
647
|
+
style: [baseStyle, {
|
|
648
|
+
width: springProps.width,
|
|
649
|
+
backgroundColor: springProps.backgroundColor
|
|
650
|
+
}]
|
|
651
|
+
})
|
|
652
|
+
});
|
|
653
|
+
});
|
|
654
|
+
const AnimatedPagination = /*#__PURE__*/memo(_ref6 => {
|
|
655
|
+
let {
|
|
656
|
+
totalPages,
|
|
657
|
+
activePageIndex,
|
|
658
|
+
onPressPage,
|
|
659
|
+
style
|
|
660
|
+
} = _ref6;
|
|
661
|
+
const dotSize = theme.space[1];
|
|
662
|
+
const activeDotWidth = theme.space[3];
|
|
663
|
+
return /*#__PURE__*/_jsx(HStack, {
|
|
664
|
+
alignItems: "center",
|
|
665
|
+
gap: 0.5,
|
|
666
|
+
justifyContent: "center",
|
|
667
|
+
paddingY: 0.5,
|
|
668
|
+
style: style,
|
|
669
|
+
children: Array.from({
|
|
670
|
+
length: totalPages
|
|
671
|
+
}, (_, index) => /*#__PURE__*/_jsx(AnimatedDot, {
|
|
672
|
+
activeDotWidth: activeDotWidth,
|
|
673
|
+
dotSize: dotSize,
|
|
674
|
+
index: index,
|
|
675
|
+
isActive: index === activePageIndex,
|
|
676
|
+
onPress: () => onPressPage == null ? void 0 : onPressPage(index),
|
|
677
|
+
theme: theme
|
|
678
|
+
}, index))
|
|
679
|
+
});
|
|
680
|
+
});
|
|
681
|
+
return /*#__PURE__*/_jsx(Example, {
|
|
682
|
+
paddingX: 0,
|
|
683
|
+
children: /*#__PURE__*/_jsxs(Carousel, {
|
|
684
|
+
PaginationComponent: AnimatedPagination,
|
|
685
|
+
drag: "snap",
|
|
686
|
+
snapMode: "page",
|
|
687
|
+
styles: {
|
|
688
|
+
root: {
|
|
689
|
+
paddingHorizontal: theme.space[3]
|
|
690
|
+
},
|
|
691
|
+
carousel: {
|
|
692
|
+
gap: theme.space[2]
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
title: "Animated Pagination",
|
|
696
|
+
children: [/*#__PURE__*/_jsx(CarouselItem, {
|
|
697
|
+
id: "slide-1",
|
|
698
|
+
width: "100%",
|
|
699
|
+
children: /*#__PURE__*/_jsx(NudgeCard, {
|
|
700
|
+
action: "Get started",
|
|
701
|
+
description: "Experience smooth transitions as you navigate through content.",
|
|
702
|
+
minWidth: 0,
|
|
703
|
+
onActionPress: () => console.log('Get started pressed'),
|
|
704
|
+
pictogram: "key",
|
|
705
|
+
title: "Smooth Animations",
|
|
706
|
+
width: "100%"
|
|
707
|
+
})
|
|
708
|
+
}), /*#__PURE__*/_jsx(CarouselItem, {
|
|
709
|
+
id: "slide-2",
|
|
710
|
+
width: "100%",
|
|
711
|
+
children: /*#__PURE__*/_jsx(NudgeCard, {
|
|
712
|
+
action: "Learn more",
|
|
713
|
+
description: "Active pages expand to pills while inactive ones remain as circles.",
|
|
714
|
+
minWidth: 0,
|
|
715
|
+
onActionPress: () => console.log('Learn more pressed'),
|
|
716
|
+
pictogram: "shield",
|
|
717
|
+
title: "Dynamic Sizing",
|
|
718
|
+
width: "100%"
|
|
719
|
+
})
|
|
720
|
+
}), /*#__PURE__*/_jsx(CarouselItem, {
|
|
721
|
+
id: "slide-3",
|
|
722
|
+
width: "100%",
|
|
723
|
+
children: /*#__PURE__*/_jsx(NudgeCard, {
|
|
724
|
+
action: "Explore",
|
|
725
|
+
description: "Beautiful visual feedback that enhances user experience.",
|
|
726
|
+
minWidth: 0,
|
|
727
|
+
onActionPress: () => console.log('Explore pressed'),
|
|
728
|
+
pictogram: "accountsNavigation",
|
|
729
|
+
title: "Enhanced UX",
|
|
730
|
+
width: "100%"
|
|
731
|
+
})
|
|
732
|
+
})]
|
|
733
|
+
})
|
|
734
|
+
});
|
|
735
|
+
};
|
|
736
|
+
export default function CarouselScreen() {
|
|
737
|
+
return /*#__PURE__*/_jsxs(ExampleScreen, {
|
|
738
|
+
children: [/*#__PURE__*/_jsx(BasicExamples, {}), /*#__PURE__*/_jsx(CustomComponentsExample, {}), /*#__PURE__*/_jsx(DynamicContentExample, {}), /*#__PURE__*/_jsx(AnimatedExample, {}), /*#__PURE__*/_jsx(ImperativeApiExample, {}), /*#__PURE__*/_jsx(AnimatedPaginationExample, {})]
|
|
739
|
+
});
|
|
740
|
+
}
|