@ledgerhq/lumen-ui-rnative 0.1.69 → 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.stories.js +1 -1
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.mdx +6 -0
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.stories.js +96 -22
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.stories.js.map +1 -1
- 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 +1 -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/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/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 +1 -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/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 +8 -8
- 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/MediaImageGroup/MediaImageGroup.mdx +6 -0
- package/src/lib/Components/core/MediaImageGroup/MediaImageGroup.stories.tsx +47 -15
- 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 +1 -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/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
|
@@ -2,18 +2,34 @@ import type { Meta, StoryObj } from '@storybook/react-native-web-vite';
|
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { View } from 'react-native';
|
|
4
4
|
import { TextInput } from './TextInput';
|
|
5
|
-
import { type TextInputProps } from './types';
|
|
6
5
|
|
|
7
6
|
const meta = {
|
|
8
7
|
component: TextInput,
|
|
9
8
|
id: 'rnative-textinput',
|
|
10
9
|
title: 'Core/TextInput',
|
|
10
|
+
decorators: [
|
|
11
|
+
(Story) => (
|
|
12
|
+
<View
|
|
13
|
+
style={{
|
|
14
|
+
flex: 1,
|
|
15
|
+
minHeight: 96,
|
|
16
|
+
alignItems: 'center',
|
|
17
|
+
justifyContent: 'center',
|
|
18
|
+
padding: 24,
|
|
19
|
+
}}
|
|
20
|
+
>
|
|
21
|
+
<View style={{ width: '100%', maxWidth: 400 }}>
|
|
22
|
+
<Story />
|
|
23
|
+
</View>
|
|
24
|
+
</View>
|
|
25
|
+
),
|
|
26
|
+
],
|
|
11
27
|
parameters: {
|
|
12
28
|
docs: {
|
|
13
29
|
source: {
|
|
14
30
|
language: 'tsx',
|
|
15
31
|
format: true,
|
|
16
|
-
type: '
|
|
32
|
+
type: 'code',
|
|
17
33
|
},
|
|
18
34
|
},
|
|
19
35
|
},
|
|
@@ -22,83 +38,63 @@ const meta = {
|
|
|
22
38
|
export default meta;
|
|
23
39
|
type Story = StoryObj<typeof TextInput>;
|
|
24
40
|
|
|
25
|
-
const TextInputStory = (args: TextInputProps & { initialValue?: string }) => {
|
|
26
|
-
const [value, setValue] = useState(args.initialValue ?? '');
|
|
27
|
-
|
|
28
|
-
return (
|
|
29
|
-
<View
|
|
30
|
-
style={{
|
|
31
|
-
flex: 1,
|
|
32
|
-
minHeight: 96,
|
|
33
|
-
alignItems: 'center',
|
|
34
|
-
justifyContent: 'center',
|
|
35
|
-
padding: 24,
|
|
36
|
-
}}
|
|
37
|
-
>
|
|
38
|
-
<View style={{ width: '100%', maxWidth: 400 }}>
|
|
39
|
-
<TextInput
|
|
40
|
-
{...args}
|
|
41
|
-
value={value}
|
|
42
|
-
onChangeText={setValue}
|
|
43
|
-
onClear={args.onClear}
|
|
44
|
-
/>
|
|
45
|
-
</View>
|
|
46
|
-
</View>
|
|
47
|
-
);
|
|
48
|
-
};
|
|
49
|
-
|
|
50
41
|
export const Base: Story = {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
hideClearButton: false,
|
|
56
|
-
keyboardType: 'default',
|
|
42
|
+
args: { label: 'Username' },
|
|
43
|
+
render: (args) => {
|
|
44
|
+
const [value, setValue] = useState('');
|
|
45
|
+
return <TextInput {...args} value={value} onChangeText={setValue} />;
|
|
57
46
|
},
|
|
58
47
|
};
|
|
59
48
|
|
|
60
49
|
export const WithContent: Story = {
|
|
61
|
-
render: (
|
|
62
|
-
|
|
63
|
-
label
|
|
64
|
-
editable: true,
|
|
65
|
-
hideClearButton: false,
|
|
66
|
-
keyboardType: 'default',
|
|
50
|
+
render: () => {
|
|
51
|
+
const [value, setValue] = useState('johndoe');
|
|
52
|
+
return <TextInput label='Username' value={value} onChangeText={setValue} />;
|
|
67
53
|
},
|
|
68
54
|
};
|
|
69
55
|
|
|
70
56
|
export const WithLabelAndPlaceholder: Story = {
|
|
71
|
-
render: (
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
57
|
+
render: () => {
|
|
58
|
+
const [value, setValue] = useState('');
|
|
59
|
+
return (
|
|
60
|
+
<TextInput
|
|
61
|
+
label='Phone'
|
|
62
|
+
placeholder='+1 (555) 000-0000'
|
|
63
|
+
keyboardType='phone-pad'
|
|
64
|
+
value={value}
|
|
65
|
+
onChangeText={setValue}
|
|
66
|
+
/>
|
|
67
|
+
);
|
|
78
68
|
},
|
|
79
69
|
};
|
|
80
70
|
|
|
81
71
|
export const WithError: Story = {
|
|
82
|
-
render: (
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
72
|
+
render: () => {
|
|
73
|
+
const [value, setValue] = useState('ab');
|
|
74
|
+
return (
|
|
75
|
+
<TextInput
|
|
76
|
+
label='Username'
|
|
77
|
+
helperText='Username must be at least 3 characters'
|
|
78
|
+
status='error'
|
|
79
|
+
value={value}
|
|
80
|
+
onChangeText={setValue}
|
|
81
|
+
/>
|
|
82
|
+
);
|
|
90
83
|
},
|
|
91
84
|
};
|
|
92
85
|
|
|
93
86
|
export const WithCounter: Story = {
|
|
94
|
-
render: (
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
87
|
+
render: () => {
|
|
88
|
+
const [value, setValue] = useState('');
|
|
89
|
+
return (
|
|
90
|
+
<TextInput
|
|
91
|
+
label='Label'
|
|
92
|
+
helperText='Info text'
|
|
93
|
+
maxCount={32}
|
|
94
|
+
value={value}
|
|
95
|
+
onChangeText={setValue}
|
|
96
|
+
/>
|
|
97
|
+
);
|
|
102
98
|
},
|
|
103
99
|
};
|
|
104
100
|
|
|
@@ -109,162 +105,178 @@ export const WithCounterExceeded: Story = {
|
|
|
109
105
|
const isOverLimit = value.length > maxCount;
|
|
110
106
|
|
|
111
107
|
return (
|
|
112
|
-
<
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
>
|
|
121
|
-
<View style={{ width: '100%', maxWidth: 400 }}>
|
|
122
|
-
<TextInput
|
|
123
|
-
label='Label'
|
|
124
|
-
value={value}
|
|
125
|
-
onChangeText={setValue}
|
|
126
|
-
helperText={isOverLimit ? 'Character limit exceeded' : 'Info text'}
|
|
127
|
-
status={isOverLimit ? 'error' : undefined}
|
|
128
|
-
maxCount={maxCount}
|
|
129
|
-
/>
|
|
130
|
-
</View>
|
|
131
|
-
</View>
|
|
108
|
+
<TextInput
|
|
109
|
+
label='Label'
|
|
110
|
+
value={value}
|
|
111
|
+
onChangeText={setValue}
|
|
112
|
+
helperText={isOverLimit ? 'Character limit exceeded' : 'Info text'}
|
|
113
|
+
status={isOverLimit ? 'error' : undefined}
|
|
114
|
+
maxCount={maxCount}
|
|
115
|
+
/>
|
|
132
116
|
);
|
|
133
117
|
},
|
|
134
118
|
};
|
|
135
119
|
|
|
136
120
|
export const WithNativeMaxLength: Story = {
|
|
137
|
-
render: (
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
121
|
+
render: () => {
|
|
122
|
+
const [value, setValue] = useState('');
|
|
123
|
+
return (
|
|
124
|
+
<TextInput
|
|
125
|
+
label='Label'
|
|
126
|
+
helperText='Input is capped at 8 characters'
|
|
127
|
+
maxLength={8}
|
|
128
|
+
maxCount={8}
|
|
129
|
+
value={value}
|
|
130
|
+
onChangeText={setValue}
|
|
131
|
+
/>
|
|
132
|
+
);
|
|
146
133
|
},
|
|
147
134
|
};
|
|
148
135
|
|
|
149
136
|
export const WithSuccess: Story = {
|
|
150
|
-
render: (
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
137
|
+
render: () => {
|
|
138
|
+
const [value, setValue] = useState(
|
|
139
|
+
'0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb27',
|
|
140
|
+
);
|
|
141
|
+
return (
|
|
142
|
+
<TextInput
|
|
143
|
+
label='Address'
|
|
144
|
+
helperText='Address verified'
|
|
145
|
+
status='success'
|
|
146
|
+
value={value}
|
|
147
|
+
onChangeText={setValue}
|
|
148
|
+
/>
|
|
149
|
+
);
|
|
163
150
|
},
|
|
164
151
|
};
|
|
165
152
|
|
|
166
153
|
export const WithNeutralHint: Story = {
|
|
167
|
-
render: (
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
154
|
+
render: () => {
|
|
155
|
+
const [value, setValue] = useState('');
|
|
156
|
+
return (
|
|
157
|
+
<TextInput
|
|
158
|
+
label='Address'
|
|
159
|
+
helperText='Enter your ETH address'
|
|
160
|
+
value={value}
|
|
161
|
+
onChangeText={setValue}
|
|
162
|
+
/>
|
|
163
|
+
);
|
|
174
164
|
},
|
|
175
165
|
};
|
|
176
166
|
|
|
177
167
|
export const WithMultiline: Story = {
|
|
178
|
-
render: (
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
168
|
+
render: () => {
|
|
169
|
+
const [value, setValue] = useState('');
|
|
170
|
+
return (
|
|
171
|
+
<TextInput
|
|
172
|
+
label='Note'
|
|
173
|
+
helperText='Grows from 2 to 5 lines, then scrolls'
|
|
174
|
+
multiline
|
|
175
|
+
minLines={2}
|
|
176
|
+
maxLines={5}
|
|
177
|
+
value={value}
|
|
178
|
+
onChangeText={setValue}
|
|
179
|
+
/>
|
|
180
|
+
);
|
|
188
181
|
},
|
|
189
182
|
};
|
|
190
183
|
|
|
191
184
|
export const WithMultilineFixedHeight: Story = {
|
|
192
|
-
render: (
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
185
|
+
render: () => {
|
|
186
|
+
const [value, setValue] = useState('');
|
|
187
|
+
return (
|
|
188
|
+
<TextInput
|
|
189
|
+
label='Note'
|
|
190
|
+
multiline
|
|
191
|
+
minLines={4}
|
|
192
|
+
maxLines={4}
|
|
193
|
+
value={value}
|
|
194
|
+
onChangeText={setValue}
|
|
195
|
+
/>
|
|
196
|
+
);
|
|
201
197
|
},
|
|
202
198
|
};
|
|
203
199
|
|
|
204
200
|
export const DisabledTextInput: Story = {
|
|
205
|
-
render: (
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
201
|
+
render: () => {
|
|
202
|
+
const [value, setValue] = useState('johndoe');
|
|
203
|
+
return (
|
|
204
|
+
<TextInput
|
|
205
|
+
label='Username'
|
|
206
|
+
disabled
|
|
207
|
+
value={value}
|
|
208
|
+
onChangeText={setValue}
|
|
209
|
+
/>
|
|
210
|
+
);
|
|
211
211
|
},
|
|
212
212
|
};
|
|
213
213
|
|
|
214
214
|
export const ReadOnlyTextInput: Story = {
|
|
215
|
-
render: (
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
215
|
+
render: () => {
|
|
216
|
+
const [value, setValue] = useState('johndoe');
|
|
217
|
+
return (
|
|
218
|
+
<TextInput
|
|
219
|
+
label='Username'
|
|
220
|
+
readOnly
|
|
221
|
+
value={value}
|
|
222
|
+
onChangeText={setValue}
|
|
223
|
+
/>
|
|
224
|
+
);
|
|
221
225
|
},
|
|
222
226
|
};
|
|
223
227
|
|
|
224
228
|
export const WithHiddenClearButton: Story = {
|
|
225
|
-
render: (
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
229
|
+
render: () => {
|
|
230
|
+
const [value, setValue] = useState('Content with hidden clear');
|
|
231
|
+
return (
|
|
232
|
+
<TextInput
|
|
233
|
+
label='Label'
|
|
234
|
+
hideClearButton
|
|
235
|
+
value={value}
|
|
236
|
+
onChangeText={setValue}
|
|
237
|
+
/>
|
|
238
|
+
);
|
|
233
239
|
},
|
|
234
240
|
};
|
|
235
241
|
|
|
236
242
|
export const WithClearCallback: Story = {
|
|
237
|
-
render: (
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
hideClearButton: false,
|
|
248
|
-
keyboardType: 'default',
|
|
243
|
+
render: () => {
|
|
244
|
+
const [value, setValue] = useState('Click clear to see callback');
|
|
245
|
+
return (
|
|
246
|
+
<TextInput
|
|
247
|
+
label='Label'
|
|
248
|
+
onClear={() => alert('Input cleared!')}
|
|
249
|
+
value={value}
|
|
250
|
+
onChangeText={setValue}
|
|
251
|
+
/>
|
|
252
|
+
);
|
|
249
253
|
},
|
|
250
254
|
};
|
|
251
255
|
|
|
252
256
|
export const EmailKeyboard: Story = {
|
|
253
|
-
render: (
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
257
|
+
render: () => {
|
|
258
|
+
const [value, setValue] = useState('');
|
|
259
|
+
return (
|
|
260
|
+
<TextInput
|
|
261
|
+
label='Email'
|
|
262
|
+
keyboardType='email-address'
|
|
263
|
+
value={value}
|
|
264
|
+
onChangeText={setValue}
|
|
265
|
+
/>
|
|
266
|
+
);
|
|
259
267
|
},
|
|
260
268
|
};
|
|
261
269
|
|
|
262
270
|
export const PhoneKeyboard: Story = {
|
|
263
|
-
render: (
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
271
|
+
render: () => {
|
|
272
|
+
const [value, setValue] = useState('');
|
|
273
|
+
return (
|
|
274
|
+
<TextInput
|
|
275
|
+
label='Phone Number'
|
|
276
|
+
keyboardType='phone-pad'
|
|
277
|
+
value={value}
|
|
278
|
+
onChangeText={setValue}
|
|
279
|
+
/>
|
|
280
|
+
);
|
|
269
281
|
},
|
|
270
282
|
};
|
|
@@ -24,7 +24,7 @@ const geometries: {
|
|
|
24
24
|
chrome: number;
|
|
25
25
|
}[] = [
|
|
26
26
|
{
|
|
27
|
-
name: '
|
|
27
|
+
name: 'labeled',
|
|
28
28
|
props: { label: 'Note' },
|
|
29
29
|
lineHeight: body2.lineHeight,
|
|
30
30
|
suffixOffset: spacings.s8,
|
|
@@ -32,7 +32,7 @@ const geometries: {
|
|
|
32
32
|
chrome: spacings.s16 + 2 * spacings.s6,
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
name: '
|
|
35
|
+
name: 'unlabeled',
|
|
36
36
|
props: {},
|
|
37
37
|
lineHeight: body1.lineHeight,
|
|
38
38
|
suffixOffset: spacings.s2,
|
|
@@ -76,21 +76,6 @@ export const Base: Story = {
|
|
|
76
76
|
</TileContent>
|
|
77
77
|
</Tile>
|
|
78
78
|
),
|
|
79
|
-
parameters: {
|
|
80
|
-
docs: {
|
|
81
|
-
source: {
|
|
82
|
-
code: `
|
|
83
|
-
<Tile lx={{ maxWidth: 's112' }}>
|
|
84
|
-
<Spot icon={Settings} />
|
|
85
|
-
<TileContent>
|
|
86
|
-
<TileTitle>Item with Spot and Description</TileTitle>
|
|
87
|
-
<TileDescription>Additional information</TileDescription>
|
|
88
|
-
</TileContent>
|
|
89
|
-
</Tile>
|
|
90
|
-
`,
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
79
|
};
|
|
95
80
|
|
|
96
81
|
export const VariantsShowcase: Story = {
|
|
@@ -154,24 +139,6 @@ export const WithSecondaryAction: Story = {
|
|
|
154
139
|
</TileContent>
|
|
155
140
|
</Tile>
|
|
156
141
|
),
|
|
157
|
-
parameters: {
|
|
158
|
-
docs: {
|
|
159
|
-
source: {
|
|
160
|
-
code: `
|
|
161
|
-
<Tile
|
|
162
|
-
onLongPress={() => alert('Long press - secondary action triggered!')}
|
|
163
|
-
lx={{ maxWidth: 's160' }}
|
|
164
|
-
>
|
|
165
|
-
<Spot icon={Settings} />
|
|
166
|
-
<TileContent>
|
|
167
|
-
<TileTitle>Long Press Me</TileTitle>
|
|
168
|
-
<TileDescription>Try long pressing this tile</TileDescription>
|
|
169
|
-
</TileContent>
|
|
170
|
-
</Tile>
|
|
171
|
-
`,
|
|
172
|
-
},
|
|
173
|
-
},
|
|
174
|
-
},
|
|
175
142
|
};
|
|
176
143
|
|
|
177
144
|
export const HorizontalList: Story = {
|
|
@@ -14,6 +14,7 @@ const iconOptions = {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
const meta = {
|
|
17
|
+
parameters: { docs: { source: { type: 'code' } } },
|
|
17
18
|
component: TileButton,
|
|
18
19
|
id: 'rnative-tilebutton',
|
|
19
20
|
title: 'Core/TileButton',
|
|
@@ -37,18 +38,19 @@ export default meta;
|
|
|
37
38
|
type Story = StoryObj<typeof TileButton>;
|
|
38
39
|
|
|
39
40
|
export const Base: Story = {
|
|
41
|
+
parameters: {
|
|
42
|
+
docs: { source: { type: 'dynamic' } },
|
|
43
|
+
jsx: {
|
|
44
|
+
functionValue: (fn: unknown) =>
|
|
45
|
+
Object.entries(iconOptions).find(([, icon]) => icon === fn)?.[0] ??
|
|
46
|
+
'() => {}',
|
|
47
|
+
},
|
|
48
|
+
},
|
|
40
49
|
args: {
|
|
41
50
|
icon: Settings,
|
|
42
51
|
children: 'Settings',
|
|
43
52
|
},
|
|
44
53
|
render: (args) => <TileButton {...args} />,
|
|
45
|
-
parameters: {
|
|
46
|
-
docs: {
|
|
47
|
-
source: {
|
|
48
|
-
code: `<TileButton icon={Settings} onPress={() => {}}>Settings</TileButton>`,
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
54
|
};
|
|
53
55
|
|
|
54
56
|
export const AppearanceShowcase: Story = {
|
|
@@ -39,7 +39,7 @@ const meta = {
|
|
|
39
39
|
source: {
|
|
40
40
|
language: 'tsx',
|
|
41
41
|
format: true,
|
|
42
|
-
type: '
|
|
42
|
+
type: 'code',
|
|
43
43
|
},
|
|
44
44
|
},
|
|
45
45
|
},
|
|
@@ -53,6 +53,7 @@ export const Base: Story = {
|
|
|
53
53
|
status: 'idle',
|
|
54
54
|
},
|
|
55
55
|
parameters: {
|
|
56
|
+
docs: { source: { type: 'dynamic' } },
|
|
56
57
|
layout: 'centered',
|
|
57
58
|
backgrounds: { default: 'light' },
|
|
58
59
|
},
|
|
@@ -93,6 +94,7 @@ export const Base: Story = {
|
|
|
93
94
|
|
|
94
95
|
export const WithInformative: Story = {
|
|
95
96
|
parameters: {
|
|
97
|
+
docs: { source: { type: 'dynamic' } },
|
|
96
98
|
layout: 'centered',
|
|
97
99
|
backgrounds: { default: 'light' },
|
|
98
100
|
},
|
|
@@ -120,6 +122,7 @@ export const WithInformative: Story = {
|
|
|
120
122
|
|
|
121
123
|
export const StatusShowcase: Story = {
|
|
122
124
|
parameters: {
|
|
125
|
+
docs: { source: { type: 'dynamic' } },
|
|
123
126
|
layout: 'centered',
|
|
124
127
|
backgrounds: { default: 'light' },
|
|
125
128
|
},
|
|
@@ -129,6 +132,9 @@ export const StatusShowcase: Story = {
|
|
|
129
132
|
<TimelineItemHeader>
|
|
130
133
|
<TimelineItemLeading>
|
|
131
134
|
<TimelineItemTitle>Payment confirmed</TimelineItemTitle>
|
|
135
|
+
<TimelineItemDescription>
|
|
136
|
+
Confirmed on device
|
|
137
|
+
</TimelineItemDescription>
|
|
132
138
|
</TimelineItemLeading>
|
|
133
139
|
</TimelineItemHeader>
|
|
134
140
|
</TimelineItem>
|
|
@@ -146,6 +152,9 @@ export const StatusShowcase: Story = {
|
|
|
146
152
|
<TimelineItemHeader>
|
|
147
153
|
<TimelineItemLeading>
|
|
148
154
|
<TimelineItemTitle>Rejected</TimelineItemTitle>
|
|
155
|
+
<TimelineItemDescription>
|
|
156
|
+
Insufficient network fees.
|
|
157
|
+
</TimelineItemDescription>
|
|
149
158
|
</TimelineItemLeading>
|
|
150
159
|
</TimelineItemHeader>
|
|
151
160
|
</TimelineItem>
|
|
@@ -153,6 +162,9 @@ export const StatusShowcase: Story = {
|
|
|
153
162
|
<TimelineItemHeader>
|
|
154
163
|
<TimelineItemLeading>
|
|
155
164
|
<TimelineItemTitle>Confirming</TimelineItemTitle>
|
|
165
|
+
<TimelineItemDescription>
|
|
166
|
+
Waiting for confirmations.
|
|
167
|
+
</TimelineItemDescription>
|
|
156
168
|
</TimelineItemLeading>
|
|
157
169
|
</TimelineItemHeader>
|
|
158
170
|
</TimelineItem>
|
|
@@ -160,6 +172,9 @@ export const StatusShowcase: Story = {
|
|
|
160
172
|
<TimelineItemHeader>
|
|
161
173
|
<TimelineItemLeading>
|
|
162
174
|
<TimelineItemTitle>Settled</TimelineItemTitle>
|
|
175
|
+
<TimelineItemDescription>
|
|
176
|
+
Funds are available.
|
|
177
|
+
</TimelineItemDescription>
|
|
163
178
|
</TimelineItemLeading>
|
|
164
179
|
</TimelineItemHeader>
|
|
165
180
|
</TimelineItem>
|
|
@@ -181,6 +196,9 @@ export const WithCollapse: Story = {
|
|
|
181
196
|
<TimelineItemHeader>
|
|
182
197
|
<TimelineItemLeading>
|
|
183
198
|
<TimelineItemTitle>Payment confirmed</TimelineItemTitle>
|
|
199
|
+
<TimelineItemDescription>
|
|
200
|
+
Confirmed on device
|
|
201
|
+
</TimelineItemDescription>
|
|
184
202
|
</TimelineItemLeading>
|
|
185
203
|
<TimelineItemTrailing>
|
|
186
204
|
<IconButton
|
|
@@ -217,6 +235,7 @@ export const WithCollapse: Story = {
|
|
|
217
235
|
|
|
218
236
|
export const ResponsivenessShowcase: Story = {
|
|
219
237
|
parameters: {
|
|
238
|
+
docs: { source: { type: 'dynamic' } },
|
|
220
239
|
layout: 'centered',
|
|
221
240
|
backgrounds: { default: 'light' },
|
|
222
241
|
},
|
|
@@ -195,8 +195,8 @@ describe('Timeline', () => {
|
|
|
195
195
|
),
|
|
196
196
|
).toEqual(
|
|
197
197
|
expect.objectContaining({
|
|
198
|
-
width:
|
|
199
|
-
height:
|
|
198
|
+
width: 16,
|
|
199
|
+
height: 16,
|
|
200
200
|
borderWidth: 2,
|
|
201
201
|
borderColor: colors.border.mutedSubtleHover,
|
|
202
202
|
}),
|
|
@@ -213,7 +213,7 @@ describe('Timeline', () => {
|
|
|
213
213
|
</TestWrapper>,
|
|
214
214
|
);
|
|
215
215
|
|
|
216
|
-
const outgoing = screen.
|
|
216
|
+
const outgoing = screen.getAllByTestId('timeline-line-out', hidden)[0];
|
|
217
217
|
const incoming = screen.getAllByTestId('timeline-line-in', hidden)[1];
|
|
218
218
|
|
|
219
219
|
expect(StyleSheet.flatten(outgoing.props.style).backgroundColor).toBe(
|
|
@@ -241,9 +241,12 @@ describe('Timeline', () => {
|
|
|
241
241
|
|
|
242
242
|
expect(StyleSheet.flatten(firstIn.props.style).opacity).toBe(0);
|
|
243
243
|
expect(StyleSheet.flatten(lastIn.props.style).opacity).not.toBe(0);
|
|
244
|
-
|
|
245
|
-
|
|
244
|
+
const [firstOut, lastOut] = screen.getAllByTestId(
|
|
245
|
+
'timeline-line-out',
|
|
246
|
+
hidden,
|
|
246
247
|
);
|
|
248
|
+
expect(StyleSheet.flatten(firstOut.props.style).opacity).not.toBe(0);
|
|
249
|
+
expect(StyleSheet.flatten(lastOut.props.style).opacity).toBe(0);
|
|
247
250
|
});
|
|
248
251
|
|
|
249
252
|
it('should position items grouped in a fragment as siblings', () => {
|
|
@@ -267,9 +270,10 @@ describe('Timeline', () => {
|
|
|
267
270
|
expect(StyleSheet.flatten(firstIn.props.style).opacity).toBe(0);
|
|
268
271
|
expect(StyleSheet.flatten(secondIn.props.style).opacity).not.toBe(0);
|
|
269
272
|
expect(StyleSheet.flatten(lastIn.props.style).opacity).not.toBe(0);
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
+
const outs = screen.getAllByTestId('timeline-line-out', hidden);
|
|
274
|
+
expect(
|
|
275
|
+
outs.map((o) => StyleSheet.flatten(o.props.style).opacity),
|
|
276
|
+
).toEqual([undefined, undefined, 0]);
|
|
273
277
|
});
|
|
274
278
|
});
|
|
275
279
|
});
|