@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,210 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { describe, expect, it } from '@jest/globals';
|
|
4
|
-
import { DEFAULT_AXIS_HEIGHT } from "../Axis/XAxis/index.js";
|
|
5
|
-
import { canRenderLine, computeAxisPadding, getChartAriaLabel, getChartDisplayStates } from "./utils.js";
|
|
6
|
-
const makeSeries = data => ({
|
|
7
|
-
id: 'a',
|
|
8
|
-
stroke: '#000',
|
|
9
|
-
data
|
|
10
|
-
});
|
|
11
|
-
describe('canRenderLine', () => {
|
|
12
|
-
it('returns false for undefined or empty series', () => {
|
|
13
|
-
expect(canRenderLine(undefined)).toBe(false);
|
|
14
|
-
expect(canRenderLine([])).toBe(false);
|
|
15
|
-
});
|
|
16
|
-
it('returns false when no series has at least two finite points', () => {
|
|
17
|
-
expect(canRenderLine([makeSeries([1])])).toBe(false);
|
|
18
|
-
expect(canRenderLine([makeSeries([1, null])])).toBe(false);
|
|
19
|
-
expect(canRenderLine([makeSeries([null, null])])).toBe(false);
|
|
20
|
-
});
|
|
21
|
-
it('returns true once a series has two finite points', () => {
|
|
22
|
-
expect(canRenderLine([makeSeries([1, 2])])).toBe(true);
|
|
23
|
-
});
|
|
24
|
-
it('ignores null gaps when counting drawable points', () => {
|
|
25
|
-
expect(canRenderLine([makeSeries([1, null, 3])])).toBe(true);
|
|
26
|
-
});
|
|
27
|
-
it('does not count NaN, Infinity, or holes as drawable points', () => {
|
|
28
|
-
expect(canRenderLine([makeSeries([NaN, NaN])])).toBe(false);
|
|
29
|
-
expect(canRenderLine([makeSeries([Infinity, -Infinity])])).toBe(false);
|
|
30
|
-
expect(canRenderLine([makeSeries([NaN, 1])])).toBe(false);
|
|
31
|
-
expect(canRenderLine([makeSeries([1, undefined, 2])])).toBe(true);
|
|
32
|
-
expect(canRenderLine([makeSeries([1, undefined])])).toBe(false);
|
|
33
|
-
});
|
|
34
|
-
it('returns true when any series is drawable', () => {
|
|
35
|
-
expect(canRenderLine([makeSeries([1]), makeSeries([1, 2, 3])])).toBe(true);
|
|
36
|
-
});
|
|
37
|
-
it('treats a missing data array as no points', () => {
|
|
38
|
-
expect(canRenderLine([{
|
|
39
|
-
id: 'a',
|
|
40
|
-
stroke: '#000'
|
|
41
|
-
}])).toBe(false);
|
|
42
|
-
});
|
|
43
|
-
it('caps counted points to the x-axis domain length (like toScaledPoints)', () => {
|
|
44
|
-
expect(canRenderLine([makeSeries([1, 2, 3])], ['Jan'])).toBe(false);
|
|
45
|
-
expect(canRenderLine([makeSeries([1, 2, 3])], ['Jan', 'Feb'])).toBe(true);
|
|
46
|
-
});
|
|
47
|
-
it('does not reduce drawable points when xData is longer than the series', () => {
|
|
48
|
-
expect(canRenderLine([makeSeries([1, 2])], ['a', 'b', 'c', 'd'])).toBe(true);
|
|
49
|
-
});
|
|
50
|
-
it('counts only finite points within the capped range', () => {
|
|
51
|
-
expect(canRenderLine([makeSeries([null, 2, 3])], ['Jan', 'Feb'])).toBe(false);
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
describe('computeAxisPadding', () => {
|
|
55
|
-
const base = {
|
|
56
|
-
xAxisPosition: 'bottom',
|
|
57
|
-
yAxisPosition: 'start',
|
|
58
|
-
yAxisWidth: 40
|
|
59
|
-
};
|
|
60
|
-
it('returns undefined when no axis is shown', () => {
|
|
61
|
-
expect(computeAxisPadding({
|
|
62
|
-
...base,
|
|
63
|
-
showXAxis: false,
|
|
64
|
-
showYAxis: false
|
|
65
|
-
})).toBeUndefined();
|
|
66
|
-
});
|
|
67
|
-
it('reserves height on the side where the x-axis sits', () => {
|
|
68
|
-
expect(computeAxisPadding({
|
|
69
|
-
...base,
|
|
70
|
-
showXAxis: true,
|
|
71
|
-
showYAxis: false,
|
|
72
|
-
xAxisPosition: 'bottom'
|
|
73
|
-
})).toEqual({
|
|
74
|
-
top: 0,
|
|
75
|
-
bottom: DEFAULT_AXIS_HEIGHT,
|
|
76
|
-
left: 0,
|
|
77
|
-
right: 0
|
|
78
|
-
});
|
|
79
|
-
expect(computeAxisPadding({
|
|
80
|
-
...base,
|
|
81
|
-
showXAxis: true,
|
|
82
|
-
showYAxis: false,
|
|
83
|
-
xAxisPosition: 'top'
|
|
84
|
-
})).toEqual({
|
|
85
|
-
top: DEFAULT_AXIS_HEIGHT,
|
|
86
|
-
bottom: 0,
|
|
87
|
-
left: 0,
|
|
88
|
-
right: 0
|
|
89
|
-
});
|
|
90
|
-
});
|
|
91
|
-
it('reserves the y-axis width on the side where it sits', () => {
|
|
92
|
-
expect(computeAxisPadding({
|
|
93
|
-
...base,
|
|
94
|
-
showXAxis: false,
|
|
95
|
-
showYAxis: true,
|
|
96
|
-
yAxisPosition: 'start',
|
|
97
|
-
yAxisWidth: 56
|
|
98
|
-
})).toEqual({
|
|
99
|
-
top: 0,
|
|
100
|
-
bottom: 0,
|
|
101
|
-
left: 56,
|
|
102
|
-
right: 0
|
|
103
|
-
});
|
|
104
|
-
expect(computeAxisPadding({
|
|
105
|
-
...base,
|
|
106
|
-
showXAxis: false,
|
|
107
|
-
showYAxis: true,
|
|
108
|
-
yAxisPosition: 'end',
|
|
109
|
-
yAxisWidth: 56
|
|
110
|
-
})).toEqual({
|
|
111
|
-
top: 0,
|
|
112
|
-
bottom: 0,
|
|
113
|
-
left: 0,
|
|
114
|
-
right: 56
|
|
115
|
-
});
|
|
116
|
-
});
|
|
117
|
-
it('combines padding when both axes are shown', () => {
|
|
118
|
-
expect(computeAxisPadding({
|
|
119
|
-
showXAxis: true,
|
|
120
|
-
showYAxis: true,
|
|
121
|
-
xAxisPosition: 'bottom',
|
|
122
|
-
yAxisPosition: 'start',
|
|
123
|
-
yAxisWidth: 40
|
|
124
|
-
})).toEqual({
|
|
125
|
-
top: 0,
|
|
126
|
-
bottom: DEFAULT_AXIS_HEIGHT,
|
|
127
|
-
left: 40,
|
|
128
|
-
right: 0
|
|
129
|
-
});
|
|
130
|
-
});
|
|
131
|
-
});
|
|
132
|
-
describe('getChartDisplayStates', () => {
|
|
133
|
-
it('is initial-loading when loading with no data', () => {
|
|
134
|
-
expect(getChartDisplayStates({
|
|
135
|
-
loading: true,
|
|
136
|
-
hasData: false
|
|
137
|
-
})).toEqual({
|
|
138
|
-
showPlaceholder: true,
|
|
139
|
-
placeholderLoading: true,
|
|
140
|
-
showEmptyOverlay: false,
|
|
141
|
-
isTransitionLoading: false
|
|
142
|
-
});
|
|
143
|
-
});
|
|
144
|
-
it('is empty when not loading with no data', () => {
|
|
145
|
-
expect(getChartDisplayStates({
|
|
146
|
-
loading: false,
|
|
147
|
-
hasData: false
|
|
148
|
-
})).toEqual({
|
|
149
|
-
showPlaceholder: true,
|
|
150
|
-
placeholderLoading: false,
|
|
151
|
-
showEmptyOverlay: true,
|
|
152
|
-
isTransitionLoading: false
|
|
153
|
-
});
|
|
154
|
-
});
|
|
155
|
-
it('is transition-loading when loading with data', () => {
|
|
156
|
-
expect(getChartDisplayStates({
|
|
157
|
-
loading: true,
|
|
158
|
-
hasData: true
|
|
159
|
-
})).toEqual({
|
|
160
|
-
showPlaceholder: false,
|
|
161
|
-
placeholderLoading: false,
|
|
162
|
-
showEmptyOverlay: false,
|
|
163
|
-
isTransitionLoading: true
|
|
164
|
-
});
|
|
165
|
-
});
|
|
166
|
-
it('is ready when data is present and not loading', () => {
|
|
167
|
-
expect(getChartDisplayStates({
|
|
168
|
-
loading: false,
|
|
169
|
-
hasData: true
|
|
170
|
-
})).toEqual({
|
|
171
|
-
showPlaceholder: false,
|
|
172
|
-
placeholderLoading: false,
|
|
173
|
-
showEmptyOverlay: false,
|
|
174
|
-
isTransitionLoading: false
|
|
175
|
-
});
|
|
176
|
-
});
|
|
177
|
-
});
|
|
178
|
-
describe('getChartAriaLabel', () => {
|
|
179
|
-
it('returns the loading label while loading, regardless of data', () => {
|
|
180
|
-
expect(getChartAriaLabel({
|
|
181
|
-
loading: true,
|
|
182
|
-
hasData: false,
|
|
183
|
-
emptyLabel: 'No data',
|
|
184
|
-
loadingLabel: 'Loading chart'
|
|
185
|
-
})).toBe('Loading chart');
|
|
186
|
-
expect(getChartAriaLabel({
|
|
187
|
-
loading: true,
|
|
188
|
-
hasData: true,
|
|
189
|
-
emptyLabel: 'No data',
|
|
190
|
-
loadingLabel: 'Loading chart'
|
|
191
|
-
})).toBe('Loading chart');
|
|
192
|
-
});
|
|
193
|
-
it('returns the empty label when not loading with no data', () => {
|
|
194
|
-
expect(getChartAriaLabel({
|
|
195
|
-
loading: false,
|
|
196
|
-
hasData: false,
|
|
197
|
-
emptyLabel: 'Nothing here',
|
|
198
|
-
loadingLabel: 'Loading chart'
|
|
199
|
-
})).toBe('Nothing here');
|
|
200
|
-
});
|
|
201
|
-
it('returns undefined when data is present and not loading', () => {
|
|
202
|
-
expect(getChartAriaLabel({
|
|
203
|
-
loading: false,
|
|
204
|
-
hasData: true,
|
|
205
|
-
emptyLabel: 'No data',
|
|
206
|
-
loadingLabel: 'Loading chart'
|
|
207
|
-
})).toBeUndefined();
|
|
208
|
-
});
|
|
209
|
-
});
|
|
210
|
-
//# sourceMappingURL=utils.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["describe","expect","it","DEFAULT_AXIS_HEIGHT","canRenderLine","computeAxisPadding","getChartAriaLabel","getChartDisplayStates","makeSeries","data","id","stroke","undefined","toBe","NaN","Infinity","base","xAxisPosition","yAxisPosition","yAxisWidth","showXAxis","showYAxis","toBeUndefined","toEqual","top","bottom","left","right","loading","hasData","showPlaceholder","placeholderLoading","showEmptyOverlay","isTransitionLoading","emptyLabel","loadingLabel"],"sourceRoot":"../../../../../../src","sources":["lib/Components/visualization/LineChart/utils.test.ts"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,MAAM,EAAEC,EAAE,QAAQ,eAAe;AAEpD,SAASC,mBAAmB,QAAQ,wBAAe;AAGnD,SACEC,aAAa,EACbC,kBAAkB,EAClBC,iBAAiB,EACjBC,qBAAqB,QAChB,YAAS;AAEhB,MAAMC,UAAU,GAAIC,IAAuB,KAAc;EACvDC,EAAE,EAAE,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AI;MACbK,UAAU,EAAE,SAAS;MACrBC,YAAY,EAAE;IAChB,CAAC,CACH,CAAC,CAACb,aAAa,CAAC,CAAC;EACnB,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { View } from 'react-native';
|
|
4
|
-
import { G } from 'react-native-svg';
|
|
5
|
-
import { useTheme } from "../../../../styles/index.js";
|
|
6
|
-
import { LineChart } from "../LineChart/index.js";
|
|
7
|
-
import { Point, PointLabel } from "./Point.js";
|
|
8
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
-
const sampleSeries = [{
|
|
10
|
-
id: 'prices',
|
|
11
|
-
stroke: '#7B61FF',
|
|
12
|
-
data: [10, 22, 29, 45, 98, 45, 22, 52, 21, 4, 68, 20, 21, 58]
|
|
13
|
-
}];
|
|
14
|
-
const meta = {
|
|
15
|
-
parameters: {
|
|
16
|
-
docs: {
|
|
17
|
-
source: {
|
|
18
|
-
type: 'code'
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
component: Point,
|
|
23
|
-
id: 'rnative-point',
|
|
24
|
-
title: 'Visualization/Point',
|
|
25
|
-
decorators: [Story => /*#__PURE__*/_jsx(View, {
|
|
26
|
-
style: {
|
|
27
|
-
width: 600,
|
|
28
|
-
padding: 16
|
|
29
|
-
},
|
|
30
|
-
children: /*#__PURE__*/_jsx(Story, {})
|
|
31
|
-
})]
|
|
32
|
-
};
|
|
33
|
-
export default meta;
|
|
34
|
-
export const Base = {
|
|
35
|
-
args: {
|
|
36
|
-
dataX: 4,
|
|
37
|
-
dataY: 98
|
|
38
|
-
},
|
|
39
|
-
parameters: {
|
|
40
|
-
layout: 'centered',
|
|
41
|
-
backgrounds: {
|
|
42
|
-
default: 'light'
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
render: () => {
|
|
46
|
-
const {
|
|
47
|
-
theme
|
|
48
|
-
} = useTheme();
|
|
49
|
-
return /*#__PURE__*/_jsxs(LineChart, {
|
|
50
|
-
series: sampleSeries,
|
|
51
|
-
height: 250,
|
|
52
|
-
showArea: true,
|
|
53
|
-
children: [/*#__PURE__*/_jsx(Point, {
|
|
54
|
-
dataX: 9,
|
|
55
|
-
dataY: 4,
|
|
56
|
-
label: "$4.00",
|
|
57
|
-
color: theme.colors.bg.errorStrong,
|
|
58
|
-
labelPosition: "bottom"
|
|
59
|
-
}), /*#__PURE__*/_jsx(Point, {
|
|
60
|
-
dataX: 4,
|
|
61
|
-
dataY: 98,
|
|
62
|
-
label: "$98.00",
|
|
63
|
-
color: theme.colors.bg.successStrong,
|
|
64
|
-
labelPosition: "top"
|
|
65
|
-
})]
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
export const WithCustomLabelComponent = {
|
|
70
|
-
args: {
|
|
71
|
-
dataX: 4,
|
|
72
|
-
dataY: 98
|
|
73
|
-
},
|
|
74
|
-
parameters: {
|
|
75
|
-
layout: 'centered',
|
|
76
|
-
backgrounds: {
|
|
77
|
-
default: 'light'
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
render: () => {
|
|
81
|
-
const {
|
|
82
|
-
theme
|
|
83
|
-
} = useTheme();
|
|
84
|
-
return /*#__PURE__*/_jsxs(LineChart, {
|
|
85
|
-
series: sampleSeries,
|
|
86
|
-
height: 250,
|
|
87
|
-
inset: {
|
|
88
|
-
top: 15
|
|
89
|
-
},
|
|
90
|
-
showArea: true,
|
|
91
|
-
children: [/*#__PURE__*/_jsx(Point, {
|
|
92
|
-
dataX: 9,
|
|
93
|
-
dataY: 4,
|
|
94
|
-
label: "$4.00",
|
|
95
|
-
color: theme.colors.bg.errorStrong,
|
|
96
|
-
labelPosition: "bottom",
|
|
97
|
-
LabelComponent: ({
|
|
98
|
-
children,
|
|
99
|
-
...props
|
|
100
|
-
}) => /*#__PURE__*/_jsx(PointLabel, {
|
|
101
|
-
...props,
|
|
102
|
-
children: children
|
|
103
|
-
})
|
|
104
|
-
}), /*#__PURE__*/_jsx(Point, {
|
|
105
|
-
dataX: 4,
|
|
106
|
-
dataY: 98,
|
|
107
|
-
label: "$98.00",
|
|
108
|
-
color: theme.colors.bg.successStrong,
|
|
109
|
-
labelPosition: "top",
|
|
110
|
-
LabelComponent: ({
|
|
111
|
-
x,
|
|
112
|
-
y,
|
|
113
|
-
children
|
|
114
|
-
}) => /*#__PURE__*/_jsxs(G, {
|
|
115
|
-
children: [/*#__PURE__*/_jsx(PointLabel, {
|
|
116
|
-
x: x,
|
|
117
|
-
y: y - 16,
|
|
118
|
-
children: children
|
|
119
|
-
}), /*#__PURE__*/_jsx(PointLabel, {
|
|
120
|
-
x: x,
|
|
121
|
-
y: y,
|
|
122
|
-
fontSize: 10,
|
|
123
|
-
children: "+5.2%"
|
|
124
|
-
})]
|
|
125
|
-
})
|
|
126
|
-
})]
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
export const NoPoint = {
|
|
131
|
-
args: {
|
|
132
|
-
dataX: 4,
|
|
133
|
-
dataY: 98
|
|
134
|
-
},
|
|
135
|
-
parameters: {
|
|
136
|
-
docs: {
|
|
137
|
-
source: {
|
|
138
|
-
type: 'dynamic'
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
layout: 'centered',
|
|
142
|
-
backgrounds: {
|
|
143
|
-
default: 'light'
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
render: () => /*#__PURE__*/_jsxs(LineChart, {
|
|
147
|
-
series: sampleSeries,
|
|
148
|
-
height: 250,
|
|
149
|
-
showArea: true,
|
|
150
|
-
children: [/*#__PURE__*/_jsx(Point, {
|
|
151
|
-
dataX: 4,
|
|
152
|
-
dataY: 98,
|
|
153
|
-
label: "ATH",
|
|
154
|
-
hidePoint: true
|
|
155
|
-
}), /*#__PURE__*/_jsx(Point, {
|
|
156
|
-
dataX: 9,
|
|
157
|
-
dataY: 4,
|
|
158
|
-
label: "Low",
|
|
159
|
-
hidePoint: true,
|
|
160
|
-
labelPosition: "bottom"
|
|
161
|
-
})]
|
|
162
|
-
})
|
|
163
|
-
};
|
|
164
|
-
export const CustomSize = {
|
|
165
|
-
args: {
|
|
166
|
-
dataX: 4,
|
|
167
|
-
dataY: 98
|
|
168
|
-
},
|
|
169
|
-
parameters: {
|
|
170
|
-
layout: 'centered',
|
|
171
|
-
backgrounds: {
|
|
172
|
-
default: 'light'
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
render: () => {
|
|
176
|
-
const {
|
|
177
|
-
theme
|
|
178
|
-
} = useTheme();
|
|
179
|
-
return /*#__PURE__*/_jsxs(LineChart, {
|
|
180
|
-
series: sampleSeries,
|
|
181
|
-
height: 250,
|
|
182
|
-
showArea: true,
|
|
183
|
-
children: [/*#__PURE__*/_jsx(Point, {
|
|
184
|
-
dataX: 4,
|
|
185
|
-
dataY: 98,
|
|
186
|
-
size: 16,
|
|
187
|
-
label: i => `Index ${i}`,
|
|
188
|
-
color: theme.colors.bg.successStrong
|
|
189
|
-
}), /*#__PURE__*/_jsx(Point, {
|
|
190
|
-
dataX: 9,
|
|
191
|
-
dataY: 4,
|
|
192
|
-
size: 6,
|
|
193
|
-
label: "$4.00",
|
|
194
|
-
color: theme.colors.bg.errorStrong,
|
|
195
|
-
labelPosition: "bottom"
|
|
196
|
-
})]
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
};
|
|
200
|
-
//# sourceMappingURL=Point.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["View","G","useTheme","LineChart","Point","PointLabel","jsx","_jsx","jsxs","_jsxs","sampleSeries","id","stroke","data","meta","parameters","docs","source","type","component","title","decorators","Story","style","width","padding","children","Base","args","dataX","dataY","layout","backgrounds","default","render","theme","series","height","showArea","label","color","colors","bg","errorStrong","labelPosition","successStrong","WithCustomLabelComponent","inset","top","LabelComponent","props","x","y","fontSize","NoPoint","hidePoint","CustomSize","size","i"],"sourceRoot":"../../../../../../src","sources":["lib/Components/visualization/Point/Point.stories.tsx"],"mappings":";;AACA,SAASA,IAAI,QAAQ,cAAc;AACnC,SAASC,CAAC,QAAQ,kBAAkB;AAEpC,SAASC,QAAQ,QAAQ,6BAAoB;AAC7C,SAASC,SAAS,QAAQ,uBAAc;AACxC,SAASC,KAAK,EAAEC,UAAU,QAAQ,YAAS;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE5C,MAAMC,YAAY,GAAG,CACnB;EACEC,EAAE,EAAE,QAAQ;EACZC,MAAM,EAAE,SAAS;EACjBC,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AAC9D,CAAC,CACF;AAED,MAAMC,IAAI,GAAG;EACXC,UAAU,EAAE;IAAEC,IAAI,EAAE;MAAEC,MAAM,EAAE;QAAEC,IAAI,EAAE;MAAO;IAAE;EAAE,CAAC;EAClDC,SAAS,EAAEf,KAAK;EAChBO,EAAE,EAAE,eAAe;EACnBS,KAAK,EAAE,qBAAqB;EAC5BC,UAAU,EAAE,CACTC,KAAK,iBACJf,IAAA,CAACP,IAAI;IAACuB,KAAK,EAAE;MAAEC,KAAK,EAAE,GAAG;MAAEC,OAAO,EAAE;IAAG,CAAE;IAAAC,QAAA,eACvCnB,IAAA,CAACe,KAAK,IAAE;EAAC,CACL,CACP;AAEL,CAA8B;AAE9B,eAAeR,IAAI;AAGnB,OAAO,MAAMa,IAAW,GAAG;EACzBC,IAAI,EAAE;IACJC,KAAK,EAAE,CAAC;IACRC,KAAK,EAAE;EACT,CAAC;EACDf,UAAU,EAAE;IACVgB,MAAM,EAAE,UAAU;IAClBC,WAAW,EAAE;MAAEC,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C;MAAQ,CACvB,CAAC;IAAA,CACO,CAAC;EAEhB;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,269 +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 { fireEvent, render } from '@testing-library/react-native';
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import { Text as SvgText } from 'react-native-svg';
|
|
8
|
-
import { ThemeProvider } from "../../core/ThemeProvider/index.js";
|
|
9
|
-
import { CartesianChart } from "../CartesianChart/index.js";
|
|
10
|
-
import { Point } from "./Point.js";
|
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
const sampleSeries = [{
|
|
13
|
-
id: 's1',
|
|
14
|
-
stroke: '#000',
|
|
15
|
-
data: [10, 20, 30, 40, 50]
|
|
16
|
-
}];
|
|
17
|
-
const Wrapper = ({
|
|
18
|
-
children
|
|
19
|
-
}) => /*#__PURE__*/_jsx(ThemeProvider, {
|
|
20
|
-
themes: ledgerLiveThemes,
|
|
21
|
-
colorScheme: "light",
|
|
22
|
-
children: children
|
|
23
|
-
});
|
|
24
|
-
const renderInChart = (pointElement, {
|
|
25
|
-
width = 400,
|
|
26
|
-
height = 200,
|
|
27
|
-
xAxis,
|
|
28
|
-
yAxis
|
|
29
|
-
} = {}) => render(/*#__PURE__*/_jsx(Wrapper, {
|
|
30
|
-
children: /*#__PURE__*/_jsx(CartesianChart, {
|
|
31
|
-
series: sampleSeries,
|
|
32
|
-
width: width,
|
|
33
|
-
height: height,
|
|
34
|
-
xAxis: xAxis,
|
|
35
|
-
yAxis: yAxis,
|
|
36
|
-
children: pointElement
|
|
37
|
-
})
|
|
38
|
-
}));
|
|
39
|
-
describe('Point', () => {
|
|
40
|
-
it('renders a circle at the projected position', () => {
|
|
41
|
-
const {
|
|
42
|
-
getByTestId
|
|
43
|
-
} = renderInChart(/*#__PURE__*/_jsx(Point, {
|
|
44
|
-
dataX: 2,
|
|
45
|
-
dataY: 30
|
|
46
|
-
}));
|
|
47
|
-
const circle = getByTestId('point-circle');
|
|
48
|
-
expect(circle).toBeTruthy();
|
|
49
|
-
expect(circle.props.r).toBe(5);
|
|
50
|
-
});
|
|
51
|
-
it('renders with custom color and size', () => {
|
|
52
|
-
const {
|
|
53
|
-
getByTestId
|
|
54
|
-
} = renderInChart(/*#__PURE__*/_jsx(Point, {
|
|
55
|
-
dataX: 2,
|
|
56
|
-
dataY: 30,
|
|
57
|
-
color: "#FF0000",
|
|
58
|
-
size: 16
|
|
59
|
-
}));
|
|
60
|
-
const circle = getByTestId('point-circle');
|
|
61
|
-
expect(circle.props.fill).toBe('#FF0000');
|
|
62
|
-
expect(circle.props.r).toBe(8);
|
|
63
|
-
});
|
|
64
|
-
it('renders a string label', () => {
|
|
65
|
-
const {
|
|
66
|
-
getByText
|
|
67
|
-
} = renderInChart(/*#__PURE__*/_jsx(Point, {
|
|
68
|
-
dataX: 2,
|
|
69
|
-
dataY: 30,
|
|
70
|
-
label: "Peak"
|
|
71
|
-
}));
|
|
72
|
-
expect(getByText('Peak')).toBeTruthy();
|
|
73
|
-
});
|
|
74
|
-
it('renders a label via function', () => {
|
|
75
|
-
const {
|
|
76
|
-
getByText
|
|
77
|
-
} = renderInChart(/*#__PURE__*/_jsx(Point, {
|
|
78
|
-
dataX: 2,
|
|
79
|
-
dataY: 30,
|
|
80
|
-
label: i => `#${i}`
|
|
81
|
-
}));
|
|
82
|
-
expect(getByText('#2')).toBeTruthy();
|
|
83
|
-
});
|
|
84
|
-
it('renders custom LabelComponent', () => {
|
|
85
|
-
const CustomLabel = ({
|
|
86
|
-
x,
|
|
87
|
-
y,
|
|
88
|
-
children
|
|
89
|
-
}) => /*#__PURE__*/_jsx(SvgText, {
|
|
90
|
-
testID: "custom-label",
|
|
91
|
-
x: x,
|
|
92
|
-
y: y,
|
|
93
|
-
children: children
|
|
94
|
-
});
|
|
95
|
-
const {
|
|
96
|
-
getByTestId
|
|
97
|
-
} = renderInChart(/*#__PURE__*/_jsx(Point, {
|
|
98
|
-
dataX: 2,
|
|
99
|
-
dataY: 30,
|
|
100
|
-
label: "Peak",
|
|
101
|
-
LabelComponent: CustomLabel
|
|
102
|
-
}));
|
|
103
|
-
expect(getByTestId('custom-label')).toBeTruthy();
|
|
104
|
-
});
|
|
105
|
-
it('does not render LabelComponent when label is absent', () => {
|
|
106
|
-
const CustomLabel = ({
|
|
107
|
-
children
|
|
108
|
-
}) => /*#__PURE__*/_jsx(SvgText, {
|
|
109
|
-
testID: "custom-label",
|
|
110
|
-
children: children
|
|
111
|
-
});
|
|
112
|
-
const {
|
|
113
|
-
queryByTestId
|
|
114
|
-
} = renderInChart(/*#__PURE__*/_jsx(Point, {
|
|
115
|
-
dataX: 2,
|
|
116
|
-
dataY: 30,
|
|
117
|
-
LabelComponent: CustomLabel
|
|
118
|
-
}));
|
|
119
|
-
expect(queryByTestId('custom-label')).toBeNull();
|
|
120
|
-
});
|
|
121
|
-
it('hides the circle when hidePoint is true but shows label', () => {
|
|
122
|
-
const {
|
|
123
|
-
queryByTestId,
|
|
124
|
-
getByText
|
|
125
|
-
} = renderInChart(/*#__PURE__*/_jsx(Point, {
|
|
126
|
-
dataX: 2,
|
|
127
|
-
dataY: 30,
|
|
128
|
-
hidePoint: true,
|
|
129
|
-
label: "Still here"
|
|
130
|
-
}));
|
|
131
|
-
expect(queryByTestId('point-circle')).toBeNull();
|
|
132
|
-
expect(getByText('Still here')).toBeTruthy();
|
|
133
|
-
});
|
|
134
|
-
it('returns null when point is outside drawing area', () => {
|
|
135
|
-
const {
|
|
136
|
-
queryByTestId
|
|
137
|
-
} = renderInChart(/*#__PURE__*/_jsx(Point, {
|
|
138
|
-
dataX: -100,
|
|
139
|
-
dataY: -100
|
|
140
|
-
}));
|
|
141
|
-
expect(queryByTestId('point-group')).toBeNull();
|
|
142
|
-
});
|
|
143
|
-
it('works with band (categorical) x-axis scale', () => {
|
|
144
|
-
const {
|
|
145
|
-
getByTestId
|
|
146
|
-
} = renderInChart(/*#__PURE__*/_jsx(Point, {
|
|
147
|
-
dataX: 1,
|
|
148
|
-
dataY: 30
|
|
149
|
-
}), {
|
|
150
|
-
xAxis: {
|
|
151
|
-
scaleType: 'band'
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
const circle = getByTestId('point-circle');
|
|
155
|
-
expect(circle).toBeTruthy();
|
|
156
|
-
});
|
|
157
|
-
it('renders arrow when label is present and showArrow is true', () => {
|
|
158
|
-
const {
|
|
159
|
-
getByTestId
|
|
160
|
-
} = renderInChart(/*#__PURE__*/_jsx(Point, {
|
|
161
|
-
dataX: 2,
|
|
162
|
-
dataY: 30,
|
|
163
|
-
label: "Peak"
|
|
164
|
-
}));
|
|
165
|
-
expect(getByTestId('point-arrow')).toBeTruthy();
|
|
166
|
-
});
|
|
167
|
-
it('does not render arrow when no label is present', () => {
|
|
168
|
-
const {
|
|
169
|
-
queryByTestId
|
|
170
|
-
} = renderInChart(/*#__PURE__*/_jsx(Point, {
|
|
171
|
-
dataX: 2,
|
|
172
|
-
dataY: 30
|
|
173
|
-
}));
|
|
174
|
-
expect(queryByTestId('point-arrow')).toBeNull();
|
|
175
|
-
});
|
|
176
|
-
it('does not render arrow when showArrow is false', () => {
|
|
177
|
-
const {
|
|
178
|
-
queryByTestId
|
|
179
|
-
} = renderInChart(/*#__PURE__*/_jsx(Point, {
|
|
180
|
-
dataX: 2,
|
|
181
|
-
dataY: 30,
|
|
182
|
-
label: "Peak",
|
|
183
|
-
showLabelArrow: false
|
|
184
|
-
}));
|
|
185
|
-
expect(queryByTestId('point-arrow')).toBeNull();
|
|
186
|
-
});
|
|
187
|
-
it('renders label below the point when labelPosition is bottom', () => {
|
|
188
|
-
const topSpy = jest.fn(({
|
|
189
|
-
y
|
|
190
|
-
}) => /*#__PURE__*/_jsx(SvgText, {
|
|
191
|
-
children: y
|
|
192
|
-
}));
|
|
193
|
-
const bottomSpy = jest.fn(({
|
|
194
|
-
y
|
|
195
|
-
}) => /*#__PURE__*/_jsx(SvgText, {
|
|
196
|
-
children: y
|
|
197
|
-
}));
|
|
198
|
-
renderInChart(/*#__PURE__*/_jsx(Point, {
|
|
199
|
-
dataX: 2,
|
|
200
|
-
dataY: 30,
|
|
201
|
-
label: "T",
|
|
202
|
-
LabelComponent: topSpy
|
|
203
|
-
}));
|
|
204
|
-
renderInChart(/*#__PURE__*/_jsx(Point, {
|
|
205
|
-
dataX: 2,
|
|
206
|
-
dataY: 30,
|
|
207
|
-
label: "B",
|
|
208
|
-
labelPosition: "bottom",
|
|
209
|
-
LabelComponent: bottomSpy
|
|
210
|
-
}));
|
|
211
|
-
const topY = topSpy.mock.calls[0][0].y;
|
|
212
|
-
const bottomY = bottomSpy.mock.calls[0][0].y;
|
|
213
|
-
expect(bottomY).toBeGreaterThan(topY);
|
|
214
|
-
});
|
|
215
|
-
it('anchors a long label inward at the left edge by default', () => {
|
|
216
|
-
const labelSpy = jest.fn(({
|
|
217
|
-
x,
|
|
218
|
-
y,
|
|
219
|
-
children
|
|
220
|
-
}) => /*#__PURE__*/_jsx(SvgText, {
|
|
221
|
-
x: x,
|
|
222
|
-
y: y,
|
|
223
|
-
children: children
|
|
224
|
-
}));
|
|
225
|
-
renderInChart(/*#__PURE__*/_jsx(Point, {
|
|
226
|
-
dataX: 0,
|
|
227
|
-
dataY: 10,
|
|
228
|
-
label: "A long edge label",
|
|
229
|
-
LabelComponent: labelSpy
|
|
230
|
-
}));
|
|
231
|
-
expect(labelSpy).toHaveBeenCalledWith(expect.objectContaining({
|
|
232
|
-
textAnchor: 'start'
|
|
233
|
-
}), undefined);
|
|
234
|
-
});
|
|
235
|
-
it("centers a long edge label when labelAlignment is 'center'", () => {
|
|
236
|
-
const labelSpy = jest.fn(({
|
|
237
|
-
x,
|
|
238
|
-
y,
|
|
239
|
-
children
|
|
240
|
-
}) => /*#__PURE__*/_jsx(SvgText, {
|
|
241
|
-
x: x,
|
|
242
|
-
y: y,
|
|
243
|
-
children: children
|
|
244
|
-
}));
|
|
245
|
-
renderInChart(/*#__PURE__*/_jsx(Point, {
|
|
246
|
-
dataX: 0,
|
|
247
|
-
dataY: 10,
|
|
248
|
-
label: "A long edge label",
|
|
249
|
-
labelAlignment: "center",
|
|
250
|
-
LabelComponent: labelSpy
|
|
251
|
-
}));
|
|
252
|
-
expect(labelSpy).toHaveBeenCalledWith(expect.objectContaining({
|
|
253
|
-
textAnchor: 'middle'
|
|
254
|
-
}), undefined);
|
|
255
|
-
});
|
|
256
|
-
it('calls onPress when the point is pressed', () => {
|
|
257
|
-
const onPress = jest.fn();
|
|
258
|
-
const {
|
|
259
|
-
getByTestId
|
|
260
|
-
} = renderInChart(/*#__PURE__*/_jsx(Point, {
|
|
261
|
-
dataX: 2,
|
|
262
|
-
dataY: 30,
|
|
263
|
-
onPress: onPress
|
|
264
|
-
}));
|
|
265
|
-
fireEvent.press(getByTestId('point-group'));
|
|
266
|
-
expect(onPress).toHaveBeenCalled();
|
|
267
|
-
});
|
|
268
|
-
});
|
|
269
|
-
//# sourceMappingURL=Point.test.js.map
|