@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,284 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { Box, Text } from "../../primitives/index.js";
|
|
4
|
-
import { Settings, Plus, Coins, CreditCard, Bank } from "../../symbols/index.js";
|
|
5
|
-
import { CardButton } from "./CardButton.js";
|
|
6
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
-
const meta = {
|
|
8
|
-
component: CardButton,
|
|
9
|
-
id: 'rnative-cardbutton',
|
|
10
|
-
title: 'Core/CardButton',
|
|
11
|
-
tags: ['deprecated'],
|
|
12
|
-
parameters: {
|
|
13
|
-
docs: {
|
|
14
|
-
source: {
|
|
15
|
-
language: 'tsx',
|
|
16
|
-
format: true,
|
|
17
|
-
type: 'code'
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
argTypes: {
|
|
22
|
-
appearance: {
|
|
23
|
-
control: 'select',
|
|
24
|
-
options: ['base', 'outline'],
|
|
25
|
-
description: 'The visual style appearance of the card button'
|
|
26
|
-
},
|
|
27
|
-
title: {
|
|
28
|
-
control: 'text',
|
|
29
|
-
description: 'The main title text for the card button'
|
|
30
|
-
},
|
|
31
|
-
description: {
|
|
32
|
-
control: 'text',
|
|
33
|
-
description: 'Optional description text displayed below the title'
|
|
34
|
-
},
|
|
35
|
-
icon: {
|
|
36
|
-
control: 'select',
|
|
37
|
-
description: 'Optional icon component to display',
|
|
38
|
-
options: ['None', 'Plus', 'Settings'],
|
|
39
|
-
mapping: {
|
|
40
|
-
None: undefined,
|
|
41
|
-
Plus: Plus,
|
|
42
|
-
Settings: Settings
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
hideChevron: {
|
|
46
|
-
control: 'boolean',
|
|
47
|
-
description: 'Whether to hide the chevron right icon on the right side'
|
|
48
|
-
},
|
|
49
|
-
disabled: {
|
|
50
|
-
control: 'boolean',
|
|
51
|
-
description: 'Whether the card button is disabled'
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
export default meta;
|
|
56
|
-
export const Base = {
|
|
57
|
-
parameters: {
|
|
58
|
-
docs: {
|
|
59
|
-
source: {
|
|
60
|
-
type: 'dynamic'
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
args: {
|
|
65
|
-
appearance: 'base',
|
|
66
|
-
title: 'Basic Card Button'
|
|
67
|
-
},
|
|
68
|
-
render: args => /*#__PURE__*/_jsx(CardButton, {
|
|
69
|
-
...args
|
|
70
|
-
})
|
|
71
|
-
};
|
|
72
|
-
export const WithIcon = {
|
|
73
|
-
render: () => /*#__PURE__*/_jsx(CardButton, {
|
|
74
|
-
appearance: "base",
|
|
75
|
-
title: "Settings",
|
|
76
|
-
icon: Settings
|
|
77
|
-
})
|
|
78
|
-
};
|
|
79
|
-
export const WithDescription = {
|
|
80
|
-
parameters: {
|
|
81
|
-
docs: {
|
|
82
|
-
source: {
|
|
83
|
-
type: 'dynamic'
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
args: {
|
|
88
|
-
appearance: 'base',
|
|
89
|
-
title: 'Payment Method',
|
|
90
|
-
description: 'Add or manage your payment options'
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
export const WithoutChevron = {
|
|
94
|
-
parameters: {
|
|
95
|
-
docs: {
|
|
96
|
-
source: {
|
|
97
|
-
type: 'dynamic'
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
args: {
|
|
102
|
-
appearance: 'base',
|
|
103
|
-
title: 'Navigate Forward',
|
|
104
|
-
hideChevron: true
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
export const FullFeatures = {
|
|
108
|
-
render: () => /*#__PURE__*/_jsx(CardButton, {
|
|
109
|
-
appearance: "base",
|
|
110
|
-
title: "Account Settings",
|
|
111
|
-
description: "Manage your account preferences and security",
|
|
112
|
-
icon: Settings
|
|
113
|
-
})
|
|
114
|
-
};
|
|
115
|
-
export const NaturalWidth = {
|
|
116
|
-
args: {
|
|
117
|
-
title: 'Basic Card Button'
|
|
118
|
-
},
|
|
119
|
-
render: () => /*#__PURE__*/_jsxs(Box, {
|
|
120
|
-
lx: {
|
|
121
|
-
backgroundColor: 'mutedPressed',
|
|
122
|
-
padding: 's16'
|
|
123
|
-
},
|
|
124
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
125
|
-
typography: "body4SemiBold",
|
|
126
|
-
lx: {
|
|
127
|
-
color: 'muted',
|
|
128
|
-
marginBottom: 's16'
|
|
129
|
-
},
|
|
130
|
-
children: "CardButton naturally flows to fill parent container width"
|
|
131
|
-
}), /*#__PURE__*/_jsx(CardButton, {
|
|
132
|
-
appearance: "base",
|
|
133
|
-
title: "Natural Width Example",
|
|
134
|
-
description: "This card button demonstrates how it flows naturally to fill the full width of its parent container without any max-width constraints",
|
|
135
|
-
icon: CreditCard
|
|
136
|
-
})]
|
|
137
|
-
})
|
|
138
|
-
};
|
|
139
|
-
export const AppearanceShowcase = {
|
|
140
|
-
args: {
|
|
141
|
-
title: 'Basic Card Button'
|
|
142
|
-
},
|
|
143
|
-
render: () => {
|
|
144
|
-
const appearances = [{
|
|
145
|
-
name: 'Base',
|
|
146
|
-
appearance: 'base'
|
|
147
|
-
}, {
|
|
148
|
-
name: 'Outline',
|
|
149
|
-
appearance: 'outline'
|
|
150
|
-
}];
|
|
151
|
-
return /*#__PURE__*/_jsx(Box, {
|
|
152
|
-
lx: {
|
|
153
|
-
flexDirection: 'column',
|
|
154
|
-
gap: 's16',
|
|
155
|
-
padding: 's8',
|
|
156
|
-
maxWidth: 's400'
|
|
157
|
-
},
|
|
158
|
-
children: appearances.map(({
|
|
159
|
-
name,
|
|
160
|
-
appearance
|
|
161
|
-
}) => /*#__PURE__*/_jsx(CardButton, {
|
|
162
|
-
appearance: appearance,
|
|
163
|
-
title: `${name} Appearance`,
|
|
164
|
-
description: "This demonstrates the appearance variation",
|
|
165
|
-
icon: Coins
|
|
166
|
-
}, appearance))
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
export const ContentVariations = {
|
|
171
|
-
args: {
|
|
172
|
-
title: 'Basic Card Button'
|
|
173
|
-
},
|
|
174
|
-
render: () => /*#__PURE__*/_jsxs(Box, {
|
|
175
|
-
lx: {
|
|
176
|
-
flexDirection: 'column',
|
|
177
|
-
gap: 's16',
|
|
178
|
-
padding: 's8',
|
|
179
|
-
maxWidth: 's400'
|
|
180
|
-
},
|
|
181
|
-
children: [/*#__PURE__*/_jsx(CardButton, {
|
|
182
|
-
appearance: "base",
|
|
183
|
-
title: "With Description",
|
|
184
|
-
description: "This card has a description below the title",
|
|
185
|
-
hideChevron: true
|
|
186
|
-
}), /*#__PURE__*/_jsx(CardButton, {
|
|
187
|
-
appearance: "base",
|
|
188
|
-
title: "Icon and Description",
|
|
189
|
-
description: "This card has both an icon and description",
|
|
190
|
-
icon: Settings,
|
|
191
|
-
hideChevron: true
|
|
192
|
-
}), /*#__PURE__*/_jsx(CardButton, {
|
|
193
|
-
appearance: "base",
|
|
194
|
-
title: "Description and Chevron",
|
|
195
|
-
description: "This card has description and chevron"
|
|
196
|
-
}), /*#__PURE__*/_jsx(CardButton, {
|
|
197
|
-
appearance: "base",
|
|
198
|
-
title: "Complete Card",
|
|
199
|
-
description: "This card has all optional features",
|
|
200
|
-
icon: CreditCard
|
|
201
|
-
}), /*#__PURE__*/_jsx(CardButton, {
|
|
202
|
-
appearance: "base",
|
|
203
|
-
title: "With Icon",
|
|
204
|
-
icon: Plus,
|
|
205
|
-
hideChevron: true
|
|
206
|
-
}), /*#__PURE__*/_jsx(CardButton, {
|
|
207
|
-
appearance: "base",
|
|
208
|
-
title: "With Chevron"
|
|
209
|
-
})]
|
|
210
|
-
})
|
|
211
|
-
};
|
|
212
|
-
export const StatesShowcase = {
|
|
213
|
-
args: {
|
|
214
|
-
title: 'Basic Card Button'
|
|
215
|
-
},
|
|
216
|
-
render: () => /*#__PURE__*/_jsxs(Box, {
|
|
217
|
-
lx: {
|
|
218
|
-
flexDirection: 'column',
|
|
219
|
-
gap: 's16',
|
|
220
|
-
padding: 's8',
|
|
221
|
-
maxWidth: 's400'
|
|
222
|
-
},
|
|
223
|
-
children: [/*#__PURE__*/_jsx(CardButton, {
|
|
224
|
-
appearance: "base",
|
|
225
|
-
title: "Base Default",
|
|
226
|
-
description: "This is the normal interactive state",
|
|
227
|
-
icon: Settings
|
|
228
|
-
}), /*#__PURE__*/_jsx(CardButton, {
|
|
229
|
-
appearance: "base",
|
|
230
|
-
title: "Base Disabled",
|
|
231
|
-
description: "This card button is disabled",
|
|
232
|
-
icon: Settings,
|
|
233
|
-
disabled: true
|
|
234
|
-
}), /*#__PURE__*/_jsx(CardButton, {
|
|
235
|
-
appearance: "outline",
|
|
236
|
-
title: "Outline Default",
|
|
237
|
-
description: "This is the outline appearance",
|
|
238
|
-
icon: Bank
|
|
239
|
-
}), /*#__PURE__*/_jsx(CardButton, {
|
|
240
|
-
appearance: "outline",
|
|
241
|
-
title: "Outline Disabled",
|
|
242
|
-
description: "This is the disabled outline appearance",
|
|
243
|
-
icon: Bank,
|
|
244
|
-
disabled: true
|
|
245
|
-
})]
|
|
246
|
-
})
|
|
247
|
-
};
|
|
248
|
-
export const ResponsiveLayout = {
|
|
249
|
-
args: {
|
|
250
|
-
title: 'Basic Card Button'
|
|
251
|
-
},
|
|
252
|
-
render: () => /*#__PURE__*/_jsxs(Box, {
|
|
253
|
-
lx: {
|
|
254
|
-
width: 's320',
|
|
255
|
-
flexDirection: 'column',
|
|
256
|
-
gap: 's16',
|
|
257
|
-
backgroundColor: 'mutedPressed',
|
|
258
|
-
padding: 's16'
|
|
259
|
-
},
|
|
260
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
261
|
-
typography: "body4SemiBold",
|
|
262
|
-
lx: {
|
|
263
|
-
color: 'muted'
|
|
264
|
-
},
|
|
265
|
-
children: "Container: 320px wide"
|
|
266
|
-
}), /*#__PURE__*/_jsx(CardButton, {
|
|
267
|
-
appearance: "base",
|
|
268
|
-
title: "Short Title",
|
|
269
|
-
description: "Short description",
|
|
270
|
-
icon: Plus
|
|
271
|
-
}), /*#__PURE__*/_jsx(CardButton, {
|
|
272
|
-
appearance: "base",
|
|
273
|
-
title: "Full Width",
|
|
274
|
-
description: "Short description",
|
|
275
|
-
icon: Plus
|
|
276
|
-
}), /*#__PURE__*/_jsx(CardButton, {
|
|
277
|
-
appearance: "base",
|
|
278
|
-
title: "Longer Title That Might Overflow When Container is Smaller",
|
|
279
|
-
description: "This is a longer description that demonstrates how the card handles longer content within its constraints",
|
|
280
|
-
icon: Settings
|
|
281
|
-
})]
|
|
282
|
-
})
|
|
283
|
-
};
|
|
284
|
-
//# sourceMappingURL=CardButton.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Box","Text","Settings","Plus","Coins","CreditCard","Bank","CardButton","jsx","_jsx","jsxs","_jsxs","meta","component","id","title","tags","parameters","docs","source","language","format","type","argTypes","appearance","control","options","description","icon","mapping","None","undefined","hideChevron","disabled","Base","args","render","WithIcon","WithDescription","WithoutChevron","FullFeatures","NaturalWidth","lx","backgroundColor","padding","children","typography","color","marginBottom","AppearanceShowcase","appearances","name","flexDirection","gap","maxWidth","map","ContentVariations","StatesShowcase","ResponsiveLayout","width"],"sourceRoot":"../../../../../../src","sources":["lib/Components/core/CardButton/CardButton.stories.tsx"],"mappings":";;AACA,SAASA,GAAG,EAAEC,IAAI,QAAQ,2BAAkB;AAC5C,SAASC,QAAQ,EAAEC,IAAI,EAAEC,KAAK,EAAEC,UAAU,EAAEC,IAAI,QAAQ,wBAAe;AACvE,SAASC,UAAU,QAAQ,iBAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE1C,MAAMC,IAAI,GAAG;EACXC,SAAS,EAAEN,UAAU;EACrBO,EAAE,EAAE,oBAAoB;EACxBC,KAAK,EAAE,iBAAiB;EACxBC,IAAI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2GAA2G;MACvHC,IAAI,EAAE1B;IAAS,CAChB,CAAC;EAAA,CACC;AAET,CAAC","ignoreList":[]}
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { describe, expect, it, jest } from '@jest/globals';
|
|
4
|
-
import { ledgerLiveThemes } from '@ledgerhq/lumen-design-core';
|
|
5
|
-
import { fireEvent, render, screen } from '@testing-library/react-native';
|
|
6
|
-
import { Settings, Plus } from "../../symbols/index.js";
|
|
7
|
-
import { ThemeProvider } from "../ThemeProvider/ThemeProvider.js";
|
|
8
|
-
import { CardButton } from "./CardButton.js";
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
const renderWithProvider = component => {
|
|
11
|
-
return render(/*#__PURE__*/_jsx(ThemeProvider, {
|
|
12
|
-
themes: ledgerLiveThemes,
|
|
13
|
-
colorScheme: "dark",
|
|
14
|
-
locale: "en",
|
|
15
|
-
children: component
|
|
16
|
-
}));
|
|
17
|
-
};
|
|
18
|
-
describe('CardButton Component', () => {
|
|
19
|
-
describe('Rendering', () => {
|
|
20
|
-
it('should render with required props', () => {
|
|
21
|
-
renderWithProvider(/*#__PURE__*/_jsx(CardButton, {
|
|
22
|
-
testID: "card-button",
|
|
23
|
-
title: "Test Card Button"
|
|
24
|
-
}));
|
|
25
|
-
expect(screen.getByTestId('card-button')).toBeTruthy();
|
|
26
|
-
});
|
|
27
|
-
it('should render the title', () => {
|
|
28
|
-
renderWithProvider(/*#__PURE__*/_jsx(CardButton, {
|
|
29
|
-
title: "Test Title"
|
|
30
|
-
}));
|
|
31
|
-
expect(screen.getByText('Test Title')).toBeTruthy();
|
|
32
|
-
});
|
|
33
|
-
it('should render description when provided', () => {
|
|
34
|
-
renderWithProvider(/*#__PURE__*/_jsx(CardButton, {
|
|
35
|
-
title: "Test Title",
|
|
36
|
-
description: "Test Description"
|
|
37
|
-
}));
|
|
38
|
-
expect(screen.getByText('Test Description')).toBeTruthy();
|
|
39
|
-
});
|
|
40
|
-
it('should have correct accessibility role', () => {
|
|
41
|
-
renderWithProvider(/*#__PURE__*/_jsx(CardButton, {
|
|
42
|
-
testID: "card-button",
|
|
43
|
-
title: "Test Card Button"
|
|
44
|
-
}));
|
|
45
|
-
const button = screen.getByTestId('card-button');
|
|
46
|
-
expect(button.props.accessibilityRole).toBe('button');
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
describe('Appearances', () => {
|
|
50
|
-
it.each(['base', 'outline'])('should render with %s appearance', appearance => {
|
|
51
|
-
renderWithProvider(/*#__PURE__*/_jsx(CardButton, {
|
|
52
|
-
testID: "card-button",
|
|
53
|
-
title: "Test Card Button",
|
|
54
|
-
appearance: appearance
|
|
55
|
-
}));
|
|
56
|
-
expect(screen.getByTestId('card-button')).toBeTruthy();
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
describe('Icon', () => {
|
|
60
|
-
it('should render with icon when provided', () => {
|
|
61
|
-
renderWithProvider(/*#__PURE__*/_jsx(CardButton, {
|
|
62
|
-
testID: "card-button",
|
|
63
|
-
title: "Settings",
|
|
64
|
-
icon: Settings
|
|
65
|
-
}));
|
|
66
|
-
expect(screen.getByTestId('card-button')).toBeTruthy();
|
|
67
|
-
});
|
|
68
|
-
it('should render different icons', () => {
|
|
69
|
-
renderWithProvider(/*#__PURE__*/_jsx(CardButton, {
|
|
70
|
-
testID: "card-button",
|
|
71
|
-
title: "Add",
|
|
72
|
-
icon: Plus
|
|
73
|
-
}));
|
|
74
|
-
expect(screen.getByTestId('card-button')).toBeTruthy();
|
|
75
|
-
});
|
|
76
|
-
});
|
|
77
|
-
describe('Chevron', () => {
|
|
78
|
-
it('should render chevron by default', () => {
|
|
79
|
-
renderWithProvider(/*#__PURE__*/_jsx(CardButton, {
|
|
80
|
-
testID: "card-button",
|
|
81
|
-
title: "Test Card Button"
|
|
82
|
-
}));
|
|
83
|
-
// The chevron is rendered inside card-button-content
|
|
84
|
-
expect(screen.getByTestId('card-button-content')).toBeTruthy();
|
|
85
|
-
});
|
|
86
|
-
it('should hide chevron when hideChevron is true', () => {
|
|
87
|
-
renderWithProvider(/*#__PURE__*/_jsx(CardButton, {
|
|
88
|
-
testID: "card-button",
|
|
89
|
-
title: "Test Card Button",
|
|
90
|
-
hideChevron: true
|
|
91
|
-
}));
|
|
92
|
-
expect(screen.getByTestId('card-button')).toBeTruthy();
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
describe('States', () => {
|
|
96
|
-
it('should be disabled when disabled prop is true', () => {
|
|
97
|
-
renderWithProvider(/*#__PURE__*/_jsx(CardButton, {
|
|
98
|
-
testID: "card-button",
|
|
99
|
-
title: "Test Card Button",
|
|
100
|
-
disabled: true
|
|
101
|
-
}));
|
|
102
|
-
const button = screen.getByTestId('card-button');
|
|
103
|
-
expect(button.props.accessibilityState.disabled).toBe(true);
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
describe('Interactions', () => {
|
|
107
|
-
it('should call onPress when pressed', () => {
|
|
108
|
-
const handlePress = jest.fn();
|
|
109
|
-
renderWithProvider(/*#__PURE__*/_jsx(CardButton, {
|
|
110
|
-
testID: "card-button",
|
|
111
|
-
title: "Test Card Button",
|
|
112
|
-
onPress: handlePress
|
|
113
|
-
}));
|
|
114
|
-
fireEvent.press(screen.getByTestId('card-button'));
|
|
115
|
-
expect(handlePress).toHaveBeenCalledTimes(1);
|
|
116
|
-
});
|
|
117
|
-
it('should not call onPress when disabled', () => {
|
|
118
|
-
const handlePress = jest.fn();
|
|
119
|
-
renderWithProvider(/*#__PURE__*/_jsx(CardButton, {
|
|
120
|
-
testID: "card-button",
|
|
121
|
-
title: "Test Card Button",
|
|
122
|
-
onPress: handlePress,
|
|
123
|
-
disabled: true
|
|
124
|
-
}));
|
|
125
|
-
fireEvent.press(screen.getByTestId('card-button'));
|
|
126
|
-
expect(handlePress).not.toHaveBeenCalled();
|
|
127
|
-
});
|
|
128
|
-
});
|
|
129
|
-
});
|
|
130
|
-
//# sourceMappingURL=CardButton.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["describe","expect","it","jest","ledgerLiveThemes","fireEvent","render","screen","Settings","Plus","ThemeProvider","CardButton","jsx","_jsx","renderWithProvider","component","themes","colorScheme","locale","children","testID","title","getByTestId","toBeTruthy","getByText","description","button","props","accessibilityRole","toBe","each","appearance","icon","hideChevron","disabled","accessibilityState","handlePress","fn","onPress","press","toHaveBeenCalledTimes","not","toHaveBeenCalled"],"sourceRoot":"../../../../../../src","sources":["lib/Components/core/CardButton/CardButton.test.tsx"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,MAAM,EAAEC,EAAE,EAAEC,IAAI,QAAQ,eAAe;AAC1D,SAASC,gBAAgB,QAAQ,6BAA6B;AAC9D,SAASC,SAAS,EAAEC,MAAM,EAAEC,MAAM,QAAQ,+BAA+B;AAEzE,SAASC,QAAQ,EAAEC,IAAI,QAAQ,wBAAe;AAC9C,SAASC,aAAa,QAAQ,mCAAgC;AAC9D,SAASC,UAAU,QAAQ,iBAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE1C,MAAMC,kBAAkB,GAAIC,SAA6B,IAAK;EAC5D,OAAOT,MAAM,cACXO,IAAA,CAACH,aAAa;IAACM,MAAM,EAAEZ,gBAAiB;IAACa,WAAW,EAAC,MAAM;IAACC,MAAM,EAAC,IAAI;IAAAC,QAAA,EACpEJ;EAAS,CACG,CACjB,CAAC;AACH,CAAC;AAEDf,QAAQ,CAAC,sBAAsB,EAAE,MAAM;EACrCA,QAAQ,CAAC,WAAW,EAAE,MAAM;IAC1BE,EAAE,CAAC,mCAAmC,EAAE,MAAM;MAC5CY,kBAAkB,cAChBD,IAAA,CAACF,UAAU;QAACS,MAAM,EAAC,aAAa;QAACC,KAAK,EAAC;MAAkB,CAAE,CAC7D,CAAC;MACDpB,MAAM,CAACM,MAAM,CAACe,WAAW,CAAC,aAAa,CAAC,CAAC,CAACC,UAAU,CAAC,CAA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gB,CAAC,CAAC;IAC5C,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import figma from '@figma/code-connect';
|
|
4
|
-
import { Checkbox } from "./Checkbox.js";
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
figma.connect(Checkbox, 'https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7?node-id=6688-3600', {
|
|
7
|
-
imports: ["import { Checkbox } from '@ledgerhq/lumen-ui-rnative'"],
|
|
8
|
-
variant: {
|
|
9
|
-
'show-label': true
|
|
10
|
-
},
|
|
11
|
-
props: {
|
|
12
|
-
checkbox: figma.nestedProps('.checkbox', {
|
|
13
|
-
checked: figma.boolean('selected'),
|
|
14
|
-
disabled: figma.enum('state', {
|
|
15
|
-
disabled: true
|
|
16
|
-
})
|
|
17
|
-
}),
|
|
18
|
-
label: figma.string('label')
|
|
19
|
-
},
|
|
20
|
-
example: props => /*#__PURE__*/_jsx(Checkbox, {
|
|
21
|
-
checked: props.checkbox.checked,
|
|
22
|
-
onCheckedChange: _checked => {},
|
|
23
|
-
defaultChecked: false,
|
|
24
|
-
disabled: props.checkbox.disabled,
|
|
25
|
-
label: props.label
|
|
26
|
-
})
|
|
27
|
-
});
|
|
28
|
-
figma.connect(Checkbox, 'https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7?node-id=6688-3600', {
|
|
29
|
-
imports: ["import { Checkbox } from '@ledgerhq/lumen-ui-rnative'"],
|
|
30
|
-
variant: {
|
|
31
|
-
'show-label': false
|
|
32
|
-
},
|
|
33
|
-
props: {
|
|
34
|
-
checkbox: figma.nestedProps('.checkbox', {
|
|
35
|
-
checked: figma.boolean('selected'),
|
|
36
|
-
disabled: figma.enum('state', {
|
|
37
|
-
disabled: true
|
|
38
|
-
})
|
|
39
|
-
})
|
|
40
|
-
},
|
|
41
|
-
example: props => /*#__PURE__*/_jsx(Checkbox, {
|
|
42
|
-
checked: props.checkbox.checked,
|
|
43
|
-
onCheckedChange: _checked => {},
|
|
44
|
-
defaultChecked: false,
|
|
45
|
-
disabled: props.checkbox.disabled
|
|
46
|
-
})
|
|
47
|
-
});
|
|
48
|
-
//# sourceMappingURL=Checkbox.figma.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["figma","Checkbox","jsx","_jsx","connect","imports","variant","props","checkbox","nestedProps","checked","boolean","disabled","enum","label","string","example","onCheckedChange","_checked","defaultChecked"],"sourceRoot":"../../../../../../src","sources":["lib/Components/core/Checkbox/Checkbox.figma.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,qBAAqB;AACvC,SAASC,QAAQ,QAAQ,eAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEtCH,KAAK,CAACI,OAAO,CACXH,QAAQ,EACR,uEAAuE,EACvE;EACEI,OAAO,EAAE,CAAC,uDAAuD,CAAC;EAClEC,OAAO,EAAE;IAAE,YAAY,EAAE;EAAK,CAAC;EAC/BC,KAAK,EAAE;IACLC,QAAQ,EAAER,KAAK,CAACS,WAAW,CAAC,WAAW,EAAE;MACvCC,OAAO,EAAEV,KAAK,CAACW,OAAO,CAAC,UAAU,CAAC;MAClCC,QAAQ,EAAEZ,KAAK,CAACa,IAAI,CAAC,OAAO,EAAE;QAC5BD,QAAQ,EAAE;MACZ,CAAC;IACH,CAAC,CAAC;IACFE,KAAK,EAAEd,KAAK,CAACe,MAAM,CAAC,OAAO;EAC7B,CAAC;EACDC,OAAO,EAAGT,KAAK,iBACbJ,IAAA,CAACF,QAAQ;IACPS,OAAO,EAAEH,KAAK,CAACC,QAAQ,CAACE,OAAQ;IAChCO,eAAe,EAAGC,QAAiB,IAAK,CAAC,CAAE;IAC3CC,cAAc,EAAE,KAAM;IACtBP,QAAQ,EAAEL,KAAK,CAACC,QAAQ,CAACI,QAAS;IAClCE,KAAK,EAAEP,KAAK,CAACO;EAAM,CACpB;AAEL,CACF,CAAC;AAEDd,KAAK,CAACI,OAAO,CACXH,QAAQ,EACR,uEAAuE,EACvE;EACEI,OAAO,EAAE,CAAC,uDAAuD,CAAC;EAClEC,OAAO,EAAE;IAAE,YAAY,EAAE;EAAM,CAAC;EAChCC,KAAK,EAAE;IACLC,QAAQ,EAAER,KAAK,CAACS,WAAW,CAAC,WAAW,EAAE;MACvCC,OAAO,EAAEV,KAAK,CAACW,OAAO,CAAC,UAAU,CAAC;MAClCC,QAAQ,EAAEZ,KAAK,CAACa,IAAI,CAAC,OAAO,EAAE;QAC5BD,QAAQ,EAAE;MACZ,CAAC;IACH,CAAC;EACH,CAAC;EACDI,OAAO,EAAGT,KAAK,iBACbJ,IAAA,CAACF,QAAQ;IACPS,OAAO,EAAEH,KAAK,CAACC,QAAQ,CAACE,OAAQ;IAChCO,eAAe,EAAGC,QAAiB,IAAK,CAAC,CAAE;IAC3CC,cAAc,EAAE,KAAM;IACtBP,QAAQ,EAAEL,KAAK,CAACC,QAAQ,CAACI;EAAS,CACnC;AAEL,CACF,CAAC","ignoreList":[]}
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import { Meta, Story, Canvas, Controls } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import * as CheckboxStories from './Checkbox.stories';
|
|
3
|
-
import { Checkbox } from './Checkbox';
|
|
4
|
-
import { Box } from '../../primitives';
|
|
5
|
-
import { CustomTabs, Tab } from '../../../../../.storybook/components';
|
|
6
|
-
|
|
7
|
-
<Meta title='Core/Checkbox' of={CheckboxStories} />
|
|
8
|
-
|
|
9
|
-
# Checkbox
|
|
10
|
-
|
|
11
|
-
<CustomTabs>
|
|
12
|
-
<Tab label="Overview">
|
|
13
|
-
|
|
14
|
-
## Introduction
|
|
15
|
-
|
|
16
|
-
Checkboxes are form controls that allow users to select one or multiple options from a list. They provide clear visual feedback about the selection state and support various interaction states including hover, focus, and disabled modes.
|
|
17
|
-
|
|
18
|
-
> View in [Figma](https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7/2.-Components-Library?node-id=90-1197&m=dev).
|
|
19
|
-
|
|
20
|
-
## Anatomy
|
|
21
|
-
|
|
22
|
-
<Canvas of={CheckboxStories.Base} />
|
|
23
|
-
|
|
24
|
-
- **Checkbox**: The main interactive element that can be checked or unchecked
|
|
25
|
-
- **Check mark**: Visual indicator shown when the checkbox is in a checked state
|
|
26
|
-
|
|
27
|
-
## Properties
|
|
28
|
-
|
|
29
|
-
### Overview
|
|
30
|
-
|
|
31
|
-
<Canvas of={CheckboxStories.Base} />
|
|
32
|
-
<Controls of={CheckboxStories.Base} />
|
|
33
|
-
|
|
34
|
-
### States
|
|
35
|
-
|
|
36
|
-
Checkboxes support multiple states to provide clear feedback to users:
|
|
37
|
-
|
|
38
|
-
- **Unchecked**: Default state when not selected
|
|
39
|
-
- **Checked**: Selected state with a visible check mark
|
|
40
|
-
- **Disabled**: Non-interactive state for both checked and unchecked variants
|
|
41
|
-
- **Focus**: Accessible focus state with visible ring indicator
|
|
42
|
-
|
|
43
|
-
<Canvas of={CheckboxStories.AllStates} />
|
|
44
|
-
|
|
45
|
-
## Usage Guidelines
|
|
46
|
-
|
|
47
|
-
### Best Practices
|
|
48
|
-
|
|
49
|
-
- Use checkboxes when users can select multiple options from a list
|
|
50
|
-
- Always provide clear labels that describe what checking the box means
|
|
51
|
-
- Group related checkboxes logically
|
|
52
|
-
- Use consistent spacing between checkbox options
|
|
53
|
-
|
|
54
|
-
### Accessibility
|
|
55
|
-
|
|
56
|
-
- Provide descriptive labels for screen readers
|
|
57
|
-
- Ensure sufficient color contrast in all states
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
</Tab>
|
|
61
|
-
<Tab label="Implementation">
|
|
62
|
-
|
|
63
|
-
## Setup
|
|
64
|
-
Install and set up the library with our [Setup Guide →](?path=/docs/getting-started-setup--docs).
|
|
65
|
-
|
|
66
|
-
## Basic Usage
|
|
67
|
-
|
|
68
|
-
```tsx
|
|
69
|
-
import { Checkbox, Box, Text } from '@ledgerhq/lumen-ui-rnative';
|
|
70
|
-
|
|
71
|
-
function MyForm() {
|
|
72
|
-
const [isChecked, setIsChecked] = useState(false);
|
|
73
|
-
|
|
74
|
-
return (
|
|
75
|
-
<Box lx={{ flexDirection: 'row', alignItems: 'center', gap: 's8' }}>
|
|
76
|
-
<Checkbox
|
|
77
|
-
checked={isChecked}
|
|
78
|
-
onCheckedChange={setIsChecked}
|
|
79
|
-
/>
|
|
80
|
-
<Text>Accept terms and conditions</Text>
|
|
81
|
-
</Box>
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
## Controlled vs Uncontrolled
|
|
87
|
-
|
|
88
|
-
### Controlled
|
|
89
|
-
|
|
90
|
-
Use the `checked` and `onCheckedChange` props for full control:
|
|
91
|
-
|
|
92
|
-
```tsx
|
|
93
|
-
const [checked, setChecked] = useState(false);
|
|
94
|
-
|
|
95
|
-
<Checkbox
|
|
96
|
-
checked={checked}
|
|
97
|
-
onCheckedChange={setChecked}
|
|
98
|
-
/>
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
### Uncontrolled
|
|
102
|
-
|
|
103
|
-
Use `defaultChecked` for simple cases:
|
|
104
|
-
|
|
105
|
-
```tsx
|
|
106
|
-
<Checkbox defaultChecked={true} />
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
## Accessibility Best Practices
|
|
110
|
-
|
|
111
|
-
### Labels and ARIA
|
|
112
|
-
|
|
113
|
-
```tsx
|
|
114
|
-
// ✅ Using built-in label prop
|
|
115
|
-
<Checkbox label="I agree to the terms" />
|
|
116
|
-
|
|
117
|
-
// ✅ ARIA label for standalone checkbox
|
|
118
|
-
<Checkbox accessibilityLabel="Select all items" />
|
|
119
|
-
|
|
120
|
-
// ✅ Custom layout with Box and Text
|
|
121
|
-
<Box lx={{ flexDirection: 'row', alignItems: 'center', gap: 's8' }}>
|
|
122
|
-
<Checkbox id="terms" />
|
|
123
|
-
<Text>I agree to the terms</Text>
|
|
124
|
-
</Box>
|
|
125
|
-
|
|
126
|
-
// ✅ ARIA described by for complex descriptions
|
|
127
|
-
<Box lx={{ gap: 's4' }}>
|
|
128
|
-
<Box lx={{ flexDirection: 'row', alignItems: 'center', gap: 's8' }}>
|
|
129
|
-
<Checkbox
|
|
130
|
-
id="marketing"
|
|
131
|
-
aria-describedby="marketing-description"
|
|
132
|
-
/>
|
|
133
|
-
<Text>Marketing emails</Text>
|
|
134
|
-
</Box>
|
|
135
|
-
<Text id="marketing-description" lx={{ color: 'muted' }} typography="body4">
|
|
136
|
-
Receive promotional offers and product updates
|
|
137
|
-
</Text>
|
|
138
|
-
</Box>
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
### Keyboard Navigation
|
|
142
|
-
|
|
143
|
-
The Checkbox component automatically supports:
|
|
144
|
-
|
|
145
|
-
- **Tab**: Navigate to the checkbox
|
|
146
|
-
- **Space**: Toggle checked/unchecked state
|
|
147
|
-
- **Enter**: Submit form (when inside a form)
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
</Tab>
|
|
151
|
-
</CustomTabs>
|