@ledgerhq/lumen-ui-rnative 0.1.71 → 0.1.73
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/dist/module/lib/Components/animations/Pulse/Pulse.js +1 -1
- package/dist/module/lib/Components/animations/Spin/Spin.js +1 -1
- package/dist/module/lib/Components/core/AmountDisplay/AmountDisplay.js +1 -1
- package/dist/module/lib/Components/core/AmountInput/useAmountInputAnimations/useAmountInputAnimations.js +3 -3
- package/dist/module/lib/Components/core/Avatar/Avatar.js +1 -0
- package/dist/module/lib/Components/core/Avatar/Avatar.js.map +1 -1
- package/dist/module/lib/Components/core/AvatarButton/AvatarButton.js +6 -2
- package/dist/module/lib/Components/core/AvatarButton/AvatarButton.js.map +1 -1
- package/dist/module/lib/Components/core/Card/Card.js +7 -3
- package/dist/module/lib/Components/core/Card/Card.js.map +1 -1
- package/dist/module/lib/Components/core/DotSymbol/DotSymbol.js +1 -0
- package/dist/module/lib/Components/core/DotSymbol/DotSymbol.js.map +1 -1
- package/dist/module/lib/Components/core/MediaBanner/MediaBanner.js +2 -1
- package/dist/module/lib/Components/core/MediaBanner/MediaBanner.js.map +1 -1
- package/dist/module/lib/Components/core/MediaCard/MediaCard.js +1 -0
- package/dist/module/lib/Components/core/MediaCard/MediaCard.js.map +1 -1
- package/dist/module/lib/Components/core/MediaImage/MediaImage.js +1 -0
- package/dist/module/lib/Components/core/MediaImage/MediaImage.js.map +1 -1
- package/dist/module/lib/Components/core/MenuList/MenuList.js +15 -9
- package/dist/module/lib/Components/core/MenuList/MenuList.js.map +1 -1
- package/dist/module/lib/Components/core/PageIndicator/PageIndicator.js +2 -2
- package/dist/module/lib/Components/core/ProgressBar/ProgressBar.js +158 -0
- package/dist/module/lib/Components/core/ProgressBar/ProgressBar.js.map +1 -0
- package/dist/module/lib/Components/core/ProgressBar/index.js +5 -0
- package/dist/module/lib/Components/core/ProgressBar/index.js.map +1 -0
- package/dist/module/lib/Components/core/ProgressBar/types.js +4 -0
- package/dist/module/lib/Components/core/ProgressBar/types.js.map +1 -0
- package/dist/module/lib/Components/core/ProgressBar/useAnimatedProgressWidth.js +50 -0
- package/dist/module/lib/Components/core/ProgressBar/useAnimatedProgressWidth.js.map +1 -0
- package/dist/module/lib/Components/core/SegmentedControl/usePillLayout.js +1 -1
- package/dist/module/lib/Components/core/Stepper/Stepper.js +1 -4
- package/dist/module/lib/Components/core/Stepper/Stepper.js.map +1 -1
- package/dist/module/lib/Components/core/Switch/Switch.js +1 -1
- package/dist/module/lib/Components/core/TabBar/TabBar.js +13 -6
- package/dist/module/lib/Components/core/TabBar/TabBar.js.map +1 -1
- package/dist/module/lib/Components/core/Toast/hooks/useToastGesture.js +6 -6
- package/dist/module/lib/Components/core/Toast/hooks/useToastMotion.js +1 -1
- package/dist/module/lib/Components/core/index.js +1 -0
- package/dist/module/lib/Components/core/index.js.map +1 -1
- package/dist/module/lib/Components/internal/BaseInput/BaseInput.js +5 -1
- package/dist/module/lib/Components/internal/BaseInput/BaseInput.js.map +1 -1
- package/dist/module/lib/Components/internal/BaseInput/BaseInputLabel.js +2 -1
- package/dist/module/lib/Components/internal/BaseInput/BaseInputLabel.js.map +1 -1
- package/dist/module/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.js +5 -1
- package/dist/module/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.js.map +1 -1
- package/dist/module/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.js +5 -1
- package/dist/module/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.js.map +1 -1
- package/dist/module/lib/Components/visualization/CartesianChart/RevealAnimation/RevealAnimationProvider.js +9 -5
- package/dist/module/lib/Components/visualization/CartesianChart/RevealAnimation/RevealAnimationProvider.js.map +1 -1
- package/dist/module/lib/Components/visualization/CartesianChart/RevealAnimation/context.js +1 -1
- package/dist/module/lib/Components/visualization/CartesianChart/RevealAnimation/utils.js +5 -17
- package/dist/module/lib/Components/visualization/CartesianChart/RevealAnimation/utils.js.map +1 -1
- package/dist/module/lib/Components/visualization/CartesianChart/hooks/useShimmerAnimation.js +1 -1
- package/dist/module/lib/Components/visualization/DonutChart/DonutChart.js +1 -1
- package/dist/module/lib/Components/visualization/DonutChart/DonutChartAnimatedCenter.js +9 -5
- package/dist/module/lib/Components/visualization/DonutChart/DonutChartAnimatedCenter.js.map +1 -1
- package/dist/module/lib/Components/visualization/DonutChart/DonutRing.js +1 -1
- package/dist/module/lib/Components/visualization/DonutChart/RevealAnimation.js +2 -2
- package/dist/module/lib/Components/visualization/DonutChart/hooks/useDonutLoadingAnimation.js +1 -1
- package/dist/module/lib/Components/visualization/Scrubber/BeaconLabel/BeaconLabel.js +83 -0
- package/dist/module/lib/Components/visualization/Scrubber/BeaconLabel/BeaconLabel.js.map +1 -0
- package/dist/module/lib/Components/visualization/Scrubber/LineLabel/LineLabel.js +53 -0
- package/dist/module/lib/Components/visualization/Scrubber/LineLabel/LineLabel.js.map +1 -0
- package/dist/module/lib/Components/visualization/Scrubber/PositionedLabel/PositionedLabel.js +28 -0
- package/dist/module/lib/Components/visualization/Scrubber/PositionedLabel/PositionedLabel.js.map +1 -0
- package/dist/module/lib/Components/visualization/Scrubber/PositionedLabel/useLayoutWidth.js +9 -0
- package/dist/module/lib/Components/visualization/Scrubber/PositionedLabel/useLayoutWidth.js.map +1 -0
- package/dist/module/lib/Components/visualization/Scrubber/Scrubber.js +39 -5
- package/dist/module/lib/Components/visualization/Scrubber/Scrubber.js.map +1 -1
- package/dist/module/lib/Components/visualization/Scrubber/ScrubberProvider.js +3 -3
- package/dist/module/lib/Components/visualization/Scrubber/index.js +2 -0
- package/dist/module/lib/Components/visualization/Scrubber/index.js.map +1 -1
- package/dist/module/lib/Components/visualization/Scrubber/useScrubberGeometry.js +9 -2
- package/dist/module/lib/Components/visualization/Scrubber/useScrubberGeometry.js.map +1 -1
- package/dist/module/lib/Components/visualization/config.js +12 -0
- package/dist/module/lib/Components/visualization/config.js.map +1 -1
- package/dist/typescript/src/lib/Components/animations/Pulse/Pulse.d.ts +1 -1
- package/dist/typescript/src/lib/Components/animations/Pulse/Pulse.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/animations/Spin/Spin.d.ts +1 -1
- package/dist/typescript/src/lib/Components/animations/Spin/Spin.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/AddressInput/AddressInput.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/AddressInput/AddressInput.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/AmountDisplay/AmountDisplay.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/AmountDisplay/AmountDisplay.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/AmountInput/AmountInput.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/AmountInput/AmountInput.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Avatar/Avatar.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/Avatar/Avatar.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/AvatarButton/AvatarButton.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/AvatarButton/AvatarButton.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Banner/Banner.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/Banner/Banner.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/BottomSheet/BottomSheet.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/BottomSheet/BottomSheetContent.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/BottomSheet/BottomSheetContent.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/BottomSheet/BottomSheetFooter.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/BottomSheet/BottomSheetFooter.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/BottomSheet/BottomSheetHeader.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/BottomSheet/BottomSheetHeader.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/BottomSheet/CustomBackdrop.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/BottomSheet/CustomBackdrop.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/BottomSheet/CustomHandle.d.ts +2 -2
- package/dist/typescript/src/lib/Components/core/BottomSheet/CustomHandle.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/BottomSheet/Scrollables.d.ts +5 -5
- package/dist/typescript/src/lib/Components/core/BottomSheet/Scrollables.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Button/Button.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/Button/Button.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Card/Card.d.ts +10 -10
- package/dist/typescript/src/lib/Components/core/Card/Card.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/CardButton/CardButton.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/CardButton/CardButton.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Checkbox/BaseCheckbox.d.ts +2 -2
- package/dist/typescript/src/lib/Components/core/Checkbox/BaseCheckbox.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Checkbox/Checkbox.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/ContentBanner/ContentBanner.d.ts +4 -4
- package/dist/typescript/src/lib/Components/core/ContentBanner/ContentBanner.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/DescriptionItem/DescriptionItem.d.ts +5 -5
- package/dist/typescript/src/lib/Components/core/DescriptionItem/DescriptionItem.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Divider/Divider.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/Divider/Divider.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/DotCount/DotCount.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/DotCount/DotCount.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/DotIcon/DotIcon.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/DotIndicator/DotIndicator.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/DotIndicator/DotIndicator.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/DotSymbol/DotSymbol.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/DotSymbol/DotSymbol.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/IconButton/IconButton.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/IconButton/IconButton.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/InteractiveIcon/InteractiveIcon.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/InteractiveIcon/InteractiveIcon.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Link/Link.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/Link/Link.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/ListItem/ListItem.d.ts +7 -7
- package/dist/typescript/src/lib/Components/core/ListItem/ListItem.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/MediaBanner/MediaBanner.d.ts +3 -3
- package/dist/typescript/src/lib/Components/core/MediaBanner/MediaBanner.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/MediaButton/MediaButton.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/MediaButton/MediaButton.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/MediaCard/MediaCard.d.ts +2 -2
- package/dist/typescript/src/lib/Components/core/MediaCard/MediaCard.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/MediaImage/MediaImage.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/MediaImage/MediaImage.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/MediaImageGroup/MediaImageGroup.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/MediaImageGroup/MediaImageGroup.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/MediaTag/MediaTag.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/MediaTag/MediaTag.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/MenuList/MenuList.d.ts +3 -3
- package/dist/typescript/src/lib/Components/core/MenuList/MenuList.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/NavBar/CoinCapsule.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/NavBar/CoinCapsule.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/NavBar/NavBar.d.ts +7 -7
- package/dist/typescript/src/lib/Components/core/NavBar/NavBar.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/PageIndicator/PageIndicator.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/PageIndicator/PageIndicator.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Pagination/Pagination.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/Pagination/Pagination.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/ProgressBar/ProgressBar.d.ts +17 -0
- package/dist/typescript/src/lib/Components/core/ProgressBar/ProgressBar.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/ProgressBar/index.d.ts +3 -0
- package/dist/typescript/src/lib/Components/core/ProgressBar/index.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/ProgressBar/types.d.ts +29 -0
- package/dist/typescript/src/lib/Components/core/ProgressBar/types.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/ProgressBar/useAnimatedProgressWidth.d.ts +7 -0
- package/dist/typescript/src/lib/Components/core/ProgressBar/useAnimatedProgressWidth.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/SearchInput/SearchInput.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/SectionHeader/SectionHeader.d.ts +3 -3
- package/dist/typescript/src/lib/Components/core/SectionHeader/SectionHeader.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/SegmentedControl/SegmentedControl.d.ts +2 -2
- package/dist/typescript/src/lib/Components/core/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/SelectList/SelectList.d.ts +11 -11
- package/dist/typescript/src/lib/Components/core/SelectList/SelectList.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Skeleton/Skeleton.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Spinner/Spinner.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/Spinner/Spinner.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Spot/Spot.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/Spot/Spot.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Spot/SpotNumber.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/Spot/SpotNumber.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Stepper/Stepper.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/Stepper/Stepper.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Subheader/Subheader.d.ts +7 -7
- package/dist/typescript/src/lib/Components/core/Subheader/Subheader.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Switch/Switch.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/Switch/Switch.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/TabBar/TabBar.d.ts +2 -2
- package/dist/typescript/src/lib/Components/core/TabBar/TabBar.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Tag/Tag.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/Tag/Tag.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/TextInput/TextInput.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/TextInput/TextInput.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/ThemeProvider/ThemeProvider.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Tile/Tile.d.ts +5 -5
- package/dist/typescript/src/lib/Components/core/Tile/Tile.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/TileButton/TileButton.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/TileButton/TileButton.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Timeline/Timeline.d.ts +10 -10
- package/dist/typescript/src/lib/Components/core/Timeline/Timeline.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Toast/Toast.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/Toast/Toast.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Toast/Toaster.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/Toast/Toaster.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Tooltip/GlobalTooltipContext.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/Tooltip/GlobalTooltipContext.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Tooltip/Tooltip.d.ts +2 -2
- package/dist/typescript/src/lib/Components/core/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Tooltip/TooltipContext.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/Tooltip/TooltipContext.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Trend/Trend.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/Trend/Trend.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/index.d.ts +1 -0
- package/dist/typescript/src/lib/Components/core/index.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/internal/BaseButton/BaseButton.d.ts +1 -1
- package/dist/typescript/src/lib/Components/internal/BaseButton/BaseButton.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInput.d.ts +1 -1
- package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInput.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInputCounter.d.ts +1 -1
- package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInputCounter.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInputHelperText.d.ts +1 -1
- package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInputHelperText.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInputLabel.d.ts +1 -1
- package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInputLabel.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/internal/BaseTag/BaseTag.d.ts +1 -1
- package/dist/typescript/src/lib/Components/internal/BaseTag/BaseTag.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/internal/Label/Label.d.ts +1 -1
- package/dist/typescript/src/lib/Components/internal/Label/Label.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/primitives/Box/Box.d.ts +1 -1
- package/dist/typescript/src/lib/Components/primitives/Box/Box.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.d.ts +1 -1
- package/dist/typescript/src/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.d.ts +1 -1
- package/dist/typescript/src/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/primitives/Pressable/Pressable.d.ts +1 -1
- package/dist/typescript/src/lib/Components/primitives/Pressable/Pressable.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/primitives/Text/Text.d.ts +1 -1
- package/dist/typescript/src/lib/Components/primitives/Text/Text.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/symbols/Icon/Icon.d.ts +1 -1
- package/dist/typescript/src/lib/Components/symbols/Icon/Icon.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/Axis/XAxis/XAxis.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/Axis/XAxis/XAxis.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/Axis/YAxis/YAxis.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/Axis/YAxis/YAxis.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/CartesianChart/CartesianChart.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/CartesianChart/CartesianChart.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/CartesianChart/ChartEmptyLabel/ChartEmptyLabel.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/CartesianChart/ChartEmptyLabel/ChartEmptyLabel.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/CartesianChart/RevealAnimation/RevealAnimationProvider.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/CartesianChart/RevealAnimation/RevealAnimationProvider.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/CartesianChart/RevealAnimation/utils.d.ts +1 -7
- package/dist/typescript/src/lib/Components/visualization/CartesianChart/RevealAnimation/utils.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/DonutChart/DonutChart.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/DonutChart/DonutChart.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/DonutChart/DonutChartAnimatedCenter.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/DonutChart/DonutChartAnimatedCenter.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/DonutChart/DonutChartCenter.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/DonutChart/DonutChartCenter.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/DonutChart/DonutChartDescription.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/DonutChart/DonutChartDescription.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/DonutChart/DonutChartTitle.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/DonutChart/DonutChartTitle.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/DonutChart/DonutRing.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/DonutChart/DonutRing.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/DonutChart/RevealAnimation.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/DonutChart/RevealAnimation.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/Legend/Legend.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/Legend/Legend.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/Legend/LegendItem.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/Legend/LegendItem.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/LineChart/LineChart.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/LineChart/LineChart.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/LineChart/LineChartEmptyState/LineChartEmptyState.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/LineChart/LineChartEmptyState/LineChartEmptyState.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/Point/Point.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/Point/Point.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/Point/pointContext/MagneticPointsProvider.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/Point/pointContext/MagneticPointsProvider.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/ReferenceLine/ReferenceLine.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/ReferenceLine/ReferenceLine.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/Scrubber/BeaconLabel/BeaconLabel.d.ts +17 -0
- package/dist/typescript/src/lib/Components/visualization/Scrubber/BeaconLabel/BeaconLabel.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/DefaultScrubberTooltip.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/DefaultScrubberTooltip.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/Scrubber/LineLabel/LineLabel.d.ts +16 -0
- package/dist/typescript/src/lib/Components/visualization/Scrubber/LineLabel/LineLabel.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/visualization/Scrubber/PositionedLabel/PositionedLabel.d.ts +14 -0
- package/dist/typescript/src/lib/Components/visualization/Scrubber/PositionedLabel/PositionedLabel.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/visualization/Scrubber/PositionedLabel/useLayoutWidth.d.ts +3 -0
- package/dist/typescript/src/lib/Components/visualization/Scrubber/PositionedLabel/useLayoutWidth.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/visualization/Scrubber/Scrubber.d.ts +21 -3
- package/dist/typescript/src/lib/Components/visualization/Scrubber/Scrubber.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/Scrubber/ScrubberProvider.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/Scrubber/ScrubberProvider.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/Scrubber/index.d.ts +3 -1
- package/dist/typescript/src/lib/Components/visualization/Scrubber/index.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/Scrubber/types.d.ts +92 -2
- package/dist/typescript/src/lib/Components/visualization/Scrubber/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/Scrubber/useScrubberGeometry.d.ts +5 -2
- package/dist/typescript/src/lib/Components/visualization/Scrubber/useScrubberGeometry.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/config.d.ts +12 -0
- package/dist/typescript/src/lib/Components/visualization/config.d.ts.map +1 -1
- package/dist/typescript/src/styles/lx/createStyledPressable.d.ts +1 -1
- package/dist/typescript/src/styles/lx/createStyledPressable.d.ts.map +1 -1
- package/dist/typescript/src/styles/lx/createStyledText.d.ts +1 -1
- package/dist/typescript/src/styles/lx/createStyledText.d.ts.map +1 -1
- package/dist/typescript/src/styles/lx/createStyledView.d.ts +1 -1
- package/dist/typescript/src/styles/lx/createStyledView.d.ts.map +1 -1
- package/dist/typescript/src/styles/provider/LumenStyleSheetProvider.d.ts +1 -1
- package/dist/typescript/src/styles/provider/LumenStyleSheetProvider.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/lib/Components/core/Avatar/Avatar.tsx +1 -0
- package/src/lib/Components/core/AvatarButton/AvatarButton.tsx +6 -2
- package/src/lib/Components/core/Card/Card.tsx +5 -1
- package/src/lib/Components/core/DotSymbol/DotSymbol.tsx +1 -0
- package/src/lib/Components/core/MediaBanner/MediaBanner.tsx +1 -0
- package/src/lib/Components/core/MediaCard/MediaCard.tsx +1 -0
- package/src/lib/Components/core/MediaImage/MediaImage.tsx +1 -0
- package/src/lib/Components/core/MenuList/MenuList.tsx +12 -2
- package/src/lib/Components/core/ProgressBar/ProgressBar.tsx +164 -0
- package/src/lib/Components/core/ProgressBar/index.ts +2 -0
- package/src/lib/Components/core/ProgressBar/types.ts +48 -0
- package/src/lib/Components/core/ProgressBar/useAnimatedProgressWidth.ts +30 -0
- package/src/lib/Components/core/Stepper/Stepper.tsx +1 -6
- package/src/lib/Components/core/TabBar/TabBar.tsx +9 -2
- package/src/lib/Components/core/index.ts +1 -0
- package/src/lib/Components/internal/BaseInput/BaseInput.tsx +3 -0
- package/src/lib/Components/internal/BaseInput/BaseInputLabel.tsx +1 -0
- package/src/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.tsx +5 -1
- package/src/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.tsx +5 -1
- package/src/lib/Components/visualization/CartesianChart/RevealAnimation/RevealAnimationProvider.tsx +12 -4
- package/src/lib/Components/visualization/CartesianChart/RevealAnimation/utils.ts +2 -16
- package/src/lib/Components/visualization/DonutChart/DonutChartAnimatedCenter.tsx +5 -1
- package/src/lib/Components/visualization/Scrubber/BeaconLabel/BeaconLabel.tsx +116 -0
- package/src/lib/Components/visualization/Scrubber/LineLabel/LineLabel.tsx +72 -0
- package/src/lib/Components/visualization/Scrubber/PositionedLabel/PositionedLabel.tsx +38 -0
- package/src/lib/Components/visualization/Scrubber/PositionedLabel/useLayoutWidth.ts +14 -0
- package/src/lib/Components/visualization/Scrubber/Scrubber.tsx +48 -3
- package/src/lib/Components/visualization/Scrubber/index.ts +6 -0
- package/src/lib/Components/visualization/Scrubber/types.ts +102 -2
- package/src/lib/Components/visualization/Scrubber/useScrubberGeometry.ts +18 -3
- package/src/lib/Components/visualization/config.ts +14 -0
package/dist/typescript/src/lib/Components/visualization/Scrubber/BeaconLabel/BeaconLabel.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { DrawingArea } from '../../utils/types';
|
|
2
|
+
import type { DefaultBeaconLabelProps, ScrubberProps } from '../types';
|
|
3
|
+
import type { Beacon } from '../useScrubberGeometry';
|
|
4
|
+
/**
|
|
5
|
+
* Default beacon label: a pill sized to its content, drawn from its top-left
|
|
6
|
+
* corner. Pass a `label` for text, or `children` for any SVG inside the pill.
|
|
7
|
+
*/
|
|
8
|
+
export declare function DefaultBeaconLabel({ label, children, background, color, }: Readonly<DefaultBeaconLabelProps>): import("react").JSX.Element;
|
|
9
|
+
type ScrubberBeaconLabelsProps = {
|
|
10
|
+
pixelX: number;
|
|
11
|
+
drawingArea: DrawingArea;
|
|
12
|
+
beacons: Beacon[];
|
|
13
|
+
renderLabel: ScrubberProps['beaconLabel'];
|
|
14
|
+
};
|
|
15
|
+
export declare function ScrubberBeaconLabels({ pixelX, drawingArea, beacons, renderLabel, }: Readonly<ScrubberBeaconLabelsProps>): import("react").JSX.Element[];
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=BeaconLabel.d.ts.map
|
package/dist/typescript/src/lib/Components/visualization/Scrubber/BeaconLabel/BeaconLabel.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BeaconLabel.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/Components/visualization/Scrubber/BeaconLabel/BeaconLabel.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,OAAO,KAAK,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACvE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAIrD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,QAAQ,EACR,UAAU,EACV,KAAK,GACN,EAAE,QAAQ,CAAC,uBAAuB,CAAC,+BA+BnC;AAmBD,KAAK,yBAAyB,GAAG;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;CAC3C,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,WAAW,EACX,OAAO,EACP,WAAW,GACZ,EAAE,QAAQ,CAAC,yBAAyB,CAAC,iCA6BrC"}
|
|
@@ -8,5 +8,5 @@ import type { ScrubberTooltipProps } from '../types';
|
|
|
8
8
|
* on the object returned from the `tooltip` callback. Return `{ items: [] }`
|
|
9
9
|
* from the callback to hide the tooltip at a given index.
|
|
10
10
|
*/
|
|
11
|
-
export declare function DefaultScrubberTooltip({ pixelX, drawingArea, title, items, offset, minWidth, }: Readonly<ScrubberTooltipProps>): import("react
|
|
11
|
+
export declare function DefaultScrubberTooltip({ pixelX, drawingArea, title, items, offset, minWidth, }: Readonly<ScrubberTooltipProps>): import("react").JSX.Element | null;
|
|
12
12
|
//# sourceMappingURL=DefaultScrubberTooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultScrubberTooltip.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/DefaultScrubberTooltip.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAWrD;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,MAAM,EACN,WAAW,EACX,KAAK,EACL,KAAK,EACL,MAA0C,EAC1C,QAA8C,GAC/C,EAAE,QAAQ,CAAC,oBAAoB,CAAC,
|
|
1
|
+
{"version":3,"file":"DefaultScrubberTooltip.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/DefaultScrubberTooltip.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAWrD;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,MAAM,EACN,WAAW,EACX,KAAK,EACL,KAAK,EACL,MAA0C,EAC1C,QAA8C,GAC/C,EAAE,QAAQ,CAAC,oBAAoB,CAAC,sCAyEhC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { DrawingArea } from '../../utils/types';
|
|
2
|
+
import type { DefaultLineLabelProps, ScrubberProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Default line label: the x-axis value as muted text, drawn from its top-left
|
|
5
|
+
* corner. Pass a `label` for text, or `children` for any SVG in its place.
|
|
6
|
+
*/
|
|
7
|
+
export declare function DefaultLineLabel({ label, children, color, }: Readonly<DefaultLineLabelProps>): import("react").JSX.Element;
|
|
8
|
+
type ScrubberLineLabelProps = {
|
|
9
|
+
dataIndex: number;
|
|
10
|
+
pixelX: number;
|
|
11
|
+
drawingArea: DrawingArea;
|
|
12
|
+
renderLabel: ScrubberProps['lineLabel'];
|
|
13
|
+
};
|
|
14
|
+
export declare function ScrubberLineLabel({ dataIndex, pixelX, drawingArea, renderLabel, }: Readonly<ScrubberLineLabelProps>): import("react").JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=LineLabel.d.ts.map
|
package/dist/typescript/src/lib/Components/visualization/Scrubber/LineLabel/LineLabel.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LineLabel.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/Components/visualization/Scrubber/LineLabel/LineLabel.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAIrE;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,QAAQ,EACR,KAAK,GACN,EAAE,QAAQ,CAAC,qBAAqB,CAAC,+BAiBjC;AAED,KAAK,sBAAsB,GAAG;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;CACzC,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,EAChC,SAAS,EACT,MAAM,EACN,WAAW,EACX,WAAW,GACZ,EAAE,QAAQ,CAAC,sBAAsB,CAAC,+BAiBlC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type PositionedLabelProps = {
|
|
3
|
+
testID: string;
|
|
4
|
+
placeX: (width: number) => number;
|
|
5
|
+
y: number;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Measures its content, then places it at the x returned by `placeX` for that
|
|
10
|
+
* width. Shared by the beacon and line labels, which differ only in placement.
|
|
11
|
+
*/
|
|
12
|
+
export declare function PositionedLabel({ testID, placeX, y, children, }: Readonly<PositionedLabelProps>): import("react").JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=PositionedLabel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PositionedLabel.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/Components/visualization/Scrubber/PositionedLabel/PositionedLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,KAAK,oBAAoB,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAClC,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,MAAM,EACN,MAAM,EACN,CAAC,EACD,QAAQ,GACT,EAAE,QAAQ,CAAC,oBAAoB,CAAC,+BAgBhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLayoutWidth.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/Components/visualization/Scrubber/PositionedLabel/useLayoutWidth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,eAAO,MAAM,cAAc,QAAO,CAChC,MAAM,EACN,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAQnC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ScrubberProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Renders the scrubber visuals: vertical reference line, future-data overlay
|
|
4
|
-
* rect, per-series beacon dots, and an optional tooltip
|
|
5
|
-
* {@link ScrubberProps.tooltip} is set, using {@link DefaultScrubberTooltip}.
|
|
4
|
+
* rect, per-series beacon dots, optional beacon and line labels, and an optional tooltip
|
|
5
|
+
* when {@link ScrubberProps.tooltip} is set, using {@link DefaultScrubberTooltip}.
|
|
6
6
|
*
|
|
7
7
|
* Must be used as a child of `LineChart` (or `CartesianChart`) with
|
|
8
8
|
* `enableScrubbing` enabled. Renders nothing when no scrubber position is active.
|
|
@@ -14,6 +14,24 @@ import type { ScrubberProps } from './types';
|
|
|
14
14
|
* </LineChart>
|
|
15
15
|
* ```
|
|
16
16
|
*
|
|
17
|
+
* @example Beacon labels
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <Scrubber showBeaconLabel />
|
|
20
|
+
* <Scrubber
|
|
21
|
+
* showBeaconLabel
|
|
22
|
+
* beaconLabel={({ series, value }) => <DefaultBeaconLabel label={`${series.label}: $${value}`} />}
|
|
23
|
+
* />
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @example Line label
|
|
27
|
+
* ```tsx
|
|
28
|
+
* <Scrubber showLineLabel />
|
|
29
|
+
* <Scrubber
|
|
30
|
+
* showLineLabel
|
|
31
|
+
* lineLabel={({ label }) => <DefaultLineLabel label={`Day ${label}`} />}
|
|
32
|
+
* />
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
17
35
|
* @example Tooltip
|
|
18
36
|
* ```tsx
|
|
19
37
|
* <Scrubber
|
|
@@ -25,5 +43,5 @@ import type { ScrubberProps } from './types';
|
|
|
25
43
|
* />
|
|
26
44
|
* ```
|
|
27
45
|
*/
|
|
28
|
-
export declare function Scrubber({ hideLine, hideOverlay, showBeacons, idlePulse, tooltip, }: Readonly<ScrubberProps>): import("react
|
|
46
|
+
export declare function Scrubber({ hideLine, hideOverlay, showBeacons, showBeaconLabel, beaconLabel, showLineLabel, lineLabel, idlePulse, tooltip, }: Readonly<ScrubberProps>): import("react").JSX.Element | null;
|
|
29
47
|
//# sourceMappingURL=Scrubber.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scrubber.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/visualization/Scrubber/Scrubber.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Scrubber.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/visualization/Scrubber/Scrubber.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AA2G7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,wBAAgB,QAAQ,CAAC,EACvB,QAAgB,EAChB,WAAmB,EACnB,WAAmB,EACnB,eAAuB,EACvB,WAAW,EACX,aAAqB,EACrB,SAAS,EACT,SAAiB,EACjB,OAAO,GACR,EAAE,QAAQ,CAAC,aAAa,CAAC,sCA2FzB"}
|
|
@@ -11,5 +11,5 @@ import type { ScrubberProviderProps } from './types';
|
|
|
11
11
|
* (`LongPress`); vertical movement fails the pan (`failOffsetY`) so an ancestor
|
|
12
12
|
* vertical scroll view keeps scrolling.
|
|
13
13
|
*/
|
|
14
|
-
export declare function ScrubberProvider({ children, width, height, enableScrubbing, onScrubberPositionChange, magnetRadius, style, }: Readonly<ScrubberProviderProps>): import("react
|
|
14
|
+
export declare function ScrubberProvider({ children, width, height, enableScrubbing, onScrubberPositionChange, magnetRadius, style, }: Readonly<ScrubberProviderProps>): import("react").JSX.Element;
|
|
15
15
|
//# sourceMappingURL=ScrubberProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrubberProvider.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/visualization/Scrubber/ScrubberProvider.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAcrD;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,KAAK,EACL,MAAM,EACN,eAAe,EACf,wBAAwB,EACxB,YAAuD,EACvD,KAAK,GACN,EAAE,QAAQ,CAAC,qBAAqB,CAAC
|
|
1
|
+
{"version":3,"file":"ScrubberProvider.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/visualization/Scrubber/ScrubberProvider.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAcrD;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,KAAK,EACL,MAAM,EACN,eAAe,EACf,wBAAwB,EACxB,YAAuD,EACvD,KAAK,GACN,EAAE,QAAQ,CAAC,qBAAqB,CAAC,+BA8JjC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { Scrubber } from './Scrubber';
|
|
2
|
+
export { DefaultBeaconLabel } from './BeaconLabel/BeaconLabel';
|
|
3
|
+
export { DefaultLineLabel } from './LineLabel/LineLabel';
|
|
2
4
|
export { useScrubberContext } from './context';
|
|
3
|
-
export type { ChartTooltipItemData, ChartTooltipItemProps, ScrubberContextValue, ScrubberProps, ScrubberTooltipContent, ScrubberTooltipProps, SvgBBoxElement, } from './types';
|
|
5
|
+
export type { BeaconLabelContext, DefaultBeaconLabelProps, DefaultLineLabelProps, LineLabelContext, ChartTooltipItemData, ChartTooltipItemProps, ScrubberContextValue, ScrubberProps, ScrubberTooltipContent, ScrubberTooltipProps, SvgBBoxElement, } from './types';
|
|
4
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/visualization/Scrubber/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,YAAY,EACV,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,aAAa,EACb,sBAAsB,EACtB,oBAAoB,EACpB,cAAc,GACf,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/visualization/Scrubber/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,YAAY,EACV,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,aAAa,EACb,sBAAsB,EACtB,oBAAoB,EACpB,cAAc,GACf,MAAM,SAAS,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LineLabelContext } from '@ledgerhq/lumen-utils-shared';
|
|
2
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
3
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
+
import type { TSpanProps } from 'react-native-svg';
|
|
3
5
|
import type { ScrubbingOptions } from '../CartesianChart/types';
|
|
4
|
-
import type { DrawingArea } from '../utils/types';
|
|
6
|
+
import type { DrawingArea, Series } from '../utils/types';
|
|
5
7
|
export type ScrubberContextValue = Required<Pick<ScrubbingOptions, 'enableScrubbing' | 'onScrubberPositionChange'>> & {
|
|
6
8
|
/**
|
|
7
9
|
* The current data index of the scrubber, or undefined when idle.
|
|
@@ -122,6 +124,62 @@ export type ScrubberTooltipContent = ScrubberTooltipLayoutProps & {
|
|
|
122
124
|
*/
|
|
123
125
|
items: ChartTooltipItemData[];
|
|
124
126
|
};
|
|
127
|
+
export type BeaconLabelContext = {
|
|
128
|
+
/**
|
|
129
|
+
* The series the beacon belongs to.
|
|
130
|
+
*/
|
|
131
|
+
series: Series;
|
|
132
|
+
/**
|
|
133
|
+
* The series value at the scrubbed index.
|
|
134
|
+
*/
|
|
135
|
+
value: number;
|
|
136
|
+
};
|
|
137
|
+
export type DefaultBeaconLabelProps = {
|
|
138
|
+
/**
|
|
139
|
+
* Fill color of the pill.
|
|
140
|
+
* @default background-muted
|
|
141
|
+
*/
|
|
142
|
+
background?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Default fill of the content. Elements that set their own fill keep it.
|
|
145
|
+
* @default text-base
|
|
146
|
+
*/
|
|
147
|
+
color?: string;
|
|
148
|
+
} & ({
|
|
149
|
+
/**
|
|
150
|
+
* Text shown in the pill. Pass a `TSpan` to style parts of it.
|
|
151
|
+
*/
|
|
152
|
+
label: string | number | ReactElement<TSpanProps>;
|
|
153
|
+
children?: never;
|
|
154
|
+
} | {
|
|
155
|
+
label?: never;
|
|
156
|
+
/**
|
|
157
|
+
* Any SVG drawn inside the pill, for content a `label` can't hold
|
|
158
|
+
* (icons, shapes).
|
|
159
|
+
*/
|
|
160
|
+
children: ReactNode;
|
|
161
|
+
});
|
|
162
|
+
export type { LineLabelContext };
|
|
163
|
+
export type DefaultLineLabelProps = {
|
|
164
|
+
/**
|
|
165
|
+
* Default fill of the content. Elements that set their own fill keep it.
|
|
166
|
+
* @default text-muted
|
|
167
|
+
*/
|
|
168
|
+
color?: string;
|
|
169
|
+
} & ({
|
|
170
|
+
/**
|
|
171
|
+
* Text shown above the line. Pass a `TSpan` to style parts of it.
|
|
172
|
+
*/
|
|
173
|
+
label: string | number | ReactElement<TSpanProps>;
|
|
174
|
+
children?: never;
|
|
175
|
+
} | {
|
|
176
|
+
label?: never;
|
|
177
|
+
/**
|
|
178
|
+
* Any SVG drawn in place of the text, for content a `label` can't hold
|
|
179
|
+
* (icons, shapes).
|
|
180
|
+
*/
|
|
181
|
+
children: ReactNode;
|
|
182
|
+
});
|
|
125
183
|
export type ScrubberProps = {
|
|
126
184
|
/**
|
|
127
185
|
* Hides the vertical reference line.
|
|
@@ -139,6 +197,38 @@ export type ScrubberProps = {
|
|
|
139
197
|
* @default false
|
|
140
198
|
*/
|
|
141
199
|
showBeacons?: boolean;
|
|
200
|
+
/**
|
|
201
|
+
* Shows a label next to each beacon while scrubbing, rendering the series
|
|
202
|
+
* label and value
|
|
203
|
+
* unless {@link ScrubberProps.beaconLabel} is set. Implies `showBeacons`.
|
|
204
|
+
* @default false
|
|
205
|
+
*/
|
|
206
|
+
showBeaconLabel?: boolean;
|
|
207
|
+
/**
|
|
208
|
+
* Custom label content for each beacon, rendered when `showBeaconLabel` is
|
|
209
|
+
* set. Draw `react-native-svg` elements with the top-left corner at the
|
|
210
|
+
* origin (like {@link DefaultBeaconLabel}); the scrubber measures and positions it.
|
|
211
|
+
* Keep the content within 24px of height: labels are stacked on that fixed
|
|
212
|
+
* row height, so taller content overlaps its neighbors.
|
|
213
|
+
*/
|
|
214
|
+
beaconLabel?: (context: BeaconLabelContext) => ReactNode;
|
|
215
|
+
/**
|
|
216
|
+
* Shows a label above the scrubber line while scrubbing, centered on it and
|
|
217
|
+
* rendering the x-axis value unless {@link ScrubberProps.lineLabel} is set.
|
|
218
|
+
* It sits above the drawing area, so reserve room with the chart `inset`
|
|
219
|
+
* (24px fits the default label).
|
|
220
|
+
* @default false
|
|
221
|
+
*/
|
|
222
|
+
showLineLabel?: boolean;
|
|
223
|
+
/**
|
|
224
|
+
* Custom label content above the scrubber line, rendered when
|
|
225
|
+
* `showLineLabel` is set. Draw `react-native-svg` elements with the top-left
|
|
226
|
+
* corner at the origin (like {@link DefaultLineLabel}); the scrubber
|
|
227
|
+
* measures and centers it.
|
|
228
|
+
* Keep the content within 16px of height: it is placed on that fixed
|
|
229
|
+
* height, so taller content overlaps the line.
|
|
230
|
+
*/
|
|
231
|
+
lineLabel?: (context: LineLabelContext) => ReactNode;
|
|
142
232
|
/**
|
|
143
233
|
* Pulses the beacons while idle. Requires `showBeacons`.
|
|
144
234
|
* @default false
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/visualization/Scrubber/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/visualization/Scrubber/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE1D,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CACzC,IAAI,CAAC,gBAAgB,EAAE,iBAAiB,GAAG,0BAA0B,CAAC,CACvE,GAAG;IACF;;OAEG;IACH,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,GAC3E,QAAQ,CAAC,IAAI,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,CAAC,GAAG;IACpD,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAEJ,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,oBAAoB,GAAG;IACzD;;;OAGG;IACH,CAAC,CAAC,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,CAAC,CAAC,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/C;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,MACL;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GACjB,SAAS,GACT,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC,CAAC;CAC5C,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,0BAA0B,GAAG;IAC9D;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,KAAK,EAAE,oBAAoB,EAAE,CAAC;CAC/B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,0BAA0B,GAAG;IAChE;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,CAAC;IAC3E;;OAEG;IACH,KAAK,EAAE,oBAAoB,EAAE,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,CACA;IACE;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;IAClD,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB,GACD;IACE,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB,CACJ,CAAC;AAEF,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAEjC,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,CACA;IACE;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;IAClD,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB,GACD;IACE,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB,CACJ,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,SAAS,CAAC;IACzD;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,SAAS,CAAC;IACrD;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,sBAAsB,CAAC;CACzD,CAAC"}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import type { DrawingArea } from '../utils/types';
|
|
1
|
+
import type { DrawingArea, Series } from '../utils/types';
|
|
2
2
|
import type { ScrubberProps } from './types';
|
|
3
3
|
import { type OverlayRect, type ScrubberTooltipPayload } from './utils';
|
|
4
|
-
type Beacon = {
|
|
4
|
+
export type Beacon = {
|
|
5
5
|
id: string;
|
|
6
6
|
stroke: string;
|
|
7
7
|
pixelX: number;
|
|
8
8
|
pixelY: number;
|
|
9
|
+
series: Series;
|
|
10
|
+
value: number;
|
|
9
11
|
};
|
|
10
12
|
type ScrubberGeometry = {
|
|
11
13
|
beacons: Beacon[];
|
|
12
14
|
scrubbing?: {
|
|
15
|
+
dataIndex: number;
|
|
13
16
|
pixelX: number;
|
|
14
17
|
drawingArea: DrawingArea;
|
|
15
18
|
overlay: OverlayRect;
|
package/dist/typescript/src/lib/Components/visualization/Scrubber/useScrubberGeometry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useScrubberGeometry.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/visualization/Scrubber/useScrubberGeometry.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"useScrubberGeometry.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/visualization/Scrubber/useScrubberGeometry.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAG1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAML,KAAK,WAAW,EAChB,KAAK,sBAAsB,EAC5B,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,MAAM,GAAG;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,CAAC,EAAE;QACV,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,EAAE,WAAW,CAAC;QACzB,OAAO,EAAE,WAAW,CAAC;QACrB,cAAc,EAAE,sBAAsB,GAAG,SAAS,CAAC;KACpD,CAAC;CACH,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC/B,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;CACnC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAAI,2BAGjC,yBAAyB,KAAG,gBAAgB,GAAG,IAqFjD,CAAC"}
|
|
@@ -47,6 +47,17 @@ export declare const chartConfig: {
|
|
|
47
47
|
readonly lineGradientEdgeOpacity: 0.1;
|
|
48
48
|
readonly defaultMagnetRadius: 6;
|
|
49
49
|
};
|
|
50
|
+
readonly beaconLabel: {
|
|
51
|
+
readonly gap: 8;
|
|
52
|
+
readonly rowGap: 4;
|
|
53
|
+
readonly height: 24;
|
|
54
|
+
readonly paddingX: 8;
|
|
55
|
+
readonly contentGap: 4;
|
|
56
|
+
};
|
|
57
|
+
readonly lineLabel: {
|
|
58
|
+
readonly gap: 8;
|
|
59
|
+
readonly height: 16;
|
|
60
|
+
};
|
|
50
61
|
readonly tooltip: {
|
|
51
62
|
readonly defaultOffset: 10;
|
|
52
63
|
readonly defaultMinWidth: 80;
|
|
@@ -202,6 +213,7 @@ declare const resolveChartTokens: (t: Theme) => {
|
|
|
202
213
|
readonly bodyWeightSemiBold: any;
|
|
203
214
|
};
|
|
204
215
|
readonly radius: {
|
|
216
|
+
readonly xs: 4;
|
|
205
217
|
readonly sm: 8;
|
|
206
218
|
};
|
|
207
219
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/visualization/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW;;;8BAGqC,UAAU;;;;;;;;;;;;;;;;;;;;;QAyBnE,uFAAuF
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/visualization/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW;;;8BAGqC,UAAU;;;;;;;;;;;;;;;;;;;;;QAyBnE,uFAAuF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA6DvF,wEAAwE;;;;YAItE,8EAA8E;;YAE9E;;;;eAIG;;;QAGL,oFAAoF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwC9E,CAAC;AAEX,2DAA2D;AAC3D,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,gFAAgF;IAChF,YAAY,EAAE,MAAM,CAAC;IACrB,wEAAwE;IACxE,aAAa,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;CAAyB,CAAC;AAErD,eAAO,MAAM,iBAAiB;;;;;CAAgC,CAAC;AAE/D,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,cAAc,CAAC;AAEvD,KAAK,KAAK,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC;AAElD;;;;GAIG;AACH,QAAA,MAAM,kBAAkB,GAAI,GAAG,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BvB,CAAC;AAEd,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAShE,eAAO,MAAM,cAAc,QAAO,WAQjC,CAAC"}
|
|
@@ -18,5 +18,5 @@ import type { StyledPressableProps } from '../types';
|
|
|
18
18
|
* <Pressable style={[props.style, ({ pressed }) => ({ opacity: pressed ? 0.8 : 1 })]} />
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
export declare const createStyledPressable: (Component: typeof Pressable) => import("react").MemoExoticComponent<({ lx, ref, style, hapticFeedback, onPressIn, ...props }: StyledPressableProps) => import("react
|
|
21
|
+
export declare const createStyledPressable: (Component: typeof Pressable) => import("react").MemoExoticComponent<({ lx, ref, style, hapticFeedback, onPressIn, ...props }: StyledPressableProps) => import("react").JSX.Element>;
|
|
22
22
|
//# sourceMappingURL=createStyledPressable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createStyledPressable.d.ts","sourceRoot":"","sources":["../../../../../src/styles/lx/createStyledPressable.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,SAAS,EAGV,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,oBAAoB,EAAsB,MAAM,UAAU,CAAC;AA+BzE;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,qBAAqB,GAAI,WAAW,OAAO,SAAS,mGAS1D,oBAAoB,
|
|
1
|
+
{"version":3,"file":"createStyledPressable.d.ts","sourceRoot":"","sources":["../../../../../src/styles/lx/createStyledPressable.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,SAAS,EAGV,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,oBAAoB,EAAsB,MAAM,UAAU,CAAC;AA+BzE;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,qBAAqB,GAAI,WAAW,OAAO,SAAS,mGAS1D,oBAAoB,iCAkD1B,CAAC"}
|
|
@@ -8,5 +8,5 @@ import type { StyledTextProps } from '../types';
|
|
|
8
8
|
* const StyledText = createStyledText(Text);
|
|
9
9
|
* ```
|
|
10
10
|
*/
|
|
11
|
-
export declare const createStyledText: (Component: typeof Text) => import("react").MemoExoticComponent<({ typography, lx, ref, style, ...props }: StyledTextProps) => import("react
|
|
11
|
+
export declare const createStyledText: (Component: typeof Text) => import("react").MemoExoticComponent<({ typography, lx, ref, style, ...props }: StyledTextProps) => import("react").JSX.Element>;
|
|
12
12
|
//# sourceMappingURL=createStyledText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createStyledText.d.ts","sourceRoot":"","sources":["../../../../../src/styles/lx/createStyledText.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAa,MAAM,cAAc,CAAC;AAEpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAIhD;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAI,WAAW,OAAO,IAAI,oFAQhD,eAAe,
|
|
1
|
+
{"version":3,"file":"createStyledText.d.ts","sourceRoot":"","sources":["../../../../../src/styles/lx/createStyledText.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAa,MAAM,cAAc,CAAC;AAEpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAIhD;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAI,WAAW,OAAO,IAAI,oFAQhD,eAAe,iCAyBrB,CAAC"}
|
|
@@ -8,5 +8,5 @@ import type { StyledViewProps } from '../types';
|
|
|
8
8
|
* const StyledView = createStyledView(View);
|
|
9
9
|
* ```
|
|
10
10
|
*/
|
|
11
|
-
export declare const createStyledView: (Component: typeof View) => import("react").MemoExoticComponent<({ lx, ref, style, ...props }: StyledViewProps) => import("react
|
|
11
|
+
export declare const createStyledView: (Component: typeof View) => import("react").MemoExoticComponent<({ lx, ref, style, ...props }: StyledViewProps) => import("react").JSX.Element>;
|
|
12
12
|
//# sourceMappingURL=createStyledView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createStyledView.d.ts","sourceRoot":"","sources":["../../../../../src/styles/lx/createStyledView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAIhD;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAI,WAAW,OAAO,IAAI,wEAEf,eAAe,
|
|
1
|
+
{"version":3,"file":"createStyledView.d.ts","sourceRoot":"","sources":["../../../../../src/styles/lx/createStyledView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAIhD;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAI,WAAW,OAAO,IAAI,wEAEf,eAAe,iCAiBtD,CAAC"}
|
|
@@ -9,5 +9,5 @@ export declare const useLumenStyleSheetContext: <ContextRequired extends boolean
|
|
|
9
9
|
consumerName: string;
|
|
10
10
|
contextRequired: ContextRequired;
|
|
11
11
|
}) => ContextRequired extends true ? LumenStyleSheetContextValue : Partial<LumenStyleSheetContextValue>;
|
|
12
|
-
export declare const LumenStyleSheetProvider: ({ themes, colorScheme, children, }: LumenStyleSheetProviderProps) => import("react
|
|
12
|
+
export declare const LumenStyleSheetProvider: ({ themes, colorScheme, children, }: LumenStyleSheetProviderProps) => import("react").JSX.Element;
|
|
13
13
|
//# sourceMappingURL=LumenStyleSheetProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LumenStyleSheetProvider.d.ts","sourceRoot":"","sources":["../../../../../src/styles/provider/LumenStyleSheetProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAGpD,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAAiB,KAAK,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAI3E,MAAM,MAAM,2BAA2B,GAAG;IACxC,KAAK,EAAE,oBAAoB,CAAC;IAC5B,WAAW,EAAE,eAAe,CAAC;CAC9B,CAAC;AAKF,eAAO,MAAM,yBAAyB;;;uGAA6B,CAAC;AAEpE,eAAO,MAAM,uBAAuB,GAAI,oCAIrC,4BAA4B,
|
|
1
|
+
{"version":3,"file":"LumenStyleSheetProvider.d.ts","sourceRoot":"","sources":["../../../../../src/styles/provider/LumenStyleSheetProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAGpD,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAAiB,KAAK,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAI3E,MAAM,MAAM,2BAA2B,GAAG;IACxC,KAAK,EAAE,oBAAoB,CAAC;IAC5B,WAAW,EAAE,eAAe,CAAC;CAC9B,CAAC;AAKF,eAAO,MAAM,yBAAyB;;;uGAA6B,CAAC;AAEpE,eAAO,MAAM,uBAAuB,GAAI,oCAIrC,4BAA4B,gCAmB9B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/lumen-ui-rnative",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.73",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"!**/__fixtures__"
|
|
57
57
|
],
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@ledgerhq/lumen-utils-shared": "0.1.
|
|
59
|
+
"@ledgerhq/lumen-utils-shared": "0.1.19",
|
|
60
60
|
"@types/d3-scale": "^4.0.9",
|
|
61
61
|
"@types/d3-shape": "^3.1.8",
|
|
62
62
|
"d3-scale": "^4.0.2",
|
|
@@ -68,17 +68,17 @@
|
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"@types/react": "^19.0.0",
|
|
70
70
|
"@gorhom/bottom-sheet": "^5.0.0",
|
|
71
|
-
"@ledgerhq/lumen-design-core": "0.1.
|
|
71
|
+
"@ledgerhq/lumen-design-core": "0.1.35",
|
|
72
72
|
"react": "^19.0.0",
|
|
73
|
-
"react-native": "
|
|
73
|
+
"react-native": ">=0.81.6 <0.87",
|
|
74
74
|
"react-native-gesture-handler": ">=2.0.0",
|
|
75
75
|
"react-native-reanimated": "^4.3.0",
|
|
76
76
|
"react-native-safe-area-context": "^4.0.0 || ^5.0.0",
|
|
77
77
|
"react-native-svg": "^15.0.0",
|
|
78
|
-
"react-native-worklets": "
|
|
78
|
+
"react-native-worklets": ">=0.8.0 <0.11",
|
|
79
79
|
"@sbaiahmed1/react-native-blur": "^4.5.5",
|
|
80
80
|
"expo": ">=54.0.0",
|
|
81
|
-
"expo-haptics": "~15.0.8"
|
|
81
|
+
"expo-haptics": "~15.0.8 || ^55.0.0 || ^56.0.0 || ^57.0.0"
|
|
82
82
|
},
|
|
83
83
|
"peerDependenciesMeta": {
|
|
84
84
|
"react-native-gesture-handler": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useDisabledContext } from '@ledgerhq/lumen-utils-shared';
|
|
2
|
-
import {
|
|
2
|
+
import { View } from 'react-native';
|
|
3
3
|
import { useStyleSheet } from '../../../../styles';
|
|
4
4
|
import { Pressable } from '../../primitives';
|
|
5
5
|
import { Avatar } from '../Avatar/Avatar';
|
|
@@ -66,7 +66,11 @@ const useStyles = ({ disabled }: { disabled: boolean }) =>
|
|
|
66
66
|
...(disabled && { opacity: 0.3 }),
|
|
67
67
|
},
|
|
68
68
|
overlay: {
|
|
69
|
-
|
|
69
|
+
position: 'absolute',
|
|
70
|
+
top: 0,
|
|
71
|
+
left: 0,
|
|
72
|
+
right: 0,
|
|
73
|
+
bottom: 0,
|
|
70
74
|
borderRadius: 9999,
|
|
71
75
|
},
|
|
72
76
|
overlayPressed: {
|
|
@@ -114,7 +114,11 @@ const useCardStyles = ({
|
|
|
114
114
|
},
|
|
115
115
|
]),
|
|
116
116
|
outline: {
|
|
117
|
-
|
|
117
|
+
position: 'absolute',
|
|
118
|
+
top: 0,
|
|
119
|
+
left: 0,
|
|
120
|
+
right: 0,
|
|
121
|
+
bottom: 0,
|
|
118
122
|
borderRadius: t.borderRadius.lg,
|
|
119
123
|
borderWidth: t.borderWidth.s2,
|
|
120
124
|
borderColor: t.colors.border.active,
|
|
@@ -105,6 +105,9 @@ export const MenuListItem = ({
|
|
|
105
105
|
mergeWith: { disabled: disabledProp },
|
|
106
106
|
});
|
|
107
107
|
|
|
108
|
+
// Not inlined: `has-valid-accessibility-state` throws on spread entries in a JSX object literal.
|
|
109
|
+
const mergedAccessibilityState = { ...accessibilityState, disabled };
|
|
110
|
+
|
|
108
111
|
return (
|
|
109
112
|
<Pressable
|
|
110
113
|
ref={ref}
|
|
@@ -113,7 +116,7 @@ export const MenuListItem = ({
|
|
|
113
116
|
onPress={onPress}
|
|
114
117
|
disabled={disabled}
|
|
115
118
|
accessibilityRole='button'
|
|
116
|
-
accessibilityState={
|
|
119
|
+
accessibilityState={mergedAccessibilityState}
|
|
117
120
|
{...props}
|
|
118
121
|
>
|
|
119
122
|
{({ pressed }) => (
|
|
@@ -188,6 +191,13 @@ export const MenuListSwitchItem = ({
|
|
|
188
191
|
defaultProp: defaultChecked,
|
|
189
192
|
});
|
|
190
193
|
|
|
194
|
+
// Not inlined: `has-valid-accessibility-state` throws on spread entries in a JSX object literal.
|
|
195
|
+
const mergedAccessibilityState = {
|
|
196
|
+
...accessibilityState,
|
|
197
|
+
disabled,
|
|
198
|
+
checked,
|
|
199
|
+
};
|
|
200
|
+
|
|
191
201
|
return (
|
|
192
202
|
<Pressable
|
|
193
203
|
ref={ref}
|
|
@@ -196,7 +206,7 @@ export const MenuListSwitchItem = ({
|
|
|
196
206
|
onPress={() => onCheckedChange(!checked)}
|
|
197
207
|
disabled={disabled}
|
|
198
208
|
accessibilityRole='switch'
|
|
199
|
-
accessibilityState={
|
|
209
|
+
accessibilityState={mergedAccessibilityState}
|
|
200
210
|
{...props}
|
|
201
211
|
>
|
|
202
212
|
{({ pressed }) => (
|