@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
|
@@ -16,6 +16,22 @@ const meta = {
|
|
|
16
16
|
component: AmountInput,
|
|
17
17
|
id: 'rnative-amountinput',
|
|
18
18
|
title: 'Core/AmountInput',
|
|
19
|
+
decorators: [Story => /*#__PURE__*/_jsx(View, {
|
|
20
|
+
style: {
|
|
21
|
+
flex: 1,
|
|
22
|
+
minHeight: 96,
|
|
23
|
+
alignItems: 'center',
|
|
24
|
+
justifyContent: 'center',
|
|
25
|
+
padding: 24
|
|
26
|
+
},
|
|
27
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
28
|
+
style: {
|
|
29
|
+
width: '100%',
|
|
30
|
+
maxWidth: 320
|
|
31
|
+
},
|
|
32
|
+
children: /*#__PURE__*/_jsx(Story, {})
|
|
33
|
+
})
|
|
34
|
+
})],
|
|
19
35
|
parameters: {
|
|
20
36
|
docs: {
|
|
21
37
|
source: {
|
|
@@ -36,73 +52,50 @@ const meta = {
|
|
|
36
52
|
}
|
|
37
53
|
};
|
|
38
54
|
export default meta;
|
|
39
|
-
const AmountInputStory = args => {
|
|
40
|
-
const [value, setValue] = useState(args.value?.toString() ?? '');
|
|
41
|
-
return /*#__PURE__*/_jsx(View, {
|
|
42
|
-
style: {
|
|
43
|
-
flex: 1,
|
|
44
|
-
minHeight: 96,
|
|
45
|
-
alignItems: 'center',
|
|
46
|
-
justifyContent: 'center',
|
|
47
|
-
padding: 24
|
|
48
|
-
},
|
|
49
|
-
children: /*#__PURE__*/_jsx(View, {
|
|
50
|
-
style: {
|
|
51
|
-
width: '100%',
|
|
52
|
-
maxWidth: 320
|
|
53
|
-
},
|
|
54
|
-
children: /*#__PURE__*/_jsx(AmountInput, {
|
|
55
|
-
...args,
|
|
56
|
-
value: value,
|
|
57
|
-
onChangeText: setValue
|
|
58
|
-
})
|
|
59
|
-
})
|
|
60
|
-
});
|
|
61
|
-
};
|
|
62
55
|
export const Base = {
|
|
63
56
|
args: {
|
|
64
|
-
value: '',
|
|
65
|
-
onChangeText: () => {},
|
|
66
57
|
currencyText: 'USD',
|
|
67
58
|
currencyPosition: 'left',
|
|
68
59
|
allowDecimals: true,
|
|
69
60
|
thousandsSeparator: true,
|
|
70
61
|
maxIntegerLength: 9,
|
|
71
|
-
maxDecimalLength: 9
|
|
72
|
-
isInvalid: false,
|
|
73
|
-
editable: true
|
|
62
|
+
maxDecimalLength: 9
|
|
74
63
|
},
|
|
75
|
-
render: args =>
|
|
76
|
-
|
|
77
|
-
|
|
64
|
+
render: args => {
|
|
65
|
+
const [value, setValue] = useState('');
|
|
66
|
+
return /*#__PURE__*/_jsx(AmountInput, {
|
|
67
|
+
...args,
|
|
68
|
+
value: value,
|
|
69
|
+
onChangeText: setValue
|
|
70
|
+
});
|
|
71
|
+
}
|
|
78
72
|
};
|
|
79
73
|
export const WithValue = {
|
|
80
|
-
|
|
81
|
-
value
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
...args
|
|
92
|
-
})
|
|
74
|
+
render: () => {
|
|
75
|
+
const [value, setValue] = useState('1234.56');
|
|
76
|
+
return /*#__PURE__*/_jsx(AmountInput, {
|
|
77
|
+
currencyText: "USD",
|
|
78
|
+
currencyPosition: "left",
|
|
79
|
+
allowDecimals: true,
|
|
80
|
+
thousandsSeparator: true,
|
|
81
|
+
value: value,
|
|
82
|
+
onChangeText: setValue
|
|
83
|
+
});
|
|
84
|
+
}
|
|
93
85
|
};
|
|
94
86
|
export const Size = {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
87
|
+
parameters: {
|
|
88
|
+
docs: {
|
|
89
|
+
source: {
|
|
90
|
+
type: 'dynamic'
|
|
91
|
+
}
|
|
92
|
+
}
|
|
98
93
|
},
|
|
99
94
|
render: () => /*#__PURE__*/_jsx(View, {
|
|
100
95
|
style: {
|
|
101
96
|
width: '100%',
|
|
102
|
-
maxWidth: 320,
|
|
103
97
|
alignItems: 'center',
|
|
104
|
-
gap: 24
|
|
105
|
-
padding: 24
|
|
98
|
+
gap: 24
|
|
106
99
|
},
|
|
107
100
|
children: SIZES.map(({
|
|
108
101
|
size,
|
|
@@ -116,16 +109,17 @@ export const Size = {
|
|
|
116
109
|
})
|
|
117
110
|
};
|
|
118
111
|
export const Alignment = {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
112
|
+
parameters: {
|
|
113
|
+
docs: {
|
|
114
|
+
source: {
|
|
115
|
+
type: 'dynamic'
|
|
116
|
+
}
|
|
117
|
+
}
|
|
122
118
|
},
|
|
123
119
|
render: () => /*#__PURE__*/_jsx(View, {
|
|
124
120
|
style: {
|
|
125
121
|
width: '100%',
|
|
126
|
-
|
|
127
|
-
gap: 24,
|
|
128
|
-
padding: 24
|
|
122
|
+
gap: 24
|
|
129
123
|
},
|
|
130
124
|
children: ALIGNMENTS.map(align => /*#__PURE__*/_jsx(AmountInput, {
|
|
131
125
|
align: align,
|
|
@@ -136,141 +130,125 @@ export const Alignment = {
|
|
|
136
130
|
})
|
|
137
131
|
};
|
|
138
132
|
export const CurrencyPositionLeft = {
|
|
139
|
-
|
|
140
|
-
value
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
...args
|
|
151
|
-
})
|
|
133
|
+
render: () => {
|
|
134
|
+
const [value, setValue] = useState('1000');
|
|
135
|
+
return /*#__PURE__*/_jsx(AmountInput, {
|
|
136
|
+
currencyText: "$",
|
|
137
|
+
currencyPosition: "left",
|
|
138
|
+
allowDecimals: true,
|
|
139
|
+
thousandsSeparator: true,
|
|
140
|
+
value: value,
|
|
141
|
+
onChangeText: setValue
|
|
142
|
+
});
|
|
143
|
+
}
|
|
152
144
|
};
|
|
153
145
|
export const CurrencyPositionRight = {
|
|
154
|
-
|
|
155
|
-
value
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
...args
|
|
166
|
-
})
|
|
146
|
+
render: () => {
|
|
147
|
+
const [value, setValue] = useState('1000');
|
|
148
|
+
return /*#__PURE__*/_jsx(AmountInput, {
|
|
149
|
+
currencyText: "ETH",
|
|
150
|
+
currencyPosition: "right",
|
|
151
|
+
allowDecimals: true,
|
|
152
|
+
thousandsSeparator: true,
|
|
153
|
+
value: value,
|
|
154
|
+
onChangeText: setValue
|
|
155
|
+
});
|
|
156
|
+
}
|
|
167
157
|
};
|
|
168
158
|
export const IntegerOnly = {
|
|
169
|
-
|
|
170
|
-
value
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
...args
|
|
181
|
-
})
|
|
159
|
+
render: () => {
|
|
160
|
+
const [value, setValue] = useState('1234');
|
|
161
|
+
return /*#__PURE__*/_jsx(AmountInput, {
|
|
162
|
+
currencyText: "items",
|
|
163
|
+
currencyPosition: "right",
|
|
164
|
+
allowDecimals: false,
|
|
165
|
+
thousandsSeparator: true,
|
|
166
|
+
value: value,
|
|
167
|
+
onChangeText: setValue
|
|
168
|
+
});
|
|
169
|
+
}
|
|
182
170
|
};
|
|
183
171
|
export const WithThousandsSeparator = {
|
|
184
|
-
|
|
185
|
-
value
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
...args
|
|
196
|
-
})
|
|
172
|
+
render: () => {
|
|
173
|
+
const [value, setValue] = useState('1000000');
|
|
174
|
+
return /*#__PURE__*/_jsx(AmountInput, {
|
|
175
|
+
currencyText: "USD",
|
|
176
|
+
currencyPosition: "left",
|
|
177
|
+
allowDecimals: true,
|
|
178
|
+
thousandsSeparator: true,
|
|
179
|
+
value: value,
|
|
180
|
+
onChangeText: setValue
|
|
181
|
+
});
|
|
182
|
+
}
|
|
197
183
|
};
|
|
198
184
|
export const WithoutThousandsSeparator = {
|
|
199
|
-
|
|
200
|
-
value
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
...args
|
|
211
|
-
})
|
|
185
|
+
render: () => {
|
|
186
|
+
const [value, setValue] = useState('1000000');
|
|
187
|
+
return /*#__PURE__*/_jsx(AmountInput, {
|
|
188
|
+
currencyText: "USD",
|
|
189
|
+
currencyPosition: "left",
|
|
190
|
+
allowDecimals: true,
|
|
191
|
+
thousandsSeparator: false,
|
|
192
|
+
value: value,
|
|
193
|
+
onChangeText: setValue
|
|
194
|
+
});
|
|
195
|
+
}
|
|
212
196
|
};
|
|
213
197
|
export const DecimalSeparatorComma = {
|
|
214
|
-
|
|
215
|
-
value
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
...args
|
|
227
|
-
})
|
|
198
|
+
render: () => {
|
|
199
|
+
const [value, setValue] = useState('1234.5');
|
|
200
|
+
return /*#__PURE__*/_jsx(AmountInput, {
|
|
201
|
+
currencyText: "\u20AC",
|
|
202
|
+
currencyPosition: "right",
|
|
203
|
+
allowDecimals: true,
|
|
204
|
+
thousandsSeparator: true,
|
|
205
|
+
decimalSeparator: ",",
|
|
206
|
+
value: value,
|
|
207
|
+
onChangeText: setValue
|
|
208
|
+
});
|
|
209
|
+
}
|
|
228
210
|
};
|
|
229
211
|
export const ErrorState = {
|
|
230
|
-
|
|
231
|
-
value
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
})
|
|
212
|
+
render: () => {
|
|
213
|
+
const [value, setValue] = useState('1234.56');
|
|
214
|
+
return /*#__PURE__*/_jsx(AmountInput, {
|
|
215
|
+
currencyText: "USD",
|
|
216
|
+
currencyPosition: "left",
|
|
217
|
+
allowDecimals: true,
|
|
218
|
+
thousandsSeparator: true,
|
|
219
|
+
isInvalid: true,
|
|
220
|
+
value: value,
|
|
221
|
+
onChangeText: setValue
|
|
222
|
+
});
|
|
223
|
+
}
|
|
243
224
|
};
|
|
244
225
|
export const DisabledAmountInput = {
|
|
245
|
-
|
|
246
|
-
value
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
})
|
|
226
|
+
render: () => {
|
|
227
|
+
const [value, setValue] = useState('1234.56');
|
|
228
|
+
return /*#__PURE__*/_jsx(AmountInput, {
|
|
229
|
+
currencyText: "USD",
|
|
230
|
+
currencyPosition: "left",
|
|
231
|
+
allowDecimals: true,
|
|
232
|
+
thousandsSeparator: true,
|
|
233
|
+
disabled: true,
|
|
234
|
+
value: value,
|
|
235
|
+
onChangeText: setValue
|
|
236
|
+
});
|
|
237
|
+
}
|
|
258
238
|
};
|
|
259
239
|
export const CustomLengthLimits = {
|
|
260
|
-
|
|
261
|
-
value
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
...args
|
|
274
|
-
})
|
|
240
|
+
render: () => {
|
|
241
|
+
const [value, setValue] = useState('123');
|
|
242
|
+
return /*#__PURE__*/_jsx(AmountInput, {
|
|
243
|
+
currencyText: "$",
|
|
244
|
+
currencyPosition: "left",
|
|
245
|
+
allowDecimals: true,
|
|
246
|
+
thousandsSeparator: true,
|
|
247
|
+
maxIntegerLength: 6,
|
|
248
|
+
maxDecimalLength: 2,
|
|
249
|
+
value: value,
|
|
250
|
+
onChangeText: setValue
|
|
251
|
+
});
|
|
252
|
+
}
|
|
275
253
|
};
|
|
276
254
|
//# sourceMappingURL=AmountInput.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useState","View","AmountInput","jsx","_jsx","ALIGNMENTS","SIZES","size","value","meta","component","id","title","
|
|
1
|
+
{"version":3,"names":["useState","View","AmountInput","jsx","_jsx","ALIGNMENTS","SIZES","size","value","meta","component","id","title","decorators","Story","style","flex","minHeight","alignItems","justifyContent","padding","children","width","maxWidth","parameters","docs","source","language","format","type","argTypes","isInvalid","control","description","args","Base","currencyText","currencyPosition","allowDecimals","thousandsSeparator","maxIntegerLength","maxDecimalLength","render","setValue","onChangeText","WithValue","Size","gap","map","Alignment","align","CurrencyPositionLeft","CurrencyPositionRight","IntegerOnly","WithThousandsSeparator","WithoutThousandsSeparator","DecimalSeparatorComma","decimalSeparator","ErrorState","DisabledAmountInput","disabled","CustomLengthLimits"],"sourceRoot":"../../../../../../src","sources":["lib/Components/core/AmountInput/AmountInput.stories.tsx"],"mappings":";;AACA,SAASA,QAAQ,QAAQ,OAAO;AAChC,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,WAAW,QAAQ,kBAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAG5C,MAAMC,UAA8B,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC;AAEjE,MAAMC,KAAiD,GAAG,CACxD;EAAEC,IAAI,EAAE,IAAI;EAAEC,KAAK,EAAE;AAAU,CAAC,EAChC;EAAED,IAAI,EAAE,IAAI;EAAEC,KAAK,EAAE;AAAS,CAAC,CAChC;AAED,MAAMC,IAAI,GAAG;EACXC,SAAS,EAAER,WAAW;EACtBS,EAAE,EAAE,qBAAqB;EACzBC,KAAK,EAAE,kBAAkB;EACzBC,UAAU,EAAE,CACTC,KAAK,iBACJV,IAAA,CAACH,IAAI;IACHc,KAAK,EAAE;MACLC,IAAI,EAAE,CAAC;MACPC,SAAS,EAAE,EAAE;MACbC,UAAU,EAAE,QAAQ;MACpBC,cAAc,EAAE,QAAQ;MACxBC,OAAO,EAAE;IACX,CAAE;IAAAC,QAAA,eAEFjB,IAAA,CAACH,IAAI;MAACc,KA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,CAAC,SAAS,CAAC;IAE7C,oBACEI,IAAA,CAACF,WAAW;MACVkC,YAAY,EAAC,KAAK;MAClBC,gBAAgB,EAAC,MAAM;MACvBC,aAAa;MACbC,kBAAkB;MAClBqB,QAAQ;MACRpD,KAAK,EAAEA,KAAM;MACboC,YAAY,EAAED;IAAS,CACxB,CAAC;EAEN;AACF,CAAC;AAED,OAAO,MAAMkB,kBAAyB,GAAG;EACvCnB,MAAM,EAAEA,CAAA,KAAM;IACZ,MAAM,CAAClC,KAAK,EAAEmC,QAAQ,CAAC,GAAG3C,QAAQ,CAAC,KAAK,CAAC;IAEzC,oBACEI,IAAA,CAACF,WAAW;MACVkC,YAAY,EAAC,GAAG;MAChBC,gBAAgB,EAAC,MAAM;MACvBC,aAAa;MACbC,kBAAkB;MAClBC,gBAAgB,EAAE,CAAE;MACpBC,gBAAgB,EAAE,CAAE;MACpBjC,KAAK,EAAEA,KAAM;MACboC,YAAY,EAAED;IAAS,CACxB,CAAC;EAEN;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { AVATAR_COLOR_KEYS } from '@ledgerhq/lumen-utils-shared';
|
|
4
3
|
import { Box } from "../../primitives/index.js";
|
|
5
4
|
import { DotIndicator, getDotIndicatorProps } from "../DotIndicator/index.js";
|
|
6
5
|
import { Avatar } from "./Avatar.js";
|
|
7
6
|
import { useResolveAvatarColor } from "./index.js";
|
|
8
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
-
const FallbackAvatar = ({
|
|
10
|
-
identifier,
|
|
11
|
-
...props
|
|
12
|
-
}) => /*#__PURE__*/_jsx(Avatar, {
|
|
13
|
-
...props,
|
|
14
|
-
fallbackColor: useResolveAvatarColor(identifier)
|
|
15
|
-
});
|
|
16
8
|
const meta = {
|
|
17
9
|
component: Avatar,
|
|
18
10
|
id: 'rnative-avatar',
|
|
@@ -35,6 +27,13 @@ const getInitials = index => {
|
|
|
35
27
|
return left + right;
|
|
36
28
|
};
|
|
37
29
|
export const Base = {
|
|
30
|
+
parameters: {
|
|
31
|
+
docs: {
|
|
32
|
+
source: {
|
|
33
|
+
type: 'dynamic'
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
38
37
|
args: {
|
|
39
38
|
src: exampleSrc,
|
|
40
39
|
alt: 'avatar',
|
|
@@ -42,16 +41,16 @@ export const Base = {
|
|
|
42
41
|
},
|
|
43
42
|
render: args => /*#__PURE__*/_jsx(Avatar, {
|
|
44
43
|
...args
|
|
45
|
-
})
|
|
44
|
+
})
|
|
45
|
+
};
|
|
46
|
+
export const SizeShowcase = {
|
|
46
47
|
parameters: {
|
|
47
48
|
docs: {
|
|
48
49
|
source: {
|
|
49
|
-
|
|
50
|
+
type: 'dynamic'
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
export const SizeShowcase = {
|
|
53
|
+
},
|
|
55
54
|
render: () => /*#__PURE__*/_jsxs(Box, {
|
|
56
55
|
lx: {
|
|
57
56
|
gap: 's8'
|
|
@@ -92,46 +91,47 @@ export const SizeShowcase = {
|
|
|
92
91
|
})
|
|
93
92
|
};
|
|
94
93
|
export const FallbackShowcase = {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
code: `function UserAvatar({ user }) {
|
|
99
|
-
return <Avatar fallbackColor={useResolveAvatarColor(user.id)} alt={user.name} />;
|
|
100
|
-
}`
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
render: () => /*#__PURE__*/_jsxs(Box, {
|
|
105
|
-
lx: {
|
|
106
|
-
gap: 's16'
|
|
107
|
-
},
|
|
108
|
-
children: [/*#__PURE__*/_jsxs(Box, {
|
|
94
|
+
render: () => {
|
|
95
|
+
const fallbackColors = [useResolveAvatarColor('user-0'), useResolveAvatarColor('user-1'), useResolveAvatarColor('user-2'), useResolveAvatarColor('user-3'), useResolveAvatarColor('user-4'), useResolveAvatarColor('user-5'), useResolveAvatarColor('user-6'), useResolveAvatarColor('user-7')];
|
|
96
|
+
return /*#__PURE__*/_jsxs(Box, {
|
|
109
97
|
lx: {
|
|
110
|
-
flexDirection: 'row',
|
|
111
|
-
flexWrap: 'wrap',
|
|
112
98
|
gap: 's16'
|
|
113
99
|
},
|
|
114
|
-
children: [
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
100
|
+
children: [/*#__PURE__*/_jsxs(Box, {
|
|
101
|
+
lx: {
|
|
102
|
+
flexDirection: 'row',
|
|
103
|
+
flexWrap: 'wrap',
|
|
104
|
+
gap: 's16'
|
|
105
|
+
},
|
|
106
|
+
children: [fallbackColors.map((fallbackColor, i) => /*#__PURE__*/_jsx(Avatar, {
|
|
107
|
+
fallbackColor: fallbackColor,
|
|
108
|
+
fallbackText: getInitials(i),
|
|
109
|
+
alt: getInitials(i)
|
|
110
|
+
}, i)), /*#__PURE__*/_jsx(Avatar, {
|
|
111
|
+
fallbackText: getInitials(fallbackColors.length)
|
|
112
|
+
})]
|
|
113
|
+
}), /*#__PURE__*/_jsxs(Box, {
|
|
114
|
+
lx: {
|
|
115
|
+
flexDirection: 'row',
|
|
116
|
+
flexWrap: 'wrap',
|
|
117
|
+
gap: 's16'
|
|
118
|
+
},
|
|
119
|
+
children: [fallbackColors.map((fallbackColor, i) => /*#__PURE__*/_jsx(Avatar, {
|
|
120
|
+
fallbackColor: fallbackColor,
|
|
121
|
+
alt: `User ${i}`
|
|
122
|
+
}, i)), /*#__PURE__*/_jsx(Avatar, {})]
|
|
120
123
|
})]
|
|
121
|
-
})
|
|
122
|
-
|
|
123
|
-
flexDirection: 'row',
|
|
124
|
-
flexWrap: 'wrap',
|
|
125
|
-
gap: 's16'
|
|
126
|
-
},
|
|
127
|
-
children: [AVATAR_COLOR_KEYS.map((_, i) => /*#__PURE__*/_jsx(FallbackAvatar, {
|
|
128
|
-
identifier: `user-${i}`,
|
|
129
|
-
alt: `User ${i}`
|
|
130
|
-
}, i)), /*#__PURE__*/_jsx(Avatar, {})]
|
|
131
|
-
})]
|
|
132
|
-
})
|
|
124
|
+
});
|
|
125
|
+
}
|
|
133
126
|
};
|
|
134
127
|
export const AppearanceShowcase = {
|
|
128
|
+
parameters: {
|
|
129
|
+
docs: {
|
|
130
|
+
source: {
|
|
131
|
+
type: 'dynamic'
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
135
|
render: () => /*#__PURE__*/_jsxs(Box, {
|
|
136
136
|
lx: {
|
|
137
137
|
flexDirection: 'row',
|
|
@@ -153,6 +153,13 @@ export const AppearanceShowcase = {
|
|
|
153
153
|
})
|
|
154
154
|
};
|
|
155
155
|
export const NotificationShowcase = {
|
|
156
|
+
parameters: {
|
|
157
|
+
docs: {
|
|
158
|
+
source: {
|
|
159
|
+
type: 'dynamic'
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
156
163
|
render: () => /*#__PURE__*/_jsxs(Box, {
|
|
157
164
|
lx: {
|
|
158
165
|
flexDirection: 'row',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["Box","DotIndicator","getDotIndicatorProps","Avatar","useResolveAvatarColor","jsx","_jsx","jsxs","_jsxs","meta","component","id","title","parameters","docs","source","language","format","type","exampleSrc","getInitials","index","left","String","fromCharCode","right","Base","args","src","alt","size","render","SizeShowcase","lx","gap","children","alignItems","flexDirection","map","fallbackText","FallbackShowcase","fallbackColors","flexWrap","fallbackColor","i","length","AppearanceShowcase","appearance","NotificationShowcase"],"sourceRoot":"../../../../../../src","sources":["lib/Components/core/Avatar/Avatar.stories.tsx"],"mappings":";;AAEA,SAASA,GAAG,QAAQ,2BAAkB;AACtC,SAASC,YAAY,EAAEC,oBAAoB,QAAQ,0BAAiB;AACpE,SAASC,MAAM,QAAQ,aAAU;AACjC,SAASC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AM;QAACyB,GAAG,EAAET,UAAW;QAACU,GAAG,EAAC,QAAQ;QAACC,IAAI,EAAC;MAAI,CAAE;IAAC,CACtC,CAAC;EAAA,CACZ;AAET,CAAC","ignoreList":[]}
|
|
@@ -11,7 +11,7 @@ const meta = {
|
|
|
11
11
|
source: {
|
|
12
12
|
language: 'tsx',
|
|
13
13
|
format: true,
|
|
14
|
-
type: '
|
|
14
|
+
type: 'dynamic'
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -27,14 +27,7 @@ export const Base = {
|
|
|
27
27
|
},
|
|
28
28
|
render: args => /*#__PURE__*/_jsx(AvatarButton, {
|
|
29
29
|
...args
|
|
30
|
-
})
|
|
31
|
-
parameters: {
|
|
32
|
-
docs: {
|
|
33
|
-
source: {
|
|
34
|
-
code: `<AvatarButton src="https://example.com" alt="Open user menu" onPress={openMenu} />`
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
30
|
+
})
|
|
38
31
|
};
|
|
39
32
|
export const Fallback = {
|
|
40
33
|
args: {
|