@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
|
@@ -87,6 +87,7 @@ export default meta;
|
|
|
87
87
|
type Story = StoryObj<typeof Banner>;
|
|
88
88
|
|
|
89
89
|
export const Base: Story = {
|
|
90
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
90
91
|
args: {
|
|
91
92
|
appearance: 'info',
|
|
92
93
|
title: 'Information Banner',
|
|
@@ -102,23 +103,10 @@ export const Base: Story = {
|
|
|
102
103
|
/>
|
|
103
104
|
</Box>
|
|
104
105
|
),
|
|
105
|
-
parameters: {
|
|
106
|
-
docs: {
|
|
107
|
-
source: {
|
|
108
|
-
code: `
|
|
109
|
-
<Banner
|
|
110
|
-
appearance="info"
|
|
111
|
-
title="Information Banner"
|
|
112
|
-
onClose={() => console.log('Closed')}
|
|
113
|
-
description="This is additional information about the banner."
|
|
114
|
-
/>
|
|
115
|
-
`,
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
},
|
|
119
106
|
};
|
|
120
107
|
|
|
121
108
|
export const WithDescription: Story = {
|
|
109
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
122
110
|
args: {
|
|
123
111
|
appearance: 'info',
|
|
124
112
|
title: 'Banner with Description',
|
|
@@ -129,24 +117,10 @@ export const WithDescription: Story = {
|
|
|
129
117
|
<Banner {...args} />
|
|
130
118
|
</Box>
|
|
131
119
|
),
|
|
132
|
-
parameters: {
|
|
133
|
-
docs: {
|
|
134
|
-
source: {
|
|
135
|
-
code: `
|
|
136
|
-
<Banner
|
|
137
|
-
appearance="info"
|
|
138
|
-
title="Banner with Description"
|
|
139
|
-
description="This is additional information about the banner."
|
|
140
|
-
onClose={() => console.log('Closed')}
|
|
141
|
-
closeAriaLabel="Close banner"
|
|
142
|
-
/>
|
|
143
|
-
`,
|
|
144
|
-
},
|
|
145
|
-
},
|
|
146
|
-
},
|
|
147
120
|
};
|
|
148
121
|
|
|
149
122
|
export const WithActions: Story = {
|
|
123
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
150
124
|
args: {
|
|
151
125
|
appearance: 'info',
|
|
152
126
|
title: 'Banner with Actions',
|
|
@@ -158,42 +132,10 @@ export const WithActions: Story = {
|
|
|
158
132
|
<Banner {...args} />
|
|
159
133
|
</Box>
|
|
160
134
|
),
|
|
161
|
-
parameters: {
|
|
162
|
-
docs: {
|
|
163
|
-
source: {
|
|
164
|
-
code: `
|
|
165
|
-
<Banner
|
|
166
|
-
appearance="info"
|
|
167
|
-
title="Banner with Full Features"
|
|
168
|
-
description="This is additional information about the banner."
|
|
169
|
-
primaryAction={(
|
|
170
|
-
<Button
|
|
171
|
-
appearance="gray"
|
|
172
|
-
size="sm"
|
|
173
|
-
onPress={() => console.log('Primary clicked')}
|
|
174
|
-
>
|
|
175
|
-
Primary
|
|
176
|
-
</Button>
|
|
177
|
-
)}
|
|
178
|
-
secondaryAction={(
|
|
179
|
-
<Button
|
|
180
|
-
appearance="no-background"
|
|
181
|
-
size="sm"
|
|
182
|
-
onPress={() => console.log('Secondary clicked')}
|
|
183
|
-
>
|
|
184
|
-
Secondary
|
|
185
|
-
</Button>
|
|
186
|
-
)}
|
|
187
|
-
onClose={() => console.log('Closed')}
|
|
188
|
-
closeAriaLabel="Close banner"
|
|
189
|
-
/>
|
|
190
|
-
`,
|
|
191
|
-
},
|
|
192
|
-
},
|
|
193
|
-
},
|
|
194
135
|
};
|
|
195
136
|
|
|
196
137
|
export const WithFullFeatures: Story = {
|
|
138
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
197
139
|
args: {
|
|
198
140
|
appearance: 'info',
|
|
199
141
|
title: 'Banner with Full Features',
|
|
@@ -224,42 +166,10 @@ export const WithFullFeatures: Story = {
|
|
|
224
166
|
<Banner {...args} />
|
|
225
167
|
</Box>
|
|
226
168
|
),
|
|
227
|
-
parameters: {
|
|
228
|
-
docs: {
|
|
229
|
-
source: {
|
|
230
|
-
code: `
|
|
231
|
-
<Banner
|
|
232
|
-
appearance="info"
|
|
233
|
-
title="Banner with Full Features"
|
|
234
|
-
description="This is additional information about the banner."
|
|
235
|
-
primaryAction={(
|
|
236
|
-
<Button
|
|
237
|
-
appearance="gray"
|
|
238
|
-
size="sm"
|
|
239
|
-
onPress={() => console.log('Primary clicked')}
|
|
240
|
-
>
|
|
241
|
-
Primary
|
|
242
|
-
</Button>
|
|
243
|
-
)}
|
|
244
|
-
secondaryAction={(
|
|
245
|
-
<Button
|
|
246
|
-
appearance="no-background"
|
|
247
|
-
size="sm"
|
|
248
|
-
onPress={() => console.log('Secondary clicked')}
|
|
249
|
-
>
|
|
250
|
-
Secondary
|
|
251
|
-
</Button>
|
|
252
|
-
)}
|
|
253
|
-
onClose={() => console.log('Closed')}
|
|
254
|
-
closeAriaLabel="Close banner"
|
|
255
|
-
/>
|
|
256
|
-
`,
|
|
257
|
-
},
|
|
258
|
-
},
|
|
259
|
-
},
|
|
260
169
|
};
|
|
261
170
|
|
|
262
171
|
export const AppearanceShowcase: Story = {
|
|
172
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
263
173
|
render: () => {
|
|
264
174
|
const appearances = [
|
|
265
175
|
{ name: 'Info', appearance: 'info' },
|
|
@@ -294,6 +204,7 @@ export const AppearanceShowcase: Story = {
|
|
|
294
204
|
};
|
|
295
205
|
|
|
296
206
|
export const ContentVariations: Story = {
|
|
207
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
297
208
|
render: () => (
|
|
298
209
|
<Box
|
|
299
210
|
lx={{
|
|
@@ -376,6 +287,7 @@ export const ContentVariations: Story = {
|
|
|
376
287
|
};
|
|
377
288
|
|
|
378
289
|
export const NaturalWidth: Story = {
|
|
290
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
379
291
|
render: () => (
|
|
380
292
|
<Box lx={{ flexDirection: 'column', gap: 's16' }}>
|
|
381
293
|
<Text typography='body3' lx={{ color: 'muted' }}>
|
|
@@ -401,6 +313,7 @@ export const NaturalWidth: Story = {
|
|
|
401
313
|
};
|
|
402
314
|
|
|
403
315
|
export const ResponsiveLayout: Story = {
|
|
316
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
404
317
|
render: () => (
|
|
405
318
|
<Box
|
|
406
319
|
lx={{
|
|
@@ -34,7 +34,7 @@ Buttons are key interactive elements that trigger actions and guide users throug
|
|
|
34
34
|
|
|
35
35
|
### Appearance
|
|
36
36
|
|
|
37
|
-
There are
|
|
37
|
+
There are seven button appearances, which indicate its emphasis. From strongest to weakest:
|
|
38
38
|
|
|
39
39
|
- accent
|
|
40
40
|
- base (default)
|
|
@@ -42,6 +42,7 @@ There are six button appearances, which indicate its emphasis. From strongest to
|
|
|
42
42
|
- transparent
|
|
43
43
|
- no-background
|
|
44
44
|
- red
|
|
45
|
+
- green
|
|
45
46
|
|
|
46
47
|
<Canvas of={ButtonStories.AppearanceShowcase} />
|
|
47
48
|
|
|
@@ -13,7 +13,7 @@ const meta = {
|
|
|
13
13
|
source: {
|
|
14
14
|
language: 'tsx',
|
|
15
15
|
format: true,
|
|
16
|
-
type: '
|
|
16
|
+
type: 'code',
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
19
|
},
|
|
@@ -42,9 +42,11 @@ type ButtonAppearance =
|
|
|
42
42
|
| 'accent'
|
|
43
43
|
| 'transparent'
|
|
44
44
|
| 'no-background'
|
|
45
|
-
| 'red'
|
|
45
|
+
| 'red'
|
|
46
|
+
| 'green';
|
|
46
47
|
|
|
47
48
|
export const Base: Story = {
|
|
49
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
48
50
|
args: {
|
|
49
51
|
appearance: 'base',
|
|
50
52
|
children: 'Base Button',
|
|
@@ -53,21 +55,15 @@ export const Base: Story = {
|
|
|
53
55
|
};
|
|
54
56
|
|
|
55
57
|
export const IconText: Story = {
|
|
56
|
-
|
|
57
|
-
appearance
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
parameters: {
|
|
62
|
-
docs: {
|
|
63
|
-
source: {
|
|
64
|
-
code: `<Button appearance="base" icon={Plus}>Add Item</Button>`,
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
},
|
|
58
|
+
render: () => (
|
|
59
|
+
<Button appearance='base' icon={Plus}>
|
|
60
|
+
Add Item
|
|
61
|
+
</Button>
|
|
62
|
+
),
|
|
68
63
|
};
|
|
69
64
|
|
|
70
65
|
export const Loading: Story = {
|
|
66
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
71
67
|
args: {
|
|
72
68
|
appearance: 'base',
|
|
73
69
|
children: 'Loading...',
|
|
@@ -76,6 +72,7 @@ export const Loading: Story = {
|
|
|
76
72
|
};
|
|
77
73
|
|
|
78
74
|
export const AppearanceShowcase: Story = {
|
|
75
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
79
76
|
args: {
|
|
80
77
|
children: null,
|
|
81
78
|
},
|
|
@@ -87,6 +84,7 @@ export const AppearanceShowcase: Story = {
|
|
|
87
84
|
{ name: 'Transparent', appearance: 'transparent' },
|
|
88
85
|
{ name: 'No Background', appearance: 'no-background' },
|
|
89
86
|
{ name: 'Red', appearance: 'red' },
|
|
87
|
+
{ name: 'Green', appearance: 'green' },
|
|
90
88
|
];
|
|
91
89
|
|
|
92
90
|
return (
|
|
@@ -135,6 +133,7 @@ export const SizesShowcase: Story = {
|
|
|
135
133
|
};
|
|
136
134
|
|
|
137
135
|
export const StatesShowcase: Story = {
|
|
136
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
138
137
|
args: {
|
|
139
138
|
children: null,
|
|
140
139
|
},
|
|
@@ -87,6 +87,12 @@ Cards default to full width. Use `lx` prop to control sizing: `maxWidth: 's320'`
|
|
|
87
87
|
|
|
88
88
|
<Canvas of={CardStories.LayoutShowcase} />
|
|
89
89
|
|
|
90
|
+
### Vertical layout
|
|
91
|
+
|
|
92
|
+
Cards stack their content horizontally by default. To build a vertical card, with the leading visual above the text, override the layout of `CardLeading` with `lx` (`flexDirection: 'column'`, `alignItems: 'flex-start'`, `flex: 0`).
|
|
93
|
+
|
|
94
|
+
<Canvas of={CardStories.WithVerticalLayout} />
|
|
95
|
+
|
|
90
96
|
## Compositions
|
|
91
97
|
|
|
92
98
|
Cards support various compositions by combining sub-components differently.
|
|
@@ -65,6 +65,7 @@ export default meta;
|
|
|
65
65
|
type Story = StoryObj<typeof Card>;
|
|
66
66
|
|
|
67
67
|
export const Base: Story = {
|
|
68
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
68
69
|
args: {
|
|
69
70
|
lx: { width: 's320' },
|
|
70
71
|
children: null,
|
|
@@ -91,37 +92,38 @@ export const Base: Story = {
|
|
|
91
92
|
</CardFooter>
|
|
92
93
|
</Card>
|
|
93
94
|
),
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
<CryptoIcon ledgerId="bitcoin" ticker="BTC" size={48} />
|
|
102
|
-
<CardContent>
|
|
103
|
-
<CardContentTitle>Bitcoin</CardContentTitle>
|
|
104
|
-
<CardContentDescription>BTC</CardContentDescription>
|
|
105
|
-
</CardContent>
|
|
106
|
-
</CardLeading>
|
|
107
|
-
<CardTrailing>
|
|
108
|
-
<CardContent>
|
|
109
|
-
<CardContentTitle>$43,210.00</CardContentTitle>
|
|
110
|
-
<CardContentDescription>0.5 BTC</CardContentDescription>
|
|
111
|
-
</CardContent>
|
|
112
|
-
</CardTrailing>
|
|
113
|
-
</CardHeader>
|
|
114
|
-
<CardFooter>
|
|
115
|
-
<CardContentDescription>Balance desc</CardContentDescription>
|
|
116
|
-
</CardFooter>
|
|
117
|
-
</Card>
|
|
118
|
-
`,
|
|
119
|
-
},
|
|
120
|
-
},
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export const WithVerticalLayout: Story = {
|
|
98
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
99
|
+
args: {
|
|
100
|
+
lx: { width: 's112' },
|
|
101
|
+
children: null,
|
|
121
102
|
},
|
|
103
|
+
render: (args) => (
|
|
104
|
+
<Card {...args}>
|
|
105
|
+
<CardHeader>
|
|
106
|
+
<CardLeading
|
|
107
|
+
lx={{
|
|
108
|
+
flex: 0,
|
|
109
|
+
flexDirection: 'column',
|
|
110
|
+
alignItems: 'flex-start',
|
|
111
|
+
gap: 's8',
|
|
112
|
+
}}
|
|
113
|
+
>
|
|
114
|
+
<CryptoIcon ledgerId='bitcoin' ticker='BTC' size={48} />
|
|
115
|
+
<CardContent>
|
|
116
|
+
<CardContentTitle>Title</CardContentTitle>
|
|
117
|
+
<CardContentDescription>Description</CardContentDescription>
|
|
118
|
+
</CardContent>
|
|
119
|
+
</CardLeading>
|
|
120
|
+
</CardHeader>
|
|
121
|
+
</Card>
|
|
122
|
+
),
|
|
122
123
|
};
|
|
123
124
|
|
|
124
125
|
export const StatesShowcase: Story = {
|
|
126
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
125
127
|
args: {
|
|
126
128
|
children: null,
|
|
127
129
|
},
|
|
@@ -248,6 +250,7 @@ export const StatesShowcase: Story = {
|
|
|
248
250
|
};
|
|
249
251
|
|
|
250
252
|
export const FooterAppearance: Story = {
|
|
253
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
251
254
|
args: {
|
|
252
255
|
children: null,
|
|
253
256
|
},
|
|
@@ -374,6 +377,7 @@ export const ExpandableShowcase: Story = {
|
|
|
374
377
|
};
|
|
375
378
|
|
|
376
379
|
export const LayoutShowcase: Story = {
|
|
380
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
377
381
|
args: {
|
|
378
382
|
children: null,
|
|
379
383
|
},
|
|
@@ -57,109 +57,47 @@ type Story = StoryObj<typeof CardButton>;
|
|
|
57
57
|
type CardButtonAppearance = 'base' | 'outline';
|
|
58
58
|
|
|
59
59
|
export const Base: Story = {
|
|
60
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
60
61
|
args: {
|
|
61
62
|
appearance: 'base',
|
|
62
63
|
title: 'Basic Card Button',
|
|
63
64
|
},
|
|
64
65
|
render: (args) => <CardButton {...args} />,
|
|
65
|
-
parameters: {
|
|
66
|
-
docs: {
|
|
67
|
-
source: {
|
|
68
|
-
code: `
|
|
69
|
-
<CardButton
|
|
70
|
-
appearance="base"
|
|
71
|
-
title="Basic Card Button"
|
|
72
|
-
/>
|
|
73
|
-
`,
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
66
|
};
|
|
78
67
|
|
|
79
68
|
export const WithIcon: Story = {
|
|
80
|
-
|
|
81
|
-
appearance
|
|
82
|
-
|
|
83
|
-
icon: Settings,
|
|
84
|
-
},
|
|
85
|
-
parameters: {
|
|
86
|
-
docs: {
|
|
87
|
-
source: {
|
|
88
|
-
code: `
|
|
89
|
-
<CardButton
|
|
90
|
-
appearance="base"
|
|
91
|
-
title="Settings"
|
|
92
|
-
icon={Settings}
|
|
93
|
-
/>
|
|
94
|
-
`,
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
},
|
|
69
|
+
render: () => (
|
|
70
|
+
<CardButton appearance='base' title='Settings' icon={Settings} />
|
|
71
|
+
),
|
|
98
72
|
};
|
|
99
73
|
|
|
100
74
|
export const WithDescription: Story = {
|
|
75
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
101
76
|
args: {
|
|
102
77
|
appearance: 'base',
|
|
103
78
|
title: 'Payment Method',
|
|
104
79
|
description: 'Add or manage your payment options',
|
|
105
80
|
},
|
|
106
|
-
parameters: {
|
|
107
|
-
docs: {
|
|
108
|
-
source: {
|
|
109
|
-
code: `
|
|
110
|
-
<CardButton
|
|
111
|
-
appearance="base"
|
|
112
|
-
title="Payment Method"
|
|
113
|
-
description="Add or manage your payment options"
|
|
114
|
-
/>
|
|
115
|
-
`,
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
},
|
|
119
81
|
};
|
|
120
82
|
|
|
121
83
|
export const WithoutChevron: Story = {
|
|
84
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
122
85
|
args: {
|
|
123
86
|
appearance: 'base',
|
|
124
87
|
title: 'Navigate Forward',
|
|
125
88
|
hideChevron: true,
|
|
126
89
|
},
|
|
127
|
-
parameters: {
|
|
128
|
-
docs: {
|
|
129
|
-
source: {
|
|
130
|
-
code: `
|
|
131
|
-
<CardButton
|
|
132
|
-
appearance="base"
|
|
133
|
-
title="Navigate Forward"
|
|
134
|
-
hideChevron
|
|
135
|
-
/>
|
|
136
|
-
`,
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
90
|
};
|
|
141
91
|
|
|
142
92
|
export const FullFeatures: Story = {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
source: {
|
|
152
|
-
code: `
|
|
153
|
-
<CardButton
|
|
154
|
-
appearance="base"
|
|
155
|
-
title="Account Settings"
|
|
156
|
-
description="Manage your account preferences and security"
|
|
157
|
-
icon={Settings}
|
|
158
|
-
/>
|
|
159
|
-
`,
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
|
-
},
|
|
93
|
+
render: () => (
|
|
94
|
+
<CardButton
|
|
95
|
+
appearance='base'
|
|
96
|
+
title='Account Settings'
|
|
97
|
+
description='Manage your account preferences and security'
|
|
98
|
+
icon={Settings}
|
|
99
|
+
/>
|
|
100
|
+
),
|
|
163
101
|
};
|
|
164
102
|
|
|
165
103
|
export const NaturalWidth: Story = {
|
|
@@ -182,20 +120,6 @@ export const NaturalWidth: Story = {
|
|
|
182
120
|
/>
|
|
183
121
|
</Box>
|
|
184
122
|
),
|
|
185
|
-
parameters: {
|
|
186
|
-
docs: {
|
|
187
|
-
source: {
|
|
188
|
-
code: `
|
|
189
|
-
<CardButton
|
|
190
|
-
appearance="base"
|
|
191
|
-
title="Natural Width Example"
|
|
192
|
-
description="This card button demonstrates how it flows naturally to fill the full width of its parent container without any max-width constraints"
|
|
193
|
-
icon={CreditCard}
|
|
194
|
-
/>
|
|
195
|
-
`,
|
|
196
|
-
},
|
|
197
|
-
},
|
|
198
|
-
},
|
|
199
123
|
};
|
|
200
124
|
|
|
201
125
|
export const AppearanceShowcase: Story = {
|
|
@@ -65,23 +65,6 @@ export const Base: Story = {
|
|
|
65
65
|
</ContentBanner>
|
|
66
66
|
</Box>
|
|
67
67
|
),
|
|
68
|
-
parameters: {
|
|
69
|
-
docs: {
|
|
70
|
-
source: {
|
|
71
|
-
code: `
|
|
72
|
-
<ContentBanner>
|
|
73
|
-
<Spot icon={Settings} size={48} />
|
|
74
|
-
<ContentBannerContent>
|
|
75
|
-
<ContentBannerTitle>Content Banner</ContentBannerTitle>
|
|
76
|
-
<ContentBannerDescription>
|
|
77
|
-
This is a description for the content banner.
|
|
78
|
-
</ContentBannerDescription>
|
|
79
|
-
</ContentBannerContent>
|
|
80
|
-
</ContentBanner>
|
|
81
|
-
`,
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
68
|
};
|
|
86
69
|
|
|
87
70
|
export const WithClose: Story = {
|
|
@@ -180,6 +163,7 @@ export const ContentVariationsShowcase: Story = {
|
|
|
180
163
|
};
|
|
181
164
|
|
|
182
165
|
export const WithStepper: Story = {
|
|
166
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
183
167
|
args: {
|
|
184
168
|
children: null,
|
|
185
169
|
},
|
|
@@ -46,6 +46,7 @@ export default meta;
|
|
|
46
46
|
type Story = StoryObj<typeof DescriptionItem>;
|
|
47
47
|
|
|
48
48
|
export const Base: Story = {
|
|
49
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
49
50
|
args: {
|
|
50
51
|
children: null,
|
|
51
52
|
size: 'md',
|
|
@@ -63,6 +64,7 @@ export const Base: Story = {
|
|
|
63
64
|
};
|
|
64
65
|
|
|
65
66
|
export const SizeShowcase: Story = {
|
|
67
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
66
68
|
args: {
|
|
67
69
|
children: null,
|
|
68
70
|
size: 'md',
|
|
@@ -109,6 +111,7 @@ export const SizeShowcase: Story = {
|
|
|
109
111
|
};
|
|
110
112
|
|
|
111
113
|
export const TrailingVariants: Story = {
|
|
114
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
112
115
|
args: {
|
|
113
116
|
children: null,
|
|
114
117
|
},
|
|
@@ -197,6 +200,7 @@ export const WithInfoIcon: Story = {
|
|
|
197
200
|
};
|
|
198
201
|
|
|
199
202
|
export const PriorityShowcase: Story = {
|
|
203
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
200
204
|
args: {
|
|
201
205
|
children: null,
|
|
202
206
|
},
|
|
@@ -43,6 +43,7 @@ export default meta;
|
|
|
43
43
|
type Story = StoryObj<typeof DotCount>;
|
|
44
44
|
|
|
45
45
|
export const Base: Story = {
|
|
46
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
46
47
|
args: {
|
|
47
48
|
value: 3,
|
|
48
49
|
size: 'lg',
|
|
@@ -51,6 +52,7 @@ export const Base: Story = {
|
|
|
51
52
|
};
|
|
52
53
|
|
|
53
54
|
export const SizeShowcase: Story = {
|
|
55
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
54
56
|
args: { value: 5 },
|
|
55
57
|
render: () => (
|
|
56
58
|
<Box lx={{ flexDirection: 'row', alignItems: 'center', gap: 's12' }}>
|
|
@@ -61,6 +63,7 @@ export const SizeShowcase: Story = {
|
|
|
61
63
|
};
|
|
62
64
|
|
|
63
65
|
export const AppearanceShowcase: Story = {
|
|
66
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
64
67
|
args: { value: 3 },
|
|
65
68
|
render: () => (
|
|
66
69
|
<Box lx={{ flexDirection: 'row', alignItems: 'center', gap: 's12' }}>
|
|
@@ -72,6 +75,7 @@ export const AppearanceShowcase: Story = {
|
|
|
72
75
|
};
|
|
73
76
|
|
|
74
77
|
export const OverflowShowcase: Story = {
|
|
78
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
75
79
|
args: { value: 100 },
|
|
76
80
|
render: () => (
|
|
77
81
|
<Box lx={{ flexDirection: 'row', alignItems: 'center', gap: 's12' }}>
|
|
@@ -27,6 +27,14 @@ type Story = StoryObj<typeof DotIcon>;
|
|
|
27
27
|
const parentSrc = 'https://crypto-icons.ledger.com/ADA.png';
|
|
28
28
|
|
|
29
29
|
export const Base: Story = {
|
|
30
|
+
parameters: {
|
|
31
|
+
docs: { source: { type: 'dynamic' } },
|
|
32
|
+
jsx: {
|
|
33
|
+
functionValue: (fn: unknown) =>
|
|
34
|
+
Object.entries({ ArrowDown }).find(([, icon]) => icon === fn)?.[0] ??
|
|
35
|
+
'() => {}',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
30
38
|
args: {
|
|
31
39
|
appearance: 'success',
|
|
32
40
|
icon: ArrowDown,
|
|
@@ -36,12 +36,14 @@ export default meta;
|
|
|
36
36
|
type Story = StoryObj<typeof DotIndicator>;
|
|
37
37
|
|
|
38
38
|
export const Base: Story = {
|
|
39
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
39
40
|
args: {
|
|
40
41
|
appearance: 'base',
|
|
41
42
|
},
|
|
42
43
|
};
|
|
43
44
|
|
|
44
45
|
export const SizeShowcase: Story = {
|
|
46
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
45
47
|
render: () => (
|
|
46
48
|
<Box lx={{ flexDirection: 'row', alignItems: 'center', gap: 's12' }}>
|
|
47
49
|
<DotIndicator size='sm' />
|
|
@@ -53,6 +55,7 @@ export const SizeShowcase: Story = {
|
|
|
53
55
|
};
|
|
54
56
|
|
|
55
57
|
export const AppearanceShowcase: Story = {
|
|
58
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
56
59
|
render: () => (
|
|
57
60
|
<Box lx={{ flexDirection: 'row', alignItems: 'center', gap: 's12' }}>
|
|
58
61
|
<DotIndicator appearance='base' />
|
|
@@ -28,6 +28,7 @@ const parentSrc = 'https://crypto-icons.ledger.com/ADA.png';
|
|
|
28
28
|
const dotSrc = 'https://crypto-icons.ledger.com/BTC.png';
|
|
29
29
|
|
|
30
30
|
export const Base: Story = {
|
|
31
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
31
32
|
args: {
|
|
32
33
|
src: dotSrc,
|
|
33
34
|
alt: 'Ethereum network',
|
|
@@ -79,6 +80,7 @@ export const PinShowcase: Story = {
|
|
|
79
80
|
};
|
|
80
81
|
|
|
81
82
|
export const ShapeShowcase: Story = {
|
|
83
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
82
84
|
args: { src: dotSrc, alt: 'Shape showcase' },
|
|
83
85
|
render: () => (
|
|
84
86
|
<Box lx={{ flexDirection: 'column', alignItems: 'center', gap: 's48' }}>
|
|
@@ -112,6 +114,7 @@ export const DisabledShowcase: Story = {
|
|
|
112
114
|
};
|
|
113
115
|
|
|
114
116
|
export const SizeShowcase: Story = {
|
|
117
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
115
118
|
args: { src: dotSrc, alt: 'Size showcase' },
|
|
116
119
|
render: () => (
|
|
117
120
|
<Box lx={{ flexDirection: 'column', gap: 's40' }}>
|