@ledgerhq/lumen-ui-rnative 0.1.46 → 0.1.48
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.js +3 -1
- package/dist/module/lib/Components/AmountInput/AmountInput.js.map +1 -1
- package/dist/module/lib/Components/AmountInput/AmountInput.mdx +1 -1
- package/dist/module/lib/Components/AmountInput/AmountInput.stories.js +17 -1
- package/dist/module/lib/Components/AmountInput/AmountInput.stories.js.map +1 -1
- package/dist/module/lib/Components/AmountInput/useAmountInputFormatting/useAmountInputFormatting.js +1 -1
- package/dist/module/lib/Components/AmountInput/useAmountInputFormatting/useAmountInputFormatting.js.map +1 -1
- package/dist/module/lib/Components/AmountInput/useAmountInputFormatting/useAmountInputFormatting.test.js +20 -1
- package/dist/module/lib/Components/AmountInput/useAmountInputFormatting/useAmountInputFormatting.test.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.js +16 -1
- package/dist/module/lib/Components/OptionList/OptionList.js.map +1 -1
- package/dist/module/lib/Components/OptionList/OptionList.mdx +46 -1
- package/dist/module/lib/Components/OptionList/OptionList.stories.js +63 -2
- package/dist/module/lib/Components/OptionList/OptionList.stories.js.map +1 -1
- package/dist/module/lib/Components/OptionList/OptionList.test.js +43 -1
- package/dist/module/lib/Components/OptionList/OptionList.test.js.map +1 -1
- package/dist/module/lib/Components/OptionList/useOptionList/useOptionListItems.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.js +7 -1
- package/dist/module/lib/Components/SegmentedControl/SegmentedControl.js.map +1 -1
- package/dist/module/lib/Components/SegmentedControl/SegmentedControl.mdx +29 -1
- package/dist/module/lib/Components/SegmentedControl/SegmentedControl.stories.js +26 -2
- package/dist/module/lib/Components/SegmentedControl/SegmentedControl.stories.js.map +1 -1
- package/dist/module/lib/Components/SegmentedControl/SegmentedControl.test.js +28 -1
- package/dist/module/lib/Components/SegmentedControl/SegmentedControl.test.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 +8 -6
- package/dist/module/lib/Components/TabBar/TabBar.js.map +1 -1
- package/dist/module/lib/Components/TabBar/TabBar.mdx +30 -1
- package/dist/module/lib/Components/TabBar/TabBar.stories.js +37 -2
- package/dist/module/lib/Components/TabBar/TabBar.stories.js.map +1 -1
- package/dist/module/lib/Components/TabBar/TabBar.test.js +28 -1
- package/dist/module/lib/Components/TabBar/TabBar.test.js.map +1 -1
- package/dist/module/lib/Components/TabBar/index.js +2 -1
- package/dist/module/lib/Components/TabBar/index.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/AmountInput/AmountInput.d.ts +1 -1
- package/dist/typescript/src/lib/Components/AmountInput/AmountInput.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/AmountInput/types.d.ts +8 -0
- package/dist/typescript/src/lib/Components/AmountInput/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/AmountInput/useAmountInputFormatting/useAmountInputFormatting.d.ts +1 -0
- package/dist/typescript/src/lib/Components/AmountInput/useAmountInputFormatting/useAmountInputFormatting.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/OptionList/OptionList.d.ts +18 -4
- package/dist/typescript/src/lib/Components/OptionList/OptionList.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/OptionList/types.d.ts +16 -15
- package/dist/typescript/src/lib/Components/OptionList/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/OptionList/useOptionList/useOptionListItems.d.ts +9 -9
- package/dist/typescript/src/lib/Components/OptionList/useOptionList/useOptionListItems.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/SegmentedControl/SegmentedControl.d.ts +8 -3
- package/dist/typescript/src/lib/Components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/SegmentedControl/types.d.ts +6 -5
- package/dist/typescript/src/lib/Components/SegmentedControl/types.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 +8 -4
- package/dist/typescript/src/lib/Components/TabBar/TabBar.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/TabBar/index.d.ts +2 -2
- package/dist/typescript/src/lib/Components/TabBar/index.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/TabBar/types.d.ts +17 -16
- package/dist/typescript/src/lib/Components/TabBar/types.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 +3 -3
- 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 +16 -1
- package/src/lib/Components/AmountInput/AmountInput.tsx +2 -0
- package/src/lib/Components/AmountInput/types.ts +8 -0
- package/src/lib/Components/AmountInput/useAmountInputFormatting/useAmountInputFormatting.test.ts +20 -0
- package/src/lib/Components/AmountInput/useAmountInputFormatting/useAmountInputFormatting.ts +2 -0
- 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 +46 -1
- package/src/lib/Components/OptionList/OptionList.stories.tsx +65 -1
- package/src/lib/Components/OptionList/OptionList.test.tsx +40 -0
- package/src/lib/Components/OptionList/OptionList.tsx +57 -10
- package/src/lib/Components/OptionList/types.ts +34 -15
- package/src/lib/Components/OptionList/useOptionList/useOptionListItems.ts +28 -13
- 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 +29 -1
- package/src/lib/Components/SegmentedControl/SegmentedControl.stories.tsx +36 -2
- package/src/lib/Components/SegmentedControl/SegmentedControl.test.tsx +32 -1
- package/src/lib/Components/SegmentedControl/SegmentedControl.tsx +22 -5
- package/src/lib/Components/SegmentedControl/types.ts +11 -5
- 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 +30 -1
- package/src/lib/Components/TabBar/TabBar.stories.tsx +36 -2
- package/src/lib/Components/TabBar/TabBar.test.tsx +23 -1
- package/src/lib/Components/TabBar/TabBar.tsx +18 -11
- package/src/lib/Components/TabBar/index.ts +2 -2
- package/src/lib/Components/TabBar/types.ts +19 -17
- 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
|
@@ -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.
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from '../../../../.storybook/components';
|
|
20
20
|
import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/CommonRulesDoAndDont.mdx';
|
|
21
21
|
|
|
22
|
-
<Meta title='
|
|
22
|
+
<Meta title='Core/ListItem' of={ListItemStories} />
|
|
23
23
|
|
|
24
24
|
# ListItem
|
|
25
25
|
|
|
@@ -57,8 +57,7 @@ const useRootStyles = ({
|
|
|
57
57
|
* A flexible list item component that provides a composable structure for displaying
|
|
58
58
|
* interactive list items with leading content, title, description, and trailing content.
|
|
59
59
|
*
|
|
60
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/
|
|
61
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/react-native_containment-listitem--docs#dos-and-donts Guidelines}
|
|
60
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-listitem--docs Guidelines}
|
|
62
61
|
*
|
|
63
62
|
* @warning The `lx` prop should only be used for layout adjustments like margins or positioning.
|
|
64
63
|
* Do not use it to modify the list item's core appearance (colors, padding, etc).
|
|
@@ -10,7 +10,7 @@ import { CustomTabs, Tab } from '../../../../.storybook/components';
|
|
|
10
10
|
import { DoVsDontRow, DoBlockItem, DontBlockItem } from '../../../../.storybook/components/DoVsDont';
|
|
11
11
|
import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/CommonRulesDoAndDont.mdx';
|
|
12
12
|
|
|
13
|
-
<Meta title='
|
|
13
|
+
<Meta title='Core/MediaBanner' of={MediaBannerStories} />
|
|
14
14
|
|
|
15
15
|
# MediaBanner
|
|
16
16
|
|
|
@@ -13,7 +13,8 @@ const IMAGE_URL =
|
|
|
13
13
|
|
|
14
14
|
const meta: Meta<typeof MediaBanner> = {
|
|
15
15
|
component: MediaBanner,
|
|
16
|
-
|
|
16
|
+
id: 'rnative-mediabanner',
|
|
17
|
+
title: 'Core/MediaBanner',
|
|
17
18
|
subcomponents: {
|
|
18
19
|
MediaBannerTitle,
|
|
19
20
|
MediaBannerDescription,
|
|
@@ -14,7 +14,7 @@ import type {
|
|
|
14
14
|
/**
|
|
15
15
|
* A promotional banner with a background image, title, description, and an optional close button.
|
|
16
16
|
*
|
|
17
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/
|
|
17
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-mediabanner--docs Storybook}
|
|
18
18
|
*/
|
|
19
19
|
export function MediaBanner({
|
|
20
20
|
lx,
|
|
@@ -2,7 +2,7 @@ import { CustomTabs, Tab } from '../../../../.storybook/components';
|
|
|
2
2
|
import { Meta, Canvas, Controls } from '@storybook/addon-docs/blocks';
|
|
3
3
|
import * as MediaButtonStories from './MediaButton.stories';
|
|
4
4
|
|
|
5
|
-
<Meta title='
|
|
5
|
+
<Meta title='Core/MediaButton' of={MediaButtonStories} />
|
|
6
6
|
|
|
7
7
|
<CustomTabs>
|
|
8
8
|
<Tab label="Overview ">
|
|
@@ -15,7 +15,7 @@ A specialized media button designed exclusively for option list and dropdown pat
|
|
|
15
15
|
|
|
16
16
|
> View in [Figma](https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7/2.-Components-Library?node-id=6389-45680&m=dev).
|
|
17
17
|
|
|
18
|
-
> **Important**: This component should only be used as a trigger inside an OptionList or dropdown. For standalone actions, use [Button](/docs/
|
|
18
|
+
> **Important**: This component should only be used as a trigger inside an OptionList or dropdown. For standalone actions, use [Button](/docs/rnative-button--docs) or [IconButton](/docs/rnative-iconbutton--docs) instead.
|
|
19
19
|
|
|
20
20
|
## Properties
|
|
21
21
|
|
|
@@ -3,7 +3,7 @@ import * as MediaCardStories from './MediaCard.stories';
|
|
|
3
3
|
import { CustomTabs, Tab } from '../../../../.storybook/components';
|
|
4
4
|
import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/CommonRulesDoAndDont.mdx';
|
|
5
5
|
|
|
6
|
-
<Meta title='
|
|
6
|
+
<Meta title='Core/MediaCard' of={MediaCardStories} />
|
|
7
7
|
|
|
8
8
|
# MediaCard
|
|
9
9
|
|
|
@@ -9,7 +9,8 @@ import { MediaCard, MediaCardTitle } from './MediaCard';
|
|
|
9
9
|
const meta = {
|
|
10
10
|
component: MediaCard,
|
|
11
11
|
subcomponents: { MediaCardTitle },
|
|
12
|
-
|
|
12
|
+
id: 'rnative-mediacard',
|
|
13
|
+
title: 'Core/MediaCard',
|
|
13
14
|
parameters: {
|
|
14
15
|
layout: 'centered',
|
|
15
16
|
backgrounds: { default: 'light' },
|
|
@@ -5,7 +5,7 @@ import { CustomTabs, Tab } from '../../../../.storybook/components';
|
|
|
5
5
|
import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/CommonRulesDoAndDont.mdx';
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
<Meta title='
|
|
8
|
+
<Meta title='Core/MediaImage' of={MediaImageStories} />
|
|
9
9
|
|
|
10
10
|
# MediaImage
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ import { DoVsDontRow, DoBlockItem, DontBlockItem } from '../../../../.storybook/
|
|
|
5
5
|
import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/CommonRulesDoAndDont.mdx';
|
|
6
6
|
import { Box } from '../Utility/Box';
|
|
7
7
|
|
|
8
|
-
<Meta title='
|
|
8
|
+
<Meta title='Core/MediaTag' of={MediaTagStories} />
|
|
9
9
|
|
|
10
10
|
# MediaTag
|
|
11
11
|
|
|
@@ -14,7 +14,7 @@ import { Box } from '../Utility/Box';
|
|
|
14
14
|
|
|
15
15
|
## Introduction
|
|
16
16
|
|
|
17
|
-
MediaTag is a compact label used to categorize, classify, or highlight information alongside a required media element such as an image or crypto icon. Like [Tag](/docs/
|
|
17
|
+
MediaTag is a compact label used to categorize, classify, or highlight information alongside a required media element such as an image or crypto icon. Like [Tag](/docs/rnative-tag--docs), it supports multiple appearances and sizes, but is designed for cases where the icon is richer than a Symbol.
|
|
18
18
|
|
|
19
19
|
> View in [Figma](https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7/2.-Components-Library?node-id=16793-36383&m=dev).
|
|
20
20
|
|
|
@@ -6,8 +6,7 @@ import type { MediaTagProps } from './types';
|
|
|
6
6
|
*
|
|
7
7
|
* The appearance determines the color scheme used.
|
|
8
8
|
*
|
|
9
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/
|
|
10
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/communication-mediatag-implementation--docs#dos-and-donts Guidelines}
|
|
9
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-mediatag--docs Guidelines}
|
|
11
10
|
*
|
|
12
11
|
* @warning The `lx` prop should only be used for layout adjustments like margins or positioning.
|
|
13
12
|
* Do not use it to modify the tag's core appearance (colors, padding, etc). Use the `appearance` prop instead.
|
|
@@ -5,7 +5,7 @@ import { NavBar, NavBarBackButton, NavBarContent } from './NavBar';
|
|
|
5
5
|
import { CustomTabs, Tab } from '../../../../.storybook/components';
|
|
6
6
|
import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/CommonRulesDoAndDont.mdx';
|
|
7
7
|
|
|
8
|
-
<Meta title='
|
|
8
|
+
<Meta title='Core/NavBar' of={NavBarStories} />
|
|
9
9
|
|
|
10
10
|
# NavBar
|
|
11
11
|
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
DontBlockItem,
|
|
9
9
|
} from '../../../../.storybook/components';
|
|
10
10
|
|
|
11
|
-
<Meta title='
|
|
11
|
+
<Meta title='Core/OptionList' of={OptionListStories} />
|
|
12
12
|
|
|
13
13
|
# OptionList
|
|
14
14
|
|
|
@@ -97,6 +97,8 @@ Install and set up the library with our [Setup Guide →](?path=/docs/getting-st
|
|
|
97
97
|
|
|
98
98
|
## Basic usage
|
|
99
99
|
|
|
100
|
+
> **Recommended:** prefer the [type-safe variant](#type-safe-variant) below. It ties `value`, `items[].value`, `OptionListItem.value`, and the `renderItem(item).meta` shape to one literal union plus an optional `TMeta`, dropping the `as Meta` casts in `renderItem`.
|
|
101
|
+
|
|
100
102
|
```tsx
|
|
101
103
|
import {
|
|
102
104
|
OptionList,
|
|
@@ -130,6 +132,49 @@ function MyList() {
|
|
|
130
132
|
}
|
|
131
133
|
```
|
|
132
134
|
|
|
135
|
+
## Type-safe variant
|
|
136
|
+
|
|
137
|
+
`OptionList` and its subcomponents communicate via context, so TypeScript cannot connect `value` / `items[].value` / `OptionListItem.value` on its own. A typo compiles. `createOptionList<T, TMeta>()` ties them together via one literal union (`T`) and an optional meta shape (`TMeta`) that flows into `renderItem(item)`, removing the `as` cast on `item.meta`.
|
|
138
|
+
|
|
139
|
+
```tsx
|
|
140
|
+
import { createOptionList } from '@ledgerhq/lumen-ui-rnative';
|
|
141
|
+
import type { OptionListItemData } from '@ledgerhq/lumen-ui-rnative';
|
|
142
|
+
|
|
143
|
+
type Network = 'eth' | 'sol' | 'btc';
|
|
144
|
+
type NetworkMeta = { ticker: string; ledgerId: string };
|
|
145
|
+
|
|
146
|
+
const NetworkList = createOptionList<Network, NetworkMeta>();
|
|
147
|
+
|
|
148
|
+
const NETWORKS: OptionListItemData<Network, NetworkMeta>[] = [
|
|
149
|
+
{ value: 'eth', label: 'Ethereum', meta: { ticker: 'ETH', ledgerId: 'ethereum' } },
|
|
150
|
+
{ value: 'sol', label: 'Solana', meta: { ticker: 'SOL', ledgerId: 'solana' } },
|
|
151
|
+
{ value: 'btc', label: 'Bitcoin', meta: { ticker: 'BTC', ledgerId: 'bitcoin' } },
|
|
152
|
+
];
|
|
153
|
+
|
|
154
|
+
function Example() {
|
|
155
|
+
const [value, setValue] = React.useState<Network | null>('eth');
|
|
156
|
+
|
|
157
|
+
return (
|
|
158
|
+
<NetworkList.OptionList items={NETWORKS} value={value} onValueChange={setValue}>
|
|
159
|
+
<NetworkList.OptionListContent
|
|
160
|
+
renderItem={({ value, label, meta }) =>
|
|
161
|
+
meta ? (
|
|
162
|
+
<NetworkList.OptionListItem value={value}>
|
|
163
|
+
<NetworkList.OptionListItemContent>
|
|
164
|
+
<NetworkList.OptionListItemText>{label}</NetworkList.OptionListItemText>
|
|
165
|
+
<NetworkList.OptionListItemDescription>
|
|
166
|
+
{meta.ticker}
|
|
167
|
+
</NetworkList.OptionListItemDescription>
|
|
168
|
+
</NetworkList.OptionListItemContent>
|
|
169
|
+
</NetworkList.OptionListItem>
|
|
170
|
+
) : null
|
|
171
|
+
}
|
|
172
|
+
/>
|
|
173
|
+
</NetworkList.OptionList>
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
```
|
|
177
|
+
|
|
133
178
|
## Inside a BottomSheet
|
|
134
179
|
|
|
135
180
|
Use `OptionListTrigger` as the input-style trigger — it provides a floating label that animates up when a value is selected, and a chevron indicator. Pass children only when a value is selected so the label stays centered when empty.
|