@ledgerhq/lumen-ui-rnative 0.1.70 → 0.1.71
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/visualization/CartesianChart/CartesianChart.js +2 -1
- package/dist/module/lib/Components/visualization/CartesianChart/CartesianChart.js.map +1 -1
- package/dist/module/lib/Components/visualization/CartesianChart/context/useBuildChartContext.js +5 -3
- package/dist/module/lib/Components/visualization/CartesianChart/context/useBuildChartContext.js.map +1 -1
- package/dist/module/lib/Components/visualization/Scrubber/Scrubber.js +111 -29
- package/dist/module/lib/Components/visualization/Scrubber/Scrubber.js.map +1 -1
- package/dist/module/lib/Components/visualization/Scrubber/useScrubberGeometry.js +30 -13
- package/dist/module/lib/Components/visualization/Scrubber/useScrubberGeometry.js.map +1 -1
- package/dist/module/lib/Components/visualization/Scrubber/utils.js +16 -0
- package/dist/module/lib/Components/visualization/Scrubber/utils.js.map +1 -1
- package/dist/module/lib/Components/visualization/config.js +4 -0
- package/dist/module/lib/Components/visualization/config.js.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/CartesianChart/CartesianChart.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/CartesianChart/context/useBuildChartContext.d.ts +2 -1
- package/dist/typescript/src/lib/Components/visualization/CartesianChart/context/useBuildChartContext.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/CartesianChart/types.d.ts +4 -0
- package/dist/typescript/src/lib/Components/visualization/CartesianChart/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/Scrubber/Scrubber.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/Scrubber/Scrubber.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/Scrubber/types.d.ts +7 -1
- package/dist/typescript/src/lib/Components/visualization/Scrubber/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/Scrubber/useScrubberGeometry.d.ts +9 -6
- package/dist/typescript/src/lib/Components/visualization/Scrubber/useScrubberGeometry.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/Scrubber/utils.d.ts +5 -0
- package/dist/typescript/src/lib/Components/visualization/Scrubber/utils.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/config.d.ts +4 -0
- package/dist/typescript/src/lib/Components/visualization/config.d.ts.map +1 -1
- package/package.json +10 -2
- package/src/lib/Components/visualization/CartesianChart/CartesianChart.tsx +1 -0
- package/src/lib/Components/visualization/CartesianChart/context/useBuildChartContext.ts +4 -1
- package/src/lib/Components/visualization/CartesianChart/types.ts +4 -0
- package/src/lib/Components/visualization/Scrubber/Scrubber.tsx +108 -31
- package/src/lib/Components/visualization/Scrubber/types.ts +7 -1
- package/src/lib/Components/visualization/Scrubber/useScrubberGeometry.ts +40 -15
- package/src/lib/Components/visualization/Scrubber/utils.ts +18 -0
- package/src/lib/Components/visualization/config.ts +4 -0
- package/dist/module/lib/Components/animations/Pulse/Pulse.mdx +0 -85
- package/dist/module/lib/Components/animations/Pulse/Pulse.stories.js +0 -156
- package/dist/module/lib/Components/animations/Pulse/Pulse.stories.js.map +0 -1
- package/dist/module/lib/Components/animations/Spin/Spin.mdx +0 -84
- package/dist/module/lib/Components/animations/Spin/Spin.stories.js +0 -133
- package/dist/module/lib/Components/animations/Spin/Spin.stories.js.map +0 -1
- package/dist/module/lib/Components/core/AddressInput/AddressInput.figma.js +0 -40
- package/dist/module/lib/Components/core/AddressInput/AddressInput.figma.js.map +0 -1
- package/dist/module/lib/Components/core/AddressInput/AddressInput.mdx +0 -564
- package/dist/module/lib/Components/core/AddressInput/AddressInput.stories.js +0 -188
- package/dist/module/lib/Components/core/AddressInput/AddressInput.stories.js.map +0 -1
- package/dist/module/lib/Components/core/AddressInput/AddressInput.test.js +0 -56
- package/dist/module/lib/Components/core/AddressInput/AddressInput.test.js.map +0 -1
- package/dist/module/lib/Components/core/AmountDisplay/AmountDisplay.figma.js +0 -31
- package/dist/module/lib/Components/core/AmountDisplay/AmountDisplay.figma.js.map +0 -1
- package/dist/module/lib/Components/core/AmountDisplay/AmountDisplay.mdx +0 -200
- package/dist/module/lib/Components/core/AmountDisplay/AmountDisplay.stories.js +0 -188
- package/dist/module/lib/Components/core/AmountDisplay/AmountDisplay.stories.js.map +0 -1
- package/dist/module/lib/Components/core/AmountDisplay/AmountDisplay.test.js +0 -409
- package/dist/module/lib/Components/core/AmountDisplay/AmountDisplay.test.js.map +0 -1
- package/dist/module/lib/Components/core/AmountInput/AmountInput.figma.js +0 -70
- package/dist/module/lib/Components/core/AmountInput/AmountInput.figma.js.map +0 -1
- package/dist/module/lib/Components/core/AmountInput/AmountInput.mdx +0 -304
- package/dist/module/lib/Components/core/AmountInput/AmountInput.stories.js +0 -254
- package/dist/module/lib/Components/core/AmountInput/AmountInput.stories.js.map +0 -1
- package/dist/module/lib/Components/core/AmountInput/AmountInput.test.js +0 -152
- package/dist/module/lib/Components/core/AmountInput/AmountInput.test.js.map +0 -1
- package/dist/module/lib/Components/core/AmountInput/useAmountInputFormatting/useAmountInputFormatting.test.js +0 -78
- package/dist/module/lib/Components/core/AmountInput/useAmountInputFormatting/useAmountInputFormatting.test.js.map +0 -1
- package/dist/module/lib/Components/core/Avatar/Avatar.figma.js +0 -32
- package/dist/module/lib/Components/core/Avatar/Avatar.figma.js.map +0 -1
- package/dist/module/lib/Components/core/Avatar/Avatar.mdx +0 -166
- package/dist/module/lib/Components/core/Avatar/Avatar.stories.js +0 -182
- package/dist/module/lib/Components/core/Avatar/Avatar.stories.js.map +0 -1
- package/dist/module/lib/Components/core/Avatar/Avatar.test.js +0 -330
- package/dist/module/lib/Components/core/Avatar/Avatar.test.js.map +0 -1
- package/dist/module/lib/Components/core/Avatar/useResolveAvatarColor.test.js +0 -88
- package/dist/module/lib/Components/core/Avatar/useResolveAvatarColor.test.js.map +0 -1
- package/dist/module/lib/Components/core/AvatarButton/AvatarButton.mdx +0 -62
- package/dist/module/lib/Components/core/AvatarButton/AvatarButton.stories.js +0 -52
- package/dist/module/lib/Components/core/AvatarButton/AvatarButton.stories.js.map +0 -1
- package/dist/module/lib/Components/core/AvatarButton/AvatarButton.test.js +0 -100
- package/dist/module/lib/Components/core/AvatarButton/AvatarButton.test.js.map +0 -1
- package/dist/module/lib/Components/core/Banner/Banner.figma.js +0 -107
- package/dist/module/lib/Components/core/Banner/Banner.figma.js.map +0 -1
- package/dist/module/lib/Components/core/Banner/Banner.mdx +0 -352
- package/dist/module/lib/Components/core/Banner/Banner.stories.js +0 -434
- package/dist/module/lib/Components/core/Banner/Banner.stories.js.map +0 -1
- package/dist/module/lib/Components/core/Banner/Banner.test.js +0 -120
- package/dist/module/lib/Components/core/Banner/Banner.test.js.map +0 -1
- package/dist/module/lib/Components/core/BottomSheet/BottomSheet.figma.js +0 -49
- package/dist/module/lib/Components/core/BottomSheet/BottomSheet.figma.js.map +0 -1
- package/dist/module/lib/Components/core/BottomSheet/BottomSheet.mdx +0 -413
- package/dist/module/lib/Components/core/BottomSheet/BottomSheet.stories.js +0 -1034
- package/dist/module/lib/Components/core/BottomSheet/BottomSheet.stories.js.map +0 -1
- package/dist/module/lib/Components/core/BottomSheet/BottomSheet.test.js +0 -632
- package/dist/module/lib/Components/core/BottomSheet/BottomSheet.test.js.map +0 -1
- package/dist/module/lib/Components/core/Button/Button.figma.js +0 -46
- package/dist/module/lib/Components/core/Button/Button.figma.js.map +0 -1
- package/dist/module/lib/Components/core/Button/Button.mdx +0 -168
- package/dist/module/lib/Components/core/Button/Button.stories.js +0 -300
- package/dist/module/lib/Components/core/Button/Button.stories.js.map +0 -1
- package/dist/module/lib/Components/core/Button/ButtonGroup.figma.js +0 -19
- package/dist/module/lib/Components/core/Button/ButtonGroup.figma.js.map +0 -1
- package/dist/module/lib/Components/core/Card/Card.figma.js +0 -158
- package/dist/module/lib/Components/core/Card/Card.figma.js.map +0 -1
- package/dist/module/lib/Components/core/Card/Card.mdx +0 -293
- package/dist/module/lib/Components/core/Card/Card.stories.js +0 -967
- package/dist/module/lib/Components/core/Card/Card.stories.js.map +0 -1
- package/dist/module/lib/Components/core/Card/Card.test.js +0 -226
- package/dist/module/lib/Components/core/Card/Card.test.js.map +0 -1
- package/dist/module/lib/Components/core/CardButton/CardButton.figma.js +0 -38
- package/dist/module/lib/Components/core/CardButton/CardButton.figma.js.map +0 -1
- package/dist/module/lib/Components/core/CardButton/CardButton.mdx +0 -246
- package/dist/module/lib/Components/core/CardButton/CardButton.stories.js +0 -284
- package/dist/module/lib/Components/core/CardButton/CardButton.stories.js.map +0 -1
- package/dist/module/lib/Components/core/CardButton/CardButton.test.js +0 -130
- package/dist/module/lib/Components/core/CardButton/CardButton.test.js.map +0 -1
- package/dist/module/lib/Components/core/Checkbox/Checkbox.figma.js +0 -48
- package/dist/module/lib/Components/core/Checkbox/Checkbox.figma.js.map +0 -1
- package/dist/module/lib/Components/core/Checkbox/Checkbox.mdx +0 -151
- package/dist/module/lib/Components/core/Checkbox/Checkbox.stories.js +0 -141
- package/dist/module/lib/Components/core/Checkbox/Checkbox.stories.js.map +0 -1
- package/dist/module/lib/Components/core/Checkbox/Checkbox.test.js +0 -103
- package/dist/module/lib/Components/core/Checkbox/Checkbox.test.js.map +0 -1
- package/dist/module/lib/Components/core/ContentBanner/ContentBanner.figma.js +0 -90
- package/dist/module/lib/Components/core/ContentBanner/ContentBanner.figma.js.map +0 -1
- package/dist/module/lib/Components/core/ContentBanner/ContentBanner.mdx +0 -244
- package/dist/module/lib/Components/core/ContentBanner/ContentBanner.stories.js +0 -234
- package/dist/module/lib/Components/core/ContentBanner/ContentBanner.stories.js.map +0 -1
- package/dist/module/lib/Components/core/ContentBanner/ContentBanner.test.js +0 -137
- package/dist/module/lib/Components/core/ContentBanner/ContentBanner.test.js.map +0 -1
- package/dist/module/lib/Components/core/DescriptionItem/DescriptionItem.figma.js +0 -29
- package/dist/module/lib/Components/core/DescriptionItem/DescriptionItem.figma.js.map +0 -1
- package/dist/module/lib/Components/core/DescriptionItem/DescriptionItem.mdx +0 -142
- package/dist/module/lib/Components/core/DescriptionItem/DescriptionItem.stories.js +0 -287
- package/dist/module/lib/Components/core/DescriptionItem/DescriptionItem.stories.js.map +0 -1
- package/dist/module/lib/Components/core/DescriptionItem/DescriptionItem.test.js +0 -116
- package/dist/module/lib/Components/core/DescriptionItem/DescriptionItem.test.js.map +0 -1
- package/dist/module/lib/Components/core/Divider/Divider.figma.js +0 -10
- package/dist/module/lib/Components/core/Divider/Divider.figma.js.map +0 -1
- package/dist/module/lib/Components/core/Divider/Divider.mdx +0 -149
- package/dist/module/lib/Components/core/Divider/Divider.stories.js +0 -208
- package/dist/module/lib/Components/core/Divider/Divider.stories.js.map +0 -1
- package/dist/module/lib/Components/core/Divider/Divider.test.js +0 -101
- package/dist/module/lib/Components/core/Divider/Divider.test.js.map +0 -1
- package/dist/module/lib/Components/core/DotCount/DotCount.figma.js +0 -29
- package/dist/module/lib/Components/core/DotCount/DotCount.figma.js.map +0 -1
- package/dist/module/lib/Components/core/DotCount/DotCount.mdx +0 -86
- package/dist/module/lib/Components/core/DotCount/DotCount.stories.js +0 -192
- package/dist/module/lib/Components/core/DotCount/DotCount.stories.js.map +0 -1
- package/dist/module/lib/Components/core/DotCount/DotCount.test.js +0 -174
- package/dist/module/lib/Components/core/DotCount/DotCount.test.js.map +0 -1
- package/dist/module/lib/Components/core/DotIcon/DotIcon.mdx +0 -148
- package/dist/module/lib/Components/core/DotIcon/DotIcon.stories.js +0 -288
- package/dist/module/lib/Components/core/DotIcon/DotIcon.stories.js.map +0 -1
- package/dist/module/lib/Components/core/DotIcon/DotIcon.test.js +0 -260
- package/dist/module/lib/Components/core/DotIcon/DotIcon.test.js.map +0 -1
- package/dist/module/lib/Components/core/DotIcon/getDotIconProps.test.js +0 -38
- package/dist/module/lib/Components/core/DotIcon/getDotIconProps.test.js.map +0 -1
- package/dist/module/lib/Components/core/DotIndicator/DotIndicator.figma.js +0 -29
- package/dist/module/lib/Components/core/DotIndicator/DotIndicator.figma.js.map +0 -1
- package/dist/module/lib/Components/core/DotIndicator/DotIndicator.mdx +0 -83
- package/dist/module/lib/Components/core/DotIndicator/DotIndicator.stories.js +0 -123
- package/dist/module/lib/Components/core/DotIndicator/DotIndicator.stories.js.map +0 -1
- package/dist/module/lib/Components/core/DotIndicator/DotIndicator.test.js +0 -156
- package/dist/module/lib/Components/core/DotIndicator/DotIndicator.test.js.map +0 -1
- package/dist/module/lib/Components/core/DotIndicator/getDotIndicatorProps.test.js +0 -33
- package/dist/module/lib/Components/core/DotIndicator/getDotIndicatorProps.test.js.map +0 -1
- package/dist/module/lib/Components/core/DotSymbol/DotSymbol.mdx +0 -131
- package/dist/module/lib/Components/core/DotSymbol/DotSymbol.stories.js +0 -401
- package/dist/module/lib/Components/core/DotSymbol/DotSymbol.stories.js.map +0 -1
- package/dist/module/lib/Components/core/DotSymbol/DotSymbol.test.js +0 -134
- package/dist/module/lib/Components/core/DotSymbol/DotSymbol.test.js.map +0 -1
- package/dist/module/lib/Components/core/DotSymbol/getDotSymbolProps.test.js +0 -56
- package/dist/module/lib/Components/core/DotSymbol/getDotSymbolProps.test.js.map +0 -1
- package/dist/module/lib/Components/core/IconButton/IconButton.figma.js +0 -42
- package/dist/module/lib/Components/core/IconButton/IconButton.figma.js.map +0 -1
- package/dist/module/lib/Components/core/IconButton/IconButton.mdx +0 -137
- package/dist/module/lib/Components/core/IconButton/IconButton.stories.js +0 -170
- package/dist/module/lib/Components/core/IconButton/IconButton.stories.js.map +0 -1
- package/dist/module/lib/Components/core/IconButton/IconButton.test.js +0 -107
- package/dist/module/lib/Components/core/IconButton/IconButton.test.js.map +0 -1
- package/dist/module/lib/Components/core/InteractiveIcon/InteractiveIcon.figma.js +0 -51
- package/dist/module/lib/Components/core/InteractiveIcon/InteractiveIcon.figma.js.map +0 -1
- package/dist/module/lib/Components/core/InteractiveIcon/InteractiveIcon.mdx +0 -175
- package/dist/module/lib/Components/core/InteractiveIcon/InteractiveIcon.stories.js +0 -237
- package/dist/module/lib/Components/core/InteractiveIcon/InteractiveIcon.stories.js.map +0 -1
- package/dist/module/lib/Components/core/InteractiveIcon/InteractiveIcon.test.js +0 -149
- package/dist/module/lib/Components/core/InteractiveIcon/InteractiveIcon.test.js.map +0 -1
- package/dist/module/lib/Components/core/Link/Link.figma.js +0 -42
- package/dist/module/lib/Components/core/Link/Link.figma.js.map +0 -1
- package/dist/module/lib/Components/core/Link/Link.mdx +0 -264
- package/dist/module/lib/Components/core/Link/Link.stories.js +0 -349
- package/dist/module/lib/Components/core/Link/Link.stories.js.map +0 -1
- package/dist/module/lib/Components/core/Link/Link.test.js +0 -157
- package/dist/module/lib/Components/core/Link/Link.test.js.map +0 -1
- package/dist/module/lib/Components/core/ListItem/ListItem.figma.js +0 -426
- package/dist/module/lib/Components/core/ListItem/ListItem.figma.js.map +0 -1
- package/dist/module/lib/Components/core/ListItem/ListItem.mdx +0 -461
- package/dist/module/lib/Components/core/ListItem/ListItem.stories.js +0 -817
- package/dist/module/lib/Components/core/ListItem/ListItem.stories.js.map +0 -1
- package/dist/module/lib/Components/core/ListItem/ListItem.test.js +0 -233
- package/dist/module/lib/Components/core/ListItem/ListItem.test.js.map +0 -1
- package/dist/module/lib/Components/core/MediaBanner/MediaBanner.figma.js +0 -25
- package/dist/module/lib/Components/core/MediaBanner/MediaBanner.figma.js.map +0 -1
- package/dist/module/lib/Components/core/MediaBanner/MediaBanner.mdx +0 -169
- package/dist/module/lib/Components/core/MediaBanner/MediaBanner.stories.js +0 -183
- package/dist/module/lib/Components/core/MediaBanner/MediaBanner.stories.js.map +0 -1
- package/dist/module/lib/Components/core/MediaBanner/MediaBanner.test.js +0 -129
- package/dist/module/lib/Components/core/MediaBanner/MediaBanner.test.js.map +0 -1
- package/dist/module/lib/Components/core/MediaButton/MediaButton.figma.js +0 -72
- package/dist/module/lib/Components/core/MediaButton/MediaButton.figma.js.map +0 -1
- package/dist/module/lib/Components/core/MediaButton/MediaButton.mdx +0 -44
- package/dist/module/lib/Components/core/MediaButton/MediaButton.stories.js +0 -169
- package/dist/module/lib/Components/core/MediaButton/MediaButton.stories.js.map +0 -1
- package/dist/module/lib/Components/core/MediaButton/MediaButton.test.js +0 -171
- package/dist/module/lib/Components/core/MediaButton/MediaButton.test.js.map +0 -1
- package/dist/module/lib/Components/core/MediaCard/MediaCard.figma.js +0 -28
- package/dist/module/lib/Components/core/MediaCard/MediaCard.figma.js.map +0 -1
- package/dist/module/lib/Components/core/MediaCard/MediaCard.mdx +0 -109
- package/dist/module/lib/Components/core/MediaCard/MediaCard.stories.js +0 -187
- package/dist/module/lib/Components/core/MediaCard/MediaCard.stories.js.map +0 -1
- package/dist/module/lib/Components/core/MediaCard/MediaCard.test.js +0 -140
- package/dist/module/lib/Components/core/MediaCard/MediaCard.test.js.map +0 -1
- package/dist/module/lib/Components/core/MediaImage/MediaImage.mdx +0 -135
- package/dist/module/lib/Components/core/MediaImage/MediaImage.stories.js +0 -235
- package/dist/module/lib/Components/core/MediaImage/MediaImage.stories.js.map +0 -1
- package/dist/module/lib/Components/core/MediaImage/MediaImage.test.js +0 -325
- package/dist/module/lib/Components/core/MediaImage/MediaImage.test.js.map +0 -1
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.figma.js +0 -215
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.figma.js.map +0 -1
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.mdx +0 -96
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.stories.js +0 -258
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.stories.js.map +0 -1
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.test.js +0 -246
- package/dist/module/lib/Components/core/MediaImageGroup/MediaImageGroup.test.js.map +0 -1
- package/dist/module/lib/Components/core/MediaTag/MediaTag.figma.js +0 -100
- package/dist/module/lib/Components/core/MediaTag/MediaTag.figma.js.map +0 -1
- package/dist/module/lib/Components/core/MediaTag/MediaTag.mdx +0 -159
- package/dist/module/lib/Components/core/MediaTag/MediaTag.stories.js +0 -145
- package/dist/module/lib/Components/core/MediaTag/MediaTag.stories.js.map +0 -1
- package/dist/module/lib/Components/core/MediaTag/MediaTag.test.js +0 -30
- package/dist/module/lib/Components/core/MediaTag/MediaTag.test.js.map +0 -1
- package/dist/module/lib/Components/core/MenuList/MenuList.figma.js +0 -21
- package/dist/module/lib/Components/core/MenuList/MenuList.figma.js.map +0 -1
- package/dist/module/lib/Components/core/MenuList/MenuList.mdx +0 -79
- package/dist/module/lib/Components/core/MenuList/MenuList.stories.js +0 -192
- package/dist/module/lib/Components/core/MenuList/MenuList.stories.js.map +0 -1
- package/dist/module/lib/Components/core/MenuList/MenuList.test.js +0 -204
- package/dist/module/lib/Components/core/MenuList/MenuList.test.js.map +0 -1
- package/dist/module/lib/Components/core/NavBar/NavBar.figma.js +0 -80
- package/dist/module/lib/Components/core/NavBar/NavBar.figma.js.map +0 -1
- package/dist/module/lib/Components/core/NavBar/NavBar.mdx +0 -257
- package/dist/module/lib/Components/core/NavBar/NavBar.stories.js +0 -158
- package/dist/module/lib/Components/core/NavBar/NavBar.stories.js.map +0 -1
- package/dist/module/lib/Components/core/NavBar/NavBar.test.js +0 -405
- package/dist/module/lib/Components/core/NavBar/NavBar.test.js.map +0 -1
- package/dist/module/lib/Components/core/PageIndicator/PageIndicator.figma.js +0 -13
- package/dist/module/lib/Components/core/PageIndicator/PageIndicator.figma.js.map +0 -1
- package/dist/module/lib/Components/core/PageIndicator/PageIndicator.mdx +0 -122
- package/dist/module/lib/Components/core/PageIndicator/PageIndicator.stories.js +0 -99
- package/dist/module/lib/Components/core/PageIndicator/PageIndicator.stories.js.map +0 -1
- package/dist/module/lib/Components/core/PageIndicator/PageIndicator.test.js +0 -213
- package/dist/module/lib/Components/core/PageIndicator/PageIndicator.test.js.map +0 -1
- package/dist/module/lib/Components/core/Pagination/Pagination.figma.js +0 -22
- package/dist/module/lib/Components/core/Pagination/Pagination.figma.js.map +0 -1
- package/dist/module/lib/Components/core/Pagination/Pagination.mdx +0 -108
- package/dist/module/lib/Components/core/Pagination/Pagination.stories.js +0 -121
- package/dist/module/lib/Components/core/Pagination/Pagination.stories.js.map +0 -1
- package/dist/module/lib/Components/core/Pagination/Pagination.test.js +0 -338
- package/dist/module/lib/Components/core/Pagination/Pagination.test.js.map +0 -1
- package/dist/module/lib/Components/core/SearchInput/SearchInput.figma.js +0 -31
- package/dist/module/lib/Components/core/SearchInput/SearchInput.figma.js.map +0 -1
- package/dist/module/lib/Components/core/SearchInput/SearchInput.mdx +0 -370
- package/dist/module/lib/Components/core/SearchInput/SearchInput.stories.js +0 -125
- package/dist/module/lib/Components/core/SearchInput/SearchInput.stories.js.map +0 -1
- package/dist/module/lib/Components/core/SearchInput/SearchInput.test.js +0 -41
- package/dist/module/lib/Components/core/SearchInput/SearchInput.test.js.map +0 -1
- package/dist/module/lib/Components/core/SectionHeader/SectionHeader.figma.js +0 -22
- package/dist/module/lib/Components/core/SectionHeader/SectionHeader.figma.js.map +0 -1
- package/dist/module/lib/Components/core/SectionHeader/SectionHeader.mdx +0 -79
- package/dist/module/lib/Components/core/SectionHeader/SectionHeader.stories.js +0 -104
- package/dist/module/lib/Components/core/SectionHeader/SectionHeader.stories.js.map +0 -1
- package/dist/module/lib/Components/core/SectionHeader/SectionHeader.test.js +0 -108
- package/dist/module/lib/Components/core/SectionHeader/SectionHeader.test.js.map +0 -1
- package/dist/module/lib/Components/core/SegmentedControl/SegmentedControl.figma.js +0 -35
- package/dist/module/lib/Components/core/SegmentedControl/SegmentedControl.figma.js.map +0 -1
- package/dist/module/lib/Components/core/SegmentedControl/SegmentedControl.mdx +0 -178
- package/dist/module/lib/Components/core/SegmentedControl/SegmentedControl.stories.js +0 -216
- package/dist/module/lib/Components/core/SegmentedControl/SegmentedControl.stories.js.map +0 -1
- package/dist/module/lib/Components/core/SegmentedControl/SegmentedControl.test.js +0 -211
- package/dist/module/lib/Components/core/SegmentedControl/SegmentedControl.test.js.map +0 -1
- package/dist/module/lib/Components/core/SelectList/SelectList.figma.js +0 -28
- package/dist/module/lib/Components/core/SelectList/SelectList.figma.js.map +0 -1
- package/dist/module/lib/Components/core/SelectList/SelectList.mdx +0 -280
- package/dist/module/lib/Components/core/SelectList/SelectList.stories.js +0 -1100
- package/dist/module/lib/Components/core/SelectList/SelectList.stories.js.map +0 -1
- package/dist/module/lib/Components/core/SelectList/SelectList.test.js +0 -620
- package/dist/module/lib/Components/core/SelectList/SelectList.test.js.map +0 -1
- package/dist/module/lib/Components/core/SelectList/useSelectList/useSelectListItems.test.js +0 -199
- package/dist/module/lib/Components/core/SelectList/useSelectList/useSelectListItems.test.js.map +0 -1
- package/dist/module/lib/Components/core/Skeleton/Skeleton.figma.js +0 -18
- package/dist/module/lib/Components/core/Skeleton/Skeleton.figma.js.map +0 -1
- package/dist/module/lib/Components/core/Skeleton/Skeleton.mdx +0 -129
- package/dist/module/lib/Components/core/Skeleton/Skeleton.stories.js +0 -135
- package/dist/module/lib/Components/core/Skeleton/Skeleton.stories.js.map +0 -1
- package/dist/module/lib/Components/core/Skeleton/Skeleton.test.js +0 -63
- package/dist/module/lib/Components/core/Skeleton/Skeleton.test.js.map +0 -1
- package/dist/module/lib/Components/core/Spinner/Spinner.figma.js +0 -13
- package/dist/module/lib/Components/core/Spinner/Spinner.figma.js.map +0 -1
- package/dist/module/lib/Components/core/Spinner/Spinner.mdx +0 -119
- package/dist/module/lib/Components/core/Spinner/Spinner.stories.js +0 -214
- package/dist/module/lib/Components/core/Spinner/Spinner.stories.js.map +0 -1
- package/dist/module/lib/Components/core/Spot/Spot.figma.js +0 -52
- package/dist/module/lib/Components/core/Spot/Spot.figma.js.map +0 -1
- package/dist/module/lib/Components/core/Spot/Spot.mdx +0 -113
- package/dist/module/lib/Components/core/Spot/Spot.stories.js +0 -242
- package/dist/module/lib/Components/core/Spot/Spot.stories.js.map +0 -1
- package/dist/module/lib/Components/core/Spot/Spot.test.js +0 -61
- package/dist/module/lib/Components/core/Spot/Spot.test.js.map +0 -1
- package/dist/module/lib/Components/core/Spot/SpotNumber.test.js +0 -72
- package/dist/module/lib/Components/core/Spot/SpotNumber.test.js.map +0 -1
- package/dist/module/lib/Components/core/Stepper/Stepper.figma.js +0 -13
- package/dist/module/lib/Components/core/Stepper/Stepper.figma.js.map +0 -1
- package/dist/module/lib/Components/core/Stepper/Stepper.mdx +0 -167
- package/dist/module/lib/Components/core/Stepper/Stepper.stories.js +0 -214
- package/dist/module/lib/Components/core/Stepper/Stepper.stories.js.map +0 -1
- package/dist/module/lib/Components/core/Stepper/Stepper.test.js +0 -184
- package/dist/module/lib/Components/core/Stepper/Stepper.test.js.map +0 -1
- package/dist/module/lib/Components/core/Subheader/Subheader.figma.js +0 -67
- package/dist/module/lib/Components/core/Subheader/Subheader.figma.js.map +0 -1
- package/dist/module/lib/Components/core/Subheader/Subheader.mdx +0 -366
- package/dist/module/lib/Components/core/Subheader/Subheader.stories.js +0 -117
- package/dist/module/lib/Components/core/Subheader/Subheader.stories.js.map +0 -1
- package/dist/module/lib/Components/core/Subheader/Subheader.test.js +0 -164
- package/dist/module/lib/Components/core/Subheader/Subheader.test.js.map +0 -1
- package/dist/module/lib/Components/core/Switch/Switch.figma.js +0 -58
- package/dist/module/lib/Components/core/Switch/Switch.figma.js.map +0 -1
- package/dist/module/lib/Components/core/Switch/Switch.mdx +0 -149
- package/dist/module/lib/Components/core/Switch/Switch.stories.js +0 -150
- package/dist/module/lib/Components/core/Switch/Switch.stories.js.map +0 -1
- package/dist/module/lib/Components/core/Switch/Switch.test.js +0 -92
- package/dist/module/lib/Components/core/Switch/Switch.test.js.map +0 -1
- package/dist/module/lib/Components/core/TabBar/TabBar.figma.js +0 -98
- package/dist/module/lib/Components/core/TabBar/TabBar.figma.js.map +0 -1
- package/dist/module/lib/Components/core/TabBar/TabBar.mdx +0 -209
- package/dist/module/lib/Components/core/TabBar/TabBar.stories.js +0 -184
- package/dist/module/lib/Components/core/TabBar/TabBar.stories.js.map +0 -1
- package/dist/module/lib/Components/core/TabBar/TabBar.test.js +0 -112
- package/dist/module/lib/Components/core/TabBar/TabBar.test.js.map +0 -1
- package/dist/module/lib/Components/core/Tag/Tag.figma.js +0 -41
- package/dist/module/lib/Components/core/Tag/Tag.figma.js.map +0 -1
- package/dist/module/lib/Components/core/Tag/Tag.mdx +0 -98
- package/dist/module/lib/Components/core/Tag/Tag.stories.js +0 -208
- package/dist/module/lib/Components/core/Tag/Tag.stories.js.map +0 -1
- package/dist/module/lib/Components/core/Tag/Tag.test.js +0 -69
- package/dist/module/lib/Components/core/Tag/Tag.test.js.map +0 -1
- package/dist/module/lib/Components/core/TextInput/TextInput.figma.js +0 -46
- package/dist/module/lib/Components/core/TextInput/TextInput.figma.js.map +0 -1
- package/dist/module/lib/Components/core/TextInput/TextInput.mdx +0 -305
- package/dist/module/lib/Components/core/TextInput/TextInput.stories.js +0 -241
- package/dist/module/lib/Components/core/TextInput/TextInput.stories.js.map +0 -1
- package/dist/module/lib/Components/core/TextInput/TextInput.test.js +0 -295
- package/dist/module/lib/Components/core/TextInput/TextInput.test.js.map +0 -1
- package/dist/module/lib/Components/core/ThemeProvider/ThemeProvider.test.js +0 -43
- package/dist/module/lib/Components/core/ThemeProvider/ThemeProvider.test.js.map +0 -1
- package/dist/module/lib/Components/core/Tile/Tile.figma.js +0 -110
- package/dist/module/lib/Components/core/Tile/Tile.figma.js.map +0 -1
- package/dist/module/lib/Components/core/Tile/Tile.mdx +0 -252
- package/dist/module/lib/Components/core/Tile/Tile.stories.js +0 -559
- package/dist/module/lib/Components/core/Tile/Tile.stories.js.map +0 -1
- package/dist/module/lib/Components/core/Tile/Tile.test.js +0 -249
- package/dist/module/lib/Components/core/Tile/Tile.test.js.map +0 -1
- package/dist/module/lib/Components/core/TileButton/TileButton.figma.js +0 -28
- package/dist/module/lib/Components/core/TileButton/TileButton.figma.js.map +0 -1
- package/dist/module/lib/Components/core/TileButton/TileButton.mdx +0 -184
- package/dist/module/lib/Components/core/TileButton/TileButton.stories.js +0 -269
- package/dist/module/lib/Components/core/TileButton/TileButton.stories.js.map +0 -1
- package/dist/module/lib/Components/core/TileButton/TileButton.test.js +0 -124
- package/dist/module/lib/Components/core/TileButton/TileButton.test.js.map +0 -1
- package/dist/module/lib/Components/core/Timeline/Timeline.figma.js +0 -83
- package/dist/module/lib/Components/core/Timeline/Timeline.figma.js.map +0 -1
- package/dist/module/lib/Components/core/Timeline/Timeline.mdx +0 -49
- package/dist/module/lib/Components/core/Timeline/Timeline.stories.js +0 -319
- package/dist/module/lib/Components/core/Timeline/Timeline.stories.js.map +0 -1
- package/dist/module/lib/Components/core/Timeline/Timeline.test.js +0 -237
- package/dist/module/lib/Components/core/Timeline/Timeline.test.js.map +0 -1
- package/dist/module/lib/Components/core/Toast/Toast.figma.js +0 -39
- package/dist/module/lib/Components/core/Toast/Toast.figma.js.map +0 -1
- package/dist/module/lib/Components/core/Toast/Toast.mdx +0 -203
- package/dist/module/lib/Components/core/Toast/Toast.stories.js +0 -241
- package/dist/module/lib/Components/core/Toast/Toast.stories.js.map +0 -1
- package/dist/module/lib/Components/core/Toast/Toast.test.js +0 -203
- package/dist/module/lib/Components/core/Toast/Toast.test.js.map +0 -1
- package/dist/module/lib/Components/core/Toast/Toaster.test.js +0 -732
- package/dist/module/lib/Components/core/Toast/Toaster.test.js.map +0 -1
- package/dist/module/lib/Components/core/Tooltip/Tooltip.figma.js +0 -26
- package/dist/module/lib/Components/core/Tooltip/Tooltip.figma.js.map +0 -1
- package/dist/module/lib/Components/core/Tooltip/Tooltip.mdx +0 -173
- package/dist/module/lib/Components/core/Tooltip/Tooltip.stories.js +0 -212
- package/dist/module/lib/Components/core/Tooltip/Tooltip.stories.js.map +0 -1
- package/dist/module/lib/Components/core/Tooltip/Tooltip.test.js +0 -91
- package/dist/module/lib/Components/core/Tooltip/Tooltip.test.js.map +0 -1
- package/dist/module/lib/Components/core/Trend/Trend.figma.js +0 -29
- package/dist/module/lib/Components/core/Trend/Trend.figma.js.map +0 -1
- package/dist/module/lib/Components/core/Trend/Trend.mdx +0 -104
- package/dist/module/lib/Components/core/Trend/Trend.stories.js +0 -98
- package/dist/module/lib/Components/core/Trend/Trend.stories.js.map +0 -1
- package/dist/module/lib/Components/core/Trend/Trend.test.js +0 -149
- package/dist/module/lib/Components/core/Trend/Trend.test.js.map +0 -1
- package/dist/module/lib/Components/internal/BaseButton/BaseButton.test.js +0 -139
- package/dist/module/lib/Components/internal/BaseButton/BaseButton.test.js.map +0 -1
- package/dist/module/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.test.js +0 -111
- package/dist/module/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.test.js.map +0 -1
- package/dist/module/lib/Components/internal/BaseTag/BaseTag.test.js +0 -144
- package/dist/module/lib/Components/internal/BaseTag/BaseTag.test.js.map +0 -1
- package/dist/module/lib/Components/internal/CryptoIcon/CryptoIcon.figma.js +0 -17
- package/dist/module/lib/Components/internal/CryptoIcon/CryptoIcon.figma.js.map +0 -1
- package/dist/module/lib/Components/primitives/Box/Box.mdx +0 -50
- package/dist/module/lib/Components/primitives/Box/Box.stories.js +0 -29
- package/dist/module/lib/Components/primitives/Box/Box.stories.js.map +0 -1
- package/dist/module/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.mdx +0 -142
- package/dist/module/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.stories.js +0 -260
- package/dist/module/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.stories.js.map +0 -1
- package/dist/module/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.test.js +0 -81
- package/dist/module/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.test.js.map +0 -1
- package/dist/module/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.mdx +0 -109
- package/dist/module/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.stories.js +0 -242
- package/dist/module/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.stories.js.map +0 -1
- package/dist/module/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.test.js +0 -81
- package/dist/module/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.test.js.map +0 -1
- package/dist/module/lib/Components/primitives/Gradient/utils/resolveGradientColor.test.js +0 -151
- package/dist/module/lib/Components/primitives/Gradient/utils/resolveGradientColor.test.js.map +0 -1
- package/dist/module/lib/Components/primitives/Pressable/Pressable.mdx +0 -103
- package/dist/module/lib/Components/primitives/Pressable/Pressable.stories.js +0 -39
- package/dist/module/lib/Components/primitives/Pressable/Pressable.stories.js.map +0 -1
- package/dist/module/lib/Components/primitives/Pressable/Pressable.test.js +0 -226
- package/dist/module/lib/Components/primitives/Pressable/Pressable.test.js.map +0 -1
- package/dist/module/lib/Components/primitives/Text/Text.mdx +0 -70
- package/dist/module/lib/Components/primitives/Text/Text.stories.js +0 -28
- package/dist/module/lib/Components/primitives/Text/Text.stories.js.map +0 -1
- package/dist/module/lib/Components/symbols/Icon/Icon.figma.js +0 -1840
- package/dist/module/lib/Components/symbols/Icon/Icon.figma.js.map +0 -1
- package/dist/module/lib/Components/symbols/Icon/Icon.mdx +0 -149
- package/dist/module/lib/Components/symbols/Icon/Icon.stories.js +0 -321
- package/dist/module/lib/Components/symbols/Icon/Icon.stories.js.map +0 -1
- package/dist/module/lib/Components/symbols/Icon/Icon.test.js +0 -90
- package/dist/module/lib/Components/symbols/Icon/Icon.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/Axis/XAxis/XAxis.test.js +0 -135
- package/dist/module/lib/Components/visualization/Axis/XAxis/XAxis.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/Axis/YAxis/YAxis.test.js +0 -135
- package/dist/module/lib/Components/visualization/Axis/YAxis/YAxis.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/CartesianChart/RevealAnimation/RevealAnimationProvider.test.js +0 -183
- package/dist/module/lib/Components/visualization/CartesianChart/RevealAnimation/RevealAnimationProvider.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/CartesianChart/context/useBuildChartContext.test.js +0 -333
- package/dist/module/lib/Components/visualization/CartesianChart/context/useBuildChartContext.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/CartesianChart/utils.test.js +0 -86
- package/dist/module/lib/Components/visualization/CartesianChart/utils.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/DonutChart/DonutChart.performance.test.js +0 -191
- package/dist/module/lib/Components/visualization/DonutChart/DonutChart.performance.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/DonutChart/DonutChart.test.js +0 -905
- package/dist/module/lib/Components/visualization/DonutChart/DonutChart.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/DonutChart/hooks/useContrastSafeSeries.test.js +0 -70
- package/dist/module/lib/Components/visualization/DonutChart/hooks/useContrastSafeSeries.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/DonutChart/useDonutSeries/useDonutSeries.test.js +0 -586
- package/dist/module/lib/Components/visualization/DonutChart/useDonutSeries/useDonutSeries.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/DonutChart/utils.test.js +0 -440
- package/dist/module/lib/Components/visualization/DonutChart/utils.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/Legend/Legend.test.js +0 -134
- package/dist/module/lib/Components/visualization/Legend/Legend.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/Line/utils.test.js +0 -134
- package/dist/module/lib/Components/visualization/Line/utils.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/LineChart/LineChart.performance.test.js +0 -99
- package/dist/module/lib/Components/visualization/LineChart/LineChart.performance.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/LineChart/LineChart.stories.js +0 -385
- package/dist/module/lib/Components/visualization/LineChart/LineChart.stories.js.map +0 -1
- package/dist/module/lib/Components/visualization/LineChart/LineChart.test.js +0 -462
- package/dist/module/lib/Components/visualization/LineChart/LineChart.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/LineChart/LineChartEmptyState/LineChartEmptyState.test.js +0 -47
- package/dist/module/lib/Components/visualization/LineChart/LineChartEmptyState/LineChartEmptyState.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/LineChart/LineChartEmptyState/utils.test.js +0 -22
- package/dist/module/lib/Components/visualization/LineChart/LineChartEmptyState/utils.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/LineChart/utils.test.js +0 -210
- package/dist/module/lib/Components/visualization/LineChart/utils.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/Point/Point.stories.js +0 -200
- package/dist/module/lib/Components/visualization/Point/Point.stories.js.map +0 -1
- package/dist/module/lib/Components/visualization/Point/Point.test.js +0 -269
- package/dist/module/lib/Components/visualization/Point/Point.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/Point/pointContext/MagneticPointsProvider.test.js +0 -162
- package/dist/module/lib/Components/visualization/Point/pointContext/MagneticPointsProvider.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/Point/usePointGeometry.test.js +0 -86
- package/dist/module/lib/Components/visualization/Point/usePointGeometry.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/Point/utils.test.js +0 -141
- package/dist/module/lib/Components/visualization/Point/utils.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/ReferenceLine/ReferenceLine.stories.js +0 -128
- package/dist/module/lib/Components/visualization/ReferenceLine/ReferenceLine.stories.js.map +0 -1
- package/dist/module/lib/Components/visualization/ReferenceLine/ReferenceLine.test.js +0 -338
- package/dist/module/lib/Components/visualization/ReferenceLine/ReferenceLine.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/ReferenceLine/utils.test.js +0 -297
- package/dist/module/lib/Components/visualization/ReferenceLine/utils.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/DefaultScrubberTooltip.test.js +0 -340
- package/dist/module/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/DefaultScrubberTooltip.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/utils.test.js +0 -261
- package/dist/module/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/utils.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/Scrubber/Scrubber.stories.js +0 -193
- package/dist/module/lib/Components/visualization/Scrubber/Scrubber.stories.js.map +0 -1
- package/dist/module/lib/Components/visualization/Scrubber/Scrubber.test.js +0 -137
- package/dist/module/lib/Components/visualization/Scrubber/Scrubber.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/Scrubber/ScrubberProvider.test.js +0 -295
- package/dist/module/lib/Components/visualization/Scrubber/ScrubberProvider.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/Scrubber/utils.test.js +0 -395
- package/dist/module/lib/Components/visualization/Scrubber/utils.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/utils/domain/domain.test.js +0 -191
- package/dist/module/lib/Components/visualization/utils/domain/domain.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/utils/scales/scales.test.js +0 -322
- package/dist/module/lib/Components/visualization/utils/scales/scales.test.js.map +0 -1
- package/dist/module/lib/Components/visualization/utils/ticks/ticks.test.js +0 -155
- package/dist/module/lib/Components/visualization/utils/ticks/ticks.test.js.map +0 -1
- package/dist/module/styles/hooks/useStyleSheet.test.js +0 -473
- package/dist/module/styles/hooks/useStyleSheet.test.js.map +0 -1
- package/dist/module/styles/lx/createStyledPressable.test.js +0 -291
- package/dist/module/styles/lx/createStyledPressable.test.js.map +0 -1
- package/dist/module/styles/lx/createStyledText.test.js +0 -242
- package/dist/module/styles/lx/createStyledText.test.js.map +0 -1
- package/dist/module/styles/lx/createStyledView.test.js +0 -189
- package/dist/module/styles/lx/createStyledView.test.js.map +0 -1
- package/dist/module/styles/lx/resolveStyle.test.js +0 -633
- package/dist/module/styles/lx/resolveStyle.test.js.map +0 -1
- package/dist/module/styles/provider/LumenStyleSheetProvider.test.js +0 -131
- package/dist/module/styles/provider/LumenStyleSheetProvider.test.js.map +0 -1
- package/dist/module/styles/theme/createStylesheetTheme.test.js +0 -27
- package/dist/module/styles/theme/createStylesheetTheme.test.js.map +0 -1
- package/dist/module/styles/theme/resolvers/resolveFontWeights.test.js +0 -59
- package/dist/module/styles/theme/resolvers/resolveFontWeights.test.js.map +0 -1
- package/dist/module/styles/theme/resolvers/resolveNegativeSpacing.test.js +0 -29
- package/dist/module/styles/theme/resolvers/resolveNegativeSpacing.test.js.map +0 -1
- package/dist/module/translations/translations.test.js +0 -34
- package/dist/module/translations/translations.test.js.map +0 -1
- package/src/lib/Components/animations/Pulse/Pulse.mdx +0 -85
- package/src/lib/Components/animations/Pulse/Pulse.stories.tsx +0 -98
- package/src/lib/Components/animations/Spin/Spin.mdx +0 -84
- package/src/lib/Components/animations/Spin/Spin.stories.tsx +0 -71
- package/src/lib/Components/core/AddressInput/AddressInput.figma.tsx +0 -43
- package/src/lib/Components/core/AddressInput/AddressInput.mdx +0 -564
- package/src/lib/Components/core/AddressInput/AddressInput.stories.tsx +0 -235
- package/src/lib/Components/core/AddressInput/AddressInput.test.tsx +0 -62
- package/src/lib/Components/core/AmountDisplay/AmountDisplay.figma.tsx +0 -37
- package/src/lib/Components/core/AmountDisplay/AmountDisplay.mdx +0 -200
- package/src/lib/Components/core/AmountDisplay/AmountDisplay.stories.tsx +0 -192
- package/src/lib/Components/core/AmountDisplay/AmountDisplay.test.tsx +0 -469
- package/src/lib/Components/core/AmountInput/AmountInput.figma.tsx +0 -78
- package/src/lib/Components/core/AmountInput/AmountInput.mdx +0 -304
- package/src/lib/Components/core/AmountInput/AmountInput.stories.tsx +0 -281
- package/src/lib/Components/core/AmountInput/AmountInput.test.tsx +0 -166
- package/src/lib/Components/core/AmountInput/useAmountInputFormatting/useAmountInputFormatting.test.ts +0 -82
- package/src/lib/Components/core/Avatar/Avatar.figma.tsx +0 -42
- package/src/lib/Components/core/Avatar/Avatar.mdx +0 -166
- package/src/lib/Components/core/Avatar/Avatar.stories.tsx +0 -126
- package/src/lib/Components/core/Avatar/Avatar.test.tsx +0 -312
- package/src/lib/Components/core/Avatar/useResolveAvatarColor.test.tsx +0 -106
- package/src/lib/Components/core/AvatarButton/AvatarButton.mdx +0 -62
- package/src/lib/Components/core/AvatarButton/AvatarButton.stories.tsx +0 -51
- package/src/lib/Components/core/AvatarButton/AvatarButton.test.tsx +0 -92
- package/src/lib/Components/core/Banner/Banner.figma.tsx +0 -115
- package/src/lib/Components/core/Banner/Banner.mdx +0 -352
- package/src/lib/Components/core/Banner/Banner.stories.tsx +0 -425
- package/src/lib/Components/core/Banner/Banner.test.tsx +0 -116
- package/src/lib/Components/core/BottomSheet/BottomSheet.figma.tsx +0 -52
- package/src/lib/Components/core/BottomSheet/BottomSheet.mdx +0 -413
- package/src/lib/Components/core/BottomSheet/BottomSheet.stories.tsx +0 -996
- package/src/lib/Components/core/BottomSheet/BottomSheet.test.tsx +0 -539
- package/src/lib/Components/core/Button/Button.figma.tsx +0 -58
- package/src/lib/Components/core/Button/Button.mdx +0 -168
- package/src/lib/Components/core/Button/Button.stories.tsx +0 -238
- package/src/lib/Components/core/Button/ButtonGroup.figma.tsx +0 -15
- package/src/lib/Components/core/Card/Card.figma.tsx +0 -169
- package/src/lib/Components/core/Card/Card.mdx +0 -293
- package/src/lib/Components/core/Card/Card.stories.tsx +0 -736
- package/src/lib/Components/core/Card/Card.test.tsx +0 -226
- package/src/lib/Components/core/CardButton/CardButton.figma.tsx +0 -49
- package/src/lib/Components/core/CardButton/CardButton.mdx +0 -246
- package/src/lib/Components/core/CardButton/CardButton.stories.tsx +0 -284
- package/src/lib/Components/core/CardButton/CardButton.test.tsx +0 -140
- package/src/lib/Components/core/Checkbox/Checkbox.figma.tsx +0 -54
- package/src/lib/Components/core/Checkbox/Checkbox.mdx +0 -151
- package/src/lib/Components/core/Checkbox/Checkbox.stories.tsx +0 -115
- package/src/lib/Components/core/Checkbox/Checkbox.test.tsx +0 -115
- package/src/lib/Components/core/ContentBanner/ContentBanner.figma.tsx +0 -108
- package/src/lib/Components/core/ContentBanner/ContentBanner.mdx +0 -244
- package/src/lib/Components/core/ContentBanner/ContentBanner.stories.tsx +0 -224
- package/src/lib/Components/core/ContentBanner/ContentBanner.test.tsx +0 -132
- package/src/lib/Components/core/DescriptionItem/DescriptionItem.figma.tsx +0 -36
- package/src/lib/Components/core/DescriptionItem/DescriptionItem.mdx +0 -142
- package/src/lib/Components/core/DescriptionItem/DescriptionItem.stories.tsx +0 -230
- package/src/lib/Components/core/DescriptionItem/DescriptionItem.test.tsx +0 -136
- package/src/lib/Components/core/Divider/Divider.figma.tsx +0 -11
- package/src/lib/Components/core/Divider/Divider.mdx +0 -149
- package/src/lib/Components/core/Divider/Divider.stories.tsx +0 -142
- package/src/lib/Components/core/Divider/Divider.test.tsx +0 -91
- package/src/lib/Components/core/DotCount/DotCount.figma.tsx +0 -32
- package/src/lib/Components/core/DotCount/DotCount.mdx +0 -86
- package/src/lib/Components/core/DotCount/DotCount.stories.tsx +0 -131
- package/src/lib/Components/core/DotCount/DotCount.test.tsx +0 -150
- package/src/lib/Components/core/DotIcon/DotIcon.mdx +0 -148
- package/src/lib/Components/core/DotIcon/DotIcon.stories.tsx +0 -207
- package/src/lib/Components/core/DotIcon/DotIcon.test.tsx +0 -244
- package/src/lib/Components/core/DotIcon/getDotIconProps.test.ts +0 -19
- package/src/lib/Components/core/DotIndicator/DotIndicator.figma.tsx +0 -32
- package/src/lib/Components/core/DotIndicator/DotIndicator.mdx +0 -83
- package/src/lib/Components/core/DotIndicator/DotIndicator.stories.tsx +0 -82
- package/src/lib/Components/core/DotIndicator/DotIndicator.test.tsx +0 -152
- package/src/lib/Components/core/DotIndicator/getDotIndicatorProps.test.ts +0 -31
- package/src/lib/Components/core/DotSymbol/DotSymbol.mdx +0 -131
- package/src/lib/Components/core/DotSymbol/DotSymbol.stories.tsx +0 -247
- package/src/lib/Components/core/DotSymbol/DotSymbol.test.tsx +0 -119
- package/src/lib/Components/core/DotSymbol/getDotSymbolProps.test.ts +0 -25
- package/src/lib/Components/core/IconButton/IconButton.figma.tsx +0 -53
- package/src/lib/Components/core/IconButton/IconButton.mdx +0 -137
- package/src/lib/Components/core/IconButton/IconButton.stories.tsx +0 -157
- package/src/lib/Components/core/IconButton/IconButton.test.tsx +0 -140
- package/src/lib/Components/core/InteractiveIcon/InteractiveIcon.figma.tsx +0 -52
- package/src/lib/Components/core/InteractiveIcon/InteractiveIcon.mdx +0 -175
- package/src/lib/Components/core/InteractiveIcon/InteractiveIcon.stories.tsx +0 -195
- package/src/lib/Components/core/InteractiveIcon/InteractiveIcon.test.tsx +0 -184
- package/src/lib/Components/core/Link/Link.figma.tsx +0 -54
- package/src/lib/Components/core/Link/Link.mdx +0 -264
- package/src/lib/Components/core/Link/Link.stories.tsx +0 -322
- package/src/lib/Components/core/Link/Link.test.tsx +0 -224
- package/src/lib/Components/core/ListItem/ListItem.figma.tsx +0 -466
- package/src/lib/Components/core/ListItem/ListItem.mdx +0 -461
- package/src/lib/Components/core/ListItem/ListItem.stories.tsx +0 -610
- package/src/lib/Components/core/ListItem/ListItem.test.tsx +0 -230
- package/src/lib/Components/core/MediaBanner/MediaBanner.figma.tsx +0 -32
- package/src/lib/Components/core/MediaBanner/MediaBanner.mdx +0 -169
- package/src/lib/Components/core/MediaBanner/MediaBanner.stories.tsx +0 -175
- package/src/lib/Components/core/MediaBanner/MediaBanner.test.tsx +0 -126
- package/src/lib/Components/core/MediaButton/MediaButton.figma.tsx +0 -60
- package/src/lib/Components/core/MediaButton/MediaButton.mdx +0 -44
- package/src/lib/Components/core/MediaButton/MediaButton.stories.tsx +0 -145
- package/src/lib/Components/core/MediaButton/MediaButton.test.tsx +0 -198
- package/src/lib/Components/core/MediaCard/MediaCard.figma.tsx +0 -27
- package/src/lib/Components/core/MediaCard/MediaCard.mdx +0 -109
- package/src/lib/Components/core/MediaCard/MediaCard.stories.tsx +0 -161
- package/src/lib/Components/core/MediaCard/MediaCard.test.tsx +0 -125
- package/src/lib/Components/core/MediaImage/MediaImage.mdx +0 -135
- package/src/lib/Components/core/MediaImage/MediaImage.stories.tsx +0 -110
- package/src/lib/Components/core/MediaImage/MediaImage.test.tsx +0 -291
- package/src/lib/Components/core/MediaImageGroup/MediaImageGroup.figma.tsx +0 -119
- package/src/lib/Components/core/MediaImageGroup/MediaImageGroup.mdx +0 -96
- package/src/lib/Components/core/MediaImageGroup/MediaImageGroup.stories.tsx +0 -154
- package/src/lib/Components/core/MediaImageGroup/MediaImageGroup.test.tsx +0 -213
- package/src/lib/Components/core/MediaTag/MediaTag.figma.tsx +0 -116
- package/src/lib/Components/core/MediaTag/MediaTag.mdx +0 -159
- package/src/lib/Components/core/MediaTag/MediaTag.stories.tsx +0 -129
- package/src/lib/Components/core/MediaTag/MediaTag.test.tsx +0 -27
- package/src/lib/Components/core/MenuList/MenuList.figma.tsx +0 -23
- package/src/lib/Components/core/MenuList/MenuList.mdx +0 -79
- package/src/lib/Components/core/MenuList/MenuList.stories.tsx +0 -154
- package/src/lib/Components/core/MenuList/MenuList.test.tsx +0 -205
- package/src/lib/Components/core/NavBar/NavBar.figma.tsx +0 -87
- package/src/lib/Components/core/NavBar/NavBar.mdx +0 -257
- package/src/lib/Components/core/NavBar/NavBar.stories.tsx +0 -162
- package/src/lib/Components/core/NavBar/NavBar.test.tsx +0 -420
- package/src/lib/Components/core/PageIndicator/PageIndicator.figma.tsx +0 -11
- package/src/lib/Components/core/PageIndicator/PageIndicator.mdx +0 -122
- package/src/lib/Components/core/PageIndicator/PageIndicator.stories.tsx +0 -82
- package/src/lib/Components/core/PageIndicator/PageIndicator.test.tsx +0 -269
- package/src/lib/Components/core/Pagination/Pagination.figma.tsx +0 -25
- package/src/lib/Components/core/Pagination/Pagination.mdx +0 -108
- package/src/lib/Components/core/Pagination/Pagination.stories.tsx +0 -90
- package/src/lib/Components/core/Pagination/Pagination.test.tsx +0 -346
- package/src/lib/Components/core/SearchInput/SearchInput.figma.tsx +0 -34
- package/src/lib/Components/core/SearchInput/SearchInput.mdx +0 -370
- package/src/lib/Components/core/SearchInput/SearchInput.stories.tsx +0 -144
- package/src/lib/Components/core/SearchInput/SearchInput.test.tsx +0 -40
- package/src/lib/Components/core/SectionHeader/SectionHeader.figma.tsx +0 -24
- package/src/lib/Components/core/SectionHeader/SectionHeader.mdx +0 -79
- package/src/lib/Components/core/SectionHeader/SectionHeader.stories.tsx +0 -95
- package/src/lib/Components/core/SectionHeader/SectionHeader.test.tsx +0 -103
- package/src/lib/Components/core/SegmentedControl/SegmentedControl.figma.tsx +0 -34
- package/src/lib/Components/core/SegmentedControl/SegmentedControl.mdx +0 -178
- package/src/lib/Components/core/SegmentedControl/SegmentedControl.stories.tsx +0 -208
- package/src/lib/Components/core/SegmentedControl/SegmentedControl.test.tsx +0 -206
- package/src/lib/Components/core/SelectList/SelectList.figma.tsx +0 -37
- package/src/lib/Components/core/SelectList/SelectList.mdx +0 -280
- package/src/lib/Components/core/SelectList/SelectList.stories.tsx +0 -1125
- package/src/lib/Components/core/SelectList/SelectList.test.tsx +0 -595
- package/src/lib/Components/core/SelectList/useSelectList/useSelectListItems.test.ts +0 -195
- package/src/lib/Components/core/Skeleton/Skeleton.figma.tsx +0 -17
- package/src/lib/Components/core/Skeleton/Skeleton.mdx +0 -129
- package/src/lib/Components/core/Skeleton/Skeleton.stories.tsx +0 -91
- package/src/lib/Components/core/Skeleton/Skeleton.test.tsx +0 -53
- package/src/lib/Components/core/Spinner/Spinner.figma.tsx +0 -12
- package/src/lib/Components/core/Spinner/Spinner.mdx +0 -119
- package/src/lib/Components/core/Spinner/Spinner.stories.tsx +0 -128
- package/src/lib/Components/core/Spot/Spot.figma.tsx +0 -71
- package/src/lib/Components/core/Spot/Spot.mdx +0 -113
- package/src/lib/Components/core/Spot/Spot.stories.tsx +0 -225
- package/src/lib/Components/core/Spot/Spot.test.tsx +0 -71
- package/src/lib/Components/core/Spot/SpotNumber.test.tsx +0 -93
- package/src/lib/Components/core/Stepper/Stepper.figma.tsx +0 -11
- package/src/lib/Components/core/Stepper/Stepper.mdx +0 -167
- package/src/lib/Components/core/Stepper/Stepper.stories.tsx +0 -116
- package/src/lib/Components/core/Stepper/Stepper.test.tsx +0 -159
- package/src/lib/Components/core/Subheader/Subheader.figma.tsx +0 -72
- package/src/lib/Components/core/Subheader/Subheader.mdx +0 -366
- package/src/lib/Components/core/Subheader/Subheader.stories.tsx +0 -120
- package/src/lib/Components/core/Subheader/Subheader.test.tsx +0 -172
- package/src/lib/Components/core/Switch/Switch.figma.tsx +0 -66
- package/src/lib/Components/core/Switch/Switch.mdx +0 -149
- package/src/lib/Components/core/Switch/Switch.stories.tsx +0 -120
- package/src/lib/Components/core/Switch/Switch.test.tsx +0 -96
- package/src/lib/Components/core/TabBar/TabBar.figma.tsx +0 -70
- package/src/lib/Components/core/TabBar/TabBar.mdx +0 -209
- package/src/lib/Components/core/TabBar/TabBar.stories.tsx +0 -164
- package/src/lib/Components/core/TabBar/TabBar.test.tsx +0 -79
- package/src/lib/Components/core/Tag/Tag.figma.tsx +0 -52
- package/src/lib/Components/core/Tag/Tag.mdx +0 -98
- package/src/lib/Components/core/Tag/Tag.stories.tsx +0 -122
- package/src/lib/Components/core/Tag/Tag.test.tsx +0 -51
- package/src/lib/Components/core/TextInput/TextInput.figma.tsx +0 -49
- package/src/lib/Components/core/TextInput/TextInput.mdx +0 -305
- package/src/lib/Components/core/TextInput/TextInput.stories.tsx +0 -282
- package/src/lib/Components/core/TextInput/TextInput.test.tsx +0 -348
- package/src/lib/Components/core/ThemeProvider/ThemeProvider.test.tsx +0 -39
- package/src/lib/Components/core/Tile/Tile.figma.tsx +0 -113
- package/src/lib/Components/core/Tile/Tile.mdx +0 -252
- package/src/lib/Components/core/Tile/Tile.stories.tsx +0 -372
- package/src/lib/Components/core/Tile/Tile.test.tsx +0 -227
- package/src/lib/Components/core/TileButton/TileButton.figma.tsx +0 -40
- package/src/lib/Components/core/TileButton/TileButton.mdx +0 -184
- package/src/lib/Components/core/TileButton/TileButton.stories.tsx +0 -201
- package/src/lib/Components/core/TileButton/TileButton.test.tsx +0 -137
- package/src/lib/Components/core/Timeline/Timeline.figma.tsx +0 -79
- package/src/lib/Components/core/Timeline/Timeline.mdx +0 -49
- package/src/lib/Components/core/Timeline/Timeline.stories.tsx +0 -269
- package/src/lib/Components/core/Timeline/Timeline.test.tsx +0 -279
- package/src/lib/Components/core/Toast/Toast.figma.tsx +0 -36
- package/src/lib/Components/core/Toast/Toast.mdx +0 -203
- package/src/lib/Components/core/Toast/Toast.stories.tsx +0 -249
- package/src/lib/Components/core/Toast/Toast.test.tsx +0 -181
- package/src/lib/Components/core/Toast/Toaster.test.tsx +0 -687
- package/src/lib/Components/core/Tooltip/Tooltip.figma.tsx +0 -30
- package/src/lib/Components/core/Tooltip/Tooltip.mdx +0 -173
- package/src/lib/Components/core/Tooltip/Tooltip.stories.tsx +0 -183
- package/src/lib/Components/core/Tooltip/Tooltip.test.tsx +0 -81
- package/src/lib/Components/core/Trend/Trend.figma.tsx +0 -28
- package/src/lib/Components/core/Trend/Trend.mdx +0 -104
- package/src/lib/Components/core/Trend/Trend.stories.tsx +0 -74
- package/src/lib/Components/core/Trend/Trend.test.tsx +0 -124
- package/src/lib/Components/internal/BaseButton/BaseButton.test.tsx +0 -149
- package/src/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.test.ts +0 -110
- package/src/lib/Components/internal/BaseTag/BaseTag.test.tsx +0 -137
- package/src/lib/Components/internal/CryptoIcon/CryptoIcon.figma.tsx +0 -20
- package/src/lib/Components/primitives/Box/Box.mdx +0 -50
- package/src/lib/Components/primitives/Box/Box.stories.tsx +0 -31
- package/src/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.mdx +0 -142
- package/src/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.stories.tsx +0 -188
- package/src/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.test.tsx +0 -70
- package/src/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.mdx +0 -109
- package/src/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.stories.tsx +0 -152
- package/src/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.test.tsx +0 -70
- package/src/lib/Components/primitives/Gradient/utils/resolveGradientColor.test.ts +0 -144
- package/src/lib/Components/primitives/Pressable/Pressable.mdx +0 -103
- package/src/lib/Components/primitives/Pressable/Pressable.stories.tsx +0 -34
- package/src/lib/Components/primitives/Pressable/Pressable.test.tsx +0 -222
- package/src/lib/Components/primitives/Text/Text.mdx +0 -70
- package/src/lib/Components/primitives/Text/Text.stories.tsx +0 -29
- package/src/lib/Components/symbols/Icon/Icon.figma.tsx +0 -3085
- package/src/lib/Components/symbols/Icon/Icon.mdx +0 -149
- package/src/lib/Components/symbols/Icon/Icon.stories.tsx +0 -305
- package/src/lib/Components/symbols/Icon/Icon.test.tsx +0 -92
- package/src/lib/Components/visualization/Axis/XAxis/XAxis.test.tsx +0 -101
- package/src/lib/Components/visualization/Axis/YAxis/YAxis.test.tsx +0 -101
- package/src/lib/Components/visualization/CartesianChart/RevealAnimation/RevealAnimationProvider.test.tsx +0 -172
- package/src/lib/Components/visualization/CartesianChart/context/useBuildChartContext.test.ts +0 -273
- package/src/lib/Components/visualization/CartesianChart/utils.test.ts +0 -88
- package/src/lib/Components/visualization/DonutChart/DonutChart.performance.test.tsx +0 -218
- package/src/lib/Components/visualization/DonutChart/DonutChart.test.tsx +0 -885
- package/src/lib/Components/visualization/DonutChart/hooks/useContrastSafeSeries.test.tsx +0 -68
- package/src/lib/Components/visualization/DonutChart/useDonutSeries/useDonutSeries.test.ts +0 -284
- package/src/lib/Components/visualization/DonutChart/utils.test.ts +0 -487
- package/src/lib/Components/visualization/Legend/Legend.test.tsx +0 -97
- package/src/lib/Components/visualization/Line/utils.test.ts +0 -161
- package/src/lib/Components/visualization/LineChart/LineChart.performance.test.tsx +0 -101
- package/src/lib/Components/visualization/LineChart/LineChart.stories.tsx +0 -346
- package/src/lib/Components/visualization/LineChart/LineChart.test.tsx +0 -393
- package/src/lib/Components/visualization/LineChart/LineChartEmptyState/LineChartEmptyState.test.tsx +0 -39
- package/src/lib/Components/visualization/LineChart/LineChartEmptyState/utils.test.ts +0 -23
- package/src/lib/Components/visualization/LineChart/utils.test.ts +0 -224
- package/src/lib/Components/visualization/Point/Point.stories.tsx +0 -165
- package/src/lib/Components/visualization/Point/Point.test.tsx +0 -243
- package/src/lib/Components/visualization/Point/pointContext/MagneticPointsProvider.test.tsx +0 -174
- package/src/lib/Components/visualization/Point/usePointGeometry.test.ts +0 -95
- package/src/lib/Components/visualization/Point/utils.test.ts +0 -169
- package/src/lib/Components/visualization/ReferenceLine/ReferenceLine.stories.tsx +0 -109
- package/src/lib/Components/visualization/ReferenceLine/ReferenceLine.test.tsx +0 -269
- package/src/lib/Components/visualization/ReferenceLine/utils.test.ts +0 -332
- package/src/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/DefaultScrubberTooltip.test.tsx +0 -259
- package/src/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/utils.test.ts +0 -266
- package/src/lib/Components/visualization/Scrubber/Scrubber.stories.tsx +0 -181
- package/src/lib/Components/visualization/Scrubber/Scrubber.test.tsx +0 -112
- package/src/lib/Components/visualization/Scrubber/ScrubberProvider.test.tsx +0 -305
- package/src/lib/Components/visualization/Scrubber/utils.test.ts +0 -407
- package/src/lib/Components/visualization/utils/domain/domain.test.ts +0 -156
- package/src/lib/Components/visualization/utils/scales/scales.test.ts +0 -228
- package/src/lib/Components/visualization/utils/ticks/ticks.test.ts +0 -173
- package/src/styles/hooks/useStyleSheet.test.tsx +0 -520
- package/src/styles/lx/createStyledPressable.test.tsx +0 -253
- package/src/styles/lx/createStyledText.test.tsx +0 -237
- package/src/styles/lx/createStyledView.test.tsx +0 -142
- package/src/styles/lx/resolveStyle.test.tsx +0 -687
- package/src/styles/provider/LumenStyleSheetProvider.test.tsx +0 -123
- package/src/styles/theme/createStylesheetTheme.test.ts +0 -30
- package/src/styles/theme/resolvers/resolveFontWeights.test.ts +0 -74
- package/src/styles/theme/resolvers/resolveNegativeSpacing.test.ts +0 -29
- package/src/translations/translations.test.ts +0 -56
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { describe, it, expect } from '@jest/globals';
|
|
4
|
-
import { ledgerLiveThemes } from '@ledgerhq/lumen-design-core';
|
|
5
|
-
import { useDisabledContext } from '@ledgerhq/lumen-utils-shared';
|
|
6
|
-
import { render } from '@testing-library/react-native';
|
|
7
|
-
import { Text } from 'react-native';
|
|
8
|
-
import { ThemeProvider } from "../ThemeProvider/ThemeProvider.js";
|
|
9
|
-
import { MediaImageGroup } from "./MediaImageGroup.js";
|
|
10
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
-
const TestWrapper = ({
|
|
12
|
-
children
|
|
13
|
-
}) => /*#__PURE__*/_jsx(ThemeProvider, {
|
|
14
|
-
themes: ledgerLiveThemes,
|
|
15
|
-
colorScheme: "dark",
|
|
16
|
-
locale: "en",
|
|
17
|
-
children: children
|
|
18
|
-
});
|
|
19
|
-
const DisabledProbe = () => {
|
|
20
|
-
const disabled = useDisabledContext({
|
|
21
|
-
consumerName: 'DisabledProbe'
|
|
22
|
-
});
|
|
23
|
-
return /*#__PURE__*/_jsx(Text, {
|
|
24
|
-
children: disabled ? 'disabled' : 'enabled'
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
const items = count => Array.from({
|
|
28
|
-
length: count
|
|
29
|
-
}, (_, i) => ({
|
|
30
|
-
id: `item-${i}`,
|
|
31
|
-
alt: `item-${i}`,
|
|
32
|
-
fallback: 'A'
|
|
33
|
-
}));
|
|
34
|
-
describe('MediaImageGroup', () => {
|
|
35
|
-
describe('Rendering', () => {
|
|
36
|
-
it('should render every item and no badge within maxVisible', () => {
|
|
37
|
-
const {
|
|
38
|
-
getAllByLabelText,
|
|
39
|
-
queryByText
|
|
40
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
41
|
-
children: /*#__PURE__*/_jsx(MediaImageGroup, {
|
|
42
|
-
data: items(3),
|
|
43
|
-
maxVisible: 4
|
|
44
|
-
})
|
|
45
|
-
}));
|
|
46
|
-
expect(getAllByLabelText(/^item-/)).toHaveLength(3);
|
|
47
|
-
expect(queryByText(/^\+/)).toBeNull();
|
|
48
|
-
});
|
|
49
|
-
it('should render the overflow badge within the maxVisible budget', () => {
|
|
50
|
-
const {
|
|
51
|
-
getAllByLabelText,
|
|
52
|
-
getByText
|
|
53
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
54
|
-
children: /*#__PURE__*/_jsx(MediaImageGroup, {
|
|
55
|
-
data: items(10),
|
|
56
|
-
maxVisible: 4
|
|
57
|
-
})
|
|
58
|
-
}));
|
|
59
|
-
expect(getAllByLabelText(/^item-/)).toHaveLength(3);
|
|
60
|
-
expect(getByText('+7')).toBeTruthy();
|
|
61
|
-
});
|
|
62
|
-
it('should render nothing when data is empty', () => {
|
|
63
|
-
const {
|
|
64
|
-
toJSON
|
|
65
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
66
|
-
children: /*#__PURE__*/_jsx(MediaImageGroup, {
|
|
67
|
-
data: [],
|
|
68
|
-
testID: "group"
|
|
69
|
-
})
|
|
70
|
-
}));
|
|
71
|
-
expect(toJSON()).toBeNull();
|
|
72
|
-
});
|
|
73
|
-
it('should not forward the item id to the rendered media image', () => {
|
|
74
|
-
const {
|
|
75
|
-
getByLabelText
|
|
76
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
77
|
-
children: /*#__PURE__*/_jsx(MediaImageGroup, {
|
|
78
|
-
data: [{
|
|
79
|
-
id: 'btc',
|
|
80
|
-
alt: 'Bitcoin',
|
|
81
|
-
fallback: 'B'
|
|
82
|
-
}]
|
|
83
|
-
})
|
|
84
|
-
}));
|
|
85
|
-
expect(getByLabelText('Bitcoin').props.id).toBeUndefined();
|
|
86
|
-
});
|
|
87
|
-
});
|
|
88
|
-
describe('renderItem', () => {
|
|
89
|
-
it('should pass the group size and shape to renderItem', () => {
|
|
90
|
-
const contexts = [];
|
|
91
|
-
const {
|
|
92
|
-
getByText
|
|
93
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
94
|
-
children: /*#__PURE__*/_jsx(MediaImageGroup, {
|
|
95
|
-
data: [{
|
|
96
|
-
id: 'btc'
|
|
97
|
-
}, {
|
|
98
|
-
id: 'eth'
|
|
99
|
-
}],
|
|
100
|
-
size: 24,
|
|
101
|
-
shape: "square",
|
|
102
|
-
renderItem: (item, context) => {
|
|
103
|
-
contexts.push(context);
|
|
104
|
-
return /*#__PURE__*/_jsx(Text, {
|
|
105
|
-
children: item.id
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
})
|
|
109
|
-
}));
|
|
110
|
-
expect(getByText('btc')).toBeTruthy();
|
|
111
|
-
expect(getByText('eth')).toBeTruthy();
|
|
112
|
-
expect(contexts).toEqual([{
|
|
113
|
-
size: 24,
|
|
114
|
-
shape: 'square'
|
|
115
|
-
}, {
|
|
116
|
-
size: 24,
|
|
117
|
-
shape: 'square'
|
|
118
|
-
}]);
|
|
119
|
-
});
|
|
120
|
-
it('should only render the visible items', () => {
|
|
121
|
-
const {
|
|
122
|
-
getByText,
|
|
123
|
-
queryByText
|
|
124
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
125
|
-
children: /*#__PURE__*/_jsx(MediaImageGroup, {
|
|
126
|
-
data: Array.from({
|
|
127
|
-
length: 6
|
|
128
|
-
}, (_, i) => ({
|
|
129
|
-
id: `asset-${i}`
|
|
130
|
-
})),
|
|
131
|
-
maxVisible: 3,
|
|
132
|
-
renderItem: item => /*#__PURE__*/_jsx(Text, {
|
|
133
|
-
children: item.id
|
|
134
|
-
})
|
|
135
|
-
})
|
|
136
|
-
}));
|
|
137
|
-
expect(getByText('asset-0')).toBeTruthy();
|
|
138
|
-
expect(getByText('asset-1')).toBeTruthy();
|
|
139
|
-
expect(queryByText('asset-2')).toBeNull();
|
|
140
|
-
expect(getByText('+4')).toBeTruthy();
|
|
141
|
-
});
|
|
142
|
-
});
|
|
143
|
-
describe('Props', () => {
|
|
144
|
-
it('should forward testID to the root', () => {
|
|
145
|
-
const {
|
|
146
|
-
getByTestId
|
|
147
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
148
|
-
children: /*#__PURE__*/_jsx(MediaImageGroup, {
|
|
149
|
-
data: items(2),
|
|
150
|
-
testID: "group"
|
|
151
|
-
})
|
|
152
|
-
}));
|
|
153
|
-
expect(getByTestId('group')).toBeTruthy();
|
|
154
|
-
});
|
|
155
|
-
it('should forward overflowTestID to the overflow badge', () => {
|
|
156
|
-
const {
|
|
157
|
-
getByTestId
|
|
158
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
159
|
-
children: /*#__PURE__*/_jsx(MediaImageGroup, {
|
|
160
|
-
data: items(10),
|
|
161
|
-
maxVisible: 4,
|
|
162
|
-
overflowTestID: "overflow"
|
|
163
|
-
})
|
|
164
|
-
}));
|
|
165
|
-
expect(getByTestId('overflow')).toBeTruthy();
|
|
166
|
-
});
|
|
167
|
-
});
|
|
168
|
-
describe('Disabled', () => {
|
|
169
|
-
it('should dim the overflow badge when disabled', () => {
|
|
170
|
-
const {
|
|
171
|
-
getByTestId
|
|
172
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
173
|
-
children: /*#__PURE__*/_jsx(MediaImageGroup, {
|
|
174
|
-
data: items(10),
|
|
175
|
-
maxVisible: 4,
|
|
176
|
-
disabled: true,
|
|
177
|
-
overflowTestID: "overflow"
|
|
178
|
-
})
|
|
179
|
-
}));
|
|
180
|
-
expect(getByTestId('overflow')).toHaveStyle({
|
|
181
|
-
opacity: 0.3
|
|
182
|
-
});
|
|
183
|
-
});
|
|
184
|
-
it('should not dim the overflow badge by default', () => {
|
|
185
|
-
const {
|
|
186
|
-
getByTestId
|
|
187
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
188
|
-
children: /*#__PURE__*/_jsx(MediaImageGroup, {
|
|
189
|
-
data: items(10),
|
|
190
|
-
maxVisible: 4,
|
|
191
|
-
overflowTestID: "overflow"
|
|
192
|
-
})
|
|
193
|
-
}));
|
|
194
|
-
expect(getByTestId('overflow')).not.toHaveStyle({
|
|
195
|
-
opacity: 0.3
|
|
196
|
-
});
|
|
197
|
-
});
|
|
198
|
-
it('should provide the disabled state to custom items', () => {
|
|
199
|
-
const {
|
|
200
|
-
getByText
|
|
201
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
202
|
-
children: /*#__PURE__*/_jsx(MediaImageGroup, {
|
|
203
|
-
data: [{
|
|
204
|
-
id: 'btc'
|
|
205
|
-
}],
|
|
206
|
-
disabled: true,
|
|
207
|
-
renderItem: () => /*#__PURE__*/_jsx(DisabledProbe, {})
|
|
208
|
-
})
|
|
209
|
-
}));
|
|
210
|
-
expect(getByText('disabled')).toBeTruthy();
|
|
211
|
-
});
|
|
212
|
-
});
|
|
213
|
-
describe('Types', () => {
|
|
214
|
-
it('should require renderItem when data is not MediaImageGroupItem[]', () => {
|
|
215
|
-
const assets = [{
|
|
216
|
-
ticker: 'BTC'
|
|
217
|
-
}];
|
|
218
|
-
|
|
219
|
-
// Compile-time only: a `@ts-expect-error` fails typecheck if the union
|
|
220
|
-
// stops rejecting the line below it.
|
|
221
|
-
const typeChecks = () => /*#__PURE__*/_jsxs(_Fragment, {
|
|
222
|
-
children: [/*#__PURE__*/_jsx(MediaImageGroup, {
|
|
223
|
-
data: [{
|
|
224
|
-
src: 'btc.png',
|
|
225
|
-
alt: 'Bitcoin'
|
|
226
|
-
}]
|
|
227
|
-
}), /*#__PURE__*/_jsx(MediaImageGroup, {
|
|
228
|
-
data: assets,
|
|
229
|
-
renderItem: asset => /*#__PURE__*/_jsx(Text, {
|
|
230
|
-
children: asset.ticker
|
|
231
|
-
})
|
|
232
|
-
}), /*#__PURE__*/_jsx(MediaImageGroup, {
|
|
233
|
-
data: assets
|
|
234
|
-
}), /*#__PURE__*/_jsx(MediaImageGroup, {
|
|
235
|
-
data: [{
|
|
236
|
-
src: 'btc.png',
|
|
237
|
-
alt: 'Bitcoin',
|
|
238
|
-
ticker: 'BTC'
|
|
239
|
-
}]
|
|
240
|
-
})]
|
|
241
|
-
});
|
|
242
|
-
expect(typeChecks).toBeDefined();
|
|
243
|
-
});
|
|
244
|
-
});
|
|
245
|
-
});
|
|
246
|
-
//# sourceMappingURL=MediaImageGroup.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["describe","it","expect","ledgerLiveThemes","useDisabledContext","render","Text","ThemeProvider","MediaImageGroup","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","TestWrapper","children","themes","colorScheme","locale","DisabledProbe","disabled","consumerName","items","count","Array","from","length","_","i","id","alt","fallback","getAllByLabelText","queryByText","data","maxVisible","toHaveLength","toBeNull","getByText","toBeTruthy","toJSON","testID","getByLabelText","props","toBeUndefined","contexts","size","shape","renderItem","item","context","push","toEqual","getByTestId","overflowTestID","toHaveStyle","opacity","not","assets","ticker","typeChecks","src","asset","toBeDefined"],"sourceRoot":"../../../../../../src","sources":["lib/Components/core/MediaImageGroup/MediaImageGroup.test.tsx"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,EAAE,EAAEC,MAAM,QAAQ,eAAe;AACpD,SAASC,gBAAgB,QAAQ,6BAA6B;AAC9D,SAASC,kBAAkB,QAAQ,8BAA8B;AACjE,SAASC,MAAM,QAAQ,+BAA+B;AACtD,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,aAAa,QAAQ,mCAAgC;AAC9D,SAASC,eAAe,QAAQ,sBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAEpD,MAAMC,WAAW,GAAGA,CAAC;EAAEC;AAAwC,CAAC,kBAC9DN,IAAA,CAACH,aAAa;EAACU,MAAM,EAAEd,gBAAiB;EAACe,WAAW,EAAC,MAAM;EAACC,MAAM,EAAC,IAAI;EAAAH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;IACtBC,EAAE,CAAC,kEAAkE,EAAE,MAAM;MAC3E,MAAM0D,MAAM,GAAG,CAAC;QAAEC,MAAM,EAAE;MAAM,CAAC,CAAC;;MAElC;MACA;MACA,MAAMC,UAAU,GAAGA,CAAA,kBACjB/C,KAAA,CAAAF,SAAA;QAAAI,QAAA,gBACEN,IAAA,CAACF,eAAe;UAAC2B,IAAI,EAAE,CAAC;YAAE2B,GAAG,EAAE,SAAS;YAAE/B,GAAG,EAAE;UAAU,CAAC;QAAE,CAAE,CAAC,eAC/DrB,IAAA,CAACF,eAAe;UACd2B,IAAI,EAAEwB,MAAO;UACbV,UAAU,EAAGc,KAAK,iBAAKrD,IAAA,CAACJ,IAAI;YAAAU,QAAA,EAAE+C,KAAK,CAACH;UAAM,CAAO;QAAE,CACpD,CAAC,eAEFlD,IAAA,CAACF,eAAe;UAAC2B,IAAI,EAAEwB;QAAO,CAAE,CAAC,eAEjCjD,IAAA,CAACF,eAAe;UACd2B,IAAI,EAAE,CAAC;YAAE2B,GAAG,EAAE,SAAS;YAAE/B,GAAG,EAAE,SAAS;YAAE6B,MAAM,EAAE;UAAM,CAAC;QAAE,CAC3D,CAAC;MAAA,CACF,CACH;MAED1D,MAAM,CAAC2D,UAAU,CAAC,CAACG,WAAW,CAAC,CAAC;IAClC,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import figma from '@figma/code-connect';
|
|
4
|
-
import CryptoIcon from '@ledgerhq/crypto-icons/native';
|
|
5
|
-
import { MediaTag } from "./MediaTag.js";
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
figma.connect(MediaTag, 'https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7?node-id=16793-36383', {
|
|
8
|
-
imports: ["import { MediaTag } from '@ledgerhq/lumen-ui-rnative'", "import CryptoIcon from '@ledgerhq/crypto-icons/native'"],
|
|
9
|
-
variant: {
|
|
10
|
-
'leading-icon': 'coin'
|
|
11
|
-
},
|
|
12
|
-
props: {
|
|
13
|
-
label: figma.string('label'),
|
|
14
|
-
appearance: figma.enum('appearance', {
|
|
15
|
-
base: 'base',
|
|
16
|
-
gray: 'gray',
|
|
17
|
-
accent: 'accent',
|
|
18
|
-
'accent-subtle': 'accent-subtle',
|
|
19
|
-
success: 'success',
|
|
20
|
-
error: 'error',
|
|
21
|
-
warning: 'warning',
|
|
22
|
-
white: 'white'
|
|
23
|
-
}),
|
|
24
|
-
size: figma.enum('size', {
|
|
25
|
-
md: 'md',
|
|
26
|
-
sm: 'sm'
|
|
27
|
-
}),
|
|
28
|
-
tagSize: figma.enum('size', {
|
|
29
|
-
md: 16,
|
|
30
|
-
sm: 12
|
|
31
|
-
}),
|
|
32
|
-
disabled: figma.enum('appearance', {
|
|
33
|
-
disabled: true
|
|
34
|
-
}),
|
|
35
|
-
coin: figma.nestedProps('coin', {
|
|
36
|
-
asset: figma.enum('asset', {
|
|
37
|
-
btc: 'btc',
|
|
38
|
-
eth: 'eth'
|
|
39
|
-
})
|
|
40
|
-
})
|
|
41
|
-
},
|
|
42
|
-
example: props => /*#__PURE__*/_jsx(MediaTag, {
|
|
43
|
-
disabled: props.disabled,
|
|
44
|
-
label: props.label,
|
|
45
|
-
appearance: props.appearance,
|
|
46
|
-
size: props.size,
|
|
47
|
-
leadingContent: /*#__PURE__*/_jsx(CryptoIcon, {
|
|
48
|
-
ticker: props.coin.asset,
|
|
49
|
-
ledgerId: props.coin.asset,
|
|
50
|
-
size: props.tagSize
|
|
51
|
-
})
|
|
52
|
-
})
|
|
53
|
-
});
|
|
54
|
-
figma.connect(MediaTag, 'https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7?node-id=16793-36383', {
|
|
55
|
-
imports: ["import { MediaTag } from '@ledgerhq/lumen-ui-rnative'", "import CryptoIcon from '@ledgerhq/crypto-icons/native'"],
|
|
56
|
-
variant: {
|
|
57
|
-
'leading-icon': 'network'
|
|
58
|
-
},
|
|
59
|
-
props: {
|
|
60
|
-
label: figma.string('label'),
|
|
61
|
-
appearance: figma.enum('appearance', {
|
|
62
|
-
base: 'base',
|
|
63
|
-
gray: 'gray',
|
|
64
|
-
accent: 'accent',
|
|
65
|
-
'accent-subtle': 'accent-subtle',
|
|
66
|
-
success: 'success',
|
|
67
|
-
error: 'error',
|
|
68
|
-
warning: 'warning',
|
|
69
|
-
white: 'white'
|
|
70
|
-
}),
|
|
71
|
-
size: figma.enum('size', {
|
|
72
|
-
md: 'md',
|
|
73
|
-
sm: 'sm'
|
|
74
|
-
}),
|
|
75
|
-
tagSize: figma.enum('size', {
|
|
76
|
-
md: 16,
|
|
77
|
-
sm: 12
|
|
78
|
-
}),
|
|
79
|
-
disabled: figma.enum('appearance', {
|
|
80
|
-
disabled: true
|
|
81
|
-
}),
|
|
82
|
-
network: figma.nestedProps('network', {
|
|
83
|
-
ticker: figma.enum('network', {
|
|
84
|
-
eth: 'eth'
|
|
85
|
-
})
|
|
86
|
-
})
|
|
87
|
-
},
|
|
88
|
-
example: props => /*#__PURE__*/_jsx(MediaTag, {
|
|
89
|
-
disabled: props.disabled,
|
|
90
|
-
label: props.label,
|
|
91
|
-
appearance: props.appearance,
|
|
92
|
-
size: props.size,
|
|
93
|
-
leadingContent: /*#__PURE__*/_jsx(CryptoIcon, {
|
|
94
|
-
ticker: props.network.ticker,
|
|
95
|
-
ledgerId: props.network.ticker,
|
|
96
|
-
size: props.tagSize
|
|
97
|
-
})
|
|
98
|
-
})
|
|
99
|
-
});
|
|
100
|
-
//# sourceMappingURL=MediaTag.figma.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["figma","CryptoIcon","MediaTag","jsx","_jsx","connect","imports","variant","props","label","string","appearance","enum","base","gray","accent","success","error","warning","white","size","md","sm","tagSize","disabled","coin","nestedProps","asset","btc","eth","example","leadingContent","ticker","ledgerId","network"],"sourceRoot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,CAAC,CAAC;IACFU,OAAO,EAAElC,KAAK,CAAC0B,WAAW,CAAC,SAAS,EAAE;MACpCM,MAAM,EAAEhC,KAAK,CAACY,IAAI,CAAC,SAAS,EAAE;QAC5BiB,GAAG,EAAE;MACP,CAAC;IACH,CAAC;EACH,CAAC;EACDC,OAAO,EAAGtB,KAAK,iBACbJ,IAAA,CAACF,QAAQ;IACPsB,QAAQ,EAAEhB,KAAK,CAACgB,QAAS;IACzBf,KAAK,EAAED,KAAK,CAACC,KAAM;IACnBE,UAAU,EAAEH,KAAK,CAACG,UAAW;IAC7BS,IAAI,EAAEZ,KAAK,CAACY,IAAK;IACjBW,cAAc,eACZ3B,IAAA,CAACH,UAAU;MACT+B,MAAM,EAAExB,KAAK,CAAC0B,OAAO,CAACF,MAAO;MAC7BC,QAAQ,EAAEzB,KAAK,CAAC0B,OAAO,CAACF,MAAO;MAC/BZ,IAAI,EAAEZ,KAAK,CAACe;IAAQ,CACrB;EACF,CACF;AAEL,CACF,CAAC","ignoreList":[]}
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { Meta, Canvas, Controls } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import * as MediaTagStories from './MediaTag.stories';
|
|
3
|
-
import { CustomTabs, Tab } from '../../../../../.storybook/components';
|
|
4
|
-
import { Box } from '../../primitives/Box';
|
|
5
|
-
|
|
6
|
-
<Meta title='Core/MediaTag' of={MediaTagStories} />
|
|
7
|
-
|
|
8
|
-
# MediaTag
|
|
9
|
-
|
|
10
|
-
<CustomTabs>
|
|
11
|
-
<Tab label="Overview">
|
|
12
|
-
|
|
13
|
-
## Introduction
|
|
14
|
-
|
|
15
|
-
MediaTag is a compact label used to categorize, classify, or highlight information alongside a required media element such as an image or crypto icon. Like [Tag](/docs/rnative-tag--docs), it supports multiple appearances and sizes, but is designed for cases where the icon is richer than a Symbol.
|
|
16
|
-
|
|
17
|
-
> View in [Figma](https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7/2.-Components-Library?node-id=16793-36383&m=dev).
|
|
18
|
-
|
|
19
|
-
## Anatomy
|
|
20
|
-
|
|
21
|
-
<Canvas of={MediaTagStories.Base} />
|
|
22
|
-
|
|
23
|
-
- **Label:** The text content of the tag.
|
|
24
|
-
- **Leading content:** A required media element (image, crypto icon, etc.) displayed before the label. Passed via the `leadingContent` prop.
|
|
25
|
-
|
|
26
|
-
## Properties
|
|
27
|
-
|
|
28
|
-
<Canvas of={MediaTagStories.Base} />
|
|
29
|
-
<Controls of={MediaTagStories.Base} />
|
|
30
|
-
|
|
31
|
-
### Appearance
|
|
32
|
-
|
|
33
|
-
<Canvas of={MediaTagStories.AppearanceShowcase} />
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
### Size
|
|
38
|
-
|
|
39
|
-
MediaTags come in two different sizes:
|
|
40
|
-
|
|
41
|
-
- **md** (default) — the `leadingContent` media should be rendered at **16px**.
|
|
42
|
-
- **sm** — the `leadingContent` media should be rendered at **12px**.
|
|
43
|
-
|
|
44
|
-
The MediaTag does not resize its `leadingContent`; consumers are responsible for passing a media element sized to match the tag's `size`.
|
|
45
|
-
|
|
46
|
-
<Canvas of={MediaTagStories.SizeShowcase} />
|
|
47
|
-
|
|
48
|
-
### Truncation
|
|
49
|
-
|
|
50
|
-
When a MediaTag's label exceeds the available space, the text is automatically truncated with an ellipsis.
|
|
51
|
-
|
|
52
|
-
<Canvas of={MediaTagStories.TruncateShowcase} />
|
|
53
|
-
|
|
54
|
-
### Accessibility
|
|
55
|
-
|
|
56
|
-
To be implemented:
|
|
57
|
-
|
|
58
|
-
- **Color contrast**
|
|
59
|
-
- **Text zoom**
|
|
60
|
-
- **Touch targets**
|
|
61
|
-
- **Screen reader support**
|
|
62
|
-
- **Semantic labeling**
|
|
63
|
-
|
|
64
|
-
</Tab>
|
|
65
|
-
<Tab label="Implementation">
|
|
66
|
-
|
|
67
|
-
## Setup
|
|
68
|
-
|
|
69
|
-
Install and set up the library with our [Setup Guide →](?path=/docs/getting-started-setup--docs).
|
|
70
|
-
|
|
71
|
-
### Basic Usage
|
|
72
|
-
|
|
73
|
-
Match the media element size to the MediaTag `size`: **16px** for `md`, **12px** for `sm`.
|
|
74
|
-
|
|
75
|
-
```tsx
|
|
76
|
-
import { MediaTag, MediaImage } from '@ledgerhq/lumen-ui-rnative';
|
|
77
|
-
|
|
78
|
-
function MyComponent() {
|
|
79
|
-
return (
|
|
80
|
-
<>
|
|
81
|
-
{/* md → image size 16 */}
|
|
82
|
-
<MediaTag
|
|
83
|
-
size="md"
|
|
84
|
-
appearance="accent"
|
|
85
|
-
label="Ethereum"
|
|
86
|
-
leadingContent={
|
|
87
|
-
<MediaImage
|
|
88
|
-
src="https://crypto-icons.ledger.com/ETH.png"
|
|
89
|
-
alt="Ethereum"
|
|
90
|
-
size={16}
|
|
91
|
-
shape="square"
|
|
92
|
-
/>
|
|
93
|
-
}
|
|
94
|
-
/>
|
|
95
|
-
|
|
96
|
-
{/* sm → image size 12 */}
|
|
97
|
-
<MediaTag
|
|
98
|
-
size="sm"
|
|
99
|
-
appearance="accent"
|
|
100
|
-
label="Ethereum"
|
|
101
|
-
leadingContent={
|
|
102
|
-
<MediaImage
|
|
103
|
-
src="https://crypto-icons.ledger.com/ETH.png"
|
|
104
|
-
alt="Ethereum"
|
|
105
|
-
size={12}
|
|
106
|
-
shape="square"
|
|
107
|
-
/>
|
|
108
|
-
}
|
|
109
|
-
/>
|
|
110
|
-
</>
|
|
111
|
-
);
|
|
112
|
-
}
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
### Custom Styling
|
|
116
|
-
|
|
117
|
-
While the component comes with predefined styles, you can extend them using the `lx` prop for layout adjustments:
|
|
118
|
-
|
|
119
|
-
```tsx
|
|
120
|
-
<MediaTag
|
|
121
|
-
size="md"
|
|
122
|
-
appearance="accent"
|
|
123
|
-
label="Custom MediaTag"
|
|
124
|
-
leadingContent={myIcon}
|
|
125
|
-
lx={{ marginTop: 's4' }}
|
|
126
|
-
/>
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
### With Crypto Icons
|
|
130
|
-
|
|
131
|
-
The MediaTag accepts any `ReactNode` as its `leadingContent`, including crypto icons. Use **16px** for `md` and **12px** for `sm`:
|
|
132
|
-
|
|
133
|
-
```tsx
|
|
134
|
-
import { MediaTag } from '@ledgerhq/lumen-ui-rnative';
|
|
135
|
-
import CryptoIcon from '@ledgerhq/crypto-icons/native';
|
|
136
|
-
|
|
137
|
-
function MyComponent() {
|
|
138
|
-
return (
|
|
139
|
-
<>
|
|
140
|
-
{/* md → leadingContent size 16 */}
|
|
141
|
-
<MediaTag
|
|
142
|
-
size="md"
|
|
143
|
-
label="Bitcoin"
|
|
144
|
-
leadingContent={<CryptoIcon ledgerId="bitcoin" ticker="BTC" size={16} />}
|
|
145
|
-
/>
|
|
146
|
-
|
|
147
|
-
{/* sm → leadingContent size 12 */}
|
|
148
|
-
<MediaTag
|
|
149
|
-
size="sm"
|
|
150
|
-
label="Bitcoin"
|
|
151
|
-
leadingContent={<CryptoIcon ledgerId="bitcoin" ticker="BTC" size={12} />}
|
|
152
|
-
/>
|
|
153
|
-
</>
|
|
154
|
-
);
|
|
155
|
-
}
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
</Tab>
|
|
159
|
-
</CustomTabs>
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { Box } from "../../primitives/Box/index.js";
|
|
4
|
-
import { MediaImage } from "../MediaImage/index.js";
|
|
5
|
-
import { MediaTag } from "./MediaTag.js";
|
|
6
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
-
const ETH_ICON = /*#__PURE__*/_jsx(MediaImage, {
|
|
8
|
-
src: "https://crypto-icons.ledger.com/ETH.png",
|
|
9
|
-
alt: "Ethereum",
|
|
10
|
-
size: 16,
|
|
11
|
-
shape: "square"
|
|
12
|
-
});
|
|
13
|
-
const meta = {
|
|
14
|
-
parameters: {
|
|
15
|
-
docs: {
|
|
16
|
-
source: {
|
|
17
|
-
language: 'tsx',
|
|
18
|
-
format: true,
|
|
19
|
-
type: 'dynamic'
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
component: MediaTag,
|
|
24
|
-
id: 'rnative-mediatag',
|
|
25
|
-
title: 'Core/MediaTag',
|
|
26
|
-
argTypes: {
|
|
27
|
-
appearance: {
|
|
28
|
-
control: 'select',
|
|
29
|
-
options: ['base', 'gray', 'accent', 'accent-subtle', 'success', 'error', 'warning', 'white']
|
|
30
|
-
},
|
|
31
|
-
size: {
|
|
32
|
-
control: 'radio',
|
|
33
|
-
options: ['sm', 'md']
|
|
34
|
-
},
|
|
35
|
-
label: {
|
|
36
|
-
control: 'text'
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
export default meta;
|
|
41
|
-
export const Base = {
|
|
42
|
-
args: {
|
|
43
|
-
label: 'Ethereum',
|
|
44
|
-
leadingContent: ETH_ICON,
|
|
45
|
-
appearance: 'accent',
|
|
46
|
-
size: 'md'
|
|
47
|
-
},
|
|
48
|
-
render: args => /*#__PURE__*/_jsx(MediaTag, {
|
|
49
|
-
...args,
|
|
50
|
-
leadingContent: ETH_ICON
|
|
51
|
-
})
|
|
52
|
-
};
|
|
53
|
-
export const AppearanceShowcase = {
|
|
54
|
-
args: {
|
|
55
|
-
label: 'Ethereum',
|
|
56
|
-
leadingContent: ETH_ICON
|
|
57
|
-
},
|
|
58
|
-
render: () => /*#__PURE__*/_jsxs(Box, {
|
|
59
|
-
lx: {
|
|
60
|
-
flexDirection: 'row',
|
|
61
|
-
flexWrap: 'wrap',
|
|
62
|
-
gap: 's4'
|
|
63
|
-
},
|
|
64
|
-
children: [/*#__PURE__*/_jsx(MediaTag, {
|
|
65
|
-
appearance: "base",
|
|
66
|
-
label: "Base",
|
|
67
|
-
leadingContent: ETH_ICON
|
|
68
|
-
}), /*#__PURE__*/_jsx(MediaTag, {
|
|
69
|
-
appearance: "gray",
|
|
70
|
-
label: "Gray",
|
|
71
|
-
leadingContent: ETH_ICON
|
|
72
|
-
}), /*#__PURE__*/_jsx(MediaTag, {
|
|
73
|
-
appearance: "accent",
|
|
74
|
-
label: "Accent",
|
|
75
|
-
leadingContent: ETH_ICON
|
|
76
|
-
}), /*#__PURE__*/_jsx(MediaTag, {
|
|
77
|
-
appearance: "accent-subtle",
|
|
78
|
-
label: "Accent subtle",
|
|
79
|
-
leadingContent: ETH_ICON
|
|
80
|
-
}), /*#__PURE__*/_jsx(MediaTag, {
|
|
81
|
-
appearance: "success",
|
|
82
|
-
label: "Success",
|
|
83
|
-
leadingContent: ETH_ICON
|
|
84
|
-
}), /*#__PURE__*/_jsx(MediaTag, {
|
|
85
|
-
appearance: "error",
|
|
86
|
-
label: "Error",
|
|
87
|
-
leadingContent: ETH_ICON
|
|
88
|
-
}), /*#__PURE__*/_jsx(MediaTag, {
|
|
89
|
-
appearance: "warning",
|
|
90
|
-
label: "Warning",
|
|
91
|
-
leadingContent: ETH_ICON
|
|
92
|
-
}), /*#__PURE__*/_jsx(MediaTag, {
|
|
93
|
-
appearance: "white",
|
|
94
|
-
label: "White",
|
|
95
|
-
leadingContent: ETH_ICON
|
|
96
|
-
}), /*#__PURE__*/_jsx(MediaTag, {
|
|
97
|
-
label: "Disabled",
|
|
98
|
-
leadingContent: ETH_ICON,
|
|
99
|
-
disabled: true
|
|
100
|
-
})]
|
|
101
|
-
})
|
|
102
|
-
};
|
|
103
|
-
export const SizeShowcase = {
|
|
104
|
-
args: {
|
|
105
|
-
label: 'Ethereum',
|
|
106
|
-
leadingContent: ETH_ICON
|
|
107
|
-
},
|
|
108
|
-
render: () => /*#__PURE__*/_jsxs(Box, {
|
|
109
|
-
lx: {
|
|
110
|
-
flexDirection: 'row',
|
|
111
|
-
alignItems: 'center',
|
|
112
|
-
gap: 's4'
|
|
113
|
-
},
|
|
114
|
-
children: [/*#__PURE__*/_jsx(MediaTag, {
|
|
115
|
-
size: "md",
|
|
116
|
-
label: "Medium",
|
|
117
|
-
leadingContent: ETH_ICON
|
|
118
|
-
}), /*#__PURE__*/_jsx(MediaTag, {
|
|
119
|
-
size: "sm",
|
|
120
|
-
label: "Small",
|
|
121
|
-
leadingContent: /*#__PURE__*/_jsx(MediaImage, {
|
|
122
|
-
src: "https://crypto-icons.ledger.com/ETH.png",
|
|
123
|
-
alt: "Ethereum",
|
|
124
|
-
size: 12,
|
|
125
|
-
shape: "square"
|
|
126
|
-
})
|
|
127
|
-
})]
|
|
128
|
-
})
|
|
129
|
-
};
|
|
130
|
-
export const TruncateShowcase = {
|
|
131
|
-
args: {
|
|
132
|
-
label: 'Ethereum',
|
|
133
|
-
leadingContent: ETH_ICON
|
|
134
|
-
},
|
|
135
|
-
render: () => /*#__PURE__*/_jsx(Box, {
|
|
136
|
-
lx: {
|
|
137
|
-
width: 's176'
|
|
138
|
-
},
|
|
139
|
-
children: /*#__PURE__*/_jsx(MediaTag, {
|
|
140
|
-
label: "Very long text that truncates",
|
|
141
|
-
leadingContent: ETH_ICON
|
|
142
|
-
})
|
|
143
|
-
})
|
|
144
|
-
};
|
|
145
|
-
//# sourceMappingURL=MediaTag.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Box","MediaImage","MediaTag","jsx","_jsx","jsxs","_jsxs","ETH_ICON","src","alt","size","shape","meta","parameters","docs","source","language","format","type","component","id","title","argTypes","appearance","control","options","label","Base","args","leadingContent","render","AppearanceShowcase","lx","flexDirection","flexWrap","gap","children","disabled","SizeShowcase","alignItems","TruncateShowcase","width"],"sourceRoot":"../../../../../../src","sources":["lib/Components/core/MediaTag/MediaTag.stories.tsx"],"mappings":";;AACA,SAASA,GAAG,QAAQ,+BAAsB;AAC1C,SAASC,UAAU,QAAQ,wBAAe;AAC1C,SAASC,QAAQ,QAAQ,eAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA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