@coinbase/cds-mobile 9.6.1 → 9.6.3
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 +12 -0
- package/dts/accordion/AccordionHeader.d.ts +13 -16
- package/dts/accordion/AccordionHeader.d.ts.map +1 -1
- package/dts/accordion/AccordionPanel.d.ts +9 -10
- package/dts/accordion/AccordionPanel.d.ts.map +1 -1
- package/dts/alpha/carousel/Carousel.d.ts +19 -27
- package/dts/alpha/carousel/Carousel.d.ts.map +1 -1
- package/dts/alpha/combobox/Combobox.d.ts.map +1 -1
- package/dts/alpha/data-card/DataCard.d.ts +15 -15
- package/dts/alpha/data-card/DataCard.d.ts.map +1 -1
- package/dts/alpha/select/DefaultSelectAllOption.d.ts.map +1 -1
- package/dts/alpha/select/DefaultSelectControl.d.ts +43 -47
- package/dts/alpha/select/DefaultSelectControl.d.ts.map +1 -1
- package/dts/alpha/select/DefaultSelectDropdown.d.ts.map +1 -1
- package/dts/alpha/select/DefaultSelectEmptyDropdownContents.d.ts.map +1 -1
- package/dts/alpha/select/DefaultSelectOption.d.ts.map +1 -1
- package/dts/alpha/select/Select.d.ts.map +1 -1
- package/dts/alpha/select-chip/SelectChip.d.ts.map +1 -1
- package/dts/alpha/select-chip/SelectChipControl.d.ts.map +1 -1
- package/dts/alpha/tabbed-chips/TabbedChips.d.ts.map +1 -1
- package/dts/animation/Lottie.d.ts +9 -40
- package/dts/animation/Lottie.d.ts.map +1 -1
- package/dts/banner/Banner.d.ts +3 -1
- package/dts/banner/Banner.d.ts.map +1 -1
- package/dts/buttons/Button.d.ts +3 -1
- package/dts/buttons/Button.d.ts.map +1 -1
- package/dts/buttons/DefaultSlideButtonBackground.d.ts +17 -17
- package/dts/buttons/DefaultSlideButtonBackground.d.ts.map +1 -1
- package/dts/buttons/DefaultSlideButtonHandle.d.ts +21 -27
- package/dts/buttons/DefaultSlideButtonHandle.d.ts.map +1 -1
- package/dts/buttons/IconButton.d.ts +7 -31
- package/dts/buttons/IconButton.d.ts.map +1 -1
- package/dts/buttons/IconCounterButton.d.ts +3 -1
- package/dts/buttons/IconCounterButton.d.ts.map +1 -1
- package/dts/buttons/SlideButton.d.ts +7 -103
- package/dts/buttons/SlideButton.d.ts.map +1 -1
- package/dts/cards/CardGroup.d.ts +3 -1
- package/dts/cards/CardGroup.d.ts.map +1 -1
- package/dts/cards/CardRoot.d.ts +9 -5
- package/dts/cards/CardRoot.d.ts.map +1 -1
- package/dts/cards/ContentCard/ContentCard.d.ts +3 -2
- package/dts/cards/ContentCard/ContentCard.d.ts.map +1 -1
- package/dts/cards/ContentCard/ContentCardBody.d.ts +3 -2
- package/dts/cards/ContentCard/ContentCardBody.d.ts.map +1 -1
- package/dts/cards/ContentCard/ContentCardFooter.d.ts +9 -22
- package/dts/cards/ContentCard/ContentCardFooter.d.ts.map +1 -1
- package/dts/cards/ContentCard/ContentCardHeader.d.ts +3 -2
- package/dts/cards/ContentCard/ContentCardHeader.d.ts.map +1 -1
- package/dts/cards/MediaCard/index.d.ts +15 -15
- package/dts/cards/MediaCard/index.d.ts.map +1 -1
- package/dts/cards/MessagingCard/index.d.ts +21 -8
- package/dts/cards/MessagingCard/index.d.ts.map +1 -1
- package/dts/carousel/Carousel.d.ts +7 -158
- package/dts/carousel/Carousel.d.ts.map +1 -1
- package/dts/chips/Chip.d.ts +3 -1
- package/dts/chips/Chip.d.ts.map +1 -1
- package/dts/chips/InputChip.d.ts +8 -21
- package/dts/chips/InputChip.d.ts.map +1 -1
- package/dts/chips/MediaChip.d.ts +3 -1
- package/dts/chips/MediaChip.d.ts.map +1 -1
- package/dts/chips/SelectChip.d.ts +24 -8
- package/dts/chips/SelectChip.d.ts.map +1 -1
- package/dts/chips/TabbedChips.d.ts.map +1 -1
- package/dts/coachmark/Coachmark.d.ts +7 -54
- package/dts/coachmark/Coachmark.d.ts.map +1 -1
- package/dts/collapsible/Collapsible.d.ts +7 -30
- package/dts/collapsible/Collapsible.d.ts.map +1 -1
- package/dts/controls/Checkbox.d.ts +6 -5
- package/dts/controls/Checkbox.d.ts.map +1 -1
- package/dts/controls/CheckboxCell.d.ts +6 -5
- package/dts/controls/CheckboxCell.d.ts.map +1 -1
- package/dts/controls/CheckboxGroup.d.ts +12 -5
- package/dts/controls/CheckboxGroup.d.ts.map +1 -1
- package/dts/controls/Control.d.ts +6 -5
- package/dts/controls/Control.d.ts.map +1 -1
- package/dts/controls/ControlGroup.d.ts +6 -5
- package/dts/controls/ControlGroup.d.ts.map +1 -1
- package/dts/controls/InputIconButton.d.ts +3 -1
- package/dts/controls/InputIconButton.d.ts.map +1 -1
- package/dts/controls/NativeInput.d.ts +17 -38
- package/dts/controls/NativeInput.d.ts.map +1 -1
- package/dts/controls/Radio.d.ts +6 -5
- package/dts/controls/Radio.d.ts.map +1 -1
- package/dts/controls/RadioCell.d.ts +6 -5
- package/dts/controls/RadioCell.d.ts.map +1 -1
- package/dts/controls/RadioGroup.d.ts +15 -5
- package/dts/controls/RadioGroup.d.ts.map +1 -1
- package/dts/controls/SearchInput.d.ts +7 -113
- package/dts/controls/SearchInput.d.ts.map +1 -1
- package/dts/controls/Select.d.ts +23 -23
- package/dts/controls/Select.d.ts.map +1 -1
- package/dts/controls/Switch.d.ts +7 -22
- package/dts/controls/Switch.d.ts.map +1 -1
- package/dts/controls/TextInput.d.ts +7 -80
- package/dts/controls/TextInput.d.ts.map +1 -1
- package/dts/dates/Calendar.d.ts +7 -63
- package/dts/dates/Calendar.d.ts.map +1 -1
- package/dts/dates/DateInput.d.ts +7 -8
- package/dts/dates/DateInput.d.ts.map +1 -1
- package/dts/dates/DatePicker.d.ts +7 -85
- package/dts/dates/DatePicker.d.ts.map +1 -1
- package/dts/examples/ExampleScreen.d.ts +11 -24
- package/dts/examples/ExampleScreen.d.ts.map +1 -1
- package/dts/layout/Box.d.ts +87 -32
- package/dts/layout/Box.d.ts.map +1 -1
- package/dts/layout/Group.d.ts +3 -1
- package/dts/layout/Group.d.ts.map +1 -1
- package/dts/layout/HStack.d.ts +3 -2
- package/dts/layout/HStack.d.ts.map +1 -1
- package/dts/layout/VStack.d.ts +3 -2
- package/dts/layout/VStack.d.ts.map +1 -1
- package/dts/media/Carousel/Carousel.d.ts +12 -12
- package/dts/media/Carousel/Carousel.d.ts.map +1 -1
- package/dts/motion/ColorSurge.d.ts +3 -1
- package/dts/motion/ColorSurge.d.ts.map +1 -1
- package/dts/motion/Pulse.d.ts +3 -1
- package/dts/motion/Pulse.d.ts.map +1 -1
- package/dts/motion/Shake.d.ts +3 -1
- package/dts/motion/Shake.d.ts.map +1 -1
- package/dts/multi-content-module/MultiContentModule.d.ts +3 -2
- package/dts/multi-content-module/MultiContentModule.d.ts.map +1 -1
- package/dts/numbers/RollingNumber/DefaultRollingNumberAffixSection.d.ts.map +1 -1
- package/dts/numbers/RollingNumber/DefaultRollingNumberDigit.d.ts.map +1 -1
- package/dts/numbers/RollingNumber/DefaultRollingNumberMask.d.ts.map +1 -1
- package/dts/numbers/RollingNumber/DefaultRollingNumberSymbol.d.ts.map +1 -1
- package/dts/numbers/RollingNumber/DefaultRollingNumberValueSection.d.ts.map +1 -1
- package/dts/numbers/RollingNumber/RollingNumber.d.ts +7 -143
- package/dts/numbers/RollingNumber/RollingNumber.d.ts.map +1 -1
- package/dts/numpad/Numpad.d.ts +7 -35
- package/dts/numpad/Numpad.d.ts.map +1 -1
- package/dts/overlays/Alert.d.ts +7 -43
- package/dts/overlays/Alert.d.ts.map +1 -1
- package/dts/overlays/Toast.d.ts +7 -27
- package/dts/overlays/Toast.d.ts.map +1 -1
- package/dts/overlays/drawer/Drawer.d.ts +7 -82
- package/dts/overlays/drawer/Drawer.d.ts.map +1 -1
- package/dts/overlays/drawer/useDrawerPanResponder.d.ts.map +1 -1
- package/dts/overlays/modal/Modal.d.ts +7 -24
- package/dts/overlays/modal/Modal.d.ts.map +1 -1
- package/dts/overlays/tray/Tray.d.ts +3 -1
- package/dts/overlays/tray/Tray.d.ts.map +1 -1
- package/dts/page/PageFooter.d.ts +7 -33
- package/dts/page/PageFooter.d.ts.map +1 -1
- package/dts/page/PageHeader.d.ts +7 -48
- package/dts/page/PageHeader.d.ts.map +1 -1
- package/dts/section-header/SectionHeader.d.ts +3 -2
- package/dts/section-header/SectionHeader.d.ts.map +1 -1
- package/dts/stepper/Stepper.d.ts.map +1 -1
- package/dts/sticky-footer/StickyFooter.d.ts +17 -31
- package/dts/sticky-footer/StickyFooter.d.ts.map +1 -1
- package/dts/system/Pressable.d.ts +3 -2
- package/dts/system/Pressable.d.ts.map +1 -1
- package/dts/tabs/DefaultTab.d.ts +18 -17
- package/dts/tabs/DefaultTab.d.ts.map +1 -1
- package/dts/tabs/SegmentedTab.d.ts.map +1 -1
- package/dts/tabs/SegmentedTabs.d.ts.map +1 -1
- package/dts/tabs/TabIndicator.d.ts +11 -11
- package/dts/tabs/TabIndicator.d.ts.map +1 -1
- package/dts/tabs/TabNavigation.d.ts.map +1 -1
- package/dts/tabs/Tabs.d.ts.map +1 -1
- package/dts/tag/Tag.d.ts +7 -41
- package/dts/tag/Tag.d.ts.map +1 -1
- package/dts/tour/DefaultTourStepArrow.d.ts +9 -2
- package/dts/tour/DefaultTourStepArrow.d.ts.map +1 -1
- package/dts/tour/Tour.d.ts +5 -5
- package/dts/tour/Tour.d.ts.map +1 -1
- package/dts/typography/Text.d.ts +89 -66
- package/dts/typography/Text.d.ts.map +1 -1
- package/dts/typography/TextBody.d.ts +8 -22
- package/dts/typography/TextBody.d.ts.map +1 -1
- package/dts/typography/TextCaption.d.ts +8 -22
- package/dts/typography/TextCaption.d.ts.map +1 -1
- package/dts/typography/TextDisplay1.d.ts +9 -22
- package/dts/typography/TextDisplay1.d.ts.map +1 -1
- package/dts/typography/TextDisplay2.d.ts +9 -22
- package/dts/typography/TextDisplay2.d.ts.map +1 -1
- package/dts/typography/TextDisplay3.d.ts +9 -22
- package/dts/typography/TextDisplay3.d.ts.map +1 -1
- package/dts/typography/TextHeadline.d.ts +8 -22
- package/dts/typography/TextHeadline.d.ts.map +1 -1
- package/dts/typography/TextInherited.d.ts +8 -22
- package/dts/typography/TextInherited.d.ts.map +1 -1
- package/dts/typography/TextLabel1.d.ts +8 -22
- package/dts/typography/TextLabel1.d.ts.map +1 -1
- package/dts/typography/TextLabel2.d.ts +8 -22
- package/dts/typography/TextLabel2.d.ts.map +1 -1
- package/dts/typography/TextLegal.d.ts +8 -22
- package/dts/typography/TextLegal.d.ts.map +1 -1
- package/dts/typography/TextTitle1.d.ts +9 -22
- package/dts/typography/TextTitle1.d.ts.map +1 -1
- package/dts/typography/TextTitle2.d.ts +9 -22
- package/dts/typography/TextTitle2.d.ts.map +1 -1
- package/dts/typography/TextTitle3.d.ts +8 -22
- package/dts/typography/TextTitle3.d.ts.map +1 -1
- package/dts/typography/TextTitle4.d.ts +8 -22
- package/dts/typography/TextTitle4.d.ts.map +1 -1
- package/dts/typography/index.d.ts +1 -1
- package/dts/typography/index.d.ts.map +1 -1
- package/dts/visualizations/ProgressBar.d.ts +7 -37
- package/dts/visualizations/ProgressBar.d.ts.map +1 -1
- package/dts/visualizations/ProgressCircle.d.ts +7 -55
- package/dts/visualizations/ProgressCircle.d.ts.map +1 -1
- package/dts/visualizations/ProgressIndicator.d.ts +3 -2
- package/dts/visualizations/ProgressIndicator.d.ts.map +1 -1
- package/dts/visualizations/chart/CartesianChart.d.ts +32 -94
- package/dts/visualizations/chart/CartesianChart.d.ts.map +1 -1
- package/dts/visualizations/chart/PeriodSelector.d.ts +27 -61
- package/dts/visualizations/chart/PeriodSelector.d.ts.map +1 -1
- package/dts/visualizations/chart/area/AreaChart.d.ts +26 -59
- package/dts/visualizations/chart/area/AreaChart.d.ts.map +1 -1
- package/dts/visualizations/chart/bar/BarChart.d.ts +28 -74
- package/dts/visualizations/chart/bar/BarChart.d.ts.map +1 -1
- package/dts/visualizations/chart/bar/PercentageBarChart.d.ts +16 -44
- package/dts/visualizations/chart/bar/PercentageBarChart.d.ts.map +1 -1
- package/dts/visualizations/chart/legend/Legend.d.ts +19 -48
- package/dts/visualizations/chart/legend/Legend.d.ts.map +1 -1
- package/dts/visualizations/chart/line/LineChart.d.ts +29 -53
- package/dts/visualizations/chart/line/LineChart.d.ts.map +1 -1
- package/dts/visualizations/chart/scrubber/DefaultScrubberBeacon.d.ts +18 -21
- package/dts/visualizations/chart/scrubber/DefaultScrubberBeacon.d.ts.map +1 -1
- package/dts/visualizations/chart/scrubber/Scrubber.d.ts +28 -87
- package/dts/visualizations/chart/scrubber/Scrubber.d.ts.map +1 -1
- package/dts/visualizations/chart/scrubber/ScrubberBeaconGroup.d.ts +11 -17
- package/dts/visualizations/chart/scrubber/ScrubberBeaconGroup.d.ts.map +1 -1
- package/dts/visualizations/sparkline/Sparkline.d.ts +15 -30
- package/dts/visualizations/sparkline/Sparkline.d.ts.map +1 -1
- package/dts/visualizations/sparkline/SparklineArea.d.ts +9 -2
- package/dts/visualizations/sparkline/SparklineArea.d.ts.map +1 -1
- package/dts/visualizations/sparkline/SparklineGradient.d.ts +14 -14
- package/dts/visualizations/sparkline/SparklineGradient.d.ts.map +1 -1
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractiveHoverDate.d.ts +4 -4
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractiveHoverDate.d.ts.map +1 -1
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractivePanGestureHandler.d.ts.map +1 -1
- package/dts/visualizations/sparkline/sparkline-interactive-header/SparklineInteractiveHeader.d.ts +18 -28
- package/dts/visualizations/sparkline/sparkline-interactive-header/SparklineInteractiveHeader.d.ts.map +1 -1
- package/esm/accordion/AccordionHeader.js +4 -3
- package/esm/accordion/AccordionPanel.js +4 -3
- package/esm/alpha/carousel/Carousel.js +5 -4
- package/esm/alpha/combobox/Combobox.js +12 -7
- package/esm/alpha/data-card/DataCard.js +5 -4
- package/esm/alpha/select/DefaultSelectAllOption.js +4 -3
- package/esm/alpha/select/DefaultSelectControl.js +5 -4
- package/esm/alpha/select/DefaultSelectDropdown.js +5 -4
- package/esm/alpha/select/DefaultSelectEmptyDropdownContents.js +4 -3
- package/esm/alpha/select/DefaultSelectOption.js +4 -4
- package/esm/alpha/select/Select.js +60 -53
- package/esm/alpha/select-chip/SelectChip.js +10 -5
- package/esm/alpha/select-chip/SelectChipControl.js +4 -3
- package/esm/alpha/tabbed-chips/TabbedChips.js +10 -5
- package/esm/animation/Lottie.js +9 -7
- package/esm/banner/Banner.js +10 -5
- package/esm/buttons/Button.js +10 -5
- package/esm/buttons/DefaultSlideButtonBackground.js +4 -3
- package/esm/buttons/DefaultSlideButtonHandle.js +5 -4
- package/esm/buttons/IconButton.js +10 -5
- package/esm/buttons/IconCounterButton.js +10 -5
- package/esm/buttons/SlideButton.js +14 -9
- package/esm/cards/CardGroup.js +5 -4
- package/esm/cards/CardRoot.js +5 -4
- package/esm/cards/ContentCard/ContentCard.js +5 -4
- package/esm/cards/ContentCard/ContentCardBody.js +5 -4
- package/esm/cards/ContentCard/ContentCardFooter.js +5 -4
- package/esm/cards/ContentCard/ContentCardHeader.js +5 -4
- package/esm/cards/MediaCard/index.js +5 -4
- package/esm/cards/MessagingCard/index.js +5 -4
- package/esm/carousel/Carousel.js +14 -9
- package/esm/chips/Chip.js +10 -5
- package/esm/chips/InputChip.js +10 -5
- package/esm/chips/MediaChip.js +10 -5
- package/esm/chips/SelectChip.js +5 -4
- package/esm/chips/TabbedChips.js +10 -5
- package/esm/coachmark/Coachmark.js +10 -5
- package/esm/collapsible/Collapsible.js +14 -8
- package/esm/controls/Checkbox.js +11 -7
- package/esm/controls/CheckboxCell.js +10 -5
- package/esm/controls/CheckboxGroup.js +6 -6
- package/esm/controls/Control.js +13 -9
- package/esm/controls/ControlGroup.js +10 -5
- package/esm/controls/InputIconButton.js +5 -4
- package/esm/controls/NativeInput.js +5 -4
- package/esm/controls/Radio.js +11 -7
- package/esm/controls/RadioCell.js +10 -5
- package/esm/controls/RadioGroup.js +6 -6
- package/esm/controls/SearchInput.js +10 -5
- package/esm/controls/Select.js +4 -3
- package/esm/controls/Switch.js +10 -5
- package/esm/controls/TextInput.js +10 -5
- package/esm/dates/Calendar.js +19 -12
- package/esm/dates/DateInput.js +10 -5
- package/esm/dates/DatePicker.js +12 -7
- package/esm/examples/ExampleScreen.js +4 -3
- package/esm/layout/Box.js +5 -4
- package/esm/layout/Group.js +5 -4
- package/esm/layout/HStack.js +5 -4
- package/esm/layout/VStack.js +5 -4
- package/esm/media/Carousel/Carousel.js +5 -4
- package/esm/motion/ColorSurge.js +4 -3
- package/esm/motion/Pulse.js +4 -3
- package/esm/motion/Shake.js +4 -3
- package/esm/multi-content-module/MultiContentModule.js +5 -4
- package/esm/numbers/RollingNumber/DefaultRollingNumberAffixSection.js +5 -4
- package/esm/numbers/RollingNumber/DefaultRollingNumberDigit.js +5 -4
- package/esm/numbers/RollingNumber/DefaultRollingNumberMask.js +5 -4
- package/esm/numbers/RollingNumber/DefaultRollingNumberSymbol.js +5 -4
- package/esm/numbers/RollingNumber/DefaultRollingNumberValueSection.js +5 -4
- package/esm/numbers/RollingNumber/RollingNumber.js +10 -5
- package/esm/numpad/Numpad.js +12 -7
- package/esm/overlays/Alert.js +11 -5
- package/esm/overlays/Toast.js +16 -11
- package/esm/overlays/drawer/Drawer.js +16 -11
- package/esm/overlays/drawer/useDrawerPanResponder.js +7 -0
- package/esm/overlays/modal/Modal.js +12 -7
- package/esm/overlays/tray/Tray.js +18 -13
- package/esm/page/PageFooter.js +10 -5
- package/esm/page/PageHeader.js +10 -5
- package/esm/section-header/SectionHeader.js +5 -4
- package/esm/stepper/Stepper.js +16 -11
- package/esm/sticky-footer/StickyFooter.js +5 -4
- package/esm/system/Pressable.js +5 -4
- package/esm/tabs/DefaultTab.js +5 -4
- package/esm/tabs/SegmentedTab.js +10 -5
- package/esm/tabs/SegmentedTabs.js +10 -5
- package/esm/tabs/TabIndicator.js +5 -4
- package/esm/tabs/TabNavigation.js +5 -4
- package/esm/tabs/Tabs.js +16 -11
- package/esm/tag/Tag.js +10 -5
- package/esm/tour/DefaultTourStepArrow.js +4 -3
- package/esm/tour/Tour.js +5 -1
- package/esm/typography/Text.js +5 -4
- package/esm/typography/TextBody.js +5 -4
- package/esm/typography/TextCaption.js +5 -4
- package/esm/typography/TextDisplay1.js +5 -4
- package/esm/typography/TextDisplay2.js +5 -4
- package/esm/typography/TextDisplay3.js +5 -4
- package/esm/typography/TextHeadline.js +5 -4
- package/esm/typography/TextInherited.js +5 -4
- package/esm/typography/TextLabel1.js +5 -4
- package/esm/typography/TextLabel2.js +5 -4
- package/esm/typography/TextLegal.js +5 -4
- package/esm/typography/TextTitle1.js +5 -4
- package/esm/typography/TextTitle2.js +5 -4
- package/esm/typography/TextTitle3.js +5 -4
- package/esm/typography/TextTitle4.js +5 -4
- package/esm/typography/index.js +1 -1
- package/esm/visualizations/ProgressBar.js +11 -5
- package/esm/visualizations/ProgressCircle.js +11 -5
- package/esm/visualizations/ProgressIndicator.js +5 -4
- package/esm/visualizations/chart/CartesianChart.js +5 -4
- package/esm/visualizations/chart/PeriodSelector.js +22 -13
- package/esm/visualizations/chart/__stories__/ChartAccessibility.stories.js +5 -4
- package/esm/visualizations/chart/__stories__/PeriodSelector.stories.js +9 -7
- package/esm/visualizations/chart/area/AreaChart.js +5 -4
- package/esm/visualizations/chart/bar/BarChart.js +5 -4
- package/esm/visualizations/chart/bar/PercentageBarChart.js +5 -4
- package/esm/visualizations/chart/legend/Legend.js +5 -4
- package/esm/visualizations/chart/line/LineChart.js +5 -4
- package/esm/visualizations/chart/line/__stories__/LineChart.stories.js +5 -4
- package/esm/visualizations/chart/scrubber/DefaultScrubberBeacon.js +4 -3
- package/esm/visualizations/chart/scrubber/Scrubber.js +4 -3
- package/esm/visualizations/chart/scrubber/ScrubberBeaconGroup.js +4 -3
- package/esm/visualizations/sparkline/Sparkline.js +4 -3
- package/esm/visualizations/sparkline/SparklineArea.js +4 -3
- package/esm/visualizations/sparkline/SparklineGradient.js +4 -3
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractiveHoverDate.js +4 -3
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractivePanGestureHandler.js +1 -2
- package/esm/visualizations/sparkline/sparkline-interactive-header/SparklineInteractiveHeader.js +7 -5
- package/package.json +2 -2
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["value", "color", "colorPulseOnUpdate", "positivePulseColor", "negativePulseColor", "font", "fontFamily", "fontSize", "fontWeight", "lineHeight", "tabularNumbers", "testID", "accessibilityLiveRegion", "locale", "format", "style", "prefix", "suffix", "styles", "enableSubscriptNotation", "transition", "digitTransitionVariant", "formattedValue", "accessibilityLabel", "accessibilityLabelPrefix", "accessibilityLabelSuffix", "RollingNumberMaskComponent", "RollingNumberAffixSectionComponent", "RollingNumberValueSectionComponent", "RollingNumberDigitComponent", "RollingNumberSymbolComponent"];
|
|
2
3
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
4
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
|
-
import {
|
|
5
|
+
import { memo, useMemo, useState } from 'react';
|
|
5
6
|
import { StyleSheet } from 'react-native';
|
|
6
7
|
import { Easing } from 'react-native-reanimated';
|
|
7
8
|
import { curves, durations } from '@coinbase/cds-common/motion/tokens';
|
|
@@ -69,7 +70,11 @@ export const defaultTransitionConfig = {
|
|
|
69
70
|
|
|
70
71
|
// Subcomponent prop and component type declarations
|
|
71
72
|
|
|
72
|
-
export const RollingNumber = /*#__PURE__*/memo(
|
|
73
|
+
export const RollingNumber = /*#__PURE__*/memo(_ref => {
|
|
74
|
+
let {
|
|
75
|
+
ref
|
|
76
|
+
} = _ref,
|
|
77
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
73
78
|
const mergedProps = useComponentConfig('RollingNumber', _props);
|
|
74
79
|
const {
|
|
75
80
|
value,
|
|
@@ -105,7 +110,7 @@ export const RollingNumber = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props,
|
|
|
105
110
|
RollingNumberDigitComponent = DefaultRollingNumberDigit,
|
|
106
111
|
RollingNumberSymbolComponent = DefaultRollingNumberSymbol
|
|
107
112
|
} = mergedProps,
|
|
108
|
-
restTextProps = _objectWithoutPropertiesLoose(mergedProps,
|
|
113
|
+
restTextProps = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
109
114
|
const {
|
|
110
115
|
locale: defaultLocale
|
|
111
116
|
} = useLocale();
|
|
@@ -293,4 +298,4 @@ export const RollingNumber = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props,
|
|
|
293
298
|
children: [prefixSection, formattedValue ? formattedValueValueSection : intlPartsValueSection, suffixSection]
|
|
294
299
|
})]
|
|
295
300
|
});
|
|
296
|
-
})
|
|
301
|
+
});
|
package/esm/numpad/Numpad.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["separator", "disabled", "onPress", "onLongPress", "accessory", "action", "deleteAccessibilityLabel", "separatorAccessibilityLabel", "testID", "background", "flexGrow", "flexShrink", "gap", "feedback"];
|
|
2
3
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
4
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
|
-
import React, {
|
|
5
|
+
import React, { memo, useCallback, useMemo } from 'react';
|
|
5
6
|
import { StyleSheet, View } from 'react-native';
|
|
6
7
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
7
8
|
import { useTheme } from '../hooks/useTheme';
|
|
@@ -27,7 +28,11 @@ const styles = StyleSheet.create({
|
|
|
27
28
|
width: '33.3333333%'
|
|
28
29
|
}
|
|
29
30
|
});
|
|
30
|
-
export const Numpad = /*#__PURE__*/memo(
|
|
31
|
+
export const Numpad = /*#__PURE__*/memo(_ref => {
|
|
32
|
+
let {
|
|
33
|
+
ref: forwardedRef
|
|
34
|
+
} = _ref,
|
|
35
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
31
36
|
const mergedProps = useComponentConfig('Numpad', _props);
|
|
32
37
|
const {
|
|
33
38
|
separator = '.',
|
|
@@ -45,7 +50,7 @@ export const Numpad = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, forward
|
|
|
45
50
|
gap = 2,
|
|
46
51
|
feedback
|
|
47
52
|
} = mergedProps,
|
|
48
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
53
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
49
54
|
const buttons = useMemo(() => {
|
|
50
55
|
return buttonValues.map((values, i) => {
|
|
51
56
|
return /*#__PURE__*/_jsx(HStack, {
|
|
@@ -82,8 +87,8 @@ export const Numpad = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, forward
|
|
|
82
87
|
children: buttons
|
|
83
88
|
}), action]
|
|
84
89
|
}));
|
|
85
|
-
})
|
|
86
|
-
const NumpadButton = /*#__PURE__*/memo(function NumpadButton(
|
|
90
|
+
});
|
|
91
|
+
const NumpadButton = /*#__PURE__*/memo(function NumpadButton(_ref2) {
|
|
87
92
|
let {
|
|
88
93
|
value,
|
|
89
94
|
onPress,
|
|
@@ -93,7 +98,7 @@ const NumpadButton = /*#__PURE__*/memo(function NumpadButton(_ref) {
|
|
|
93
98
|
separatorAccessibilityLabel,
|
|
94
99
|
deleteAccessibilityLabel,
|
|
95
100
|
feedback
|
|
96
|
-
} =
|
|
101
|
+
} = _ref2;
|
|
97
102
|
const theme = useTheme();
|
|
98
103
|
const content = useMemo(() => {
|
|
99
104
|
if (value === 'DELETE') {
|
package/esm/overlays/Alert.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
const _excluded = ["ref"];
|
|
2
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
3
|
+
import { memo, useCallback, useEffect, useImperativeHandle, useMemo } from 'react';
|
|
2
4
|
import { Modal as RNModal } from 'react-native';
|
|
3
5
|
import { Button } from '../buttons/Button';
|
|
4
6
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
@@ -8,7 +10,11 @@ import { Text } from '../typography/Text';
|
|
|
8
10
|
import { Overlay } from './overlay/Overlay';
|
|
9
11
|
import { useAlertAnimation } from './useAlertAnimation';
|
|
10
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
-
export const Alert = /*#__PURE__*/memo(
|
|
13
|
+
export const Alert = /*#__PURE__*/memo(_ref => {
|
|
14
|
+
let {
|
|
15
|
+
ref
|
|
16
|
+
} = _ref,
|
|
17
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
12
18
|
const mergedProps = useComponentConfig('Alert', _props);
|
|
13
19
|
const {
|
|
14
20
|
title,
|
|
@@ -35,10 +41,10 @@ export const Alert = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) =>
|
|
|
35
41
|
}
|
|
36
42
|
}, [visible, animateIn]);
|
|
37
43
|
const handleClose = useCallback(() => {
|
|
38
|
-
animateOut.start(
|
|
44
|
+
animateOut.start(_ref2 => {
|
|
39
45
|
let {
|
|
40
46
|
finished
|
|
41
|
-
} =
|
|
47
|
+
} = _ref2;
|
|
42
48
|
if (finished) {
|
|
43
49
|
onRequestClose == null || onRequestClose();
|
|
44
50
|
}
|
|
@@ -146,4 +152,4 @@ export const Alert = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) =>
|
|
|
146
152
|
})]
|
|
147
153
|
})
|
|
148
154
|
});
|
|
149
|
-
})
|
|
155
|
+
});
|
package/esm/overlays/Toast.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["text", "action", "onWillHide", "onDidHide", "bottomOffset", "variant", "accessibilityLabel"];
|
|
2
3
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
4
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
|
-
import React, {
|
|
5
|
+
import React, { memo, useCallback, useEffect, useImperativeHandle } from 'react';
|
|
5
6
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
6
7
|
import { zIndex } from '@coinbase/cds-common/tokens/zIndex';
|
|
7
8
|
import { Button } from '../buttons/Button';
|
|
@@ -14,8 +15,12 @@ import { Text } from '../typography/Text';
|
|
|
14
15
|
import { useToastAnimation } from './useToastAnimation';
|
|
15
16
|
import { useToastPanResponder } from './useToastPanResponder';
|
|
16
17
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
-
export const Toast = /*#__PURE__*/memo(
|
|
18
|
-
var
|
|
18
|
+
export const Toast = /*#__PURE__*/memo(_ref => {
|
|
19
|
+
var _ref4, _action$testID;
|
|
20
|
+
let {
|
|
21
|
+
ref
|
|
22
|
+
} = _ref,
|
|
23
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
19
24
|
const mergedProps = useComponentConfig('Toast', _props);
|
|
20
25
|
const {
|
|
21
26
|
text,
|
|
@@ -26,7 +31,7 @@ export const Toast = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) =>
|
|
|
26
31
|
variant,
|
|
27
32
|
accessibilityLabel
|
|
28
33
|
} = mergedProps,
|
|
29
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
34
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
30
35
|
const {
|
|
31
36
|
bottom: safeAreaBottom
|
|
32
37
|
} = useSafeAreaInsets();
|
|
@@ -39,10 +44,10 @@ export const Toast = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) =>
|
|
|
39
44
|
} = useA11y();
|
|
40
45
|
const defaultA11yLabel = text + (action ? action.label : '');
|
|
41
46
|
useEffect(() => {
|
|
42
|
-
animateIn.start(
|
|
47
|
+
animateIn.start(_ref2 => {
|
|
43
48
|
let {
|
|
44
49
|
finished
|
|
45
|
-
} =
|
|
50
|
+
} = _ref2;
|
|
46
51
|
if (finished) {
|
|
47
52
|
// announce toast copy and action label to screen reader
|
|
48
53
|
announceForA11y(accessibilityLabel != null ? accessibilityLabel : defaultA11yLabel);
|
|
@@ -52,10 +57,10 @@ export const Toast = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) =>
|
|
|
52
57
|
const handleClose = useCallback(async () => {
|
|
53
58
|
onWillHide == null || onWillHide();
|
|
54
59
|
return new Promise(resolve => {
|
|
55
|
-
animateOut.start(
|
|
60
|
+
animateOut.start(_ref3 => {
|
|
56
61
|
let {
|
|
57
62
|
finished
|
|
58
|
-
} =
|
|
63
|
+
} = _ref3;
|
|
59
64
|
if (finished) {
|
|
60
65
|
onDidHide == null || onDidHide();
|
|
61
66
|
resolve(finished);
|
|
@@ -80,7 +85,7 @@ export const Toast = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) =>
|
|
|
80
85
|
return /*#__PURE__*/_jsx(Box, _extends({
|
|
81
86
|
accessibilityRole: "alert",
|
|
82
87
|
alignSelf: "center",
|
|
83
|
-
bottom: (
|
|
88
|
+
bottom: (_ref4 = bottomOffset) != null ? _ref4 : safeAreaBottom,
|
|
84
89
|
maxWidth: "100%",
|
|
85
90
|
padding: 2,
|
|
86
91
|
position: "absolute",
|
|
@@ -128,4 +133,4 @@ export const Toast = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) =>
|
|
|
128
133
|
})]
|
|
129
134
|
}))
|
|
130
135
|
}));
|
|
131
|
-
})
|
|
136
|
+
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["children", "pin", "onCloseComplete", "preventDismissGestures", "preventHardwareBackBehaviorAndroid", "handleBarVariant", "hideHandleBar", "disableCapturePanGestureToDismiss", "onBlur", "verticalDrawerPercentageOfView", "handleBarAccessibilityLabel", "accessibilityLabel", "accessibilityLabelledBy", "reduceMotion", "onOpenComplete", "style", "styles", "accessibilityRole", "animationType", "disableSafeAreaPaddingBottom"];
|
|
2
3
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
4
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
|
-
import React, {
|
|
5
|
+
import React, { memo, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
5
6
|
import { Animated, Keyboard, Modal, Platform, StatusBar, useWindowDimensions } from 'react-native';
|
|
6
7
|
import { drawerAnimationDefaultDuration, MAX_OVER_DRAG } from '@coinbase/cds-common/animation/drawer';
|
|
7
8
|
import { OverlayContentContext } from '@coinbase/cds-common/overlays/OverlayContentContext';
|
|
@@ -20,7 +21,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
20
21
|
const overlayContentContextValue = {
|
|
21
22
|
isDrawer: true
|
|
22
23
|
};
|
|
23
|
-
export const Drawer = /*#__PURE__*/memo(
|
|
24
|
+
export const Drawer = /*#__PURE__*/memo(_ref => {
|
|
25
|
+
let {
|
|
26
|
+
ref
|
|
27
|
+
} = _ref,
|
|
28
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
24
29
|
const mergedProps = useComponentConfig('Drawer', _props);
|
|
25
30
|
const {
|
|
26
31
|
children,
|
|
@@ -44,7 +49,7 @@ export const Drawer = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) =>
|
|
|
44
49
|
animationType = 'none',
|
|
45
50
|
disableSafeAreaPaddingBottom
|
|
46
51
|
} = mergedProps,
|
|
47
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
52
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
48
53
|
const theme = useTheme();
|
|
49
54
|
const {
|
|
50
55
|
width,
|
|
@@ -63,10 +68,10 @@ export const Drawer = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) =>
|
|
|
63
68
|
const paddingStyles = useDrawerSpacing(pin, disableSafeAreaPaddingBottom);
|
|
64
69
|
const isMounted = useRef(false);
|
|
65
70
|
const handleClose = useCallback(() => {
|
|
66
|
-
Animated.parallel([animateDrawerOut, animateOverlayOut]).start(
|
|
71
|
+
Animated.parallel([animateDrawerOut, animateOverlayOut]).start(_ref2 => {
|
|
67
72
|
let {
|
|
68
73
|
finished
|
|
69
|
-
} =
|
|
74
|
+
} = _ref2;
|
|
70
75
|
if (finished) {
|
|
71
76
|
isMounted.current = false;
|
|
72
77
|
onCloseComplete == null || onCloseComplete();
|
|
@@ -76,10 +81,10 @@ export const Drawer = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) =>
|
|
|
76
81
|
const handleRequestClose = useCallback(() => preventHardwareBackBehaviorAndroid && isAndroid ? undefined : handleClose(), [preventHardwareBackBehaviorAndroid, handleClose, isAndroid]);
|
|
77
82
|
const handleSwipeToClose = useCallback(() => {
|
|
78
83
|
if (!preventDismissGestures) {
|
|
79
|
-
Animated.parallel([animateSwipeToClose, animateOverlayOut]).start(
|
|
84
|
+
Animated.parallel([animateSwipeToClose, animateOverlayOut]).start(_ref3 => {
|
|
80
85
|
let {
|
|
81
86
|
finished
|
|
82
|
-
} =
|
|
87
|
+
} = _ref3;
|
|
83
88
|
if (finished) {
|
|
84
89
|
isMounted.current = false;
|
|
85
90
|
onCloseComplete == null || onCloseComplete();
|
|
@@ -89,10 +94,10 @@ export const Drawer = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) =>
|
|
|
89
94
|
}, [preventDismissGestures, animateSwipeToClose, animateOverlayOut, onCloseComplete]);
|
|
90
95
|
useEffect(() => {
|
|
91
96
|
if (!isMounted.current) {
|
|
92
|
-
Animated.parallel([animateOverlayIn, animateDrawerIn]).start(
|
|
97
|
+
Animated.parallel([animateOverlayIn, animateDrawerIn]).start(_ref4 => {
|
|
93
98
|
let {
|
|
94
99
|
finished
|
|
95
|
-
} =
|
|
100
|
+
} = _ref4;
|
|
96
101
|
if (finished) {
|
|
97
102
|
isMounted.current = true;
|
|
98
103
|
onOpenComplete == null || onOpenComplete();
|
|
@@ -212,4 +217,4 @@ export const Drawer = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) =>
|
|
|
212
217
|
}))]
|
|
213
218
|
})
|
|
214
219
|
}));
|
|
215
|
-
})
|
|
220
|
+
});
|
|
@@ -183,6 +183,13 @@ export const useDrawerPanResponder = _ref => {
|
|
|
183
183
|
} else {
|
|
184
184
|
animateSnapBack.start();
|
|
185
185
|
}
|
|
186
|
+
},
|
|
187
|
+
// On termination (e.g. a child gesture takes over the touch), reconcile
|
|
188
|
+
// the offsets applied on grant so the next close isn't mispositioned.
|
|
189
|
+
onPanResponderTerminate: () => {
|
|
190
|
+
drawerAnimation.flattenOffset();
|
|
191
|
+
opacityAnimation.flattenOffset();
|
|
192
|
+
animateSnapBack.start();
|
|
186
193
|
}
|
|
187
194
|
});
|
|
188
195
|
}, [drawerAnimation, animateSnapBack, initializeDragAnimation, parseGestureState, shouldCaptureGestures, shouldDismiss, drawerWidth, drawerHeight, pin, isHorizontalDrawer, onBlur, handleSwipeToClose, opacityAnimation]);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["children", "visible", "onRequestClose", "onDidClose", "hideDividers", "hideCloseButton", "styles", "background", "color", "borderColor", "borderWidth", "borderRadius", "borderTopLeftRadius", "borderTopRightRadius", "borderBottomLeftRadius", "borderBottomRightRadius", "borderTopWidth", "borderBottomWidth", "borderStartWidth", "borderEndWidth", "bordered", "borderedTop", "borderedBottom", "borderedStart", "borderedEnd", "borderedHorizontal", "borderedVertical", "elevation", "padding", "paddingX", "paddingY", "paddingTop", "paddingBottom", "paddingStart", "paddingEnd", "minWidth", "minHeight", "maxWidth", "maxHeight"];
|
|
2
3
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
4
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
|
-
import React, {
|
|
5
|
+
import React, { memo, useCallback, useEffect, useImperativeHandle, useMemo, useState } from 'react';
|
|
5
6
|
import { Modal as RNModal, Platform, StatusBar, StyleSheet } from 'react-native';
|
|
6
7
|
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
7
8
|
import { usePreviousValue } from '@coinbase/cds-common/hooks/usePreviousValue';
|
|
@@ -19,7 +20,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
19
20
|
const overlayContentContextValue = {
|
|
20
21
|
isModal: true
|
|
21
22
|
};
|
|
22
|
-
export const Modal = /*#__PURE__*/memo(
|
|
23
|
+
export const Modal = /*#__PURE__*/memo(_ref => {
|
|
24
|
+
let {
|
|
25
|
+
ref
|
|
26
|
+
} = _ref,
|
|
27
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
23
28
|
const mergedProps = useComponentConfig('Modal', _props);
|
|
24
29
|
const props = mergedProps;
|
|
25
30
|
const {
|
|
@@ -64,7 +69,7 @@ export const Modal = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) =>
|
|
|
64
69
|
maxWidth,
|
|
65
70
|
maxHeight
|
|
66
71
|
} = props,
|
|
67
|
-
restProps = _objectWithoutPropertiesLoose(props,
|
|
72
|
+
restProps = _objectWithoutPropertiesLoose(props, _excluded2);
|
|
68
73
|
const [{
|
|
69
74
|
opacity,
|
|
70
75
|
scale
|
|
@@ -72,10 +77,10 @@ export const Modal = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) =>
|
|
|
72
77
|
const [internalVisible, setInternalVisible] = useState(visible);
|
|
73
78
|
const prevVisible = usePreviousValue(visible);
|
|
74
79
|
const handleClose = useCallback(() => {
|
|
75
|
-
animateOut.start(
|
|
80
|
+
animateOut.start(_ref2 => {
|
|
76
81
|
let {
|
|
77
82
|
finished
|
|
78
|
-
} =
|
|
83
|
+
} = _ref2;
|
|
79
84
|
if (finished) {
|
|
80
85
|
setInternalVisible(false);
|
|
81
86
|
onDidClose == null || onDidClose();
|
|
@@ -164,7 +169,7 @@ export const Modal = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) =>
|
|
|
164
169
|
})
|
|
165
170
|
}))
|
|
166
171
|
});
|
|
167
|
-
})
|
|
172
|
+
});
|
|
168
173
|
const styles = StyleSheet.create({
|
|
169
174
|
safeAreaContainer: {
|
|
170
175
|
flex: 1,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
const _excluded = ["
|
|
2
|
-
_excluded2 = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["children", "title", "header", "headerElevation", "footer", "onVisibilityChange", "handleBarVariant", "verticalDrawerPercentageOfView", "styles"],
|
|
3
|
+
_excluded3 = ["content", "header", "title"];
|
|
3
4
|
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); }
|
|
4
5
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
|
-
import React, { createContext,
|
|
6
|
+
import React, { createContext, memo, useCallback, useContext, useEffect, useMemo, useState } from 'react';
|
|
6
7
|
import { useWindowDimensions } from 'react-native';
|
|
7
8
|
import { MAX_OVER_DRAG } from '@coinbase/cds-common/animation/drawer';
|
|
8
9
|
import { verticalDrawerPercentageOfView as defaultVerticalDrawerPercentageOfView } from '@coinbase/cds-common/tokens/drawer';
|
|
@@ -16,7 +17,11 @@ export const TrayContext = /*#__PURE__*/createContext({
|
|
|
16
17
|
verticalDrawerPercentageOfView: defaultVerticalDrawerPercentageOfView,
|
|
17
18
|
titleHeight: 0
|
|
18
19
|
});
|
|
19
|
-
export const Tray = /*#__PURE__*/memo(
|
|
20
|
+
export const Tray = /*#__PURE__*/memo(function Tray(_ref) {
|
|
21
|
+
let {
|
|
22
|
+
ref
|
|
23
|
+
} = _ref,
|
|
24
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
20
25
|
const mergedProps = useComponentConfig('Tray', _props);
|
|
21
26
|
const {
|
|
22
27
|
children,
|
|
@@ -29,7 +34,7 @@ export const Tray = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Tray(_pro
|
|
|
29
34
|
verticalDrawerPercentageOfView = defaultVerticalDrawerPercentageOfView,
|
|
30
35
|
styles
|
|
31
36
|
} = mergedProps,
|
|
32
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
37
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
33
38
|
const [titleHeight, setTitleHeight] = useState(0);
|
|
34
39
|
const isInsideHandleBar = handleBarVariant === 'inside';
|
|
35
40
|
const isTitleString = typeof title === 'string';
|
|
@@ -39,13 +44,13 @@ export const Tray = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Tray(_pro
|
|
|
39
44
|
titleStyle,
|
|
40
45
|
drawerStyles
|
|
41
46
|
} = useMemo(() => {
|
|
42
|
-
const
|
|
47
|
+
const _ref2 = styles != null ? styles : {},
|
|
43
48
|
{
|
|
44
49
|
content: contentStyle,
|
|
45
50
|
header: headerStyle,
|
|
46
51
|
title: titleStyle
|
|
47
|
-
} =
|
|
48
|
-
drawerStyles = _objectWithoutPropertiesLoose(
|
|
52
|
+
} = _ref2,
|
|
53
|
+
drawerStyles = _objectWithoutPropertiesLoose(_ref2, _excluded3);
|
|
49
54
|
return {
|
|
50
55
|
contentStyle,
|
|
51
56
|
headerStyle,
|
|
@@ -57,10 +62,10 @@ export const Tray = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Tray(_pro
|
|
|
57
62
|
if (!title) return;
|
|
58
63
|
setTitleHeight(event.nativeEvent.layout.height);
|
|
59
64
|
}, [title]);
|
|
60
|
-
const renderChildren = useCallback(
|
|
65
|
+
const renderChildren = useCallback(_ref3 => {
|
|
61
66
|
let {
|
|
62
67
|
handleClose
|
|
63
|
-
} =
|
|
68
|
+
} = _ref3;
|
|
64
69
|
const content = typeof children === 'function' ? children({
|
|
65
70
|
handleClose
|
|
66
71
|
}) : children;
|
|
@@ -122,16 +127,16 @@ export const Tray = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Tray(_pro
|
|
|
122
127
|
children: renderChildren
|
|
123
128
|
}))
|
|
124
129
|
});
|
|
125
|
-
})
|
|
130
|
+
});
|
|
126
131
|
|
|
127
132
|
/**
|
|
128
133
|
* @deprecated Redundant component. This will be removed in a future major release.
|
|
129
134
|
* @deprecationExpectedRemoval v9
|
|
130
135
|
*/
|
|
131
|
-
export const TrayStickyFooter =
|
|
136
|
+
export const TrayStickyFooter = _ref4 => {
|
|
132
137
|
let {
|
|
133
138
|
children
|
|
134
|
-
} =
|
|
139
|
+
} = _ref4;
|
|
135
140
|
const {
|
|
136
141
|
verticalDrawerPercentageOfView,
|
|
137
142
|
titleHeight
|
package/esm/page/PageFooter.js
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["action", "legalText"];
|
|
2
3
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
4
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
|
-
import React, {
|
|
5
|
+
import React, { memo } from 'react';
|
|
5
6
|
import { pageFooterHeight } from '@coinbase/cds-common/tokens/page';
|
|
6
7
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
7
8
|
import { Box } from '../layout/Box';
|
|
8
9
|
import { VStack } from '../layout/VStack';
|
|
9
10
|
import { Text } from '../typography/Text';
|
|
10
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
-
export const PageFooter = /*#__PURE__*/memo(
|
|
12
|
+
export const PageFooter = /*#__PURE__*/memo(_ref => {
|
|
13
|
+
let {
|
|
14
|
+
ref
|
|
15
|
+
} = _ref,
|
|
16
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
12
17
|
const mergedProps = useComponentConfig('PageFooter', _props);
|
|
13
18
|
const {
|
|
14
19
|
action,
|
|
15
20
|
legalText
|
|
16
21
|
} = mergedProps,
|
|
17
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
22
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
18
23
|
return /*#__PURE__*/_jsx(Box, _extends({
|
|
19
24
|
ref: ref,
|
|
20
25
|
accessibilityRole: "toolbar",
|
|
@@ -33,4 +38,4 @@ export const PageFooter = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref
|
|
|
33
38
|
})]
|
|
34
39
|
}) : action
|
|
35
40
|
}));
|
|
36
|
-
})
|
|
41
|
+
});
|
package/esm/page/PageHeader.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["start", "title", "end", "styles", "style"];
|
|
2
3
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
4
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
|
-
import React, {
|
|
5
|
+
import React, { memo, useMemo } from 'react';
|
|
5
6
|
import { pageHeaderHeight } from '@coinbase/cds-common/tokens/page';
|
|
6
7
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
7
8
|
import { Box } from '../layout/Box';
|
|
@@ -9,7 +10,11 @@ import { HStack } from '../layout/HStack';
|
|
|
9
10
|
import { VStack } from '../layout/VStack';
|
|
10
11
|
import { Text } from '../typography/Text';
|
|
11
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
-
export const PageHeader = /*#__PURE__*/memo(
|
|
13
|
+
export const PageHeader = /*#__PURE__*/memo(_ref => {
|
|
14
|
+
let {
|
|
15
|
+
ref
|
|
16
|
+
} = _ref,
|
|
17
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
13
18
|
const mergedProps = useComponentConfig('PageHeader', _props);
|
|
14
19
|
const {
|
|
15
20
|
start,
|
|
@@ -18,7 +23,7 @@ export const PageHeader = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref
|
|
|
18
23
|
styles,
|
|
19
24
|
style
|
|
20
25
|
} = mergedProps,
|
|
21
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
26
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
22
27
|
const isMultiRow = useMemo(() => Boolean(start && title && end), [start, end, title]);
|
|
23
28
|
return /*#__PURE__*/_jsxs(VStack, _extends({
|
|
24
29
|
ref: ref,
|
|
@@ -57,4 +62,4 @@ export const PageHeader = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref
|
|
|
57
62
|
}) : title
|
|
58
63
|
})]
|
|
59
64
|
}));
|
|
60
|
-
})
|
|
65
|
+
});
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
const _excluded = ["title", "start", "icon", "iconActive", "testID", "balance", "description", "end", "accessibilityLabel", "padding"];
|
|
1
|
+
const _excluded = ["ref", "title", "start", "icon", "iconActive", "testID", "balance", "description", "end", "accessibilityLabel", "padding"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
|
-
import React, {
|
|
4
|
+
import React, { memo } from 'react';
|
|
5
5
|
import { Icon } from '../icons/Icon';
|
|
6
6
|
import { HStack } from '../layout/HStack';
|
|
7
7
|
import { VStack } from '../layout/VStack';
|
|
8
8
|
import { Text } from '../typography/Text';
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
export const SectionHeader = /*#__PURE__*/memo(
|
|
10
|
+
export const SectionHeader = /*#__PURE__*/memo(function SectionHeader(_ref) {
|
|
11
11
|
let {
|
|
12
|
+
ref,
|
|
12
13
|
title,
|
|
13
14
|
start,
|
|
14
15
|
icon,
|
|
@@ -58,4 +59,4 @@ export const SectionHeader = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function
|
|
|
58
59
|
children: end
|
|
59
60
|
})]
|
|
60
61
|
}));
|
|
61
|
-
})
|
|
62
|
+
});
|
package/esm/stepper/Stepper.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
const _excluded = ["
|
|
2
|
-
_excluded2 = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["direction", "activeStepId", "steps", "complete", "style", "completedStepAccessibilityLabel", "styles", "gap", "accessibilityLabel", "StepperStepComponent", "StepperSubstepContainerComponent", "StepperLabelComponent", "StepperProgressComponent", "StepperIconComponent", "StepperHeaderComponent", "progressTimingConfig", "animate", "disableAnimateOnMount"],
|
|
3
|
+
_excluded3 = ["root"];
|
|
3
4
|
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); }
|
|
4
5
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
|
-
import React, {
|
|
6
|
+
import React, { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
6
7
|
import { durations } from '@coinbase/cds-common/motion/tokens';
|
|
7
8
|
import { containsStep, flattenSteps, isStepVisited } from '@coinbase/cds-common/stepper/utils';
|
|
8
9
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
@@ -44,7 +45,11 @@ export const defaultProgressSpringConfig = {
|
|
|
44
45
|
tension: 100,
|
|
45
46
|
clamp: true
|
|
46
47
|
};
|
|
47
|
-
const StepperBase = /*#__PURE__*/memo(
|
|
48
|
+
const StepperBase = /*#__PURE__*/memo(_ref => {
|
|
49
|
+
let {
|
|
50
|
+
ref
|
|
51
|
+
} = _ref,
|
|
52
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
48
53
|
const mergedProps = useComponentConfig('Stepper', _props);
|
|
49
54
|
const {
|
|
50
55
|
direction,
|
|
@@ -67,7 +72,7 @@ const StepperBase = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) => {
|
|
|
67
72
|
animate = true,
|
|
68
73
|
disableAnimateOnMount
|
|
69
74
|
} = mergedProps,
|
|
70
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
75
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
71
76
|
const flatStepIds = useMemo(() => flattenSteps(steps).map(step => step.id), [steps]);
|
|
72
77
|
|
|
73
78
|
// Derive activeStep from activeStepId
|
|
@@ -81,11 +86,11 @@ const StepperBase = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) => {
|
|
|
81
86
|
rootStyle,
|
|
82
87
|
stepStyles
|
|
83
88
|
} = useMemo(() => {
|
|
84
|
-
const
|
|
89
|
+
const _ref2 = styles != null ? styles : {},
|
|
85
90
|
{
|
|
86
91
|
root
|
|
87
|
-
} =
|
|
88
|
-
stepStyles = _objectWithoutPropertiesLoose(
|
|
92
|
+
} = _ref2,
|
|
93
|
+
stepStyles = _objectWithoutPropertiesLoose(_ref2, _excluded3);
|
|
89
94
|
const rootStyle = [style, root];
|
|
90
95
|
return {
|
|
91
96
|
rootStyle,
|
|
@@ -93,12 +98,12 @@ const StepperBase = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) => {
|
|
|
93
98
|
};
|
|
94
99
|
}, [styles, style]);
|
|
95
100
|
const accessibilityLabel = useMemo(() => {
|
|
96
|
-
var
|
|
101
|
+
var _ref3, _activeStep$accessibi;
|
|
97
102
|
if (accessibilityLabelProp) return accessibilityLabelProp;
|
|
98
103
|
if (!activeStep) return 'No active step';
|
|
99
104
|
const pagination = activeFlatStepIndex + 1 + " of " + flatStepIds.length;
|
|
100
105
|
const stepLabel = typeof activeStep.label === 'string' ? activeStep.label : null;
|
|
101
|
-
const baseLabel = (
|
|
106
|
+
const baseLabel = (_ref3 = (_activeStep$accessibi = activeStep.accessibilityLabel) != null ? _activeStep$accessibi : stepLabel) != null ? _ref3 : "Step " + (activeFlatStepIndex + 1);
|
|
102
107
|
return baseLabel + " " + pagination;
|
|
103
108
|
}, [activeStep, activeFlatStepIndex, flatStepIds.length, accessibilityLabelProp]);
|
|
104
109
|
|
|
@@ -211,5 +216,5 @@ const StepperBase = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) => {
|
|
|
211
216
|
})
|
|
212
217
|
})]
|
|
213
218
|
}));
|
|
214
|
-
})
|
|
219
|
+
});
|
|
215
220
|
export const Stepper = StepperBase;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
const _excluded = ["elevated", "elevation", "children", "testID", "role", "accessibilityLabel", "compact", "paddingX", "paddingTop", "flexShrink"];
|
|
1
|
+
const _excluded = ["ref", "elevated", "elevation", "children", "testID", "role", "accessibilityLabel", "compact", "paddingX", "paddingTop", "flexShrink"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
|
-
import React, {
|
|
4
|
+
import React, { memo } from 'react';
|
|
5
5
|
import { View } from 'react-native';
|
|
6
6
|
import { Box } from '../layout/Box';
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
export const StickyFooter = /*#__PURE__*/memo(
|
|
8
|
+
export const StickyFooter = /*#__PURE__*/memo(_ref => {
|
|
9
9
|
let {
|
|
10
|
+
ref: forwardedRef,
|
|
10
11
|
elevated,
|
|
11
12
|
elevation = elevated ? 1 : 0,
|
|
12
13
|
children,
|
|
@@ -33,4 +34,4 @@ export const StickyFooter = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, for
|
|
|
33
34
|
children: children
|
|
34
35
|
})
|
|
35
36
|
}));
|
|
36
|
-
})
|
|
37
|
+
});
|