@coinbase/cds-mobile 9.6.0 → 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 +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/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/TextFallback.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/TextFallback.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/system/Pressable.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
const _excluded = ["children", "disabled", "background", "block", "borderColor", "borderRadius", "borderWidth", "elevation", "contentStyle", "wrapperStyles", "blendStyles", "transparentWhileInactive", "transparentWhilePressed", "pin", "bordered", "borderedTop", "borderedBottom", "borderedStart", "borderedEnd", "borderedHorizontal", "borderedVertical", "dangerouslySetBackground", "display", "position", "overflow", "zIndex", "gap", "columnGap", "rowGap", "justifyContent", "alignContent", "alignItems", "alignSelf", "flexDirection", "flexWrap", "color", "borderTopLeftRadius", "borderTopRightRadius", "borderBottomLeftRadius", "borderBottomRightRadius", "borderTopWidth", "borderEndWidth", "borderBottomWidth", "borderStartWidth", "font", "fontFamily", "fontSize", "fontWeight", "lineHeight", "textAlign", "textDecorationStyle", "textDecorationLine", "textTransform", "padding", "paddingX", "paddingY", "paddingTop", "paddingBottom", "paddingStart", "paddingEnd", "margin", "marginX", "marginY", "marginTop", "marginBottom", "marginStart", "marginEnd", "userSelect", "width", "height", "minWidth", "minHeight", "maxWidth", "maxHeight", "aspectRatio", "top", "bottom", "left", "right", "transform", "flexBasis", "flexShrink", "flexGrow", "opacity", "disableDebounce", "feedback", "loading", "onPress", "onPressIn", "onPressOut", "noScaleOnPress", "style", "eventConfig", "analyticsId", "debounceTime", "testID"];
|
|
1
|
+
const _excluded = ["ref", "children", "disabled", "background", "block", "borderColor", "borderRadius", "borderWidth", "elevation", "contentStyle", "wrapperStyles", "blendStyles", "transparentWhileInactive", "transparentWhilePressed", "pin", "bordered", "borderedTop", "borderedBottom", "borderedStart", "borderedEnd", "borderedHorizontal", "borderedVertical", "dangerouslySetBackground", "display", "position", "overflow", "zIndex", "gap", "columnGap", "rowGap", "justifyContent", "alignContent", "alignItems", "alignSelf", "flexDirection", "flexWrap", "color", "borderTopLeftRadius", "borderTopRightRadius", "borderBottomLeftRadius", "borderBottomRightRadius", "borderTopWidth", "borderEndWidth", "borderBottomWidth", "borderStartWidth", "font", "fontFamily", "fontSize", "fontWeight", "lineHeight", "textAlign", "textDecorationStyle", "textDecorationLine", "textTransform", "padding", "paddingX", "paddingY", "paddingTop", "paddingBottom", "paddingStart", "paddingEnd", "margin", "marginX", "marginY", "marginTop", "marginBottom", "marginStart", "marginEnd", "userSelect", "width", "height", "minWidth", "minHeight", "maxWidth", "maxHeight", "aspectRatio", "top", "bottom", "left", "right", "transform", "flexBasis", "flexShrink", "flexGrow", "opacity", "disableDebounce", "feedback", "loading", "onPress", "onPressIn", "onPressOut", "noScaleOnPress", "style", "eventConfig", "analyticsId", "debounceTime", "testID"];
|
|
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, useMemo, useRef, useState } from 'react';
|
|
5
5
|
import { Pressable as NativePressable } from 'react-native';
|
|
6
6
|
import { useEventHandler } from '@coinbase/cds-common/hooks/useEventHandler';
|
|
7
7
|
import { usePressAnimation } from '../hooks/usePressAnimation';
|
|
8
8
|
import { Haptics } from '../utils/haptics';
|
|
9
9
|
import { Interactable } from './Interactable';
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
export const Pressable = /*#__PURE__*/memo(
|
|
11
|
+
export const Pressable = /*#__PURE__*/memo(function Pressable(_ref) {
|
|
12
12
|
let {
|
|
13
|
+
ref: forwardedRef,
|
|
13
14
|
// Interactable
|
|
14
15
|
children,
|
|
15
16
|
disabled,
|
|
@@ -252,4 +253,4 @@ export const Pressable = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Pres
|
|
|
252
253
|
children: children
|
|
253
254
|
})
|
|
254
255
|
}));
|
|
255
|
-
})
|
|
256
|
+
});
|
package/esm/tabs/DefaultTab.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const _excluded = ["id", "label", "disabled", "onPress", "count", "max", "accessibilityLabel", "style", "testID", "color", "activeColor"];
|
|
1
|
+
const _excluded = ["ref", "id", "label", "disabled", "onPress", "count", "max", "accessibilityLabel", "style", "testID", "color", "activeColor"];
|
|
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 } from 'react';
|
|
5
5
|
import { Pressable } from 'react-native';
|
|
6
6
|
import { useTabsContext } from '@coinbase/cds-common/tabs/TabsContext';
|
|
7
7
|
import { accessibleOpacityDisabled } from '@coinbase/cds-common/tokens/interactable';
|
|
@@ -12,8 +12,9 @@ import { Text } from '../typography/Text';
|
|
|
12
12
|
|
|
13
13
|
/** Optional dot count and a11y overrides for the default tab row. */
|
|
14
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
-
const DefaultTabComponent = /*#__PURE__*/memo(
|
|
15
|
+
const DefaultTabComponent = /*#__PURE__*/memo(_ref => {
|
|
16
16
|
let {
|
|
17
|
+
ref,
|
|
17
18
|
id,
|
|
18
19
|
label,
|
|
19
20
|
disabled: disabledProp,
|
|
@@ -68,6 +69,6 @@ const DefaultTabComponent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref
|
|
|
68
69
|
})]
|
|
69
70
|
})
|
|
70
71
|
}));
|
|
71
|
-
})
|
|
72
|
+
});
|
|
72
73
|
DefaultTabComponent.displayName = 'DefaultTab';
|
|
73
74
|
export const DefaultTab = DefaultTabComponent;
|
package/esm/tabs/SegmentedTab.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["id", "label", "disabled", "onPress", "color", "activeColor", "style", "aria-selected", "accessibilityRole", "testID", "font", "fontFamily", "fontSize", "fontWeight", "lineHeight"];
|
|
2
3
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
4
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
|
-
import React, {
|
|
5
|
+
import React, { memo, useCallback, useMemo } from 'react';
|
|
5
6
|
import Animated, { useAnimatedStyle, useSharedValue, withSpring } from 'react-native-reanimated';
|
|
6
7
|
import { useTabsContext } from '@coinbase/cds-common/tabs/TabsContext';
|
|
7
8
|
import { accessibleOpacityDisabled } from '@coinbase/cds-common/tokens/interactable';
|
|
@@ -13,7 +14,11 @@ import { Text } from '../typography/Text';
|
|
|
13
14
|
import { tabsSpringConfig } from './Tabs';
|
|
14
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
16
|
const AnimatedTextHeadline = Animated.createAnimatedComponent(Text);
|
|
16
|
-
const SegmentedTabComponent = /*#__PURE__*/memo(
|
|
17
|
+
const SegmentedTabComponent = /*#__PURE__*/memo(_ref => {
|
|
18
|
+
let {
|
|
19
|
+
ref
|
|
20
|
+
} = _ref,
|
|
21
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
17
22
|
const mergedProps = useComponentConfig('SegmentedTab', _props);
|
|
18
23
|
const {
|
|
19
24
|
id,
|
|
@@ -32,7 +37,7 @@ const SegmentedTabComponent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props,
|
|
|
32
37
|
fontWeight,
|
|
33
38
|
lineHeight
|
|
34
39
|
} = mergedProps,
|
|
35
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
40
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
36
41
|
const {
|
|
37
42
|
activeTab,
|
|
38
43
|
updateActiveTab,
|
|
@@ -82,6 +87,6 @@ const SegmentedTabComponent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props,
|
|
|
82
87
|
}) : label
|
|
83
88
|
})
|
|
84
89
|
}));
|
|
85
|
-
})
|
|
90
|
+
});
|
|
86
91
|
SegmentedTabComponent.displayName = 'SegmentedTab';
|
|
87
92
|
export const SegmentedTab = SegmentedTabComponent;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["TabComponent", "TabsActiveIndicatorComponent", "activeBackground", "background", "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 } from 'react';
|
|
5
6
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
6
7
|
import { SegmentedTab } from './SegmentedTab';
|
|
7
8
|
import { SegmentedTabsActiveIndicator } from './SegmentedTabsActiveIndicator';
|
|
@@ -10,7 +11,11 @@ import { Tabs } from './Tabs';
|
|
|
10
11
|
// We do Partial/Pick to allow TabComponent and TabsActiveIndicatorComponent to be optional
|
|
11
12
|
// We grab 'tabs' from the Omit allowing it to stay required
|
|
12
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
const SegmentedTabsComponent = /*#__PURE__*/memo(
|
|
14
|
+
const SegmentedTabsComponent = /*#__PURE__*/memo(_ref => {
|
|
15
|
+
let {
|
|
16
|
+
ref
|
|
17
|
+
} = _ref,
|
|
18
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
14
19
|
const mergedProps = useComponentConfig('SegmentedTabs', _props);
|
|
15
20
|
const {
|
|
16
21
|
TabComponent = SegmentedTab,
|
|
@@ -19,7 +24,7 @@ const SegmentedTabsComponent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props
|
|
|
19
24
|
background = 'bgSecondary',
|
|
20
25
|
borderRadius = 700
|
|
21
26
|
} = mergedProps,
|
|
22
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
27
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
23
28
|
return /*#__PURE__*/_jsx(Tabs, _extends({
|
|
24
29
|
ref: ref,
|
|
25
30
|
TabComponent: TabComponent,
|
|
@@ -28,6 +33,6 @@ const SegmentedTabsComponent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props
|
|
|
28
33
|
background: background,
|
|
29
34
|
borderRadius: borderRadius
|
|
30
35
|
}, props));
|
|
31
|
-
})
|
|
36
|
+
});
|
|
32
37
|
SegmentedTabsComponent.displayName = 'SegmentedTabs';
|
|
33
38
|
export const SegmentedTabs = SegmentedTabsComponent;
|
package/esm/tabs/TabIndicator.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
const _excluded = ["width", "x", "background", "testID"];
|
|
1
|
+
const _excluded = ["ref", "width", "x", "background", "testID"];
|
|
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 { Animated } from 'react-native';
|
|
6
6
|
import { Box } from '../layout/Box';
|
|
7
7
|
import { useTabIndicatorStyles } from './hooks/useTabIndicatorStyles';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
/** @deprecated Use DefaultTabsActiveIndicator instead. This will be removed in a future major release. */
|
|
10
10
|
/** @deprecationExpectedRemoval v10 */
|
|
11
|
-
export const TabIndicator = /*#__PURE__*/memo(
|
|
11
|
+
export const TabIndicator = /*#__PURE__*/memo(_ref => {
|
|
12
12
|
let {
|
|
13
|
+
ref: forwardedRef,
|
|
13
14
|
width,
|
|
14
15
|
x,
|
|
15
16
|
background = 'bg',
|
|
@@ -44,5 +45,5 @@ export const TabIndicator = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, for
|
|
|
44
45
|
})
|
|
45
46
|
})
|
|
46
47
|
}));
|
|
47
|
-
})
|
|
48
|
+
});
|
|
48
49
|
TabIndicator.displayName = 'TabIndicator';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const _excluded = ["tabs", "value", "variant", "testID", "background", "onChange", "Component", "gap", "role"];
|
|
1
|
+
const _excluded = ["ref", "tabs", "value", "variant", "testID", "background", "onChange", "Component", "gap", "role"];
|
|
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, useMemo, useState } from 'react';
|
|
5
5
|
import { ScrollView, View } from 'react-native';
|
|
6
6
|
import { isDevelopment } from '@coinbase/cds-utils';
|
|
7
7
|
import { useHorizontallyScrollingPressables } from '../hooks/useHorizontallyScrollingPressables';
|
|
@@ -33,8 +33,9 @@ import { TabLabel } from './TabLabel';
|
|
|
33
33
|
* @deprecationExpectedRemoval v10
|
|
34
34
|
*/
|
|
35
35
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
36
|
-
const TabNavigationComponent = /*#__PURE__*/memo(
|
|
36
|
+
const TabNavigationComponent = /*#__PURE__*/memo(_ref => {
|
|
37
37
|
let {
|
|
38
|
+
ref: forwardedRef,
|
|
38
39
|
tabs,
|
|
39
40
|
value = tabs[0].id,
|
|
40
41
|
variant = 'primary',
|
|
@@ -160,7 +161,7 @@ const TabNavigationComponent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref,
|
|
|
160
161
|
})
|
|
161
162
|
}), isScrollContentOverflowing && isScrollContentOffscreenRight ? /*#__PURE__*/_jsx(OverflowGradient, {}) : null]
|
|
162
163
|
}));
|
|
163
|
-
})
|
|
164
|
+
});
|
|
164
165
|
|
|
165
166
|
/**
|
|
166
167
|
* TabNavigation renders a horizontal, tab-based navigation bar.
|
package/esm/tabs/Tabs.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
const _excluded = ["id", "registerRef"],
|
|
2
|
-
_excluded2 = ["
|
|
3
|
-
_excluded3 = ["
|
|
4
|
-
_excluded4 = ["
|
|
2
|
+
_excluded2 = ["ref"],
|
|
3
|
+
_excluded3 = ["tabs", "TabComponent", "TabsActiveIndicatorComponent", "activeBackground", "color", "activeColor", "activeTab", "disabled", "onChange", "styles", "style", "role", "position", "alignSelf", "opacity", "onActiveTabElementChange", "borderRadius", "borderTopLeftRadius", "borderTopRightRadius", "borderBottomLeftRadius", "borderBottomRightRadius", "testID"],
|
|
4
|
+
_excluded4 = ["id", "Component"],
|
|
5
|
+
_excluded5 = ["activeTabRect", "position", "style", "testID"];
|
|
5
6
|
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); }
|
|
6
7
|
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; }
|
|
7
|
-
import React, {
|
|
8
|
+
import React, { memo, useCallback, useImperativeHandle, useRef, useState } from 'react';
|
|
8
9
|
import { View } from 'react-native';
|
|
9
10
|
import Animated, { useAnimatedStyle, useSharedValue, withSpring } from 'react-native-reanimated';
|
|
10
11
|
import { useRefMap } from '@coinbase/cds-common/hooks/useRefMap';
|
|
@@ -38,7 +39,11 @@ export const tabsSpringConfig = {
|
|
|
38
39
|
damping: 10,
|
|
39
40
|
overshootClamping: true
|
|
40
41
|
};
|
|
41
|
-
const TabsComponent = /*#__PURE__*/memo(
|
|
42
|
+
const TabsComponent = /*#__PURE__*/memo(_ref2 => {
|
|
43
|
+
let {
|
|
44
|
+
ref
|
|
45
|
+
} = _ref2,
|
|
46
|
+
_props = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
42
47
|
const mergedProps = useComponentConfig('Tabs', _props);
|
|
43
48
|
const {
|
|
44
49
|
tabs,
|
|
@@ -64,7 +69,7 @@ const TabsComponent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) =>
|
|
|
64
69
|
borderBottomRightRadius,
|
|
65
70
|
testID
|
|
66
71
|
} = mergedProps,
|
|
67
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
72
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded3);
|
|
68
73
|
const tabsContainerRef = useRef(null);
|
|
69
74
|
useImperativeHandle(ref, () => tabsContainerRef.current, []); // merge internal ref to forwarded ref
|
|
70
75
|
|
|
@@ -130,7 +135,7 @@ const TabsComponent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) =>
|
|
|
130
135
|
id,
|
|
131
136
|
Component: CustomTabComponent
|
|
132
137
|
} = tabProps,
|
|
133
|
-
tabRest = _objectWithoutPropertiesLoose(tabProps,
|
|
138
|
+
tabRest = _objectWithoutPropertiesLoose(tabProps, _excluded4);
|
|
134
139
|
const RenderedTab = CustomTabComponent != null ? CustomTabComponent : TabComponent;
|
|
135
140
|
const renderedTabProps = _extends({
|
|
136
141
|
activeColor,
|
|
@@ -147,17 +152,17 @@ const TabsComponent = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) =>
|
|
|
147
152
|
})]
|
|
148
153
|
})
|
|
149
154
|
}));
|
|
150
|
-
})
|
|
155
|
+
});
|
|
151
156
|
TabsComponent.displayName = 'Tabs';
|
|
152
157
|
export const Tabs = TabsComponent;
|
|
153
|
-
export const TabsActiveIndicator =
|
|
158
|
+
export const TabsActiveIndicator = _ref3 => {
|
|
154
159
|
let {
|
|
155
160
|
activeTabRect,
|
|
156
161
|
position = 'absolute',
|
|
157
162
|
style,
|
|
158
163
|
testID = 'tabs-active-indicator'
|
|
159
|
-
} =
|
|
160
|
-
props = _objectWithoutPropertiesLoose(
|
|
164
|
+
} = _ref3,
|
|
165
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded5);
|
|
161
166
|
const previousActiveTabRect = useRef(activeTabRect);
|
|
162
167
|
const newActiveTabRect = {
|
|
163
168
|
x: activeTabRect.x,
|
package/esm/tag/Tag.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const _excluded = ["
|
|
1
|
+
const _excluded = ["ref"],
|
|
2
|
+
_excluded2 = ["children", "intent", "emphasis", "colorScheme", "background", "color", "start", "startIcon", "startIconActive", "end", "endIcon", "endIconActive", "alignItems", "flexDirection", "gap", "justifyContent", "paddingX", "paddingY", "font", "fontFamily", "fontSize", "fontWeight", "lineHeight", "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 { tagBorderRadiusMap, tagEmphasisColorMap, tagFontMap, tagHorizontalSpacing } from '@coinbase/cds-common/tokens/tags';
|
|
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 { Box } from '../layout/Box';
|
|
10
11
|
import { Text } from '../typography/Text';
|
|
11
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
-
export const Tag = /*#__PURE__*/memo(
|
|
13
|
+
export const Tag = /*#__PURE__*/memo(_ref => {
|
|
14
|
+
let {
|
|
15
|
+
ref: forwardedRef
|
|
16
|
+
} = _ref,
|
|
17
|
+
_props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
13
18
|
const mergedProps = useComponentConfig('Tag', _props);
|
|
14
19
|
const {
|
|
15
20
|
children,
|
|
@@ -37,7 +42,7 @@ export const Tag = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, forwardedR
|
|
|
37
42
|
lineHeight,
|
|
38
43
|
testID = 'cds-tag'
|
|
39
44
|
} = mergedProps,
|
|
40
|
-
props = _objectWithoutPropertiesLoose(mergedProps,
|
|
45
|
+
props = _objectWithoutPropertiesLoose(mergedProps, _excluded2);
|
|
41
46
|
const theme = useTheme();
|
|
42
47
|
const {
|
|
43
48
|
background,
|
|
@@ -84,4 +89,4 @@ export const Tag = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, forwardedR
|
|
|
84
89
|
size: "xs"
|
|
85
90
|
}) : null]
|
|
86
91
|
}));
|
|
87
|
-
})
|
|
92
|
+
});
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { memo, useMemo } from 'react';
|
|
2
2
|
import { Box } from '../layout/Box';
|
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
export const DefaultTourStepArrow = /*#__PURE__*/memo(
|
|
4
|
+
export const DefaultTourStepArrow = /*#__PURE__*/memo(_ref => {
|
|
5
5
|
var _arrow$centerOffset;
|
|
6
6
|
let {
|
|
7
|
+
ref,
|
|
7
8
|
placement,
|
|
8
9
|
arrow,
|
|
9
10
|
style
|
|
@@ -34,4 +35,4 @@ export const DefaultTourStepArrow = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_
|
|
|
34
35
|
testID: "tour-step-arrow",
|
|
35
36
|
width: 24
|
|
36
37
|
});
|
|
37
|
-
})
|
|
38
|
+
});
|
package/esm/tour/Tour.js
CHANGED
|
@@ -49,7 +49,11 @@ const TourComponent = _props => {
|
|
|
49
49
|
const defaultTourStepShiftPadding = theme.space[4];
|
|
50
50
|
const tourStepArrowRef = useRef(null);
|
|
51
51
|
const RenderedTourStep = activeTourStep == null ? void 0 : activeTourStep.Component;
|
|
52
|
-
// activeTourStep.ArrowComponent
|
|
52
|
+
// activeTourStep.ArrowComponent is typed by cds-common, which still uses the legacy
|
|
53
|
+
// `React.ForwardRefExoticComponent<…>` shape (kept intact because cds-web has not yet
|
|
54
|
+
// migrated off `React.forwardRef`). Mobile has migrated to React 19's ref-as-prop callable
|
|
55
|
+
// shape; runtime is equivalent under React 19. The cast also bridges the platform-agnostic
|
|
56
|
+
// style prop in common (`Record<string, string | number>`) with mobile's `StyleProp<ViewStyle>`.
|
|
53
57
|
const RenderedTourStepArrow = (_ref = activeTourStep == null ? void 0 : activeTourStep.ArrowComponent) != null ? _ref : TourStepArrowComponent;
|
|
54
58
|
const [animation, animationApi] = useSpring(() => ({
|
|
55
59
|
from: {
|
package/esm/typography/Text.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const _excluded = ["children", "style", "animated", "disabled", "mono", "underline", "tabularNumbers", "numberOfLines", "ellipsize", "noWrap", "testID", "dangerouslySetColor", "dangerouslySetBackground", "display", "position", "overflow", "zIndex", "gap", "columnGap", "rowGap", "justifyContent", "alignContent", "alignItems", "alignSelf", "flexDirection", "flexWrap", "color", "background", "borderColor", "borderTopLeftRadius", "borderTopRightRadius", "borderBottomLeftRadius", "borderBottomRightRadius", "borderTopWidth", "borderEndWidth", "borderBottomWidth", "borderStartWidth", "elevation", "borderWidth", "borderRadius", "font", "fontFamily", "fontSize", "fontWeight", "lineHeight", "align", "textDecorationStyle", "textDecorationLine", "textTransform", "padding", "paddingX", "paddingY", "paddingTop", "paddingBottom", "paddingStart", "paddingEnd", "margin", "marginX", "marginY", "marginTop", "marginBottom", "marginStart", "marginEnd", "userSelect", "width", "height", "minWidth", "minHeight", "maxWidth", "maxHeight", "aspectRatio", "top", "bottom", "left", "right", "transform", "flexBasis", "flexShrink", "flexGrow", "opacity", "renderEmptyNode", "accessibilityRole"];
|
|
1
|
+
const _excluded = ["ref", "children", "style", "animated", "disabled", "mono", "underline", "tabularNumbers", "numberOfLines", "ellipsize", "noWrap", "testID", "dangerouslySetColor", "dangerouslySetBackground", "display", "position", "overflow", "zIndex", "gap", "columnGap", "rowGap", "justifyContent", "alignContent", "alignItems", "alignSelf", "flexDirection", "flexWrap", "color", "background", "borderColor", "borderTopLeftRadius", "borderTopRightRadius", "borderBottomLeftRadius", "borderBottomRightRadius", "borderTopWidth", "borderEndWidth", "borderBottomWidth", "borderStartWidth", "elevation", "borderWidth", "borderRadius", "font", "fontFamily", "fontSize", "fontWeight", "lineHeight", "align", "textDecorationStyle", "textDecorationLine", "textTransform", "padding", "paddingX", "paddingY", "paddingTop", "paddingBottom", "paddingStart", "paddingEnd", "margin", "marginX", "marginY", "marginTop", "marginBottom", "marginStart", "marginEnd", "userSelect", "width", "height", "minWidth", "minHeight", "maxWidth", "maxHeight", "aspectRatio", "top", "bottom", "left", "right", "transform", "flexBasis", "flexShrink", "flexGrow", "opacity", "renderEmptyNode", "accessibilityRole"];
|
|
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 { Animated, StyleSheet, Text as NativeText } from 'react-native';
|
|
6
6
|
import { accessibleOpacityDisabled } from '@coinbase/cds-common/tokens/interactable';
|
|
7
7
|
import { useTextAlign } from '../hooks/useTextAlign';
|
|
@@ -23,9 +23,10 @@ const styles = StyleSheet.create({
|
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
const HEADER_FONTS = new Set(['display1', 'display2', 'display3', 'title1', 'title2']);
|
|
26
|
-
export const Text = /*#__PURE__*/memo(
|
|
26
|
+
export const Text = /*#__PURE__*/memo(_ref => {
|
|
27
27
|
var _theme$fontFamilyMono;
|
|
28
28
|
let {
|
|
29
|
+
ref,
|
|
29
30
|
children,
|
|
30
31
|
style,
|
|
31
32
|
animated,
|
|
@@ -204,5 +205,5 @@ export const Text = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
204
205
|
}, props, {
|
|
205
206
|
children: children
|
|
206
207
|
}));
|
|
207
|
-
})
|
|
208
|
+
});
|
|
208
209
|
Text.displayName = 'Text';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const _excluded = ["font"];
|
|
1
|
+
const _excluded = ["ref", "font"];
|
|
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 { Text } from './Text';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -18,8 +18,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
18
18
|
* @deprecated Use `Text` with `font="body"` instead. This will be removed in a future major release.
|
|
19
19
|
* @deprecationExpectedRemoval v10
|
|
20
20
|
*/
|
|
21
|
-
export const TextBody = /*#__PURE__*/memo(
|
|
21
|
+
export const TextBody = /*#__PURE__*/memo(_ref => {
|
|
22
22
|
let {
|
|
23
|
+
ref,
|
|
23
24
|
font = 'body'
|
|
24
25
|
} = _ref,
|
|
25
26
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
@@ -27,4 +28,4 @@ export const TextBody = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) =>
|
|
|
27
28
|
ref: ref,
|
|
28
29
|
font: font
|
|
29
30
|
}, props));
|
|
30
|
-
})
|
|
31
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const _excluded = ["font"];
|
|
1
|
+
const _excluded = ["ref", "font"];
|
|
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 { Text } from './Text';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -18,8 +18,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
18
18
|
* @deprecated Use `Text` with `font="caption"` instead. This will be removed in a future major release.
|
|
19
19
|
* @deprecationExpectedRemoval v10
|
|
20
20
|
*/
|
|
21
|
-
export const TextCaption = /*#__PURE__*/memo(
|
|
21
|
+
export const TextCaption = /*#__PURE__*/memo(_ref => {
|
|
22
22
|
let {
|
|
23
|
+
ref,
|
|
23
24
|
font = 'caption'
|
|
24
25
|
} = _ref,
|
|
25
26
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
@@ -27,4 +28,4 @@ export const TextCaption = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref)
|
|
|
27
28
|
ref: ref,
|
|
28
29
|
font: font
|
|
29
30
|
}, props));
|
|
30
|
-
})
|
|
31
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const _excluded = ["accessibilityRole", "font"];
|
|
1
|
+
const _excluded = ["ref", "accessibilityRole", "font"];
|
|
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 { Text } from './Text';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -18,8 +18,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
18
18
|
* @deprecated Use `Text` with `font="display1"` instead. This will be removed in a future major release.
|
|
19
19
|
* @deprecationExpectedRemoval v10
|
|
20
20
|
*/
|
|
21
|
-
export const TextDisplay1 = /*#__PURE__*/memo(
|
|
21
|
+
export const TextDisplay1 = /*#__PURE__*/memo(_ref => {
|
|
22
22
|
let {
|
|
23
|
+
ref,
|
|
23
24
|
accessibilityRole = 'header',
|
|
24
25
|
font = 'display1'
|
|
25
26
|
} = _ref,
|
|
@@ -29,4 +30,4 @@ export const TextDisplay1 = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref
|
|
|
29
30
|
accessibilityRole: accessibilityRole,
|
|
30
31
|
font: font
|
|
31
32
|
}, props));
|
|
32
|
-
})
|
|
33
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const _excluded = ["accessibilityRole", "font"];
|
|
1
|
+
const _excluded = ["ref", "accessibilityRole", "font"];
|
|
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 { Text } from './Text';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -18,8 +18,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
18
18
|
* @deprecated Use `Text` with `font="display2"` instead. This will be removed in a future major release.
|
|
19
19
|
* @deprecationExpectedRemoval v10
|
|
20
20
|
*/
|
|
21
|
-
export const TextDisplay2 = /*#__PURE__*/memo(
|
|
21
|
+
export const TextDisplay2 = /*#__PURE__*/memo(_ref => {
|
|
22
22
|
let {
|
|
23
|
+
ref,
|
|
23
24
|
accessibilityRole = 'header',
|
|
24
25
|
font = 'display2'
|
|
25
26
|
} = _ref,
|
|
@@ -29,4 +30,4 @@ export const TextDisplay2 = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref
|
|
|
29
30
|
accessibilityRole: accessibilityRole,
|
|
30
31
|
font: font
|
|
31
32
|
}, props));
|
|
32
|
-
})
|
|
33
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const _excluded = ["accessibilityRole", "font"];
|
|
1
|
+
const _excluded = ["ref", "accessibilityRole", "font"];
|
|
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 { Text } from './Text';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -18,8 +18,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
18
18
|
* @deprecated Use `Text` with `font="display3"` instead. This will be removed in a future major release.
|
|
19
19
|
* @deprecationExpectedRemoval v10
|
|
20
20
|
*/
|
|
21
|
-
export const TextDisplay3 = /*#__PURE__*/memo(
|
|
21
|
+
export const TextDisplay3 = /*#__PURE__*/memo(_ref => {
|
|
22
22
|
let {
|
|
23
|
+
ref,
|
|
23
24
|
accessibilityRole = 'header',
|
|
24
25
|
font = 'display3'
|
|
25
26
|
} = _ref,
|
|
@@ -29,4 +30,4 @@ export const TextDisplay3 = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref
|
|
|
29
30
|
accessibilityRole: accessibilityRole,
|
|
30
31
|
font: font
|
|
31
32
|
}, props));
|
|
32
|
-
})
|
|
33
|
+
});
|
|
@@ -31,11 +31,12 @@ export const TextFallback = /*#__PURE__*/memo(function TextFallback(_ref) {
|
|
|
31
31
|
paddingVertical: Math.max(lineHeightOffset, 0) / 2
|
|
32
32
|
};
|
|
33
33
|
}, [font, fontScale, theme]);
|
|
34
|
+
const fallbackStyle = useMemo(() => [{
|
|
35
|
+
paddingTop: paddingVertical,
|
|
36
|
+
paddingBottom: paddingVertical
|
|
37
|
+
}, style], [paddingVertical, style]);
|
|
34
38
|
return /*#__PURE__*/_jsx(Fallback, _extends({
|
|
35
39
|
height: height,
|
|
36
|
-
style:
|
|
37
|
-
paddingTop: paddingVertical,
|
|
38
|
-
paddingBottom: paddingVertical
|
|
39
|
-
}, style]
|
|
40
|
+
style: fallbackStyle
|
|
40
41
|
}, props));
|
|
41
42
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const _excluded = ["font"];
|
|
1
|
+
const _excluded = ["ref", "font"];
|
|
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 { Text } from './Text';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -18,8 +18,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
18
18
|
* @deprecated Use `Text` with `font="headline"` instead. This will be removed in a future major release.
|
|
19
19
|
* @deprecationExpectedRemoval v10
|
|
20
20
|
*/
|
|
21
|
-
export const TextHeadline = /*#__PURE__*/memo(
|
|
21
|
+
export const TextHeadline = /*#__PURE__*/memo(_ref => {
|
|
22
22
|
let {
|
|
23
|
+
ref,
|
|
23
24
|
font = 'headline'
|
|
24
25
|
} = _ref,
|
|
25
26
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
@@ -27,4 +28,4 @@ export const TextHeadline = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref
|
|
|
27
28
|
ref: ref,
|
|
28
29
|
font: font
|
|
29
30
|
}, props));
|
|
30
|
-
})
|
|
31
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const _excluded = ["font"];
|
|
1
|
+
const _excluded = ["ref", "font"];
|
|
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 { Text } from './Text';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -18,8 +18,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
18
18
|
* @deprecated Use `Text` with `font="inherit"` instead. This will be removed in a future major release.
|
|
19
19
|
* @deprecationExpectedRemoval v10
|
|
20
20
|
*/
|
|
21
|
-
export const TextInherited = /*#__PURE__*/memo(
|
|
21
|
+
export const TextInherited = /*#__PURE__*/memo(_ref => {
|
|
22
22
|
let {
|
|
23
|
+
ref,
|
|
23
24
|
font = 'inherit'
|
|
24
25
|
} = _ref,
|
|
25
26
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
@@ -27,4 +28,4 @@ export const TextInherited = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, re
|
|
|
27
28
|
ref: ref,
|
|
28
29
|
font: font
|
|
29
30
|
}, props));
|
|
30
|
-
})
|
|
31
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const _excluded = ["font"];
|
|
1
|
+
const _excluded = ["ref", "font"];
|
|
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 { Text } from './Text';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -18,8 +18,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
18
18
|
* @deprecated Use `Text` with `font="label1"` instead. This will be removed in a future major release.
|
|
19
19
|
* @deprecationExpectedRemoval v10
|
|
20
20
|
*/
|
|
21
|
-
export const TextLabel1 = /*#__PURE__*/memo(
|
|
21
|
+
export const TextLabel1 = /*#__PURE__*/memo(_ref => {
|
|
22
22
|
let {
|
|
23
|
+
ref,
|
|
23
24
|
font = 'label1'
|
|
24
25
|
} = _ref,
|
|
25
26
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
@@ -27,4 +28,4 @@ export const TextLabel1 = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref)
|
|
|
27
28
|
ref: ref,
|
|
28
29
|
font: font
|
|
29
30
|
}, props));
|
|
30
|
-
})
|
|
31
|
+
});
|