@ledgerhq/lumen-ui-rnative 0.1.68 → 0.1.70
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/lib/Components/animations/Pulse/Pulse.stories.js +7 -0
- package/dist/module/lib/Components/animations/Pulse/Pulse.stories.js.map +1 -1
- package/dist/module/lib/Components/animations/Spin/Spin.stories.js +7 -0
- package/dist/module/lib/Components/animations/Spin/Spin.stories.js.map +1 -1
- package/dist/module/lib/Components/core/AddressInput/AddressInput.stories.js +129 -136
- package/dist/module/lib/Components/core/AddressInput/AddressInput.stories.js.map +1 -1
- package/dist/module/lib/Components/core/AmountDisplay/AmountDisplay.stories.js +12 -6
- package/dist/module/lib/Components/core/AmountDisplay/AmountDisplay.stories.js.map +1 -1
- package/dist/module/lib/Components/core/AmountInput/AmountInput.stories.js +154 -176
- package/dist/module/lib/Components/core/AmountInput/AmountInput.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Avatar/Avatar.stories.js +54 -47
- package/dist/module/lib/Components/core/Avatar/Avatar.stories.js.map +1 -1
- package/dist/module/lib/Components/core/AvatarButton/AvatarButton.stories.js +2 -9
- package/dist/module/lib/Components/core/AvatarButton/AvatarButton.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Banner/Banner.stories.js +48 -87
- package/dist/module/lib/Components/core/Banner/Banner.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Button/Button.figma.js +2 -1
- package/dist/module/lib/Components/core/Button/Button.figma.js.map +1 -1
- package/dist/module/lib/Components/core/Button/Button.mdx +2 -1
- package/dist/module/lib/Components/core/Button/Button.stories.js +34 -10
- package/dist/module/lib/Components/core/Button/Button.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Card/Card.mdx +6 -0
- package/dist/module/lib/Components/core/Card/Card.stories.js +63 -24
- package/dist/module/lib/Components/core/Card/Card.stories.js.map +1 -1
- package/dist/module/lib/Components/core/CardButton/CardButton.stories.js +27 -85
- package/dist/module/lib/Components/core/CardButton/CardButton.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Checkbox/Checkbox.stories.js +1 -1
- package/dist/module/lib/Components/core/ContentBanner/ContentBanner.stories.js +8 -18
- package/dist/module/lib/Components/core/ContentBanner/ContentBanner.stories.js.map +1 -1
- package/dist/module/lib/Components/core/DescriptionItem/DescriptionItem.stories.js +28 -0
- package/dist/module/lib/Components/core/DescriptionItem/DescriptionItem.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Divider/Divider.stories.js +7 -0
- package/dist/module/lib/Components/core/Divider/Divider.stories.js.map +1 -1
- package/dist/module/lib/Components/core/DotCount/DotCount.stories.js +28 -0
- package/dist/module/lib/Components/core/DotCount/DotCount.stories.js.map +1 -1
- package/dist/module/lib/Components/core/DotIcon/DotIcon.stories.js +12 -0
- package/dist/module/lib/Components/core/DotIcon/DotIcon.stories.js.map +1 -1
- package/dist/module/lib/Components/core/DotIndicator/DotIndicator.stories.js +21 -0
- package/dist/module/lib/Components/core/DotIndicator/DotIndicator.stories.js.map +1 -1
- package/dist/module/lib/Components/core/DotSymbol/DotSymbol.stories.js +21 -0
- package/dist/module/lib/Components/core/DotSymbol/DotSymbol.stories.js.map +1 -1
- package/dist/module/lib/Components/core/IconButton/IconButton.stories.js +17 -0
- package/dist/module/lib/Components/core/IconButton/IconButton.stories.js.map +1 -1
- package/dist/module/lib/Components/core/InteractiveIcon/InteractiveIcon.stories.js +15 -21
- package/dist/module/lib/Components/core/InteractiveIcon/InteractiveIcon.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Link/Link.js +1 -1
- package/dist/module/lib/Components/core/Link/Link.mdx +32 -5
- package/dist/module/lib/Components/core/Link/Link.stories.js +35 -139
- package/dist/module/lib/Components/core/Link/Link.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Link/Link.test.js +1 -1
- package/dist/module/lib/Components/core/ListItem/ListItem.stories.js +2 -41
- package/dist/module/lib/Components/core/ListItem/ListItem.stories.js.map +1 -1
- package/dist/module/lib/Components/core/MediaBanner/MediaBanner.stories.js +19 -12
- package/dist/module/lib/Components/core/MediaBanner/MediaBanner.stories.js.map +1 -1
- package/dist/module/lib/Components/core/MediaButton/MediaButton.stories.js +2 -13
- package/dist/module/lib/Components/core/MediaButton/MediaButton.stories.js.map +1 -1
- package/dist/module/lib/Components/core/MediaCard/MediaCard.stories.js +24 -50
- package/dist/module/lib/Components/core/MediaCard/MediaCard.stories.js.map +1 -1
- package/dist/module/lib/Components/core/MediaImage/MediaImage.js +1 -1
- package/dist/module/lib/Components/core/MediaImage/MediaImage.js.map +1 -1
- package/dist/module/lib/Components/core/MediaImage/MediaImage.stories.js +1 -1
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.figma.js +215 -0
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.figma.js.map +1 -0
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.js +221 -0
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.js.map +1 -0
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.mdx +96 -0
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.stories.js +258 -0
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.stories.js.map +1 -0
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.test.js +246 -0
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.test.js.map +1 -0
- package/dist/module/lib/Components/core/MediaImageGroup/index.js +5 -0
- package/dist/module/lib/Components/core/MediaImageGroup/index.js.map +1 -0
- package/dist/module/lib/Components/core/MediaImageGroup/types.js +4 -0
- package/dist/module/lib/Components/core/MediaImageGroup/types.js.map +1 -0
- package/dist/module/lib/Components/core/MediaTag/MediaTag.stories.js +9 -0
- package/dist/module/lib/Components/core/MediaTag/MediaTag.stories.js.map +1 -1
- package/dist/module/lib/Components/core/MenuList/MenuList.mdx +2 -2
- package/dist/module/lib/Components/core/MenuList/MenuList.stories.js +17 -1
- package/dist/module/lib/Components/core/MenuList/MenuList.stories.js.map +1 -1
- package/dist/module/lib/Components/core/PageIndicator/PageIndicator.figma.js +1 -1
- package/dist/module/lib/Components/core/PageIndicator/PageIndicator.figma.js.map +1 -1
- package/dist/module/lib/Components/core/PageIndicator/PageIndicator.stories.js +56 -50
- package/dist/module/lib/Components/core/PageIndicator/PageIndicator.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Pagination/Pagination.figma.js +22 -0
- package/dist/module/lib/Components/core/Pagination/Pagination.figma.js.map +1 -0
- package/dist/module/lib/Components/core/Pagination/Pagination.js +182 -0
- package/dist/module/lib/Components/core/Pagination/Pagination.js.map +1 -0
- package/dist/module/lib/Components/core/Pagination/Pagination.mdx +108 -0
- package/dist/module/lib/Components/core/Pagination/Pagination.stories.js +121 -0
- package/dist/module/lib/Components/core/Pagination/Pagination.stories.js.map +1 -0
- package/dist/module/lib/Components/core/Pagination/Pagination.test.js +338 -0
- package/dist/module/lib/Components/core/Pagination/Pagination.test.js.map +1 -0
- package/dist/module/lib/Components/core/Pagination/index.js +4 -0
- package/dist/module/lib/Components/core/Pagination/index.js.map +1 -0
- package/dist/module/lib/Components/core/Pagination/types.js +4 -0
- package/dist/module/lib/Components/core/Pagination/types.js.map +1 -0
- package/dist/module/lib/Components/core/SearchInput/SearchInput.stories.js +75 -67
- package/dist/module/lib/Components/core/SearchInput/SearchInput.stories.js.map +1 -1
- package/dist/module/lib/Components/core/SegmentedControl/SegmentedControl.stories.js +12 -0
- package/dist/module/lib/Components/core/SegmentedControl/SegmentedControl.stories.js.map +1 -1
- package/dist/module/lib/Components/core/SelectList/SelectList.mdx +3 -1
- package/dist/module/lib/Components/core/SelectList/SelectList.stories.js +3 -3
- package/dist/module/lib/Components/core/SelectList/SelectList.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Skeleton/Skeleton.stories.js +7 -0
- package/dist/module/lib/Components/core/Skeleton/Skeleton.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Spinner/Spinner.stories.js +7 -0
- package/dist/module/lib/Components/core/Spinner/Spinner.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Spot/Spot.stories.js +20 -1
- package/dist/module/lib/Components/core/Spot/Spot.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Stepper/Stepper.stories.js +7 -0
- package/dist/module/lib/Components/core/Stepper/Stepper.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Subheader/Subheader.stories.js +11 -1
- package/dist/module/lib/Components/core/Subheader/Subheader.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Switch/Switch.stories.js +21 -1
- package/dist/module/lib/Components/core/Switch/Switch.stories.js.map +1 -1
- package/dist/module/lib/Components/core/TabBar/TabBar.stories.js +17 -5
- package/dist/module/lib/Components/core/TabBar/TabBar.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Tag/Tag.stories.js +28 -0
- package/dist/module/lib/Components/core/Tag/Tag.stories.js.map +1 -1
- package/dist/module/lib/Components/core/TextInput/TextInput.stories.js +159 -196
- package/dist/module/lib/Components/core/TextInput/TextInput.stories.js.map +1 -1
- package/dist/module/lib/Components/core/TextInput/TextInput.test.js +2 -2
- package/dist/module/lib/Components/core/TextInput/TextInput.test.js.map +1 -1
- package/dist/module/lib/Components/core/Tile/Tile.stories.js +2 -35
- package/dist/module/lib/Components/core/Tile/Tile.stories.js.map +1 -1
- package/dist/module/lib/Components/core/TileButton/TileButton.stories.js +18 -8
- package/dist/module/lib/Components/core/TileButton/TileButton.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Timeline/Timeline.js +81 -67
- package/dist/module/lib/Components/core/Timeline/Timeline.js.map +1 -1
- package/dist/module/lib/Components/core/Timeline/Timeline.stories.js +46 -16
- package/dist/module/lib/Components/core/Timeline/Timeline.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Timeline/Timeline.test.js +8 -5
- package/dist/module/lib/Components/core/Timeline/Timeline.test.js.map +1 -1
- package/dist/module/lib/Components/core/Toast/Toast.mdx +1 -1
- package/dist/module/lib/Components/core/Toast/Toast.stories.js +61 -58
- package/dist/module/lib/Components/core/Toast/Toast.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Toast/Toaster.test.js +1 -1
- package/dist/module/lib/Components/core/Toast/Toaster.test.js.map +1 -1
- package/dist/module/lib/Components/core/Tooltip/Tooltip.stories.js +31 -2
- package/dist/module/lib/Components/core/Tooltip/Tooltip.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Trend/Trend.stories.js +9 -0
- package/dist/module/lib/Components/core/Trend/Trend.stories.js.map +1 -1
- package/dist/module/lib/Components/core/index.js +2 -0
- package/dist/module/lib/Components/core/index.js.map +1 -1
- package/dist/module/lib/Components/internal/BaseButton/BaseButton.js +5 -2
- package/dist/module/lib/Components/internal/BaseButton/BaseButton.js.map +1 -1
- package/dist/module/lib/Components/internal/BaseButton/BaseButton.test.js +1 -1
- package/dist/module/lib/Components/internal/BaseButton/BaseButton.test.js.map +1 -1
- package/dist/module/lib/Components/primitives/Box/Box.stories.js +1 -18
- package/dist/module/lib/Components/primitives/Box/Box.stories.js.map +1 -1
- package/dist/module/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.stories.js +36 -0
- package/dist/module/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.stories.js.map +1 -1
- package/dist/module/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.stories.js +1 -1
- package/dist/module/lib/Components/primitives/Pressable/Pressable.stories.js +1 -19
- package/dist/module/lib/Components/primitives/Pressable/Pressable.stories.js.map +1 -1
- package/dist/module/lib/Components/primitives/Text/Text.stories.js +1 -12
- package/dist/module/lib/Components/primitives/Text/Text.stories.js.map +1 -1
- package/dist/module/lib/Components/symbols/Icon/Icon.stories.js +128 -85
- package/dist/module/lib/Components/symbols/Icon/Icon.stories.js.map +1 -1
- package/dist/module/lib/Components/symbols/icons/Ar.js +2 -2
- package/dist/module/lib/Components/symbols/icons/Ar.js.map +1 -1
- package/dist/module/lib/Components/symbols/icons/Range.js +1 -1
- package/dist/module/lib/Components/symbols/icons/Share.js +1 -1
- package/dist/module/lib/Components/symbols/icons/{Charon.js → ShoppingInvoiceList.js} +8 -8
- package/dist/module/lib/Components/symbols/icons/ShoppingInvoiceList.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/WalletInput.js +1 -1
- package/dist/module/lib/Components/symbols/icons/WalletInput.js.map +1 -1
- package/dist/module/lib/Components/symbols/index.js +1 -4
- package/dist/module/lib/Components/symbols/index.js.map +1 -1
- package/dist/module/lib/Components/visualization/DonutChart/DonutChart.test.js +1 -1
- package/dist/module/lib/Components/visualization/DonutChart/DonutChart.test.js.map +1 -1
- package/dist/module/lib/Components/visualization/Line/utils.js +1 -1
- package/dist/module/lib/Components/visualization/LineChart/LineChart.stories.js +69 -0
- package/dist/module/lib/Components/visualization/LineChart/LineChart.stories.js.map +1 -1
- package/dist/module/lib/Components/visualization/LineChart/LineChart.test.js +1 -1
- package/dist/module/lib/Components/visualization/LineChart/LineChart.test.js.map +1 -1
- package/dist/module/lib/Components/visualization/Point/Point.stories.js +12 -0
- package/dist/module/lib/Components/visualization/Point/Point.stories.js.map +1 -1
- package/dist/module/lib/Components/visualization/Point/Point.test.js +1 -1
- package/dist/module/lib/Components/visualization/Point/usePointGeometry.js +1 -1
- package/dist/module/lib/Components/visualization/Point/utils.js +1 -1
- package/dist/module/lib/Components/visualization/Point/utils.test.js +2 -2
- package/dist/module/lib/Components/visualization/ReferenceLine/ReferenceLine.stories.js +23 -0
- package/dist/module/lib/Components/visualization/ReferenceLine/ReferenceLine.stories.js.map +1 -1
- package/dist/module/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/utils.js +3 -3
- package/dist/module/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/utils.js.map +1 -1
- package/dist/module/lib/Components/visualization/Scrubber/Scrubber.stories.js +35 -0
- package/dist/module/lib/Components/visualization/Scrubber/Scrubber.stories.js.map +1 -1
- package/dist/module/translations/locales/de.json +7 -0
- package/dist/module/translations/locales/en.json +7 -0
- package/dist/module/translations/locales/es.json +7 -0
- package/dist/module/translations/locales/fr.json +7 -0
- package/dist/module/translations/locales/ja.json +7 -0
- package/dist/module/translations/locales/ko.json +7 -0
- package/dist/module/translations/locales/pt.json +7 -0
- package/dist/module/translations/locales/ru.json +7 -0
- package/dist/module/translations/locales/th.json +7 -0
- package/dist/module/translations/locales/tr.json +7 -0
- package/dist/module/translations/locales/zh.json +7 -0
- package/dist/typescript/src/lib/Components/core/MediaImage/MediaImage.d.ts +4 -0
- package/dist/typescript/src/lib/Components/core/MediaImage/MediaImage.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/MediaImageGroup/MediaImageGroup.d.ts +33 -0
- package/dist/typescript/src/lib/Components/core/MediaImageGroup/MediaImageGroup.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/MediaImageGroup/index.d.ts +3 -0
- package/dist/typescript/src/lib/Components/core/MediaImageGroup/index.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/MediaImageGroup/types.d.ts +66 -0
- package/dist/typescript/src/lib/Components/core/MediaImageGroup/types.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/Pagination/Pagination.d.ts +15 -0
- package/dist/typescript/src/lib/Components/core/Pagination/Pagination.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/Pagination/index.d.ts +3 -0
- package/dist/typescript/src/lib/Components/core/Pagination/index.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/Pagination/types.d.ts +29 -0
- package/dist/typescript/src/lib/Components/core/Pagination/types.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/Timeline/Timeline.d.ts +2 -2
- package/dist/typescript/src/lib/Components/core/Timeline/Timeline.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/index.d.ts +2 -0
- package/dist/typescript/src/lib/Components/core/index.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/internal/BaseButton/BaseButton.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/internal/BaseButton/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/internal/BaseButton/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/internal/BaseInput/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/symbols/icons/{Charon.d.ts → ShoppingInvoiceList.d.ts} +7 -7
- package/dist/typescript/src/lib/Components/symbols/icons/ShoppingInvoiceList.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/index.d.ts +1 -4
- package/dist/typescript/src/lib/Components/symbols/index.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/Axis/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/CartesianChart/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/Line/utils.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/LineChart/types.d.ts +3 -3
- package/dist/typescript/src/lib/Components/visualization/Point/types.d.ts +3 -3
- package/dist/typescript/src/lib/Components/visualization/Point/usePointGeometry.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/Point/utils.d.ts +1 -1
- package/dist/typescript/src/translations/translations.d.ts +84 -0
- package/dist/typescript/src/translations/translations.d.ts.map +1 -1
- package/package.json +9 -9
- package/src/lib/Components/animations/Pulse/Pulse.stories.tsx +1 -0
- package/src/lib/Components/animations/Spin/Spin.stories.tsx +1 -0
- package/src/lib/Components/core/AddressInput/AddressInput.stories.tsx +168 -123
- package/src/lib/Components/core/AmountDisplay/AmountDisplay.stories.tsx +7 -7
- package/src/lib/Components/core/AmountInput/AmountInput.stories.tsx +162 -158
- package/src/lib/Components/core/Avatar/Avatar.stories.tsx +37 -46
- package/src/lib/Components/core/AvatarButton/AvatarButton.stories.tsx +1 -8
- package/src/lib/Components/core/Banner/Banner.stories.tsx +8 -95
- package/src/lib/Components/core/Button/Button.figma.tsx +1 -0
- package/src/lib/Components/core/Button/Button.mdx +2 -1
- package/src/lib/Components/core/Button/Button.stories.tsx +13 -14
- package/src/lib/Components/core/Card/Card.mdx +6 -0
- package/src/lib/Components/core/Card/Card.stories.tsx +31 -27
- package/src/lib/Components/core/CardButton/CardButton.stories.tsx +14 -90
- package/src/lib/Components/core/Checkbox/Checkbox.stories.tsx +1 -1
- package/src/lib/Components/core/ContentBanner/ContentBanner.stories.tsx +1 -17
- package/src/lib/Components/core/DescriptionItem/DescriptionItem.stories.tsx +4 -0
- package/src/lib/Components/core/Divider/Divider.stories.tsx +1 -0
- package/src/lib/Components/core/DotCount/DotCount.stories.tsx +4 -0
- package/src/lib/Components/core/DotIcon/DotIcon.stories.tsx +8 -0
- package/src/lib/Components/core/DotIndicator/DotIndicator.stories.tsx +3 -0
- package/src/lib/Components/core/DotSymbol/DotSymbol.stories.tsx +3 -0
- package/src/lib/Components/core/IconButton/IconButton.stories.tsx +9 -0
- package/src/lib/Components/core/InteractiveIcon/InteractiveIcon.stories.tsx +16 -23
- package/src/lib/Components/core/Link/Link.mdx +32 -5
- package/src/lib/Components/core/Link/Link.stories.tsx +20 -146
- package/src/lib/Components/core/Link/Link.test.tsx +1 -1
- package/src/lib/Components/core/Link/Link.tsx +1 -1
- package/src/lib/Components/core/ListItem/ListItem.stories.tsx +0 -39
- package/src/lib/Components/core/MediaBanner/MediaBanner.stories.tsx +3 -14
- package/src/lib/Components/core/MediaButton/MediaButton.stories.tsx +1 -12
- package/src/lib/Components/core/MediaCard/MediaCard.stories.tsx +10 -53
- package/src/lib/Components/core/MediaImage/MediaImage.stories.tsx +1 -1
- package/src/lib/Components/core/MediaImage/MediaImage.tsx +1 -1
- package/src/lib/Components/core/MediaImageGroup/MediaImageGroup.figma.tsx +119 -0
- package/src/lib/Components/core/MediaImageGroup/MediaImageGroup.mdx +96 -0
- package/src/lib/Components/core/MediaImageGroup/MediaImageGroup.stories.tsx +154 -0
- package/src/lib/Components/core/MediaImageGroup/MediaImageGroup.test.tsx +213 -0
- package/src/lib/Components/core/MediaImageGroup/MediaImageGroup.tsx +264 -0
- package/src/lib/Components/core/MediaImageGroup/index.ts +2 -0
- package/src/lib/Components/core/MediaImageGroup/types.ts +77 -0
- package/src/lib/Components/core/MediaTag/MediaTag.stories.tsx +3 -0
- package/src/lib/Components/core/MenuList/MenuList.mdx +2 -2
- package/src/lib/Components/core/MenuList/MenuList.stories.tsx +13 -1
- package/src/lib/Components/core/PageIndicator/PageIndicator.figma.tsx +1 -1
- package/src/lib/Components/core/PageIndicator/PageIndicator.stories.tsx +45 -42
- package/src/lib/Components/core/Pagination/Pagination.figma.tsx +25 -0
- package/src/lib/Components/core/Pagination/Pagination.mdx +108 -0
- package/src/lib/Components/core/Pagination/Pagination.stories.tsx +90 -0
- package/src/lib/Components/core/Pagination/Pagination.test.tsx +346 -0
- package/src/lib/Components/core/Pagination/Pagination.tsx +200 -0
- package/src/lib/Components/core/Pagination/index.ts +2 -0
- package/src/lib/Components/core/Pagination/types.ts +29 -0
- package/src/lib/Components/core/SearchInput/SearchInput.stories.tsx +91 -66
- package/src/lib/Components/core/SegmentedControl/SegmentedControl.stories.tsx +2 -0
- package/src/lib/Components/core/SelectList/SelectList.mdx +3 -1
- package/src/lib/Components/core/SelectList/SelectList.stories.tsx +3 -3
- package/src/lib/Components/core/Skeleton/Skeleton.stories.tsx +1 -0
- package/src/lib/Components/core/Spinner/Spinner.stories.tsx +1 -0
- package/src/lib/Components/core/Spot/Spot.stories.tsx +10 -1
- package/src/lib/Components/core/Stepper/Stepper.stories.tsx +1 -0
- package/src/lib/Components/core/Subheader/Subheader.stories.tsx +5 -2
- package/src/lib/Components/core/Switch/Switch.stories.tsx +17 -1
- package/src/lib/Components/core/TabBar/TabBar.stories.tsx +15 -5
- package/src/lib/Components/core/Tag/Tag.stories.tsx +4 -0
- package/src/lib/Components/core/TextInput/TextInput.stories.tsx +186 -174
- package/src/lib/Components/core/TextInput/TextInput.test.tsx +2 -2
- package/src/lib/Components/core/Tile/Tile.stories.tsx +0 -33
- package/src/lib/Components/core/TileButton/TileButton.stories.tsx +9 -7
- package/src/lib/Components/core/Timeline/Timeline.stories.tsx +20 -1
- package/src/lib/Components/core/Timeline/Timeline.test.tsx +12 -8
- package/src/lib/Components/core/Timeline/Timeline.tsx +79 -75
- package/src/lib/Components/core/Toast/Toast.mdx +1 -1
- package/src/lib/Components/core/Toast/Toast.stories.tsx +55 -66
- package/src/lib/Components/core/Toast/Toaster.test.tsx +1 -1
- package/src/lib/Components/core/Tooltip/Tooltip.stories.tsx +7 -3
- package/src/lib/Components/core/Trend/Trend.stories.tsx +3 -0
- package/src/lib/Components/core/index.ts +2 -0
- package/src/lib/Components/internal/BaseButton/BaseButton.test.tsx +1 -0
- package/src/lib/Components/internal/BaseButton/BaseButton.tsx +3 -0
- package/src/lib/Components/internal/BaseButton/types.ts +2 -1
- package/src/lib/Components/internal/BaseInput/types.ts +1 -1
- package/src/lib/Components/primitives/Box/Box.stories.tsx +1 -18
- package/src/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.stories.tsx +12 -0
- package/src/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.stories.tsx +1 -1
- package/src/lib/Components/primitives/Pressable/Pressable.stories.tsx +0 -18
- package/src/lib/Components/primitives/Text/Text.stories.tsx +1 -12
- package/src/lib/Components/symbols/Icon/Icon.stories.tsx +133 -94
- package/src/lib/Components/symbols/icons/Ar.tsx +2 -2
- package/src/lib/Components/symbols/icons/Range.tsx +1 -1
- package/src/lib/Components/symbols/icons/Share.tsx +1 -1
- package/src/lib/Components/symbols/icons/{Charon.tsx → ShoppingInvoiceList.tsx} +8 -8
- package/src/lib/Components/symbols/icons/WalletInput.tsx +1 -1
- package/src/lib/Components/symbols/index.ts +1 -4
- package/src/lib/Components/visualization/Axis/types.ts +1 -1
- package/src/lib/Components/visualization/CartesianChart/types.ts +1 -1
- package/src/lib/Components/visualization/DonutChart/DonutChart.test.tsx +1 -1
- package/src/lib/Components/visualization/Line/utils.ts +1 -1
- package/src/lib/Components/visualization/LineChart/LineChart.stories.tsx +15 -0
- package/src/lib/Components/visualization/LineChart/LineChart.test.tsx +1 -1
- package/src/lib/Components/visualization/LineChart/types.ts +3 -3
- package/src/lib/Components/visualization/Point/Point.stories.tsx +2 -0
- package/src/lib/Components/visualization/Point/Point.test.tsx +1 -1
- package/src/lib/Components/visualization/Point/types.ts +3 -3
- package/src/lib/Components/visualization/Point/usePointGeometry.ts +1 -1
- package/src/lib/Components/visualization/Point/utils.test.ts +2 -2
- package/src/lib/Components/visualization/Point/utils.ts +1 -1
- package/src/lib/Components/visualization/ReferenceLine/ReferenceLine.stories.tsx +5 -0
- package/src/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/utils.ts +3 -3
- package/src/lib/Components/visualization/Scrubber/Scrubber.stories.tsx +5 -0
- package/src/translations/locales/de.json +7 -0
- package/src/translations/locales/en.json +7 -0
- package/src/translations/locales/es.json +7 -0
- package/src/translations/locales/fr.json +7 -0
- package/src/translations/locales/ja.json +7 -0
- package/src/translations/locales/ko.json +7 -0
- package/src/translations/locales/pt.json +7 -0
- package/src/translations/locales/ru.json +7 -0
- package/src/translations/locales/th.json +7 -0
- package/src/translations/locales/tr.json +7 -0
- package/src/translations/locales/zh.json +7 -0
- package/dist/module/lib/Components/symbols/icons/Apex.js +0 -49
- package/dist/module/lib/Components/symbols/icons/Apex.js.map +0 -1
- package/dist/module/lib/Components/symbols/icons/BellNotification.js +0 -91
- package/dist/module/lib/Components/symbols/icons/BellNotification.js.map +0 -1
- package/dist/module/lib/Components/symbols/icons/Charon.js.map +0 -1
- package/dist/module/lib/Components/symbols/icons/ShieldCheckNotification.js +0 -82
- package/dist/module/lib/Components/symbols/icons/ShieldCheckNotification.js.map +0 -1
- package/dist/typescript/src/lib/Components/symbols/icons/Apex.d.ts +0 -35
- package/dist/typescript/src/lib/Components/symbols/icons/Apex.d.ts.map +0 -1
- package/dist/typescript/src/lib/Components/symbols/icons/BellNotification.d.ts +0 -35
- package/dist/typescript/src/lib/Components/symbols/icons/BellNotification.d.ts.map +0 -1
- package/dist/typescript/src/lib/Components/symbols/icons/Charon.d.ts.map +0 -1
- package/dist/typescript/src/lib/Components/symbols/icons/ShieldCheckNotification.d.ts +0 -35
- package/dist/typescript/src/lib/Components/symbols/icons/ShieldCheckNotification.d.ts.map +0 -1
- package/src/lib/Components/symbols/icons/Apex.tsx +0 -44
- package/src/lib/Components/symbols/icons/BellNotification.tsx +0 -75
- package/src/lib/Components/symbols/icons/ShieldCheckNotification.tsx +0 -67
|
@@ -12,6 +12,7 @@ const iconMap = {
|
|
|
12
12
|
} as const;
|
|
13
13
|
|
|
14
14
|
const meta = {
|
|
15
|
+
parameters: { docs: { source: { type: 'code' } } },
|
|
15
16
|
id: 'rnative-iconbutton',
|
|
16
17
|
title: 'Core/IconButton',
|
|
17
18
|
component: IconButton,
|
|
@@ -59,6 +60,14 @@ export default meta;
|
|
|
59
60
|
type Story = StoryObj<typeof IconButton>;
|
|
60
61
|
|
|
61
62
|
export const Base: Story = {
|
|
63
|
+
parameters: {
|
|
64
|
+
docs: { source: { type: 'dynamic' } },
|
|
65
|
+
jsx: {
|
|
66
|
+
functionValue: (fn: unknown) =>
|
|
67
|
+
Object.entries(iconMap).find(([, icon]) => icon === fn)?.[0] ??
|
|
68
|
+
'() => {}',
|
|
69
|
+
},
|
|
70
|
+
},
|
|
62
71
|
args: {
|
|
63
72
|
accessibilityLabel: 'Settings',
|
|
64
73
|
icon: Settings,
|
|
@@ -38,37 +38,30 @@ export default meta;
|
|
|
38
38
|
type Story = StoryObj<typeof InteractiveIcon>;
|
|
39
39
|
|
|
40
40
|
export const Base: Story = {
|
|
41
|
+
parameters: {
|
|
42
|
+
docs: { source: { type: 'dynamic' } },
|
|
43
|
+
jsx: {
|
|
44
|
+
functionValue: (fn: unknown) =>
|
|
45
|
+
Object.entries({ DeleteCircleFill }).find(
|
|
46
|
+
([, icon]) => icon === fn,
|
|
47
|
+
)?.[0] ?? '() => {}',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
41
50
|
args: {
|
|
42
51
|
iconType: 'filled',
|
|
43
52
|
icon: DeleteCircleFill,
|
|
44
53
|
accessibilityLabel: 'Delete',
|
|
45
54
|
},
|
|
46
|
-
parameters: {
|
|
47
|
-
docs: {
|
|
48
|
-
source: {
|
|
49
|
-
code: `
|
|
50
|
-
<InteractiveIcon iconType="filled" icon={DeleteCircleFill} accessibilityLabel="Delete" />
|
|
51
|
-
`,
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
export const Stroked: Story = {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
source: {
|
|
66
|
-
code: `
|
|
67
|
-
<InteractiveIcon iconType="stroked" icon={MoreVertical} accessibilityLabel="More actions" />
|
|
68
|
-
`,
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
},
|
|
58
|
+
render: () => (
|
|
59
|
+
<InteractiveIcon
|
|
60
|
+
iconType='stroked'
|
|
61
|
+
icon={MoreVertical}
|
|
62
|
+
accessibilityLabel='More actions'
|
|
63
|
+
/>
|
|
64
|
+
),
|
|
72
65
|
};
|
|
73
66
|
|
|
74
67
|
export const IconTypeShowcase: Story = {
|
|
@@ -107,10 +107,7 @@ function MyComponent() {
|
|
|
107
107
|
While the component comes with predefined styles, you can extend them using the `lx` prop for layout purposes:
|
|
108
108
|
|
|
109
109
|
```tsx
|
|
110
|
-
<Link
|
|
111
|
-
href='https://example.com'
|
|
112
|
-
lx={{ marginTop: 's4' }}
|
|
113
|
-
>
|
|
110
|
+
<Link href='https://example.com' lx={{ marginTop: 's4' }}>
|
|
114
111
|
Custom Link
|
|
115
112
|
</Link>
|
|
116
113
|
```
|
|
@@ -180,6 +177,37 @@ function MyComponent() {
|
|
|
180
177
|
}
|
|
181
178
|
```
|
|
182
179
|
|
|
180
|
+
### With React Navigation
|
|
181
|
+
|
|
182
|
+
```tsx
|
|
183
|
+
import { useNavigation } from '@react-navigation/native';
|
|
184
|
+
|
|
185
|
+
function MyComponent() {
|
|
186
|
+
const navigation = useNavigation();
|
|
187
|
+
|
|
188
|
+
return (
|
|
189
|
+
<>
|
|
190
|
+
<Link
|
|
191
|
+
appearance='base'
|
|
192
|
+
size='md'
|
|
193
|
+
onPress={() => navigation.navigate('Dashboard')}
|
|
194
|
+
>
|
|
195
|
+
Navigate to Dashboard
|
|
196
|
+
</Link>
|
|
197
|
+
|
|
198
|
+
<Link
|
|
199
|
+
appearance='accent'
|
|
200
|
+
size='md'
|
|
201
|
+
icon={ArrowRight}
|
|
202
|
+
onPress={() => navigation.navigate('Next')}
|
|
203
|
+
>
|
|
204
|
+
Continue to Next Screen
|
|
205
|
+
</Link>
|
|
206
|
+
</>
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
```
|
|
210
|
+
|
|
183
211
|
### Inline Within Text
|
|
184
212
|
|
|
185
213
|
The Link component is built on React Native's `Text`, so it can be nested inside a sentence without breaking the line height:
|
|
@@ -209,7 +237,6 @@ The Link component accepts all `Text` props, e.g. press callbacks or line clampi
|
|
|
209
237
|
</Link>
|
|
210
238
|
```
|
|
211
239
|
|
|
212
|
-
|
|
213
240
|
## Platform Considerations
|
|
214
241
|
|
|
215
242
|
### iOS Specific
|
|
@@ -58,99 +58,45 @@ type Story = StoryObj<typeof Link>;
|
|
|
58
58
|
type LinkAppearance = 'base' | 'accent' | 'gray';
|
|
59
59
|
|
|
60
60
|
export const Base: Story = {
|
|
61
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
61
62
|
args: {
|
|
62
63
|
appearance: 'base',
|
|
63
64
|
size: 'md',
|
|
64
65
|
children: 'Base Link',
|
|
65
66
|
href: 'https://ledger.com',
|
|
66
67
|
},
|
|
67
|
-
parameters: {
|
|
68
|
-
docs: {
|
|
69
|
-
source: {
|
|
70
|
-
code: `
|
|
71
|
-
<Link appearance="base" href="https://ledger.com">
|
|
72
|
-
Base Link
|
|
73
|
-
</Link>
|
|
74
|
-
`,
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
68
|
};
|
|
79
69
|
|
|
80
70
|
export const WithIcon: Story = {
|
|
81
|
-
|
|
82
|
-
appearance
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
},
|
|
87
|
-
parameters: {
|
|
88
|
-
docs: {
|
|
89
|
-
source: {
|
|
90
|
-
code: `
|
|
91
|
-
<Link
|
|
92
|
-
appearance="base"
|
|
93
|
-
icon={Information}
|
|
94
|
-
href="https://ledger.com"
|
|
95
|
-
>
|
|
96
|
-
Link with Icon
|
|
97
|
-
</Link>
|
|
98
|
-
`,
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
},
|
|
71
|
+
render: () => (
|
|
72
|
+
<Link appearance='base' icon={Information} href='https://ledger.com'>
|
|
73
|
+
Link with Icon
|
|
74
|
+
</Link>
|
|
75
|
+
),
|
|
102
76
|
};
|
|
103
77
|
|
|
104
78
|
export const External: Story = {
|
|
79
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
105
80
|
args: {
|
|
106
81
|
appearance: 'base',
|
|
107
82
|
children: 'External Link',
|
|
108
83
|
isExternal: true,
|
|
109
84
|
href: 'https://ledger.com',
|
|
110
85
|
},
|
|
111
|
-
parameters: {
|
|
112
|
-
docs: {
|
|
113
|
-
source: {
|
|
114
|
-
code: `
|
|
115
|
-
<Link
|
|
116
|
-
appearance="base"
|
|
117
|
-
isExternal
|
|
118
|
-
href="https://ledger.com"
|
|
119
|
-
>
|
|
120
|
-
External Link
|
|
121
|
-
</Link>
|
|
122
|
-
`,
|
|
123
|
-
},
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
86
|
};
|
|
127
87
|
|
|
128
88
|
export const ExternalLinkWithIcon: Story = {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
code: `
|
|
141
|
-
<Link
|
|
142
|
-
appearance="base"
|
|
143
|
-
size="md"
|
|
144
|
-
icon={Information}
|
|
145
|
-
isExternal
|
|
146
|
-
href="https://ledger.com"
|
|
147
|
-
>
|
|
148
|
-
External Link with Icon
|
|
149
|
-
</Link>
|
|
150
|
-
`,
|
|
151
|
-
},
|
|
152
|
-
},
|
|
153
|
-
},
|
|
89
|
+
render: () => (
|
|
90
|
+
<Link
|
|
91
|
+
appearance='base'
|
|
92
|
+
size='md'
|
|
93
|
+
icon={Information}
|
|
94
|
+
isExternal
|
|
95
|
+
href='https://ledger.com'
|
|
96
|
+
>
|
|
97
|
+
External Link with Icon
|
|
98
|
+
</Link>
|
|
99
|
+
),
|
|
154
100
|
};
|
|
155
101
|
|
|
156
102
|
export const AppearanceShowcase: Story = {
|
|
@@ -181,6 +127,7 @@ export const AppearanceShowcase: Story = {
|
|
|
181
127
|
};
|
|
182
128
|
|
|
183
129
|
export const UnderlineShowcase: Story = {
|
|
130
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
184
131
|
render: () => (
|
|
185
132
|
<Box lx={{ flexDirection: 'column', gap: 's16', padding: 's8' }}>
|
|
186
133
|
<Link appearance='accent' size='md' href='https://ledger.com'>
|
|
@@ -334,43 +281,10 @@ export const WithCustomNavigation: Story = {
|
|
|
334
281
|
</Box>
|
|
335
282
|
);
|
|
336
283
|
},
|
|
337
|
-
parameters: {
|
|
338
|
-
docs: {
|
|
339
|
-
source: {
|
|
340
|
-
code: `
|
|
341
|
-
import { useNavigation } from '@react-navigation/native';
|
|
342
|
-
|
|
343
|
-
function MyComponent() {
|
|
344
|
-
const navigation = useNavigation();
|
|
345
|
-
|
|
346
|
-
return (
|
|
347
|
-
<>
|
|
348
|
-
<Link
|
|
349
|
-
appearance="base"
|
|
350
|
-
size="md"
|
|
351
|
-
onPress={() => navigation.navigate('Dashboard')}
|
|
352
|
-
>
|
|
353
|
-
Navigate to Dashboard
|
|
354
|
-
</Link>
|
|
355
|
-
|
|
356
|
-
<Link
|
|
357
|
-
appearance="accent"
|
|
358
|
-
size="md"
|
|
359
|
-
icon={ArrowRight}
|
|
360
|
-
onPress={() => navigation.navigate('Next')}
|
|
361
|
-
>
|
|
362
|
-
Continue to Next Screen
|
|
363
|
-
</Link>
|
|
364
|
-
</>
|
|
365
|
-
);
|
|
366
|
-
}
|
|
367
|
-
`,
|
|
368
|
-
},
|
|
369
|
-
},
|
|
370
|
-
},
|
|
371
284
|
};
|
|
372
285
|
|
|
373
286
|
export const InTextUsage: Story = {
|
|
287
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
374
288
|
render: () => (
|
|
375
289
|
<Box lx={{ flexDirection: 'column', gap: 's32', padding: 's8' }}>
|
|
376
290
|
<Text typography='body2' lx={{ color: 'base' }}>
|
|
@@ -405,44 +319,4 @@ export const InTextUsage: Story = {
|
|
|
405
319
|
</Text>
|
|
406
320
|
</Box>
|
|
407
321
|
),
|
|
408
|
-
parameters: {
|
|
409
|
-
docs: {
|
|
410
|
-
source: {
|
|
411
|
-
code: `
|
|
412
|
-
// Links within text content
|
|
413
|
-
<Text typography='body2' lx={{ color: 'base' }}>
|
|
414
|
-
By continuing, you agree to our{' '}
|
|
415
|
-
<Link appearance='base' size='sm' href='https://ledger.com/terms'>
|
|
416
|
-
Terms & Conditions
|
|
417
|
-
</Link>{' '}
|
|
418
|
-
and{' '}
|
|
419
|
-
<Link appearance='base' size='sm' href='https://ledger.com/privacy'>
|
|
420
|
-
Privacy Policy
|
|
421
|
-
</Link>.
|
|
422
|
-
</Text>
|
|
423
|
-
|
|
424
|
-
// Heading with inline link
|
|
425
|
-
<Text typography='body1SemiBold' lx={{ color: 'interactive' }}>
|
|
426
|
-
Need help?{' '}
|
|
427
|
-
<Link appearance='accent' size='md' href='https://ledger.com/support'>
|
|
428
|
-
Contact Support
|
|
429
|
-
</Link>
|
|
430
|
-
</Text>
|
|
431
|
-
|
|
432
|
-
// Bold text with ununderlined link
|
|
433
|
-
<Text typography='body1SemiBold' lx={{ color: 'base' }}>
|
|
434
|
-
Already have an account?{' '}
|
|
435
|
-
<Link
|
|
436
|
-
appearance='accent'
|
|
437
|
-
size='md'
|
|
438
|
-
underline={false}
|
|
439
|
-
href='https://ledger.com/signin'
|
|
440
|
-
>
|
|
441
|
-
Sign in
|
|
442
|
-
</Link>
|
|
443
|
-
</Text>
|
|
444
|
-
`,
|
|
445
|
-
},
|
|
446
|
-
},
|
|
447
|
-
},
|
|
448
322
|
};
|
|
@@ -114,7 +114,7 @@ describe('Link Component', () => {
|
|
|
114
114
|
|
|
115
115
|
const iconStyle = getIconWrapperStyle(screen.getByText('Link'));
|
|
116
116
|
expect(iconStyle.paddingRight).toBe(expectedGap);
|
|
117
|
-
// Keeps the inline icons optically
|
|
117
|
+
// Keeps the inline icons optically centered on the text baseline.
|
|
118
118
|
expect(iconStyle.transform).toEqual([{ translateY: expectedOffset }]);
|
|
119
119
|
},
|
|
120
120
|
);
|
|
@@ -25,7 +25,7 @@ const typographyMap: Record<Size, LumenTypographyTokenName> = {
|
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Icons nested in a Text are laid out as inline attachments sitting on the
|
|
28
|
-
* baseline, which places them above the text's optical
|
|
28
|
+
* baseline, which places them above the text's optical center. These offsets
|
|
29
29
|
* (`iconSize / 2 - 0.35 * fontSize`, rounded) push them back down.
|
|
30
30
|
*/
|
|
31
31
|
const iconOffsetMap: Record<Size, number> = {
|
|
@@ -74,25 +74,6 @@ export const Base: Story = {
|
|
|
74
74
|
</ListItemLeading>
|
|
75
75
|
</ListItem>
|
|
76
76
|
),
|
|
77
|
-
parameters: {
|
|
78
|
-
docs: {
|
|
79
|
-
source: {
|
|
80
|
-
code: `
|
|
81
|
-
<ListItem>
|
|
82
|
-
<ListItemLeading>
|
|
83
|
-
<Spot icon={Settings} size={density === 'compact' ? 32 : 48} />
|
|
84
|
-
<ListItemContent>
|
|
85
|
-
<ListItemTitle>Item with Icon and Description</ListItemTitle>
|
|
86
|
-
{density === 'expanded' && (
|
|
87
|
-
<ListItemDescription>Additional information</ListItemDescription>
|
|
88
|
-
)}
|
|
89
|
-
</ListItemContent>
|
|
90
|
-
</ListItemLeading>
|
|
91
|
-
</ListItem>
|
|
92
|
-
`,
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
77
|
};
|
|
97
78
|
|
|
98
79
|
export const DensityShowcase: Story = {
|
|
@@ -305,26 +286,6 @@ export const DisabledState: Story = {
|
|
|
305
286
|
</ListItem>
|
|
306
287
|
</Box>
|
|
307
288
|
),
|
|
308
|
-
parameters: {
|
|
309
|
-
docs: {
|
|
310
|
-
source: {
|
|
311
|
-
code: `
|
|
312
|
-
<ListItem disabled>
|
|
313
|
-
<ListItemLeading>
|
|
314
|
-
<Spot icon={Settings} />
|
|
315
|
-
<ListItemContent>
|
|
316
|
-
<ListItemTitle>Disabled Item</ListItemTitle>
|
|
317
|
-
<ListItemDescription>This item is disabled</ListItemDescription>
|
|
318
|
-
</ListItemContent>
|
|
319
|
-
</ListItemLeading>
|
|
320
|
-
<ListItemTrailing>
|
|
321
|
-
<ChevronRight size={24} />
|
|
322
|
-
</ListItemTrailing>
|
|
323
|
-
</ListItem>
|
|
324
|
-
`,
|
|
325
|
-
},
|
|
326
|
-
},
|
|
327
|
-
},
|
|
328
289
|
};
|
|
329
290
|
|
|
330
291
|
export const ActiveState: Story = {
|
|
@@ -54,6 +54,7 @@ export default meta;
|
|
|
54
54
|
type Story = StoryObj<typeof MediaBanner>;
|
|
55
55
|
|
|
56
56
|
export const Base: Story = {
|
|
57
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
57
58
|
args: {
|
|
58
59
|
imageUrl: IMAGE_URL,
|
|
59
60
|
children: null,
|
|
@@ -66,23 +67,10 @@ export const Base: Story = {
|
|
|
66
67
|
</MediaBanner>
|
|
67
68
|
</Box>
|
|
68
69
|
),
|
|
69
|
-
parameters: {
|
|
70
|
-
docs: {
|
|
71
|
-
source: {
|
|
72
|
-
code: `
|
|
73
|
-
<MediaBanner imageUrl="https://images.unsplash.com/photo-1663741954108-d15d514529ef">
|
|
74
|
-
<MediaBannerTitle>Firmware Update</MediaBannerTitle>
|
|
75
|
-
<MediaBannerDescription>
|
|
76
|
-
Keep your Nano updated!
|
|
77
|
-
</MediaBannerDescription>
|
|
78
|
-
</MediaBanner>
|
|
79
|
-
`,
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
70
|
};
|
|
84
71
|
|
|
85
72
|
export const Truncation: Story = {
|
|
73
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
86
74
|
args: {
|
|
87
75
|
imageUrl: IMAGE_URL,
|
|
88
76
|
children: null,
|
|
@@ -104,6 +92,7 @@ export const Truncation: Story = {
|
|
|
104
92
|
};
|
|
105
93
|
|
|
106
94
|
export const WithBrokenImage: Story = {
|
|
95
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
107
96
|
args: {
|
|
108
97
|
imageUrl: IMAGE_URL,
|
|
109
98
|
children: null,
|
|
@@ -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
|
},
|
|
@@ -29,17 +29,6 @@ export const Base: Story = {
|
|
|
29
29
|
appearance: 'gray',
|
|
30
30
|
},
|
|
31
31
|
render: (args) => <MediaButton {...args} />,
|
|
32
|
-
parameters: {
|
|
33
|
-
docs: {
|
|
34
|
-
source: {
|
|
35
|
-
code: `
|
|
36
|
-
<MediaButton appearance="gray">
|
|
37
|
-
All accounts
|
|
38
|
-
</MediaButton>
|
|
39
|
-
`,
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
32
|
};
|
|
44
33
|
|
|
45
34
|
export const SizeShowcase: Story = {
|
|
@@ -38,7 +38,14 @@ const baseArgs = {
|
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
export const Base: Story = {
|
|
41
|
-
|
|
41
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
42
|
+
args: {
|
|
43
|
+
imageUrl:
|
|
44
|
+
'https://ledger-wp-website-s3-prd.ledger.com/uploads/2026/03/hero_visual-1.webp',
|
|
45
|
+
children: null,
|
|
46
|
+
onPress: () => ({}),
|
|
47
|
+
onClose: () => ({}),
|
|
48
|
+
},
|
|
42
49
|
render: (args) => (
|
|
43
50
|
<Box lx={{ width: 's320' }}>
|
|
44
51
|
<MediaCard {...args}>
|
|
@@ -54,27 +61,10 @@ export const Base: Story = {
|
|
|
54
61
|
</MediaCard>
|
|
55
62
|
</Box>
|
|
56
63
|
),
|
|
57
|
-
parameters: {
|
|
58
|
-
docs: {
|
|
59
|
-
source: {
|
|
60
|
-
code: `
|
|
61
|
-
<MediaCard imageUrl="/promo.jpg" onPress={() => {}} onClose={() => {}}>
|
|
62
|
-
<Tag label='Label' size='md' />
|
|
63
|
-
<MediaCardTitle>
|
|
64
|
-
Black Friday sale.
|
|
65
|
-
<Text typography='heading3SemiBold' lx={{ color: 'active' }}>
|
|
66
|
-
{' '}
|
|
67
|
-
3 days with no fees{' '}
|
|
68
|
-
</Text>
|
|
69
|
-
on your transactions.
|
|
70
|
-
</MediaCardTitle>
|
|
71
|
-
</MediaCard>`,
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
64
|
};
|
|
76
65
|
|
|
77
66
|
export const LayoutShowcase: Story = {
|
|
67
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
78
68
|
args: {
|
|
79
69
|
imageUrl: EXAMPLE_SRC,
|
|
80
70
|
children: null,
|
|
@@ -94,20 +84,10 @@ export const LayoutShowcase: Story = {
|
|
|
94
84
|
</MediaCard>
|
|
95
85
|
</Box>
|
|
96
86
|
),
|
|
97
|
-
parameters: {
|
|
98
|
-
docs: {
|
|
99
|
-
source: {
|
|
100
|
-
code: `
|
|
101
|
-
<MediaCard imageUrl="/promo.jpg" onPress={() => {}} onClose={() => {}}>
|
|
102
|
-
<Tag label="Label" size="md" />
|
|
103
|
-
<MediaCardTitle>Full width card</MediaCardTitle>
|
|
104
|
-
</MediaCard>`,
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
87
|
};
|
|
109
88
|
|
|
110
89
|
export const CompositionShowcase: Story = {
|
|
90
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
111
91
|
args: {
|
|
112
92
|
imageUrl: EXAMPLE_SRC,
|
|
113
93
|
children: null,
|
|
@@ -136,29 +116,6 @@ export const CompositionShowcase: Story = {
|
|
|
136
116
|
</MediaCard>
|
|
137
117
|
</Box>
|
|
138
118
|
),
|
|
139
|
-
parameters: {
|
|
140
|
-
docs: {
|
|
141
|
-
source: {
|
|
142
|
-
code: `
|
|
143
|
-
{/* Title only */}
|
|
144
|
-
<MediaCard imageUrl="/promo.jpg" onPress={() => {}} onClose={() => {}}>
|
|
145
|
-
<MediaCardTitle>Title only</MediaCardTitle>
|
|
146
|
-
</MediaCard>
|
|
147
|
-
|
|
148
|
-
{/* With tag */}
|
|
149
|
-
<MediaCard imageUrl="/promo.jpg" onPress={() => {}} onClose={() => {}}>
|
|
150
|
-
<Tag label="Promo" size="md" />
|
|
151
|
-
<MediaCardTitle>With tag and title</MediaCardTitle>
|
|
152
|
-
</MediaCard>
|
|
153
|
-
|
|
154
|
-
{/* With crypto icon */}
|
|
155
|
-
<MediaCard imageUrl="/promo.jpg" onPress={() => {}} onClose={() => {}}>
|
|
156
|
-
<CryptoIcon ledgerId="bitcoin" ticker="BTC" size={32} />
|
|
157
|
-
<MediaCardTitle>With crypto icon</MediaCardTitle>
|
|
158
|
-
</MediaCard>`,
|
|
159
|
-
},
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
119
|
};
|
|
163
120
|
|
|
164
121
|
export const WithClose: Story = {
|
|
@@ -10,7 +10,7 @@ import type { MediaImageProps, MediaImageSize, MediaImageShape } from './types';
|
|
|
10
10
|
|
|
11
11
|
type BorderRadiusKey = keyof LumenStyleSheetTheme['borderRadius'];
|
|
12
12
|
|
|
13
|
-
const borderRadiusMap: Record<MediaImageSize, BorderRadiusKey> = {
|
|
13
|
+
export const borderRadiusMap: Record<MediaImageSize, BorderRadiusKey> = {
|
|
14
14
|
12: 'xs',
|
|
15
15
|
16: 'xs',
|
|
16
16
|
20: 'xs',
|