@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
package/esm/chips/TabbedChips.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
const _excluded = ["label", "id"],
|
|
2
|
-
_excluded2 = ["
|
|
2
|
+
_excluded2 = ["ref"],
|
|
3
|
+
_excluded3 = ["tabs", "value", "testID", "onChange", "Component"];
|
|
3
4
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
5
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
|
-
import React, {
|
|
6
|
+
import React, { memo, useCallback, useMemo, useState } from 'react';
|
|
6
7
|
import { ScrollView } from 'react-native';
|
|
7
8
|
import { useTabsContext } from '@coinbase/cds-common/tabs/TabsContext';
|
|
8
9
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
@@ -37,7 +38,11 @@ const TabComponent = _ref => {
|
|
|
37
38
|
const TabsActiveIndicatorComponent = () => {
|
|
38
39
|
return null;
|
|
39
40
|
};
|
|
40
|
-
const TabbedChipsComponent = /*#__PURE__*/memo(
|
|
41
|
+
const TabbedChipsComponent = /*#__PURE__*/memo(function TabbedChips(_ref2) {
|
|
42
|
+
let {
|
|
43
|
+
ref
|
|
44
|
+
} = _ref2,
|
|
45
|
+
_props = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
41
46
|
const mergedProps = useComponentConfig('TabbedChips', _props);
|
|
42
47
|
const {
|
|
43
48
|
tabs,
|
|
@@ -46,7 +51,7 @@ const TabbedChipsComponent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function
|
|
|
46
51
|
onChange,
|
|
47
52
|
Component = TabComponent
|
|
48
53
|
} = mergedProps,
|
|
49
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
54
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded3);
|
|
50
55
|
const activeTab = useMemo(() => tabs.find(tab => tab.id === value), [tabs, value]);
|
|
51
56
|
const [scrollTarget, setScrollTarget] = useState(null);
|
|
52
57
|
const handleChange = useCallback(tabValue => {
|
|
@@ -86,7 +91,7 @@ const TabbedChipsComponent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function
|
|
|
86
91
|
})
|
|
87
92
|
}), isScrollContentOverflowing && isScrollContentOffscreenRight ? /*#__PURE__*/_jsx(OverflowGradient, {}) : null]
|
|
88
93
|
}));
|
|
89
|
-
})
|
|
94
|
+
});
|
|
90
95
|
TabbedChipsComponent.displayName = 'TabbedChips';
|
|
91
96
|
|
|
92
97
|
/**
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["title", "content", "checkbox", "media", "onClose", "action", "width", "closeButtonAccessibilityLabel", "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 { useWindowDimensions } from 'react-native';
|
|
6
7
|
import { IconButton } from '../buttons/IconButton';
|
|
7
8
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
@@ -12,7 +13,11 @@ import { VStack } from '../layout/VStack';
|
|
|
12
13
|
import { InvertedThemeProvider } from '../system/ThemeProvider';
|
|
13
14
|
import { Text } from '../typography/Text';
|
|
14
15
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
-
export const Coachmark = /*#__PURE__*/memo(
|
|
16
|
+
export const Coachmark = /*#__PURE__*/memo(_ref => {
|
|
17
|
+
let {
|
|
18
|
+
ref
|
|
19
|
+
} = _ref,
|
|
20
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
16
21
|
const mergedProps = useComponentConfig('Coachmark', _props);
|
|
17
22
|
const {
|
|
18
23
|
title,
|
|
@@ -25,7 +30,7 @@ export const Coachmark = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref)
|
|
|
25
30
|
closeButtonAccessibilityLabel,
|
|
26
31
|
testID
|
|
27
32
|
} = mergedProps,
|
|
28
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
33
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
29
34
|
const theme = useTheme();
|
|
30
35
|
const {
|
|
31
36
|
width: windowWidth
|
|
@@ -75,4 +80,4 @@ export const Coachmark = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref)
|
|
|
75
80
|
})]
|
|
76
81
|
}))
|
|
77
82
|
});
|
|
78
|
-
})
|
|
83
|
+
});
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
const _excluded = ["ref"];
|
|
1
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); }
|
|
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; }
|
|
4
|
+
import React, { memo, useEffect, useMemo, useRef } from 'react';
|
|
3
5
|
import { ScrollView, StyleSheet, View } from 'react-native';
|
|
4
6
|
import Animated, { useAnimatedReaction, useAnimatedStyle, useSharedValue } from 'react-native-reanimated';
|
|
5
7
|
import { animateInMaxSizeConfig, animateInOpacityConfig, animateOutMaxSizeConfig, animateOutOpacityConfig } from '@coinbase/cds-common/animation/collapsible';
|
|
@@ -11,8 +13,12 @@ import { convertMotionConfigs } from '../motion/convertMotionConfig';
|
|
|
11
13
|
import { withMotionTiming } from '../motion/withMotionTiming';
|
|
12
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
15
|
const ReanimatedView = Animated.createAnimatedComponent(View);
|
|
14
|
-
export const Collapsible = /*#__PURE__*/memo(
|
|
15
|
-
var
|
|
16
|
+
export const Collapsible = /*#__PURE__*/memo(_ref => {
|
|
17
|
+
var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
|
|
18
|
+
let {
|
|
19
|
+
ref: forwardedRef
|
|
20
|
+
} = _ref,
|
|
21
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
16
22
|
const mergedProps = useComponentConfig('Collapsible', _props);
|
|
17
23
|
const {
|
|
18
24
|
children,
|
|
@@ -43,10 +49,10 @@ export const Collapsible = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, fo
|
|
|
43
49
|
const heightAnimatedValue = useSharedValue(animateInMaxSize.fromValue);
|
|
44
50
|
const opacityAnimatedValue = useSharedValue(animateInOpacity.fromValue);
|
|
45
51
|
const spacingStyles = {
|
|
46
|
-
paddingTop: theme.space[(
|
|
47
|
-
paddingEnd: theme.space[(
|
|
48
|
-
paddingBottom: theme.space[(
|
|
49
|
-
paddingStart: theme.space[(
|
|
52
|
+
paddingTop: theme.space[(_ref2 = (_ref3 = paddingTop != null ? paddingTop : paddingY) != null ? _ref3 : padding) != null ? _ref2 : 0],
|
|
53
|
+
paddingEnd: theme.space[(_ref4 = (_ref5 = paddingEnd != null ? paddingEnd : paddingX) != null ? _ref5 : padding) != null ? _ref4 : 0],
|
|
54
|
+
paddingBottom: theme.space[(_ref6 = (_ref7 = paddingBottom != null ? paddingBottom : paddingY) != null ? _ref7 : padding) != null ? _ref6 : 0],
|
|
55
|
+
paddingStart: theme.space[(_ref8 = (_ref9 = paddingStart != null ? paddingStart : paddingX) != null ? _ref9 : padding) != null ? _ref8 : 0]
|
|
50
56
|
};
|
|
51
57
|
const prevCollapsed = usePreviousValue(collapsed);
|
|
52
58
|
|
|
@@ -122,7 +128,7 @@ export const Collapsible = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, fo
|
|
|
122
128
|
children: children
|
|
123
129
|
}))
|
|
124
130
|
});
|
|
125
|
-
})
|
|
131
|
+
});
|
|
126
132
|
const styles = StyleSheet.create({
|
|
127
133
|
container: {
|
|
128
134
|
overflow: 'hidden'
|
package/esm/controls/Checkbox.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["children", "accessibilityLabel", "accessibilityHint", "accessible"];
|
|
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 { Animated } from 'react-native';
|
|
6
7
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
7
8
|
import { useTheme } from '../hooks/useTheme';
|
|
@@ -71,7 +72,11 @@ const CheckboxIcon = /*#__PURE__*/memo(_ref => {
|
|
|
71
72
|
})
|
|
72
73
|
});
|
|
73
74
|
});
|
|
74
|
-
const CheckboxWithRef =
|
|
75
|
+
const CheckboxWithRef = function Checkbox(_ref2) {
|
|
76
|
+
let {
|
|
77
|
+
ref
|
|
78
|
+
} = _ref2,
|
|
79
|
+
_props = _objectWithoutPropertiesLoose(_ref2, _excluded);
|
|
75
80
|
const mergedProps = useComponentConfig('Checkbox', _props);
|
|
76
81
|
const {
|
|
77
82
|
children,
|
|
@@ -79,7 +84,7 @@ const CheckboxWithRef = /*#__PURE__*/forwardRef(function Checkbox(_props, ref) {
|
|
|
79
84
|
accessibilityHint,
|
|
80
85
|
accessible = true
|
|
81
86
|
} = mergedProps,
|
|
82
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
87
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
83
88
|
const accessibilityLabelValue = typeof children === 'string' && accessibilityLabel === undefined ? children : accessibilityLabel;
|
|
84
89
|
const accessibilityHintValue = typeof children === 'string' && accessibilityHint === undefined ? children : accessibilityHint;
|
|
85
90
|
return /*#__PURE__*/_jsx(Control, _extends({
|
|
@@ -93,8 +98,7 @@ const CheckboxWithRef = /*#__PURE__*/forwardRef(function Checkbox(_props, ref) {
|
|
|
93
98
|
}, props, {
|
|
94
99
|
children: CheckboxIcon
|
|
95
100
|
}));
|
|
96
|
-
|
|
97
|
-
});
|
|
101
|
+
};
|
|
98
102
|
|
|
99
|
-
//
|
|
103
|
+
// Preserve generic call signature through React.memo
|
|
100
104
|
export const Checkbox = /*#__PURE__*/memo(CheckboxWithRef);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["title", "description", "checked", "onChange", "disabled", "columnGap", "rowGap", "padding", "borderWidth", "borderRadius", "background", "borderColor", "controlColor", "controlSize", "accessibilityLabel", "accessibilityHint", "testID", "value", "width", "style", "contentStyle", "wrapperStyles", "onPressIn", "onPressOut", "pressedBorderColor", "pressedBorderWidth", "indeterminate", "readOnly", "styles"];
|
|
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, useState } from 'react';
|
|
5
6
|
import { Animated } from 'react-native';
|
|
6
7
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
7
8
|
import { useLayout } from '../hooks/useLayout';
|
|
@@ -14,7 +15,11 @@ import { Pressable } from '../system/Pressable';
|
|
|
14
15
|
import { Text } from '../typography/Text';
|
|
15
16
|
import { Checkbox } from './Checkbox';
|
|
16
17
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
-
const CheckboxCellWithRef =
|
|
18
|
+
const CheckboxCellWithRef = function CheckboxCell(_ref) {
|
|
19
|
+
let {
|
|
20
|
+
ref
|
|
21
|
+
} = _ref,
|
|
22
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
18
23
|
const mergedProps = useComponentConfig('CheckboxCell', _props);
|
|
19
24
|
const {
|
|
20
25
|
title,
|
|
@@ -47,7 +52,7 @@ const CheckboxCellWithRef = /*#__PURE__*/forwardRef(function CheckboxCell(_props
|
|
|
47
52
|
readOnly,
|
|
48
53
|
styles
|
|
49
54
|
} = mergedProps,
|
|
50
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
55
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
51
56
|
const theme = useTheme();
|
|
52
57
|
const [layout, setLayout] = useLayout();
|
|
53
58
|
const [pressed, setPressed] = useState(false);
|
|
@@ -191,6 +196,6 @@ const CheckboxCellWithRef = /*#__PURE__*/forwardRef(function CheckboxCell(_props
|
|
|
191
196
|
style: mergedFocusRingStyle
|
|
192
197
|
})]
|
|
193
198
|
});
|
|
194
|
-
}
|
|
199
|
+
};
|
|
195
200
|
export const CheckboxCell = /*#__PURE__*/memo(CheckboxCellWithRef);
|
|
196
201
|
CheckboxCell.displayName = 'CheckboxCell';
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
const _excluded = ["children", "label", "accessibilityLabel", "onChange", "selectedValues", "testID"],
|
|
1
|
+
const _excluded = ["ref", "children", "label", "accessibilityLabel", "onChange", "selectedValues", "testID"],
|
|
2
2
|
_excluded2 = ["value", "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
|
-
import React, { Children,
|
|
5
|
+
import React, { Children, isValidElement, memo, useMemo } from 'react';
|
|
6
6
|
import { isDevelopment } from '@coinbase/cds-utils';
|
|
7
7
|
import { Checkbox } from './Checkbox';
|
|
8
8
|
import { ControlGroup } from './ControlGroup';
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
// Follows behavior describe in https://www.w3.org/TR/wai-aria-practices/examples/checkbox/checkbox-2/checkbox-2.html
|
|
11
|
-
const CheckboxGroupWithRef =
|
|
11
|
+
const CheckboxGroupWithRef = function CheckboxGroupWithRef(_ref) {
|
|
12
12
|
let {
|
|
13
|
+
ref,
|
|
13
14
|
children,
|
|
14
15
|
label,
|
|
15
16
|
accessibilityLabel,
|
|
@@ -69,10 +70,9 @@ const CheckboxGroupWithRef = /*#__PURE__*/forwardRef(function CheckboxGroupWithR
|
|
|
69
70
|
testID: testID,
|
|
70
71
|
value: selectedValuesArray
|
|
71
72
|
}, restProps));
|
|
72
|
-
|
|
73
|
-
});
|
|
73
|
+
};
|
|
74
74
|
|
|
75
|
-
//
|
|
75
|
+
// Preserve generic call signature through React.memo
|
|
76
76
|
/**
|
|
77
77
|
* @deprecated CheckboxGroup is deprecated. Use ControlGroup with accessibilityRole="combobox" instead. This will be removed in a future major release.
|
|
78
78
|
* @deprecationExpectedRemoval v8
|
package/esm/controls/Control.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["testID", "label", "checked", "indeterminate", "disabled", "readOnly", "onChange", "hitSlop", "value", "controlColor", "elevation", "accessibilityRole", "accessibilityLabel", "accessibilityHint", "children", "shouldUseSwitchTransition", "accessible", "style", "color", "background", "borderColor", "borderRadius", "borderWidth", "controlSize", "dotSize"];
|
|
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, useMemo, useRef } from 'react';
|
|
5
6
|
import { I18nManager, Keyboard, Pressable, View } from 'react-native';
|
|
6
7
|
import { accessibleOpacityDisabled, opacityPressed } from '@coinbase/cds-common/tokens/interactable';
|
|
7
8
|
import { isDevelopment } from '@coinbase/cds-utils';
|
|
@@ -11,7 +12,11 @@ import { Text } from '../typography/Text';
|
|
|
11
12
|
import { Haptics } from '../utils/haptics';
|
|
12
13
|
import { useControlMotionProps } from './useControlMotionProps';
|
|
13
14
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
const ControlWithRef =
|
|
15
|
+
const ControlWithRef = function ControlWithRef(_ref) {
|
|
16
|
+
let {
|
|
17
|
+
ref
|
|
18
|
+
} = _ref,
|
|
19
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
15
20
|
const mergedProps = useComponentConfig('Control', _props);
|
|
16
21
|
const {
|
|
17
22
|
testID,
|
|
@@ -40,7 +45,7 @@ const ControlWithRef = /*#__PURE__*/forwardRef(function ControlWithRef(_props, r
|
|
|
40
45
|
controlSize,
|
|
41
46
|
dotSize
|
|
42
47
|
} = mergedProps,
|
|
43
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
48
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
44
49
|
const theme = useTheme();
|
|
45
50
|
if (isDevelopment() && accessible && !label && !accessibilityLabel) {
|
|
46
51
|
console.warn("Please specify an accessibility label for the " + accessibilityRole + " control with value " + value + ".");
|
|
@@ -100,10 +105,10 @@ const ControlWithRef = /*#__PURE__*/forwardRef(function ControlWithRef(_props, r
|
|
|
100
105
|
const handleAccessibilityAction = useCallback(event => {
|
|
101
106
|
if (event.nativeEvent.actionName === 'activate') handlePress();
|
|
102
107
|
}, [handlePress]);
|
|
103
|
-
const controlIcon = useCallback(
|
|
108
|
+
const controlIcon = useCallback(_ref2 => {
|
|
104
109
|
let {
|
|
105
110
|
pressed
|
|
106
|
-
} =
|
|
111
|
+
} = _ref2;
|
|
107
112
|
/**
|
|
108
113
|
* If the control has label, the label's lineHeight doesn't match the icon size. We need to
|
|
109
114
|
* wrap the icon with a container that match the lineHeight of the label typography and
|
|
@@ -156,8 +161,7 @@ const ControlWithRef = /*#__PURE__*/forwardRef(function ControlWithRef(_props, r
|
|
|
156
161
|
}, props, {
|
|
157
162
|
children: controlIcon
|
|
158
163
|
}));
|
|
159
|
-
|
|
160
|
-
});
|
|
164
|
+
};
|
|
161
165
|
|
|
162
|
-
//
|
|
166
|
+
// Preserve generic call signature through React.memo
|
|
163
167
|
export const Control = /*#__PURE__*/memo(ControlWithRef);
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["ControlComponent", "options", "label", "aria-labelledby", "aria-label", "onChange", "value", "testID", "gap", "role"];
|
|
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 { isDevelopment } from '@coinbase/cds-utils';
|
|
6
7
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
7
8
|
import { Group } from '../layout/Group';
|
|
8
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
-
const ControlGroupWithRef =
|
|
10
|
+
const ControlGroupWithRef = function ControlGroup(_ref) {
|
|
11
|
+
let {
|
|
12
|
+
ref
|
|
13
|
+
} = _ref,
|
|
14
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
10
15
|
const mergedProps = useComponentConfig('ControlGroup', _props);
|
|
11
16
|
const {
|
|
12
17
|
ControlComponent,
|
|
@@ -20,7 +25,7 @@ const ControlGroupWithRef = /*#__PURE__*/forwardRef(function ControlGroup(_props
|
|
|
20
25
|
gap = 2,
|
|
21
26
|
role = 'group'
|
|
22
27
|
} = mergedProps,
|
|
23
|
-
restProps = _objectWithoutPropertiesLoose(mergedProps,
|
|
28
|
+
restProps = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
24
29
|
if (isDevelopment() && !label && !ariaLabelledby && !ariaLabel) {
|
|
25
30
|
console.warn('Please specify a label or aria-labelledby for the ControlGroup.');
|
|
26
31
|
}
|
|
@@ -44,5 +49,5 @@ const ControlGroupWithRef = /*#__PURE__*/forwardRef(function ControlGroup(_props
|
|
|
44
49
|
}, optionProps), optionValue);
|
|
45
50
|
})]
|
|
46
51
|
}));
|
|
47
|
-
}
|
|
52
|
+
};
|
|
48
53
|
export const ControlGroup = /*#__PURE__*/memo(ControlGroupWithRef);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const _excluded = ["disableInheritFocusStyle", "testID", "variant", "accessibilityLabel", "accessibilityHint"];
|
|
1
|
+
const _excluded = ["ref", "disableInheritFocusStyle", "testID", "variant", "accessibilityLabel", "accessibilityHint"];
|
|
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, useContext } from 'react';
|
|
5
5
|
import { IconButton } from '../buttons/IconButton';
|
|
6
6
|
import { Box } from '../layout/Box';
|
|
7
7
|
import { TextInputFocusVariantContext } from './context';
|
|
@@ -14,8 +14,9 @@ export const variantTransformMap = {
|
|
|
14
14
|
foregroundMuted: 'secondary',
|
|
15
15
|
secondary: 'secondary'
|
|
16
16
|
};
|
|
17
|
-
export const InputIconButton = /*#__PURE__*/memo(
|
|
17
|
+
export const InputIconButton = /*#__PURE__*/memo(function InputIconButton(_ref) {
|
|
18
18
|
let {
|
|
19
|
+
ref,
|
|
19
20
|
disableInheritFocusStyle = false,
|
|
20
21
|
testID,
|
|
21
22
|
variant = 'primary',
|
|
@@ -37,4 +38,4 @@ export const InputIconButton = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(functio
|
|
|
37
38
|
variant: disableInheritFocusStyle ? variant : transformedVariant
|
|
38
39
|
}, props))
|
|
39
40
|
});
|
|
40
|
-
})
|
|
41
|
+
});
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
const _excluded = ["containerSpacing", "testID", "align", "disabled", "textAlign", "font", "accessibilityLabel", "compact", "selectionColor", "style"];
|
|
1
|
+
const _excluded = ["ref", "containerSpacing", "testID", "align", "disabled", "textAlign", "font", "accessibilityLabel", "compact", "selectionColor", "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 { TextInput } from 'react-native';
|
|
6
6
|
import { useTextAlign } from '../hooks/useTextAlign';
|
|
7
7
|
import { useTheme } from '../hooks/useTheme';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
export const NativeInput = /*#__PURE__*/memo(
|
|
9
|
+
export const NativeInput = /*#__PURE__*/memo(_ref => {
|
|
10
10
|
let {
|
|
11
|
+
ref,
|
|
11
12
|
containerSpacing,
|
|
12
13
|
testID = '',
|
|
13
14
|
align = 'start',
|
|
@@ -63,4 +64,4 @@ export const NativeInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref)
|
|
|
63
64
|
testID: testID,
|
|
64
65
|
textAlign: textAlign !== 'unset' ? textAlign : undefined
|
|
65
66
|
}, editableInputAddonProps));
|
|
66
|
-
})
|
|
67
|
+
});
|
package/esm/controls/Radio.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["children", "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 React, {
|
|
5
|
+
import React, { memo } from 'react';
|
|
5
6
|
import { Animated, StyleSheet } from 'react-native';
|
|
6
7
|
import { Circle, Svg } from 'react-native-svg';
|
|
7
8
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
@@ -85,14 +86,18 @@ const RadioIcon = _ref2 => {
|
|
|
85
86
|
})
|
|
86
87
|
});
|
|
87
88
|
};
|
|
88
|
-
const RadioWithRef =
|
|
89
|
+
const RadioWithRef = function Radio(_ref3) {
|
|
90
|
+
let {
|
|
91
|
+
ref
|
|
92
|
+
} = _ref3,
|
|
93
|
+
_props = _objectWithoutPropertiesLoose(_ref3, _excluded);
|
|
89
94
|
const mergedProps = useComponentConfig('Radio', _props);
|
|
90
95
|
const {
|
|
91
96
|
children,
|
|
92
97
|
accessibilityHint,
|
|
93
98
|
accessibilityLabel
|
|
94
99
|
} = mergedProps,
|
|
95
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
100
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
96
101
|
const accessibilityLabelValue = typeof children === 'string' && accessibilityLabel === undefined ? children : accessibilityLabel;
|
|
97
102
|
return /*#__PURE__*/_jsx(Control, _extends({
|
|
98
103
|
ref: ref,
|
|
@@ -104,8 +109,7 @@ const RadioWithRef = /*#__PURE__*/forwardRef(function Radio(_props, ref) {
|
|
|
104
109
|
}, props, {
|
|
105
110
|
children: RadioIcon
|
|
106
111
|
}));
|
|
107
|
-
|
|
108
|
-
});
|
|
112
|
+
};
|
|
109
113
|
|
|
110
|
-
//
|
|
114
|
+
// Preserve generic call signature through React.memo
|
|
111
115
|
export const Radio = /*#__PURE__*/memo(RadioWithRef);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["title", "description", "checked", "onChange", "disabled", "readOnly", "columnGap", "rowGap", "padding", "borderWidth", "borderRadius", "background", "borderColor", "controlColor", "accessibilityLabel", "accessibilityHint", "testID", "value", "width", "style", "contentStyle", "wrapperStyles", "onPressIn", "onPressOut", "pressedBorderColor", "pressedBorderWidth", "styles"];
|
|
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, useState } from 'react';
|
|
5
6
|
import { Animated } from 'react-native';
|
|
6
7
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
7
8
|
import { useLayout } from '../hooks/useLayout';
|
|
@@ -14,7 +15,11 @@ import { Pressable } from '../system/Pressable';
|
|
|
14
15
|
import { Text } from '../typography/Text';
|
|
15
16
|
import { Radio } from './Radio';
|
|
16
17
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
-
const RadioCellWithRef =
|
|
18
|
+
const RadioCellWithRef = function RadioCell(_ref) {
|
|
19
|
+
let {
|
|
20
|
+
ref
|
|
21
|
+
} = _ref,
|
|
22
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
18
23
|
const mergedProps = useComponentConfig('RadioCell', _props);
|
|
19
24
|
const {
|
|
20
25
|
title,
|
|
@@ -45,7 +50,7 @@ const RadioCellWithRef = /*#__PURE__*/forwardRef(function RadioCell(_props, ref)
|
|
|
45
50
|
pressedBorderWidth = 200,
|
|
46
51
|
styles
|
|
47
52
|
} = mergedProps,
|
|
48
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
53
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
49
54
|
const theme = useTheme();
|
|
50
55
|
const [layout, setLayout] = useLayout();
|
|
51
56
|
const [pressed, setPressed] = useState(false);
|
|
@@ -187,6 +192,6 @@ const RadioCellWithRef = /*#__PURE__*/forwardRef(function RadioCell(_props, ref)
|
|
|
187
192
|
style: mergedFocusRingStyle
|
|
188
193
|
})]
|
|
189
194
|
});
|
|
190
|
-
}
|
|
195
|
+
};
|
|
191
196
|
export const RadioCell = /*#__PURE__*/memo(RadioCellWithRef);
|
|
192
197
|
RadioCell.displayName = 'RadioCell';
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
const _excluded = ["label", "value", "onChange", "options", "testID", "controlColor", "accessibilityLabel", "accessibilityHint", "radioAccessibilityLabel"];
|
|
1
|
+
const _excluded = ["ref", "label", "value", "onChange", "options", "testID", "controlColor", "accessibilityLabel", "accessibilityHint", "radioAccessibilityLabel"];
|
|
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 { entries } from '@coinbase/cds-utils';
|
|
6
6
|
import { isDevelopment } from '@coinbase/cds-utils/env';
|
|
7
7
|
import { ControlGroup } from './ControlGroup';
|
|
8
8
|
import { Radio } from './Radio';
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
export { Radio };
|
|
11
|
-
const RadioGroupWithRef =
|
|
11
|
+
const RadioGroupWithRef = function RadioGroup(_ref) {
|
|
12
12
|
let {
|
|
13
|
+
ref,
|
|
13
14
|
label,
|
|
14
15
|
value,
|
|
15
16
|
onChange,
|
|
@@ -63,10 +64,9 @@ const RadioGroupWithRef = /*#__PURE__*/forwardRef(function RadioGroup(_ref, ref)
|
|
|
63
64
|
testID: testID,
|
|
64
65
|
value: value != null ? value : ''
|
|
65
66
|
}, props));
|
|
66
|
-
|
|
67
|
-
});
|
|
67
|
+
};
|
|
68
68
|
|
|
69
|
-
//
|
|
69
|
+
// Preserve generic call signature through React.memo
|
|
70
70
|
/**
|
|
71
71
|
* @deprecated RadioGroup is deprecated. Use ControlGroup with accessibilityRole="radiogroup" instead. This will be removed in a future major release.
|
|
72
72
|
* @deprecationExpectedRemoval v8
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["value", "testID", "onSearch", "onBack", "onChangeText", "onClear", "onFocus", "onBlur", "disabled", "disableBackArrow", "hideStartIcon", "hideEndIcon", "startIcon", "end", "startIconAccessibilityLabel", "clearIconAccessibilityLabel", "borderRadius"];
|
|
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, useState } from 'react';
|
|
5
6
|
import { useMergeRefs } from '@coinbase/cds-common/hooks/useMergeRefs';
|
|
6
7
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
7
8
|
import { Box } from '../layout/Box';
|
|
8
9
|
import { InputIconButton } from './InputIconButton';
|
|
9
10
|
import { TextInput } from './TextInput';
|
|
10
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
export const SearchInput = /*#__PURE__*/memo(
|
|
12
|
+
export const SearchInput = /*#__PURE__*/memo(_ref => {
|
|
13
|
+
let {
|
|
14
|
+
ref
|
|
15
|
+
} = _ref,
|
|
16
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
12
17
|
const mergedProps = useComponentConfig('SearchInput', _props);
|
|
13
18
|
const {
|
|
14
19
|
value,
|
|
@@ -29,7 +34,7 @@ export const SearchInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, re
|
|
|
29
34
|
clearIconAccessibilityLabel = 'Clear text',
|
|
30
35
|
borderRadius = 1000
|
|
31
36
|
} = mergedProps,
|
|
32
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
37
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
33
38
|
const [startIconName, setStartIconName] = useState(startIcon != null ? startIcon : 'search');
|
|
34
39
|
const internalRef = useRef(null);
|
|
35
40
|
const refs = useMergeRefs(ref, internalRef);
|
|
@@ -102,4 +107,4 @@ export const SearchInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, re
|
|
|
102
107
|
value: value,
|
|
103
108
|
variant: "secondary"
|
|
104
109
|
}, props));
|
|
105
|
-
})
|
|
110
|
+
});
|
package/esm/controls/Select.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
2
2
|
import { TouchableWithoutFeedback } from 'react-native';
|
|
3
3
|
import { animateCaretInConfig, animateCaretOutConfig } from '@coinbase/cds-common/animation/select';
|
|
4
4
|
import { useInputVariant } from '@coinbase/cds-common/hooks/useInputVariant';
|
|
@@ -31,9 +31,10 @@ const variantColorMap = {
|
|
|
31
31
|
* @deprecated Please use the new Select alpha component instead. This will be removed in a future major release.
|
|
32
32
|
* @deprecationExpectedRemoval v9
|
|
33
33
|
*/
|
|
34
|
-
export const Select = /*#__PURE__*/memo(
|
|
34
|
+
export const Select = /*#__PURE__*/memo(_ref => {
|
|
35
35
|
var _ref3;
|
|
36
36
|
let {
|
|
37
|
+
ref,
|
|
37
38
|
children,
|
|
38
39
|
placeholder,
|
|
39
40
|
label,
|
|
@@ -198,4 +199,4 @@ export const Select = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
198
199
|
}), isSelectTrayOpen && children]
|
|
199
200
|
})
|
|
200
201
|
});
|
|
201
|
-
})
|
|
202
|
+
});
|
package/esm/controls/Switch.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["children", "style", "styles"];
|
|
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 { StyleSheet } from 'react-native';
|
|
6
7
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
7
8
|
import { useTheme } from '../hooks/useTheme';
|
|
@@ -75,14 +76,18 @@ const SwitchIcon = _ref => {
|
|
|
75
76
|
})
|
|
76
77
|
});
|
|
77
78
|
};
|
|
78
|
-
const SwitchWithRef =
|
|
79
|
+
const SwitchWithRef = function SwitchWithRef(_ref2) {
|
|
80
|
+
let {
|
|
81
|
+
ref
|
|
82
|
+
} = _ref2,
|
|
83
|
+
_props = _objectWithoutPropertiesLoose(_ref2, _excluded);
|
|
79
84
|
const mergedProps = useComponentConfig('Switch', _props);
|
|
80
85
|
const {
|
|
81
86
|
children,
|
|
82
87
|
style,
|
|
83
88
|
styles
|
|
84
89
|
} = mergedProps,
|
|
85
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
90
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
86
91
|
const theme = useTheme();
|
|
87
92
|
const {
|
|
88
93
|
switchHeight
|
|
@@ -105,7 +110,7 @@ const SwitchWithRef = /*#__PURE__*/forwardRef(function SwitchWithRef(_props, ref
|
|
|
105
110
|
style: styles == null ? void 0 : styles.root,
|
|
106
111
|
children: switchNode
|
|
107
112
|
});
|
|
108
|
-
}
|
|
113
|
+
};
|
|
109
114
|
export const Switch = /*#__PURE__*/memo(SwitchWithRef);
|
|
110
115
|
const styles = StyleSheet.create({
|
|
111
116
|
thumb: {
|