@ledgerhq/lumen-ui-rnative 0.1.48 → 0.1.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module/i18n/locales/de.json +1 -3
- package/dist/module/i18n/locales/en.json +1 -3
- package/dist/module/i18n/locales/es.json +1 -3
- package/dist/module/i18n/locales/fr.json +1 -3
- package/dist/module/i18n/locales/ja.json +1 -3
- package/dist/module/i18n/locales/ko.json +1 -3
- package/dist/module/i18n/locales/pt.json +1 -3
- package/dist/module/i18n/locales/ru.json +1 -3
- package/dist/module/i18n/locales/th.json +1 -3
- package/dist/module/i18n/locales/tr.json +1 -3
- package/dist/module/i18n/locales/zh.json +1 -3
- package/dist/module/lib/Animations/Pulse/Pulse.js +3 -3
- package/dist/module/lib/Animations/Pulse/Pulse.js.map +1 -1
- package/dist/module/lib/Animations/Pulse/Pulse.mdx +0 -1
- package/dist/module/lib/Animations/Spin/Spin.js +3 -3
- package/dist/module/lib/Animations/Spin/Spin.js.map +1 -1
- package/dist/module/lib/Animations/Spin/Spin.mdx +0 -1
- package/dist/module/lib/Components/AddressInput/AddressInput.figma.js +36 -0
- package/dist/module/lib/Components/AddressInput/AddressInput.figma.js.map +1 -0
- package/dist/module/lib/Components/AddressInput/AddressInput.mdx +0 -183
- package/dist/module/lib/Components/AmountDisplay/AmountDisplay.figma.js +31 -0
- package/dist/module/lib/Components/AmountDisplay/AmountDisplay.figma.js.map +1 -0
- package/dist/module/lib/Components/AmountDisplay/AmountDisplay.mdx +0 -90
- package/dist/module/lib/Components/AmountInput/AmountInput.figma.js +70 -0
- package/dist/module/lib/Components/AmountInput/AmountInput.figma.js.map +1 -0
- package/dist/module/lib/Components/AmountInput/AmountInput.mdx +0 -190
- package/dist/module/lib/Components/Avatar/Avatar.figma.js +15 -12
- package/dist/module/lib/Components/Avatar/Avatar.figma.js.map +1 -1
- package/dist/module/lib/Components/Avatar/Avatar.js +4 -27
- package/dist/module/lib/Components/Avatar/Avatar.js.map +1 -1
- package/dist/module/lib/Components/Avatar/Avatar.mdx +53 -69
- package/dist/module/lib/Components/Avatar/Avatar.stories.js +27 -33
- package/dist/module/lib/Components/Avatar/Avatar.stories.js.map +1 -1
- package/dist/module/lib/Components/Avatar/Avatar.test.js +21 -39
- package/dist/module/lib/Components/Avatar/Avatar.test.js.map +1 -1
- package/dist/module/lib/Components/Banner/Banner.figma.js +107 -0
- package/dist/module/lib/Components/Banner/Banner.figma.js.map +1 -0
- package/dist/module/lib/Components/Banner/Banner.mdx +0 -86
- package/dist/module/lib/Components/BaseInput/BaseInput.js +84 -25
- package/dist/module/lib/Components/BaseInput/BaseInput.js.map +1 -1
- package/dist/module/lib/Components/BottomSheet/BottomSheet.figma.js +49 -0
- package/dist/module/lib/Components/BottomSheet/BottomSheet.figma.js.map +1 -0
- package/dist/module/lib/Components/BottomSheet/BottomSheet.mdx +0 -119
- package/dist/module/lib/Components/Button/Button.figma.js +45 -0
- package/dist/module/lib/Components/Button/Button.figma.js.map +1 -0
- package/dist/module/lib/Components/Button/Button.mdx +25 -224
- package/dist/module/lib/Components/Button/Button.stories.js +4 -36
- package/dist/module/lib/Components/Button/Button.stories.js.map +1 -1
- package/dist/module/lib/Components/Button/ButtonGroup.figma.js +19 -0
- package/dist/module/lib/Components/Button/ButtonGroup.figma.js.map +1 -0
- package/dist/module/lib/Components/Card/Card.figma.js +143 -0
- package/dist/module/lib/Components/Card/Card.figma.js.map +1 -0
- package/dist/module/lib/Components/Card/Card.mdx +0 -160
- package/dist/module/lib/Components/CardButton/CardButton.figma.js +38 -0
- package/dist/module/lib/Components/CardButton/CardButton.figma.js.map +1 -0
- package/dist/module/lib/Components/CardButton/CardButton.mdx +0 -48
- package/dist/module/lib/Components/Checkbox/Checkbox.figma.js +48 -0
- package/dist/module/lib/Components/Checkbox/Checkbox.figma.js.map +1 -0
- package/dist/module/lib/Components/Checkbox/Checkbox.mdx +0 -73
- package/dist/module/lib/Components/ContentBanner/ContentBanner.figma.js +91 -0
- package/dist/module/lib/Components/ContentBanner/ContentBanner.figma.js.map +1 -0
- package/dist/module/lib/Components/ContentBanner/ContentBanner.mdx +0 -2
- package/dist/module/lib/Components/CryptoIcon/CryptoIcon.figma.js +17 -0
- package/dist/module/lib/Components/CryptoIcon/CryptoIcon.figma.js.map +1 -0
- package/dist/module/lib/Components/DescriptionItem/DescriptionItem.figma.js +29 -0
- package/dist/module/lib/Components/DescriptionItem/DescriptionItem.figma.js.map +1 -0
- package/dist/module/lib/Components/DescriptionItem/DescriptionItem.js +31 -9
- package/dist/module/lib/Components/DescriptionItem/DescriptionItem.js.map +1 -1
- package/dist/module/lib/Components/DescriptionItem/DescriptionItem.mdx +10 -7
- package/dist/module/lib/Components/DescriptionItem/DescriptionItem.stories.js +29 -40
- package/dist/module/lib/Components/DescriptionItem/DescriptionItem.stories.js.map +1 -1
- package/dist/module/lib/Components/DescriptionItem/DescriptionItem.test.js +22 -0
- package/dist/module/lib/Components/DescriptionItem/DescriptionItem.test.js.map +1 -1
- package/dist/module/lib/Components/Divider/Divider.figma.js +10 -0
- package/dist/module/lib/Components/Divider/Divider.figma.js.map +1 -0
- package/dist/module/lib/Components/Divider/Divider.mdx +0 -2
- package/dist/module/lib/Components/DotCount/DotCount.figma.js +29 -0
- package/dist/module/lib/Components/DotCount/DotCount.figma.js.map +1 -0
- package/dist/module/lib/Components/DotIndicator/DotIndicator.figma.js +29 -0
- package/dist/module/lib/Components/DotIndicator/DotIndicator.figma.js.map +1 -0
- package/dist/module/lib/Components/DotIndicator/DotIndicator.stories.js +6 -3
- package/dist/module/lib/Components/DotIndicator/DotIndicator.stories.js.map +1 -1
- package/dist/module/lib/Components/DotIndicator/getDotIndicatorProps.js +17 -0
- package/dist/module/lib/Components/DotIndicator/getDotIndicatorProps.js.map +1 -0
- package/dist/module/lib/Components/DotIndicator/getDotIndicatorProps.test.js +17 -0
- package/dist/module/lib/Components/DotIndicator/getDotIndicatorProps.test.js.map +1 -0
- package/dist/module/lib/Components/DotIndicator/index.js +1 -0
- package/dist/module/lib/Components/DotIndicator/index.js.map +1 -1
- package/dist/module/lib/Components/Icon/Icon.figma.js +1840 -0
- package/dist/module/lib/Components/Icon/Icon.figma.js.map +1 -0
- package/dist/module/lib/Components/Icon/Icon.mdx +0 -62
- package/dist/module/lib/Components/IconButton/IconButton.figma.js +42 -0
- package/dist/module/lib/Components/IconButton/IconButton.figma.js.map +1 -0
- package/dist/module/lib/Components/IconButton/IconButton.mdx +0 -68
- package/dist/module/lib/Components/InteractiveIcon/InteractiveIcon.figma.js +51 -0
- package/dist/module/lib/Components/InteractiveIcon/InteractiveIcon.figma.js.map +1 -0
- package/dist/module/lib/Components/InteractiveIcon/InteractiveIcon.mdx +0 -107
- package/dist/module/lib/Components/Link/Link.figma.js +41 -0
- package/dist/module/lib/Components/Link/Link.figma.js.map +1 -0
- package/dist/module/lib/Components/Link/Link.mdx +0 -102
- package/dist/module/lib/Components/ListItem/ListItem.figma.js +427 -0
- package/dist/module/lib/Components/ListItem/ListItem.figma.js.map +1 -0
- package/dist/module/lib/Components/ListItem/ListItem.js +78 -20
- package/dist/module/lib/Components/ListItem/ListItem.js.map +1 -1
- package/dist/module/lib/Components/ListItem/ListItem.mdx +17 -129
- package/dist/module/lib/Components/ListItem/ListItem.stories.js +132 -0
- package/dist/module/lib/Components/ListItem/ListItem.stories.js.map +1 -1
- package/dist/module/lib/Components/ListItem/ListItem.test.js +80 -0
- package/dist/module/lib/Components/ListItem/ListItem.test.js.map +1 -1
- package/dist/module/lib/Components/MediaBanner/MediaBanner.figma.js +25 -0
- package/dist/module/lib/Components/MediaBanner/MediaBanner.figma.js.map +1 -0
- package/dist/module/lib/Components/MediaBanner/MediaBanner.mdx +0 -3
- package/dist/module/lib/Components/MediaButton/MediaButton.figma.js +72 -0
- package/dist/module/lib/Components/MediaButton/MediaButton.figma.js.map +1 -0
- package/dist/module/lib/Components/MediaCard/MediaCard.figma.js +28 -0
- package/dist/module/lib/Components/MediaCard/MediaCard.figma.js.map +1 -0
- package/dist/module/lib/Components/MediaCard/MediaCard.mdx +0 -2
- package/dist/module/lib/Components/MediaImage/MediaImage.mdx +0 -1
- package/dist/module/lib/Components/MediaTag/MediaTag.figma.js +100 -0
- package/dist/module/lib/Components/MediaTag/MediaTag.figma.js.map +1 -0
- package/dist/module/lib/Components/MediaTag/MediaTag.mdx +0 -2
- package/dist/module/lib/Components/NavBar/NavBar.figma.js +79 -0
- package/dist/module/lib/Components/NavBar/NavBar.figma.js.map +1 -0
- package/dist/module/lib/Components/NavBar/NavBar.mdx +0 -2
- package/dist/module/lib/Components/OptionList/OptionList.mdx +0 -90
- package/dist/module/lib/Components/PageIndicator/PageIndicator.figma.js +13 -0
- package/dist/module/lib/Components/PageIndicator/PageIndicator.figma.js.map +1 -0
- package/dist/module/lib/Components/PageIndicator/PageIndicator.mdx +0 -2
- package/dist/module/lib/Components/SearchInput/SearchInput.figma.js +31 -0
- package/dist/module/lib/Components/SearchInput/SearchInput.figma.js.map +1 -0
- package/dist/module/lib/Components/SearchInput/SearchInput.mdx +0 -199
- package/dist/module/lib/Components/SectionHeader/SectionHeader.figma.js +22 -0
- package/dist/module/lib/Components/SectionHeader/SectionHeader.figma.js.map +1 -0
- package/dist/module/lib/Components/SectionHeader/SectionHeader.js +99 -0
- package/dist/module/lib/Components/SectionHeader/SectionHeader.js.map +1 -0
- package/dist/module/lib/Components/SectionHeader/SectionHeader.mdx +79 -0
- package/dist/module/lib/Components/SectionHeader/SectionHeader.stories.js +104 -0
- package/dist/module/lib/Components/SectionHeader/SectionHeader.stories.js.map +1 -0
- package/dist/module/lib/Components/SectionHeader/SectionHeader.test.js +108 -0
- package/dist/module/lib/Components/SectionHeader/SectionHeader.test.js.map +1 -0
- package/dist/module/lib/Components/SectionHeader/index.js +5 -0
- package/dist/module/lib/Components/SectionHeader/index.js.map +1 -0
- package/dist/module/lib/Components/SectionHeader/types.js +4 -0
- package/dist/module/lib/Components/SectionHeader/types.js.map +1 -0
- package/dist/module/lib/Components/SegmentedControl/SegmentedControl.figma.js +35 -0
- package/dist/module/lib/Components/SegmentedControl/SegmentedControl.figma.js.map +1 -0
- package/dist/module/lib/Components/SegmentedControl/SegmentedControl.mdx +0 -1
- package/dist/module/lib/Components/Skeleton/Skeleton.figma.js +18 -0
- package/dist/module/lib/Components/Skeleton/Skeleton.figma.js.map +1 -0
- package/dist/module/lib/Components/Skeleton/Skeleton.mdx +0 -71
- package/dist/module/lib/Components/Spinner/Spinner.figma.js +13 -0
- package/dist/module/lib/Components/Spinner/Spinner.figma.js.map +1 -0
- package/dist/module/lib/Components/Spinner/Spinner.mdx +0 -100
- package/dist/module/lib/Components/Spot/Spot.figma.js +37 -0
- package/dist/module/lib/Components/Spot/Spot.figma.js.map +1 -0
- package/dist/module/lib/Components/Spot/Spot.mdx +0 -94
- package/dist/module/lib/Components/Stepper/Stepper.figma.js +13 -0
- package/dist/module/lib/Components/Stepper/Stepper.figma.js.map +1 -0
- package/dist/module/lib/Components/Stepper/Stepper.mdx +0 -67
- package/dist/module/lib/Components/Subheader/Subheader.figma.js +67 -0
- package/dist/module/lib/Components/Subheader/Subheader.figma.js.map +1 -0
- package/dist/module/lib/Components/Subheader/Subheader.mdx +0 -116
- package/dist/module/lib/Components/Switch/Switch.figma.js +58 -0
- package/dist/module/lib/Components/Switch/Switch.figma.js.map +1 -0
- package/dist/module/lib/Components/Switch/Switch.mdx +0 -39
- package/dist/module/lib/Components/TabBar/TabBar.figma.js +98 -0
- package/dist/module/lib/Components/TabBar/TabBar.figma.js.map +1 -0
- package/dist/module/lib/Components/TabBar/TabBar.mdx +0 -5
- package/dist/module/lib/Components/Tag/Tag.figma.js +41 -0
- package/dist/module/lib/Components/Tag/Tag.figma.js.map +1 -0
- package/dist/module/lib/Components/Tag/Tag.mdx +0 -2
- package/dist/module/lib/Components/TextInput/TextInput.figma.js +42 -0
- package/dist/module/lib/Components/TextInput/TextInput.figma.js.map +1 -0
- package/dist/module/lib/Components/TextInput/TextInput.mdx +43 -251
- package/dist/module/lib/Components/TextInput/TextInput.stories.js +58 -1
- package/dist/module/lib/Components/TextInput/TextInput.stories.js.map +1 -1
- package/dist/module/lib/Components/TextInput/TextInput.test.js +45 -1
- package/dist/module/lib/Components/TextInput/TextInput.test.js.map +1 -1
- package/dist/module/lib/Components/Tile/Tile.figma.js +111 -0
- package/dist/module/lib/Components/Tile/Tile.figma.js.map +1 -0
- package/dist/module/lib/Components/Tile/Tile.mdx +0 -53
- package/dist/module/lib/Components/TileButton/TileButton.figma.js +28 -0
- package/dist/module/lib/Components/TileButton/TileButton.figma.js.map +1 -0
- package/dist/module/lib/Components/TileButton/TileButton.js +39 -27
- package/dist/module/lib/Components/TileButton/TileButton.js.map +1 -1
- package/dist/module/lib/Components/TileButton/TileButton.mdx +10 -41
- package/dist/module/lib/Components/TileButton/TileButton.stories.js +33 -2
- package/dist/module/lib/Components/TileButton/TileButton.stories.js.map +1 -1
- package/dist/module/lib/Components/TileButton/TileButton.test.js +26 -0
- package/dist/module/lib/Components/TileButton/TileButton.test.js.map +1 -1
- package/dist/module/lib/Components/Tooltip/Tooltip.figma.js +26 -0
- package/dist/module/lib/Components/Tooltip/Tooltip.figma.js.map +1 -0
- package/dist/module/lib/Components/Tooltip/Tooltip.mdx +0 -183
- package/dist/module/lib/Components/Trend/Trend.figma.js +29 -0
- package/dist/module/lib/Components/Trend/Trend.figma.js.map +1 -0
- package/dist/module/lib/Components/Trend/Trend.mdx +0 -2
- package/dist/module/lib/Components/Utility/Text/Text.mdx +0 -1
- package/dist/module/lib/Components/index.js +1 -0
- package/dist/module/lib/Components/index.js.map +1 -1
- package/dist/module/lib/Symbols/Icons/ChevronAscending.js +1 -1
- package/dist/module/lib/Symbols/Icons/ChevronDescending.js +1 -1
- package/dist/module/lib/Symbols/Icons/Contact.js +50 -0
- package/dist/module/lib/Symbols/Icons/Contact.js.map +1 -0
- package/dist/module/lib/Symbols/Icons/Upload.js +50 -0
- package/dist/module/lib/Symbols/Icons/Upload.js.map +1 -0
- package/dist/module/lib/Symbols/index.js +2 -0
- package/dist/module/lib/Symbols/index.js.map +1 -1
- package/dist/typescript/src/lib/Animations/Pulse/Pulse.d.ts.map +1 -1
- package/dist/typescript/src/lib/Animations/Spin/Spin.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Avatar/Avatar.d.ts +1 -4
- package/dist/typescript/src/lib/Components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Avatar/types.d.ts +0 -6
- package/dist/typescript/src/lib/Components/Avatar/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/BaseInput/BaseInput.d.ts +1 -1
- package/dist/typescript/src/lib/Components/BaseInput/BaseInput.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/BaseInput/types.d.ts +16 -0
- package/dist/typescript/src/lib/Components/BaseInput/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/DescriptionItem/DescriptionItem.d.ts +1 -1
- package/dist/typescript/src/lib/Components/DescriptionItem/DescriptionItem.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/DescriptionItem/types.d.ts +6 -0
- package/dist/typescript/src/lib/Components/DescriptionItem/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/DotIndicator/getDotIndicatorProps.d.ts +24 -0
- package/dist/typescript/src/lib/Components/DotIndicator/getDotIndicatorProps.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/DotIndicator/index.d.ts +1 -0
- package/dist/typescript/src/lib/Components/DotIndicator/index.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/ListItem/ListItem.d.ts +1 -1
- package/dist/typescript/src/lib/Components/ListItem/ListItem.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/ListItem/types.d.ts +11 -1
- package/dist/typescript/src/lib/Components/ListItem/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/SectionHeader/SectionHeader.d.ts +20 -0
- package/dist/typescript/src/lib/Components/SectionHeader/SectionHeader.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/SectionHeader/index.d.ts +3 -0
- package/dist/typescript/src/lib/Components/SectionHeader/index.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/SectionHeader/types.d.ts +27 -0
- package/dist/typescript/src/lib/Components/SectionHeader/types.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/TileButton/TileButton.d.ts +1 -1
- package/dist/typescript/src/lib/Components/TileButton/TileButton.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/TileButton/types.d.ts +5 -0
- package/dist/typescript/src/lib/Components/TileButton/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/index.d.ts +1 -0
- package/dist/typescript/src/lib/Components/index.d.ts.map +1 -1
- package/dist/typescript/src/lib/Symbols/Icons/Contact.d.ts +35 -0
- package/dist/typescript/src/lib/Symbols/Icons/Contact.d.ts.map +1 -0
- package/dist/typescript/src/lib/Symbols/Icons/Upload.d.ts +35 -0
- package/dist/typescript/src/lib/Symbols/Icons/Upload.d.ts.map +1 -0
- package/dist/typescript/src/lib/Symbols/index.d.ts +2 -0
- package/dist/typescript/src/lib/Symbols/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/i18n/locales/de.json +1 -3
- package/src/i18n/locales/en.json +1 -3
- package/src/i18n/locales/es.json +1 -3
- package/src/i18n/locales/fr.json +1 -3
- package/src/i18n/locales/ja.json +1 -3
- package/src/i18n/locales/ko.json +1 -3
- package/src/i18n/locales/pt.json +1 -3
- package/src/i18n/locales/ru.json +1 -3
- package/src/i18n/locales/th.json +1 -3
- package/src/i18n/locales/tr.json +1 -3
- package/src/i18n/locales/zh.json +1 -3
- package/src/lib/Animations/Pulse/Pulse.mdx +0 -1
- package/src/lib/Animations/Pulse/Pulse.tsx +8 -1
- package/src/lib/Animations/Spin/Spin.mdx +0 -1
- package/src/lib/Animations/Spin/Spin.tsx +8 -1
- package/src/lib/Components/AddressInput/AddressInput.figma.tsx +39 -0
- package/src/lib/Components/AddressInput/AddressInput.mdx +0 -183
- package/src/lib/Components/AmountDisplay/AmountDisplay.figma.tsx +37 -0
- package/src/lib/Components/AmountDisplay/AmountDisplay.mdx +0 -90
- package/src/lib/Components/AmountInput/AmountInput.figma.tsx +78 -0
- package/src/lib/Components/AmountInput/AmountInput.mdx +0 -190
- package/src/lib/Components/Avatar/Avatar.figma.tsx +24 -14
- package/src/lib/Components/Avatar/Avatar.mdx +53 -69
- package/src/lib/Components/Avatar/Avatar.stories.tsx +16 -50
- package/src/lib/Components/Avatar/Avatar.test.tsx +12 -32
- package/src/lib/Components/Avatar/Avatar.tsx +4 -34
- package/src/lib/Components/Avatar/types.ts +0 -6
- package/src/lib/Components/Banner/Banner.figma.tsx +115 -0
- package/src/lib/Components/Banner/Banner.mdx +0 -86
- package/src/lib/Components/BaseInput/BaseInput.tsx +93 -22
- package/src/lib/Components/BaseInput/types.ts +18 -0
- package/src/lib/Components/BottomSheet/BottomSheet.figma.tsx +52 -0
- package/src/lib/Components/BottomSheet/BottomSheet.mdx +0 -119
- package/src/lib/Components/Button/Button.figma.tsx +57 -0
- package/src/lib/Components/Button/Button.mdx +25 -224
- package/src/lib/Components/Button/Button.stories.tsx +3 -35
- package/src/lib/Components/Button/ButtonGroup.figma.tsx +15 -0
- package/src/lib/Components/Card/Card.figma.tsx +149 -0
- package/src/lib/Components/Card/Card.mdx +0 -160
- package/src/lib/Components/CardButton/CardButton.figma.tsx +49 -0
- package/src/lib/Components/CardButton/CardButton.mdx +0 -48
- package/src/lib/Components/Checkbox/Checkbox.figma.tsx +54 -0
- package/src/lib/Components/Checkbox/Checkbox.mdx +0 -73
- package/src/lib/Components/ContentBanner/ContentBanner.figma.tsx +108 -0
- package/src/lib/Components/ContentBanner/ContentBanner.mdx +0 -2
- package/src/lib/Components/CryptoIcon/CryptoIcon.figma.tsx +20 -0
- package/src/lib/Components/DescriptionItem/DescriptionItem.figma.tsx +36 -0
- package/src/lib/Components/DescriptionItem/DescriptionItem.mdx +10 -7
- package/src/lib/Components/DescriptionItem/DescriptionItem.stories.tsx +21 -41
- package/src/lib/Components/DescriptionItem/DescriptionItem.test.tsx +24 -0
- package/src/lib/Components/DescriptionItem/DescriptionItem.tsx +31 -8
- package/src/lib/Components/DescriptionItem/types.ts +6 -0
- package/src/lib/Components/Divider/Divider.figma.tsx +11 -0
- package/src/lib/Components/Divider/Divider.mdx +0 -2
- package/src/lib/Components/DotCount/DotCount.figma.tsx +32 -0
- package/src/lib/Components/DotIndicator/DotIndicator.figma.tsx +32 -0
- package/src/lib/Components/DotIndicator/DotIndicator.stories.tsx +4 -1
- package/src/lib/Components/DotIndicator/getDotIndicatorProps.test.ts +15 -0
- package/src/lib/Components/DotIndicator/getDotIndicatorProps.ts +10 -0
- package/src/lib/Components/DotIndicator/index.ts +1 -0
- package/src/lib/Components/Icon/Icon.figma.tsx +3085 -0
- package/src/lib/Components/Icon/Icon.mdx +0 -62
- package/src/lib/Components/IconButton/IconButton.figma.tsx +53 -0
- package/src/lib/Components/IconButton/IconButton.mdx +0 -68
- package/src/lib/Components/InteractiveIcon/InteractiveIcon.figma.tsx +52 -0
- package/src/lib/Components/InteractiveIcon/InteractiveIcon.mdx +0 -107
- package/src/lib/Components/Link/Link.figma.tsx +53 -0
- package/src/lib/Components/Link/Link.mdx +0 -102
- package/src/lib/Components/ListItem/ListItem.figma.tsx +466 -0
- package/src/lib/Components/ListItem/ListItem.mdx +17 -129
- package/src/lib/Components/ListItem/ListItem.stories.tsx +92 -0
- package/src/lib/Components/ListItem/ListItem.test.tsx +78 -0
- package/src/lib/Components/ListItem/ListItem.tsx +64 -19
- package/src/lib/Components/ListItem/types.ts +11 -1
- package/src/lib/Components/MediaBanner/MediaBanner.figma.tsx +32 -0
- package/src/lib/Components/MediaBanner/MediaBanner.mdx +0 -3
- package/src/lib/Components/MediaButton/MediaButton.figma.tsx +60 -0
- package/src/lib/Components/MediaCard/MediaCard.figma.tsx +27 -0
- package/src/lib/Components/MediaCard/MediaCard.mdx +0 -2
- package/src/lib/Components/MediaImage/MediaImage.mdx +0 -1
- package/src/lib/Components/MediaTag/MediaTag.figma.tsx +116 -0
- package/src/lib/Components/MediaTag/MediaTag.mdx +0 -2
- package/src/lib/Components/NavBar/NavBar.figma.tsx +84 -0
- package/src/lib/Components/NavBar/NavBar.mdx +0 -2
- package/src/lib/Components/OptionList/OptionList.mdx +0 -90
- package/src/lib/Components/PageIndicator/PageIndicator.figma.tsx +11 -0
- package/src/lib/Components/PageIndicator/PageIndicator.mdx +0 -2
- package/src/lib/Components/SearchInput/SearchInput.figma.tsx +34 -0
- package/src/lib/Components/SearchInput/SearchInput.mdx +0 -199
- package/src/lib/Components/SectionHeader/SectionHeader.figma.tsx +24 -0
- package/src/lib/Components/SectionHeader/SectionHeader.mdx +79 -0
- package/src/lib/Components/SectionHeader/SectionHeader.stories.tsx +95 -0
- package/src/lib/Components/SectionHeader/SectionHeader.test.tsx +103 -0
- package/src/lib/Components/SectionHeader/SectionHeader.tsx +125 -0
- package/src/lib/Components/SectionHeader/index.ts +6 -0
- package/src/lib/Components/SectionHeader/types.ts +30 -0
- package/src/lib/Components/SegmentedControl/SegmentedControl.figma.tsx +34 -0
- package/src/lib/Components/SegmentedControl/SegmentedControl.mdx +0 -1
- package/src/lib/Components/Skeleton/Skeleton.figma.tsx +17 -0
- package/src/lib/Components/Skeleton/Skeleton.mdx +0 -71
- package/src/lib/Components/Spinner/Spinner.figma.tsx +12 -0
- package/src/lib/Components/Spinner/Spinner.mdx +0 -100
- package/src/lib/Components/Spot/Spot.figma.tsx +50 -0
- package/src/lib/Components/Spot/Spot.mdx +0 -94
- package/src/lib/Components/Stepper/Stepper.figma.tsx +11 -0
- package/src/lib/Components/Stepper/Stepper.mdx +0 -67
- package/src/lib/Components/Subheader/Subheader.figma.tsx +72 -0
- package/src/lib/Components/Subheader/Subheader.mdx +0 -116
- package/src/lib/Components/Switch/Switch.figma.tsx +66 -0
- package/src/lib/Components/Switch/Switch.mdx +0 -39
- package/src/lib/Components/TabBar/TabBar.figma.tsx +70 -0
- package/src/lib/Components/TabBar/TabBar.mdx +0 -5
- package/src/lib/Components/Tag/Tag.figma.tsx +52 -0
- package/src/lib/Components/Tag/Tag.mdx +0 -2
- package/src/lib/Components/TextInput/TextInput.figma.tsx +45 -0
- package/src/lib/Components/TextInput/TextInput.mdx +43 -251
- package/src/lib/Components/TextInput/TextInput.stories.tsx +57 -1
- package/src/lib/Components/TextInput/TextInput.test.tsx +60 -1
- package/src/lib/Components/Tile/Tile.figma.tsx +113 -0
- package/src/lib/Components/Tile/Tile.mdx +0 -53
- package/src/lib/Components/TileButton/TileButton.figma.tsx +40 -0
- package/src/lib/Components/TileButton/TileButton.mdx +10 -41
- package/src/lib/Components/TileButton/TileButton.stories.tsx +28 -4
- package/src/lib/Components/TileButton/TileButton.test.tsx +35 -1
- package/src/lib/Components/TileButton/TileButton.tsx +47 -28
- package/src/lib/Components/TileButton/types.ts +5 -0
- package/src/lib/Components/Tooltip/Tooltip.figma.tsx +30 -0
- package/src/lib/Components/Tooltip/Tooltip.mdx +0 -183
- package/src/lib/Components/Trend/Trend.figma.tsx +28 -0
- package/src/lib/Components/Trend/Trend.mdx +0 -2
- package/src/lib/Components/Utility/Text/Text.mdx +0 -1
- package/src/lib/Components/index.ts +1 -0
- package/src/lib/Symbols/Icons/ChevronAscending.tsx +1 -1
- package/src/lib/Symbols/Icons/ChevronDescending.tsx +1 -1
- package/src/lib/Symbols/Icons/Contact.tsx +45 -0
- package/src/lib/Symbols/Icons/Upload.tsx +45 -0
- package/src/lib/Symbols/index.ts +2 -0
- package/dist/typescript/src/lib/Components/Avatar/Avatar.figma.d.ts +0 -2
- package/dist/typescript/src/lib/Components/Avatar/Avatar.figma.d.ts.map +0 -1
- package/dist/typescript/src/lib/Components/OptionList/OptionList.figma.d.ts +0 -2
- package/dist/typescript/src/lib/Components/OptionList/OptionList.figma.d.ts.map +0 -1
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import { Meta, Canvas, Controls } from '@storybook/addon-docs/blocks';
|
|
1
|
+
import { Meta, Canvas, Controls, Source } from '@storybook/addon-docs/blocks';
|
|
2
2
|
import * as ButtonStories from './Button.stories';
|
|
3
3
|
import { Button } from './Button';
|
|
4
|
-
import { CustomTabs, Tab } from '../../../../.storybook/components';
|
|
5
|
-
import { DoVsDontRow, DoBlockItem, DontBlockItem } from '../../../../.storybook/components/DoVsDont';
|
|
6
|
-
import CommonRulesDoAndDont from '../../../../.storybook/components/DoVsDont/CommonRulesDoAndDont.mdx';
|
|
7
|
-
import { Box } from '../Utility';
|
|
4
|
+
import { CustomTabs, Tab, SetupNote } from '../../../../.storybook/components';
|
|
8
5
|
|
|
9
6
|
<Meta title='Core/Button' of={ButtonStories} />
|
|
10
7
|
|
|
11
8
|
# Button
|
|
12
9
|
|
|
13
10
|
<CustomTabs>
|
|
14
|
-
<Tab label="Overview
|
|
11
|
+
<Tab label="Overview">
|
|
15
12
|
|
|
16
13
|
## Introduction
|
|
17
14
|
|
|
@@ -23,9 +20,11 @@ Buttons are key interactive elements that trigger actions and guide users throug
|
|
|
23
20
|
|
|
24
21
|
<Canvas of={ButtonStories.IconText} />
|
|
25
22
|
|
|
26
|
-
- **Label**:
|
|
23
|
+
- **Label(required)**: must be present and describe the action that occurs when the button is tapped
|
|
27
24
|
- **Icon (optional)**: visually communicate the button's action, and helps draw attention
|
|
28
25
|
|
|
26
|
+
> Note: For **icon-only buttons**, use the [IconButton](https://ldls-react-native.vercel.app/?path=/docs/rnative-iconbutton--docs) component instead. It's specifically designed for icon-only interactions with proper accessibility support.
|
|
27
|
+
|
|
29
28
|
## Properties
|
|
30
29
|
|
|
31
30
|
### Overview
|
|
@@ -53,8 +52,6 @@ Buttons' contents can be of two types:
|
|
|
53
52
|
- text (default)
|
|
54
53
|
- icon-text
|
|
55
54
|
|
|
56
|
-
> Note: For `icon-only` buttons, use the [IconButton](https://ldls-react-native.vercel.app/?path=/docs/rnative-iconbutton--docs) component instead. It's specifically designed for icon-only interactions with proper accessibility support.
|
|
57
|
-
|
|
58
55
|
<Canvas of={ButtonStories.ContentTypesShowcase} />
|
|
59
56
|
|
|
60
57
|
### Size
|
|
@@ -69,11 +66,12 @@ Buttons come in four different sizes:
|
|
|
69
66
|
|
|
70
67
|
<Canvas of={ButtonStories.SizesShowcase} />
|
|
71
68
|
|
|
72
|
-
|
|
73
69
|
### States
|
|
74
70
|
|
|
75
71
|
<Canvas of={ButtonStories.StatesShowcase} />
|
|
76
72
|
|
|
73
|
+
> **Important Note:** The `loading` and `disabled` states are **not coupled**. When `disabled` is set, all event handlers are deactivated. When only `loading` is set (without `disabled`), the button remains pressable. Combine both props if you need to prevent interactions during loading.
|
|
74
|
+
|
|
77
75
|
## Responsive Layout
|
|
78
76
|
|
|
79
77
|
Buttons dynamically adapt their width to the size of their content, while keeping the default paddings:
|
|
@@ -86,84 +84,23 @@ When a label is too long, it's truncated to 2 lines, with a maximum width of the
|
|
|
86
84
|
|
|
87
85
|
> The Button must dynamically resize to its container constraints.
|
|
88
86
|
|
|
89
|
-
##
|
|
90
|
-
|
|
91
|
-
To be implemented:
|
|
92
|
-
|
|
93
|
-
- Color contrast
|
|
94
|
-
- Text zoom
|
|
95
|
-
- Touch target sizing (minimum 44px)
|
|
96
|
-
- Screen reader compatibility
|
|
97
|
-
- Semantic labeling
|
|
98
|
-
|
|
99
|
-
### Interactive States
|
|
87
|
+
## Interactive States
|
|
100
88
|
|
|
101
89
|
<Canvas of={ButtonStories.InteractiveLoadingStates} />
|
|
102
90
|
|
|
103
|
-
</Tab> <Tab label="Implementation
|
|
104
|
-
|
|
105
|
-
## Setup
|
|
91
|
+
</Tab> <Tab label="Implementation">
|
|
106
92
|
|
|
107
|
-
|
|
93
|
+
<SetupNote />
|
|
108
94
|
|
|
109
95
|
### Basic Usage
|
|
110
96
|
|
|
111
|
-
|
|
112
|
-
import { Button } from '@ledgerhq/lumen-ui-rnative';
|
|
113
|
-
|
|
114
|
-
function MyComponent() {
|
|
115
|
-
return (
|
|
116
|
-
<Button size='md' appearance='base' onPress={() => console.log('Pressed!')}>
|
|
117
|
-
Click me
|
|
118
|
-
</Button>
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
### Custom Styling
|
|
124
|
-
|
|
125
|
-
While the component comes with predefined styles, you can extend them using the `lx` prop for token-based styling:
|
|
126
|
-
|
|
127
|
-
```tsx
|
|
128
|
-
<Button
|
|
129
|
-
size='md'
|
|
130
|
-
appearance='base'
|
|
131
|
-
lx={{ marginTop: 's4' }} // Custom margin top using design tokens
|
|
132
|
-
onPress={() => {}}
|
|
133
|
-
>
|
|
134
|
-
Custom Button
|
|
135
|
-
</Button>
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
You can also use the `style` prop for escape-hatch styling when needed:
|
|
139
|
-
|
|
140
|
-
```tsx
|
|
141
|
-
<Button
|
|
142
|
-
size='md'
|
|
143
|
-
appearance='base'
|
|
144
|
-
style={{ marginTop: 16 }} // Raw style values
|
|
145
|
-
onPress={() => {}}
|
|
146
|
-
>
|
|
147
|
-
Custom Button
|
|
148
|
-
</Button>
|
|
149
|
-
```
|
|
97
|
+
<Source of={ButtonStories.Base} />
|
|
150
98
|
|
|
151
99
|
### With Icons
|
|
152
100
|
|
|
153
|
-
The Button
|
|
101
|
+
The Button supports icons with automatic size adjustment based on the button size.
|
|
154
102
|
|
|
155
|
-
|
|
156
|
-
import { Button } from '@ledgerhq/lumen-ui-rnative';
|
|
157
|
-
import { ArrowRight } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
158
|
-
|
|
159
|
-
function MyComponent() {
|
|
160
|
-
return (
|
|
161
|
-
<Button size='md' appearance='base' icon={ArrowRight} onPress={() => {}}>
|
|
162
|
-
Continue
|
|
163
|
-
</Button>
|
|
164
|
-
);
|
|
165
|
-
}
|
|
166
|
-
```
|
|
103
|
+
<Source of={ButtonStories.IconText} />
|
|
167
104
|
|
|
168
105
|
### Full Width
|
|
169
106
|
|
|
@@ -175,173 +112,37 @@ Use the `isFull` prop to make the button take the full width of its container:
|
|
|
175
112
|
</Button>
|
|
176
113
|
```
|
|
177
114
|
|
|
178
|
-
###
|
|
115
|
+
### States
|
|
116
|
+
|
|
117
|
+
Use the `loading` and `disabled` props to reflect state. `loading` shows a spinner; combine it with `disabled` to block interaction while loading.
|
|
118
|
+
|
|
119
|
+
<Source of={ButtonStories.StatesShowcase} />
|
|
179
120
|
|
|
180
|
-
|
|
121
|
+
### Custom Styling
|
|
122
|
+
|
|
123
|
+
Extend layout with the token-based `lx` prop, or the `style` prop as an escape hatch:
|
|
181
124
|
|
|
182
125
|
```tsx
|
|
183
|
-
<Button
|
|
184
|
-
|
|
185
|
-
appearance='base'
|
|
186
|
-
loading={isLoading}
|
|
187
|
-
disabled={isLoading}
|
|
188
|
-
onPress={() => {}}
|
|
189
|
-
>
|
|
190
|
-
{isLoading ? 'Loading...' : 'Submit'}
|
|
126
|
+
<Button size='md' appearance='base' lx={{ marginTop: 's4' }} onPress={() => {}}>
|
|
127
|
+
Custom Button
|
|
191
128
|
</Button>
|
|
192
129
|
```
|
|
193
130
|
|
|
194
131
|
### Pressable Integration
|
|
195
132
|
|
|
196
|
-
The Button
|
|
133
|
+
The Button is built on React Native's `Pressable` and accepts all its props:
|
|
197
134
|
|
|
198
135
|
```tsx
|
|
199
136
|
<Button
|
|
200
|
-
size='md'
|
|
201
137
|
appearance='base'
|
|
202
138
|
onPress={() => console.log('Pressed!')}
|
|
203
139
|
onPressIn={() => console.log('Press started')}
|
|
204
140
|
onPressOut={() => console.log('Press ended')}
|
|
205
|
-
disabled={false}
|
|
206
141
|
>
|
|
207
142
|
Interactive Button
|
|
208
143
|
</Button>
|
|
209
144
|
```
|
|
210
145
|
|
|
211
|
-
## Do's and Don'ts
|
|
212
|
-
|
|
213
|
-
The following guidelines are based on our [Button Component API Design ADR](https://ledgerhq.atlassian.net/wiki/spaces/DLS/pages/6003949581/ADR-001+Button+Component+API+Design). These decisions were made to ensure consistency, maintainability, and proper implementation of our design system principles.
|
|
214
|
-
|
|
215
|
-
<Box lx={{ flexDirection: 'column', gap: 's24' }}>
|
|
216
|
-
<DoVsDontRow>
|
|
217
|
-
<DoBlockItem
|
|
218
|
-
title='Use icon prop'
|
|
219
|
-
description='Pass icon as a component reference for proper sizing and alignment'
|
|
220
|
-
>
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
{/* prettier-ignore */}
|
|
224
|
-
```tsx
|
|
225
|
-
import { Plus } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
226
|
-
|
|
227
|
-
<Button icon={Plus} onPress={() => {}}>
|
|
228
|
-
Add Item
|
|
229
|
-
</Button>
|
|
230
|
-
```
|
|
231
|
-
|
|
232
|
-
</DoBlockItem>
|
|
233
|
-
<DontBlockItem
|
|
234
|
-
title="Don't include icon in children"
|
|
235
|
-
description='Avoid placing icons inside children as this breaks automatic sizing'
|
|
236
|
-
>
|
|
237
|
-
|
|
238
|
-
{/* prettier-ignore */}
|
|
239
|
-
```tsx
|
|
240
|
-
import { Plus } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
241
|
-
|
|
242
|
-
<Button onPress={() => {}}>
|
|
243
|
-
<Plus /> Add Item
|
|
244
|
-
</Button>
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
</DontBlockItem>
|
|
248
|
-
|
|
249
|
-
</DoVsDontRow>
|
|
250
|
-
|
|
251
|
-
<DoVsDontRow>
|
|
252
|
-
<DoBlockItem
|
|
253
|
-
title='Let Button handle icon sizing'
|
|
254
|
-
description='Icon size adjusts automatically based on button size'
|
|
255
|
-
>
|
|
256
|
-
|
|
257
|
-
{/* prettier-ignore */}
|
|
258
|
-
```tsx
|
|
259
|
-
import { Settings } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
260
|
-
|
|
261
|
-
<Button icon={Settings} size='sm' onPress={() => {}}>
|
|
262
|
-
Settings
|
|
263
|
-
</Button>
|
|
264
|
-
```
|
|
265
|
-
|
|
266
|
-
</DoBlockItem>
|
|
267
|
-
<DontBlockItem
|
|
268
|
-
title="Don't modify icon size directly"
|
|
269
|
-
description='Avoid overriding icon dimensions in children'
|
|
270
|
-
>
|
|
271
|
-
|
|
272
|
-
{/* prettier-ignore */}
|
|
273
|
-
```tsx
|
|
274
|
-
import { Settings } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
275
|
-
|
|
276
|
-
<Button size='sm' onPress={() => {}}>
|
|
277
|
-
<Settings size={24} /> Settings
|
|
278
|
-
</Button>
|
|
279
|
-
```
|
|
280
|
-
|
|
281
|
-
</DontBlockItem>
|
|
282
|
-
|
|
283
|
-
</DoVsDontRow>
|
|
284
|
-
|
|
285
|
-
<DoVsDontRow>
|
|
286
|
-
<DoBlockItem
|
|
287
|
-
title='Use isFull for width'
|
|
288
|
-
description='Use the isFull prop for full-width buttons'
|
|
289
|
-
>
|
|
290
|
-
|
|
291
|
-
{/* prettier-ignore */}
|
|
292
|
-
```tsx
|
|
293
|
-
<Button isFull onPress={() => {}}>
|
|
294
|
-
Full Width
|
|
295
|
-
</Button>
|
|
296
|
-
```
|
|
297
|
-
|
|
298
|
-
</DoBlockItem>
|
|
299
|
-
<DontBlockItem
|
|
300
|
-
title="Don't use style for full width"
|
|
301
|
-
description='Avoid using style to control button width'
|
|
302
|
-
>
|
|
303
|
-
|
|
304
|
-
{/* prettier-ignore */}
|
|
305
|
-
```tsx
|
|
306
|
-
<Button style={{ width: '100%' }} onPress={() => {}}>
|
|
307
|
-
Full Width
|
|
308
|
-
</Button>
|
|
309
|
-
```
|
|
310
|
-
|
|
311
|
-
</DontBlockItem>
|
|
312
|
-
|
|
313
|
-
</DoVsDontRow>
|
|
314
|
-
|
|
315
|
-
<DoVsDontRow>
|
|
316
|
-
<DoBlockItem
|
|
317
|
-
title='Provide proper onPress handlers'
|
|
318
|
-
description='Always provide an onPress handler for interactive buttons'
|
|
319
|
-
>
|
|
320
|
-
|
|
321
|
-
{/* prettier-ignore */}
|
|
322
|
-
```tsx
|
|
323
|
-
<Button onPress={() => navigation.navigate('Details')}>
|
|
324
|
-
View Details
|
|
325
|
-
</Button>
|
|
326
|
-
```
|
|
327
|
-
|
|
328
|
-
</DoBlockItem>
|
|
329
|
-
<DontBlockItem
|
|
330
|
-
title="Don't omit onPress"
|
|
331
|
-
description='Avoid creating buttons without onPress handlers'
|
|
332
|
-
>
|
|
333
|
-
|
|
334
|
-
{/* prettier-ignore */}
|
|
335
|
-
```tsx
|
|
336
|
-
<Button>
|
|
337
|
-
Clickable Looking Button
|
|
338
|
-
</Button>
|
|
339
|
-
```
|
|
340
|
-
</DontBlockItem>
|
|
341
|
-
</DoVsDontRow>
|
|
342
|
-
<CommonRulesDoAndDont />
|
|
343
|
-
</Box>
|
|
344
|
-
|
|
345
146
|
## Platform Considerations
|
|
346
147
|
|
|
347
148
|
### iOS Specific
|
|
@@ -14,7 +14,7 @@ const meta = {
|
|
|
14
14
|
source: {
|
|
15
15
|
language: 'tsx',
|
|
16
16
|
format: true,
|
|
17
|
-
type: '
|
|
17
|
+
type: 'dynamic'
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
},
|
|
@@ -42,18 +42,7 @@ export const Base = {
|
|
|
42
42
|
},
|
|
43
43
|
render: args => /*#__PURE__*/_jsx(Button, {
|
|
44
44
|
...args
|
|
45
|
-
})
|
|
46
|
-
parameters: {
|
|
47
|
-
docs: {
|
|
48
|
-
source: {
|
|
49
|
-
code: `
|
|
50
|
-
<Button appearance="base">
|
|
51
|
-
Base Button
|
|
52
|
-
</Button>
|
|
53
|
-
`
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
45
|
+
})
|
|
57
46
|
};
|
|
58
47
|
export const IconText = {
|
|
59
48
|
args: {
|
|
@@ -64,14 +53,7 @@ export const IconText = {
|
|
|
64
53
|
parameters: {
|
|
65
54
|
docs: {
|
|
66
55
|
source: {
|
|
67
|
-
code:
|
|
68
|
-
<Button
|
|
69
|
-
appearance="base"
|
|
70
|
-
icon={Plus}
|
|
71
|
-
>
|
|
72
|
-
Add Item
|
|
73
|
-
</Button>
|
|
74
|
-
`
|
|
56
|
+
code: `<Button appearance="base" icon={Plus}>Add Item</Button>`
|
|
75
57
|
}
|
|
76
58
|
}
|
|
77
59
|
}
|
|
@@ -81,20 +63,6 @@ export const Loading = {
|
|
|
81
63
|
appearance: 'base',
|
|
82
64
|
children: 'Loading...',
|
|
83
65
|
loading: true
|
|
84
|
-
},
|
|
85
|
-
parameters: {
|
|
86
|
-
docs: {
|
|
87
|
-
source: {
|
|
88
|
-
code: `
|
|
89
|
-
<Button
|
|
90
|
-
appearance="base"
|
|
91
|
-
loading
|
|
92
|
-
>
|
|
93
|
-
Loading...
|
|
94
|
-
</Button>
|
|
95
|
-
`
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
66
|
}
|
|
99
67
|
};
|
|
100
68
|
export const AppearanceShowcase = {
|
|
@@ -196,7 +164,7 @@ export const StatesShowcase = {
|
|
|
196
164
|
appearance: "base",
|
|
197
165
|
loading: true,
|
|
198
166
|
disabled: true,
|
|
199
|
-
children: "Loading"
|
|
167
|
+
children: "Disabled Loading"
|
|
200
168
|
})]
|
|
201
169
|
})
|
|
202
170
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useState","Plus","Settings","Box","Text","Button","jsx","_jsx","jsxs","_jsxs","meta","component","id","title","parameters","docs","source","language","format","type","argTypes","appearance","control","icon","description","options","mapping","None","undefined","Base","args","children","render","
|
|
1
|
+
{"version":3,"names":["useState","Plus","Settings","Box","Text","Button","jsx","_jsx","jsxs","_jsxs","meta","component","id","title","parameters","docs","source","language","format","type","argTypes","appearance","control","icon","description","options","mapping","None","undefined","Base","args","children","render","IconText","code","Loading","loading","AppearanceShowcase","appearances","name","lx","flexDirection","gap","padding","map","ContentTypesShowcase","alignItems","SizesShowcase","size","StatesShowcase","disabled","ResponsiveLayout","LabelTruncate","typography","color","width","InteractiveLoadingStates","states","setStates","text","withIcon","iconOnly","handleClick","key","prev","Promise","resolve","setTimeout","on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AEqB,MAAM,CAACG,QAAQ,KAAK,SAAU;QACvCQ,OAAO,EAAEA,CAAA,KAAMN,WAAW,CAAC,UAAU,CAAE;QACvCvC,IAAI,EAAErB,QAAS;QAAA6B,QAAA,EAEd0B,MAAM,CAACG,QAAQ,KAAK,KAAK,GAAG,iBAAiB,GAAG;MAAW,CACtD,CAAC;IAAA,CACN,CAAC;EAEV;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import figma from '@figma/code-connect';
|
|
4
|
+
import { Box } from "../Utility/index.js";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
figma.connect('https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7?node-id=6495-22228', {
|
|
7
|
+
imports: ["import { Box, Button } from '@ledgerhq/lumen-ui-rnative'"],
|
|
8
|
+
props: {
|
|
9
|
+
buttons: figma.children('*')
|
|
10
|
+
},
|
|
11
|
+
example: props => /*#__PURE__*/_jsx(Box, {
|
|
12
|
+
lx: {
|
|
13
|
+
flexDirection: 'row',
|
|
14
|
+
gap: 's8'
|
|
15
|
+
},
|
|
16
|
+
children: props.buttons
|
|
17
|
+
})
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=ButtonGroup.figma.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["figma","Box","jsx","_jsx","connect","imports","props","buttons","children","example","lx","flexDirection","gap"],"sourceRoot":"../../../../../src","sources":["lib/Components/Button/ButtonGroup.figma.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,qBAAqB;AACvC,SAASC,GAAG,QAAQ,qBAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEjCH,KAAK,CAACI,OAAO,CACX,wEAAwE,EACxE;EACEC,OAAO,EAAE,CAAC,0DAA0D,CAAC;EACrEC,KAAK,EAAE;IACLC,OAAO,EAAEP,KAAK,CAACQ,QAAQ,CAAC,GAAG;EAC7B,CAAC;EACDC,OAAO,EAAGH,KAAK,iBACbH,IAAA,CAACF,GAAG;IAACS,EAAE,EAAE;MAAEC,aAAa,EAAE,KAAK;MAAEC,GAAG,EAAE;IAAK,CAAE;IAAAJ,QAAA,EAAEF,KAAK,CAACC;EAAO,CAAM;AAEtE,CACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import figma from '@figma/code-connect';
|
|
4
|
+
import { CryptoIcon } from '@ledgerhq/crypto-icons';
|
|
5
|
+
import { ChevronRight, Wallet } from "../../Symbols/index.js";
|
|
6
|
+
import { Button } from "../Button/index.js";
|
|
7
|
+
import { Spot } from "../Spot/index.js";
|
|
8
|
+
import { Tag } from "../Tag/index.js";
|
|
9
|
+
import { Card, CardContent, CardContentDescription, CardContentTitle, CardHeader, CardLeading, CardTrailing } from "./Card.js";
|
|
10
|
+
|
|
11
|
+
// —— Card root ——
|
|
12
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
figma.connect(Card, 'https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7?node-id=11025-33000', {
|
|
14
|
+
imports: ["import { Card, CardFooter } from '@ledgerhq/lumen-ui-rnative'"],
|
|
15
|
+
props: {
|
|
16
|
+
outlined: figma.boolean('is-selected', {
|
|
17
|
+
true: true,
|
|
18
|
+
false: undefined
|
|
19
|
+
}),
|
|
20
|
+
disabled: figma.enum('state', {
|
|
21
|
+
disabled: true
|
|
22
|
+
}),
|
|
23
|
+
header: figma.children('.card-header'),
|
|
24
|
+
footer: figma.boolean('show-footer', {
|
|
25
|
+
true: figma.children('.card-footer'),
|
|
26
|
+
false: undefined
|
|
27
|
+
})
|
|
28
|
+
},
|
|
29
|
+
example: props => /*#__PURE__*/_jsxs(Card, {
|
|
30
|
+
outlined: props.outlined,
|
|
31
|
+
disabled: props.disabled,
|
|
32
|
+
children: [props.header, props.footer]
|
|
33
|
+
})
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
// —— CardHeader ——
|
|
37
|
+
figma.connect(CardHeader, 'https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7?node-id=10541-743', {
|
|
38
|
+
imports: ["import { CardHeader, CardLeading, CardContent, CardContentTitle, CardContentDescription, CardTrailing } from '@ledgerhq/lumen-ui-rnative'", "import { Spot, Button, Tag } from '@ledgerhq/lumen-ui-rnative'", "import { CryptoIcon } from '@ledgerhq/crypto-icons'"],
|
|
39
|
+
props: {
|
|
40
|
+
title: figma.string('title'),
|
|
41
|
+
description: figma.string('description'),
|
|
42
|
+
leading: figma.enum('leading', {
|
|
43
|
+
spot: /*#__PURE__*/_jsx(Spot, {
|
|
44
|
+
appearance: "icon",
|
|
45
|
+
icon: Wallet
|
|
46
|
+
}),
|
|
47
|
+
coin: /*#__PURE__*/_jsx(CryptoIcon, {
|
|
48
|
+
ledgerId: "bitcoin",
|
|
49
|
+
ticker: "BTC",
|
|
50
|
+
size: 48
|
|
51
|
+
}),
|
|
52
|
+
provider: /*#__PURE__*/_jsx(CryptoIcon, {
|
|
53
|
+
ledgerId: "ethereum",
|
|
54
|
+
ticker: "ETH",
|
|
55
|
+
size: 48,
|
|
56
|
+
shape: "square"
|
|
57
|
+
}),
|
|
58
|
+
'interface-icon': /*#__PURE__*/_jsx(Wallet, {
|
|
59
|
+
size: 20
|
|
60
|
+
}),
|
|
61
|
+
none: undefined
|
|
62
|
+
}),
|
|
63
|
+
trailing: figma.enum('trailing', {
|
|
64
|
+
value: figma.boolean('show-subvalue', {
|
|
65
|
+
true: /*#__PURE__*/_jsxs(CardContent, {
|
|
66
|
+
children: [/*#__PURE__*/_jsx(CardContentTitle, {
|
|
67
|
+
children: "$43,210.00"
|
|
68
|
+
}), /*#__PURE__*/_jsx(CardContentDescription, {
|
|
69
|
+
children: "0.5 BTC"
|
|
70
|
+
})]
|
|
71
|
+
}),
|
|
72
|
+
false: /*#__PURE__*/_jsx(CardContent, {
|
|
73
|
+
children: /*#__PURE__*/_jsx(CardContentTitle, {
|
|
74
|
+
children: "$43,210.00"
|
|
75
|
+
})
|
|
76
|
+
})
|
|
77
|
+
}),
|
|
78
|
+
button: /*#__PURE__*/_jsx(Button, {
|
|
79
|
+
appearance: "base",
|
|
80
|
+
size: "sm",
|
|
81
|
+
onPress: () => {},
|
|
82
|
+
children: "Action"
|
|
83
|
+
}),
|
|
84
|
+
tag: /*#__PURE__*/_jsx(Tag, {
|
|
85
|
+
label: "Label",
|
|
86
|
+
appearance: "gray"
|
|
87
|
+
}),
|
|
88
|
+
'interface-icon': /*#__PURE__*/_jsx(Wallet, {
|
|
89
|
+
size: 20
|
|
90
|
+
}),
|
|
91
|
+
none: undefined
|
|
92
|
+
})
|
|
93
|
+
},
|
|
94
|
+
example: props => /*#__PURE__*/_jsxs(CardHeader, {
|
|
95
|
+
children: [/*#__PURE__*/_jsxs(CardLeading, {
|
|
96
|
+
children: [props.leading, /*#__PURE__*/_jsxs(CardContent, {
|
|
97
|
+
children: [/*#__PURE__*/_jsx(CardContentTitle, {
|
|
98
|
+
children: props.title
|
|
99
|
+
}), /*#__PURE__*/_jsx(CardContentDescription, {
|
|
100
|
+
children: props.description
|
|
101
|
+
})]
|
|
102
|
+
})]
|
|
103
|
+
}), /*#__PURE__*/_jsx(CardTrailing, {
|
|
104
|
+
children: props.trailing
|
|
105
|
+
})]
|
|
106
|
+
})
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
// —— Card (expandable/info variant) ——
|
|
110
|
+
figma.connect('https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7?node-id=14481-33979', {
|
|
111
|
+
imports: ["import { Card, CardHeader, CardLeading, CardContent, CardContentTitle, CardContentDescription, CardTrailing } from '@ledgerhq/lumen-ui-rnative'", "import { ChevronRight } from '@ledgerhq/lumen-ui-rnative/symbols'"],
|
|
112
|
+
props: {
|
|
113
|
+
title: figma.string('title'),
|
|
114
|
+
description: figma.string('value'),
|
|
115
|
+
type: figma.enum('type', {
|
|
116
|
+
display: 'info',
|
|
117
|
+
interactive: 'interactive'
|
|
118
|
+
}),
|
|
119
|
+
disabled: figma.enum('state', {
|
|
120
|
+
disabled: true
|
|
121
|
+
})
|
|
122
|
+
},
|
|
123
|
+
example: props => /*#__PURE__*/_jsx(Card, {
|
|
124
|
+
type: props.type,
|
|
125
|
+
disabled: props.disabled,
|
|
126
|
+
children: /*#__PURE__*/_jsxs(CardHeader, {
|
|
127
|
+
children: [/*#__PURE__*/_jsx(CardLeading, {
|
|
128
|
+
children: /*#__PURE__*/_jsxs(CardContent, {
|
|
129
|
+
children: [/*#__PURE__*/_jsx(CardContentDescription, {
|
|
130
|
+
children: props.description
|
|
131
|
+
}), /*#__PURE__*/_jsx(CardContentTitle, {
|
|
132
|
+
children: props.title
|
|
133
|
+
})]
|
|
134
|
+
})
|
|
135
|
+
}), /*#__PURE__*/_jsx(CardTrailing, {
|
|
136
|
+
children: /*#__PURE__*/_jsx(ChevronRight, {
|
|
137
|
+
size: 20
|
|
138
|
+
})
|
|
139
|
+
})]
|
|
140
|
+
})
|
|
141
|
+
})
|
|
142
|
+
});
|
|
143
|
+
//# sourceMappingURL=Card.figma.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["figma","CryptoIcon","ChevronRight","Wallet","Button","Spot","Tag","Card","CardContent","CardContentDescription","CardContentTitle","CardHeader","CardLeading","CardTrailing","jsxs","_jsxs","jsx","_jsx","connect","imports","props","outlined","boolean","true","false","undefined","disabled","enum","header","children","footer","example","title","string","description","leading","spot","appearance","icon","coin","ledgerId","ticker","size","provider","shape","none","trailing","value","button","onPress","tag","label","type","display","interactive"],"sourceRoot":"../../../../../src","sources":["lib/Components/Card/Card.figma.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,qBAAqB;AACvC,SAASC,UAAU,QAAQ,wBAAwB;AACnD,SAASC,YAAY,EAAEC,MAAM,QAAQ,wBAAe;AACpD,SAAS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