@ledgerhq/lumen-ui-rnative 0.1.45 → 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/BaseInput/BaseInput.js +3 -3
- package/dist/module/lib/Components/BaseInput/BaseInput.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/OptionList/useOptionList/useOptionListItems.js +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.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/Slot/Slot.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/Gradient/utils/resolveGradientColor.js +3 -2
- package/dist/module/lib/Components/Utility/Gradient/utils/resolveGradientColor.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/module/lib/utils/startTransition/startTransition.js +4 -4
- package/dist/module/lib/utils/startTransition/startTransition.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/Slot/Slot.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/GlobalTooltipContext.d.ts +3 -3
- package/dist/typescript/src/lib/Components/Tooltip/GlobalTooltipContext.d.ts.map +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/Gradient/utils/resolveGradientColor.d.ts.map +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 +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/BaseInput/BaseInput.tsx +3 -3
- 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/OptionList/useOptionList/useOptionListItems.ts +1 -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/Slot/Slot.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/GlobalTooltipContext.tsx +3 -3
- 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/Gradient/utils/resolveGradientColor.ts +4 -8
- 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
- package/src/lib/utils/startTransition/startTransition.ts +4 -4
|
@@ -2,6 +2,7 @@ import type {
|
|
|
2
2
|
ComponentRef,
|
|
3
3
|
ComponentPropsWithoutRef,
|
|
4
4
|
ComponentPropsWithRef,
|
|
5
|
+
RefObject,
|
|
5
6
|
} from 'react';
|
|
6
7
|
import { isValidElement, cloneElement } from 'react';
|
|
7
8
|
import type {
|
|
@@ -110,7 +111,7 @@ function composeRefs<T>(...refs: (React.Ref<T> | undefined)[]) {
|
|
|
110
111
|
if (typeof ref === 'function') {
|
|
111
112
|
ref(node);
|
|
112
113
|
} else if (ref != null) {
|
|
113
|
-
(ref as
|
|
114
|
+
(ref as RefObject<T>).current = node;
|
|
114
115
|
}
|
|
115
116
|
});
|
|
116
117
|
}
|
|
@@ -6,7 +6,7 @@ import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/Com
|
|
|
6
6
|
import { Box } from '../Utility/Box';
|
|
7
7
|
import { Text } from '../Utility/Text';
|
|
8
8
|
|
|
9
|
-
<Meta title='
|
|
9
|
+
<Meta title='Core/Spinner' of={SpinnerStories} />
|
|
10
10
|
|
|
11
11
|
# Spinner
|
|
12
12
|
|
|
@@ -4,7 +4,8 @@ import { Text } from '../Utility/Text';
|
|
|
4
4
|
import { Spinner } from './Spinner';
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof Spinner> = {
|
|
7
|
-
|
|
7
|
+
id: 'rnative-spinner',
|
|
8
|
+
title: 'Core/Spinner',
|
|
8
9
|
component: Spinner,
|
|
9
10
|
parameters: {
|
|
10
11
|
actions: { disable: true },
|
|
@@ -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/Spot' of={SpotStories} />
|
|
10
10
|
|
|
11
11
|
# Spot
|
|
12
12
|
|
|
@@ -103,7 +103,7 @@ const useStyles = ({
|
|
|
103
103
|
* - `'number'` appearance requires a `number` prop
|
|
104
104
|
* - All other appearances are self-contained
|
|
105
105
|
*
|
|
106
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/
|
|
106
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-spot--docs Storybook}
|
|
107
107
|
*
|
|
108
108
|
* @warning The `lx` prop should only be used for layout adjustments like margins or positioning.
|
|
109
109
|
* Do not use it to modify the spot's core appearance (colors, size, etc). Use the `appearance` prop instead.
|
|
@@ -6,7 +6,7 @@ import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/Com
|
|
|
6
6
|
import { Box } from '../Utility/Box';
|
|
7
7
|
import { Text } from '../Utility/Text';
|
|
8
8
|
|
|
9
|
-
<Meta title='
|
|
9
|
+
<Meta title='Core/Stepper' of={StepperStories} />
|
|
10
10
|
|
|
11
11
|
# Stepper
|
|
12
12
|
|
|
@@ -4,7 +4,8 @@ import { Text } from '../Utility/Text';
|
|
|
4
4
|
import { Stepper } from './Stepper';
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof Stepper> = {
|
|
7
|
-
|
|
7
|
+
id: 'rnative-stepper',
|
|
8
|
+
title: 'Core/Stepper',
|
|
8
9
|
component: Stepper,
|
|
9
10
|
parameters: {
|
|
10
11
|
actions: { disable: true },
|
|
@@ -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/Subheader' of={SubheaderStories} />
|
|
23
23
|
|
|
24
24
|
# Subheader
|
|
25
25
|
|
|
@@ -20,7 +20,8 @@ const Container = ({ children }: { children: React.ReactNode }) => (
|
|
|
20
20
|
|
|
21
21
|
const meta: Meta<typeof Subheader> = {
|
|
22
22
|
component: Subheader,
|
|
23
|
-
|
|
23
|
+
id: 'rnative-subheader',
|
|
24
|
+
title: 'Core/Subheader',
|
|
24
25
|
subcomponents: {
|
|
25
26
|
SubheaderRow,
|
|
26
27
|
SubheaderTitle,
|
|
@@ -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/Switch' of={SwitchStories} />
|
|
10
10
|
|
|
11
11
|
# Switch
|
|
12
12
|
|
|
@@ -107,8 +107,7 @@ const useAnimatedThumb = (checked: boolean, translate: number) => {
|
|
|
107
107
|
* The switch follows the design system tokens and supports checked, unchecked,
|
|
108
108
|
* disabled, and focus states with proper active interactions.
|
|
109
109
|
*
|
|
110
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/
|
|
111
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/react-native_selection-switch--docs#dos-and-donts Guidelines}
|
|
110
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-switch--docs Guidelines}
|
|
112
111
|
*
|
|
113
112
|
* @warning The `lx` prop should only be used for layout adjustments like margins or positioning.
|
|
114
113
|
* Do not use it to modify the switch's core appearance.
|
|
@@ -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/TabBar' of={TabBarStories} />
|
|
10
10
|
|
|
11
11
|
# TabBar
|
|
12
12
|
|
|
@@ -227,8 +227,7 @@ export function TabBarItem({
|
|
|
227
227
|
* A horizontal tab bar with animated pill background and icon transitions.
|
|
228
228
|
* Provides smooth animations for active state changes and press interactions.
|
|
229
229
|
*
|
|
230
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/
|
|
231
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/react-native_navigation-tabbar--docs#dos-and-donts Guidelines}
|
|
230
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-tabbar--docs Guidelines}
|
|
232
231
|
*
|
|
233
232
|
* @warning The `lx` prop should only be used for layout adjustments like margins or positioning.
|
|
234
233
|
*
|
|
@@ -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/Tag' of={TagStories} />
|
|
9
9
|
|
|
10
10
|
# Tag
|
|
11
11
|
|
|
@@ -14,8 +14,7 @@ const iconSizeMap: Record<Size, IconSize> = {
|
|
|
14
14
|
*
|
|
15
15
|
* The appearance determines the color scheme used.
|
|
16
16
|
*
|
|
17
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/
|
|
18
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/communication-tag-implementation--docs#dos-and-donts Guidelines}
|
|
17
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-tag--docs Guidelines}
|
|
19
18
|
*
|
|
20
19
|
* @warning The `lx` prop should only be used for layout adjustments like margins or positioning.
|
|
21
20
|
* Do not use it to modify the tag's core appearance (colors, padding, etc). Use the `appearance` prop instead.
|
|
@@ -5,7 +5,7 @@ import { CustomTabs, Tab } from '../../../../.storybook/components';
|
|
|
5
5
|
import { DoVsDontRow, DoBlockItem, DontBlockItem } from '../../../../.storybook/components/DoVsDont';
|
|
6
6
|
import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/CommonRulesDoAndDont.mdx';
|
|
7
7
|
|
|
8
|
-
<Meta title='
|
|
8
|
+
<Meta title='Core/TextInput' of={TextInputStories} />
|
|
9
9
|
|
|
10
10
|
# TextInput
|
|
11
11
|
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/CommonRulesDoAndDont.mdx';
|
|
12
12
|
import { Box } from '../Utility';
|
|
13
13
|
|
|
14
|
-
<Meta title='
|
|
14
|
+
<Meta title='Core/Tile' of={TileStories} />
|
|
15
15
|
|
|
16
16
|
# Tile
|
|
17
17
|
|
|
@@ -73,8 +73,7 @@ const useRootStyles = ({
|
|
|
73
73
|
* A flexible tile component that uses a composite pattern for maximum customization.
|
|
74
74
|
* Displays content in a vertical layout with support for spots, text, and custom content.
|
|
75
75
|
*
|
|
76
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/
|
|
77
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/react-native_containment-tile--docs#dos-and-donts Guidelines}
|
|
76
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-tile--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 tile's core appearance (colors, padding, etc). Use the `appearance` prop instead.
|
|
@@ -5,7 +5,7 @@ import { CustomTabs, Tab } from '../../../../.storybook/components';
|
|
|
5
5
|
import { DoVsDontRow, DoBlockItem, DontBlockItem } from '../../../../.storybook/components/DoVsDont';
|
|
6
6
|
import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/CommonRulesDoAndDont.mdx';
|
|
7
7
|
|
|
8
|
-
<Meta title='
|
|
8
|
+
<Meta title='Core/TileButton' of={TileButtonStories} />
|
|
9
9
|
|
|
10
10
|
# TileButton
|
|
11
11
|
|
|
@@ -67,7 +67,7 @@ const useStyles = ({
|
|
|
67
67
|
* A compact button component displaying an icon above a label in a vertical layout.
|
|
68
68
|
* Ideal for grids, toolbars, or quick action menus.
|
|
69
69
|
*
|
|
70
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/
|
|
70
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-tilebutton--docs Storybook}
|
|
71
71
|
*
|
|
72
72
|
* @example
|
|
73
73
|
* import { TileButton } from '@ledgerhq/lumen-ui-rnative';
|
|
@@ -11,7 +11,7 @@ import { useGlobalTooltipSafeContext } from './GlobalTooltipContext';
|
|
|
11
11
|
* BottomSheet component that displays tooltip content.
|
|
12
12
|
* This should be placed at the root level inside GestureHandlerRootView.
|
|
13
13
|
*
|
|
14
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/
|
|
14
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-tooltip--docs Storybook}
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
17
|
* import { GlobalTooltipProvider, GlobalTooltipBottomSheet } from '@ledgerhq/lumen-ui-rnative';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createSafeContext } from '@ledgerhq/lumen-utils-shared';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ReactNode, RefObject } from 'react';
|
|
3
3
|
import { useState, useCallback, useRef, useMemo } from 'react';
|
|
4
4
|
|
|
5
5
|
export type TooltipData = {
|
|
@@ -11,8 +11,8 @@ export type TooltipData = {
|
|
|
11
11
|
|
|
12
12
|
type GlobalTooltipBottomSheetContextValue = {
|
|
13
13
|
currentTooltip: TooltipData | null;
|
|
14
|
-
showTooltipRef:
|
|
15
|
-
hideTooltipRef:
|
|
14
|
+
showTooltipRef: RefObject<(data: TooltipData) => void>;
|
|
15
|
+
hideTooltipRef: RefObject<() => void>;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
const [GlobalTooltipContextProvider, _useGlobalTooltipSafeContext] =
|
|
@@ -5,7 +5,7 @@ import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/Com
|
|
|
5
5
|
import * as TooltipStories from './Tooltip.stories';
|
|
6
6
|
import { Box } from '../Utility/Box';
|
|
7
7
|
|
|
8
|
-
<Meta title='
|
|
8
|
+
<Meta title='Core/Tooltip' of={TooltipStories} />
|
|
9
9
|
|
|
10
10
|
# Tooltip
|
|
11
11
|
|
|
@@ -10,7 +10,8 @@ import { Tooltip, TooltipTrigger, TooltipContent } from './Tooltip';
|
|
|
10
10
|
const meta: Meta<typeof Tooltip> = {
|
|
11
11
|
component: Tooltip,
|
|
12
12
|
subcomponents: { TooltipTrigger, TooltipContent },
|
|
13
|
-
|
|
13
|
+
id: 'rnative-tooltip',
|
|
14
|
+
title: 'Core/Tooltip',
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
export default meta;
|
|
@@ -20,7 +20,7 @@ import type {
|
|
|
20
20
|
* This component coordinates between the trigger and content components.
|
|
21
21
|
* It works with GlobalTooltipProvider to ensure only one tooltip can be shown at a time.
|
|
22
22
|
*
|
|
23
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/
|
|
23
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-tooltip--docs Storybook}
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
26
26
|
* import { GlobalTooltipProvider, Tooltip, TooltipTrigger, TooltipContent, GlobalTooltipBottomSheet } from '@ledgerhq/lumen-ui-rnative';
|
|
@@ -4,7 +4,7 @@ import { CustomTabs, Tab } from '../../../../.storybook/components';
|
|
|
4
4
|
import { DoVsDontRow, DoBlockItem, DontBlockItem } from '../../../../.storybook/components/DoVsDont';
|
|
5
5
|
import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/CommonRulesDoAndDont.mdx';
|
|
6
6
|
|
|
7
|
-
<Meta title='
|
|
7
|
+
<Meta title='Core/Trend' of={TrendStories} />
|
|
8
8
|
|
|
9
9
|
# Trend
|
|
10
10
|
|
|
@@ -2,7 +2,7 @@ import { Meta, Canvas, Controls } from '@storybook/addon-docs/blocks';
|
|
|
2
2
|
import * as BoxStories from './Box.stories';
|
|
3
3
|
import { CustomTabs, Tab } from '../../../../../.storybook/components';
|
|
4
4
|
|
|
5
|
-
<Meta title='
|
|
5
|
+
<Meta title='Primitives/Box' of={BoxStories} />
|
|
6
6
|
|
|
7
7
|
# Box
|
|
8
8
|
|
|
@@ -7,7 +7,7 @@ import { createStyledView } from '../../../../styles';
|
|
|
7
7
|
* Box is a View wrapper that accepts design token-based style props directly,
|
|
8
8
|
* providing type-safe styling with autocomplete for spacing, sizes, colors, etc.
|
|
9
9
|
*
|
|
10
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/
|
|
10
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-box--docs Storybook}
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```tsx
|
|
@@ -2,7 +2,7 @@ import { Meta, Canvas, Controls } from '@storybook/addon-docs/blocks';
|
|
|
2
2
|
import * as LinearGradientStories from './LinearGradient.stories';
|
|
3
3
|
import { CustomTabs, Tab } from '../../../../../../.storybook/components';
|
|
4
4
|
|
|
5
|
-
<Meta title='
|
|
5
|
+
<Meta title='Primitives/LinearGradient' of={LinearGradientStories} />
|
|
6
6
|
|
|
7
7
|
# LinearGradient
|
|
8
8
|
|
|
@@ -6,7 +6,8 @@ import { LinearGradient } from './LinearGradient';
|
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof LinearGradient> = {
|
|
8
8
|
component: LinearGradient,
|
|
9
|
-
|
|
9
|
+
id: 'rnative-lineargradient',
|
|
10
|
+
title: 'Primitives/LinearGradient',
|
|
10
11
|
parameters: {
|
|
11
12
|
layout: 'centered',
|
|
12
13
|
backgrounds: { default: 'light' },
|
|
@@ -59,7 +59,7 @@ const styles = StyleSheet.create({
|
|
|
59
59
|
* Uses react-native-svg to render gradients that work consistently across platforms.
|
|
60
60
|
* Extends Box, so it supports all lx style props for layout and sizing.
|
|
61
61
|
*
|
|
62
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/
|
|
62
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-lineargradient--docs Storybook}
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
65
|
* ```tsx
|
|
@@ -2,7 +2,7 @@ import { Meta, Canvas, Controls } from '@storybook/addon-docs/blocks';
|
|
|
2
2
|
import * as RadialGradientStories from './RadialGradient.stories';
|
|
3
3
|
import { CustomTabs, Tab } from '../../../../../../.storybook/components';
|
|
4
4
|
|
|
5
|
-
<Meta title='
|
|
5
|
+
<Meta title='Primitives/RadialGradient' of={RadialGradientStories} />
|
|
6
6
|
|
|
7
7
|
# RadialGradient
|
|
8
8
|
|
|
@@ -5,7 +5,8 @@ import { RadialGradient } from './RadialGradient';
|
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof RadialGradient> = {
|
|
7
7
|
component: RadialGradient,
|
|
8
|
-
|
|
8
|
+
id: 'rnative-radialgradient',
|
|
9
|
+
title: 'Primitives/RadialGradient',
|
|
9
10
|
parameters: {
|
|
10
11
|
layout: 'centered',
|
|
11
12
|
backgrounds: { default: 'light' },
|
|
@@ -27,7 +27,7 @@ const styles = StyleSheet.create({
|
|
|
27
27
|
* Uses react-native-svg to render gradients that work consistently across platforms.
|
|
28
28
|
* Extends Box, so it supports all lx style props for layout and sizing.
|
|
29
29
|
*
|
|
30
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/
|
|
30
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-radialgradient--docs Storybook}
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
33
|
* ```tsx
|
|
@@ -41,14 +41,10 @@ export const processGradientStops = (
|
|
|
41
41
|
|
|
42
42
|
// Auto-spread offsets if not provided
|
|
43
43
|
// For n stops: 0, 1/(n-1), 2/(n-1), ..., 1
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
? DEFAULT_OFFSET
|
|
49
|
-
: index / (stopCount - 1);
|
|
50
|
-
|
|
51
|
-
const opacity = stop.opacity !== undefined ? stop.opacity : DEFAULT_OPACITY;
|
|
44
|
+
const autoOffset =
|
|
45
|
+
stopCount === 1 ? DEFAULT_OFFSET : index / (stopCount - 1);
|
|
46
|
+
const offset = stop.offset ?? autoOffset;
|
|
47
|
+
const opacity = stop.opacity ?? DEFAULT_OPACITY;
|
|
52
48
|
|
|
53
49
|
return {
|
|
54
50
|
color: resolvedColor,
|
|
@@ -2,7 +2,7 @@ import { Meta, Canvas, Controls } from '@storybook/addon-docs/blocks';
|
|
|
2
2
|
import * as PressableStories from './Pressable.stories';
|
|
3
3
|
import { CustomTabs, Tab } from '../../../../../.storybook/components';
|
|
4
4
|
|
|
5
|
-
<Meta title='
|
|
5
|
+
<Meta title='Primitives/Pressable' of={PressableStories} />
|
|
6
6
|
|
|
7
7
|
# Pressable
|
|
8
8
|
|
|
@@ -8,7 +8,7 @@ import { createStyledPressable } from '../../../../styles';
|
|
|
8
8
|
* token-based style props directly, providing type-safe styling with autocomplete
|
|
9
9
|
* for spacing, sizes, colors, etc. Use the `style` prop for pressed-state styling.
|
|
10
10
|
*
|
|
11
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/
|
|
11
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-pressable--docs Storybook}
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```tsx
|
|
@@ -2,7 +2,7 @@ import { Meta, Canvas, Controls } from '@storybook/addon-docs/blocks';
|
|
|
2
2
|
import * as TextStories from './Text.stories';
|
|
3
3
|
import { CustomTabs, Tab } from '../../../../../.storybook/components';
|
|
4
4
|
|
|
5
|
-
<Meta title='
|
|
5
|
+
<Meta title='Primitives/Text' of={TextStories} />
|
|
6
6
|
|
|
7
7
|
# Text
|
|
8
8
|
|
|
@@ -7,7 +7,7 @@ import { createStyledText } from '../../../../styles';
|
|
|
7
7
|
* Text is a wrapper around React Native's Text that accepts a `typography` prop for
|
|
8
8
|
* typography presets, plus design token-based style props for colors, spacing, etc.
|
|
9
9
|
*
|
|
10
|
-
* @see {@link https://ldls.vercel.app/?path=/docs/
|
|
10
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-text--docs Storybook}
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```tsx
|
|
@@ -2,11 +2,11 @@ import { startTransition as reactStartTransition } from 'react';
|
|
|
2
2
|
import { RuntimeConstants } from '../constants';
|
|
3
3
|
|
|
4
4
|
export const startTransition = (callback: React.TransitionFunction): void => {
|
|
5
|
-
if (
|
|
6
|
-
// Pass-through function
|
|
7
|
-
callback();
|
|
8
|
-
} else {
|
|
5
|
+
if (RuntimeConstants.isBrowser) {
|
|
9
6
|
// Proxy to react.startTransition
|
|
10
7
|
reactStartTransition(callback);
|
|
8
|
+
} else {
|
|
9
|
+
// Pass-through function
|
|
10
|
+
callback();
|
|
11
11
|
}
|
|
12
12
|
};
|