@ledgerhq/lumen-ui-rnative 0.1.46 → 0.1.47
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/README.md +1 -1
- package/dist/module/lib/Animations/Pulse/Pulse.mdx +1 -1
- package/dist/module/lib/Animations/Pulse/Pulse.stories.js +2 -1
- package/dist/module/lib/Animations/Pulse/Pulse.stories.js.map +1 -1
- package/dist/module/lib/Animations/Spin/Spin.mdx +1 -1
- package/dist/module/lib/Animations/Spin/Spin.stories.js +2 -1
- package/dist/module/lib/Animations/Spin/Spin.stories.js.map +1 -1
- package/dist/module/lib/Components/AddressInput/AddressInput.mdx +2 -2
- package/dist/module/lib/Components/AddressInput/AddressInput.stories.js +2 -1
- package/dist/module/lib/Components/AddressInput/AddressInput.stories.js.map +1 -1
- package/dist/module/lib/Components/AmountDisplay/AmountDisplay.js +1 -2
- package/dist/module/lib/Components/AmountDisplay/AmountDisplay.js.map +1 -1
- package/dist/module/lib/Components/AmountDisplay/AmountDisplay.mdx +1 -1
- package/dist/module/lib/Components/AmountDisplay/AmountDisplay.stories.js +2 -1
- package/dist/module/lib/Components/AmountDisplay/AmountDisplay.stories.js.map +1 -1
- package/dist/module/lib/Components/AmountInput/AmountInput.mdx +1 -1
- package/dist/module/lib/Components/AmountInput/AmountInput.stories.js +2 -1
- package/dist/module/lib/Components/AmountInput/AmountInput.stories.js.map +1 -1
- package/dist/module/lib/Components/Avatar/Avatar.js +2 -2
- package/dist/module/lib/Components/Avatar/Avatar.mdx +1 -1
- package/dist/module/lib/Components/Avatar/Avatar.stories.js +2 -1
- package/dist/module/lib/Components/Avatar/Avatar.stories.js.map +1 -1
- package/dist/module/lib/Components/Banner/Banner.js +1 -2
- package/dist/module/lib/Components/Banner/Banner.js.map +1 -1
- package/dist/module/lib/Components/Banner/Banner.mdx +1 -1
- package/dist/module/lib/Components/Banner/Banner.stories.js +2 -1
- package/dist/module/lib/Components/Banner/Banner.stories.js.map +1 -1
- package/dist/module/lib/Components/BottomSheet/BottomSheet.mdx +1 -1
- package/dist/module/lib/Components/BottomSheet/BottomSheet.stories.js +2 -1
- package/dist/module/lib/Components/BottomSheet/BottomSheet.stories.js.map +1 -1
- package/dist/module/lib/Components/Button/Button.js +1 -2
- package/dist/module/lib/Components/Button/Button.js.map +1 -1
- package/dist/module/lib/Components/Button/Button.mdx +3 -3
- package/dist/module/lib/Components/Button/Button.stories.js +2 -1
- package/dist/module/lib/Components/Button/Button.stories.js.map +1 -1
- package/dist/module/lib/Components/Card/Card.js +1 -1
- package/dist/module/lib/Components/Card/Card.mdx +1 -1
- package/dist/module/lib/Components/Card/Card.stories.js +2 -1
- package/dist/module/lib/Components/Card/Card.stories.js.map +1 -1
- package/dist/module/lib/Components/CardButton/CardButton.js +1 -2
- package/dist/module/lib/Components/CardButton/CardButton.js.map +1 -1
- package/dist/module/lib/Components/CardButton/CardButton.mdx +1 -1
- package/dist/module/lib/Components/CardButton/CardButton.stories.js +2 -1
- package/dist/module/lib/Components/CardButton/CardButton.stories.js.map +1 -1
- package/dist/module/lib/Components/Checkbox/Checkbox.js +1 -2
- package/dist/module/lib/Components/Checkbox/Checkbox.js.map +1 -1
- package/dist/module/lib/Components/Checkbox/Checkbox.mdx +1 -1
- package/dist/module/lib/Components/Checkbox/Checkbox.stories.js +2 -1
- package/dist/module/lib/Components/Checkbox/Checkbox.stories.js.map +1 -1
- package/dist/module/lib/Components/ContentBanner/ContentBanner.js +1 -1
- package/dist/module/lib/Components/ContentBanner/ContentBanner.mdx +1 -1
- package/dist/module/lib/Components/ContentBanner/ContentBanner.stories.js +2 -1
- package/dist/module/lib/Components/ContentBanner/ContentBanner.stories.js.map +1 -1
- package/dist/module/lib/Components/DescriptionItem/DescriptionItem.js +1 -1
- package/dist/module/lib/Components/DescriptionItem/DescriptionItem.mdx +1 -1
- package/dist/module/lib/Components/DescriptionItem/DescriptionItem.stories.js +2 -1
- package/dist/module/lib/Components/DescriptionItem/DescriptionItem.stories.js.map +1 -1
- package/dist/module/lib/Components/Divider/Divider.js +1 -1
- package/dist/module/lib/Components/Divider/Divider.mdx +1 -1
- package/dist/module/lib/Components/Divider/Divider.stories.js +2 -1
- package/dist/module/lib/Components/Divider/Divider.stories.js.map +1 -1
- package/dist/module/lib/Components/DotCount/DotCount.mdx +1 -1
- package/dist/module/lib/Components/DotCount/DotCount.stories.js +2 -1
- package/dist/module/lib/Components/DotCount/DotCount.stories.js.map +1 -1
- package/dist/module/lib/Components/DotIcon/DotIcon.mdx +1 -1
- package/dist/module/lib/Components/DotIcon/DotIcon.stories.js +2 -1
- package/dist/module/lib/Components/DotIcon/DotIcon.stories.js.map +1 -1
- package/dist/module/lib/Components/DotIndicator/DotIndicator.mdx +1 -1
- package/dist/module/lib/Components/DotIndicator/DotIndicator.stories.js +2 -1
- package/dist/module/lib/Components/DotIndicator/DotIndicator.stories.js.map +1 -1
- package/dist/module/lib/Components/DotSymbol/DotSymbol.mdx +1 -1
- package/dist/module/lib/Components/DotSymbol/DotSymbol.stories.js +2 -1
- package/dist/module/lib/Components/DotSymbol/DotSymbol.stories.js.map +1 -1
- package/dist/module/lib/Components/Icon/Icon.mdx +211 -0
- package/dist/module/lib/Components/Icon/Icon.stories.js +3 -2
- package/dist/module/lib/Components/Icon/Icon.stories.js.map +1 -1
- package/dist/module/lib/Components/IconButton/IconButton.mdx +1 -1
- package/dist/module/lib/Components/IconButton/IconButton.stories.js +2 -1
- package/dist/module/lib/Components/IconButton/IconButton.stories.js.map +1 -1
- package/dist/module/lib/Components/InteractiveIcon/InteractiveIcon.js +1 -2
- package/dist/module/lib/Components/InteractiveIcon/InteractiveIcon.js.map +1 -1
- package/dist/module/lib/Components/InteractiveIcon/InteractiveIcon.mdx +1 -1
- package/dist/module/lib/Components/InteractiveIcon/InteractiveIcon.stories.js +2 -1
- package/dist/module/lib/Components/InteractiveIcon/InteractiveIcon.stories.js.map +1 -1
- package/dist/module/lib/Components/Link/Link.js +1 -2
- package/dist/module/lib/Components/Link/Link.js.map +1 -1
- package/dist/module/lib/Components/Link/Link.mdx +1 -1
- package/dist/module/lib/Components/Link/Link.stories.js +2 -1
- package/dist/module/lib/Components/Link/Link.stories.js.map +1 -1
- package/dist/module/lib/Components/ListItem/ListItem.js +1 -2
- package/dist/module/lib/Components/ListItem/ListItem.js.map +1 -1
- package/dist/module/lib/Components/ListItem/ListItem.mdx +1 -1
- package/dist/module/lib/Components/ListItem/ListItem.stories.js +2 -1
- package/dist/module/lib/Components/ListItem/ListItem.stories.js.map +1 -1
- package/dist/module/lib/Components/MediaBanner/MediaBanner.js +1 -1
- package/dist/module/lib/Components/MediaBanner/MediaBanner.mdx +1 -1
- package/dist/module/lib/Components/MediaBanner/MediaBanner.stories.js +2 -1
- package/dist/module/lib/Components/MediaBanner/MediaBanner.stories.js.map +1 -1
- package/dist/module/lib/Components/MediaButton/MediaButton.mdx +2 -2
- package/dist/module/lib/Components/MediaButton/MediaButton.stories.js +2 -1
- package/dist/module/lib/Components/MediaButton/MediaButton.stories.js.map +1 -1
- package/dist/module/lib/Components/MediaCard/MediaCard.mdx +1 -1
- package/dist/module/lib/Components/MediaCard/MediaCard.stories.js +2 -1
- package/dist/module/lib/Components/MediaCard/MediaCard.stories.js.map +1 -1
- package/dist/module/lib/Components/MediaImage/MediaImage.mdx +1 -1
- package/dist/module/lib/Components/MediaImage/MediaImage.stories.js +2 -1
- package/dist/module/lib/Components/MediaImage/MediaImage.stories.js.map +1 -1
- package/dist/module/lib/Components/MediaTag/MediaTag.js +1 -2
- package/dist/module/lib/Components/MediaTag/MediaTag.js.map +1 -1
- package/dist/module/lib/Components/MediaTag/MediaTag.mdx +2 -2
- package/dist/module/lib/Components/MediaTag/MediaTag.stories.js +2 -1
- package/dist/module/lib/Components/MediaTag/MediaTag.stories.js.map +1 -1
- package/dist/module/lib/Components/NavBar/NavBar.mdx +1 -1
- package/dist/module/lib/Components/NavBar/NavBar.stories.js +2 -1
- package/dist/module/lib/Components/NavBar/NavBar.stories.js.map +1 -1
- package/dist/module/lib/Components/OptionList/OptionList.mdx +1 -1
- package/dist/module/lib/Components/OptionList/OptionList.stories.js +2 -1
- package/dist/module/lib/Components/OptionList/OptionList.stories.js.map +1 -1
- package/dist/module/lib/Components/PageIndicator/PageIndicator.mdx +1 -1
- package/dist/module/lib/Components/PageIndicator/PageIndicator.stories.js +2 -1
- package/dist/module/lib/Components/PageIndicator/PageIndicator.stories.js.map +1 -1
- package/dist/module/lib/Components/SearchInput/SearchInput.mdx +1 -1
- package/dist/module/lib/Components/SearchInput/SearchInput.stories.js +2 -1
- package/dist/module/lib/Components/SearchInput/SearchInput.stories.js.map +1 -1
- package/dist/module/lib/Components/SegmentedControl/SegmentedControl.mdx +1 -1
- package/dist/module/lib/Components/SegmentedControl/SegmentedControl.stories.js +2 -1
- package/dist/module/lib/Components/SegmentedControl/SegmentedControl.stories.js.map +1 -1
- package/dist/module/lib/Components/Skeleton/Skeleton.mdx +1 -1
- package/dist/module/lib/Components/Skeleton/Skeleton.stories.js +2 -1
- package/dist/module/lib/Components/Skeleton/Skeleton.stories.js.map +1 -1
- package/dist/module/lib/Components/Spinner/Spinner.mdx +1 -1
- package/dist/module/lib/Components/Spinner/Spinner.stories.js +2 -1
- package/dist/module/lib/Components/Spinner/Spinner.stories.js.map +1 -1
- package/dist/module/lib/Components/Spot/Spot.js +1 -1
- package/dist/module/lib/Components/Spot/Spot.mdx +1 -1
- package/dist/module/lib/Components/Spot/Spot.stories.js +2 -1
- package/dist/module/lib/Components/Spot/Spot.stories.js.map +1 -1
- package/dist/module/lib/Components/Stepper/Stepper.mdx +1 -1
- package/dist/module/lib/Components/Stepper/Stepper.stories.js +2 -1
- package/dist/module/lib/Components/Stepper/Stepper.stories.js.map +1 -1
- package/dist/module/lib/Components/Subheader/Subheader.mdx +1 -1
- package/dist/module/lib/Components/Subheader/Subheader.stories.js +2 -1
- package/dist/module/lib/Components/Subheader/Subheader.stories.js.map +1 -1
- package/dist/module/lib/Components/Switch/Switch.js +1 -2
- package/dist/module/lib/Components/Switch/Switch.js.map +1 -1
- package/dist/module/lib/Components/Switch/Switch.mdx +1 -1
- package/dist/module/lib/Components/Switch/Switch.stories.js +2 -1
- package/dist/module/lib/Components/Switch/Switch.stories.js.map +1 -1
- package/dist/module/lib/Components/TabBar/TabBar.js +1 -2
- package/dist/module/lib/Components/TabBar/TabBar.js.map +1 -1
- package/dist/module/lib/Components/TabBar/TabBar.mdx +1 -1
- package/dist/module/lib/Components/TabBar/TabBar.stories.js +2 -1
- package/dist/module/lib/Components/TabBar/TabBar.stories.js.map +1 -1
- package/dist/module/lib/Components/Tag/Tag.js +1 -2
- package/dist/module/lib/Components/Tag/Tag.js.map +1 -1
- package/dist/module/lib/Components/Tag/Tag.mdx +1 -1
- package/dist/module/lib/Components/Tag/Tag.stories.js +2 -1
- package/dist/module/lib/Components/Tag/Tag.stories.js.map +1 -1
- package/dist/module/lib/Components/TextInput/TextInput.mdx +1 -1
- package/dist/module/lib/Components/TextInput/TextInput.stories.js +2 -1
- package/dist/module/lib/Components/TextInput/TextInput.stories.js.map +1 -1
- package/dist/module/lib/Components/Tile/Tile.js +1 -2
- package/dist/module/lib/Components/Tile/Tile.js.map +1 -1
- package/dist/module/lib/Components/Tile/Tile.mdx +1 -1
- package/dist/module/lib/Components/Tile/Tile.stories.js +2 -1
- package/dist/module/lib/Components/Tile/Tile.stories.js.map +1 -1
- package/dist/module/lib/Components/TileButton/TileButton.js +1 -1
- package/dist/module/lib/Components/TileButton/TileButton.mdx +1 -1
- package/dist/module/lib/Components/TileButton/TileButton.stories.js +2 -1
- package/dist/module/lib/Components/TileButton/TileButton.stories.js.map +1 -1
- package/dist/module/lib/Components/Tooltip/GlobalTooltipBottomSheet.js +1 -1
- package/dist/module/lib/Components/Tooltip/Tooltip.js +1 -1
- package/dist/module/lib/Components/Tooltip/Tooltip.mdx +1 -1
- package/dist/module/lib/Components/Tooltip/Tooltip.stories.js +2 -1
- package/dist/module/lib/Components/Tooltip/Tooltip.stories.js.map +1 -1
- package/dist/module/lib/Components/Trend/Trend.mdx +1 -1
- package/dist/module/lib/Components/Trend/Trend.stories.js +2 -1
- package/dist/module/lib/Components/Trend/Trend.stories.js.map +1 -1
- package/dist/module/lib/Components/Utility/Box/Box.js +1 -1
- package/dist/module/lib/Components/Utility/Box/Box.mdx +1 -1
- package/dist/module/lib/Components/Utility/Box/Box.stories.js +2 -1
- package/dist/module/lib/Components/Utility/Box/Box.stories.js.map +1 -1
- package/dist/module/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.js +1 -1
- package/dist/module/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.mdx +1 -1
- package/dist/module/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.stories.js +2 -1
- package/dist/module/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.stories.js.map +1 -1
- package/dist/module/lib/Components/Utility/Gradient/RadialGradient/RadialGradient.js +1 -1
- package/dist/module/lib/Components/Utility/Gradient/RadialGradient/RadialGradient.mdx +1 -1
- package/dist/module/lib/Components/Utility/Gradient/RadialGradient/RadialGradient.stories.js +2 -1
- package/dist/module/lib/Components/Utility/Gradient/RadialGradient/RadialGradient.stories.js.map +1 -1
- package/dist/module/lib/Components/Utility/Pressable/Pressable.js +1 -1
- package/dist/module/lib/Components/Utility/Pressable/Pressable.mdx +1 -1
- package/dist/module/lib/Components/Utility/Pressable/Pressable.stories.js +2 -1
- package/dist/module/lib/Components/Utility/Pressable/Pressable.stories.js.map +1 -1
- package/dist/module/lib/Components/Utility/Text/Text.js +1 -1
- package/dist/module/lib/Components/Utility/Text/Text.mdx +1 -1
- package/dist/module/lib/Components/Utility/Text/Text.stories.js +2 -1
- package/dist/module/lib/Components/Utility/Text/Text.stories.js.map +1 -1
- package/dist/typescript/src/lib/Components/AmountDisplay/AmountDisplay.d.ts +1 -2
- package/dist/typescript/src/lib/Components/AmountDisplay/AmountDisplay.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Avatar/Avatar.d.ts +2 -2
- package/dist/typescript/src/lib/Components/Banner/Banner.d.ts +1 -2
- package/dist/typescript/src/lib/Components/Banner/Banner.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Button/Button.d.ts +1 -2
- package/dist/typescript/src/lib/Components/Button/Button.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Card/Card.d.ts +1 -1
- package/dist/typescript/src/lib/Components/CardButton/CardButton.d.ts +1 -2
- package/dist/typescript/src/lib/Components/CardButton/CardButton.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Checkbox/Checkbox.d.ts +1 -2
- package/dist/typescript/src/lib/Components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/ContentBanner/ContentBanner.d.ts +1 -1
- package/dist/typescript/src/lib/Components/DescriptionItem/DescriptionItem.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Divider/Divider.d.ts +1 -1
- package/dist/typescript/src/lib/Components/InteractiveIcon/InteractiveIcon.d.ts +1 -2
- package/dist/typescript/src/lib/Components/InteractiveIcon/InteractiveIcon.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Link/Link.d.ts +1 -2
- package/dist/typescript/src/lib/Components/Link/Link.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/ListItem/ListItem.d.ts +1 -2
- package/dist/typescript/src/lib/Components/ListItem/ListItem.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/MediaBanner/MediaBanner.d.ts +1 -1
- package/dist/typescript/src/lib/Components/MediaTag/MediaTag.d.ts +1 -2
- package/dist/typescript/src/lib/Components/MediaTag/MediaTag.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Spot/Spot.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Switch/Switch.d.ts +1 -2
- package/dist/typescript/src/lib/Components/Switch/Switch.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/TabBar/TabBar.d.ts +1 -2
- package/dist/typescript/src/lib/Components/TabBar/TabBar.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Tag/Tag.d.ts +1 -2
- package/dist/typescript/src/lib/Components/Tag/Tag.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Tile/Tile.d.ts +1 -2
- package/dist/typescript/src/lib/Components/Tile/Tile.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/TileButton/TileButton.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Tooltip/GlobalTooltipBottomSheet.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Utility/Box/Box.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Utility/Gradient/RadialGradient/RadialGradient.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Utility/Pressable/Pressable.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Utility/Text/Text.d.ts +1 -1
- package/package.json +1 -1
- package/src/lib/Animations/Pulse/Pulse.mdx +1 -1
- package/src/lib/Animations/Pulse/Pulse.stories.tsx +2 -1
- package/src/lib/Animations/Spin/Spin.mdx +1 -1
- package/src/lib/Animations/Spin/Spin.stories.tsx +2 -1
- package/src/lib/Components/AddressInput/AddressInput.mdx +2 -2
- package/src/lib/Components/AddressInput/AddressInput.stories.tsx +2 -1
- package/src/lib/Components/AmountDisplay/AmountDisplay.mdx +1 -1
- package/src/lib/Components/AmountDisplay/AmountDisplay.stories.tsx +2 -1
- package/src/lib/Components/AmountDisplay/AmountDisplay.tsx +1 -2
- package/src/lib/Components/AmountInput/AmountInput.mdx +1 -1
- package/src/lib/Components/AmountInput/AmountInput.stories.tsx +2 -1
- package/src/lib/Components/Avatar/Avatar.mdx +1 -1
- package/src/lib/Components/Avatar/Avatar.stories.tsx +2 -1
- package/src/lib/Components/Avatar/Avatar.tsx +2 -2
- package/src/lib/Components/Banner/Banner.mdx +1 -1
- package/src/lib/Components/Banner/Banner.stories.tsx +2 -1
- package/src/lib/Components/Banner/Banner.tsx +1 -2
- package/src/lib/Components/BottomSheet/BottomSheet.mdx +1 -1
- package/src/lib/Components/BottomSheet/BottomSheet.stories.tsx +2 -1
- package/src/lib/Components/Button/Button.mdx +3 -3
- package/src/lib/Components/Button/Button.stories.tsx +2 -1
- package/src/lib/Components/Button/Button.tsx +1 -2
- package/src/lib/Components/Card/Card.mdx +1 -1
- package/src/lib/Components/Card/Card.stories.tsx +2 -1
- package/src/lib/Components/Card/Card.tsx +1 -1
- package/src/lib/Components/CardButton/CardButton.mdx +1 -1
- package/src/lib/Components/CardButton/CardButton.stories.tsx +2 -1
- package/src/lib/Components/CardButton/CardButton.tsx +1 -2
- package/src/lib/Components/Checkbox/Checkbox.mdx +1 -1
- package/src/lib/Components/Checkbox/Checkbox.stories.tsx +2 -1
- package/src/lib/Components/Checkbox/Checkbox.tsx +1 -2
- package/src/lib/Components/ContentBanner/ContentBanner.mdx +1 -1
- package/src/lib/Components/ContentBanner/ContentBanner.stories.tsx +2 -1
- package/src/lib/Components/ContentBanner/ContentBanner.tsx +1 -1
- package/src/lib/Components/DescriptionItem/DescriptionItem.mdx +1 -1
- package/src/lib/Components/DescriptionItem/DescriptionItem.stories.tsx +2 -1
- package/src/lib/Components/DescriptionItem/DescriptionItem.tsx +1 -1
- package/src/lib/Components/Divider/Divider.mdx +1 -1
- package/src/lib/Components/Divider/Divider.stories.tsx +2 -1
- package/src/lib/Components/Divider/Divider.tsx +1 -1
- package/src/lib/Components/DotCount/DotCount.mdx +1 -1
- package/src/lib/Components/DotCount/DotCount.stories.tsx +2 -1
- package/src/lib/Components/DotIcon/DotIcon.mdx +1 -1
- package/src/lib/Components/DotIcon/DotIcon.stories.tsx +2 -1
- package/src/lib/Components/DotIndicator/DotIndicator.mdx +1 -1
- package/src/lib/Components/DotIndicator/DotIndicator.stories.tsx +2 -1
- package/src/lib/Components/DotSymbol/DotSymbol.mdx +1 -1
- package/src/lib/Components/DotSymbol/DotSymbol.stories.tsx +2 -1
- package/src/lib/Components/Icon/Icon.mdx +211 -0
- package/src/lib/Components/Icon/Icon.stories.tsx +3 -2
- package/src/lib/Components/IconButton/IconButton.mdx +1 -1
- package/src/lib/Components/IconButton/IconButton.stories.tsx +2 -1
- package/src/lib/Components/InteractiveIcon/InteractiveIcon.mdx +1 -1
- package/src/lib/Components/InteractiveIcon/InteractiveIcon.stories.tsx +2 -1
- package/src/lib/Components/InteractiveIcon/InteractiveIcon.tsx +1 -2
- package/src/lib/Components/Link/Link.mdx +1 -1
- package/src/lib/Components/Link/Link.stories.tsx +2 -1
- package/src/lib/Components/Link/Link.tsx +1 -2
- package/src/lib/Components/ListItem/ListItem.mdx +1 -1
- package/src/lib/Components/ListItem/ListItem.stories.tsx +2 -1
- package/src/lib/Components/ListItem/ListItem.tsx +1 -2
- package/src/lib/Components/MediaBanner/MediaBanner.mdx +1 -1
- package/src/lib/Components/MediaBanner/MediaBanner.stories.tsx +2 -1
- package/src/lib/Components/MediaBanner/MediaBanner.tsx +1 -1
- package/src/lib/Components/MediaButton/MediaButton.mdx +2 -2
- package/src/lib/Components/MediaButton/MediaButton.stories.tsx +2 -1
- package/src/lib/Components/MediaCard/MediaCard.mdx +1 -1
- package/src/lib/Components/MediaCard/MediaCard.stories.tsx +2 -1
- package/src/lib/Components/MediaImage/MediaImage.mdx +1 -1
- package/src/lib/Components/MediaImage/MediaImage.stories.tsx +2 -1
- package/src/lib/Components/MediaTag/MediaTag.mdx +2 -2
- package/src/lib/Components/MediaTag/MediaTag.stories.tsx +2 -1
- package/src/lib/Components/MediaTag/MediaTag.tsx +1 -2
- package/src/lib/Components/NavBar/NavBar.mdx +1 -1
- package/src/lib/Components/NavBar/NavBar.stories.tsx +2 -1
- package/src/lib/Components/OptionList/OptionList.mdx +1 -1
- package/src/lib/Components/OptionList/OptionList.stories.tsx +2 -1
- package/src/lib/Components/PageIndicator/PageIndicator.mdx +1 -1
- package/src/lib/Components/PageIndicator/PageIndicator.stories.tsx +2 -1
- package/src/lib/Components/SearchInput/SearchInput.mdx +1 -1
- package/src/lib/Components/SearchInput/SearchInput.stories.tsx +2 -1
- package/src/lib/Components/SegmentedControl/SegmentedControl.mdx +1 -1
- package/src/lib/Components/SegmentedControl/SegmentedControl.stories.tsx +2 -1
- package/src/lib/Components/Skeleton/Skeleton.mdx +1 -1
- package/src/lib/Components/Skeleton/Skeleton.stories.tsx +2 -1
- package/src/lib/Components/Spinner/Spinner.mdx +1 -1
- package/src/lib/Components/Spinner/Spinner.stories.tsx +2 -1
- package/src/lib/Components/Spot/Spot.mdx +1 -1
- package/src/lib/Components/Spot/Spot.stories.tsx +2 -1
- package/src/lib/Components/Spot/Spot.tsx +1 -1
- package/src/lib/Components/Stepper/Stepper.mdx +1 -1
- package/src/lib/Components/Stepper/Stepper.stories.tsx +2 -1
- package/src/lib/Components/Subheader/Subheader.mdx +1 -1
- package/src/lib/Components/Subheader/Subheader.stories.tsx +2 -1
- package/src/lib/Components/Switch/Switch.mdx +1 -1
- package/src/lib/Components/Switch/Switch.stories.tsx +2 -1
- package/src/lib/Components/Switch/Switch.tsx +1 -2
- package/src/lib/Components/TabBar/TabBar.mdx +1 -1
- package/src/lib/Components/TabBar/TabBar.stories.tsx +2 -1
- package/src/lib/Components/TabBar/TabBar.tsx +1 -2
- package/src/lib/Components/Tag/Tag.mdx +1 -1
- package/src/lib/Components/Tag/Tag.stories.tsx +2 -1
- package/src/lib/Components/Tag/Tag.tsx +1 -2
- package/src/lib/Components/TextInput/TextInput.mdx +1 -1
- package/src/lib/Components/TextInput/TextInput.stories.tsx +2 -1
- package/src/lib/Components/Tile/Tile.mdx +1 -1
- package/src/lib/Components/Tile/Tile.stories.tsx +2 -1
- package/src/lib/Components/Tile/Tile.tsx +1 -2
- package/src/lib/Components/TileButton/TileButton.mdx +1 -1
- package/src/lib/Components/TileButton/TileButton.stories.tsx +2 -1
- package/src/lib/Components/TileButton/TileButton.tsx +1 -1
- package/src/lib/Components/Tooltip/GlobalTooltipBottomSheet.tsx +1 -1
- package/src/lib/Components/Tooltip/Tooltip.mdx +1 -1
- package/src/lib/Components/Tooltip/Tooltip.stories.tsx +2 -1
- package/src/lib/Components/Tooltip/Tooltip.tsx +1 -1
- package/src/lib/Components/Trend/Trend.mdx +1 -1
- package/src/lib/Components/Trend/Trend.stories.tsx +2 -1
- package/src/lib/Components/Utility/Box/Box.mdx +1 -1
- package/src/lib/Components/Utility/Box/Box.stories.tsx +2 -1
- package/src/lib/Components/Utility/Box/Box.tsx +1 -1
- package/src/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.mdx +1 -1
- package/src/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.stories.tsx +2 -1
- package/src/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.tsx +1 -1
- package/src/lib/Components/Utility/Gradient/RadialGradient/RadialGradient.mdx +1 -1
- package/src/lib/Components/Utility/Gradient/RadialGradient/RadialGradient.stories.tsx +2 -1
- package/src/lib/Components/Utility/Gradient/RadialGradient/RadialGradient.tsx +1 -1
- package/src/lib/Components/Utility/Pressable/Pressable.mdx +1 -1
- package/src/lib/Components/Utility/Pressable/Pressable.stories.tsx +2 -1
- package/src/lib/Components/Utility/Pressable/Pressable.tsx +1 -1
- package/src/lib/Components/Utility/Text/Text.mdx +1 -1
- package/src/lib/Components/Utility/Text/Text.stories.tsx +2 -1
- package/src/lib/Components/Utility/Text/Text.tsx +1 -1
|
@@ -6,7 +6,7 @@ import { DoVsDontRow, DoBlockItem, DontBlockItem } from '../../../../.storybook/
|
|
|
6
6
|
import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/CommonRulesDoAndDont.mdx';
|
|
7
7
|
import { Box } from '../Utility';
|
|
8
8
|
|
|
9
|
-
<Meta title='
|
|
9
|
+
<Meta title='Core/Button' of={ButtonStories} />
|
|
10
10
|
|
|
11
11
|
# Button
|
|
12
12
|
|
|
@@ -53,7 +53,7 @@ Buttons' contents can be of two types:
|
|
|
53
53
|
- text (default)
|
|
54
54
|
- icon-text
|
|
55
55
|
|
|
56
|
-
> Note: For `icon-only` buttons, use the [IconButton](https://ldls.vercel.app/?path=/docs/
|
|
56
|
+
> Note: For `icon-only` buttons, use the [IconButton](https://ldls-react-native.vercel.app/?path=/docs/rnative-iconbutton--docs) component instead. It's specifically designed for icon-only interactions with proper accessibility support.
|
|
57
57
|
|
|
58
58
|
<Canvas of={ButtonStories.ContentTypesShowcase} />
|
|
59
59
|
|
|
@@ -65,7 +65,7 @@ Buttons come in four different sizes:
|
|
|
65
65
|
- `md` (**48px**, default)
|
|
66
66
|
- `lg` (**56px**)
|
|
67
67
|
|
|
68
|
-
> Note: For `xs` size (32 px), use the [IconButton](/docs/
|
|
68
|
+
> Note: For `xs` size (32 px), use the [IconButton](/docs/rnative-iconbutton--docs) component instead.
|
|
69
69
|
|
|
70
70
|
<Canvas of={ButtonStories.SizesShowcase} />
|
|
71
71
|
|
|
@@ -6,8 +6,7 @@ import type { ButtonProps } from './types';
|
|
|
6
6
|
*
|
|
7
7
|
* When in loading state, it displays a spinner. If an icon is provided without children, it renders as an icon-only button.
|
|
8
8
|
*
|
|
9
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/
|
|
10
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/react-native_action-button--docs#dos-and-donts Guidelines}
|
|
9
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-button--docs Guidelines}
|
|
11
10
|
*
|
|
12
11
|
* @example
|
|
13
12
|
* // Basic primary button
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from '../../../../.storybook/components';
|
|
23
23
|
import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/CommonRulesDoAndDont.mdx';
|
|
24
24
|
|
|
25
|
-
<Meta title='
|
|
25
|
+
<Meta title='Core/Card' of={CardStories} />
|
|
26
26
|
|
|
27
27
|
# Card
|
|
28
28
|
|
|
@@ -130,7 +130,7 @@ const useCardStyles = ({
|
|
|
130
130
|
* - `type="expandable"`: only CardHeader is pressable, toggles footer visibility.
|
|
131
131
|
* - `type="info"`: data-display only, no built-in press handling.
|
|
132
132
|
*
|
|
133
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/
|
|
133
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-card--docs Storybook}
|
|
134
134
|
*
|
|
135
135
|
* @warning The `lx` prop should only be used for layout adjustments like margins or positioning.
|
|
136
136
|
* Do not use it to modify the card's core appearance (colors, padding, etc).
|
|
@@ -6,7 +6,7 @@ import { DoVsDontRow, DoBlockItem, DontBlockItem } from '../../../../.storybook/
|
|
|
6
6
|
import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/CommonRulesDoAndDont.mdx';
|
|
7
7
|
import { Box } from '../Utility';
|
|
8
8
|
|
|
9
|
-
<Meta title='
|
|
9
|
+
<Meta title='Core/CardButton' of={CardButtonStories} />
|
|
10
10
|
|
|
11
11
|
# CardButton
|
|
12
12
|
|
|
@@ -97,8 +97,7 @@ const useStyles = ({
|
|
|
97
97
|
*
|
|
98
98
|
* It supports different appearances. Takes only the necessary width based on content. The chevron can be hidden if needed.
|
|
99
99
|
*
|
|
100
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/
|
|
101
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/react-native_action-cardbutton--docs#dos-and-donts Guidelines}
|
|
100
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-cardbutton--docs Guidelines}
|
|
102
101
|
*
|
|
103
102
|
* @warning The `lx` prop should only be used for layout adjustments like margins or positioning.
|
|
104
103
|
* Do not use it to modify the card button's core appearance (colors, padding, etc). Use the `appearance` prop instead.
|
|
@@ -6,7 +6,7 @@ import { CustomTabs, Tab } from '../../../../.storybook/components';
|
|
|
6
6
|
import { DoVsDontRow, DoBlockItem, DontBlockItem } from '../../../../.storybook/components/DoVsDont';
|
|
7
7
|
import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/CommonRulesDoAndDont.mdx';
|
|
8
8
|
|
|
9
|
-
<Meta title=
|
|
9
|
+
<Meta title='Core/Checkbox' of={CheckboxStories} />
|
|
10
10
|
|
|
11
11
|
# Checkbox
|
|
12
12
|
|
|
@@ -3,7 +3,8 @@ import { Box, Text } from '../Utility';
|
|
|
3
3
|
import { Checkbox } from './Checkbox';
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof Checkbox> = {
|
|
6
|
-
|
|
6
|
+
id: 'rnative-checkbox',
|
|
7
|
+
title: 'Core/Checkbox',
|
|
7
8
|
component: Checkbox,
|
|
8
9
|
parameters: {
|
|
9
10
|
layout: 'fullscreen',
|
|
@@ -12,8 +12,7 @@ import type { CheckboxProps } from './types';
|
|
|
12
12
|
* The checkbox follows the design system tokens and supports checked, unchecked,
|
|
13
13
|
* disabled, and focus states with proper hover and active interactions.
|
|
14
14
|
*
|
|
15
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/
|
|
16
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/react-native_selection-checkbox--docs#dos-and-donts Guidelines}
|
|
15
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-checkbox--docs Guidelines}
|
|
17
16
|
*
|
|
18
17
|
* @warning The `lx` prop should only be used for layout adjustments like margins or positioning.
|
|
19
18
|
* Do not use it to modify the checkbox's core appearance.
|
|
@@ -11,7 +11,7 @@ import { CustomTabs, Tab } from '../../../../.storybook/components';
|
|
|
11
11
|
import { DoVsDontRow, DoBlockItem, DontBlockItem } from '../../../../.storybook/components/DoVsDont';
|
|
12
12
|
import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/CommonRulesDoAndDont.mdx';
|
|
13
13
|
|
|
14
|
-
<Meta title='
|
|
14
|
+
<Meta title='Core/ContentBanner' of={ContentBannerStories} />
|
|
15
15
|
|
|
16
16
|
# ContentBanner
|
|
17
17
|
|
|
@@ -136,7 +136,7 @@ export const ContentBannerDescription = ({
|
|
|
136
136
|
* A content banner component for displaying a composable banner with an optional
|
|
137
137
|
* leading visual, title, description, and close button.
|
|
138
138
|
*
|
|
139
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/
|
|
139
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-contentbanner--docs Storybook}
|
|
140
140
|
*
|
|
141
141
|
* @warning The `lx` prop should only be used for layout adjustments like margins or positioning.
|
|
142
142
|
* Do not use it to modify the banner's core appearance (colors, padding, etc).
|
|
@@ -2,7 +2,7 @@ import { Meta, Canvas, Controls } from '@storybook/addon-docs/blocks';
|
|
|
2
2
|
import * as DescriptionItemStories from './DescriptionItem.stories';
|
|
3
3
|
import { CustomTabs, Tab } from '../../../../.storybook/components';
|
|
4
4
|
|
|
5
|
-
<Meta title='
|
|
5
|
+
<Meta title='Core/DescriptionItem' of={DescriptionItemStories} />
|
|
6
6
|
|
|
7
7
|
# DescriptionItem
|
|
8
8
|
|
|
@@ -20,7 +20,8 @@ const Container = ({ children }: { children: React.ReactNode }) => (
|
|
|
20
20
|
|
|
21
21
|
const meta: Meta<typeof DescriptionItem> = {
|
|
22
22
|
component: DescriptionItem,
|
|
23
|
-
|
|
23
|
+
id: 'rnative-descriptionitem',
|
|
24
|
+
title: 'Core/DescriptionItem',
|
|
24
25
|
subcomponents: {
|
|
25
26
|
DescriptionItemLeading,
|
|
26
27
|
DescriptionItemLabel,
|
|
@@ -25,7 +25,7 @@ const [DescriptionItemSizeProvider, useDescriptionItemSizeContext] =
|
|
|
25
25
|
* Composed with DescriptionItemLeading / DescriptionItemLabel (key side)
|
|
26
26
|
* and DescriptionItemTrailing / DescriptionItemValue (value side).
|
|
27
27
|
*
|
|
28
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/
|
|
28
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-descriptionitem--docs Storybook}
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
31
|
* <DescriptionItem size="md">
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from '../../../../.storybook/components';
|
|
8
8
|
import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/CommonRulesDoAndDont.mdx';
|
|
9
9
|
|
|
10
|
-
<Meta title='
|
|
10
|
+
<Meta title='Core/Divider' of={DividerStories} />
|
|
11
11
|
|
|
12
12
|
# Divider
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ import type { DividerProps } from './types';
|
|
|
7
7
|
* The Divider renders a horizontal or vertical line to create visual separation
|
|
8
8
|
* between content areas. It uses design system tokens for consistent styling.
|
|
9
9
|
*
|
|
10
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/
|
|
10
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-divider--docs Storybook}
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* // Horizontal divider (default)
|
|
@@ -2,7 +2,7 @@ import { Meta, Canvas, Controls } from '@storybook/addon-docs/blocks';
|
|
|
2
2
|
import * as DotCountStories from './DotCount.stories';
|
|
3
3
|
import { CustomTabs, Tab } from '../../../../.storybook/components';
|
|
4
4
|
|
|
5
|
-
<Meta title='
|
|
5
|
+
<Meta title='Core/DotCount' of={DotCountStories} />
|
|
6
6
|
|
|
7
7
|
# DotCount
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ import { Meta, Canvas, Controls } from '@storybook/addon-docs/blocks';
|
|
|
2
2
|
import * as DotIconStories from './DotIcon.stories';
|
|
3
3
|
import { CustomTabs, Tab } from '../../../../.storybook/components';
|
|
4
4
|
|
|
5
|
-
<Meta title='
|
|
5
|
+
<Meta title='Core/DotIcon' of={DotIconStories} />
|
|
6
6
|
|
|
7
7
|
# DotIcon
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ import { Meta, Canvas, Controls } from '@storybook/addon-docs/blocks';
|
|
|
2
2
|
import * as DotIndicatorStories from './DotIndicator.stories';
|
|
3
3
|
import { CustomTabs, Tab } from '../../../../.storybook/components';
|
|
4
4
|
|
|
5
|
-
<Meta title='
|
|
5
|
+
<Meta title='Core/DotIndicator' of={DotIndicatorStories} />
|
|
6
6
|
|
|
7
7
|
# DotIndicator
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ import { Meta, Canvas, Controls } from '@storybook/addon-docs/blocks';
|
|
|
2
2
|
import * as DotSymbolStories from './DotSymbol.stories';
|
|
3
3
|
import { CustomTabs, Tab } from '../../../../.storybook/components';
|
|
4
4
|
|
|
5
|
-
<Meta title='
|
|
5
|
+
<Meta title='Core/DotSymbol' of={DotSymbolStories} />
|
|
6
6
|
|
|
7
7
|
# DotSymbol
|
|
8
8
|
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { Meta, Canvas, Controls } from '@storybook/addon-docs/blocks';
|
|
2
|
+
import * as IconsStories from './Icon.stories';
|
|
3
|
+
import { Box } from '../Utility';
|
|
4
|
+
import { CustomTabs, Tab } from '../../../../.storybook/components';
|
|
5
|
+
import {
|
|
6
|
+
DoVsDontRow,
|
|
7
|
+
DoBlockItem,
|
|
8
|
+
DontBlockItem,
|
|
9
|
+
} from '../../../../.storybook/components/DoVsDont';
|
|
10
|
+
import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/CommonRulesDoAndDont.mdx';
|
|
11
|
+
|
|
12
|
+
<Meta title='Symbols/Interface Icons' of={IconsStories} />
|
|
13
|
+
|
|
14
|
+
# Icons
|
|
15
|
+
|
|
16
|
+
<CustomTabs>
|
|
17
|
+
<Tab label="Overview">
|
|
18
|
+
|
|
19
|
+
Icons are essential elements that communicate meaning quickly and visually. They support navigation, clarify actions, and enhance the overall user experience. A well-designed icon set ensures clarity, consistency, and scalability across platforms.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Figma Library
|
|
24
|
+
|
|
25
|
+
All icons are designed and managed in our Figma Foundations library. This is the single source of truth for our icon set.
|
|
26
|
+
|
|
27
|
+
- 🔗 **[Figma - Icons Library](https://www.figma.com/design/zSkvGGiqcnhywp2l3HTHxA/1.Symbol-Library?node-id=50-5110&m=dev)**
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Interactive Example
|
|
32
|
+
|
|
33
|
+
<Canvas of={IconsStories.Base} />
|
|
34
|
+
<Controls of={IconsStories.Base} />
|
|
35
|
+
|
|
36
|
+
## 📏 Sizing
|
|
37
|
+
|
|
38
|
+
Our icons are designed to be scalable and are available in 7 standard sizes to fit various contexts within the UI.
|
|
39
|
+
|
|
40
|
+
The available sizes are: **16px, 20px, 24px, 32px, 40px, 48px, and 56px**
|
|
41
|
+
|
|
42
|
+
The thickness of each icon is automatically managed by our token system when you apply a size variable, ensuring visual consistency at any scale.
|
|
43
|
+
|
|
44
|
+
<Canvas of={IconsStories.Sizes} />
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Icon Gallery
|
|
49
|
+
|
|
50
|
+
Here's a preview of all the icons available in our design system. To use an icon, just reference its name.
|
|
51
|
+
|
|
52
|
+
<Canvas of={IconsStories.Gallery} />
|
|
53
|
+
|
|
54
|
+
</Tab>
|
|
55
|
+
<Tab label="Implementation">
|
|
56
|
+
|
|
57
|
+
## Setup
|
|
58
|
+
|
|
59
|
+
Install and set up the library with our [Setup Guide →](?path=/docs/getting-started-setup--docs).
|
|
60
|
+
|
|
61
|
+
## Basic Usage
|
|
62
|
+
|
|
63
|
+
Import and use specific icons from the symbols library:
|
|
64
|
+
|
|
65
|
+
```tsx
|
|
66
|
+
import { ArrowUp, Settings, Plus } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
67
|
+
|
|
68
|
+
function MyComponent() {
|
|
69
|
+
return (
|
|
70
|
+
<Box lx={{ flexDirection: 'row', gap: 's8' }}>
|
|
71
|
+
<ArrowUp size={24} />
|
|
72
|
+
<Settings size={20} />
|
|
73
|
+
<Plus size={16} />
|
|
74
|
+
</Box>
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Size Variants
|
|
80
|
+
|
|
81
|
+
Icons support predefined size variants that ensure consistent visual hierarchy:
|
|
82
|
+
|
|
83
|
+
```tsx
|
|
84
|
+
import { ArrowUp } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
85
|
+
|
|
86
|
+
function IconSizes() {
|
|
87
|
+
return (
|
|
88
|
+
<Box lx={{ flexDirection: 'row', alignItems: 'center', gap: 's8' }}>
|
|
89
|
+
<ArrowUp size={16} />
|
|
90
|
+
<ArrowUp size={20} />
|
|
91
|
+
<ArrowUp size={24} /> {/* Default size */}
|
|
92
|
+
<ArrowUp size={40} />
|
|
93
|
+
<ArrowUp size={48} />
|
|
94
|
+
<ArrowUp size={56} />
|
|
95
|
+
</Box>
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Within Buttons
|
|
101
|
+
|
|
102
|
+
The Button component supports icons with automatic size adjustment based on the button size:
|
|
103
|
+
|
|
104
|
+
```tsx
|
|
105
|
+
import { Button } from '@ledgerhq/lumen-ui-rnative';
|
|
106
|
+
import { ArrowRight } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
107
|
+
|
|
108
|
+
function MyComponent() {
|
|
109
|
+
return (
|
|
110
|
+
<Button size='m' appearance='base' icon={ArrowRight}>
|
|
111
|
+
Continue
|
|
112
|
+
</Button>
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### Accessibility
|
|
118
|
+
|
|
119
|
+
Always provide proper accessibility attributes for interactive icons:
|
|
120
|
+
|
|
121
|
+
```tsx
|
|
122
|
+
import { Information } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
123
|
+
|
|
124
|
+
function AccessibleIcon() {
|
|
125
|
+
return (
|
|
126
|
+
<Information size={20} accessibilityLabel='Account verification required' />
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### With Semantic Colors
|
|
132
|
+
|
|
133
|
+
Icons inherit the current text color and can be styled with semantic color tokens:
|
|
134
|
+
|
|
135
|
+
```tsx
|
|
136
|
+
import {
|
|
137
|
+
CheckmarkCircle,
|
|
138
|
+
DeleteCircle,
|
|
139
|
+
Clock,
|
|
140
|
+
} from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
141
|
+
|
|
142
|
+
function SemanticIcons() {
|
|
143
|
+
return (
|
|
144
|
+
<Box lx={{ flexDirection: 'row', gap: 's8' }}>
|
|
145
|
+
<CheckmarkCircle size={24} lx={{ color: 'success' }} />
|
|
146
|
+
<DeleteCircle size={24} lx={{ color: 'error' }} />
|
|
147
|
+
<Clock size={24} lx={{ color: 'warning' }} />
|
|
148
|
+
</Box>
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## Do's and Don'ts
|
|
154
|
+
|
|
155
|
+
<Box lx={{ flexDirection: 'column', gap: 's24' }}>
|
|
156
|
+
|
|
157
|
+
<DoVsDontRow>
|
|
158
|
+
<DoBlockItem
|
|
159
|
+
title='Use predefined size variants'
|
|
160
|
+
description='Standard sizes ensure consistent visual hierarchy'
|
|
161
|
+
>
|
|
162
|
+
|
|
163
|
+
```tsx
|
|
164
|
+
<ArrowUp size={24} />
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
</DoBlockItem>
|
|
168
|
+
<DontBlockItem
|
|
169
|
+
title="Don't use custom sizes"
|
|
170
|
+
description='Avoid non-standard sizes or arbitrary prop overrides'
|
|
171
|
+
>
|
|
172
|
+
|
|
173
|
+
{/* prettier-ignore */}
|
|
174
|
+
```tsx
|
|
175
|
+
<ArrowUp size={23} />
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
</DontBlockItem>
|
|
179
|
+
|
|
180
|
+
</DoVsDontRow>
|
|
181
|
+
|
|
182
|
+
<DoVsDontRow>
|
|
183
|
+
<DoBlockItem
|
|
184
|
+
title='Use semantic colors for icons'
|
|
185
|
+
description='Use semantic color tokens and inherit text color'
|
|
186
|
+
>
|
|
187
|
+
|
|
188
|
+
```tsx
|
|
189
|
+
<ArrowUp lx={{ color: 'success' }} />
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
</DoBlockItem>
|
|
193
|
+
<DontBlockItem
|
|
194
|
+
title="Don't use arbitrary colors"
|
|
195
|
+
description='Avoid arbitrary color values or overriding currentColor unnecessarily'
|
|
196
|
+
>
|
|
197
|
+
|
|
198
|
+
{/* prettier-ignore */}
|
|
199
|
+
```tsx
|
|
200
|
+
<ArrowUp color='#ff0000' />
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
</DontBlockItem>
|
|
204
|
+
|
|
205
|
+
</DoVsDontRow>
|
|
206
|
+
|
|
207
|
+
<CommonRulesDoAndDont />
|
|
208
|
+
</Box>
|
|
209
|
+
|
|
210
|
+
</Tab>
|
|
211
|
+
</CustomTabs>
|
|
@@ -7,6 +7,7 @@ import { Box, Text, Pressable } from '../Utility';
|
|
|
7
7
|
import type { IconSize } from './types';
|
|
8
8
|
|
|
9
9
|
const meta: Meta = {
|
|
10
|
+
id: 'rnative-icon',
|
|
10
11
|
title: 'Symbols/Interface Icons',
|
|
11
12
|
};
|
|
12
13
|
|
|
@@ -90,7 +91,7 @@ const IconCard = ({ name, size = 24, color }: IconCardProps) => {
|
|
|
90
91
|
);
|
|
91
92
|
};
|
|
92
93
|
|
|
93
|
-
export const
|
|
94
|
+
export const Base: StoryObj<IconStoryProps> = {
|
|
94
95
|
args: {
|
|
95
96
|
size: 24,
|
|
96
97
|
name: 'Home',
|
|
@@ -139,7 +140,7 @@ export const Icon: StoryObj<IconStoryProps> = {
|
|
|
139
140
|
},
|
|
140
141
|
};
|
|
141
142
|
|
|
142
|
-
export const
|
|
143
|
+
export const Sizes: StoryObj = {
|
|
143
144
|
render: () => {
|
|
144
145
|
const { theme } = useTheme();
|
|
145
146
|
|
|
@@ -6,7 +6,7 @@ import { DoVsDontRow, DoBlockItem, DontBlockItem } from '../../../../.storybook/
|
|
|
6
6
|
import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/CommonRulesDoAndDont.mdx';
|
|
7
7
|
import { Box } from '../Utility';
|
|
8
8
|
|
|
9
|
-
<Meta title='
|
|
9
|
+
<Meta title='Core/IconButton' of={IconButtonStories} />
|
|
10
10
|
|
|
11
11
|
# IconButton
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@ import { CustomTabs, Tab } from '../../../../.storybook/components';
|
|
|
6
6
|
import { DoVsDontRow, DoBlockItem, DontBlockItem } from '../../../../.storybook/components/DoVsDont';
|
|
7
7
|
import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/CommonRulesDoAndDont.mdx';
|
|
8
8
|
|
|
9
|
-
<Meta title='
|
|
9
|
+
<Meta title='Core/InteractiveIcon' of={InteractiveIconStories} />
|
|
10
10
|
|
|
11
11
|
# InteractiveIcon
|
|
12
12
|
|
|
@@ -10,7 +10,8 @@ import { InteractiveIcon } from './InteractiveIcon';
|
|
|
10
10
|
|
|
11
11
|
const meta: Meta<typeof InteractiveIcon> = {
|
|
12
12
|
component: InteractiveIcon,
|
|
13
|
-
|
|
13
|
+
id: 'rnative-interactiveicon',
|
|
14
|
+
title: 'Core/InteractiveIcon',
|
|
14
15
|
parameters: {
|
|
15
16
|
docs: {
|
|
16
17
|
source: {
|
|
@@ -72,8 +72,7 @@ const useStyles = ({
|
|
|
72
72
|
* The InteractiveIcon provides two visual styles - 'filled' and 'stroked' - optimized for different icon types and use cases.
|
|
73
73
|
* It ensures proper pressed states and accessibility features while maintaining a minimal footprint.
|
|
74
74
|
*
|
|
75
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/
|
|
76
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/components-interactiveicon-implementation--docs#dos-and-donts Guidelines}
|
|
75
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-interactiveicon--docs Guidelines}
|
|
77
76
|
*
|
|
78
77
|
* @component
|
|
79
78
|
*
|
|
@@ -6,7 +6,7 @@ import { CustomTabs, Tab } from '../../../../.storybook/components';
|
|
|
6
6
|
import { DoVsDontRow, DoBlockItem, DontBlockItem } from '../../../../.storybook/components/DoVsDont';
|
|
7
7
|
import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/CommonRulesDoAndDont.mdx';
|
|
8
8
|
|
|
9
|
-
<Meta title='
|
|
9
|
+
<Meta title='Core/Link' of={LinkStories} />
|
|
10
10
|
|
|
11
11
|
# Link
|
|
12
12
|
|
|
@@ -73,8 +73,7 @@ const useStyles = ({ appearance, size, underline, pressed }: StyleParams) => {
|
|
|
73
73
|
* A customizable link component that supports base and accent color appearances, optional underline, sizes, icons, and external link handling.
|
|
74
74
|
* Opens URLs using React Native's Linking API.
|
|
75
75
|
*
|
|
76
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/
|
|
77
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/components-link-implementation--docs#dos-and-donts Guidelines}
|
|
76
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-link--docs Guidelines}
|
|
78
77
|
*
|
|
79
78
|
* @warning The `lx` prop should only be used for layout adjustments like margins or positioning.
|
|
80
79
|
* Do not use it to modify the link's core appearance (colors, padding, etc). Use the `appearance` and `underline` props instead.
|