@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 = ["label", "labelFont", "labelColor", "helperText", "variant", "testID", "testIDMap", "start", "end", "width", "disabled", "align", "font", "compact", "suffix", "accessibilityLabel", "borderRadius", "enableColorSurge", "helperTextErrorIconAccessibilityLabel", "bordered", "focusedBorderWidth", "labelVariant", "labelNode", "inputBackground"];
|
|
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, { cloneElement,
|
|
5
|
+
import React, { cloneElement, isValidElement, memo, useCallback, useMemo, useRef, useState } from 'react';
|
|
5
6
|
import { Pressable } from 'react-native';
|
|
6
7
|
import { useInputVariant } from '@coinbase/cds-common/hooks/useInputVariant';
|
|
7
8
|
import { useMergeRefs } from '@coinbase/cds-common/hooks/useMergeRefs';
|
|
@@ -26,8 +27,12 @@ const variantColorMap = {
|
|
|
26
27
|
foregroundMuted: 'fgMuted',
|
|
27
28
|
secondary: 'bgSecondary'
|
|
28
29
|
};
|
|
29
|
-
export const TextInput = /*#__PURE__*/memo(
|
|
30
|
+
export const TextInput = /*#__PURE__*/memo(_ref => {
|
|
30
31
|
var _testIDMap$end, _testIDMap$helperText, _testIDMap$label, _testIDMap$label2;
|
|
32
|
+
let {
|
|
33
|
+
ref
|
|
34
|
+
} = _ref,
|
|
35
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
31
36
|
const mergedProps = useComponentConfig('TextInput', _props);
|
|
32
37
|
const {
|
|
33
38
|
label,
|
|
@@ -55,7 +60,7 @@ export const TextInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref)
|
|
|
55
60
|
labelNode,
|
|
56
61
|
inputBackground
|
|
57
62
|
} = mergedProps,
|
|
58
|
-
editableInputProps = _objectWithoutPropertiesLoose(mergedProps,
|
|
63
|
+
editableInputProps = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
59
64
|
const theme = useTheme();
|
|
60
65
|
const [focused, setFocused] = useState(false);
|
|
61
66
|
const focusedVariant = useInputVariant(focused, variant);
|
|
@@ -224,4 +229,4 @@ export const TextInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref)
|
|
|
224
229
|
variant: variant,
|
|
225
230
|
width: width
|
|
226
231
|
});
|
|
227
|
-
})
|
|
232
|
+
});
|
package/esm/dates/Calendar.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
const _excluded = ["background", "borderRadius", "children"],
|
|
2
|
-
_excluded2 = ["
|
|
1
|
+
const _excluded = ["ref", "background", "borderRadius", "children"],
|
|
2
|
+
_excluded2 = ["ref"],
|
|
3
|
+
_excluded3 = ["selectedDate", "seedDate", "onPressDate", "disabled", "hideControls", "disabledDates", "highlightedDates", "minDate", "maxDate", "disabledDateError", "nextArrowAccessibilityLabel", "previousArrowAccessibilityLabel", "todayAccessibilityHint", "highlightedDateAccessibilityHint", "style", "styles"];
|
|
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 {
|
|
6
|
+
import { memo, useCallback, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
6
7
|
import { StyleSheet } from 'react-native';
|
|
7
8
|
import { generateCalendarMonth } from '@coinbase/cds-common/dates/generateCalendarMonth';
|
|
8
9
|
import { getMidnightDate } from '@coinbase/cds-common/dates/getMidnightDate';
|
|
@@ -32,8 +33,9 @@ const styles = StyleSheet.create({
|
|
|
32
33
|
height: '100%'
|
|
33
34
|
}
|
|
34
35
|
});
|
|
35
|
-
const CalendarPressable = /*#__PURE__*/memo(
|
|
36
|
+
const CalendarPressable = /*#__PURE__*/memo(_ref => {
|
|
36
37
|
let {
|
|
38
|
+
ref,
|
|
37
39
|
background = 'transparent',
|
|
38
40
|
borderRadius = 1000,
|
|
39
41
|
children
|
|
@@ -49,7 +51,7 @@ const CalendarPressable = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref)
|
|
|
49
51
|
}, props, {
|
|
50
52
|
children: children
|
|
51
53
|
}));
|
|
52
|
-
})
|
|
54
|
+
});
|
|
53
55
|
CalendarPressable.displayName = 'CalendarPressable';
|
|
54
56
|
const getDayAccessibilityLabel = function (date, locale) {
|
|
55
57
|
if (locale === void 0) {
|
|
@@ -63,8 +65,9 @@ const getDayAccessibilityLabel = function (date, locale) {
|
|
|
63
65
|
year: 'numeric'
|
|
64
66
|
});
|
|
65
67
|
};
|
|
66
|
-
const CalendarDay = /*#__PURE__*/memo(
|
|
68
|
+
const CalendarDay = /*#__PURE__*/memo(_ref2 => {
|
|
67
69
|
let {
|
|
70
|
+
ref,
|
|
68
71
|
date,
|
|
69
72
|
active,
|
|
70
73
|
disabled,
|
|
@@ -139,9 +142,13 @@ const CalendarDay = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
139
142
|
});
|
|
140
143
|
}
|
|
141
144
|
return dayButton;
|
|
142
|
-
})
|
|
145
|
+
});
|
|
143
146
|
CalendarDay.displayName = 'CalendarDay';
|
|
144
|
-
export const Calendar = /*#__PURE__*/memo(
|
|
147
|
+
export const Calendar = /*#__PURE__*/memo(_ref3 => {
|
|
148
|
+
let {
|
|
149
|
+
ref
|
|
150
|
+
} = _ref3,
|
|
151
|
+
_props = _objectWithoutPropertiesLoose(_ref3, _excluded2);
|
|
145
152
|
const mergedProps = useComponentConfig('Calendar', _props);
|
|
146
153
|
const {
|
|
147
154
|
selectedDate,
|
|
@@ -161,7 +168,7 @@ export const Calendar = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref)
|
|
|
161
168
|
style,
|
|
162
169
|
styles
|
|
163
170
|
} = mergedProps,
|
|
164
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
171
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded3);
|
|
165
172
|
const {
|
|
166
173
|
setA11yFocus,
|
|
167
174
|
announceForA11y
|
|
@@ -318,8 +325,8 @@ export const Calendar = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref)
|
|
|
318
325
|
children: day.charAt(0)
|
|
319
326
|
})
|
|
320
327
|
}, day))
|
|
321
|
-
}), calendarWeeks.map(
|
|
322
|
-
let [weekId, week] =
|
|
328
|
+
}), calendarWeeks.map(_ref4 => {
|
|
329
|
+
let [weekId, week] = _ref4;
|
|
323
330
|
return /*#__PURE__*/_jsx(HStack, {
|
|
324
331
|
gap: 1,
|
|
325
332
|
justifyContent: "space-between",
|
|
@@ -344,5 +351,5 @@ export const Calendar = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref)
|
|
|
344
351
|
})]
|
|
345
352
|
})]
|
|
346
353
|
}));
|
|
347
|
-
})
|
|
354
|
+
});
|
|
348
355
|
Calendar.displayName = 'Calendar';
|
package/esm/dates/DateInput.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["date", "onChangeDate", "error", "onErrorDate", "required", "separator", "disabledDates", "minDate", "maxDate", "requiredError", "invalidDateError", "disabledDateError", "start", "end", "placeholder", "helperText", "variant", "onBlur", "onChange", "onEndEditing", "testIDMap", "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, useCallback, useMemo, useRef } from 'react';
|
|
5
6
|
import { IntlDateFormat } from '@coinbase/cds-common/dates/IntlDateFormat';
|
|
6
7
|
import { useDateInput } from '@coinbase/cds-common/dates/useDateInput';
|
|
7
8
|
import { useLocale } from '@coinbase/cds-common/system/LocaleProvider';
|
|
@@ -9,7 +10,11 @@ import { TextInput } from '../controls/TextInput';
|
|
|
9
10
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
10
11
|
import { VStack } from '../layout/VStack';
|
|
11
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
export const DateInput = /*#__PURE__*/memo(
|
|
13
|
+
export const DateInput = /*#__PURE__*/memo(_ref => {
|
|
14
|
+
let {
|
|
15
|
+
ref
|
|
16
|
+
} = _ref,
|
|
17
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
13
18
|
const mergedProps = useComponentConfig('DateInput', _props);
|
|
14
19
|
const {
|
|
15
20
|
date,
|
|
@@ -35,7 +40,7 @@ export const DateInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref)
|
|
|
35
40
|
testIDMap,
|
|
36
41
|
style
|
|
37
42
|
} = mergedProps,
|
|
38
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
43
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
39
44
|
const hasTyped = useRef(Boolean(date));
|
|
40
45
|
const {
|
|
41
46
|
locale
|
|
@@ -107,4 +112,4 @@ export const DateInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref)
|
|
|
107
112
|
variant: variant || (error ? 'negative' : undefined)
|
|
108
113
|
}, props))
|
|
109
114
|
});
|
|
110
|
-
})
|
|
115
|
+
});
|
package/esm/dates/DatePicker.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["date", "styles", "highlightedDates", "highlightedDateAccessibilityHint", "nextArrowAccessibilityLabel", "previousArrowAccessibilityLabel", "disabledDates", "onChangeDate", "error", "onErrorDate", "required", "disabled", "seedDate", "minDate", "maxDate", "requiredError", "invalidDateError", "disabledDateError", "label", "accessibilityHint", "accessibilityLabel", "accessibilityLabelledBy", "calendarIconButtonAccessibilityLabel", "openCalendarAccessibilityLabel", "closeCalendarAccessibilityLabel", "dateInputStyle", "compact", "variant", "confirmText", "confirmButtonAccessibilityHint", "helperText", "width", "onOpen", "onClose", "onConfirm", "onCancel", "onChange"];
|
|
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, useCallback, useMemo, useRef, useState } from 'react';
|
|
5
6
|
import { Button } from '../buttons/Button';
|
|
6
7
|
import { InputIconButton } from '../controls/InputIconButton';
|
|
7
8
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
@@ -12,7 +13,11 @@ import { StickyFooter } from '../sticky-footer/StickyFooter';
|
|
|
12
13
|
import { Calendar } from './Calendar';
|
|
13
14
|
import { DateInput } from './DateInput';
|
|
14
15
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
-
export const DatePicker = /*#__PURE__*/memo(
|
|
16
|
+
export const DatePicker = /*#__PURE__*/memo(_ref => {
|
|
17
|
+
let {
|
|
18
|
+
ref
|
|
19
|
+
} = _ref,
|
|
20
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
16
21
|
const mergedProps = useComponentConfig('DatePicker', _props);
|
|
17
22
|
const {
|
|
18
23
|
date,
|
|
@@ -53,7 +58,7 @@ export const DatePicker = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref
|
|
|
53
58
|
onCancel,
|
|
54
59
|
onChange
|
|
55
60
|
} = mergedProps,
|
|
56
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
61
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
57
62
|
const [showPicker, setShowPicker] = useState(false);
|
|
58
63
|
const [calendarSelectedDate, setCalendarSelectedDate] = useState(null);
|
|
59
64
|
const dateInputRef = useRef(null);
|
|
@@ -142,10 +147,10 @@ export const DatePicker = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref
|
|
|
142
147
|
variant: variant
|
|
143
148
|
}, props)), showPicker && /*#__PURE__*/_jsx(Tray, {
|
|
144
149
|
accessibilityRole: "none",
|
|
145
|
-
footer:
|
|
150
|
+
footer: _ref2 => {
|
|
146
151
|
let {
|
|
147
152
|
handleClose
|
|
148
|
-
} =
|
|
153
|
+
} = _ref2;
|
|
149
154
|
return /*#__PURE__*/_jsx(StickyFooter, {
|
|
150
155
|
role: "none",
|
|
151
156
|
children: /*#__PURE__*/_jsx(Button, {
|
|
@@ -194,5 +199,5 @@ export const DatePicker = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref
|
|
|
194
199
|
})
|
|
195
200
|
})]
|
|
196
201
|
});
|
|
197
|
-
})
|
|
202
|
+
});
|
|
198
203
|
DatePicker.displayName = 'DatePicker';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const _excluded = ["children", "inline", "title", "titlePadding", "hideDivider"],
|
|
2
|
-
_excluded2 = ["children"];
|
|
2
|
+
_excluded2 = ["ref", "children"];
|
|
3
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); }
|
|
4
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; }
|
|
5
5
|
import React, { createContext, useCallback, useContext, useMemo, useRef } from 'react';
|
|
@@ -50,8 +50,9 @@ export const Example = _ref => {
|
|
|
50
50
|
})]
|
|
51
51
|
}));
|
|
52
52
|
};
|
|
53
|
-
export const ExampleScreen =
|
|
53
|
+
export const ExampleScreen = _ref2 => {
|
|
54
54
|
let {
|
|
55
|
+
ref,
|
|
55
56
|
children
|
|
56
57
|
} = _ref2,
|
|
57
58
|
boxProps = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
@@ -93,5 +94,5 @@ export const ExampleScreen = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
93
94
|
})
|
|
94
95
|
}))
|
|
95
96
|
});
|
|
96
|
-
}
|
|
97
|
+
};
|
|
97
98
|
ExampleScreen.displayName = 'ExampleScreen';
|
package/esm/layout/Box.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const _excluded = ["children", "style", "animated", "testID", "pin", "bordered", "borderedTop", "borderedBottom", "borderedStart", "borderedEnd", "borderedHorizontal", "borderedVertical", "dangerouslySetBackground", "display", "position", "overflow", "zIndex", "gap", "columnGap", "rowGap", "justifyContent", "alignContent", "alignItems", "alignSelf", "flexDirection", "flexWrap", "color", "background", "borderColor", "borderTopLeftRadius", "borderTopRightRadius", "borderBottomLeftRadius", "borderBottomRightRadius", "borderTopWidth", "borderEndWidth", "borderBottomWidth", "borderStartWidth", "elevation", "borderWidth", "borderRadius", "font", "fontFamily", "fontSize", "fontWeight", "lineHeight", "textAlign", "textDecorationStyle", "textDecorationLine", "textTransform", "padding", "paddingX", "paddingY", "paddingTop", "paddingBottom", "paddingStart", "paddingEnd", "margin", "marginX", "marginY", "marginTop", "marginBottom", "marginStart", "marginEnd", "userSelect", "width", "height", "minWidth", "minHeight", "maxWidth", "maxHeight", "aspectRatio", "top", "bottom", "left", "right", "transform", "flexBasis", "flexShrink", "flexGrow", "opacity"];
|
|
1
|
+
const _excluded = ["ref", "children", "style", "animated", "testID", "pin", "bordered", "borderedTop", "borderedBottom", "borderedStart", "borderedEnd", "borderedHorizontal", "borderedVertical", "dangerouslySetBackground", "display", "position", "overflow", "zIndex", "gap", "columnGap", "rowGap", "justifyContent", "alignContent", "alignItems", "alignSelf", "flexDirection", "flexWrap", "color", "background", "borderColor", "borderTopLeftRadius", "borderTopRightRadius", "borderBottomLeftRadius", "borderBottomRightRadius", "borderTopWidth", "borderEndWidth", "borderBottomWidth", "borderStartWidth", "elevation", "borderWidth", "borderRadius", "font", "fontFamily", "fontSize", "fontWeight", "lineHeight", "textAlign", "textDecorationStyle", "textDecorationLine", "textTransform", "padding", "paddingX", "paddingY", "paddingTop", "paddingBottom", "paddingStart", "paddingEnd", "margin", "marginX", "marginY", "marginTop", "marginBottom", "marginStart", "marginEnd", "userSelect", "width", "height", "minWidth", "minHeight", "maxWidth", "maxHeight", "aspectRatio", "top", "bottom", "left", "right", "transform", "flexBasis", "flexShrink", "flexGrow", "opacity"];
|
|
2
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
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); }
|
|
4
|
-
import React, {
|
|
4
|
+
import React, { memo, useMemo } from 'react';
|
|
5
5
|
import { Animated, View } from 'react-native';
|
|
6
6
|
import { useTheme } from '../hooks/useTheme';
|
|
7
7
|
import { pinStyles } from '../styles/pinStyles';
|
|
@@ -74,8 +74,9 @@ const getBorderedStyles = (_ref, theme) => {
|
|
|
74
74
|
};
|
|
75
75
|
return [bordered && borderStyles.bordered, borderedHorizontal && borderStyles.borderedHorizontal, borderedVertical && borderStyles.borderedVertical, borderedStart && borderStyles.borderedStart, borderedEnd && borderStyles.borderedEnd, borderedTop && borderStyles.borderedTop, borderedBottom && borderStyles.borderedBottom];
|
|
76
76
|
};
|
|
77
|
-
export const Box = /*#__PURE__*/memo(
|
|
77
|
+
export const Box = /*#__PURE__*/memo(_ref2 => {
|
|
78
78
|
let {
|
|
79
|
+
ref,
|
|
79
80
|
children,
|
|
80
81
|
style,
|
|
81
82
|
animated,
|
|
@@ -250,5 +251,5 @@ export const Box = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
250
251
|
children: children
|
|
251
252
|
}))
|
|
252
253
|
);
|
|
253
|
-
})
|
|
254
|
+
});
|
|
254
255
|
Box.displayName = 'Box';
|
package/esm/layout/Group.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const _excluded = ["children", "direction", "divider", "gap", "renderItem"];
|
|
1
|
+
const _excluded = ["ref", "children", "direction", "divider", "gap", "renderItem"];
|
|
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, useMemo } from 'react';
|
|
5
5
|
import { flattenAndJoinNodes } from '../utils/flattenAndJoinNodes';
|
|
6
6
|
import { Box } from './Box';
|
|
7
7
|
import { Spacer } from './Spacer';
|
|
@@ -11,8 +11,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
11
11
|
* @deprecationExpectedRemoval v8
|
|
12
12
|
* @danger Make sure to add a `key` prop to each item.
|
|
13
13
|
*/
|
|
14
|
-
export const Group = /*#__PURE__*/memo(
|
|
14
|
+
export const Group = /*#__PURE__*/memo(function Group(_ref) {
|
|
15
15
|
let {
|
|
16
|
+
ref: forwardedRef,
|
|
16
17
|
children,
|
|
17
18
|
direction = 'vertical',
|
|
18
19
|
divider,
|
|
@@ -37,5 +38,5 @@ export const Group = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Group(_r
|
|
|
37
38
|
}, boxProps, {
|
|
38
39
|
children: contents
|
|
39
40
|
}));
|
|
40
|
-
})
|
|
41
|
+
});
|
|
41
42
|
Group.displayName = 'Group';
|
package/esm/layout/HStack.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
const _excluded = ["flexDirection"];
|
|
1
|
+
const _excluded = ["ref", "flexDirection"];
|
|
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 { Box } from './Box';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
export const HStack = /*#__PURE__*/memo(
|
|
7
|
+
export const HStack = /*#__PURE__*/memo(function HStack(_ref) {
|
|
8
8
|
let {
|
|
9
|
+
ref: forwardedRef,
|
|
9
10
|
flexDirection = 'row'
|
|
10
11
|
} = _ref,
|
|
11
12
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
@@ -13,4 +14,4 @@ export const HStack = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function HStack(
|
|
|
13
14
|
ref: forwardedRef,
|
|
14
15
|
flexDirection: flexDirection
|
|
15
16
|
}, props));
|
|
16
|
-
})
|
|
17
|
+
});
|
package/esm/layout/VStack.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
const _excluded = ["flexDirection"];
|
|
1
|
+
const _excluded = ["ref", "flexDirection"];
|
|
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 { Box } from './Box';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
export const VStack = /*#__PURE__*/memo(
|
|
7
|
+
export const VStack = /*#__PURE__*/memo(function VStack(_ref) {
|
|
8
8
|
let {
|
|
9
|
+
ref: forwardedRef,
|
|
9
10
|
flexDirection = 'column'
|
|
10
11
|
} = _ref,
|
|
11
12
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
@@ -13,4 +14,4 @@ export const VStack = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function VStack(
|
|
|
13
14
|
ref: forwardedRef,
|
|
14
15
|
flexDirection: flexDirection
|
|
15
16
|
}, props));
|
|
16
|
-
})
|
|
17
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const _excluded = ["carouselRef", "items", "gap", "testID", "onReady"];
|
|
1
|
+
const _excluded = ["ref", "carouselRef", "items", "gap", "testID", "onReady"];
|
|
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, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
5
5
|
import { Animated, Platform, StyleSheet } from 'react-native';
|
|
6
6
|
import { animateOpacityConfig, animateSizeConfig } from '@coinbase/cds-common/animation/carousel';
|
|
7
7
|
import { convertMotionConfig } from '../../animation/convertMotionConfig';
|
|
@@ -14,8 +14,9 @@ const sizeConfig = convertMotionConfig(animateSizeConfig);
|
|
|
14
14
|
* @deprecated Use new Carousel component instead. This will be removed in a future major release.
|
|
15
15
|
* @deprecationExpectedRemoval v8
|
|
16
16
|
*/
|
|
17
|
-
export const Carousel = /*#__PURE__*/memo(
|
|
17
|
+
export const Carousel = /*#__PURE__*/memo(_ref => {
|
|
18
18
|
let {
|
|
19
|
+
ref: forwardedRef,
|
|
19
20
|
carouselRef,
|
|
20
21
|
items,
|
|
21
22
|
gap = 3,
|
|
@@ -131,7 +132,7 @@ export const Carousel = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, forward
|
|
|
131
132
|
}, otherProps, {
|
|
132
133
|
children: content
|
|
133
134
|
}));
|
|
134
|
-
})
|
|
135
|
+
});
|
|
135
136
|
const styles = StyleSheet.create({
|
|
136
137
|
carousel: {
|
|
137
138
|
overflow: 'visible'
|
package/esm/motion/ColorSurge.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { memo, useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react';
|
|
2
2
|
import { Animated } from 'react-native';
|
|
3
3
|
import { colorSurgeEnterConfig, colorSurgeExitConfig } from '@coinbase/cds-common/motion/hint';
|
|
4
4
|
import { convertMotionConfig } from '../animation/convertMotionConfig';
|
|
@@ -7,8 +7,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
7
7
|
/**
|
|
8
8
|
* Please consult with the motion team in #ask-motion before using this component.
|
|
9
9
|
*/
|
|
10
|
-
export const ColorSurge = /*#__PURE__*/memo(
|
|
10
|
+
export const ColorSurge = /*#__PURE__*/memo(function ColorSurge(_ref) {
|
|
11
11
|
let {
|
|
12
|
+
ref,
|
|
12
13
|
background = 'bgPrimary',
|
|
13
14
|
disableAnimateOnMount = false
|
|
14
15
|
} = _ref;
|
|
@@ -41,4 +42,4 @@ export const ColorSurge = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Col
|
|
|
41
42
|
opacity
|
|
42
43
|
}
|
|
43
44
|
});
|
|
44
|
-
})
|
|
45
|
+
});
|
package/esm/motion/Pulse.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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, {
|
|
2
|
+
import React, { memo, useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react';
|
|
3
3
|
import { Animated } from 'react-native';
|
|
4
4
|
import { pulseTransitionConfig, pulseVariantOpacity } from '@coinbase/cds-common/motion/hint';
|
|
5
5
|
import { convertMotionConfig } from '../animation/convertMotionConfig';
|
|
@@ -7,8 +7,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
7
7
|
/**
|
|
8
8
|
* Please consult with the motion team in #ask-motion before using this component.
|
|
9
9
|
*/
|
|
10
|
-
export const Pulse = /*#__PURE__*/memo(
|
|
10
|
+
export const Pulse = /*#__PURE__*/memo(function Pulse(_ref) {
|
|
11
11
|
let {
|
|
12
|
+
ref,
|
|
12
13
|
children,
|
|
13
14
|
variant = 'moderate',
|
|
14
15
|
disableAnimateOnMount = false,
|
|
@@ -51,4 +52,4 @@ export const Pulse = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Pulse(_r
|
|
|
51
52
|
},
|
|
52
53
|
children: children
|
|
53
54
|
});
|
|
54
|
-
})
|
|
55
|
+
});
|
package/esm/motion/Shake.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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, {
|
|
2
|
+
import React, { memo, useCallback, useEffect, useImperativeHandle, useRef } from 'react';
|
|
3
3
|
import { Animated } from 'react-native';
|
|
4
4
|
import { shakeTransitionConfig, shakeTranslateX } from '@coinbase/cds-common/motion/hint';
|
|
5
5
|
import { convertMotionConfig } from '../animation/convertMotionConfig';
|
|
@@ -8,8 +8,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
8
8
|
/**
|
|
9
9
|
* Please consult with the motion team in #ask-motion before using this component.
|
|
10
10
|
*/
|
|
11
|
-
export const Shake = /*#__PURE__*/memo(
|
|
11
|
+
export const Shake = /*#__PURE__*/memo(function Shake(_ref) {
|
|
12
12
|
let {
|
|
13
|
+
ref,
|
|
13
14
|
children,
|
|
14
15
|
disableAnimateOnMount = false
|
|
15
16
|
} = _ref;
|
|
@@ -48,4 +49,4 @@ export const Shake = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Shake(_r
|
|
|
48
49
|
},
|
|
49
50
|
children: children
|
|
50
51
|
});
|
|
51
|
-
})
|
|
52
|
+
});
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
const _excluded = ["pictogram", "title", "description", "children", "action", "onActionPress", "actionAccessibilityLabel", "end", "bordered", "testID", "accessibilityLabel", "style"];
|
|
1
|
+
const _excluded = ["ref", "pictogram", "title", "description", "children", "action", "onActionPress", "actionAccessibilityLabel", "end", "bordered", "testID", "accessibilityLabel", "style"];
|
|
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, { isValidElement, memo } from 'react';
|
|
5
5
|
import { Button } from '../buttons/Button';
|
|
6
6
|
import { Pictogram } from '../illustrations/Pictogram';
|
|
7
7
|
import { Box } from '../layout/Box';
|
|
8
8
|
import { VStack } from '../layout/VStack';
|
|
9
9
|
import { Text } from '../typography/Text';
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
-
export const MultiContentModule = /*#__PURE__*/memo(
|
|
11
|
+
export const MultiContentModule = /*#__PURE__*/memo(function MultiContentModule(_ref) {
|
|
12
12
|
let {
|
|
13
|
+
ref,
|
|
13
14
|
pictogram,
|
|
14
15
|
title,
|
|
15
16
|
description,
|
|
@@ -58,4 +59,4 @@ export const MultiContentModule = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(func
|
|
|
58
59
|
children: action
|
|
59
60
|
})), end]
|
|
60
61
|
}));
|
|
61
|
-
})
|
|
62
|
+
});
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
const _excluded = ["children", "textProps", "style", "styles", "justifyContent"];
|
|
1
|
+
const _excluded = ["ref", "children", "textProps", "style", "styles", "justifyContent"];
|
|
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 {
|
|
4
|
+
import { memo, useMemo } from 'react';
|
|
5
5
|
import Animated from 'react-native-reanimated';
|
|
6
6
|
import { HStack } from '../../layout/HStack';
|
|
7
7
|
import { Text } from '../../typography/Text';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
const AnimatedText = Animated.createAnimatedComponent(Text);
|
|
10
|
-
export const DefaultRollingNumberAffixSection = /*#__PURE__*/memo(
|
|
10
|
+
export const DefaultRollingNumberAffixSection = /*#__PURE__*/memo(_ref => {
|
|
11
11
|
let {
|
|
12
|
+
ref,
|
|
12
13
|
children,
|
|
13
14
|
textProps,
|
|
14
15
|
style,
|
|
@@ -30,4 +31,4 @@ export const DefaultRollingNumberAffixSection = /*#__PURE__*/memo(/*#__PURE__*/f
|
|
|
30
31
|
}, props, {
|
|
31
32
|
children: typeof children === 'string' || typeof children === 'number' ? textNode : children
|
|
32
33
|
}));
|
|
33
|
-
})
|
|
34
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const _excluded = ["value", "digitHeight", "initialValue", "textProps", "style", "styles", "transitionConfig", "digitTransitionVariant", "direction", "RollingNumberMaskComponent"];
|
|
1
|
+
const _excluded = ["ref", "value", "digitHeight", "initialValue", "textProps", "style", "styles", "transitionConfig", "digitTransitionVariant", "direction", "RollingNumberMaskComponent"];
|
|
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 {
|
|
4
|
+
import { memo, useEffect, useMemo, useRef, useState } from 'react';
|
|
5
5
|
import { StyleSheet } from 'react-native';
|
|
6
6
|
import Animated, { LayoutAnimationConfig, useAnimatedStyle, useSharedValue, withSpring, withTiming } from 'react-native-reanimated';
|
|
7
7
|
import { Text } from '../../typography/Text';
|
|
@@ -80,8 +80,9 @@ const baseStylesheet = StyleSheet.create({
|
|
|
80
80
|
* For the "single" variant, mobile uses reanimated's `entering`/`exiting` props with
|
|
81
81
|
* custom animation worklets. Web uses imperative opacity crossfades on DOM sections.
|
|
82
82
|
*/
|
|
83
|
-
export const DefaultRollingNumberDigit = /*#__PURE__*/memo(
|
|
83
|
+
export const DefaultRollingNumberDigit = /*#__PURE__*/memo(_ref => {
|
|
84
84
|
let {
|
|
85
|
+
ref,
|
|
85
86
|
value,
|
|
86
87
|
digitHeight,
|
|
87
88
|
initialValue = value,
|
|
@@ -157,4 +158,4 @@ export const DefaultRollingNumberDigit = /*#__PURE__*/memo(/*#__PURE__*/forwardR
|
|
|
157
158
|
})
|
|
158
159
|
})
|
|
159
160
|
}));
|
|
160
|
-
})
|
|
161
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const _excluded = ["children", "style"];
|
|
1
|
+
const _excluded = ["ref", "children", "style"];
|
|
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 {
|
|
4
|
+
import { memo, useMemo } from 'react';
|
|
5
5
|
import { StyleSheet } from 'react-native';
|
|
6
6
|
import { HStack } from '../../layout/HStack';
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -11,8 +11,9 @@ const baseStylesheet = StyleSheet.create({
|
|
|
11
11
|
overflow: 'hidden'
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
|
-
export const DefaultRollingNumberMask = /*#__PURE__*/memo(
|
|
14
|
+
export const DefaultRollingNumberMask = /*#__PURE__*/memo(_ref => {
|
|
15
15
|
let {
|
|
16
|
+
ref,
|
|
16
17
|
children,
|
|
17
18
|
style
|
|
18
19
|
} = _ref,
|
|
@@ -24,4 +25,4 @@ export const DefaultRollingNumberMask = /*#__PURE__*/memo(/*#__PURE__*/forwardRe
|
|
|
24
25
|
}, props, {
|
|
25
26
|
children: children
|
|
26
27
|
}));
|
|
27
|
-
})
|
|
28
|
+
});
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
const _excluded = ["value", "textProps", "style", "styles"];
|
|
1
|
+
const _excluded = ["ref", "value", "textProps", "style", "styles"];
|
|
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 {
|
|
4
|
+
import { memo, useMemo } from 'react';
|
|
5
5
|
import Animated from 'react-native-reanimated';
|
|
6
6
|
import { HStack } from '../../layout/HStack';
|
|
7
7
|
import { Text } from '../../typography/Text';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
const AnimatedText = Animated.createAnimatedComponent(Text);
|
|
10
|
-
export const DefaultRollingNumberSymbol = /*#__PURE__*/memo(
|
|
10
|
+
export const DefaultRollingNumberSymbol = /*#__PURE__*/memo(_ref => {
|
|
11
11
|
let {
|
|
12
|
+
ref,
|
|
12
13
|
value,
|
|
13
14
|
textProps,
|
|
14
15
|
style,
|
|
@@ -28,4 +29,4 @@ export const DefaultRollingNumberSymbol = /*#__PURE__*/memo(/*#__PURE__*/forward
|
|
|
28
29
|
}, props, {
|
|
29
30
|
children: textNode
|
|
30
31
|
}));
|
|
31
|
-
})
|
|
32
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const _excluded = ["intlNumberParts", "textProps", "digitHeight", "formattedValue", "RollingNumberDigitComponent", "RollingNumberSymbolComponent", "RollingNumberMaskComponent", "style", "styles", "justifyContent", "transitionConfig", "digitTransitionVariant", "direction"];
|
|
1
|
+
const _excluded = ["ref", "intlNumberParts", "textProps", "digitHeight", "formattedValue", "RollingNumberDigitComponent", "RollingNumberSymbolComponent", "RollingNumberMaskComponent", "style", "styles", "justifyContent", "transitionConfig", "digitTransitionVariant", "direction"];
|
|
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 {
|
|
4
|
+
import { memo, useCallback, useMemo, useState } from 'react';
|
|
5
5
|
import Animated from 'react-native-reanimated';
|
|
6
6
|
import { HStack } from '../../layout/HStack';
|
|
7
7
|
import { Text } from '../../typography/Text';
|
|
@@ -12,8 +12,9 @@ import { digits } from './RollingNumber';
|
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
const AnimatedText = Animated.createAnimatedComponent(Text);
|
|
14
14
|
const isDigit = char => digits.includes(parseInt(char));
|
|
15
|
-
export const DefaultRollingNumberValueSection = /*#__PURE__*/memo(
|
|
15
|
+
export const DefaultRollingNumberValueSection = /*#__PURE__*/memo(_ref => {
|
|
16
16
|
let {
|
|
17
|
+
ref,
|
|
17
18
|
intlNumberParts,
|
|
18
19
|
textProps,
|
|
19
20
|
digitHeight,
|
|
@@ -100,4 +101,4 @@ export const DefaultRollingNumberValueSection = /*#__PURE__*/memo(/*#__PURE__*/f
|
|
|
100
101
|
}, props, {
|
|
101
102
|
children: formattedValue ? formattedValueDigits : intlPartsDigits
|
|
102
103
|
}));
|
|
103
|
-
})
|
|
104
|
+
});
|