@ledgerhq/lumen-ui-rnative 0.1.68 → 0.1.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module/lib/Components/animations/Pulse/Pulse.stories.js +7 -0
- package/dist/module/lib/Components/animations/Pulse/Pulse.stories.js.map +1 -1
- package/dist/module/lib/Components/animations/Spin/Spin.stories.js +7 -0
- package/dist/module/lib/Components/animations/Spin/Spin.stories.js.map +1 -1
- package/dist/module/lib/Components/core/AddressInput/AddressInput.stories.js +129 -136
- package/dist/module/lib/Components/core/AddressInput/AddressInput.stories.js.map +1 -1
- package/dist/module/lib/Components/core/AmountDisplay/AmountDisplay.stories.js +12 -6
- package/dist/module/lib/Components/core/AmountDisplay/AmountDisplay.stories.js.map +1 -1
- package/dist/module/lib/Components/core/AmountInput/AmountInput.stories.js +154 -176
- package/dist/module/lib/Components/core/AmountInput/AmountInput.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Avatar/Avatar.stories.js +54 -47
- package/dist/module/lib/Components/core/Avatar/Avatar.stories.js.map +1 -1
- package/dist/module/lib/Components/core/AvatarButton/AvatarButton.stories.js +2 -9
- package/dist/module/lib/Components/core/AvatarButton/AvatarButton.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Banner/Banner.stories.js +48 -87
- package/dist/module/lib/Components/core/Banner/Banner.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Button/Button.figma.js +2 -1
- package/dist/module/lib/Components/core/Button/Button.figma.js.map +1 -1
- package/dist/module/lib/Components/core/Button/Button.mdx +2 -1
- package/dist/module/lib/Components/core/Button/Button.stories.js +34 -10
- package/dist/module/lib/Components/core/Button/Button.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Card/Card.mdx +6 -0
- package/dist/module/lib/Components/core/Card/Card.stories.js +63 -24
- package/dist/module/lib/Components/core/Card/Card.stories.js.map +1 -1
- package/dist/module/lib/Components/core/CardButton/CardButton.stories.js +27 -85
- package/dist/module/lib/Components/core/CardButton/CardButton.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Checkbox/Checkbox.stories.js +1 -1
- package/dist/module/lib/Components/core/ContentBanner/ContentBanner.stories.js +8 -18
- package/dist/module/lib/Components/core/ContentBanner/ContentBanner.stories.js.map +1 -1
- package/dist/module/lib/Components/core/DescriptionItem/DescriptionItem.stories.js +28 -0
- package/dist/module/lib/Components/core/DescriptionItem/DescriptionItem.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Divider/Divider.stories.js +7 -0
- package/dist/module/lib/Components/core/Divider/Divider.stories.js.map +1 -1
- package/dist/module/lib/Components/core/DotCount/DotCount.stories.js +28 -0
- package/dist/module/lib/Components/core/DotCount/DotCount.stories.js.map +1 -1
- package/dist/module/lib/Components/core/DotIcon/DotIcon.stories.js +12 -0
- package/dist/module/lib/Components/core/DotIcon/DotIcon.stories.js.map +1 -1
- package/dist/module/lib/Components/core/DotIndicator/DotIndicator.stories.js +21 -0
- package/dist/module/lib/Components/core/DotIndicator/DotIndicator.stories.js.map +1 -1
- package/dist/module/lib/Components/core/DotSymbol/DotSymbol.stories.js +21 -0
- package/dist/module/lib/Components/core/DotSymbol/DotSymbol.stories.js.map +1 -1
- package/dist/module/lib/Components/core/IconButton/IconButton.stories.js +17 -0
- package/dist/module/lib/Components/core/IconButton/IconButton.stories.js.map +1 -1
- package/dist/module/lib/Components/core/InteractiveIcon/InteractiveIcon.stories.js +15 -21
- package/dist/module/lib/Components/core/InteractiveIcon/InteractiveIcon.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Link/Link.js +1 -1
- package/dist/module/lib/Components/core/Link/Link.mdx +32 -5
- package/dist/module/lib/Components/core/Link/Link.stories.js +35 -139
- package/dist/module/lib/Components/core/Link/Link.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Link/Link.test.js +1 -1
- package/dist/module/lib/Components/core/ListItem/ListItem.stories.js +2 -41
- package/dist/module/lib/Components/core/ListItem/ListItem.stories.js.map +1 -1
- package/dist/module/lib/Components/core/MediaBanner/MediaBanner.stories.js +19 -12
- package/dist/module/lib/Components/core/MediaBanner/MediaBanner.stories.js.map +1 -1
- package/dist/module/lib/Components/core/MediaButton/MediaButton.stories.js +2 -13
- package/dist/module/lib/Components/core/MediaButton/MediaButton.stories.js.map +1 -1
- package/dist/module/lib/Components/core/MediaCard/MediaCard.stories.js +24 -50
- package/dist/module/lib/Components/core/MediaCard/MediaCard.stories.js.map +1 -1
- package/dist/module/lib/Components/core/MediaImage/MediaImage.js +1 -1
- package/dist/module/lib/Components/core/MediaImage/MediaImage.js.map +1 -1
- package/dist/module/lib/Components/core/MediaImage/MediaImage.stories.js +1 -1
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.figma.js +215 -0
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.figma.js.map +1 -0
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.js +221 -0
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.js.map +1 -0
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.mdx +96 -0
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.stories.js +258 -0
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.stories.js.map +1 -0
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.test.js +246 -0
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.test.js.map +1 -0
- package/dist/module/lib/Components/core/MediaImageGroup/index.js +5 -0
- package/dist/module/lib/Components/core/MediaImageGroup/index.js.map +1 -0
- package/dist/module/lib/Components/core/MediaImageGroup/types.js +4 -0
- package/dist/module/lib/Components/core/MediaImageGroup/types.js.map +1 -0
- package/dist/module/lib/Components/core/MediaTag/MediaTag.stories.js +9 -0
- package/dist/module/lib/Components/core/MediaTag/MediaTag.stories.js.map +1 -1
- package/dist/module/lib/Components/core/MenuList/MenuList.mdx +2 -2
- package/dist/module/lib/Components/core/MenuList/MenuList.stories.js +17 -1
- package/dist/module/lib/Components/core/MenuList/MenuList.stories.js.map +1 -1
- package/dist/module/lib/Components/core/PageIndicator/PageIndicator.figma.js +1 -1
- package/dist/module/lib/Components/core/PageIndicator/PageIndicator.figma.js.map +1 -1
- package/dist/module/lib/Components/core/PageIndicator/PageIndicator.stories.js +56 -50
- package/dist/module/lib/Components/core/PageIndicator/PageIndicator.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Pagination/Pagination.figma.js +22 -0
- package/dist/module/lib/Components/core/Pagination/Pagination.figma.js.map +1 -0
- package/dist/module/lib/Components/core/Pagination/Pagination.js +182 -0
- package/dist/module/lib/Components/core/Pagination/Pagination.js.map +1 -0
- package/dist/module/lib/Components/core/Pagination/Pagination.mdx +108 -0
- package/dist/module/lib/Components/core/Pagination/Pagination.stories.js +121 -0
- package/dist/module/lib/Components/core/Pagination/Pagination.stories.js.map +1 -0
- package/dist/module/lib/Components/core/Pagination/Pagination.test.js +338 -0
- package/dist/module/lib/Components/core/Pagination/Pagination.test.js.map +1 -0
- package/dist/module/lib/Components/core/Pagination/index.js +4 -0
- package/dist/module/lib/Components/core/Pagination/index.js.map +1 -0
- package/dist/module/lib/Components/core/Pagination/types.js +4 -0
- package/dist/module/lib/Components/core/Pagination/types.js.map +1 -0
- package/dist/module/lib/Components/core/SearchInput/SearchInput.stories.js +75 -67
- package/dist/module/lib/Components/core/SearchInput/SearchInput.stories.js.map +1 -1
- package/dist/module/lib/Components/core/SegmentedControl/SegmentedControl.stories.js +12 -0
- package/dist/module/lib/Components/core/SegmentedControl/SegmentedControl.stories.js.map +1 -1
- package/dist/module/lib/Components/core/SelectList/SelectList.mdx +3 -1
- package/dist/module/lib/Components/core/SelectList/SelectList.stories.js +3 -3
- package/dist/module/lib/Components/core/SelectList/SelectList.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Skeleton/Skeleton.stories.js +7 -0
- package/dist/module/lib/Components/core/Skeleton/Skeleton.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Spinner/Spinner.stories.js +7 -0
- package/dist/module/lib/Components/core/Spinner/Spinner.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Spot/Spot.stories.js +20 -1
- package/dist/module/lib/Components/core/Spot/Spot.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Stepper/Stepper.stories.js +7 -0
- package/dist/module/lib/Components/core/Stepper/Stepper.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Subheader/Subheader.stories.js +11 -1
- package/dist/module/lib/Components/core/Subheader/Subheader.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Switch/Switch.stories.js +21 -1
- package/dist/module/lib/Components/core/Switch/Switch.stories.js.map +1 -1
- package/dist/module/lib/Components/core/TabBar/TabBar.stories.js +17 -5
- package/dist/module/lib/Components/core/TabBar/TabBar.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Tag/Tag.stories.js +28 -0
- package/dist/module/lib/Components/core/Tag/Tag.stories.js.map +1 -1
- package/dist/module/lib/Components/core/TextInput/TextInput.stories.js +159 -196
- package/dist/module/lib/Components/core/TextInput/TextInput.stories.js.map +1 -1
- package/dist/module/lib/Components/core/TextInput/TextInput.test.js +2 -2
- package/dist/module/lib/Components/core/TextInput/TextInput.test.js.map +1 -1
- package/dist/module/lib/Components/core/Tile/Tile.stories.js +2 -35
- package/dist/module/lib/Components/core/Tile/Tile.stories.js.map +1 -1
- package/dist/module/lib/Components/core/TileButton/TileButton.stories.js +18 -8
- package/dist/module/lib/Components/core/TileButton/TileButton.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Timeline/Timeline.js +81 -67
- package/dist/module/lib/Components/core/Timeline/Timeline.js.map +1 -1
- package/dist/module/lib/Components/core/Timeline/Timeline.stories.js +46 -16
- package/dist/module/lib/Components/core/Timeline/Timeline.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Timeline/Timeline.test.js +8 -5
- package/dist/module/lib/Components/core/Timeline/Timeline.test.js.map +1 -1
- package/dist/module/lib/Components/core/Toast/Toast.mdx +1 -1
- package/dist/module/lib/Components/core/Toast/Toast.stories.js +61 -58
- package/dist/module/lib/Components/core/Toast/Toast.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Toast/Toaster.test.js +1 -1
- package/dist/module/lib/Components/core/Toast/Toaster.test.js.map +1 -1
- package/dist/module/lib/Components/core/Tooltip/Tooltip.stories.js +31 -2
- package/dist/module/lib/Components/core/Tooltip/Tooltip.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Trend/Trend.stories.js +9 -0
- package/dist/module/lib/Components/core/Trend/Trend.stories.js.map +1 -1
- package/dist/module/lib/Components/core/index.js +2 -0
- package/dist/module/lib/Components/core/index.js.map +1 -1
- package/dist/module/lib/Components/internal/BaseButton/BaseButton.js +5 -2
- package/dist/module/lib/Components/internal/BaseButton/BaseButton.js.map +1 -1
- package/dist/module/lib/Components/internal/BaseButton/BaseButton.test.js +1 -1
- package/dist/module/lib/Components/internal/BaseButton/BaseButton.test.js.map +1 -1
- package/dist/module/lib/Components/primitives/Box/Box.stories.js +1 -18
- package/dist/module/lib/Components/primitives/Box/Box.stories.js.map +1 -1
- package/dist/module/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.stories.js +36 -0
- package/dist/module/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.stories.js.map +1 -1
- package/dist/module/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.stories.js +1 -1
- package/dist/module/lib/Components/primitives/Pressable/Pressable.stories.js +1 -19
- package/dist/module/lib/Components/primitives/Pressable/Pressable.stories.js.map +1 -1
- package/dist/module/lib/Components/primitives/Text/Text.stories.js +1 -12
- package/dist/module/lib/Components/primitives/Text/Text.stories.js.map +1 -1
- package/dist/module/lib/Components/symbols/Icon/Icon.stories.js +128 -85
- package/dist/module/lib/Components/symbols/Icon/Icon.stories.js.map +1 -1
- package/dist/module/lib/Components/symbols/icons/Ar.js +2 -2
- package/dist/module/lib/Components/symbols/icons/Ar.js.map +1 -1
- package/dist/module/lib/Components/symbols/icons/Range.js +1 -1
- package/dist/module/lib/Components/symbols/icons/Share.js +1 -1
- package/dist/module/lib/Components/symbols/icons/{Charon.js → ShoppingInvoiceList.js} +8 -8
- package/dist/module/lib/Components/symbols/icons/ShoppingInvoiceList.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/WalletInput.js +1 -1
- package/dist/module/lib/Components/symbols/icons/WalletInput.js.map +1 -1
- package/dist/module/lib/Components/symbols/index.js +1 -4
- package/dist/module/lib/Components/symbols/index.js.map +1 -1
- package/dist/module/lib/Components/visualization/DonutChart/DonutChart.test.js +1 -1
- package/dist/module/lib/Components/visualization/DonutChart/DonutChart.test.js.map +1 -1
- package/dist/module/lib/Components/visualization/Line/utils.js +1 -1
- package/dist/module/lib/Components/visualization/LineChart/LineChart.stories.js +69 -0
- package/dist/module/lib/Components/visualization/LineChart/LineChart.stories.js.map +1 -1
- package/dist/module/lib/Components/visualization/LineChart/LineChart.test.js +1 -1
- package/dist/module/lib/Components/visualization/LineChart/LineChart.test.js.map +1 -1
- package/dist/module/lib/Components/visualization/Point/Point.stories.js +12 -0
- package/dist/module/lib/Components/visualization/Point/Point.stories.js.map +1 -1
- package/dist/module/lib/Components/visualization/Point/Point.test.js +1 -1
- package/dist/module/lib/Components/visualization/Point/usePointGeometry.js +1 -1
- package/dist/module/lib/Components/visualization/Point/utils.js +1 -1
- package/dist/module/lib/Components/visualization/Point/utils.test.js +2 -2
- package/dist/module/lib/Components/visualization/ReferenceLine/ReferenceLine.stories.js +23 -0
- package/dist/module/lib/Components/visualization/ReferenceLine/ReferenceLine.stories.js.map +1 -1
- package/dist/module/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/utils.js +3 -3
- package/dist/module/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/utils.js.map +1 -1
- package/dist/module/lib/Components/visualization/Scrubber/Scrubber.stories.js +35 -0
- package/dist/module/lib/Components/visualization/Scrubber/Scrubber.stories.js.map +1 -1
- package/dist/module/translations/locales/de.json +7 -0
- package/dist/module/translations/locales/en.json +7 -0
- package/dist/module/translations/locales/es.json +7 -0
- package/dist/module/translations/locales/fr.json +7 -0
- package/dist/module/translations/locales/ja.json +7 -0
- package/dist/module/translations/locales/ko.json +7 -0
- package/dist/module/translations/locales/pt.json +7 -0
- package/dist/module/translations/locales/ru.json +7 -0
- package/dist/module/translations/locales/th.json +7 -0
- package/dist/module/translations/locales/tr.json +7 -0
- package/dist/module/translations/locales/zh.json +7 -0
- package/dist/typescript/src/lib/Components/core/MediaImage/MediaImage.d.ts +4 -0
- package/dist/typescript/src/lib/Components/core/MediaImage/MediaImage.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/MediaImageGroup/MediaImageGroup.d.ts +33 -0
- package/dist/typescript/src/lib/Components/core/MediaImageGroup/MediaImageGroup.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/MediaImageGroup/index.d.ts +3 -0
- package/dist/typescript/src/lib/Components/core/MediaImageGroup/index.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/MediaImageGroup/types.d.ts +66 -0
- package/dist/typescript/src/lib/Components/core/MediaImageGroup/types.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/Pagination/Pagination.d.ts +15 -0
- package/dist/typescript/src/lib/Components/core/Pagination/Pagination.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/Pagination/index.d.ts +3 -0
- package/dist/typescript/src/lib/Components/core/Pagination/index.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/Pagination/types.d.ts +29 -0
- package/dist/typescript/src/lib/Components/core/Pagination/types.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/Timeline/Timeline.d.ts +2 -2
- package/dist/typescript/src/lib/Components/core/Timeline/Timeline.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/index.d.ts +2 -0
- package/dist/typescript/src/lib/Components/core/index.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/internal/BaseButton/BaseButton.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/internal/BaseButton/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/internal/BaseButton/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/internal/BaseInput/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/symbols/icons/{Charon.d.ts → ShoppingInvoiceList.d.ts} +7 -7
- package/dist/typescript/src/lib/Components/symbols/icons/ShoppingInvoiceList.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/index.d.ts +1 -4
- package/dist/typescript/src/lib/Components/symbols/index.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/Axis/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/CartesianChart/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/Line/utils.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/LineChart/types.d.ts +3 -3
- package/dist/typescript/src/lib/Components/visualization/Point/types.d.ts +3 -3
- package/dist/typescript/src/lib/Components/visualization/Point/usePointGeometry.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/Point/utils.d.ts +1 -1
- package/dist/typescript/src/translations/translations.d.ts +84 -0
- package/dist/typescript/src/translations/translations.d.ts.map +1 -1
- package/package.json +9 -9
- package/src/lib/Components/animations/Pulse/Pulse.stories.tsx +1 -0
- package/src/lib/Components/animations/Spin/Spin.stories.tsx +1 -0
- package/src/lib/Components/core/AddressInput/AddressInput.stories.tsx +168 -123
- package/src/lib/Components/core/AmountDisplay/AmountDisplay.stories.tsx +7 -7
- package/src/lib/Components/core/AmountInput/AmountInput.stories.tsx +162 -158
- package/src/lib/Components/core/Avatar/Avatar.stories.tsx +37 -46
- package/src/lib/Components/core/AvatarButton/AvatarButton.stories.tsx +1 -8
- package/src/lib/Components/core/Banner/Banner.stories.tsx +8 -95
- package/src/lib/Components/core/Button/Button.figma.tsx +1 -0
- package/src/lib/Components/core/Button/Button.mdx +2 -1
- package/src/lib/Components/core/Button/Button.stories.tsx +13 -14
- package/src/lib/Components/core/Card/Card.mdx +6 -0
- package/src/lib/Components/core/Card/Card.stories.tsx +31 -27
- package/src/lib/Components/core/CardButton/CardButton.stories.tsx +14 -90
- package/src/lib/Components/core/Checkbox/Checkbox.stories.tsx +1 -1
- package/src/lib/Components/core/ContentBanner/ContentBanner.stories.tsx +1 -17
- package/src/lib/Components/core/DescriptionItem/DescriptionItem.stories.tsx +4 -0
- package/src/lib/Components/core/Divider/Divider.stories.tsx +1 -0
- package/src/lib/Components/core/DotCount/DotCount.stories.tsx +4 -0
- package/src/lib/Components/core/DotIcon/DotIcon.stories.tsx +8 -0
- package/src/lib/Components/core/DotIndicator/DotIndicator.stories.tsx +3 -0
- package/src/lib/Components/core/DotSymbol/DotSymbol.stories.tsx +3 -0
- package/src/lib/Components/core/IconButton/IconButton.stories.tsx +9 -0
- package/src/lib/Components/core/InteractiveIcon/InteractiveIcon.stories.tsx +16 -23
- package/src/lib/Components/core/Link/Link.mdx +32 -5
- package/src/lib/Components/core/Link/Link.stories.tsx +20 -146
- package/src/lib/Components/core/Link/Link.test.tsx +1 -1
- package/src/lib/Components/core/Link/Link.tsx +1 -1
- package/src/lib/Components/core/ListItem/ListItem.stories.tsx +0 -39
- package/src/lib/Components/core/MediaBanner/MediaBanner.stories.tsx +3 -14
- package/src/lib/Components/core/MediaButton/MediaButton.stories.tsx +1 -12
- package/src/lib/Components/core/MediaCard/MediaCard.stories.tsx +10 -53
- package/src/lib/Components/core/MediaImage/MediaImage.stories.tsx +1 -1
- package/src/lib/Components/core/MediaImage/MediaImage.tsx +1 -1
- package/src/lib/Components/core/MediaImageGroup/MediaImageGroup.figma.tsx +119 -0
- package/src/lib/Components/core/MediaImageGroup/MediaImageGroup.mdx +96 -0
- package/src/lib/Components/core/MediaImageGroup/MediaImageGroup.stories.tsx +154 -0
- package/src/lib/Components/core/MediaImageGroup/MediaImageGroup.test.tsx +213 -0
- package/src/lib/Components/core/MediaImageGroup/MediaImageGroup.tsx +264 -0
- package/src/lib/Components/core/MediaImageGroup/index.ts +2 -0
- package/src/lib/Components/core/MediaImageGroup/types.ts +77 -0
- package/src/lib/Components/core/MediaTag/MediaTag.stories.tsx +3 -0
- package/src/lib/Components/core/MenuList/MenuList.mdx +2 -2
- package/src/lib/Components/core/MenuList/MenuList.stories.tsx +13 -1
- package/src/lib/Components/core/PageIndicator/PageIndicator.figma.tsx +1 -1
- package/src/lib/Components/core/PageIndicator/PageIndicator.stories.tsx +45 -42
- package/src/lib/Components/core/Pagination/Pagination.figma.tsx +25 -0
- package/src/lib/Components/core/Pagination/Pagination.mdx +108 -0
- package/src/lib/Components/core/Pagination/Pagination.stories.tsx +90 -0
- package/src/lib/Components/core/Pagination/Pagination.test.tsx +346 -0
- package/src/lib/Components/core/Pagination/Pagination.tsx +200 -0
- package/src/lib/Components/core/Pagination/index.ts +2 -0
- package/src/lib/Components/core/Pagination/types.ts +29 -0
- package/src/lib/Components/core/SearchInput/SearchInput.stories.tsx +91 -66
- package/src/lib/Components/core/SegmentedControl/SegmentedControl.stories.tsx +2 -0
- package/src/lib/Components/core/SelectList/SelectList.mdx +3 -1
- package/src/lib/Components/core/SelectList/SelectList.stories.tsx +3 -3
- package/src/lib/Components/core/Skeleton/Skeleton.stories.tsx +1 -0
- package/src/lib/Components/core/Spinner/Spinner.stories.tsx +1 -0
- package/src/lib/Components/core/Spot/Spot.stories.tsx +10 -1
- package/src/lib/Components/core/Stepper/Stepper.stories.tsx +1 -0
- package/src/lib/Components/core/Subheader/Subheader.stories.tsx +5 -2
- package/src/lib/Components/core/Switch/Switch.stories.tsx +17 -1
- package/src/lib/Components/core/TabBar/TabBar.stories.tsx +15 -5
- package/src/lib/Components/core/Tag/Tag.stories.tsx +4 -0
- package/src/lib/Components/core/TextInput/TextInput.stories.tsx +186 -174
- package/src/lib/Components/core/TextInput/TextInput.test.tsx +2 -2
- package/src/lib/Components/core/Tile/Tile.stories.tsx +0 -33
- package/src/lib/Components/core/TileButton/TileButton.stories.tsx +9 -7
- package/src/lib/Components/core/Timeline/Timeline.stories.tsx +20 -1
- package/src/lib/Components/core/Timeline/Timeline.test.tsx +12 -8
- package/src/lib/Components/core/Timeline/Timeline.tsx +79 -75
- package/src/lib/Components/core/Toast/Toast.mdx +1 -1
- package/src/lib/Components/core/Toast/Toast.stories.tsx +55 -66
- package/src/lib/Components/core/Toast/Toaster.test.tsx +1 -1
- package/src/lib/Components/core/Tooltip/Tooltip.stories.tsx +7 -3
- package/src/lib/Components/core/Trend/Trend.stories.tsx +3 -0
- package/src/lib/Components/core/index.ts +2 -0
- package/src/lib/Components/internal/BaseButton/BaseButton.test.tsx +1 -0
- package/src/lib/Components/internal/BaseButton/BaseButton.tsx +3 -0
- package/src/lib/Components/internal/BaseButton/types.ts +2 -1
- package/src/lib/Components/internal/BaseInput/types.ts +1 -1
- package/src/lib/Components/primitives/Box/Box.stories.tsx +1 -18
- package/src/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.stories.tsx +12 -0
- package/src/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.stories.tsx +1 -1
- package/src/lib/Components/primitives/Pressable/Pressable.stories.tsx +0 -18
- package/src/lib/Components/primitives/Text/Text.stories.tsx +1 -12
- package/src/lib/Components/symbols/Icon/Icon.stories.tsx +133 -94
- package/src/lib/Components/symbols/icons/Ar.tsx +2 -2
- package/src/lib/Components/symbols/icons/Range.tsx +1 -1
- package/src/lib/Components/symbols/icons/Share.tsx +1 -1
- package/src/lib/Components/symbols/icons/{Charon.tsx → ShoppingInvoiceList.tsx} +8 -8
- package/src/lib/Components/symbols/icons/WalletInput.tsx +1 -1
- package/src/lib/Components/symbols/index.ts +1 -4
- package/src/lib/Components/visualization/Axis/types.ts +1 -1
- package/src/lib/Components/visualization/CartesianChart/types.ts +1 -1
- package/src/lib/Components/visualization/DonutChart/DonutChart.test.tsx +1 -1
- package/src/lib/Components/visualization/Line/utils.ts +1 -1
- package/src/lib/Components/visualization/LineChart/LineChart.stories.tsx +15 -0
- package/src/lib/Components/visualization/LineChart/LineChart.test.tsx +1 -1
- package/src/lib/Components/visualization/LineChart/types.ts +3 -3
- package/src/lib/Components/visualization/Point/Point.stories.tsx +2 -0
- package/src/lib/Components/visualization/Point/Point.test.tsx +1 -1
- package/src/lib/Components/visualization/Point/types.ts +3 -3
- package/src/lib/Components/visualization/Point/usePointGeometry.ts +1 -1
- package/src/lib/Components/visualization/Point/utils.test.ts +2 -2
- package/src/lib/Components/visualization/Point/utils.ts +1 -1
- package/src/lib/Components/visualization/ReferenceLine/ReferenceLine.stories.tsx +5 -0
- package/src/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/utils.ts +3 -3
- package/src/lib/Components/visualization/Scrubber/Scrubber.stories.tsx +5 -0
- package/src/translations/locales/de.json +7 -0
- package/src/translations/locales/en.json +7 -0
- package/src/translations/locales/es.json +7 -0
- package/src/translations/locales/fr.json +7 -0
- package/src/translations/locales/ja.json +7 -0
- package/src/translations/locales/ko.json +7 -0
- package/src/translations/locales/pt.json +7 -0
- package/src/translations/locales/ru.json +7 -0
- package/src/translations/locales/th.json +7 -0
- package/src/translations/locales/tr.json +7 -0
- package/src/translations/locales/zh.json +7 -0
- package/dist/module/lib/Components/symbols/icons/Apex.js +0 -49
- package/dist/module/lib/Components/symbols/icons/Apex.js.map +0 -1
- package/dist/module/lib/Components/symbols/icons/BellNotification.js +0 -91
- package/dist/module/lib/Components/symbols/icons/BellNotification.js.map +0 -1
- package/dist/module/lib/Components/symbols/icons/Charon.js.map +0 -1
- package/dist/module/lib/Components/symbols/icons/ShieldCheckNotification.js +0 -82
- package/dist/module/lib/Components/symbols/icons/ShieldCheckNotification.js.map +0 -1
- package/dist/typescript/src/lib/Components/symbols/icons/Apex.d.ts +0 -35
- package/dist/typescript/src/lib/Components/symbols/icons/Apex.d.ts.map +0 -1
- package/dist/typescript/src/lib/Components/symbols/icons/BellNotification.d.ts +0 -35
- package/dist/typescript/src/lib/Components/symbols/icons/BellNotification.d.ts.map +0 -1
- package/dist/typescript/src/lib/Components/symbols/icons/Charon.d.ts.map +0 -1
- package/dist/typescript/src/lib/Components/symbols/icons/ShieldCheckNotification.d.ts +0 -35
- package/dist/typescript/src/lib/Components/symbols/icons/ShieldCheckNotification.d.ts.map +0 -1
- package/src/lib/Components/symbols/icons/Apex.tsx +0 -44
- package/src/lib/Components/symbols/icons/BellNotification.tsx +0 -75
- package/src/lib/Components/symbols/icons/ShieldCheckNotification.tsx +0 -67
|
@@ -82,37 +82,31 @@ const useTimelineStyles = () =>
|
|
|
82
82
|
position: 'relative',
|
|
83
83
|
},
|
|
84
84
|
rail: {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
start: 0,
|
|
89
|
-
width: t.sizes.s32,
|
|
85
|
+
width: t.sizes.s20,
|
|
86
|
+
flexShrink: 0,
|
|
87
|
+
alignSelf: 'stretch',
|
|
90
88
|
flexDirection: 'column',
|
|
91
89
|
alignItems: 'center',
|
|
90
|
+
marginVertical: -t.spacings.s8,
|
|
92
91
|
},
|
|
93
92
|
line: {
|
|
93
|
+
flex: 1,
|
|
94
94
|
width: t.borderWidth.s2,
|
|
95
95
|
backgroundColor: t.colors.border.mutedSubtleHover,
|
|
96
96
|
},
|
|
97
97
|
lineIn: {
|
|
98
|
-
|
|
99
|
-
},
|
|
100
|
-
lineInHidden: {
|
|
101
|
-
opacity: 0,
|
|
102
|
-
},
|
|
103
|
-
indicatorSpacer: {
|
|
104
|
-
height: t.sizes.s32,
|
|
98
|
+
flex: 0,
|
|
105
99
|
flexShrink: 0,
|
|
100
|
+
height: t.spacings.s4,
|
|
106
101
|
},
|
|
107
|
-
|
|
108
|
-
|
|
102
|
+
lineHidden: {
|
|
103
|
+
opacity: 0,
|
|
109
104
|
},
|
|
110
105
|
indicator: {
|
|
111
|
-
|
|
112
|
-
width: t.sizes.
|
|
113
|
-
height: t.sizes.
|
|
106
|
+
marginVertical: t.spacings.s4,
|
|
107
|
+
width: t.sizes.s20,
|
|
108
|
+
height: t.sizes.s20,
|
|
114
109
|
flexShrink: 0,
|
|
115
|
-
alignSelf: 'flex-start',
|
|
116
110
|
alignItems: 'center',
|
|
117
111
|
justifyContent: 'center',
|
|
118
112
|
},
|
|
@@ -123,17 +117,17 @@ const useTimelineStyles = () =>
|
|
|
123
117
|
backgroundColor: t.colors.bg.mutedPressed,
|
|
124
118
|
},
|
|
125
119
|
idleRing: {
|
|
126
|
-
width: t.sizes.
|
|
127
|
-
height: t.sizes.
|
|
120
|
+
width: t.sizes.s16,
|
|
121
|
+
height: t.sizes.s16,
|
|
128
122
|
borderRadius: t.borderRadius.full,
|
|
129
123
|
borderWidth: t.borderWidth.s2,
|
|
130
124
|
borderColor: t.colors.border.mutedSubtleHover,
|
|
131
125
|
},
|
|
132
126
|
header: {
|
|
133
127
|
flexDirection: 'row',
|
|
134
|
-
alignItems: '
|
|
135
|
-
minHeight: t.sizes.s64,
|
|
128
|
+
alignItems: 'flex-start',
|
|
136
129
|
minWidth: 0,
|
|
130
|
+
paddingVertical: t.spacings.s8,
|
|
137
131
|
gap: t.spacings.s8,
|
|
138
132
|
},
|
|
139
133
|
leading: {
|
|
@@ -171,10 +165,18 @@ const useTimelineStyles = () =>
|
|
|
171
165
|
alignItems: 'flex-end',
|
|
172
166
|
},
|
|
173
167
|
body: {
|
|
174
|
-
|
|
168
|
+
flexDirection: 'row',
|
|
169
|
+
gap: t.spacings.s8,
|
|
170
|
+
},
|
|
171
|
+
bodyLine: {
|
|
172
|
+
width: t.sizes.s20,
|
|
173
|
+
flexShrink: 0,
|
|
174
|
+
alignItems: 'center',
|
|
175
|
+
},
|
|
176
|
+
bodyContent: {
|
|
177
|
+
flex: 1,
|
|
175
178
|
minWidth: 0,
|
|
176
|
-
|
|
177
|
-
paddingBottom: t.spacings.s12,
|
|
179
|
+
paddingBottom: t.spacings.s8,
|
|
178
180
|
},
|
|
179
181
|
}),
|
|
180
182
|
[],
|
|
@@ -195,15 +197,19 @@ const useTitleStyles = (muted: boolean) =>
|
|
|
195
197
|
[muted],
|
|
196
198
|
);
|
|
197
199
|
|
|
198
|
-
const
|
|
200
|
+
const TimelineRail = ({ status }: { status?: TimelineItemStatus }) => {
|
|
199
201
|
const styles = useTimelineStyles();
|
|
202
|
+
const { isFirst, isLast } = useTimelinePosition({
|
|
203
|
+
consumerName: 'TimelineItem',
|
|
204
|
+
contextRequired: false,
|
|
205
|
+
});
|
|
200
206
|
const decorative = status !== 'loading';
|
|
201
207
|
const indicatorByStatus = {
|
|
202
208
|
success: (
|
|
203
209
|
<CheckmarkCircleFill
|
|
204
210
|
accessible={false}
|
|
205
211
|
color='success'
|
|
206
|
-
size={
|
|
212
|
+
size={20}
|
|
207
213
|
testID='timeline-indicator-success'
|
|
208
214
|
/>
|
|
209
215
|
),
|
|
@@ -211,7 +217,7 @@ const TimelineIndicator = ({ status }: { status?: TimelineItemStatus }) => {
|
|
|
211
217
|
<DeleteCircleFill
|
|
212
218
|
accessible={false}
|
|
213
219
|
color='error'
|
|
214
|
-
size={
|
|
220
|
+
size={20}
|
|
215
221
|
testID='timeline-indicator-error'
|
|
216
222
|
/>
|
|
217
223
|
),
|
|
@@ -219,12 +225,12 @@ const TimelineIndicator = ({ status }: { status?: TimelineItemStatus }) => {
|
|
|
219
225
|
<ClockFill
|
|
220
226
|
accessible={false}
|
|
221
227
|
color='muted'
|
|
222
|
-
size={
|
|
228
|
+
size={20}
|
|
223
229
|
testID='timeline-indicator-pending'
|
|
224
230
|
/>
|
|
225
231
|
),
|
|
226
232
|
loading: (
|
|
227
|
-
<Spinner color='muted' size={
|
|
233
|
+
<Spinner color='muted' size={20} testID='timeline-indicator-loading' />
|
|
228
234
|
),
|
|
229
235
|
idle: (
|
|
230
236
|
<Box
|
|
@@ -236,53 +242,38 @@ const TimelineIndicator = ({ status }: { status?: TimelineItemStatus }) => {
|
|
|
236
242
|
} satisfies Record<TimelineItemStatus, ReactElement>;
|
|
237
243
|
|
|
238
244
|
return (
|
|
239
|
-
<Box
|
|
240
|
-
accessibilityElementsHidden={decorative}
|
|
241
|
-
importantForAccessibility={decorative ? 'no-hide-descendants' : 'auto'}
|
|
242
|
-
style={styles.indicator}
|
|
243
|
-
>
|
|
244
|
-
{status ? (
|
|
245
|
-
indicatorByStatus[status]
|
|
246
|
-
) : (
|
|
247
|
-
<Box
|
|
248
|
-
accessible={false}
|
|
249
|
-
style={styles.neutralDot}
|
|
250
|
-
testID='timeline-indicator-neutral'
|
|
251
|
-
/>
|
|
252
|
-
)}
|
|
253
|
-
</Box>
|
|
254
|
-
);
|
|
255
|
-
};
|
|
256
|
-
|
|
257
|
-
const TimelineRail = () => {
|
|
258
|
-
const styles = useTimelineStyles();
|
|
259
|
-
const { isFirst, isLast } = useTimelinePosition({
|
|
260
|
-
consumerName: 'TimelineItem',
|
|
261
|
-
contextRequired: false,
|
|
262
|
-
});
|
|
263
|
-
|
|
264
|
-
return (
|
|
265
|
-
<Box
|
|
266
|
-
accessibilityElementsHidden
|
|
267
|
-
importantForAccessibility='no-hide-descendants'
|
|
268
|
-
pointerEvents='none'
|
|
269
|
-
style={styles.rail}
|
|
270
|
-
>
|
|
245
|
+
<Box style={styles.rail}>
|
|
271
246
|
<Box
|
|
247
|
+
accessibilityElementsHidden
|
|
248
|
+
importantForAccessibility='no-hide-descendants'
|
|
272
249
|
style={StyleSheet.flatten([
|
|
273
250
|
styles.line,
|
|
274
251
|
styles.lineIn,
|
|
275
|
-
isFirst && styles.
|
|
252
|
+
isFirst && styles.lineHidden,
|
|
276
253
|
])}
|
|
277
254
|
testID='timeline-line-in'
|
|
278
255
|
/>
|
|
279
|
-
<Box
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
256
|
+
<Box
|
|
257
|
+
accessibilityElementsHidden={decorative}
|
|
258
|
+
importantForAccessibility={decorative ? 'no-hide-descendants' : 'auto'}
|
|
259
|
+
style={styles.indicator}
|
|
260
|
+
>
|
|
261
|
+
{status ? (
|
|
262
|
+
indicatorByStatus[status]
|
|
263
|
+
) : (
|
|
264
|
+
<Box
|
|
265
|
+
accessible={false}
|
|
266
|
+
style={styles.neutralDot}
|
|
267
|
+
testID='timeline-indicator-neutral'
|
|
268
|
+
/>
|
|
269
|
+
)}
|
|
270
|
+
</Box>
|
|
271
|
+
<Box
|
|
272
|
+
accessibilityElementsHidden
|
|
273
|
+
importantForAccessibility='no-hide-descendants'
|
|
274
|
+
style={StyleSheet.flatten([styles.line, isLast && styles.lineHidden])}
|
|
275
|
+
testID='timeline-line-out'
|
|
276
|
+
/>
|
|
286
277
|
</Box>
|
|
287
278
|
);
|
|
288
279
|
};
|
|
@@ -337,7 +328,7 @@ export const Timeline = ({
|
|
|
337
328
|
|
|
338
329
|
/**
|
|
339
330
|
* One row of a timeline. Draws the indicator from `status` and the connector
|
|
340
|
-
* to the
|
|
331
|
+
* to the neighboring items.
|
|
341
332
|
*/
|
|
342
333
|
export const TimelineItem = ({
|
|
343
334
|
ref,
|
|
@@ -358,7 +349,6 @@ export const TimelineItem = ({
|
|
|
358
349
|
testID='timeline-item'
|
|
359
350
|
{...props}
|
|
360
351
|
>
|
|
361
|
-
<TimelineRail />
|
|
362
352
|
{children}
|
|
363
353
|
</Box>
|
|
364
354
|
</TimelineItemProvider>
|
|
@@ -388,7 +378,7 @@ export const TimelineItemHeader = ({
|
|
|
388
378
|
style={StyleSheet.flatten([styles.header, style])}
|
|
389
379
|
{...props}
|
|
390
380
|
>
|
|
391
|
-
<
|
|
381
|
+
<TimelineRail status={status} />
|
|
392
382
|
{children}
|
|
393
383
|
</Box>
|
|
394
384
|
);
|
|
@@ -552,7 +542,7 @@ export const TimelineItemTrailing = ({
|
|
|
552
542
|
};
|
|
553
543
|
|
|
554
544
|
/**
|
|
555
|
-
* Block under the header,
|
|
545
|
+
* Block under the header, aligned with the header text.
|
|
556
546
|
*/
|
|
557
547
|
export const TimelineItemBody = ({
|
|
558
548
|
ref,
|
|
@@ -562,6 +552,10 @@ export const TimelineItemBody = ({
|
|
|
562
552
|
...props
|
|
563
553
|
}: TimelineItemBodyProps) => {
|
|
564
554
|
const styles = useTimelineStyles();
|
|
555
|
+
const { isLast } = useTimelinePosition({
|
|
556
|
+
consumerName: 'TimelineItem',
|
|
557
|
+
contextRequired: false,
|
|
558
|
+
});
|
|
565
559
|
|
|
566
560
|
return (
|
|
567
561
|
<Box
|
|
@@ -570,7 +564,17 @@ export const TimelineItemBody = ({
|
|
|
570
564
|
style={StyleSheet.flatten([styles.body, style])}
|
|
571
565
|
{...props}
|
|
572
566
|
>
|
|
573
|
-
|
|
567
|
+
<Box
|
|
568
|
+
accessibilityElementsHidden
|
|
569
|
+
importantForAccessibility='no-hide-descendants'
|
|
570
|
+
pointerEvents='none'
|
|
571
|
+
style={styles.bodyLine}
|
|
572
|
+
>
|
|
573
|
+
{!isLast && <Box style={styles.line} />}
|
|
574
|
+
</Box>
|
|
575
|
+
<Box style={styles.bodyContent}>
|
|
576
|
+
{isTextChildren(children) ? <Text>{children}</Text> : children}
|
|
577
|
+
</Box>
|
|
574
578
|
</Box>
|
|
575
579
|
);
|
|
576
580
|
};
|
|
@@ -123,7 +123,7 @@ of entering from the edge.
|
|
|
123
123
|
assertively. Android TalkBack reads the surface's `accessibilityLiveRegion`;
|
|
124
124
|
iOS VoiceOver has no live regions, so `Toaster` posts the title as an
|
|
125
125
|
announcement, interrupting current speech only for warning and error.
|
|
126
|
-
- Screen readers capture swipes, so each toast is a single element
|
|
126
|
+
- Screen readers capture swipes, so each toast is a single element labeled by
|
|
127
127
|
its title, with dismissal and the action exposed as accessibility actions
|
|
128
128
|
(VoiceOver rotor, TalkBack actions menu). On iOS the two-finger escape scrub
|
|
129
129
|
also dismisses.
|
|
@@ -55,7 +55,7 @@ const meta = {
|
|
|
55
55
|
source: {
|
|
56
56
|
language: 'tsx',
|
|
57
57
|
format: true,
|
|
58
|
-
type: '
|
|
58
|
+
type: 'code',
|
|
59
59
|
},
|
|
60
60
|
},
|
|
61
61
|
},
|
|
@@ -159,91 +159,80 @@ export const WithDuration: Story = {
|
|
|
159
159
|
),
|
|
160
160
|
};
|
|
161
161
|
|
|
162
|
-
const DismissDemo = () => {
|
|
163
|
-
const [id, setId] = useState<string | null>(null);
|
|
164
|
-
|
|
165
|
-
return (
|
|
166
|
-
<Button
|
|
167
|
-
appearance='base'
|
|
168
|
-
onPress={() => {
|
|
169
|
-
if (id === null) {
|
|
170
|
-
const next = toast.error({ title: 'Unable to save' });
|
|
171
|
-
setId(next.id);
|
|
172
|
-
return;
|
|
173
|
-
}
|
|
174
|
-
toast.dismiss(id);
|
|
175
|
-
setId(null);
|
|
176
|
-
}}
|
|
177
|
-
>
|
|
178
|
-
{id === null ? 'Show toast' : 'Hide toast'}
|
|
179
|
-
</Button>
|
|
180
|
-
);
|
|
181
|
-
};
|
|
182
|
-
|
|
183
162
|
export const WithDismiss: Story = {
|
|
184
|
-
render: () =>
|
|
185
|
-
<
|
|
186
|
-
<Toaster />
|
|
187
|
-
<DismissDemo />
|
|
188
|
-
</SafeAreaProvider>
|
|
189
|
-
),
|
|
190
|
-
};
|
|
163
|
+
render: () => {
|
|
164
|
+
const [id, setId] = useState<string | null>(null);
|
|
191
165
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
166
|
+
return (
|
|
167
|
+
<SafeAreaProvider>
|
|
168
|
+
<Toaster />
|
|
169
|
+
<Button
|
|
170
|
+
appearance='base'
|
|
171
|
+
onPress={() => {
|
|
172
|
+
if (id === null) {
|
|
173
|
+
const next = toast.error({ title: 'Unable to save' });
|
|
174
|
+
setId(next.id);
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
toast.dismiss(id);
|
|
178
|
+
setId(null);
|
|
179
|
+
}}
|
|
180
|
+
>
|
|
181
|
+
{id === null ? 'Show toast' : 'Hide toast'}
|
|
182
|
+
</Button>
|
|
183
|
+
</SafeAreaProvider>
|
|
184
|
+
);
|
|
185
|
+
},
|
|
186
|
+
};
|
|
209
187
|
|
|
210
188
|
export const WithUpdate: Story = {
|
|
211
189
|
render: () => (
|
|
212
190
|
<SafeAreaProvider>
|
|
213
191
|
<Toaster />
|
|
214
|
-
<
|
|
192
|
+
<Button
|
|
193
|
+
appearance='base'
|
|
194
|
+
onPress={() => {
|
|
195
|
+
const { id } = toast.loading({ title: 'Uploading…' });
|
|
196
|
+
setTimeout(() => {
|
|
197
|
+
toast.update(id, {
|
|
198
|
+
appearance: 'success',
|
|
199
|
+
loading: false,
|
|
200
|
+
title: 'Upload complete',
|
|
201
|
+
});
|
|
202
|
+
}, 2000);
|
|
203
|
+
}}
|
|
204
|
+
>
|
|
205
|
+
Upload file
|
|
206
|
+
</Button>
|
|
215
207
|
</SafeAreaProvider>
|
|
216
208
|
),
|
|
217
209
|
};
|
|
218
210
|
|
|
219
|
-
const simulateSaveProfile = () =>
|
|
220
|
-
new Promise<void>((resolve) => setTimeout(resolve, 2000));
|
|
221
|
-
|
|
222
|
-
const PromiseDemo = () => (
|
|
223
|
-
<Button
|
|
224
|
-
appearance='base'
|
|
225
|
-
onPress={() =>
|
|
226
|
-
toast.promise(simulateSaveProfile(), {
|
|
227
|
-
loading: { title: 'Saving…' },
|
|
228
|
-
success: { title: 'Profile saved' },
|
|
229
|
-
error: { title: 'Could not save' },
|
|
230
|
-
})
|
|
231
|
-
}
|
|
232
|
-
>
|
|
233
|
-
Save profile
|
|
234
|
-
</Button>
|
|
235
|
-
);
|
|
236
|
-
|
|
237
211
|
export const WithPromise: Story = {
|
|
238
212
|
render: () => (
|
|
239
213
|
<SafeAreaProvider>
|
|
240
214
|
<Toaster />
|
|
241
|
-
<
|
|
215
|
+
<Button
|
|
216
|
+
appearance='base'
|
|
217
|
+
onPress={() =>
|
|
218
|
+
toast.promise(
|
|
219
|
+
new Promise<void>((resolve) => setTimeout(resolve, 2000)),
|
|
220
|
+
{
|
|
221
|
+
loading: { title: 'Saving…' },
|
|
222
|
+
success: { title: 'Profile saved' },
|
|
223
|
+
error: { title: 'Could not save' },
|
|
224
|
+
},
|
|
225
|
+
)
|
|
226
|
+
}
|
|
227
|
+
>
|
|
228
|
+
Save profile
|
|
229
|
+
</Button>
|
|
242
230
|
</SafeAreaProvider>
|
|
243
231
|
),
|
|
244
232
|
};
|
|
245
233
|
|
|
246
234
|
export const AppearanceShowcase: Story = {
|
|
235
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
247
236
|
render: () => (
|
|
248
237
|
<Box lx={{ flexDirection: 'column', gap: 's8', width: 's400' }}>
|
|
249
238
|
<Toast appearance='info' title='Your transaction was sent' />
|
|
@@ -431,7 +431,7 @@ describe('Toaster', () => {
|
|
|
431
431
|
jest.useRealTimers();
|
|
432
432
|
});
|
|
433
433
|
|
|
434
|
-
it('should expose the toast as one element
|
|
434
|
+
it('should expose the toast as one element labeled by its title', () => {
|
|
435
435
|
renderToaster();
|
|
436
436
|
act(() => {
|
|
437
437
|
toast.info({ title: 'Saved' });
|
|
@@ -8,6 +8,7 @@ import { GlobalTooltipBottomSheet } from './GlobalTooltipBottomSheet';
|
|
|
8
8
|
import { Tooltip, TooltipTrigger, TooltipContent } from './Tooltip';
|
|
9
9
|
|
|
10
10
|
const meta = {
|
|
11
|
+
parameters: { docs: { source: { type: 'code' } } },
|
|
11
12
|
component: Tooltip,
|
|
12
13
|
subcomponents: { TooltipTrigger, TooltipContent },
|
|
13
14
|
id: 'rnative-tooltip',
|
|
@@ -19,10 +20,11 @@ export default meta;
|
|
|
19
20
|
type Story = StoryObj<typeof Tooltip>;
|
|
20
21
|
|
|
21
22
|
export const Base: Story = {
|
|
23
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
22
24
|
args: {
|
|
23
|
-
|
|
25
|
+
onOpenChange: () => {},
|
|
24
26
|
},
|
|
25
|
-
render: () => (
|
|
27
|
+
render: (args) => (
|
|
26
28
|
<>
|
|
27
29
|
<Box
|
|
28
30
|
lx={{
|
|
@@ -32,7 +34,7 @@ export const Base: Story = {
|
|
|
32
34
|
padding: 's24',
|
|
33
35
|
}}
|
|
34
36
|
>
|
|
35
|
-
<Tooltip>
|
|
37
|
+
<Tooltip {...args}>
|
|
36
38
|
<TooltipTrigger asChild>
|
|
37
39
|
<Button>Press me</Button>
|
|
38
40
|
</TooltipTrigger>
|
|
@@ -48,6 +50,7 @@ export const Base: Story = {
|
|
|
48
50
|
};
|
|
49
51
|
|
|
50
52
|
export const WithCustomContent: Story = {
|
|
53
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
51
54
|
args: {
|
|
52
55
|
children: null,
|
|
53
56
|
},
|
|
@@ -144,6 +147,7 @@ export const WithMultipleTooltips: Story = {
|
|
|
144
147
|
};
|
|
145
148
|
|
|
146
149
|
export const WithChangeCallback: Story = {
|
|
150
|
+
parameters: { docs: { source: { type: 'dynamic' } } },
|
|
147
151
|
args: {
|
|
148
152
|
children: null,
|
|
149
153
|
},
|
|
@@ -24,10 +24,12 @@ export * from './MediaBanner';
|
|
|
24
24
|
export * from './MediaButton';
|
|
25
25
|
export * from './MediaCard';
|
|
26
26
|
export * from './MediaImage';
|
|
27
|
+
export * from './MediaImageGroup';
|
|
27
28
|
export * from './MediaTag';
|
|
28
29
|
export * from './MenuList';
|
|
29
30
|
export * from './NavBar';
|
|
30
31
|
export * from './PageIndicator';
|
|
32
|
+
export * from './Pagination';
|
|
31
33
|
export * from './SearchInput';
|
|
32
34
|
export * from './SectionHeader';
|
|
33
35
|
export * from './SegmentedControl';
|
|
@@ -56,6 +56,7 @@ const useStyles = ({
|
|
|
56
56
|
transparent: t.colors.bg.mutedTransparent,
|
|
57
57
|
'no-background': 'transparent',
|
|
58
58
|
red: t.colors.bg.errorTransparent,
|
|
59
|
+
green: t.colors.bg.successTransparent,
|
|
59
60
|
};
|
|
60
61
|
|
|
61
62
|
const pressedBgColors: Record<Appearance, string> = {
|
|
@@ -65,12 +66,14 @@ const useStyles = ({
|
|
|
65
66
|
transparent: t.colors.bg.mutedTransparentPressed,
|
|
66
67
|
'no-background': t.colors.bg.baseTransparentPressed,
|
|
67
68
|
red: t.colors.bg.errorTransparentPressed,
|
|
69
|
+
green: t.colors.bg.successTransparentPressed,
|
|
68
70
|
};
|
|
69
71
|
|
|
70
72
|
const textColors: Record<Appearance, string> = {
|
|
71
73
|
base: t.colors.text.onInteractive,
|
|
72
74
|
accent: t.colors.text.onAccent,
|
|
73
75
|
red: t.colors.text.error,
|
|
76
|
+
green: t.colors.text.success,
|
|
74
77
|
gray: t.colors.text.base,
|
|
75
78
|
'no-background': t.colors.text.base,
|
|
76
79
|
transparent: t.colors.text.base,
|
|
@@ -110,7 +110,7 @@ export type BaseInputLabelProps = {
|
|
|
110
110
|
*/
|
|
111
111
|
showClearButton: boolean;
|
|
112
112
|
/**
|
|
113
|
-
* Whether the input is editable, driving the disabled label
|
|
113
|
+
* Whether the input is editable, driving the disabled label color.
|
|
114
114
|
*/
|
|
115
115
|
isEditable: boolean;
|
|
116
116
|
/**
|
|
@@ -10,7 +10,7 @@ const meta = {
|
|
|
10
10
|
source: {
|
|
11
11
|
language: 'tsx',
|
|
12
12
|
format: true,
|
|
13
|
-
type: '
|
|
13
|
+
type: 'dynamic',
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
16
|
},
|
|
@@ -28,21 +28,4 @@ export const Base: Story = {
|
|
|
28
28
|
borderRadius: 'md',
|
|
29
29
|
},
|
|
30
30
|
},
|
|
31
|
-
parameters: {
|
|
32
|
-
docs: {
|
|
33
|
-
source: {
|
|
34
|
-
code: `
|
|
35
|
-
<Box
|
|
36
|
-
lx={{
|
|
37
|
-
height: 's48',
|
|
38
|
-
width: 's48',
|
|
39
|
-
backgroundColor: 'accent',
|
|
40
|
-
borderRadius: 'md',
|
|
41
|
-
alignSelf: 'center',
|
|
42
|
-
}}
|
|
43
|
-
/>
|
|
44
|
-
`,
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
31
|
};
|
|
@@ -25,6 +25,9 @@ export default meta;
|
|
|
25
25
|
type Story = StoryObj<typeof LinearGradient>;
|
|
26
26
|
|
|
27
27
|
export const Base: Story = {
|
|
28
|
+
parameters: {
|
|
29
|
+
docs: { source: { language: 'tsx', format: true, type: 'dynamic' } },
|
|
30
|
+
},
|
|
28
31
|
args: {
|
|
29
32
|
direction: 'to-bottom',
|
|
30
33
|
stops: [{ color: 'accent' }, { color: 'active', opacity: 0 }],
|
|
@@ -37,6 +40,9 @@ export const Base: Story = {
|
|
|
37
40
|
};
|
|
38
41
|
|
|
39
42
|
export const DirectionShowcase: Story = {
|
|
43
|
+
parameters: {
|
|
44
|
+
docs: { source: { language: 'tsx', format: true, type: 'dynamic' } },
|
|
45
|
+
},
|
|
40
46
|
args: {
|
|
41
47
|
stops: [{ color: 'accent' }, { color: 'active', opacity: 0 }],
|
|
42
48
|
},
|
|
@@ -78,6 +84,9 @@ export const DirectionShowcase: Story = {
|
|
|
78
84
|
};
|
|
79
85
|
|
|
80
86
|
export const WithChildren: Story = {
|
|
87
|
+
parameters: {
|
|
88
|
+
docs: { source: { language: 'tsx', format: true, type: 'dynamic' } },
|
|
89
|
+
},
|
|
81
90
|
args: {
|
|
82
91
|
direction: 'to-bottomright',
|
|
83
92
|
stops: [{ color: 'accent' }, { color: 'active', opacity: 0, offset: 0.75 }],
|
|
@@ -104,6 +113,9 @@ export const WithChildren: Story = {
|
|
|
104
113
|
};
|
|
105
114
|
|
|
106
115
|
export const WithMultipleStops: Story = {
|
|
116
|
+
parameters: {
|
|
117
|
+
docs: { source: { language: 'tsx', format: true, type: 'dynamic' } },
|
|
118
|
+
},
|
|
107
119
|
args: {
|
|
108
120
|
direction: 'to-right',
|
|
109
121
|
stops: [
|
|
@@ -31,22 +31,4 @@ export const Base: Story = {
|
|
|
31
31
|
style: ({ pressed }) => ({ opacity: pressed ? 0.5 : 1 }),
|
|
32
32
|
},
|
|
33
33
|
render: (args) => <Pressable {...args} />,
|
|
34
|
-
parameters: {
|
|
35
|
-
docs: {
|
|
36
|
-
source: {
|
|
37
|
-
code: `
|
|
38
|
-
<Pressable
|
|
39
|
-
style={({ pressed }) => ({ opacity: pressed ? 0.5 : 1 })}
|
|
40
|
-
lx={{
|
|
41
|
-
height: 's48',
|
|
42
|
-
width: 's48',
|
|
43
|
-
backgroundColor: 'accent',
|
|
44
|
-
borderRadius: 'md',
|
|
45
|
-
alignSelf: 'center',
|
|
46
|
-
}}
|
|
47
|
-
/>
|
|
48
|
-
`,
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
34
|
};
|