@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,330 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { describe, it, expect } from '@jest/globals';
|
|
4
|
-
import { ledgerLiveThemes } from '@ledgerhq/lumen-design-core';
|
|
5
|
-
import { render, waitFor } from '@testing-library/react-native';
|
|
6
|
-
import { DotIndicator, getDotIndicatorProps } from "../DotIndicator/index.js";
|
|
7
|
-
import { ThemeProvider } from "../ThemeProvider/ThemeProvider.js";
|
|
8
|
-
import { Avatar } from "./Avatar.js";
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
const {
|
|
11
|
-
sizes,
|
|
12
|
-
colors
|
|
13
|
-
} = ledgerLiveThemes.dark;
|
|
14
|
-
const TestWrapper = ({
|
|
15
|
-
children
|
|
16
|
-
}) => /*#__PURE__*/_jsx(ThemeProvider, {
|
|
17
|
-
themes: ledgerLiveThemes,
|
|
18
|
-
colorScheme: "dark",
|
|
19
|
-
locale: "en",
|
|
20
|
-
children: children
|
|
21
|
-
});
|
|
22
|
-
describe('Avatar Component', () => {
|
|
23
|
-
const testSrc = 'https://plus.unsplash.com/premium_photo-1689551670902-19b441a6afde?q=80&w=774&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D';
|
|
24
|
-
it('should render correctly with minimal props', () => {
|
|
25
|
-
const {
|
|
26
|
-
getByLabelText
|
|
27
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
28
|
-
children: /*#__PURE__*/_jsx(Avatar, {
|
|
29
|
-
src: testSrc
|
|
30
|
-
})
|
|
31
|
-
}));
|
|
32
|
-
getByLabelText('User avatar');
|
|
33
|
-
});
|
|
34
|
-
it('should render with custom alt text', () => {
|
|
35
|
-
const {
|
|
36
|
-
getByLabelText
|
|
37
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
38
|
-
children: /*#__PURE__*/_jsx(Avatar, {
|
|
39
|
-
src: testSrc,
|
|
40
|
-
alt: "user profile"
|
|
41
|
-
})
|
|
42
|
-
}));
|
|
43
|
-
getByLabelText('user profile');
|
|
44
|
-
});
|
|
45
|
-
it('should render with md size by default', () => {
|
|
46
|
-
const {
|
|
47
|
-
getByTestId
|
|
48
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
49
|
-
children: /*#__PURE__*/_jsx(Avatar, {
|
|
50
|
-
testID: "avatar-id"
|
|
51
|
-
})
|
|
52
|
-
}));
|
|
53
|
-
expect(getByTestId('avatar-id').props.style.width).toBe(sizes.s48);
|
|
54
|
-
expect(getByTestId('avatar-id').props.style.height).toBe(sizes.s48);
|
|
55
|
-
});
|
|
56
|
-
it('should render with xs size when specified', () => {
|
|
57
|
-
const {
|
|
58
|
-
getByTestId
|
|
59
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
60
|
-
children: /*#__PURE__*/_jsx(Avatar, {
|
|
61
|
-
testID: "avatar-id",
|
|
62
|
-
size: "xs"
|
|
63
|
-
})
|
|
64
|
-
}));
|
|
65
|
-
expect(getByTestId('avatar-id').props.style.width).toBe(sizes.s24);
|
|
66
|
-
expect(getByTestId('avatar-id').props.style.height).toBe(sizes.s24);
|
|
67
|
-
});
|
|
68
|
-
it('should render with 2xl size when specified', () => {
|
|
69
|
-
const {
|
|
70
|
-
getByTestId
|
|
71
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
72
|
-
children: /*#__PURE__*/_jsx(Avatar, {
|
|
73
|
-
testID: "avatar-id",
|
|
74
|
-
size: "2xl"
|
|
75
|
-
})
|
|
76
|
-
}));
|
|
77
|
-
expect(getByTestId('avatar-id').props.style.width).toBe(sizes.s128);
|
|
78
|
-
expect(getByTestId('avatar-id').props.style.height).toBe(sizes.s128);
|
|
79
|
-
});
|
|
80
|
-
it('should render with different sizes', () => {
|
|
81
|
-
const {
|
|
82
|
-
getByTestId,
|
|
83
|
-
rerender
|
|
84
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
85
|
-
children: /*#__PURE__*/_jsx(Avatar, {
|
|
86
|
-
testID: "avatar-id",
|
|
87
|
-
size: "sm"
|
|
88
|
-
})
|
|
89
|
-
}));
|
|
90
|
-
expect(getByTestId('avatar-id').props.style.width).toBe(sizes.s40);
|
|
91
|
-
rerender(/*#__PURE__*/_jsx(TestWrapper, {
|
|
92
|
-
children: /*#__PURE__*/_jsx(Avatar, {
|
|
93
|
-
testID: "avatar-id",
|
|
94
|
-
size: "lg"
|
|
95
|
-
})
|
|
96
|
-
}));
|
|
97
|
-
expect(getByTestId('avatar-id').props.style.width).toBe(sizes.s56);
|
|
98
|
-
rerender(/*#__PURE__*/_jsx(TestWrapper, {
|
|
99
|
-
children: /*#__PURE__*/_jsx(Avatar, {
|
|
100
|
-
testID: "avatar-id",
|
|
101
|
-
size: "xl"
|
|
102
|
-
})
|
|
103
|
-
}));
|
|
104
|
-
expect(getByTestId('avatar-id').props.style.width).toBe(sizes.s72);
|
|
105
|
-
});
|
|
106
|
-
it('should render fallback icon when no src is provided', () => {
|
|
107
|
-
const {
|
|
108
|
-
getByLabelText,
|
|
109
|
-
getByTestId
|
|
110
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
111
|
-
children: /*#__PURE__*/_jsx(Avatar, {})
|
|
112
|
-
}));
|
|
113
|
-
const avatarContainer = getByLabelText('User avatar');
|
|
114
|
-
expect(avatarContainer).toBeTruthy();
|
|
115
|
-
expect(avatarContainer.props.accessibilityRole).toBe('image');
|
|
116
|
-
expect(getByTestId('avatar-fallback-icon')).toBeTruthy();
|
|
117
|
-
});
|
|
118
|
-
it('should render fallback text instead of the icon when provided', () => {
|
|
119
|
-
const {
|
|
120
|
-
getByText,
|
|
121
|
-
queryByTestId
|
|
122
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
123
|
-
children: /*#__PURE__*/_jsx(Avatar, {
|
|
124
|
-
fallbackText: "AB"
|
|
125
|
-
})
|
|
126
|
-
}));
|
|
127
|
-
expect(getByText('AB')).toBeTruthy();
|
|
128
|
-
expect(queryByTestId('avatar-fallback-icon')).toBeNull();
|
|
129
|
-
});
|
|
130
|
-
it('should apply the fallback color as the background when falling back', () => {
|
|
131
|
-
const {
|
|
132
|
-
getByTestId
|
|
133
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
134
|
-
children: /*#__PURE__*/_jsx(Avatar, {
|
|
135
|
-
testID: "avatar-id",
|
|
136
|
-
fallbackColor: "#aed09c"
|
|
137
|
-
})
|
|
138
|
-
}));
|
|
139
|
-
expect(getByTestId('avatar-id').props.style.backgroundColor).toBe('#aed09c');
|
|
140
|
-
});
|
|
141
|
-
it('should pair a decorative fallback background with its matching decorative text color', () => {
|
|
142
|
-
const {
|
|
143
|
-
getByText
|
|
144
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
145
|
-
children: /*#__PURE__*/_jsx(Avatar, {
|
|
146
|
-
fallbackText: "AB",
|
|
147
|
-
fallbackColor: colors.bg.decorativeOrange
|
|
148
|
-
})
|
|
149
|
-
}));
|
|
150
|
-
expect(getByText('AB').props.style.color).toBe(colors.text.decorativeStrongOrange);
|
|
151
|
-
});
|
|
152
|
-
it('should pair a decorative fallback background with its matching decorative icon color', () => {
|
|
153
|
-
const {
|
|
154
|
-
getByTestId
|
|
155
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
156
|
-
children: /*#__PURE__*/_jsx(Avatar, {
|
|
157
|
-
fallbackColor: colors.bg.decorativeOrange
|
|
158
|
-
})
|
|
159
|
-
}));
|
|
160
|
-
expect(getByTestId('avatar-fallback-icon').props.color).toBe(colors.text.decorativeStrongOrange);
|
|
161
|
-
});
|
|
162
|
-
it('should use black text/icon for an unknown custom fallbackColor', () => {
|
|
163
|
-
const {
|
|
164
|
-
getByText,
|
|
165
|
-
getByTestId,
|
|
166
|
-
rerender
|
|
167
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
168
|
-
children: /*#__PURE__*/_jsx(Avatar, {
|
|
169
|
-
fallbackText: "AB",
|
|
170
|
-
fallbackColor: "#aed09c"
|
|
171
|
-
})
|
|
172
|
-
}));
|
|
173
|
-
expect(getByText('AB').props.style.color).toBe(colors.text.black);
|
|
174
|
-
rerender(/*#__PURE__*/_jsx(TestWrapper, {
|
|
175
|
-
children: /*#__PURE__*/_jsx(Avatar, {
|
|
176
|
-
fallbackColor: "#aed09c"
|
|
177
|
-
})
|
|
178
|
-
}));
|
|
179
|
-
expect(getByTestId('avatar-fallback-icon').props.color).toBe(colors.text.black);
|
|
180
|
-
});
|
|
181
|
-
it('should use the base text/icon color when no fallbackColor is set', () => {
|
|
182
|
-
const {
|
|
183
|
-
getByText,
|
|
184
|
-
getByTestId,
|
|
185
|
-
rerender
|
|
186
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
187
|
-
children: /*#__PURE__*/_jsx(Avatar, {
|
|
188
|
-
fallbackText: "AB"
|
|
189
|
-
})
|
|
190
|
-
}));
|
|
191
|
-
expect(getByText('AB').props.style.color).toBe(colors.text.base);
|
|
192
|
-
rerender(/*#__PURE__*/_jsx(TestWrapper, {
|
|
193
|
-
children: /*#__PURE__*/_jsx(Avatar, {})
|
|
194
|
-
}));
|
|
195
|
-
expect(getByTestId('avatar-fallback-icon').props.color).toBe(colors.text.base);
|
|
196
|
-
});
|
|
197
|
-
it('should not apply the fallback color when an image is shown', () => {
|
|
198
|
-
const {
|
|
199
|
-
getByTestId
|
|
200
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
201
|
-
children: /*#__PURE__*/_jsx(Avatar, {
|
|
202
|
-
testID: "avatar-id",
|
|
203
|
-
src: testSrc,
|
|
204
|
-
fallbackColor: "#aed09c"
|
|
205
|
-
})
|
|
206
|
-
}));
|
|
207
|
-
expect(getByTestId('avatar-id').props.style.backgroundColor).toBe(colors.bg.baseTransparentHover);
|
|
208
|
-
});
|
|
209
|
-
it('should render image when src is provided', () => {
|
|
210
|
-
const {
|
|
211
|
-
getByLabelText,
|
|
212
|
-
getByTestId
|
|
213
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
214
|
-
children: /*#__PURE__*/_jsx(Avatar, {
|
|
215
|
-
src: "https://example.com/avatar.jpg",
|
|
216
|
-
alt: "user avatar"
|
|
217
|
-
})
|
|
218
|
-
}));
|
|
219
|
-
const avatarContainer = getByLabelText('user avatar');
|
|
220
|
-
expect(avatarContainer).toBeTruthy();
|
|
221
|
-
expect(avatarContainer.props.accessibilityRole).toBe('image');
|
|
222
|
-
const image = getByTestId('avatar-image');
|
|
223
|
-
expect(image.props.source).toEqual({
|
|
224
|
-
uri: 'https://example.com/avatar.jpg'
|
|
225
|
-
});
|
|
226
|
-
});
|
|
227
|
-
it('should render fallback icon on image error', async () => {
|
|
228
|
-
const {
|
|
229
|
-
getByLabelText,
|
|
230
|
-
getByTestId,
|
|
231
|
-
queryByTestId,
|
|
232
|
-
rerender
|
|
233
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
234
|
-
children: /*#__PURE__*/_jsx(Avatar, {
|
|
235
|
-
src: "https://example.com/invalid.jpg",
|
|
236
|
-
alt: "broken image"
|
|
237
|
-
})
|
|
238
|
-
}));
|
|
239
|
-
const avatarContainer = getByLabelText('broken image');
|
|
240
|
-
expect(avatarContainer).toBeTruthy();
|
|
241
|
-
const image = getByTestId('avatar-image');
|
|
242
|
-
expect(image).toBeTruthy();
|
|
243
|
-
image.props.onError();
|
|
244
|
-
rerender(/*#__PURE__*/_jsx(TestWrapper, {
|
|
245
|
-
children: /*#__PURE__*/_jsx(Avatar, {
|
|
246
|
-
src: "https://example.com/invalid.jpg",
|
|
247
|
-
alt: "broken image"
|
|
248
|
-
})
|
|
249
|
-
}));
|
|
250
|
-
await waitFor(() => {
|
|
251
|
-
expect(queryByTestId('avatar-image')).toBeNull();
|
|
252
|
-
expect(getByTestId('avatar-fallback-icon')).toBeTruthy();
|
|
253
|
-
});
|
|
254
|
-
});
|
|
255
|
-
it('should reset error state when src changes', async () => {
|
|
256
|
-
const {
|
|
257
|
-
getByLabelText,
|
|
258
|
-
getByTestId,
|
|
259
|
-
rerender
|
|
260
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
261
|
-
children: /*#__PURE__*/_jsx(Avatar, {
|
|
262
|
-
src: "https://example.com/avatar1.jpg",
|
|
263
|
-
alt: "avatar image"
|
|
264
|
-
})
|
|
265
|
-
}));
|
|
266
|
-
const avatarContainer = getByLabelText('avatar image');
|
|
267
|
-
expect(avatarContainer).toBeTruthy();
|
|
268
|
-
const image = getByTestId('avatar-image');
|
|
269
|
-
image.props.onError();
|
|
270
|
-
rerender(/*#__PURE__*/_jsx(TestWrapper, {
|
|
271
|
-
children: /*#__PURE__*/_jsx(Avatar, {
|
|
272
|
-
src: "https://example.com/avatar2.jpg",
|
|
273
|
-
alt: "avatar image"
|
|
274
|
-
})
|
|
275
|
-
}));
|
|
276
|
-
await waitFor(() => {
|
|
277
|
-
const newImage = getByTestId('avatar-image');
|
|
278
|
-
expect(newImage.props.source).toEqual({
|
|
279
|
-
uri: 'https://example.com/avatar2.jpg'
|
|
280
|
-
});
|
|
281
|
-
});
|
|
282
|
-
});
|
|
283
|
-
it('should render a notification indicator when wrapped in DotIndicator', () => {
|
|
284
|
-
const {
|
|
285
|
-
getByTestId,
|
|
286
|
-
toJSON
|
|
287
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
288
|
-
children: /*#__PURE__*/_jsx(DotIndicator, {
|
|
289
|
-
...getDotIndicatorProps('avatar', 'md'),
|
|
290
|
-
children: /*#__PURE__*/_jsx(Avatar, {
|
|
291
|
-
testID: "avatar-id",
|
|
292
|
-
size: "md"
|
|
293
|
-
})
|
|
294
|
-
})
|
|
295
|
-
}));
|
|
296
|
-
const tree = toJSON();
|
|
297
|
-
expect(tree.children).toHaveLength(2);
|
|
298
|
-
expect(tree.children[0].props.accessibilityRole).toBe('image');
|
|
299
|
-
expect(tree.children[0].props.pointerEvents).toBe('none');
|
|
300
|
-
expect(getByTestId('avatar-id')).toBeTruthy();
|
|
301
|
-
});
|
|
302
|
-
it('should apply custom styles', () => {
|
|
303
|
-
const customStyle = {
|
|
304
|
-
borderWidth: 2
|
|
305
|
-
};
|
|
306
|
-
const {
|
|
307
|
-
getByTestId
|
|
308
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
309
|
-
children: /*#__PURE__*/_jsx(Avatar, {
|
|
310
|
-
testID: "avatar-id",
|
|
311
|
-
style: customStyle
|
|
312
|
-
})
|
|
313
|
-
}));
|
|
314
|
-
const avatar = getByTestId('avatar-id');
|
|
315
|
-
expect(avatar.props.style.borderWidth).toBe(2);
|
|
316
|
-
});
|
|
317
|
-
it('should pass additional props to the Box component', () => {
|
|
318
|
-
const {
|
|
319
|
-
getByTestId
|
|
320
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
321
|
-
children: /*#__PURE__*/_jsx(Avatar, {
|
|
322
|
-
testID: "custom-test-id",
|
|
323
|
-
accessibilityLabel: "Profile Avatar"
|
|
324
|
-
})
|
|
325
|
-
}));
|
|
326
|
-
const avatar = getByTestId('custom-test-id');
|
|
327
|
-
expect(avatar.props.accessibilityLabel).toBe('Profile Avatar');
|
|
328
|
-
});
|
|
329
|
-
});
|
|
330
|
-
//# sourceMappingURL=Avatar.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["describe","it","expect","ledgerLiveThemes","render","waitFor","DotIndicator","getDotIndicatorProps","ThemeProvider","Avatar","jsx","_jsx","sizes","colors","dark","TestWrapper","children","themes","colorScheme","locale","testSrc","getByLabelText","src","alt","getByTestId","testID","props","style","width","toBe","s48","height","size","s24","s128","rerender","s40","s56","s72","avatarContainer","toBeTruthy","accessibilityRole","getByText","queryByTestId","fallbackText","toBeNull","fallbackColor","backgroundColor","bg","decorativeOrange","color","text","decorativeStrongOrange","black","base","baseTransparentHover","image","source","toEqual","uri","onError","newImage","toJSON","tree","toHaveLength","pointerEvents","customStyle","borderWidth","avatar","accessibilityLabel"],"sourceRoot":"../../../../../../src","sources":["lib/Components/core/Avatar/Avatar.test.tsx"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,EAAE,EAAEC,MAAM,QAAQ,eAAe;AACpD,SAASC,gBAAgB,QAAQ,6BAA6B;AAC9D,SAASC,MAAM,EAAEC,OAAO,QAAQ,+BAA+B;AAC/D,SAASC,YAAY,EAAEC,oBAAoB,QAAQ,0BAAiB;AACpE,SAASC,aAAa,QAAQ,mCAAgC;AAC9D,SAASC,MAAM,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAElC,MAAM;EAAEC,KAAK;EAAEC;AAAO,CAAC,GAAGV,gBAAgB,CAACW,IAAI;AAE/C,MAAMC,WAAW,GAAGA,CAAC;EAAEC;AAAwC,CAAC,kBAC9DL,IAAA,CAACH,aAAa;EAACS,MAAM,EAAEd,gBAAiB;EAACe,WAAW,EAAC,MAAM;EAACC,MAAM,EAAC,IAAI;EAAAH,QAAA,EACpEA;AAAQ,CACI,CAChB;AAEDhB,QAAQ,CAAC,kBAAkB,EAAE,MAAM;EACjC,MAAMoB,OAAO,GACX,6KAA6K;EAE/KnB,EAAE,CAAC,4CAA4C,EAAE,MAAM;IACrD,MAAM;MAAEoB;IAAe,CAAC,GAAGjB,MAAM,cAC/BO,IAAA,CAACI,WAAW;MAAAC,QAAA,eACVL,IAAA,CAACF,MAAM;QAACa,GAAG,EAAEF;MAAQ,CAAE;IAAC,CACb,CACf,CAAC;IACDC,cAAc,CAAC,aAAa,CAAC;EAC/B,CAAC,CAAC;EAEFpB,EAAE,CAAC,oCAAoC,EAAE,MAAM;IAC7C,MAAM;MAAEoB;IAAe,CAAC,GAAGjB,MAAM,cAC/BO,IAAA,CAACI,WAAW;MAAAC,QAAA,eACVL,IAAA,CAACF,MAAM;QAACa,GAAG,EAAEF,OAAQ;QAACG,GAAG,EAAC;MAAc,CAAE;IAA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AM,EAAC,WAAW;QAACE,KAAK,EAAEuC;MAAY,CAAE;IAAC,CACtC,CACf,CAAC;IAED,MAAME,MAAM,GAAG5C,WAAW,CAAC,WAAW,CAAC;IACvCtB,MAAM,CAACkE,MAAM,CAAC1C,KAAK,CAACC,KAAK,CAACwC,WAAW,CAAC,CAACtC,IAAI,CAAC,CAAC,CAAC;EAChD,CAAC,CAAC;EAEF5B,EAAE,CAAC,mDAAmD,EAAE,MAAM;IAC5D,MAAM;MAAEuB;IAAY,CAAC,GAAGpB,MAAM,cAC5BO,IAAA,CAACI,WAAW;MAAAC,QAAA,eACVL,IAAA,CAACF,MAAM;QAACgB,MAAM,EAAC,gBAAgB;QAAC4C,kBAAkB,EAAC;MAAgB,CAAE;IAAC,CAC3D,CACf,CAAC;IAED,MAAMD,MAAM,GAAG5C,WAAW,CAAC,gBAAgB,CAAC;IAC5CtB,MAAM,CAACkE,MAAM,CAAC1C,KAAK,CAAC2C,kBAAkB,CAAC,CAACxC,IAAI,CAAC,gBAAgB,CAAC;EAChE,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { describe, it, expect } from '@jest/globals';
|
|
4
|
-
import { ledgerLiveThemes } from '@ledgerhq/lumen-design-core';
|
|
5
|
-
import { capitalize, resolveAvatarColorKey } from '@ledgerhq/lumen-utils-shared';
|
|
6
|
-
import { renderHook } from '@testing-library/react-native';
|
|
7
|
-
import { ThemeProvider } from "../ThemeProvider/ThemeProvider.js";
|
|
8
|
-
import { useResolveAvatarColor } from "./useResolveAvatarColor.js";
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
const decorativeBgKeyFor = identifier => `decorative${capitalize(resolveAvatarColorKey(identifier))}`;
|
|
11
|
-
const LightWrapper = ({
|
|
12
|
-
children
|
|
13
|
-
}) => /*#__PURE__*/_jsx(ThemeProvider, {
|
|
14
|
-
themes: ledgerLiveThemes,
|
|
15
|
-
colorScheme: "light",
|
|
16
|
-
locale: "en",
|
|
17
|
-
children: children
|
|
18
|
-
});
|
|
19
|
-
const DarkWrapper = ({
|
|
20
|
-
children
|
|
21
|
-
}) => /*#__PURE__*/_jsx(ThemeProvider, {
|
|
22
|
-
themes: ledgerLiveThemes,
|
|
23
|
-
colorScheme: "dark",
|
|
24
|
-
locale: "en",
|
|
25
|
-
children: children
|
|
26
|
-
});
|
|
27
|
-
let currentColorScheme = 'light';
|
|
28
|
-
const SwitchableThemeWrapper = ({
|
|
29
|
-
children
|
|
30
|
-
}) => /*#__PURE__*/_jsx(ThemeProvider, {
|
|
31
|
-
themes: ledgerLiveThemes,
|
|
32
|
-
colorScheme: currentColorScheme,
|
|
33
|
-
locale: "en",
|
|
34
|
-
children: children
|
|
35
|
-
});
|
|
36
|
-
describe('useResolveAvatarColor', () => {
|
|
37
|
-
it('should resolve the identifier to the light-theme decorative color', () => {
|
|
38
|
-
const key = decorativeBgKeyFor('user-1');
|
|
39
|
-
const {
|
|
40
|
-
result
|
|
41
|
-
} = renderHook(() => useResolveAvatarColor('user-1'), {
|
|
42
|
-
wrapper: LightWrapper
|
|
43
|
-
});
|
|
44
|
-
expect(result.current).toBe(ledgerLiveThemes.light.colors.bg[key]);
|
|
45
|
-
});
|
|
46
|
-
it('should resolve the identifier to the dark-theme decorative color, distinct from light', () => {
|
|
47
|
-
const key = decorativeBgKeyFor('user-1');
|
|
48
|
-
const {
|
|
49
|
-
result
|
|
50
|
-
} = renderHook(() => useResolveAvatarColor('user-1'), {
|
|
51
|
-
wrapper: DarkWrapper
|
|
52
|
-
});
|
|
53
|
-
const darkColor = ledgerLiveThemes.dark.colors.bg[key];
|
|
54
|
-
const lightColor = ledgerLiveThemes.light.colors.bg[key];
|
|
55
|
-
expect(result.current).toBe(darkColor);
|
|
56
|
-
expect(result.current).not.toBe(lightColor);
|
|
57
|
-
});
|
|
58
|
-
it('should react to the theme changing after the initial render', () => {
|
|
59
|
-
const key = decorativeBgKeyFor('user-1');
|
|
60
|
-
const lightColor = ledgerLiveThemes.light.colors.bg[key];
|
|
61
|
-
const darkColor = ledgerLiveThemes.dark.colors.bg[key];
|
|
62
|
-
currentColorScheme = 'light';
|
|
63
|
-
const {
|
|
64
|
-
result,
|
|
65
|
-
rerender
|
|
66
|
-
} = renderHook(() => useResolveAvatarColor('user-1'), {
|
|
67
|
-
wrapper: SwitchableThemeWrapper
|
|
68
|
-
});
|
|
69
|
-
expect(result.current).toBe(lightColor);
|
|
70
|
-
currentColorScheme = 'dark';
|
|
71
|
-
rerender({});
|
|
72
|
-
expect(result.current).toBe(darkColor);
|
|
73
|
-
});
|
|
74
|
-
it('should always resolve the same identifier to the same color within a theme', () => {
|
|
75
|
-
const {
|
|
76
|
-
result: first
|
|
77
|
-
} = renderHook(() => useResolveAvatarColor('same-user'), {
|
|
78
|
-
wrapper: LightWrapper
|
|
79
|
-
});
|
|
80
|
-
const {
|
|
81
|
-
result: second
|
|
82
|
-
} = renderHook(() => useResolveAvatarColor('same-user'), {
|
|
83
|
-
wrapper: LightWrapper
|
|
84
|
-
});
|
|
85
|
-
expect(first.current).toBe(second.current);
|
|
86
|
-
});
|
|
87
|
-
});
|
|
88
|
-
//# sourceMappingURL=useResolveAvatarColor.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["describe","it","expect","ledgerLiveThemes","capitalize","resolveAvatarColorKey","renderHook","ThemeProvider","useResolveAvatarColor","jsx","_jsx","decorativeBgKeyFor","identifier","LightWrapper","children","themes","colorScheme","locale","DarkWrapper","currentColorScheme","SwitchableThemeWrapper","key","result","wrapper","current","toBe","light","colors","bg","darkColor","dark","lightColor","not","rerender","first","second"],"sourceRoot":"../../../../../../src","sources":["lib/Components/core/Avatar/useResolveAvatarColor.test.tsx"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,EAAE,EAAEC,MAAM,QAAQ,eAAe;AACpD,SAASC,gBAAgB,QAAQ,6B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U,CAAC;IAEvCZ,kBAAkB,GAAG,MAAM;IAC3Bc,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEZ/B,MAAM,CAACoB,MAAM,CAACE,OAAO,CAAC,CAACC,IAAI,CAACI,SAAS,CAAC;EACxC,CAAC,CAAC;EAEF5B,EAAE,CAAC,4EAA4E,EAAE,MAAM;IACrF,MAAM;MAAEqB,MAAM,EAAEY;IAAM,CAAC,GAAG5B,UAAU,CAClC,MAAME,qBAAqB,CAAC,WAAW,CAAC,EACxC;MAAEe,OAAO,EAAEV;IAAa,CAC1B,CAAC;IACD,MAAM;MAAES,MAAM,EAAEa;IAAO,CAAC,GAAG7B,UAAU,CACnC,MAAME,qBAAqB,CAAC,WAAW,CAAC,EACxC;MAAEe,OAAO,EAAEV;IAAa,CAC1B,CAAC;IAEDX,MAAM,CAACgC,KAAK,CAACV,OAAO,CAAC,CAACC,IAAI,CAACU,MAAM,CAACX,OAAO,CAAC;EAC5C,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { Meta, Canvas, Controls } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import * as AvatarButtonStories from './AvatarButton.stories';
|
|
3
|
-
import { CustomTabs, Tab } from '../../../../../.storybook/components';
|
|
4
|
-
|
|
5
|
-
<Meta title='Core/AvatarButton' of={AvatarButtonStories} />
|
|
6
|
-
|
|
7
|
-
# AvatarButton
|
|
8
|
-
|
|
9
|
-
<CustomTabs>
|
|
10
|
-
<Tab label="Overview">
|
|
11
|
-
|
|
12
|
-
## Introduction
|
|
13
|
-
|
|
14
|
-
`AvatarButton` wraps an [`Avatar`](/docs/rnative-avatar--docs) in a `Pressable`, for use as an interactive trigger such as opening a user menu or navigating to a profile. It accepts every `Avatar` prop plus `onPress` and `onLongPress`.
|
|
15
|
-
|
|
16
|
-
## Anatomy
|
|
17
|
-
|
|
18
|
-
<Canvas of={AvatarButtonStories.Base} />
|
|
19
|
-
<Controls of={AvatarButtonStories.Base} />
|
|
20
|
-
|
|
21
|
-
## Fallback
|
|
22
|
-
|
|
23
|
-
Like `Avatar`, it falls back to a User icon when no image is available.
|
|
24
|
-
|
|
25
|
-
<Canvas of={AvatarButtonStories.Fallback} />
|
|
26
|
-
|
|
27
|
-
## Disabled
|
|
28
|
-
|
|
29
|
-
Pass `disabled` to prevent interaction. The pressable is not activatable, and the avatar renders at reduced opacity.
|
|
30
|
-
|
|
31
|
-
<Canvas of={AvatarButtonStories.Disabled} />
|
|
32
|
-
|
|
33
|
-
## Accessibility
|
|
34
|
-
|
|
35
|
-
- Renders with `accessibilityRole="button"` so it is announced as a button by screen readers.
|
|
36
|
-
- Provide a meaningful `alt` describing the action (e.g. `"Open user menu"`); it is exposed as the avatar's accessible label.
|
|
37
|
-
|
|
38
|
-
</Tab>
|
|
39
|
-
<Tab label="Implementation">
|
|
40
|
-
|
|
41
|
-
## Setup
|
|
42
|
-
|
|
43
|
-
Install and set up the library with our [Setup Guide →](?path=/docs/getting-started-setup--docs).
|
|
44
|
-
|
|
45
|
-
## Basic Usage
|
|
46
|
-
|
|
47
|
-
```tsx
|
|
48
|
-
import { AvatarButton } from '@ledgerhq/lumen-ui-rnative';
|
|
49
|
-
|
|
50
|
-
function MyComponent() {
|
|
51
|
-
return (
|
|
52
|
-
<AvatarButton
|
|
53
|
-
src="https://example.com/photo.jpg"
|
|
54
|
-
alt="Open user menu"
|
|
55
|
-
onPress={openMenu}
|
|
56
|
-
/>
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
</Tab>
|
|
62
|
-
</CustomTabs>
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { AvatarButton } from "./AvatarButton.js";
|
|
4
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
const meta = {
|
|
6
|
-
component: AvatarButton,
|
|
7
|
-
id: 'rnative-avatar-button',
|
|
8
|
-
title: 'Core/AvatarButton',
|
|
9
|
-
parameters: {
|
|
10
|
-
docs: {
|
|
11
|
-
source: {
|
|
12
|
-
language: 'tsx',
|
|
13
|
-
format: true,
|
|
14
|
-
type: 'dynamic'
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
export default meta;
|
|
20
|
-
const exampleSrc = 'https://plus.unsplash.com/premium_photo-1689551670902-19b441a6afde?q=80&w=774&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D';
|
|
21
|
-
export const Base = {
|
|
22
|
-
args: {
|
|
23
|
-
src: exampleSrc,
|
|
24
|
-
size: 'md',
|
|
25
|
-
alt: 'Open user menu',
|
|
26
|
-
onPress: () => ({})
|
|
27
|
-
},
|
|
28
|
-
render: args => /*#__PURE__*/_jsx(AvatarButton, {
|
|
29
|
-
...args
|
|
30
|
-
})
|
|
31
|
-
};
|
|
32
|
-
export const Fallback = {
|
|
33
|
-
args: {
|
|
34
|
-
alt: 'Open user menu'
|
|
35
|
-
},
|
|
36
|
-
render: args => /*#__PURE__*/_jsx(AvatarButton, {
|
|
37
|
-
...args
|
|
38
|
-
})
|
|
39
|
-
};
|
|
40
|
-
export const Disabled = {
|
|
41
|
-
args: {
|
|
42
|
-
src: exampleSrc,
|
|
43
|
-
size: 'md',
|
|
44
|
-
alt: 'Open user menu',
|
|
45
|
-
disabled: true,
|
|
46
|
-
onPress: () => ({})
|
|
47
|
-
},
|
|
48
|
-
render: args => /*#__PURE__*/_jsx(AvatarButton, {
|
|
49
|
-
...args
|
|
50
|
-
})
|
|
51
|
-
};
|
|
52
|
-
//# sourceMappingURL=AvatarButton.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["AvatarButton","jsx","_jsx","meta","component","id","title","parameters","docs","source","language","format","type","exampleSrc","Base","args","src","size","alt","onPress","render","Fallback","Disabled","disabled"],"sourceRoot":"../../../../../../src","sources":["lib/Components/core/AvatarButton/AvatarButton.stories.tsx"],"mappings":";;AACA,SAASA,YAAY,QAAQ,mBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE9C,MAAMC,IAAI,GAAG;EACXC,SAAS,EAAEJ,YAAY;EACvBK,EAAE,EAAE,uBAAuB;EAC3BC,KAAK,EAAE,mBAAmB;EAC1BC,UAAU,EAAE;IACVC,IAAI,EAAE;MACJC,MAAM,EAAE;QACNC,QAAQ,EAAE,KAAK;QACfC,MAAM,EAAE,IAAI;QACZC,IAAI,EAAE;MACR;IACF;EACF;AACF,CAAqC;AAErC,eAAeT,IAAI;AAGnB,MAAMU,UAAU,GACd,6KAA6K;AAE/K,OAAO,MAAMC,IAAW,GAAG;EACzBC,IAAI,EAAE;IACJC,GAAG,EAAEH,UAAU;IACfI,IAAI,EAAE,IAAI;IACVC,GAAG,EAAE,gBAAgB;IACrBC,OAAO,EAAEA,CAAA,MAAO,CAAC,CAAC;EACpB,CAAC;EACDC,MAAM,EAAGL,IAAI,iBAAKb,IAAA,CAACF,YAAY;IAAA,GAAKe;EAAI,CAAG;AAC7C,CAAC;AAED,OAAO,MAAMM,QAAe,GAAG;EAC7BN,IAAI,EAAE;IACJG,GAAG,EAAE;EACP,CAAC;EACDE,MAAM,EAAGL,IAAI,iBAAKb,IAAA,CAACF,YAAY;IAAA,GAAKe;EAAI,CAAG;AAC7C,CAAC;AAED,OAAO,MAAMO,QAAe,GAAG;EAC7BP,IAAI,EAAE;IACJC,GAAG,EAAEH,UAAU;IACfI,IAAI,EAAE,IAAI;IACVC,GAAG,EAAE,gBAAgB;IACrBK,QAAQ,EAAE,IAAI;IACdJ,OAAO,EAAEA,CAAA,MAAO,CAAC,CAAC;EACpB,CAAC;EACDC,MAAM,EAAGL,IAAI,iBAAKb,IAAA,CAACF,YAAY;IAAA,GAAKe;EAAI,CAAG;AAC7C,CAAC","ignoreList":[]}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { describe, it, expect, jest } from '@jest/globals';
|
|
4
|
-
import { ledgerLiveThemes } from '@ledgerhq/lumen-design-core';
|
|
5
|
-
import { render, fireEvent } from '@testing-library/react-native';
|
|
6
|
-
import { createRef } from 'react';
|
|
7
|
-
import { ThemeProvider } from "../ThemeProvider/ThemeProvider.js";
|
|
8
|
-
import { AvatarButton } from "./AvatarButton.js";
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
const TestWrapper = ({
|
|
11
|
-
children
|
|
12
|
-
}) => /*#__PURE__*/_jsx(ThemeProvider, {
|
|
13
|
-
themes: ledgerLiveThemes,
|
|
14
|
-
colorScheme: "dark",
|
|
15
|
-
locale: "en",
|
|
16
|
-
children: children
|
|
17
|
-
});
|
|
18
|
-
describe('AvatarButton Component', () => {
|
|
19
|
-
const validSrc = 'https://example.com/photo.jpg';
|
|
20
|
-
it('should render a pressable wrapping the avatar', () => {
|
|
21
|
-
const {
|
|
22
|
-
getByRole,
|
|
23
|
-
getByLabelText
|
|
24
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
25
|
-
children: /*#__PURE__*/_jsx(AvatarButton, {
|
|
26
|
-
src: validSrc,
|
|
27
|
-
alt: "Open menu"
|
|
28
|
-
})
|
|
29
|
-
}));
|
|
30
|
-
expect(getByRole('button')).toBeTruthy();
|
|
31
|
-
expect(getByLabelText('Open menu')).toBeTruthy();
|
|
32
|
-
});
|
|
33
|
-
it('should call onPress when pressed', () => {
|
|
34
|
-
const onPress = jest.fn();
|
|
35
|
-
const {
|
|
36
|
-
getByRole
|
|
37
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
38
|
-
children: /*#__PURE__*/_jsx(AvatarButton, {
|
|
39
|
-
src: validSrc,
|
|
40
|
-
onPress: onPress
|
|
41
|
-
})
|
|
42
|
-
}));
|
|
43
|
-
fireEvent.press(getByRole('button'));
|
|
44
|
-
expect(onPress).toHaveBeenCalledTimes(1);
|
|
45
|
-
});
|
|
46
|
-
it('should forward alt to the underlying Avatar', () => {
|
|
47
|
-
const {
|
|
48
|
-
getByLabelText
|
|
49
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
50
|
-
children: /*#__PURE__*/_jsx(AvatarButton, {
|
|
51
|
-
src: validSrc,
|
|
52
|
-
alt: "User profile"
|
|
53
|
-
})
|
|
54
|
-
}));
|
|
55
|
-
expect(getByLabelText('User profile')).toBeTruthy();
|
|
56
|
-
});
|
|
57
|
-
it('should render fallback icon when no src is provided', () => {
|
|
58
|
-
const {
|
|
59
|
-
getByTestId
|
|
60
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
61
|
-
children: /*#__PURE__*/_jsx(AvatarButton, {})
|
|
62
|
-
}));
|
|
63
|
-
expect(getByTestId('avatar-fallback-icon')).toBeTruthy();
|
|
64
|
-
});
|
|
65
|
-
it('should render image when src is provided', () => {
|
|
66
|
-
const {
|
|
67
|
-
getByTestId
|
|
68
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
69
|
-
children: /*#__PURE__*/_jsx(AvatarButton, {
|
|
70
|
-
src: validSrc
|
|
71
|
-
})
|
|
72
|
-
}));
|
|
73
|
-
const image = getByTestId('avatar-image');
|
|
74
|
-
expect(image.props.source).toEqual({
|
|
75
|
-
uri: validSrc
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
it('should forward testID to the pressable', () => {
|
|
79
|
-
const {
|
|
80
|
-
getByTestId
|
|
81
|
-
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
82
|
-
children: /*#__PURE__*/_jsx(AvatarButton, {
|
|
83
|
-
src: validSrc,
|
|
84
|
-
testID: "avatar-btn"
|
|
85
|
-
})
|
|
86
|
-
}));
|
|
87
|
-
expect(getByTestId('avatar-btn')).toBeTruthy();
|
|
88
|
-
});
|
|
89
|
-
it('should forward ref to the pressable element', () => {
|
|
90
|
-
const ref = /*#__PURE__*/createRef();
|
|
91
|
-
render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
92
|
-
children: /*#__PURE__*/_jsx(AvatarButton, {
|
|
93
|
-
src: validSrc,
|
|
94
|
-
ref: ref
|
|
95
|
-
})
|
|
96
|
-
}));
|
|
97
|
-
expect(ref.current).toBeTruthy();
|
|
98
|
-
});
|
|
99
|
-
});
|
|
100
|
-
//# sourceMappingURL=AvatarButton.test.js.map
|