@ledgerhq/lumen-ui-rnative 0.1.23 → 0.1.25
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/i18n/I18nProvider.js.map +1 -1
- package/dist/module/i18n/i18n.js.map +1 -1
- package/dist/module/lib/Components/AmountDisplay/AmountDisplay.js.map +1 -1
- package/dist/module/lib/Components/BaseInput/BaseInput.js +1 -1
- package/dist/module/lib/Components/BaseInput/BaseInput.js.map +1 -1
- package/dist/module/lib/Components/BottomSheet/BottomSheet.js.map +1 -1
- package/dist/module/lib/Components/BottomSheet/BottomSheet.test.js.map +1 -1
- package/dist/module/lib/Components/Card/Card.js +1 -1
- package/dist/module/lib/Components/Card/Card.js.map +1 -1
- package/dist/module/lib/Components/Checkbox/BaseCheckbox.js.map +1 -1
- package/dist/module/lib/Components/DotIcon/DotIcon.js +134 -0
- package/dist/module/lib/Components/DotIcon/DotIcon.js.map +1 -0
- package/dist/module/lib/Components/DotIcon/DotIcon.mdx +56 -0
- package/dist/module/lib/Components/DotIcon/DotIcon.stories.js +217 -0
- package/dist/module/lib/Components/DotIcon/DotIcon.stories.js.map +1 -0
- package/dist/module/lib/Components/DotIcon/DotIcon.test.js +238 -0
- package/dist/module/lib/Components/DotIcon/DotIcon.test.js.map +1 -0
- package/dist/module/lib/Components/DotIcon/index.js +5 -0
- package/dist/module/lib/Components/DotIcon/index.js.map +1 -0
- package/dist/module/lib/Components/DotIcon/types.js +4 -0
- package/dist/module/lib/Components/DotIcon/types.js.map +1 -0
- package/dist/module/lib/Components/DotSymbol/DotSymbol.js +29 -22
- package/dist/module/lib/Components/DotSymbol/DotSymbol.js.map +1 -1
- package/dist/module/lib/Components/DotSymbol/DotSymbol.stories.js +31 -9
- package/dist/module/lib/Components/DotSymbol/DotSymbol.stories.js.map +1 -1
- package/dist/module/lib/Components/InteractiveIcon/InteractiveIcon.js.map +1 -1
- package/dist/module/lib/Components/ListItem/ListItem.js.map +1 -1
- package/dist/module/lib/Components/MediaButton/MediaButton.test.js.map +1 -1
- package/dist/module/lib/Components/MediaImage/MediaImage.js +2 -1
- package/dist/module/lib/Components/MediaImage/MediaImage.js.map +1 -1
- package/dist/module/lib/Components/MediaImage/MediaImage.stories.js +4 -0
- package/dist/module/lib/Components/MediaImage/MediaImage.stories.js.map +1 -1
- package/dist/module/lib/Components/NavBar/NavBar.js.map +1 -1
- package/dist/module/lib/Components/SegmentedControl/usePillLayout.js.map +1 -1
- package/dist/module/lib/Components/Select/GlobalSelectContext.js.map +1 -1
- package/dist/module/lib/Components/Select/Select.js.map +1 -1
- package/dist/module/lib/Components/Slot/Slot.js.map +1 -1
- package/dist/module/lib/Components/Spinner/Spinner.js +6 -1
- package/dist/module/lib/Components/Spinner/Spinner.js.map +1 -1
- package/dist/module/lib/Components/Spot/Spot.js.map +1 -1
- package/dist/module/lib/Components/TabBar/TabBar.js +4 -4
- package/dist/module/lib/Components/TabBar/TabBar.js.map +1 -1
- package/dist/module/lib/Components/Tag/Tag.js +2 -0
- package/dist/module/lib/Components/Tag/Tag.js.map +1 -1
- package/dist/module/lib/Components/Tag/Tag.stories.js +8 -1
- package/dist/module/lib/Components/Tag/Tag.stories.js.map +1 -1
- package/dist/module/lib/Components/Tooltip/GlobalTooltipContext.js.map +1 -1
- package/dist/module/lib/Components/Tooltip/Tooltip.js.map +1 -1
- package/dist/module/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.test.js.map +1 -1
- package/dist/module/lib/Components/Utility/Gradient/RadialGradient/RadialGradient.test.js.map +1 -1
- package/dist/module/lib/Components/Utility/Pressable/Pressable.test.js.map +1 -1
- package/dist/module/lib/Components/index.js +1 -0
- package/dist/module/lib/Components/index.js.map +1 -1
- package/dist/module/lib/utils/components/InjectStylesIntoChildren.js.map +1 -1
- package/dist/module/lib/utils/constants/constants.js.map +1 -1
- package/dist/module/lib/utils/react/extractTextFromChildren.js.map +1 -1
- package/dist/module/lib/utils/useControllableState/useControllableState.js.map +1 -1
- package/dist/module/styles/hooks/useStyleSheet.js.map +1 -1
- package/dist/module/styles/hooks/useStyleSheet.test.js.map +1 -1
- package/dist/module/styles/lx/createStyledPressable.test.js.map +1 -1
- package/dist/module/styles/lx/createStyledText.test.js.map +1 -1
- package/dist/module/styles/lx/createStyledView.js.map +1 -1
- package/dist/module/styles/lx/createStyledView.test.js.map +1 -1
- package/dist/module/styles/provider/LumenStyleSheetProvider.js.map +1 -1
- package/dist/module/styles/provider/LumenStyleSheetProvider.test.js.map +1 -1
- package/dist/module/utils/icon-template.js +0 -1
- package/dist/module/utils/icon-template.js.map +1 -1
- package/dist/typescript/src/i18n/I18nProvider.d.ts +1 -1
- package/dist/typescript/src/i18n/I18nProvider.d.ts.map +1 -1
- package/dist/typescript/src/i18n/i18n.d.ts +1 -1
- package/dist/typescript/src/i18n/i18n.d.ts.map +1 -1
- package/dist/typescript/src/lib/Animations/Pulse/Pulse.d.ts +1 -1
- package/dist/typescript/src/lib/Animations/Pulse/Pulse.d.ts.map +1 -1
- package/dist/typescript/src/lib/Animations/Pulse/types.d.ts +2 -2
- package/dist/typescript/src/lib/Animations/Pulse/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Animations/Spin/Spin.d.ts +1 -1
- package/dist/typescript/src/lib/Animations/Spin/Spin.d.ts.map +1 -1
- package/dist/typescript/src/lib/Animations/Spin/types.d.ts +2 -2
- package/dist/typescript/src/lib/Animations/Spin/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Animations/types.d.ts +2 -2
- package/dist/typescript/src/lib/Animations/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Animations/useTimingConfig.d.ts +1 -1
- package/dist/typescript/src/lib/Animations/useTimingConfig.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/AddressInput/types.d.ts +2 -2
- package/dist/typescript/src/lib/Components/AddressInput/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/AmountDisplay/AmountDisplay.d.ts +1 -1
- package/dist/typescript/src/lib/Components/AmountDisplay/AmountDisplay.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/AmountDisplay/types.d.ts +2 -2
- package/dist/typescript/src/lib/Components/AmountDisplay/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/AmountInput/types.d.ts +2 -2
- package/dist/typescript/src/lib/Components/AmountInput/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Avatar/Avatar.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Avatar/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Avatar/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Banner/Banner.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Banner/Banner.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Banner/types.d.ts +2 -2
- package/dist/typescript/src/lib/Components/Banner/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/BaseInput/BaseInput.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/BaseInput/types.d.ts +2 -2
- package/dist/typescript/src/lib/Components/BaseInput/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/BottomSheet/BottomSheet.d.ts +1 -1
- package/dist/typescript/src/lib/Components/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/BottomSheet/BottomSheetHeader.d.ts +1 -1
- package/dist/typescript/src/lib/Components/BottomSheet/BottomSheetHeader.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/BottomSheet/CustomBackdrop.d.ts +1 -1
- package/dist/typescript/src/lib/Components/BottomSheet/CustomBackdrop.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/BottomSheet/CustomHandle.d.ts +2 -2
- package/dist/typescript/src/lib/Components/BottomSheet/CustomHandle.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/BottomSheet/Scrollables.d.ts +1 -1
- package/dist/typescript/src/lib/Components/BottomSheet/Scrollables.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/BottomSheet/types.d.ts +4 -4
- package/dist/typescript/src/lib/Components/BottomSheet/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/BottomSheet/useBottomSheetRef.d.ts +1 -1
- package/dist/typescript/src/lib/Components/BottomSheet/useBottomSheetRef.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Button/BaseButton.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Button/BaseButton.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Button/Button.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Button/Button.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Button/types.d.ts +4 -4
- package/dist/typescript/src/lib/Components/Button/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Card/Card.d.ts +2 -2
- package/dist/typescript/src/lib/Components/Card/Card.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Card/types.d.ts +3 -3
- package/dist/typescript/src/lib/Components/Card/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/CardButton/CardButton.d.ts +1 -1
- package/dist/typescript/src/lib/Components/CardButton/CardButton.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/CardButton/types.d.ts +3 -3
- package/dist/typescript/src/lib/Components/CardButton/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Checkbox/BaseCheckbox.d.ts +2 -2
- package/dist/typescript/src/lib/Components/Checkbox/BaseCheckbox.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Checkbox/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Checkbox/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/ContentBanner/ContentBanner.d.ts +1 -1
- package/dist/typescript/src/lib/Components/ContentBanner/ContentBanner.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/ContentBanner/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/ContentBanner/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Divider/Divider.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Divider/Divider.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Divider/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Divider/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/DotIcon/DotIcon.d.ts +30 -0
- package/dist/typescript/src/lib/Components/DotIcon/DotIcon.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/DotIcon/index.d.ts +3 -0
- package/dist/typescript/src/lib/Components/DotIcon/index.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/DotIcon/types.d.ts +40 -0
- package/dist/typescript/src/lib/Components/DotIcon/types.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/DotSymbol/DotSymbol.d.ts +3 -3
- package/dist/typescript/src/lib/Components/DotSymbol/DotSymbol.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/DotSymbol/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/DotSymbol/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Icon/Icon.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Icon/Icon.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Icon/createIcon.d.ts +2 -2
- package/dist/typescript/src/lib/Components/Icon/createIcon.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Icon/types.d.ts +4 -4
- package/dist/typescript/src/lib/Components/Icon/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/IconButton/IconButton.d.ts +1 -1
- package/dist/typescript/src/lib/Components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/IconButton/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/IconButton/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/InteractiveIcon/InteractiveIcon.d.ts +1 -1
- package/dist/typescript/src/lib/Components/InteractiveIcon/InteractiveIcon.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/InteractiveIcon/types.d.ts +4 -4
- package/dist/typescript/src/lib/Components/InteractiveIcon/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Label/Label.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Label/Label.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Label/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Label/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Link/Link.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Link/Link.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Link/types.d.ts +4 -4
- package/dist/typescript/src/lib/Components/Link/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/ListItem/ListItem.d.ts +2 -2
- package/dist/typescript/src/lib/Components/ListItem/ListItem.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/ListItem/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/ListItem/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/MediaBanner/MediaBanner.d.ts +1 -1
- package/dist/typescript/src/lib/Components/MediaBanner/MediaBanner.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/MediaBanner/types.d.ts +2 -2
- package/dist/typescript/src/lib/Components/MediaBanner/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/MediaButton/types.d.ts +2 -2
- package/dist/typescript/src/lib/Components/MediaButton/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/MediaCard/MediaCard.d.ts +1 -1
- package/dist/typescript/src/lib/Components/MediaCard/MediaCard.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/MediaCard/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/MediaCard/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/MediaImage/MediaImage.d.ts +1 -1
- package/dist/typescript/src/lib/Components/MediaImage/MediaImage.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/MediaImage/types.d.ts +2 -2
- package/dist/typescript/src/lib/Components/MediaImage/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/NavBar/CoinCapsule.d.ts +1 -1
- package/dist/typescript/src/lib/Components/NavBar/CoinCapsule.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/NavBar/NavBar.d.ts +1 -1
- package/dist/typescript/src/lib/Components/NavBar/NavBar.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/NavBar/types.d.ts +4 -4
- package/dist/typescript/src/lib/Components/NavBar/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/OptionList/types.d.ts +2 -2
- package/dist/typescript/src/lib/Components/OptionList/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/PageIndicator/PageIndicator.d.ts +1 -1
- package/dist/typescript/src/lib/Components/PageIndicator/PageIndicator.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/PageIndicator/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/PageIndicator/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/SearchInput/types.d.ts +2 -2
- package/dist/typescript/src/lib/Components/SearchInput/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/SegmentedControl/types.d.ts +4 -4
- package/dist/typescript/src/lib/Components/SegmentedControl/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/SegmentedControl/usePillLayout.d.ts +3 -2
- package/dist/typescript/src/lib/Components/SegmentedControl/usePillLayout.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Select/GlobalSelectContext.d.ts +2 -2
- package/dist/typescript/src/lib/Components/Select/GlobalSelectContext.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Select/SelectContext.d.ts +2 -2
- package/dist/typescript/src/lib/Components/Select/SelectContext.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Select/types.d.ts +4 -4
- package/dist/typescript/src/lib/Components/Select/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Skeleton/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Skeleton/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Slot/Slot.d.ts +2 -2
- package/dist/typescript/src/lib/Components/Slot/Slot.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Spinner/Spinner.d.ts +2 -2
- package/dist/typescript/src/lib/Components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Spinner/types.d.ts +3 -3
- package/dist/typescript/src/lib/Components/Spinner/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Spot/Spot.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Spot/Spot.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Spot/types.d.ts +3 -3
- package/dist/typescript/src/lib/Components/Spot/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Stepper/Stepper.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Stepper/Stepper.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Stepper/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Stepper/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Subheader/Subheader.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Subheader/Subheader.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Subheader/types.d.ts +3 -3
- package/dist/typescript/src/lib/Components/Subheader/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Switch/BaseSwitch.d.ts +2 -2
- package/dist/typescript/src/lib/Components/Switch/BaseSwitch.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Switch/Switch.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Switch/Switch.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Switch/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Switch/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/TabBar/TabBar.d.ts +1 -1
- package/dist/typescript/src/lib/Components/TabBar/TabBar.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/TabBar/types.d.ts +4 -4
- package/dist/typescript/src/lib/Components/TabBar/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Tag/Tag.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Tag/Tag.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Tag/types.d.ts +4 -4
- package/dist/typescript/src/lib/Components/Tag/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/TextInput/types.d.ts +2 -2
- package/dist/typescript/src/lib/Components/TextInput/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/dist/typescript/src/lib/Components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/ThemeProvider/types.d.ts +4 -4
- package/dist/typescript/src/lib/Components/ThemeProvider/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Tile/Tile.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Tile/Tile.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Tile/types.d.ts +2 -2
- package/dist/typescript/src/lib/Components/Tile/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/TileButton/TileButton.d.ts +1 -1
- package/dist/typescript/src/lib/Components/TileButton/TileButton.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/TileButton/types.d.ts +4 -4
- package/dist/typescript/src/lib/Components/TileButton/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Tooltip/GlobalTooltipContext.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Tooltip/GlobalTooltipContext.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Tooltip/TooltipContext.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Tooltip/TooltipContext.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Tooltip/types.d.ts +2 -2
- package/dist/typescript/src/lib/Components/Tooltip/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Utility/Box/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Utility/Box/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Utility/Gradient/LinearGradient/types.d.ts +3 -3
- package/dist/typescript/src/lib/Components/Utility/Gradient/LinearGradient/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Utility/Gradient/RadialGradient/types.d.ts +3 -3
- package/dist/typescript/src/lib/Components/Utility/Gradient/RadialGradient/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Utility/Pressable/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Utility/Pressable/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Utility/Text/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Utility/Text/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Wrap/Wrap.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Wrap/Wrap.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Wrap/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Wrap/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/index.d.ts +1 -0
- package/dist/typescript/src/lib/Components/index.d.ts.map +1 -1
- package/dist/typescript/src/lib/types/index.d.ts +1 -1
- package/dist/typescript/src/lib/types/index.d.ts.map +1 -1
- package/dist/typescript/src/lib/utils/components/InjectStylesIntoChildren.d.ts +2 -2
- package/dist/typescript/src/lib/utils/components/InjectStylesIntoChildren.d.ts.map +1 -1
- package/dist/typescript/src/lib/utils/constants/constants.d.ts.map +1 -1
- package/dist/typescript/src/lib/utils/react/extractTextFromChildren.d.ts +1 -1
- package/dist/typescript/src/lib/utils/react/extractTextFromChildren.d.ts.map +1 -1
- package/dist/typescript/src/lib/utils/useControllableState/useControllableState.d.ts +1 -1
- package/dist/typescript/src/lib/utils/useControllableState/useControllableState.d.ts.map +1 -1
- package/dist/typescript/src/styles/hooks/useStyleSheet.d.ts +1 -1
- package/dist/typescript/src/styles/hooks/useStyleSheet.d.ts.map +1 -1
- package/dist/typescript/src/styles/lx/areLxPropsEqual.d.ts +1 -1
- package/dist/typescript/src/styles/lx/areLxPropsEqual.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/lx/resolveConfig.d.ts +1 -1
- package/dist/typescript/src/styles/lx/resolveConfig.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/dist/typescript/src/styles/provider/types.d.ts +3 -3
- package/dist/typescript/src/styles/provider/types.d.ts.map +1 -1
- package/dist/typescript/src/styles/theme/createStylesheetTheme.d.ts +1 -1
- package/dist/typescript/src/styles/theme/createStylesheetTheme.d.ts.map +1 -1
- package/dist/typescript/src/styles/theme/resolvers/resolveFontWeights.d.ts +1 -1
- package/dist/typescript/src/styles/theme/resolvers/resolveFontWeights.d.ts.map +1 -1
- package/dist/typescript/src/styles/theme/resolvers/resolveNegativeSpacing.d.ts +2 -2
- package/dist/typescript/src/styles/theme/resolvers/resolveNegativeSpacing.d.ts.map +1 -1
- package/dist/typescript/src/styles/types/factories.types.d.ts +3 -3
- package/dist/typescript/src/styles/types/factories.types.d.ts.map +1 -1
- package/dist/typescript/src/styles/types/theme.types.d.ts +2 -2
- package/dist/typescript/src/styles/types/theme.types.d.ts.map +1 -1
- package/dist/typescript/src/utils/icon-template.d.ts +1 -1
- package/dist/typescript/src/utils/icon-template.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/i18n/I18nProvider.tsx +2 -1
- package/src/i18n/i18n.ts +2 -5
- package/src/lib/Animations/Pulse/Pulse.tsx +2 -2
- package/src/lib/Animations/Pulse/types.ts +2 -2
- package/src/lib/Animations/Spin/Spin.tsx +2 -2
- package/src/lib/Animations/Spin/types.ts +2 -2
- package/src/lib/Animations/types.ts +2 -2
- package/src/lib/Animations/useTimingConfig.ts +1 -1
- package/src/lib/Components/AddressInput/AddressInput.stories.tsx +1 -1
- package/src/lib/Components/AddressInput/types.ts +2 -2
- package/src/lib/Components/AmountDisplay/AmountDisplay.test.tsx +1 -1
- package/src/lib/Components/AmountDisplay/AmountDisplay.tsx +3 -3
- package/src/lib/Components/AmountDisplay/types.ts +2 -2
- package/src/lib/Components/AmountInput/types.ts +2 -2
- package/src/lib/Components/Avatar/Avatar.stories.tsx +1 -1
- package/src/lib/Components/Avatar/Avatar.tsx +1 -1
- package/src/lib/Components/Avatar/types.ts +1 -1
- package/src/lib/Components/Banner/Banner.tsx +3 -3
- package/src/lib/Components/Banner/types.ts +2 -2
- package/src/lib/Components/BaseInput/BaseInput.tsx +2 -1
- package/src/lib/Components/BaseInput/types.ts +5 -5
- package/src/lib/Components/BottomSheet/BottomSheet.test.tsx +2 -1
- package/src/lib/Components/BottomSheet/BottomSheet.tsx +3 -5
- package/src/lib/Components/BottomSheet/BottomSheetHeader.tsx +1 -1
- package/src/lib/Components/BottomSheet/CustomBackdrop.tsx +1 -1
- package/src/lib/Components/BottomSheet/CustomHandle.tsx +2 -2
- package/src/lib/Components/BottomSheet/Scrollables.tsx +2 -2
- package/src/lib/Components/BottomSheet/types.ts +4 -4
- package/src/lib/Components/BottomSheet/useBottomSheetRef.ts +1 -1
- package/src/lib/Components/Button/BaseButton.test.tsx +1 -1
- package/src/lib/Components/Button/BaseButton.tsx +3 -3
- package/src/lib/Components/Button/Button.tsx +1 -1
- package/src/lib/Components/Button/types.ts +4 -4
- package/src/lib/Components/Card/Card.test.tsx +1 -1
- package/src/lib/Components/Card/Card.tsx +5 -3
- package/src/lib/Components/Card/types.ts +3 -3
- package/src/lib/Components/CardButton/CardButton.tsx +1 -1
- package/src/lib/Components/CardButton/types.ts +3 -3
- package/src/lib/Components/Checkbox/BaseCheckbox.tsx +4 -8
- package/src/lib/Components/Checkbox/Checkbox.tsx +1 -1
- package/src/lib/Components/Checkbox/types.ts +1 -1
- package/src/lib/Components/ContentBanner/ContentBanner.tsx +1 -1
- package/src/lib/Components/ContentBanner/types.ts +1 -1
- package/src/lib/Components/Divider/Divider.tsx +1 -1
- package/src/lib/Components/Divider/types.ts +1 -1
- package/src/lib/Components/DotIcon/DotIcon.mdx +56 -0
- package/src/lib/Components/DotIcon/DotIcon.stories.tsx +154 -0
- package/src/lib/Components/DotIcon/DotIcon.test.tsx +224 -0
- package/src/lib/Components/DotIcon/DotIcon.tsx +146 -0
- package/src/lib/Components/DotIcon/index.ts +6 -0
- package/src/lib/Components/DotIcon/types.ts +44 -0
- package/src/lib/Components/DotSymbol/DotSymbol.stories.tsx +26 -7
- package/src/lib/Components/DotSymbol/DotSymbol.tsx +25 -26
- package/src/lib/Components/DotSymbol/types.ts +1 -1
- package/src/lib/Components/Icon/Icon.tsx +2 -2
- package/src/lib/Components/Icon/createIcon.ts +2 -2
- package/src/lib/Components/Icon/types.ts +4 -4
- package/src/lib/Components/IconButton/IconButton.tsx +1 -1
- package/src/lib/Components/IconButton/types.ts +1 -1
- package/src/lib/Components/InteractiveIcon/InteractiveIcon.tsx +4 -3
- package/src/lib/Components/InteractiveIcon/types.ts +4 -4
- package/src/lib/Components/Label/Label.tsx +1 -1
- package/src/lib/Components/Label/types.ts +1 -1
- package/src/lib/Components/Link/Link.test.tsx +1 -1
- package/src/lib/Components/Link/Link.tsx +2 -2
- package/src/lib/Components/Link/types.ts +4 -4
- package/src/lib/Components/ListItem/ListItem.test.tsx +1 -1
- package/src/lib/Components/ListItem/ListItem.tsx +5 -4
- package/src/lib/Components/ListItem/types.ts +1 -1
- package/src/lib/Components/MediaBanner/MediaBanner.tsx +1 -1
- package/src/lib/Components/MediaBanner/types.ts +2 -2
- package/src/lib/Components/MediaButton/MediaButton.test.tsx +2 -1
- package/src/lib/Components/MediaButton/MediaButton.tsx +1 -1
- package/src/lib/Components/MediaButton/types.ts +2 -2
- package/src/lib/Components/MediaCard/MediaCard.tsx +1 -1
- package/src/lib/Components/MediaCard/types.ts +1 -1
- package/src/lib/Components/MediaImage/MediaImage.stories.tsx +1 -0
- package/src/lib/Components/MediaImage/MediaImage.tsx +4 -2
- package/src/lib/Components/MediaImage/types.ts +2 -2
- package/src/lib/Components/NavBar/CoinCapsule.tsx +1 -1
- package/src/lib/Components/NavBar/NavBar.tsx +5 -3
- package/src/lib/Components/NavBar/types.ts +4 -4
- package/src/lib/Components/OptionList/types.ts +2 -2
- package/src/lib/Components/PageIndicator/PageIndicator.tsx +1 -1
- package/src/lib/Components/PageIndicator/types.ts +1 -1
- package/src/lib/Components/SearchInput/SearchInput.stories.tsx +1 -1
- package/src/lib/Components/SearchInput/types.ts +2 -2
- package/src/lib/Components/SegmentedControl/SegmentedControl.tsx +1 -1
- package/src/lib/Components/SegmentedControl/types.ts +4 -4
- package/src/lib/Components/SegmentedControl/usePillLayout.ts +2 -2
- package/src/lib/Components/Select/GlobalSelectContext.tsx +3 -2
- package/src/lib/Components/Select/Select.tsx +1 -1
- package/src/lib/Components/Select/SelectContext.tsx +2 -2
- package/src/lib/Components/Select/types.ts +4 -4
- package/src/lib/Components/Skeleton/Skeleton.stories.tsx +1 -1
- package/src/lib/Components/Skeleton/types.ts +1 -1
- package/src/lib/Components/Slot/Slot.tsx +4 -5
- package/src/lib/Components/Spinner/Spinner.stories.tsx +1 -1
- package/src/lib/Components/Spinner/Spinner.tsx +9 -4
- package/src/lib/Components/Spinner/types.ts +3 -3
- package/src/lib/Components/Spot/Spot.stories.tsx +2 -2
- package/src/lib/Components/Spot/Spot.tsx +6 -4
- package/src/lib/Components/Spot/types.ts +3 -3
- package/src/lib/Components/Stepper/Stepper.stories.tsx +1 -1
- package/src/lib/Components/Stepper/Stepper.tsx +1 -1
- package/src/lib/Components/Stepper/types.ts +1 -1
- package/src/lib/Components/Subheader/Subheader.tsx +1 -1
- package/src/lib/Components/Subheader/types.ts +3 -3
- package/src/lib/Components/Switch/BaseSwitch.tsx +2 -2
- package/src/lib/Components/Switch/Switch.tsx +1 -1
- package/src/lib/Components/Switch/types.ts +1 -1
- package/src/lib/Components/TabBar/TabBar.tsx +4 -9
- package/src/lib/Components/TabBar/types.ts +4 -4
- package/src/lib/Components/Tag/Tag.stories.tsx +11 -1
- package/src/lib/Components/Tag/Tag.tsx +4 -2
- package/src/lib/Components/Tag/types.ts +11 -4
- package/src/lib/Components/TextInput/types.ts +2 -2
- package/src/lib/Components/ThemeProvider/ThemeProvider.tsx +1 -1
- package/src/lib/Components/ThemeProvider/types.ts +4 -4
- package/src/lib/Components/Tile/Tile.tsx +2 -2
- package/src/lib/Components/Tile/types.ts +2 -2
- package/src/lib/Components/TileButton/TileButton.test.tsx +1 -1
- package/src/lib/Components/TileButton/TileButton.tsx +3 -3
- package/src/lib/Components/TileButton/types.ts +4 -4
- package/src/lib/Components/Tooltip/GlobalTooltipContext.tsx +2 -1
- package/src/lib/Components/Tooltip/Tooltip.tsx +1 -1
- package/src/lib/Components/Tooltip/TooltipContext.tsx +1 -1
- package/src/lib/Components/Tooltip/types.ts +2 -2
- package/src/lib/Components/Utility/Box/types.ts +1 -1
- package/src/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.test.tsx +2 -1
- package/src/lib/Components/Utility/Gradient/LinearGradient/types.ts +3 -3
- package/src/lib/Components/Utility/Gradient/RadialGradient/RadialGradient.test.tsx +2 -1
- package/src/lib/Components/Utility/Gradient/RadialGradient/types.ts +3 -3
- package/src/lib/Components/Utility/Pressable/Pressable.test.tsx +2 -1
- package/src/lib/Components/Utility/Pressable/types.ts +1 -1
- package/src/lib/Components/Utility/Text/Text.stories.tsx +1 -1
- package/src/lib/Components/Utility/Text/types.ts +1 -1
- package/src/lib/Components/Wrap/Wrap.tsx +1 -1
- package/src/lib/Components/Wrap/types.ts +1 -1
- package/src/lib/Components/index.ts +1 -0
- package/src/lib/types/index.ts +1 -1
- package/src/lib/utils/components/InjectStylesIntoChildren.tsx +3 -8
- package/src/lib/utils/constants/constants.ts +2 -4
- package/src/lib/utils/react/extractTextFromChildren.ts +2 -1
- package/src/lib/utils/useControllableState/useControllableState.ts +2 -1
- package/src/styles/hooks/useStyleSheet.test.tsx +2 -1
- package/src/styles/hooks/useStyleSheet.ts +2 -1
- package/src/styles/lx/areLxPropsEqual.ts +1 -1
- package/src/styles/lx/createStyledPressable.test.tsx +2 -2
- package/src/styles/lx/createStyledPressable.tsx +1 -1
- package/src/styles/lx/createStyledText.test.tsx +2 -1
- package/src/styles/lx/createStyledText.tsx +1 -1
- package/src/styles/lx/createStyledView.test.tsx +2 -1
- package/src/styles/lx/createStyledView.tsx +2 -1
- package/src/styles/lx/resolveConfig.ts +1 -1
- package/src/styles/provider/LumenStyleSheetProvider.test.tsx +2 -1
- package/src/styles/provider/LumenStyleSheetProvider.tsx +2 -4
- package/src/styles/provider/types.ts +3 -3
- package/src/styles/theme/createStylesheetTheme.ts +1 -1
- package/src/styles/theme/resolvers/resolveFontWeights.ts +1 -1
- package/src/styles/theme/resolvers/resolveNegativeSpacing.test.ts +1 -1
- package/src/styles/theme/resolvers/resolveNegativeSpacing.ts +2 -2
- package/src/styles/types/factories.types.ts +3 -3
- package/src/styles/types/theme.types.ts +2 -2
- package/src/utils/icon-template.ts +1 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isTextChildren } from '@ledgerhq/lumen-utils-shared';
|
|
2
|
-
import { ComponentType } from 'react';
|
|
2
|
+
import type { ComponentType } from 'react';
|
|
3
3
|
import { StyleSheet, Text, View } from 'react-native';
|
|
4
4
|
import { useCommonTranslation } from '../../../i18n';
|
|
5
5
|
import { useStyleSheet } from '../../../styles';
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
DeleteCircleFill,
|
|
11
11
|
Close,
|
|
12
12
|
} from '../../Symbols';
|
|
13
|
-
import { IconProps } from '../Icon';
|
|
13
|
+
import type { IconProps } from '../Icon';
|
|
14
14
|
import { IconButton } from '../IconButton';
|
|
15
15
|
import { Box } from '../Utility';
|
|
16
16
|
import { Wrap } from '../Wrap';
|
|
17
|
-
import { BannerProps } from './types';
|
|
17
|
+
import type { BannerProps } from './types';
|
|
18
18
|
|
|
19
19
|
type Appearance = NonNullable<BannerProps['appearance']>;
|
|
20
20
|
|
|
@@ -18,7 +18,8 @@ import Animated, {
|
|
|
18
18
|
cancelAnimation,
|
|
19
19
|
} from 'react-native-reanimated';
|
|
20
20
|
import { useCommonTranslation } from '../../../i18n';
|
|
21
|
-
import { LumenStyleSheetTheme
|
|
21
|
+
import type { LumenStyleSheetTheme } from '../../../styles';
|
|
22
|
+
import { useStyleSheet, useTheme } from '../../../styles';
|
|
22
23
|
import { useTimingConfig } from '../../Animations/useTimingConfig';
|
|
23
24
|
import { DeleteCircleFill } from '../../Symbols/Icons/DeleteCircleFill';
|
|
24
25
|
import { RuntimeConstants } from '../../utils';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type {
|
|
2
2
|
TextStyle,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
ViewStyle,
|
|
4
|
+
StyleProp,
|
|
5
|
+
TextInputProps,
|
|
6
6
|
} from 'react-native';
|
|
7
|
-
import { BoxProps } from '../Utility';
|
|
7
|
+
import type { BoxProps } from '../Utility';
|
|
8
8
|
|
|
9
9
|
export type BaseInputProps = {
|
|
10
10
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { describe, it, expect, jest } from '@jest/globals';
|
|
2
2
|
import { ledgerLiveThemes } from '@ledgerhq/lumen-design-core';
|
|
3
|
-
import {
|
|
3
|
+
import type { RenderOptions } from '@testing-library/react-native';
|
|
4
|
+
import { render } from '@testing-library/react-native';
|
|
4
5
|
import { Text, View } from 'react-native';
|
|
5
6
|
import { ThemeProvider } from '../ThemeProvider/ThemeProvider';
|
|
6
7
|
import { BottomSheet as BottomSheetComponent } from './BottomSheet';
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
SNAP_POINT_TYPE,
|
|
4
|
-
} from '@gorhom/bottom-sheet';
|
|
1
|
+
import type { SNAP_POINT_TYPE } from '@gorhom/bottom-sheet';
|
|
2
|
+
import { BottomSheetModal as GorhomBottomSheetModal } from '@gorhom/bottom-sheet';
|
|
5
3
|
import { createSafeContext, useMergedRef } from '@ledgerhq/lumen-utils-shared';
|
|
6
4
|
import { useCallback, useMemo, useRef, useState } from 'react';
|
|
7
5
|
import { StyleSheet } from 'react-native';
|
|
@@ -9,7 +7,7 @@ import { useStyleSheet } from '../../../styles';
|
|
|
9
7
|
import { RuntimeConstants } from '../../utils';
|
|
10
8
|
import { CustomBackdrop } from './CustomBackdrop';
|
|
11
9
|
import { CustomHandle } from './CustomHandle';
|
|
12
|
-
import { BottomSheetProps } from './types';
|
|
10
|
+
import type { BottomSheetProps } from './types';
|
|
13
11
|
|
|
14
12
|
const OFFSET_TOP = 25;
|
|
15
13
|
const FULL_HEIGHT = RuntimeConstants.insetDimensions.height;
|
|
@@ -7,7 +7,7 @@ import { ArrowLeft, Close } from '../../Symbols';
|
|
|
7
7
|
import { IconButton } from '../IconButton';
|
|
8
8
|
import { Box, Text } from '../Utility';
|
|
9
9
|
import { useBottomSheetContext } from './BottomSheet';
|
|
10
|
-
import { BottomSheetHeaderProps } from './types';
|
|
10
|
+
import type { BottomSheetHeaderProps } from './types';
|
|
11
11
|
|
|
12
12
|
type DensityValue = NonNullable<BottomSheetHeaderProps['density']>;
|
|
13
13
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BottomSheetBackdrop as GorhomBottomSheetBackdrop } from '@gorhom/bottom-sheet';
|
|
2
2
|
import { useStyleSheet } from '../../../styles';
|
|
3
|
-
import { BottomSheetProps } from './types';
|
|
3
|
+
import type { BottomSheetProps } from './types';
|
|
4
4
|
|
|
5
5
|
type BackDropProps = React.ComponentProps<typeof GorhomBottomSheetBackdrop> & {
|
|
6
6
|
backdropPressBehavior?: BottomSheetProps['backdropPressBehavior'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BottomSheetVariables } from '@gorhom/bottom-sheet/lib/typescript/types';
|
|
2
|
-
import { Ref } from 'react';
|
|
1
|
+
import type { BottomSheetVariables } from '@gorhom/bottom-sheet/lib/typescript/types';
|
|
2
|
+
import type { Ref } from 'react';
|
|
3
3
|
import { View } from 'react-native';
|
|
4
4
|
import { useStyleSheet } from '../../../styles';
|
|
5
5
|
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
BottomSheetScrollView as GorhomBottomSheetScrollView,
|
|
6
6
|
BottomSheetVirtualizedList as GorhomBottomSheetVirtualizedList,
|
|
7
7
|
} from '@gorhom/bottom-sheet';
|
|
8
|
-
import { ViewStyle } from 'react-native';
|
|
8
|
+
import type { ViewStyle } from 'react-native';
|
|
9
9
|
import { useStyleSheet } from '../../../styles';
|
|
10
|
-
import {
|
|
10
|
+
import type {
|
|
11
11
|
BottomSheetViewProps,
|
|
12
12
|
BottomSheetFlatListProps,
|
|
13
13
|
BottomSheetSectionListProps,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type {
|
|
2
2
|
BottomSheetModal as GorhomBottomSheetModal,
|
|
3
3
|
BottomSheetView as GorhomBottomSheetView,
|
|
4
4
|
BottomSheetFlatList as GorhomBottomSheetFlatList,
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
BottomSheetVirtualizedList as GorhomBottomSheetVirtualizedList,
|
|
8
8
|
} from '@gorhom/bottom-sheet';
|
|
9
9
|
|
|
10
|
-
import { Density } from '@ledgerhq/lumen-utils-shared';
|
|
11
|
-
import { PropsWithChildren, ReactNode, Ref } from 'react';
|
|
12
|
-
import { StyledViewProps } from '../../../styles';
|
|
10
|
+
import type { Density } from '@ledgerhq/lumen-utils-shared';
|
|
11
|
+
import type { PropsWithChildren, ReactNode, Ref } from 'react';
|
|
12
|
+
import type { StyledViewProps } from '../../../styles';
|
|
13
13
|
export type BottomSheetProps = PropsWithChildren & {
|
|
14
14
|
/**
|
|
15
15
|
* Ref to the bottom sheet component.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describe, it, expect, jest } from '@jest/globals';
|
|
2
2
|
import { ledgerLiveThemes } from '@ledgerhq/lumen-design-core';
|
|
3
3
|
import { render, screen, fireEvent } from '@testing-library/react-native';
|
|
4
|
-
import { ViewStyle } from 'react-native';
|
|
4
|
+
import type { ViewStyle } from 'react-native';
|
|
5
5
|
|
|
6
6
|
import { Plus, Settings } from '../../Symbols';
|
|
7
7
|
import { ThemeProvider } from '../ThemeProvider/ThemeProvider';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useDisabledContext } from '@ledgerhq/lumen-utils-shared';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
+
import type { PropsWithChildren } from 'react';
|
|
3
3
|
import { StyleSheet, Text, View } from 'react-native';
|
|
4
4
|
import { useStyleSheet } from '../../../styles';
|
|
5
|
-
import { IconSize } from '../Icon';
|
|
5
|
+
import type { IconSize } from '../Icon';
|
|
6
6
|
import { Spinner } from '../Spinner';
|
|
7
7
|
import { Pressable } from '../Utility';
|
|
8
|
-
import { BaseButtonProps } from './types';
|
|
8
|
+
import type { BaseButtonProps } from './types';
|
|
9
9
|
|
|
10
10
|
type Appearance = NonNullable<BaseButtonProps['appearance']>;
|
|
11
11
|
type Size = NonNullable<BaseButtonProps['size']>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComponentType, ReactNode } from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import { StyledPressableProps } from '../../../styles';
|
|
4
|
-
import { IconSize } from '../Icon';
|
|
1
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { StyledPressableProps } from '../../../styles';
|
|
4
|
+
import type { IconSize } from '../Icon';
|
|
5
5
|
|
|
6
6
|
export type BaseButtonProps = {
|
|
7
7
|
/**
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
CardFooter,
|
|
17
17
|
CardFooterActions,
|
|
18
18
|
} from './Card';
|
|
19
|
-
import { CardProps } from './types';
|
|
19
|
+
import type { CardProps } from './types';
|
|
20
20
|
|
|
21
21
|
const TestWrapper = ({ children }: { children: React.ReactNode }) => (
|
|
22
22
|
<ThemeProvider themes={ledgerLiveThemes} colorScheme='dark' locale='en'>
|
|
@@ -3,8 +3,10 @@ import {
|
|
|
3
3
|
DisabledProvider,
|
|
4
4
|
isTextChildren,
|
|
5
5
|
} from '@ledgerhq/lumen-utils-shared';
|
|
6
|
-
import { ReactNode, Ref
|
|
7
|
-
import {
|
|
6
|
+
import type { ReactNode, Ref } from 'react';
|
|
7
|
+
import { useCallback, useEffect, useMemo } from 'react';
|
|
8
|
+
import type { LayoutChangeEvent, ViewStyle } from 'react-native';
|
|
9
|
+
import { StyleSheet, View } from 'react-native';
|
|
8
10
|
import Animated, {
|
|
9
11
|
useAnimatedStyle,
|
|
10
12
|
useSharedValue,
|
|
@@ -15,7 +17,7 @@ import { useTimingConfig } from '../../Animations/useTimingConfig';
|
|
|
15
17
|
import { ChevronDown, ChevronUp } from '../../Symbols';
|
|
16
18
|
import { Box, Text, Pressable } from '../Utility';
|
|
17
19
|
|
|
18
|
-
import {
|
|
20
|
+
import type {
|
|
19
21
|
CardContentAlignContextValue,
|
|
20
22
|
CardContentDescriptionProps,
|
|
21
23
|
CardContentProps,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { GestureResponderEvent } from 'react-native';
|
|
3
|
-
import { StyledTextProps, StyledViewProps } from '../../../styles';
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { GestureResponderEvent } from 'react-native';
|
|
3
|
+
import type { StyledTextProps, StyledViewProps } from '../../../styles';
|
|
4
4
|
|
|
5
5
|
export type CardType = 'interactive' | 'expandable' | 'info';
|
|
6
6
|
|
|
@@ -4,7 +4,7 @@ import { useStyleSheet } from '../../../styles';
|
|
|
4
4
|
import { ChevronRight } from '../../Symbols';
|
|
5
5
|
import { Pressable } from '../Utility';
|
|
6
6
|
|
|
7
|
-
import { CardButtonProps } from './types';
|
|
7
|
+
import type { CardButtonProps } from './types';
|
|
8
8
|
|
|
9
9
|
type Appearance = NonNullable<CardButtonProps['appearance']>;
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
-
import { StyledPressableProps } from '../../../styles';
|
|
3
|
-
import { IconSize } from '../Icon';
|
|
1
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
import type { StyledPressableProps } from '../../../styles';
|
|
3
|
+
import type { IconSize } from '../Icon';
|
|
4
4
|
|
|
5
5
|
export type CardButtonProps = {
|
|
6
6
|
/**
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import { createSafeContext } from '@ledgerhq/lumen-utils-shared';
|
|
2
2
|
import { useCallback } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
Pressable,
|
|
6
|
-
View,
|
|
7
|
-
StyleSheet,
|
|
8
|
-
} from 'react-native';
|
|
3
|
+
import type { GestureResponderEvent } from 'react-native';
|
|
4
|
+
import { Pressable, View, StyleSheet } from 'react-native';
|
|
9
5
|
import { useStyleSheet } from '../../../styles';
|
|
10
|
-
import {
|
|
6
|
+
import type {
|
|
11
7
|
ForceMountable,
|
|
12
8
|
SlottablePressableProps,
|
|
13
9
|
SlottableViewProps,
|
|
14
10
|
} from '../../types';
|
|
15
11
|
import { SlotPressable, SlotView } from '../Slot';
|
|
16
|
-
import { CheckboxProps } from './types';
|
|
12
|
+
import type { CheckboxProps } from './types';
|
|
17
13
|
|
|
18
14
|
const ROOT_COMPONENT_NAME = 'BaseCheckbox';
|
|
19
15
|
const TRIGGER_COMPONENT_NAME = 'BaseCheckboxTrigger';
|
|
@@ -6,7 +6,7 @@ import { Label } from '../Label';
|
|
|
6
6
|
import { Box } from '../Utility';
|
|
7
7
|
import { BaseCheckboxIndicator, BaseCheckboxRoot } from './BaseCheckbox';
|
|
8
8
|
|
|
9
|
-
import { CheckboxProps } from './types';
|
|
9
|
+
import type { CheckboxProps } from './types';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* The checkbox follows the design system tokens and supports checked, unchecked,
|
|
@@ -5,7 +5,7 @@ import { useStyleSheet } from '../../../styles';
|
|
|
5
5
|
import { Close } from '../../Symbols';
|
|
6
6
|
import { InteractiveIcon } from '../InteractiveIcon';
|
|
7
7
|
import { Box, Text } from '../Utility';
|
|
8
|
-
import {
|
|
8
|
+
import type {
|
|
9
9
|
ContentBannerContentProps,
|
|
10
10
|
ContentBannerDescriptionProps,
|
|
11
11
|
ContentBannerProps,
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Meta, Canvas, Controls } from '@storybook/addon-docs/blocks';
|
|
2
|
+
import * as DotIconStories from './DotIcon.stories';
|
|
3
|
+
|
|
4
|
+
<Meta title='Communication/DotIcon' of={DotIconStories} />
|
|
5
|
+
|
|
6
|
+
# DotIcon
|
|
7
|
+
|
|
8
|
+
## Introduction
|
|
9
|
+
|
|
10
|
+
DotIcon positions a small icon indicator at a configurable corner of a child element such as MediaImage or Spot. The dot background uses a semantic color (`success`, `muted`, or `error`) to convey meaning at a glance.
|
|
11
|
+
> View in [Figma](https://www.figma.com/design/zSkvGGiqcnhywp2l3HTHxA/1.-Symbol-Library?node-id=6159-1866).
|
|
12
|
+
|
|
13
|
+
## Anatomy
|
|
14
|
+
|
|
15
|
+
<Canvas of={DotIconStories.Base} />
|
|
16
|
+
|
|
17
|
+
- **Wrapper**: Relative container that preserves the child's layout
|
|
18
|
+
- **Child**: The primary element (e.g. MediaImage, Spot)
|
|
19
|
+
- **Dot**: Absolutely-positioned indicator with a semantic background and an icon inside
|
|
20
|
+
|
|
21
|
+
## Properties
|
|
22
|
+
|
|
23
|
+
### Overview
|
|
24
|
+
|
|
25
|
+
<Canvas of={DotIconStories.Base} />
|
|
26
|
+
<Controls of={DotIconStories.Base} />
|
|
27
|
+
|
|
28
|
+
### Pin
|
|
29
|
+
|
|
30
|
+
Four corner placements are available: `bottom-end` (default), `top-end`, `bottom-start`, and `top-start`.
|
|
31
|
+
|
|
32
|
+
<Canvas of={DotIconStories.PinShowcase} />
|
|
33
|
+
|
|
34
|
+
### Shapes
|
|
35
|
+
|
|
36
|
+
<Canvas of={DotIconStories.ShapeShowcase} />
|
|
37
|
+
|
|
38
|
+
- **circle** (default): Fully rounded dot
|
|
39
|
+
- **square**: Rounded corners that scale with size
|
|
40
|
+
|
|
41
|
+
### Appearances
|
|
42
|
+
|
|
43
|
+
The `appearance` prop controls the semantic background color of the dot: `success`, `muted`, or `error`.
|
|
44
|
+
|
|
45
|
+
<Canvas of={DotIconStories.AppearanceShowcase} />
|
|
46
|
+
|
|
47
|
+
### Sizes
|
|
48
|
+
|
|
49
|
+
The dot size is driven by the parent MediaImage or Spot size via the mapping helpers `mediaImageDotIconSizeMap` and `spotDotIconSizeMap`. Allowed sizes are `16`, `20`, and `24`. The icon size is handled internally by the component.
|
|
50
|
+
|
|
51
|
+
<Canvas of={DotIconStories.SizeShowcase} />
|
|
52
|
+
|
|
53
|
+
## Accessibility
|
|
54
|
+
|
|
55
|
+
- The icon is purely decorative; the child element should carry its own accessibility label.
|
|
56
|
+
- Pair semantic appearances with meaningful icons so the state can be understood without relying on color alone.
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-native-web-vite';
|
|
2
|
+
import { ArrowDown, ArrowUp, Close, Link, Star } from '../../Symbols';
|
|
3
|
+
import { MediaImage } from '../MediaImage';
|
|
4
|
+
import { Spinner } from '../Spinner';
|
|
5
|
+
import { Box } from '../Utility';
|
|
6
|
+
import { DotIcon, mediaImageDotIconSizeMap } from './DotIcon';
|
|
7
|
+
|
|
8
|
+
const meta = {
|
|
9
|
+
component: DotIcon,
|
|
10
|
+
title: 'Communication/DotIcon',
|
|
11
|
+
parameters: {
|
|
12
|
+
docs: {
|
|
13
|
+
source: {
|
|
14
|
+
language: 'tsx',
|
|
15
|
+
format: true,
|
|
16
|
+
type: 'code',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
} satisfies Meta<typeof DotIcon>;
|
|
21
|
+
|
|
22
|
+
export default meta;
|
|
23
|
+
type Story = StoryObj<typeof meta>;
|
|
24
|
+
|
|
25
|
+
const parentSrc = 'https://crypto-icons.ledger.com/ADA.png';
|
|
26
|
+
|
|
27
|
+
export const Base: Story = {
|
|
28
|
+
args: {
|
|
29
|
+
appearance: 'success',
|
|
30
|
+
icon: ArrowDown,
|
|
31
|
+
pin: 'bottom-end',
|
|
32
|
+
size: mediaImageDotIconSizeMap[48],
|
|
33
|
+
shape: 'circle',
|
|
34
|
+
children: (
|
|
35
|
+
<MediaImage src={parentSrc} alt='Cardano' size={48} shape='circle' />
|
|
36
|
+
),
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const PinShowcase: Story = {
|
|
41
|
+
args: { appearance: 'success', icon: ArrowDown },
|
|
42
|
+
render: () => (
|
|
43
|
+
<Box lx={{ flexDirection: 'row', alignItems: 'center', gap: 's32' }}>
|
|
44
|
+
<DotIcon appearance='success' icon={ArrowDown} pin='bottom-end'>
|
|
45
|
+
<MediaImage src={parentSrc} shape='circle' />
|
|
46
|
+
</DotIcon>
|
|
47
|
+
<DotIcon appearance='success' icon={ArrowDown} pin='top-end'>
|
|
48
|
+
<MediaImage src={parentSrc} shape='circle' />
|
|
49
|
+
</DotIcon>
|
|
50
|
+
<DotIcon appearance='success' icon={ArrowDown} pin='bottom-start'>
|
|
51
|
+
<MediaImage src={parentSrc} shape='circle' />
|
|
52
|
+
</DotIcon>
|
|
53
|
+
<DotIcon appearance='success' icon={ArrowDown} pin='top-start'>
|
|
54
|
+
<MediaImage src={parentSrc} shape='circle' />
|
|
55
|
+
</DotIcon>
|
|
56
|
+
</Box>
|
|
57
|
+
),
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export const ShapeShowcase: Story = {
|
|
61
|
+
args: { appearance: 'muted', icon: ArrowDown },
|
|
62
|
+
render: () => (
|
|
63
|
+
<Box lx={{ flexDirection: 'row', alignItems: 'center', gap: 's48' }}>
|
|
64
|
+
<DotIcon
|
|
65
|
+
appearance='muted'
|
|
66
|
+
icon={ArrowDown}
|
|
67
|
+
shape='circle'
|
|
68
|
+
pin='bottom-end'
|
|
69
|
+
>
|
|
70
|
+
<MediaImage src={parentSrc} size={48} shape='circle' />
|
|
71
|
+
</DotIcon>
|
|
72
|
+
<DotIcon
|
|
73
|
+
appearance='muted'
|
|
74
|
+
icon={ArrowDown}
|
|
75
|
+
shape='square'
|
|
76
|
+
pin='bottom-end'
|
|
77
|
+
>
|
|
78
|
+
<MediaImage src={parentSrc} size={48} shape='square' />
|
|
79
|
+
</DotIcon>
|
|
80
|
+
</Box>
|
|
81
|
+
),
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export const AppearanceShowcase: Story = {
|
|
85
|
+
args: { appearance: 'success', icon: ArrowDown },
|
|
86
|
+
render: () => (
|
|
87
|
+
<Box lx={{ flexDirection: 'row', alignItems: 'center', gap: 's32' }}>
|
|
88
|
+
<DotIcon
|
|
89
|
+
appearance='success'
|
|
90
|
+
icon={ArrowDown}
|
|
91
|
+
size={mediaImageDotIconSizeMap[48]}
|
|
92
|
+
pin='bottom-end'
|
|
93
|
+
>
|
|
94
|
+
<MediaImage src={parentSrc} size={48} shape='circle' />
|
|
95
|
+
</DotIcon>
|
|
96
|
+
<DotIcon
|
|
97
|
+
appearance='muted'
|
|
98
|
+
icon={ArrowUp}
|
|
99
|
+
size={mediaImageDotIconSizeMap[48]}
|
|
100
|
+
pin='bottom-end'
|
|
101
|
+
>
|
|
102
|
+
<MediaImage src={parentSrc} size={48} shape='circle' />
|
|
103
|
+
</DotIcon>
|
|
104
|
+
<DotIcon
|
|
105
|
+
appearance='error'
|
|
106
|
+
icon={Close}
|
|
107
|
+
size={mediaImageDotIconSizeMap[48]}
|
|
108
|
+
pin='bottom-end'
|
|
109
|
+
>
|
|
110
|
+
<MediaImage src={parentSrc} size={48} shape='circle' />
|
|
111
|
+
</DotIcon>
|
|
112
|
+
</Box>
|
|
113
|
+
),
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
export const SizeShowcase: Story = {
|
|
117
|
+
args: { appearance: 'muted', icon: Link },
|
|
118
|
+
render: () => (
|
|
119
|
+
<Box lx={{ flexDirection: 'row', alignItems: 'flex-end', gap: 's24' }}>
|
|
120
|
+
<DotIcon
|
|
121
|
+
appearance='muted'
|
|
122
|
+
icon={Link}
|
|
123
|
+
size={mediaImageDotIconSizeMap[40]}
|
|
124
|
+
pin='bottom-end'
|
|
125
|
+
>
|
|
126
|
+
<MediaImage src={parentSrc} size={40} shape='circle' />
|
|
127
|
+
</DotIcon>
|
|
128
|
+
<DotIcon
|
|
129
|
+
appearance='success'
|
|
130
|
+
icon={Star}
|
|
131
|
+
size={mediaImageDotIconSizeMap[48]}
|
|
132
|
+
pin='bottom-end'
|
|
133
|
+
>
|
|
134
|
+
<MediaImage src={parentSrc} size={48} shape='circle' />
|
|
135
|
+
</DotIcon>
|
|
136
|
+
<DotIcon
|
|
137
|
+
appearance='success'
|
|
138
|
+
icon={ArrowDown}
|
|
139
|
+
size={mediaImageDotIconSizeMap[56]}
|
|
140
|
+
pin='bottom-end'
|
|
141
|
+
>
|
|
142
|
+
<MediaImage src={parentSrc} size={56} shape='circle' />
|
|
143
|
+
</DotIcon>
|
|
144
|
+
<DotIcon
|
|
145
|
+
appearance='muted'
|
|
146
|
+
icon={Spinner}
|
|
147
|
+
size={mediaImageDotIconSizeMap[64]}
|
|
148
|
+
pin='bottom-end'
|
|
149
|
+
>
|
|
150
|
+
<MediaImage src={parentSrc} size={64} shape='circle' />
|
|
151
|
+
</DotIcon>
|
|
152
|
+
</Box>
|
|
153
|
+
),
|
|
154
|
+
};
|