@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,7 +1,7 @@
|
|
|
1
1
|
import { useDisabledContext } from '@ledgerhq/lumen-utils-shared';
|
|
2
2
|
import { useStyleSheet } from '../../../styles';
|
|
3
3
|
import { Text } from '../Utility';
|
|
4
|
-
import { LabelProps } from './types';
|
|
4
|
+
import type { LabelProps } from './types';
|
|
5
5
|
|
|
6
6
|
const useStyles = ({ disabled }: { disabled: boolean }) => {
|
|
7
7
|
return useStyleSheet(
|
|
@@ -7,7 +7,7 @@ import { Linking } from 'react-native';
|
|
|
7
7
|
import { Information } from '../../Symbols';
|
|
8
8
|
import { ThemeProvider } from '../ThemeProvider/ThemeProvider';
|
|
9
9
|
import { Link } from './Link';
|
|
10
|
-
import { LinkProps } from './types';
|
|
10
|
+
import type { LinkProps } from './types';
|
|
11
11
|
|
|
12
12
|
// Mock Linking module - use spyOn after import to handle RN 0.79+ module structure
|
|
13
13
|
const mockOpenURL = jest.fn(() => Promise.resolve());
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Linking, StyleSheet, Text, View } from 'react-native';
|
|
2
2
|
import { useStyleSheet } from '../../../styles';
|
|
3
3
|
import { ExternalLink } from '../../Symbols';
|
|
4
|
-
import { IconSize } from '../Icon';
|
|
4
|
+
import type { IconSize } from '../Icon';
|
|
5
5
|
import { Pressable } from '../Utility';
|
|
6
|
-
import { LinkProps } from './types';
|
|
6
|
+
import type { LinkProps } from './types';
|
|
7
7
|
|
|
8
8
|
const iconSizeMap: Record<Size, IconSize> = {
|
|
9
9
|
sm: 16,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import { StyledPressableProps } from '../../../styles';
|
|
4
|
-
import { IconSize } from '../Icon';
|
|
1
|
+
import type { PropsWithChildren } 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 LinkProps = {
|
|
7
7
|
/**
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
ListItemDescription,
|
|
14
14
|
ListItemTrailing,
|
|
15
15
|
} from './ListItem';
|
|
16
|
-
import { ListItemProps } from './types';
|
|
16
|
+
import type { ListItemProps } from './types';
|
|
17
17
|
|
|
18
18
|
const TestWrapper = ({ children }: { children: React.ReactNode }) => (
|
|
19
19
|
<ThemeProvider themes={ledgerLiveThemes} colorScheme='dark' locale='en'>
|
|
@@ -4,16 +4,17 @@ import {
|
|
|
4
4
|
DisabledProvider,
|
|
5
5
|
useDisabledContext,
|
|
6
6
|
} from '@ledgerhq/lumen-utils-shared';
|
|
7
|
-
import { ElementRef, ReactNode, Ref } from 'react';
|
|
8
|
-
import {
|
|
7
|
+
import type { ElementRef, ReactNode, Ref } from 'react';
|
|
8
|
+
import type { ViewStyle } from 'react-native';
|
|
9
|
+
import { StyleSheet, View } from 'react-native';
|
|
9
10
|
import { useStyleSheet } from '../../../styles';
|
|
10
11
|
import { Box, Pressable, Text } from '../Utility';
|
|
11
|
-
import {
|
|
12
|
-
ListItemProps,
|
|
12
|
+
import type {
|
|
13
13
|
ListItemContentProps,
|
|
14
14
|
ListItemContentRowProps,
|
|
15
15
|
ListItemDescriptionProps,
|
|
16
16
|
ListItemLeadingProps,
|
|
17
|
+
ListItemProps,
|
|
17
18
|
ListItemTitleProps,
|
|
18
19
|
ListItemTrailingProps,
|
|
19
20
|
} from './types';
|
|
@@ -5,7 +5,7 @@ import { useStyleSheet, useTheme } from '../../../styles';
|
|
|
5
5
|
import { Close } from '../../Symbols';
|
|
6
6
|
import { InteractiveIcon } from '../InteractiveIcon';
|
|
7
7
|
import { Box, LinearGradient, Pressable, Text } from '../Utility';
|
|
8
|
-
import {
|
|
8
|
+
import type {
|
|
9
9
|
MediaBannerDescriptionProps,
|
|
10
10
|
MediaBannerProps,
|
|
11
11
|
MediaBannerTitleProps,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { StyledPressableProps, StyledTextProps } from '../../../styles';
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { StyledPressableProps, StyledTextProps } from '../../../styles';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Props for the MediaBanner root component.
|
|
@@ -2,7 +2,8 @@ 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
4
|
import { createRef } from 'react';
|
|
5
|
-
import {
|
|
5
|
+
import type { ViewStyle } from 'react-native';
|
|
6
|
+
import { View } from 'react-native';
|
|
6
7
|
|
|
7
8
|
import { Settings } from '../../Symbols';
|
|
8
9
|
import { ThemeProvider } from '../ThemeProvider/ThemeProvider';
|
|
@@ -5,7 +5,7 @@ import { useStyleSheet } from '../../../styles';
|
|
|
5
5
|
import { Close } from '../../Symbols';
|
|
6
6
|
import { InteractiveIcon } from '../InteractiveIcon';
|
|
7
7
|
import { LinearGradient, Pressable, Text } from '../Utility';
|
|
8
|
-
import { MediaCardProps, MediaCardTitleProps } from './types';
|
|
8
|
+
import type { MediaCardProps, MediaCardTitleProps } from './types';
|
|
9
9
|
|
|
10
10
|
const CARD_HEIGHT = 164;
|
|
11
11
|
|
|
@@ -41,6 +41,7 @@ export const SizeShowcase: Story = {
|
|
|
41
41
|
<MediaImage src={exampleSrc} alt='Size 40' size={40} />
|
|
42
42
|
<MediaImage src={exampleSrc} alt='Size 48' size={48} />
|
|
43
43
|
<MediaImage src={exampleSrc} alt='Size 56' size={56} />
|
|
44
|
+
<MediaImage src={exampleSrc} alt='Size 64' size={64} />
|
|
44
45
|
</Box>
|
|
45
46
|
),
|
|
46
47
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
2
|
import { Image, StyleSheet } from 'react-native';
|
|
3
3
|
import { useStyleSheet } from '../../../styles';
|
|
4
|
+
import type { LumenStyleSheetTheme } from '../../../styles';
|
|
4
5
|
import { Box } from '../Utility';
|
|
5
|
-
import { MediaImageProps, MediaImageSize, MediaImageShape } from './types';
|
|
6
|
+
import type { MediaImageProps, MediaImageSize, MediaImageShape } from './types';
|
|
6
7
|
|
|
7
|
-
type BorderRadiusKey =
|
|
8
|
+
type BorderRadiusKey = keyof LumenStyleSheetTheme['borderRadius'];
|
|
8
9
|
|
|
9
10
|
const borderRadiusMap: Record<MediaImageSize, BorderRadiusKey> = {
|
|
10
11
|
12: 'xs',
|
|
@@ -15,6 +16,7 @@ const borderRadiusMap: Record<MediaImageSize, BorderRadiusKey> = {
|
|
|
15
16
|
40: 'md',
|
|
16
17
|
48: 'md',
|
|
17
18
|
56: 'lg',
|
|
19
|
+
64: 'lg',
|
|
18
20
|
};
|
|
19
21
|
|
|
20
22
|
const useStyles = ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { StyledViewProps } from '../../../styles';
|
|
1
|
+
import type { StyledViewProps } from '../../../styles';
|
|
2
2
|
|
|
3
|
-
export type MediaImageSize = 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56;
|
|
3
|
+
export type MediaImageSize = 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64;
|
|
4
4
|
|
|
5
5
|
export type MediaImageShape = 'square' | 'circle';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useStyleSheet } from '../../../styles';
|
|
2
2
|
import { Box, Text } from '../Utility';
|
|
3
|
-
import { CoinCapsuleProps } from './types';
|
|
3
|
+
import type { CoinCapsuleProps } from './types';
|
|
4
4
|
|
|
5
5
|
export function CoinCapsule({ ticker, icon }: CoinCapsuleProps) {
|
|
6
6
|
const styles = useStyles();
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Density } from '@ledgerhq/lumen-utils-shared';
|
|
2
|
+
import { createSafeContext } from '@ledgerhq/lumen-utils-shared';
|
|
3
|
+
import type { ReactNode } from 'react';
|
|
4
|
+
import { Children, isValidElement } from 'react';
|
|
3
5
|
import { StyleSheet } from 'react-native';
|
|
4
6
|
import { useCommonTranslation } from '../../../i18n';
|
|
5
7
|
import { useStyleSheet } from '../../../styles';
|
|
@@ -7,7 +9,7 @@ import { ArrowLeft } from '../../Symbols';
|
|
|
7
9
|
import { IconButton } from '../IconButton';
|
|
8
10
|
import { Box, Text } from '../Utility';
|
|
9
11
|
import { CoinCapsule } from './CoinCapsule';
|
|
10
|
-
import {
|
|
12
|
+
import type {
|
|
11
13
|
NavBarBackButtonProps,
|
|
12
14
|
NavBarCoinCapsuleProps,
|
|
13
15
|
NavBarContentProps,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Density } from '@ledgerhq/lumen-utils-shared';
|
|
2
|
-
import { ReactElement, ReactNode } from 'react';
|
|
3
|
-
import { StyledViewProps } from '../../../styles';
|
|
4
|
-
import { IconButtonProps } from '../IconButton';
|
|
1
|
+
import type { Density } from '@ledgerhq/lumen-utils-shared';
|
|
2
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
3
|
+
import type { StyledViewProps } from '../../../styles';
|
|
4
|
+
import type { IconButtonProps } from '../IconButton';
|
|
5
5
|
|
|
6
6
|
export type NavBarProps = {
|
|
7
7
|
/**
|
|
@@ -10,7 +10,7 @@ import Animated, {
|
|
|
10
10
|
import { useStyleSheet, useTheme } from '../../../styles';
|
|
11
11
|
import { useTimingConfig } from '../../Animations/useTimingConfig';
|
|
12
12
|
import { Box } from '../Utility';
|
|
13
|
-
import { PageIndicatorProps } from './types';
|
|
13
|
+
import type { PageIndicatorProps } from './types';
|
|
14
14
|
|
|
15
15
|
const AnimatedBox = Animated.createAnimatedComponent(Box);
|
|
16
16
|
const MAX_VISIBLE_DOTS = 4;
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react-native-web-vite';
|
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { View } from 'react-native';
|
|
4
4
|
import { SearchInput } from './SearchInput';
|
|
5
|
-
import { SearchInputProps } from './types';
|
|
5
|
+
import type { SearchInputProps } from './types';
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof SearchInput> = {
|
|
8
8
|
component: SearchInput,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseInputProps } from '../BaseInput';
|
|
2
|
-
import { BoxProps } from '../Utility';
|
|
1
|
+
import type { BaseInputProps } from '../BaseInput';
|
|
2
|
+
import type { BoxProps } from '../Utility';
|
|
3
3
|
|
|
4
4
|
export type SearchInputProps = Omit<BaseInputProps, 'prefix' | 'label'> &
|
|
5
5
|
BoxProps & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useDisabledContext } from '@ledgerhq/lumen-utils-shared';
|
|
2
|
-
import { LayoutChangeEvent } from 'react-native';
|
|
2
|
+
import type { LayoutChangeEvent } from 'react-native';
|
|
3
3
|
import Animated from 'react-native-reanimated';
|
|
4
4
|
import { useStyleSheet } from '../../../styles';
|
|
5
5
|
import type { LumenTextStyle, LumenTypographyTokenName } from '../../../styles';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComponentType, ReactNode } from 'react';
|
|
2
|
-
import { LumenTextStyle, StyledPressableProps } from '../../../styles';
|
|
3
|
-
import { IconSize } from '../Icon';
|
|
4
|
-
import { BoxProps } from '../Utility';
|
|
1
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
2
|
+
import type { LumenTextStyle, StyledPressableProps } from '../../../styles';
|
|
3
|
+
import type { IconSize } from '../Icon';
|
|
4
|
+
import type { BoxProps } from '../Utility';
|
|
5
5
|
|
|
6
6
|
export type SegmentedControlProps = {
|
|
7
7
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
1
2
|
import React, {
|
|
2
3
|
Children,
|
|
3
4
|
isValidElement,
|
|
4
|
-
ReactNode,
|
|
5
5
|
useCallback,
|
|
6
6
|
useEffect,
|
|
7
7
|
useMemo,
|
|
8
8
|
useRef,
|
|
9
9
|
} from 'react';
|
|
10
|
-
import { LayoutChangeEvent } from 'react-native';
|
|
10
|
+
import type { LayoutChangeEvent } from 'react-native';
|
|
11
11
|
import {
|
|
12
12
|
useAnimatedStyle,
|
|
13
13
|
useSharedValue,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createSafeContext } from '@ledgerhq/lumen-utils-shared';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import { useState, useRef, useMemo } from 'react';
|
|
4
|
+
import type { SelectData } from './types';
|
|
4
5
|
|
|
5
6
|
type GlobalSelectBottomSheetContextValue = {
|
|
6
7
|
currentSelect: SelectData | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useDisabledContext } from '@ledgerhq/lumen-utils-shared';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
2
3
|
import {
|
|
3
4
|
useState,
|
|
4
5
|
useEffect,
|
|
@@ -6,7 +7,6 @@ import {
|
|
|
6
7
|
useId,
|
|
7
8
|
Children,
|
|
8
9
|
isValidElement,
|
|
9
|
-
ReactNode,
|
|
10
10
|
} from 'react';
|
|
11
11
|
import { StyleSheet, View } from 'react-native';
|
|
12
12
|
import { useStyleSheet } from '../../../styles';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createSafeContext } from '@ledgerhq/lumen-utils-shared';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { SelectContentItem } from './types';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { SelectContentItem } from './types';
|
|
4
4
|
|
|
5
5
|
export type SelectContextValue = {
|
|
6
6
|
selectId: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { PressableProps } from 'react-native';
|
|
3
|
-
import {
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { PressableProps } from 'react-native';
|
|
3
|
+
import type {
|
|
4
4
|
StyledViewProps,
|
|
5
5
|
StyledPressableProps,
|
|
6
6
|
StyledTextProps,
|
|
7
7
|
} from '../../../styles';
|
|
8
|
-
import { BoxProps } from '../Utility';
|
|
8
|
+
import type { BoxProps } from '../Utility';
|
|
9
9
|
|
|
10
10
|
export type SelectProps = {
|
|
11
11
|
/**
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type {
|
|
2
2
|
ComponentRef,
|
|
3
|
-
isValidElement,
|
|
4
|
-
cloneElement,
|
|
5
3
|
ComponentPropsWithoutRef,
|
|
6
4
|
ComponentPropsWithRef,
|
|
7
5
|
} from 'react';
|
|
8
|
-
import {
|
|
6
|
+
import { isValidElement, cloneElement } from 'react';
|
|
7
|
+
import type {
|
|
9
8
|
View,
|
|
10
9
|
Pressable,
|
|
11
10
|
Text,
|
|
@@ -15,10 +14,10 @@ import {
|
|
|
15
14
|
TextProps,
|
|
16
15
|
ImageProps,
|
|
17
16
|
StyleProp,
|
|
18
|
-
StyleSheet,
|
|
19
17
|
PressableStateCallbackType,
|
|
20
18
|
ImageStyle as RNImageStyle,
|
|
21
19
|
} from 'react-native';
|
|
20
|
+
import { StyleSheet } from 'react-native';
|
|
22
21
|
|
|
23
22
|
const SlotPressable = ({
|
|
24
23
|
ref,
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
1
2
|
import Svg, { Path } from 'react-native-svg';
|
|
2
3
|
import { useCommonTranslation } from '../../../i18n';
|
|
3
|
-
import { LumenTextStyle
|
|
4
|
+
import type { LumenTextStyle } from '../../../styles';
|
|
5
|
+
import { useResolveTextStyle, useTheme } from '../../../styles';
|
|
4
6
|
import { Spin } from '../../Animations/Spin';
|
|
5
7
|
import { Box } from '../Utility';
|
|
6
|
-
import { SpinnerProps } from './types';
|
|
8
|
+
import type { SpinnerProps } from './types';
|
|
7
9
|
|
|
8
10
|
/**
|
|
9
11
|
* A basic spinner component for loading states.
|
|
@@ -23,17 +25,20 @@ export const Spinner = ({
|
|
|
23
25
|
lx = {},
|
|
24
26
|
size = 16,
|
|
25
27
|
color,
|
|
28
|
+
style,
|
|
26
29
|
ref,
|
|
27
30
|
...props
|
|
28
31
|
}: SpinnerProps) => {
|
|
29
32
|
const { t } = useCommonTranslation();
|
|
30
33
|
const { theme } = useTheme();
|
|
31
34
|
const resolvedColorStyle = useResolveTextStyle({ color } as LumenTextStyle);
|
|
35
|
+
const flatStyle = StyleSheet.flatten(style);
|
|
36
|
+
const styleColor = flatStyle?.color;
|
|
32
37
|
const strokeColor =
|
|
33
|
-
resolvedColorStyle?.color ?? color ?? theme.colors.text.base;
|
|
38
|
+
resolvedColorStyle?.color ?? color ?? styleColor ?? theme.colors.text.base;
|
|
34
39
|
|
|
35
40
|
return (
|
|
36
|
-
<Box ref={ref} lx={{ flexShrink: 0, ...lx }} {...props}>
|
|
41
|
+
<Box ref={ref} lx={{ flexShrink: 0, ...lx }} style={style} {...props}>
|
|
37
42
|
<Spin>
|
|
38
43
|
<Svg
|
|
39
44
|
width={size}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LumenTextStyle } from '../../../styles';
|
|
2
|
-
import { IconSize } from '../Icon';
|
|
3
|
-
import { TextProps } from '../Utility';
|
|
1
|
+
import type { LumenTextStyle } from '../../../styles';
|
|
2
|
+
import type { IconSize } from '../Icon';
|
|
3
|
+
import type { TextProps } from '../Utility';
|
|
4
4
|
|
|
5
5
|
export type SpinnerProps = {
|
|
6
6
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-native-web-vite';
|
|
2
2
|
import { Settings, Plus, Heart, Star } from '../../Symbols';
|
|
3
|
-
import { IconProps } from '../Icon';
|
|
3
|
+
import type { IconProps } from '../Icon';
|
|
4
4
|
import { Box, Text } from '../Utility';
|
|
5
5
|
import { Spot } from './Spot';
|
|
6
|
-
import { SpotProps } from './types';
|
|
6
|
+
import type { SpotProps } from './types';
|
|
7
7
|
|
|
8
8
|
const meta: Meta<typeof Spot> = {
|
|
9
9
|
component: Spot,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { useDisabledContext } from '@ledgerhq/lumen-utils-shared';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import { StyleSheet, Text } from 'react-native';
|
|
4
|
-
import { LumenTypographyTokens
|
|
4
|
+
import type { LumenTypographyTokens } from '../../../styles';
|
|
5
|
+
import { useStyleSheet } from '../../../styles';
|
|
5
6
|
import {
|
|
6
7
|
BluetoothCircleFill,
|
|
7
8
|
CheckmarkCircleFill,
|
|
@@ -9,10 +10,11 @@ import {
|
|
|
9
10
|
InformationFill,
|
|
10
11
|
WarningFill,
|
|
11
12
|
} from '../../Symbols';
|
|
12
|
-
import { IconSize } from '../Icon/types';
|
|
13
|
-
import {
|
|
13
|
+
import type { IconSize } from '../Icon/types';
|
|
14
|
+
import type { SpinnerProps } from '../Spinner';
|
|
15
|
+
import { Spinner } from '../Spinner';
|
|
14
16
|
import { Box } from '../Utility';
|
|
15
|
-
import { SpotAppearance, SpotProps, SpotSize } from './types';
|
|
17
|
+
import type { SpotAppearance, SpotProps, SpotSize } from './types';
|
|
16
18
|
|
|
17
19
|
const BLUETOOTH_COLOR = '#0082FC';
|
|
18
20
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
|
-
import { StyledViewProps } from '../../../styles';
|
|
3
|
-
import { IconProps } from '../Icon';
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import type { StyledViewProps } from '../../../styles';
|
|
3
|
+
import type { IconProps } from '../Icon';
|
|
4
4
|
|
|
5
5
|
export type SpotAppearance =
|
|
6
6
|
| 'icon'
|
|
@@ -15,7 +15,7 @@ import { useTheme } from '../../../styles';
|
|
|
15
15
|
import { useTimingConfig } from '../../Animations/useTimingConfig';
|
|
16
16
|
import { Box } from '../Utility/Box';
|
|
17
17
|
import { Text } from '../Utility/Text';
|
|
18
|
-
import { StepperProps } from './types';
|
|
18
|
+
import type { StepperProps } from './types';
|
|
19
19
|
|
|
20
20
|
const SIZE = 48;
|
|
21
21
|
const STROKE_WIDTH = 4;
|
|
@@ -3,7 +3,7 @@ import { useStyleSheet } from '../../../styles';
|
|
|
3
3
|
import { ChevronRight, Information } from '../../Symbols';
|
|
4
4
|
import { InteractiveIcon } from '../InteractiveIcon';
|
|
5
5
|
import { Box, Pressable, Text } from '../Utility';
|
|
6
|
-
import {
|
|
6
|
+
import type {
|
|
7
7
|
SubheaderCountProps,
|
|
8
8
|
SubheaderDescriptionProps,
|
|
9
9
|
SubheaderInfoProps,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { StyledTextProps, StyledViewProps } from '../../../styles';
|
|
3
|
-
import { InteractiveIconProps } from '../InteractiveIcon';
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { StyledTextProps, StyledViewProps } from '../../../styles';
|
|
3
|
+
import type { InteractiveIconProps } from '../InteractiveIcon';
|
|
4
4
|
|
|
5
5
|
export type SubheaderProps = {
|
|
6
6
|
/**
|
|
@@ -14,10 +14,10 @@ import Animated, {
|
|
|
14
14
|
import { useStyleSheet } from '../../../styles';
|
|
15
15
|
import { useTimingConfig } from '../../Animations/useTimingConfig';
|
|
16
16
|
|
|
17
|
-
import { SlottablePressableProps, SlottableViewProps } from '../../types';
|
|
17
|
+
import type { SlottablePressableProps, SlottableViewProps } from '../../types';
|
|
18
18
|
import { SlotPressable, SlotView } from '../Slot';
|
|
19
19
|
|
|
20
|
-
import { SwitchProps } from './types';
|
|
20
|
+
import type { SwitchProps } from './types';
|
|
21
21
|
|
|
22
22
|
const ROOT_COMPONENT_NAME = 'BaseSwitch';
|
|
23
23
|
const THUMB_COMPONENT_NAME = 'BaseSwitchThumb';
|
|
@@ -3,7 +3,7 @@ import { useControllableState } from '../../utils';
|
|
|
3
3
|
import { Pressable } from '../Utility';
|
|
4
4
|
import { BaseSwitchThumb, BaseSwitchRoot } from './BaseSwitch';
|
|
5
5
|
|
|
6
|
-
import { SwitchProps } from './types';
|
|
6
|
+
import type { SwitchProps } from './types';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* The switch follows the design system tokens and supports checked, unchecked,
|