@coinbase/cds-mobile 9.6.1 → 9.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -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/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/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,7 @@
|
|
|
1
|
-
const _excluded = ["checked", "compact", "disabled", "style", "variant", "startUncheckedNode", "endCheckedNode", "checkedLabel", "borderRadius", "borderTopLeftRadius", "borderTopRightRadius", "borderBottomLeftRadius", "borderBottomRightRadius"];
|
|
1
|
+
const _excluded = ["ref", "checked", "compact", "disabled", "style", "variant", "startUncheckedNode", "endCheckedNode", "checkedLabel", "borderRadius", "borderTopLeftRadius", "borderTopRightRadius", "borderBottomLeftRadius", "borderBottomRightRadius"];
|
|
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, useEffect, useMemo } from 'react';
|
|
5
5
|
import { StyleSheet } from 'react-native';
|
|
6
6
|
import Animated, { useAnimatedStyle, useSharedValue, withDelay, withSpring } from 'react-native-reanimated';
|
|
7
7
|
import { variants } from '@coinbase/cds-common/tokens/button';
|
|
@@ -96,8 +96,9 @@ export const SlideButtonHandleUnchecked = /*#__PURE__*/memo(_ref2 => {
|
|
|
96
96
|
})
|
|
97
97
|
});
|
|
98
98
|
});
|
|
99
|
-
export const DefaultSlideButtonHandle = /*#__PURE__*/memo(
|
|
99
|
+
export const DefaultSlideButtonHandle = /*#__PURE__*/memo(_ref3 => {
|
|
100
100
|
let {
|
|
101
|
+
ref,
|
|
101
102
|
checked,
|
|
102
103
|
compact,
|
|
103
104
|
disabled,
|
|
@@ -164,4 +165,4 @@ export const DefaultSlideButtonHandle = /*#__PURE__*/memo(/*#__PURE__*/forwardRe
|
|
|
164
165
|
})
|
|
165
166
|
})]
|
|
166
167
|
}));
|
|
167
|
-
})
|
|
168
|
+
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["name", "active", "variant", "alignSelf", "transparent", "compact", "background", "color", "borderColor", "iconSize", "borderWidth", "borderRadius", "feedback", "flush", "padding", "loading", "progressCircleSize", "style", "styles", "accessibilityHint", "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 {
|
|
5
|
+
import { memo } from 'react';
|
|
5
6
|
import { transparentVariants, variants } from '@coinbase/cds-common/tokens/button';
|
|
6
7
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
7
8
|
import { useTheme } from '../hooks/useTheme';
|
|
@@ -9,7 +10,11 @@ import { Icon } from '../icons/Icon';
|
|
|
9
10
|
import { Pressable } from '../system/Pressable';
|
|
10
11
|
import { ProgressCircle } from '../visualizations/ProgressCircle';
|
|
11
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
export const IconButton = /*#__PURE__*/memo(
|
|
13
|
+
export const IconButton = /*#__PURE__*/memo(_ref => {
|
|
14
|
+
let {
|
|
15
|
+
ref
|
|
16
|
+
} = _ref,
|
|
17
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
13
18
|
const mergedProps = useComponentConfig('IconButton', _props);
|
|
14
19
|
const {
|
|
15
20
|
name,
|
|
@@ -35,7 +40,7 @@ export const IconButton = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref
|
|
|
35
40
|
accessibilityHint,
|
|
36
41
|
accessibilityLabel
|
|
37
42
|
} = mergedProps,
|
|
38
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
43
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
39
44
|
const theme = useTheme();
|
|
40
45
|
const iconSizeValue = theme.iconSize[iconSize];
|
|
41
46
|
const variantMap = transparent ? transparentVariants : variants;
|
|
@@ -84,5 +89,5 @@ export const IconButton = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref
|
|
|
84
89
|
}
|
|
85
90
|
})
|
|
86
91
|
}));
|
|
87
|
-
})
|
|
92
|
+
});
|
|
88
93
|
IconButton.displayName = 'IconButton';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["icon", "size", "active", "count", "color", "dangerouslySetColor", "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 { formatCount } from '@coinbase/cds-common/utils/formatCount';
|
|
6
7
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
7
8
|
import { Icon } from '../icons/Icon';
|
|
@@ -9,7 +10,11 @@ import { HStack } from '../layout/HStack';
|
|
|
9
10
|
import { Pressable } from '../system/Pressable';
|
|
10
11
|
import { Text } from '../typography/Text';
|
|
11
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
-
export const IconCounterButton = /*#__PURE__*/memo(
|
|
13
|
+
export const IconCounterButton = /*#__PURE__*/memo(function IconCounterButton(_ref) {
|
|
14
|
+
let {
|
|
15
|
+
ref
|
|
16
|
+
} = _ref,
|
|
17
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
13
18
|
const mergedProps = useComponentConfig('IconCounterButton', _props);
|
|
14
19
|
const {
|
|
15
20
|
icon,
|
|
@@ -21,7 +26,7 @@ export const IconCounterButton = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(funct
|
|
|
21
26
|
styles,
|
|
22
27
|
style
|
|
23
28
|
} = mergedProps,
|
|
24
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
29
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
25
30
|
const rootStyleOverride = styles == null ? void 0 : styles.root;
|
|
26
31
|
const rootStyle = useMemo(() => {
|
|
27
32
|
if (typeof style === 'function' || typeof rootStyleOverride === 'function') {
|
|
@@ -55,4 +60,4 @@ export const IconCounterButton = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(funct
|
|
|
55
60
|
}) : null]
|
|
56
61
|
})
|
|
57
62
|
}));
|
|
58
|
-
})
|
|
63
|
+
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["checked", "compact", "borderRadius", "borderTopLeftRadius", "borderTopRightRadius", "borderBottomLeftRadius", "borderBottomRightRadius", "uncheckedLabel", "checkedLabel", "onSlideStart", "onSlideCancel", "onSlideEnd", "onSlideComplete", "onChange", "disabled", "height", "checkThreshold", "SlideButtonHandleComponent", "SlideButtonBackgroundComponent", "styles", "testID", "autoCompleteSlideOnThresholdMet", "variant", "startUncheckedNode", "endCheckedNode"];
|
|
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, useId, useMemo } from 'react';
|
|
5
6
|
import { View } from 'react-native';
|
|
6
7
|
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
|
|
7
8
|
import Animated, { useAnimatedStyle, useSharedValue, withSpring } from 'react-native-reanimated';
|
|
@@ -13,7 +14,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
13
14
|
export const slideButtonTestID = 'slide-button';
|
|
14
15
|
export const DEFAULT_COMPACT_HEIGHT = 40;
|
|
15
16
|
export const DEFAULT_REGULAR_HEIGHT = 56;
|
|
16
|
-
export const SlideButton = /*#__PURE__*/memo(
|
|
17
|
+
export const SlideButton = /*#__PURE__*/memo(_ref => {
|
|
18
|
+
let {
|
|
19
|
+
ref
|
|
20
|
+
} = _ref,
|
|
21
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
17
22
|
const mergedProps = useComponentConfig('SlideButton', _props);
|
|
18
23
|
const {
|
|
19
24
|
checked,
|
|
@@ -42,7 +47,7 @@ export const SlideButton = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, re
|
|
|
42
47
|
startUncheckedNode,
|
|
43
48
|
endCheckedNode
|
|
44
49
|
} = mergedProps,
|
|
45
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
50
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
46
51
|
const labelId = useId();
|
|
47
52
|
const [containerSize, onLayout] = useLayout();
|
|
48
53
|
const progress = useSharedValue(checked ? 1 : 0);
|
|
@@ -68,10 +73,10 @@ export const SlideButton = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, re
|
|
|
68
73
|
const panGesture = useMemo(() => Gesture.Pan().onStart(() => {
|
|
69
74
|
if (checked || disabled) return;
|
|
70
75
|
onSlideStart == null || onSlideStart();
|
|
71
|
-
}).onUpdate(
|
|
76
|
+
}).onUpdate(_ref2 => {
|
|
72
77
|
let {
|
|
73
78
|
translationX
|
|
74
|
-
} =
|
|
79
|
+
} = _ref2;
|
|
75
80
|
if (checked || disabled) return;
|
|
76
81
|
const newWidth = (buttonMinWidth + translationX) / containerSize.width;
|
|
77
82
|
const thresholdReached = newWidth >= checkThreshold;
|
|
@@ -81,10 +86,10 @@ export const SlideButton = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, re
|
|
|
81
86
|
}
|
|
82
87
|
const progressValue = autoCompleteSlideOnThresholdMet ? newWidth : Math.min(1, newWidth);
|
|
83
88
|
progress.value = progressValue;
|
|
84
|
-
}).onEnd(
|
|
89
|
+
}).onEnd(_ref3 => {
|
|
85
90
|
let {
|
|
86
91
|
translationX
|
|
87
|
-
} =
|
|
92
|
+
} = _ref3;
|
|
88
93
|
if (checked || disabled) return;
|
|
89
94
|
const newWidth = (buttonMinWidth + translationX) / containerSize.width;
|
|
90
95
|
if (newWidth >= checkThreshold) {
|
|
@@ -159,4 +164,4 @@ export const SlideButton = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, re
|
|
|
159
164
|
})
|
|
160
165
|
})]
|
|
161
166
|
});
|
|
162
|
-
})
|
|
167
|
+
});
|
package/esm/cards/CardGroup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const _excluded = ["accessibilityLabel", "accessibilityHint", "children", "direction", "divider", "marginX"];
|
|
1
|
+
const _excluded = ["ref", "accessibilityLabel", "accessibilityHint", "children", "direction", "divider", "marginX"];
|
|
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 { gutter } from '@coinbase/cds-common/tokens/sizing';
|
|
6
6
|
import { Divider } from '../layout/Divider';
|
|
7
7
|
import { Group } from '../layout/Group';
|
|
@@ -20,8 +20,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
20
20
|
* @deprecated Use `Box`, `HStack` or `VStack` instead. This will be removed in a future major release.
|
|
21
21
|
* @deprecationExpectedRemoval v10
|
|
22
22
|
*/
|
|
23
|
-
export const CardGroup = /*#__PURE__*/memo(
|
|
23
|
+
export const CardGroup = /*#__PURE__*/memo(function CardGroup(_ref) {
|
|
24
24
|
let {
|
|
25
|
+
ref,
|
|
25
26
|
accessibilityLabel,
|
|
26
27
|
accessibilityHint = accessibilityLabel,
|
|
27
28
|
children,
|
|
@@ -40,5 +41,5 @@ export const CardGroup = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Card
|
|
|
40
41
|
}, props, {
|
|
41
42
|
children: children
|
|
42
43
|
}));
|
|
43
|
-
})
|
|
44
|
+
});
|
|
44
45
|
CardGroup.displayName = 'CardGroup';
|
package/esm/cards/CardRoot.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const _excluded = ["children", "renderAsPressable"];
|
|
1
|
+
const _excluded = ["ref", "children", "renderAsPressable"];
|
|
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 { HStack } from '../layout/HStack';
|
|
6
6
|
import { Pressable } from '../system/Pressable';
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -11,8 +11,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
11
11
|
* By default, it renders as an HStack for horizontal layout.
|
|
12
12
|
* When `renderAsPressable` is true, it renders as a Pressable component.
|
|
13
13
|
*/
|
|
14
|
-
export const CardRoot = /*#__PURE__*/memo(
|
|
14
|
+
export const CardRoot = /*#__PURE__*/memo(_ref => {
|
|
15
15
|
let {
|
|
16
|
+
ref,
|
|
16
17
|
children,
|
|
17
18
|
renderAsPressable
|
|
18
19
|
} = _ref,
|
|
@@ -23,5 +24,5 @@ export const CardRoot = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) =>
|
|
|
23
24
|
}, props, {
|
|
24
25
|
children: children
|
|
25
26
|
}));
|
|
26
|
-
})
|
|
27
|
+
});
|
|
27
28
|
CardRoot.displayName = 'CardRoot';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
const _excluded = ["testID", "children", "maxWidth", "minWidth", "borderRadius", "padding", "gap"];
|
|
1
|
+
const _excluded = ["ref", "testID", "children", "maxWidth", "minWidth", "borderRadius", "padding", "gap"];
|
|
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 { contentCardMaxWidth, contentCardMinWidth } from '@coinbase/cds-common/tokens/card';
|
|
6
6
|
import { VStack } from '../../layout/VStack';
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
export const ContentCard = /*#__PURE__*/memo(
|
|
8
|
+
export const ContentCard = /*#__PURE__*/memo(function ContentCard(_ref) {
|
|
9
9
|
let {
|
|
10
|
+
ref,
|
|
10
11
|
testID,
|
|
11
12
|
children,
|
|
12
13
|
maxWidth = contentCardMaxWidth,
|
|
@@ -27,4 +28,4 @@ export const ContentCard = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Co
|
|
|
27
28
|
}, props, {
|
|
28
29
|
children: children
|
|
29
30
|
}));
|
|
30
|
-
})
|
|
31
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const _excluded = ["body", "label", "media", "mediaPosition", "mediaPlacement", "title", "description", "children", "gap", "testID", "style", "styles"];
|
|
1
|
+
const _excluded = ["ref", "body", "label", "media", "mediaPosition", "mediaPlacement", "title", "description", "children", "gap", "testID", "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 React, {
|
|
4
|
+
import React, { memo, useMemo } from 'react';
|
|
5
5
|
import { Box } from '../../layout/Box';
|
|
6
6
|
import { VStack } from '../../layout/VStack';
|
|
7
7
|
import { Text } from '../../typography/Text';
|
|
@@ -12,8 +12,9 @@ const mapMediaPositionToMediaPlacement = {
|
|
|
12
12
|
right: 'end',
|
|
13
13
|
left: 'start'
|
|
14
14
|
};
|
|
15
|
-
export const ContentCardBody = /*#__PURE__*/memo(
|
|
15
|
+
export const ContentCardBody = /*#__PURE__*/memo(function ContentCardBody(_ref) {
|
|
16
16
|
let {
|
|
17
|
+
ref,
|
|
17
18
|
body,
|
|
18
19
|
label,
|
|
19
20
|
media,
|
|
@@ -100,4 +101,4 @@ export const ContentCardBody = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(functio
|
|
|
100
101
|
children: [isMediaFirst && mediaBox, textNode, isMediaLast && mediaBox]
|
|
101
102
|
}), children]
|
|
102
103
|
}));
|
|
103
|
-
})
|
|
104
|
+
});
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
const _excluded = ["children", "justifyContent"];
|
|
1
|
+
const _excluded = ["ref", "children", "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 React, {
|
|
4
|
+
import React, { memo } from 'react';
|
|
5
5
|
import { HStack } from '../../layout/HStack';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
export const ContentCardFooter = /*#__PURE__*/memo(
|
|
7
|
+
export const ContentCardFooter = /*#__PURE__*/memo(_ref => {
|
|
8
8
|
let {
|
|
9
|
+
ref,
|
|
9
10
|
children,
|
|
10
11
|
justifyContent = 'space-between'
|
|
11
12
|
} = _ref,
|
|
@@ -16,4 +17,4 @@ export const ContentCardFooter = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref
|
|
|
16
17
|
}, props, {
|
|
17
18
|
children: children
|
|
18
19
|
}));
|
|
19
|
-
})
|
|
20
|
+
});
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
const _excluded = ["avatar", "title", "meta", "end", "subtitle", "actions", "thumbnail", "gap", "testID", "styles", "style"];
|
|
1
|
+
const _excluded = ["ref", "avatar", "title", "meta", "end", "subtitle", "actions", "thumbnail", "gap", "testID", "styles", "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, { memo, useMemo } from 'react';
|
|
5
5
|
import { HStack } from '../../layout/HStack';
|
|
6
6
|
import { VStack } from '../../layout/VStack';
|
|
7
7
|
import { Avatar } from '../../media/Avatar';
|
|
8
8
|
import { Text } from '../../typography/Text';
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
export const ContentCardHeader = /*#__PURE__*/memo(
|
|
10
|
+
export const ContentCardHeader = /*#__PURE__*/memo(function ContentCardHeader(_ref) {
|
|
11
11
|
let {
|
|
12
|
+
ref,
|
|
12
13
|
avatar,
|
|
13
14
|
title,
|
|
14
15
|
meta,
|
|
@@ -81,4 +82,4 @@ export const ContentCardHeader = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(funct
|
|
|
81
82
|
})]
|
|
82
83
|
}), actions]
|
|
83
84
|
}));
|
|
84
|
-
})
|
|
85
|
+
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const _excluded = ["root"],
|
|
2
|
-
_excluded2 = ["title", "subtitle", "description", "thumbnail", "media", "mediaPlacement", "style", "styles"];
|
|
2
|
+
_excluded2 = ["ref", "title", "subtitle", "description", "thumbnail", "media", "mediaPlacement", "style", "styles"];
|
|
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
|
-
import {
|
|
5
|
+
import { memo } from 'react';
|
|
6
6
|
import { CardRoot } from '../CardRoot';
|
|
7
7
|
import { MediaCardLayout } from './MediaCardLayout';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -11,8 +11,9 @@ const mediaCardContainerProps = {
|
|
|
11
11
|
background: 'bgAlternate',
|
|
12
12
|
overflow: 'hidden'
|
|
13
13
|
};
|
|
14
|
-
export const MediaCard = /*#__PURE__*/memo(
|
|
14
|
+
export const MediaCard = /*#__PURE__*/memo(_ref => {
|
|
15
15
|
let {
|
|
16
|
+
ref,
|
|
16
17
|
title,
|
|
17
18
|
subtitle,
|
|
18
19
|
description,
|
|
@@ -41,5 +42,5 @@ export const MediaCard = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) =
|
|
|
41
42
|
title: title
|
|
42
43
|
})
|
|
43
44
|
}));
|
|
44
|
-
})
|
|
45
|
+
});
|
|
45
46
|
MediaCard.displayName = 'MediaCard';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const _excluded = ["root"],
|
|
2
|
-
_excluded2 = ["type", "title", "description", "tag", "action", "onActionButtonPress", "actionButtonAccessibilityLabel", "dismissButton", "onDismissButtonPress", "dismissButtonAccessibilityLabel", "mediaPlacement", "media", "style", "styles"];
|
|
2
|
+
_excluded2 = ["ref", "type", "title", "description", "tag", "action", "onActionButtonPress", "actionButtonAccessibilityLabel", "dismissButton", "onDismissButtonPress", "dismissButtonAccessibilityLabel", "mediaPlacement", "media", "style", "styles"];
|
|
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
|
-
import {
|
|
5
|
+
import { memo } from 'react';
|
|
6
6
|
import { CardRoot } from '../CardRoot';
|
|
7
7
|
import { MessagingCardLayout } from './MessagingCardLayout';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -10,8 +10,9 @@ const messagingCardContainerProps = {
|
|
|
10
10
|
borderRadius: 500,
|
|
11
11
|
overflow: 'hidden'
|
|
12
12
|
};
|
|
13
|
-
export const MessagingCard = /*#__PURE__*/memo(
|
|
13
|
+
export const MessagingCard = /*#__PURE__*/memo(_ref => {
|
|
14
14
|
let {
|
|
15
|
+
ref,
|
|
15
16
|
type,
|
|
16
17
|
title,
|
|
17
18
|
description,
|
|
@@ -54,5 +55,5 @@ export const MessagingCard = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, re
|
|
|
54
55
|
type: type
|
|
55
56
|
})
|
|
56
57
|
}));
|
|
57
|
-
})
|
|
58
|
+
});
|
|
58
59
|
MessagingCard.displayName = 'MessagingCard';
|
package/esm/carousel/Carousel.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["children", "title", "hideNavigation", "hidePagination", "paginationVariant", "drag", "snapMode", "NavigationComponent", "PaginationComponent", "style", "styles", "nextPageAccessibilityLabel", "previousPageAccessibilityLabel", "startAutoplayAccessibilityLabel", "stopAutoplayAccessibilityLabel", "paginationAccessibilityLabel", "onChangePage", "onDragStart", "onDragEnd", "loop", "autoplay", "autoplayInterval"];
|
|
2
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; }
|
|
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
|
-
import React, {
|
|
5
|
+
import React, { memo, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
5
6
|
import { View } from 'react-native';
|
|
6
7
|
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
|
|
7
8
|
import { useCarouselAutoplay } from '@coinbase/cds-common/carousel/useCarouselAutoplay';
|
|
@@ -255,7 +256,11 @@ const animationConfig = {
|
|
|
255
256
|
stiffness: 900,
|
|
256
257
|
damping: 120
|
|
257
258
|
};
|
|
258
|
-
export const Carousel = /*#__PURE__*/memo(
|
|
259
|
+
export const Carousel = /*#__PURE__*/memo(_ref4 => {
|
|
260
|
+
let {
|
|
261
|
+
ref
|
|
262
|
+
} = _ref4,
|
|
263
|
+
_props = _objectWithoutPropertiesLoose(_ref4, _excluded);
|
|
259
264
|
const mergedProps = useComponentConfig('Carousel', _props);
|
|
260
265
|
const {
|
|
261
266
|
children,
|
|
@@ -281,7 +286,7 @@ export const Carousel = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref)
|
|
|
281
286
|
autoplay,
|
|
282
287
|
autoplayInterval = 3000
|
|
283
288
|
} = mergedProps,
|
|
284
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
289
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
285
290
|
const carouselScrollX = useRef(0);
|
|
286
291
|
const animationApi = useSpring({
|
|
287
292
|
x: carouselScrollX.current,
|
|
@@ -500,10 +505,10 @@ export const Carousel = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref)
|
|
|
500
505
|
.failOffsetY([-10, 10]).onStart(() => {
|
|
501
506
|
if (!isDragEnabled) return;
|
|
502
507
|
handleDragStart();
|
|
503
|
-
}).onUpdate(
|
|
508
|
+
}).onUpdate(_ref5 => {
|
|
504
509
|
let {
|
|
505
510
|
translationX
|
|
506
|
-
} =
|
|
511
|
+
} = _ref5;
|
|
507
512
|
if (!isDragEnabled) return;
|
|
508
513
|
let newOffset;
|
|
509
514
|
if (shouldLoop) {
|
|
@@ -512,11 +517,11 @@ export const Carousel = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref)
|
|
|
512
517
|
newOffset = clampWithElasticResistance(carouselScrollX.current - translationX, maxScrollOffset);
|
|
513
518
|
}
|
|
514
519
|
animationApi.x.set(newOffset);
|
|
515
|
-
}).onEnd(
|
|
520
|
+
}).onEnd(_ref6 => {
|
|
516
521
|
let {
|
|
517
522
|
translationX,
|
|
518
523
|
velocityX
|
|
519
|
-
} =
|
|
524
|
+
} = _ref6;
|
|
520
525
|
if (!isDragEnabled) return;
|
|
521
526
|
let projectedOffset;
|
|
522
527
|
if (shouldLoop) {
|
|
@@ -701,4 +706,4 @@ export const Carousel = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref)
|
|
|
701
706
|
}))
|
|
702
707
|
})
|
|
703
708
|
});
|
|
704
|
-
})
|
|
709
|
+
});
|
package/esm/chips/Chip.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["alignSelf", "children", "start", "end", "invertColorScheme", "inverted", "maxWidth", "compact", "gap", "paddingX", "paddingY", "alignItems", "justifyContent", "padding", "paddingTop", "paddingBottom", "paddingStart", "paddingEnd", "numberOfLines", "testID", "contentStyle", "borderRadius", "background", "style", "styles", "onPress", "color", "font"];
|
|
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, { Fragment, memo } from 'react';
|
|
5
6
|
import { chipMaxWidth } from '@coinbase/cds-common/tokens/chip';
|
|
6
7
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
7
8
|
import { Box } from '../layout/Box';
|
|
@@ -13,7 +14,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
13
14
|
/**
|
|
14
15
|
* This is a basic Chip component used to create all Chip components.
|
|
15
16
|
*/
|
|
16
|
-
export const Chip = /*#__PURE__*/memo(
|
|
17
|
+
export const Chip = /*#__PURE__*/memo(function Chip(_ref) {
|
|
18
|
+
let {
|
|
19
|
+
ref
|
|
20
|
+
} = _ref,
|
|
21
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
17
22
|
const mergedProps = useComponentConfig('Chip', _props);
|
|
18
23
|
const {
|
|
19
24
|
alignSelf = 'flex-start',
|
|
@@ -45,7 +50,7 @@ export const Chip = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Chip(_pro
|
|
|
45
50
|
color = 'fg',
|
|
46
51
|
font = compact ? 'label1' : 'headline'
|
|
47
52
|
} = mergedProps,
|
|
48
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
53
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
49
54
|
const WrapperComponent = (invertColorScheme != null ? invertColorScheme : inverted) ? InvertedThemeProvider : Fragment;
|
|
50
55
|
const containerProps = {
|
|
51
56
|
testID,
|
|
@@ -90,4 +95,4 @@ export const Chip = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Chip(_pro
|
|
|
90
95
|
children: content
|
|
91
96
|
}))
|
|
92
97
|
});
|
|
93
|
-
})
|
|
98
|
+
});
|
package/esm/chips/InputChip.js
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["value", "children", "accessibilityLabel", "invertColorScheme", "testID"];
|
|
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 { useComponentConfig } from '../hooks/useComponentConfig';
|
|
6
7
|
import { Icon } from '../icons/Icon';
|
|
7
8
|
import { MediaChip } from './MediaChip';
|
|
8
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
export const InputChip = /*#__PURE__*/memo(
|
|
10
|
+
export const InputChip = /*#__PURE__*/memo(_ref => {
|
|
11
|
+
let {
|
|
12
|
+
ref
|
|
13
|
+
} = _ref,
|
|
14
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
10
15
|
const mergedProps = useComponentConfig('InputChip', _props);
|
|
11
16
|
const {
|
|
12
17
|
value,
|
|
@@ -15,7 +20,7 @@ export const InputChip = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref)
|
|
|
15
20
|
invertColorScheme = true,
|
|
16
21
|
testID = 'input-chip'
|
|
17
22
|
} = mergedProps,
|
|
18
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
23
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
19
24
|
return /*#__PURE__*/_jsx(MediaChip, _extends({
|
|
20
25
|
ref: ref,
|
|
21
26
|
accessibilityLabel: accessibilityLabel,
|
|
@@ -30,4 +35,4 @@ export const InputChip = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref)
|
|
|
30
35
|
}, props, {
|
|
31
36
|
children: children
|
|
32
37
|
}));
|
|
33
|
-
})
|
|
38
|
+
});
|
package/esm/chips/MediaChip.js
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["start", "children", "end", "compact", "padding", "paddingX", "paddingY", "paddingTop", "paddingBottom", "paddingStart", "paddingEnd"];
|
|
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 } from 'react';
|
|
5
6
|
import { getMediaChipSpacingProps } from '@coinbase/cds-common/chips/getMediaChipSpacingProps';
|
|
6
7
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
7
8
|
import { Chip } from './Chip';
|
|
8
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
export const MediaChip = /*#__PURE__*/memo(
|
|
10
|
+
export const MediaChip = /*#__PURE__*/memo(function MediaChip(_ref) {
|
|
11
|
+
let {
|
|
12
|
+
ref
|
|
13
|
+
} = _ref,
|
|
14
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
10
15
|
const mergedProps = useComponentConfig('MediaChip', _props);
|
|
11
16
|
const {
|
|
12
17
|
start,
|
|
@@ -21,7 +26,7 @@ export const MediaChip = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Medi
|
|
|
21
26
|
paddingStart,
|
|
22
27
|
paddingEnd
|
|
23
28
|
} = mergedProps,
|
|
24
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
29
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
25
30
|
const spacingProps = useMemo(() => {
|
|
26
31
|
const defaults = getMediaChipSpacingProps({
|
|
27
32
|
compact: !!compact,
|
|
@@ -47,4 +52,4 @@ export const MediaChip = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Medi
|
|
|
47
52
|
}, spacingProps, props, {
|
|
48
53
|
children: children
|
|
49
54
|
}));
|
|
50
|
-
})
|
|
55
|
+
});
|
package/esm/chips/SelectChip.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const _excluded = ["children", "value", "valueLabel", "placeholder", "disabled", "accessibilityLabel", "onPress", "end", "onChange", "onBlur", "testID", "preventDismissGestures", "hideHandleBar", "disableCapturePanGestureToDismiss", "verticalDrawerPercentageOfView", "handleBarAccessibilityLabel", "active"];
|
|
1
|
+
const _excluded = ["ref", "children", "value", "valueLabel", "placeholder", "disabled", "accessibilityLabel", "onPress", "end", "onChange", "onBlur", "testID", "preventDismissGestures", "hideHandleBar", "disableCapturePanGestureToDismiss", "verticalDrawerPercentageOfView", "handleBarAccessibilityLabel", "active"];
|
|
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, useRef, useState } from 'react';
|
|
5
5
|
import { animateCaretInConfig, animateCaretOutConfig } from '@coinbase/cds-common/animation/select';
|
|
6
6
|
import { useMergeRefs } from '@coinbase/cds-common/hooks/useMergeRefs';
|
|
7
7
|
import { useRotateAnimation } from '../animation/useRotateAnimation';
|
|
@@ -23,9 +23,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
23
23
|
* @deprecationExpectedRemoval v9
|
|
24
24
|
* @see {@link @coinbase/cds-mobile/alpha/select-chip/SelectChip}
|
|
25
25
|
*/
|
|
26
|
-
export const SelectChip = /*#__PURE__*/memo(
|
|
26
|
+
export const SelectChip = /*#__PURE__*/memo(_ref => {
|
|
27
27
|
var _ref2;
|
|
28
28
|
let {
|
|
29
|
+
ref,
|
|
29
30
|
children,
|
|
30
31
|
value: defaultValue,
|
|
31
32
|
valueLabel,
|
|
@@ -133,4 +134,4 @@ export const SelectChip = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref)
|
|
|
133
134
|
children: children
|
|
134
135
|
})]
|
|
135
136
|
});
|
|
136
|
-
})
|
|
137
|
+
});
|