@ledgerhq/react-ui 0.45.0 → 0.46.0-nightly.20260217030329
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/README.md +2 -2
- package/lib/cjs/assets/fonts.js +60 -9
- package/lib/cjs/assets/fonts.js.map +1 -7
- package/lib/cjs/assets/images/images.d.js +6 -2
- package/lib/cjs/assets/index.js +175 -35
- package/lib/cjs/assets/index.js.map +1 -7
- package/lib/cjs/assets/logos/LedgerLiveAltRegular.js +91 -52
- package/lib/cjs/assets/logos/LedgerLiveAltRegular.js.map +1 -7
- package/lib/cjs/assets/logos/LedgerLiveRegular.js +103 -70
- package/lib/cjs/assets/logos/LedgerLiveRegular.js.map +1 -7
- package/lib/cjs/assets/logos/index.js +147 -33
- package/lib/cjs/assets/logos/index.js.map +1 -7
- package/lib/cjs/components/Table/Columns.js +767 -83
- package/lib/cjs/components/Table/Columns.js.map +1 -7
- package/lib/cjs/components/Table/Table.stories.js +1640 -174
- package/lib/cjs/components/Table/Table.stories.js.map +1 -7
- package/lib/cjs/components/Table/index.js +888 -104
- package/lib/cjs/components/Table/index.js.map +1 -7
- package/lib/cjs/components/Table/stories.helper.js +1127 -234
- package/lib/cjs/components/Table/stories.helper.js.map +1 -7
- package/lib/cjs/components/Tag/Tag.stories.js +875 -77
- package/lib/cjs/components/Tag/Tag.stories.js.map +1 -7
- package/lib/cjs/components/Tag/index.js +744 -102
- package/lib/cjs/components/Tag/index.js.map +1 -7
- package/lib/cjs/components/animations/GlitchText/GlitchText.stories.js +872 -55
- package/lib/cjs/components/animations/GlitchText/GlitchText.stories.js.map +1 -7
- package/lib/cjs/components/animations/GlitchText/index.js +116 -62
- package/lib/cjs/components/animations/GlitchText/index.js.map +1 -7
- package/lib/cjs/components/asorted/Divider/Divider.stories.js +764 -57
- package/lib/cjs/components/asorted/Divider/Divider.stories.js.map +1 -7
- package/lib/cjs/components/asorted/Divider/index.js +712 -48
- package/lib/cjs/components/asorted/Divider/index.js.map +1 -7
- package/lib/cjs/components/asorted/Icon/BoxedIcon.js +204 -83
- package/lib/cjs/components/asorted/Icon/BoxedIcon.js.map +1 -7
- package/lib/cjs/components/asorted/Icon/BoxedIcon.stories.js +365 -113
- package/lib/cjs/components/asorted/Icon/BoxedIcon.stories.js.map +1 -7
- package/lib/cjs/components/asorted/Icon/Icon.js +104 -52
- package/lib/cjs/components/asorted/Icon/Icon.js.map +1 -7
- package/lib/cjs/components/asorted/Icon/Icons.stories.js +752 -69
- package/lib/cjs/components/asorted/Icon/Icons.stories.js.map +1 -7
- package/lib/cjs/components/asorted/Icon/IconsLegacy.stories.js +1422 -131
- package/lib/cjs/components/asorted/Icon/IconsLegacy.stories.js.map +1 -7
- package/lib/cjs/components/asorted/Icon/NotificationIcon.js +247 -58
- package/lib/cjs/components/asorted/Icon/NotificationIcon.js.map +1 -7
- package/lib/cjs/components/asorted/Icon/NotificationIcon.stories.js +329 -51
- package/lib/cjs/components/asorted/Icon/NotificationIcon.stories.js.map +1 -7
- package/lib/cjs/components/asorted/Icon/index.js +434 -40
- package/lib/cjs/components/asorted/Icon/index.js.map +1 -7
- package/lib/cjs/components/asorted/Text/Text.stories.js +804 -84
- package/lib/cjs/components/asorted/Text/Text.stories.js.map +1 -7
- package/lib/cjs/components/asorted/Text/index.js +647 -60
- package/lib/cjs/components/asorted/Text/index.js.map +1 -7
- package/lib/cjs/components/asorted/Text/styles.js +173 -113
- package/lib/cjs/components/asorted/Text/styles.js.map +1 -7
- package/lib/cjs/components/asorted/index.js +964 -41
- package/lib/cjs/components/asorted/index.js.map +1 -7
- package/lib/cjs/components/cta/Button/Button.stories.js +1243 -121
- package/lib/cjs/components/cta/Button/Button.stories.js.map +1 -7
- package/lib/cjs/components/cta/Button/index.js +644 -160
- package/lib/cjs/components/cta/Button/index.js.map +1 -7
- package/lib/cjs/components/cta/Link/Link.stories.js +882 -82
- package/lib/cjs/components/cta/Link/Link.stories.js.map +1 -7
- package/lib/cjs/components/cta/Link/getLinkStyle.js +53 -38
- package/lib/cjs/components/cta/Link/getLinkStyle.js.map +1 -7
- package/lib/cjs/components/cta/Link/index.js +760 -73
- package/lib/cjs/components/cta/Link/index.js.map +1 -7
- package/lib/cjs/components/cta/Toggle/Toggle.stories.js +853 -55
- package/lib/cjs/components/cta/Toggle/Toggle.stories.js.map +1 -7
- package/lib/cjs/components/cta/Toggle/index.js +800 -44
- package/lib/cjs/components/cta/Toggle/index.js.map +1 -7
- package/lib/cjs/components/cta/getCtaStyle.js +42 -27
- package/lib/cjs/components/cta/getCtaStyle.js.map +1 -7
- package/lib/cjs/components/cta/index.js +1125 -38
- package/lib/cjs/components/cta/index.js.map +1 -7
- package/lib/cjs/components/form/BaseInput/Input.stories.js +1274 -104
- package/lib/cjs/components/form/BaseInput/Input.stories.js.map +1 -7
- package/lib/cjs/components/form/BaseInput/index.js +1124 -144
- package/lib/cjs/components/form/BaseInput/index.js.map +1 -7
- package/lib/cjs/components/form/Checkbox/Checkbox.js +728 -77
- package/lib/cjs/components/form/Checkbox/Checkbox.js.map +1 -7
- package/lib/cjs/components/form/Checkbox/Checkbox.stories.js +879 -92
- package/lib/cjs/components/form/Checkbox/Checkbox.stories.js.map +1 -7
- package/lib/cjs/components/form/Checkbox/index.js +795 -34
- package/lib/cjs/components/form/Checkbox/index.js.map +1 -7
- package/lib/cjs/components/form/Dropdown/Dropdown.stories.js +1718 -65
- package/lib/cjs/components/form/Dropdown/Dropdown.stories.js.map +1 -7
- package/lib/cjs/components/form/Dropdown/index.js +1632 -87
- package/lib/cjs/components/form/Dropdown/index.js.map +1 -7
- package/lib/cjs/components/form/LegendInput/Input.stories.js +1256 -57
- package/lib/cjs/components/form/LegendInput/Input.stories.js.map +1 -7
- package/lib/cjs/components/form/LegendInput/index.js +1211 -49
- package/lib/cjs/components/form/LegendInput/index.js.map +1 -7
- package/lib/cjs/components/form/NumberInput/Input.stories.js +1310 -84
- package/lib/cjs/components/form/NumberInput/Input.stories.js.map +1 -7
- package/lib/cjs/components/form/NumberInput/index.js +1240 -77
- package/lib/cjs/components/form/NumberInput/index.js.map +1 -7
- package/lib/cjs/components/form/QrCodeInput/Input.stories.js +1280 -53
- package/lib/cjs/components/form/QrCodeInput/Input.stories.js.map +1 -7
- package/lib/cjs/components/form/QrCodeInput/index.js +1229 -53
- package/lib/cjs/components/form/QrCodeInput/index.js.map +1 -7
- package/lib/cjs/components/form/QuantityInput/Input.stories.js +1305 -90
- package/lib/cjs/components/form/QuantityInput/Input.stories.js.map +1 -7
- package/lib/cjs/components/form/QuantityInput/index.js +1230 -60
- package/lib/cjs/components/form/QuantityInput/index.js.map +1 -7
- package/lib/cjs/components/form/Radio/Radio.stories.js +1164 -123
- package/lib/cjs/components/form/Radio/Radio.stories.js.map +1 -7
- package/lib/cjs/components/form/Radio/RadioElement.js +869 -104
- package/lib/cjs/components/form/Radio/RadioElement.js.map +1 -7
- package/lib/cjs/components/form/Radio/RadioElement.stories.js +1057 -49
- package/lib/cjs/components/form/Radio/RadioElement.stories.js.map +1 -7
- package/lib/cjs/components/form/Radio/RadioListElement.js +979 -81
- package/lib/cjs/components/form/Radio/RadioListElement.js.map +1 -7
- package/lib/cjs/components/form/Radio/RadioListElement.stories.js +1025 -42
- package/lib/cjs/components/form/Radio/RadioListElement.stories.js.map +1 -7
- package/lib/cjs/components/form/Radio/index.js +995 -55
- package/lib/cjs/components/form/Radio/index.js.map +1 -7
- package/lib/cjs/components/form/SearchInput/Input.stories.js +1253 -53
- package/lib/cjs/components/form/SearchInput/Input.stories.js.map +1 -7
- package/lib/cjs/components/form/SearchInput/index.js +1217 -52
- package/lib/cjs/components/form/SearchInput/index.js.map +1 -7
- package/lib/cjs/components/form/SelectInput/Control.js +1217 -51
- package/lib/cjs/components/form/SelectInput/Control.js.map +1 -7
- package/lib/cjs/components/form/SelectInput/DropdownIndicator.js +704 -47
- package/lib/cjs/components/form/SelectInput/DropdownIndicator.js.map +1 -7
- package/lib/cjs/components/form/SelectInput/IndicatorsContainer.js +167 -36
- package/lib/cjs/components/form/SelectInput/IndicatorsContainer.js.map +1 -7
- package/lib/cjs/components/form/SelectInput/MenuList.js +103 -47
- package/lib/cjs/components/form/SelectInput/MenuList.js.map +1 -7
- package/lib/cjs/components/form/SelectInput/Option.js +713 -72
- package/lib/cjs/components/form/SelectInput/Option.js.map +1 -7
- package/lib/cjs/components/form/SelectInput/Select.stories.js +1985 -343
- package/lib/cjs/components/form/SelectInput/Select.stories.js.map +1 -7
- package/lib/cjs/components/form/SelectInput/ValueContainer.js +691 -51
- package/lib/cjs/components/form/SelectInput/ValueContainer.js.map +1 -7
- package/lib/cjs/components/form/SelectInput/index.js +1542 -122
- package/lib/cjs/components/form/SelectInput/index.js.map +1 -7
- package/lib/cjs/components/form/SplitInput/SplitInput.stories.js +1977 -203
- package/lib/cjs/components/form/SplitInput/SplitInput.stories.js.map +1 -7
- package/lib/cjs/components/form/SplitInput/index.js +1247 -68
- package/lib/cjs/components/form/SplitInput/index.js.map +1 -7
- package/lib/cjs/components/form/Switch/Switch.js +736 -88
- package/lib/cjs/components/form/Switch/Switch.js.map +1 -7
- package/lib/cjs/components/form/Switch/Switch.stories.js +908 -87
- package/lib/cjs/components/form/Switch/Switch.stories.js.map +1 -7
- package/lib/cjs/components/form/Switch/index.js +822 -34
- package/lib/cjs/components/form/Switch/index.js.map +1 -7
- package/lib/cjs/components/form/TabSelector/TabSelector.stories.js +809 -53
- package/lib/cjs/components/form/TabSelector/TabSelector.stories.js.map +1 -7
- package/lib/cjs/components/form/TabSelector/index.js +758 -101
- package/lib/cjs/components/form/TabSelector/index.js.map +1 -7
- package/lib/cjs/components/form/index.js +2756 -58
- package/lib/cjs/components/form/index.js.map +1 -7
- package/lib/cjs/components/helpers.js +36 -20
- package/lib/cjs/components/helpers.js.map +1 -7
- package/lib/cjs/components/index.js +7545 -46
- package/lib/cjs/components/index.js.map +1 -7
- package/lib/cjs/components/layout/Banner/BannerCard/BannerCard.stories.js +1580 -73
- package/lib/cjs/components/layout/Banner/BannerCard/BannerCard.stories.js.map +1 -7
- package/lib/cjs/components/layout/Banner/BannerCard/index.js +1362 -74
- package/lib/cjs/components/layout/Banner/BannerCard/index.js.map +1 -7
- package/lib/cjs/components/layout/Banner/NotificationCard/NotificationCard.stories.js +1072 -76
- package/lib/cjs/components/layout/Banner/NotificationCard/NotificationCard.stories.js.map +1 -7
- package/lib/cjs/components/layout/Banner/NotificationCard/index.js +865 -57
- package/lib/cjs/components/layout/Banner/NotificationCard/index.js.map +1 -7
- package/lib/cjs/components/layout/Box/Box.stories.js +200 -74
- package/lib/cjs/components/layout/Box/Box.stories.js.map +1 -7
- package/lib/cjs/components/layout/Box/index.js +137 -33
- package/lib/cjs/components/layout/Box/index.js.map +1 -7
- package/lib/cjs/components/layout/Carousel/Carousel.stories.js +2012 -111
- package/lib/cjs/components/layout/Carousel/Carousel.stories.js.map +1 -7
- package/lib/cjs/components/layout/Carousel/ChevronArrow.js +104 -42
- package/lib/cjs/components/layout/Carousel/ChevronArrow.js.map +1 -7
- package/lib/cjs/components/layout/Carousel/Footer/Pagination/bullets.js +150 -68
- package/lib/cjs/components/layout/Carousel/Footer/Pagination/bullets.js.map +1 -7
- package/lib/cjs/components/layout/Carousel/Footer/Pagination/index.js +202 -40
- package/lib/cjs/components/layout/Carousel/Footer/Pagination/index.js.map +1 -7
- package/lib/cjs/components/layout/Carousel/Footer/Pagination/types.js +42 -27
- package/lib/cjs/components/layout/Carousel/Footer/Pagination/types.js.map +1 -7
- package/lib/cjs/components/layout/Carousel/Footer/Pagination/utils.js +91 -32
- package/lib/cjs/components/layout/Carousel/Footer/Pagination/utils.js.map +1 -7
- package/lib/cjs/components/layout/Carousel/Footer/index.js +309 -44
- package/lib/cjs/components/layout/Carousel/Footer/index.js.map +1 -7
- package/lib/cjs/components/layout/Carousel/Footer/variantContentCard.js +246 -49
- package/lib/cjs/components/layout/Carousel/Footer/variantContentCard.js.map +1 -7
- package/lib/cjs/components/layout/Carousel/Footer/variantDefault.js +225 -39
- package/lib/cjs/components/layout/Carousel/Footer/variantDefault.js.map +1 -7
- package/lib/cjs/components/layout/Carousel/index.js +551 -168
- package/lib/cjs/components/layout/Carousel/index.js.map +1 -7
- package/lib/cjs/components/layout/Carousel/types.js +23 -15
- package/lib/cjs/components/layout/Carousel/types.js.map +1 -7
- package/lib/cjs/components/layout/ContentCard/PortfolioContentCard/PortfolioContentCard.stories.js +1477 -70
- package/lib/cjs/components/layout/ContentCard/PortfolioContentCard/PortfolioContentCard.stories.js.map +1 -7
- package/lib/cjs/components/layout/ContentCard/PortfolioContentCard/index.js +1428 -58
- package/lib/cjs/components/layout/ContentCard/PortfolioContentCard/index.js.map +1 -7
- package/lib/cjs/components/layout/Drawer/Drawer.stories.js +1431 -103
- package/lib/cjs/components/layout/Drawer/Drawer.stories.js.map +1 -7
- package/lib/cjs/components/layout/Drawer/index.js +1288 -163
- package/lib/cjs/components/layout/Drawer/index.js.map +1 -7
- package/lib/cjs/components/layout/Flex/Flex.stories.js +467 -306
- package/lib/cjs/components/layout/Flex/Flex.stories.js.map +1 -7
- package/lib/cjs/components/layout/Flex/index.js +139 -33
- package/lib/cjs/components/layout/Flex/index.js.map +1 -7
- package/lib/cjs/components/layout/Grid/Grid.stories.js +905 -244
- package/lib/cjs/components/layout/Grid/Grid.stories.js.map +1 -7
- package/lib/cjs/components/layout/Grid/index.js +145 -39
- package/lib/cjs/components/layout/Grid/index.js.map +1 -7
- package/lib/cjs/components/layout/List/NumberedList/NumberedList.stories.js +868 -96
- package/lib/cjs/components/layout/List/NumberedList/NumberedList.stories.js.map +1 -7
- package/lib/cjs/components/layout/List/NumberedList/index.js +719 -56
- package/lib/cjs/components/layout/List/NumberedList/index.js.map +1 -7
- package/lib/cjs/components/layout/List/VerticalTimeline/TimelineIndicator.js +209 -69
- package/lib/cjs/components/layout/List/VerticalTimeline/TimelineIndicator.js.map +1 -7
- package/lib/cjs/components/layout/List/VerticalTimeline/TimelineItem.js +1046 -92
- package/lib/cjs/components/layout/List/VerticalTimeline/TimelineItem.js.map +1 -7
- package/lib/cjs/components/layout/List/VerticalTimeline/VerticalTimeline.stories.js +1804 -147
- package/lib/cjs/components/layout/List/VerticalTimeline/VerticalTimeline.stories.js.map +1 -7
- package/lib/cjs/components/layout/List/VerticalTimeline/index.js +1111 -51
- package/lib/cjs/components/layout/List/VerticalTimeline/index.js.map +1 -7
- package/lib/cjs/components/layout/Popin/Popin.stories.js +1398 -165
- package/lib/cjs/components/layout/Popin/Popin.stories.js.map +1 -7
- package/lib/cjs/components/layout/Popin/index.js +991 -93
- package/lib/cjs/components/layout/Popin/index.js.map +1 -7
- package/lib/cjs/components/layout/Side/Provider.js +121 -69
- package/lib/cjs/components/layout/Side/Provider.js.map +1 -7
- package/lib/cjs/components/layout/Side/Side.stories.js +1566 -120
- package/lib/cjs/components/layout/Side/Side.stories.js.map +1 -7
- package/lib/cjs/components/layout/Side/index.js +1451 -86
- package/lib/cjs/components/layout/Side/index.js.map +1 -7
- package/lib/cjs/components/layout/index.js +3197 -56
- package/lib/cjs/components/layout/index.js.map +1 -7
- package/lib/cjs/components/loaders/InfiniteLoader/InfiniteLoader.stories.js +229 -65
- package/lib/cjs/components/loaders/InfiniteLoader/InfiniteLoader.stories.js.map +1 -7
- package/lib/cjs/components/loaders/InfiniteLoader/index.js +136 -85
- package/lib/cjs/components/loaders/InfiniteLoader/index.js.map +1 -7
- package/lib/cjs/components/loaders/ProgressLoader/ProgressLoader.stories.js +833 -100
- package/lib/cjs/components/loaders/ProgressLoader/ProgressLoader.stories.js.map +1 -7
- package/lib/cjs/components/loaders/ProgressLoader/index.js +727 -109
- package/lib/cjs/components/loaders/ProgressLoader/index.js.map +1 -7
- package/lib/cjs/components/loaders/index.js +864 -36
- package/lib/cjs/components/loaders/index.js.map +1 -7
- package/lib/cjs/components/message/Alert/Alert.stories.js +1312 -82
- package/lib/cjs/components/message/Alert/Alert.stories.js.map +1 -7
- package/lib/cjs/components/message/Alert/index.js +796 -108
- package/lib/cjs/components/message/Alert/index.js.map +1 -7
- package/lib/cjs/components/message/ContinueOnDevice/ContinueOnDevice.stories.js +804 -75
- package/lib/cjs/components/message/ContinueOnDevice/ContinueOnDevice.stories.js.map +1 -7
- package/lib/cjs/components/message/ContinueOnDevice/index.js +752 -51
- package/lib/cjs/components/message/ContinueOnDevice/index.js.map +1 -7
- package/lib/cjs/components/message/Log/Brackets.js +195 -60
- package/lib/cjs/components/message/Log/Brackets.js.map +1 -7
- package/lib/cjs/components/message/Log/Log.stories.js +810 -51
- package/lib/cjs/components/message/Log/Log.stories.js.map +1 -7
- package/lib/cjs/components/message/Log/index.js +771 -56
- package/lib/cjs/components/message/Log/index.js.map +1 -7
- package/lib/cjs/components/message/Notification/Badge.js +107 -45
- package/lib/cjs/components/message/Notification/Badge.js.map +1 -7
- package/lib/cjs/components/message/Notification/Badge.stories.js +295 -64
- package/lib/cjs/components/message/Notification/Badge.stories.js.map +1 -7
- package/lib/cjs/components/message/Notification/Notification.stories.js +1049 -94
- package/lib/cjs/components/message/Notification/Notification.stories.js.map +1 -7
- package/lib/cjs/components/message/Notification/index.js +904 -58
- package/lib/cjs/components/message/Notification/index.js.map +1 -7
- package/lib/cjs/components/message/StatusNotification/StatusNotification.stories.js +937 -58
- package/lib/cjs/components/message/StatusNotification/StatusNotification.stories.js.map +1 -7
- package/lib/cjs/components/message/StatusNotification/index.js +813 -53
- package/lib/cjs/components/message/StatusNotification/index.js.map +1 -7
- package/lib/cjs/components/message/Tip/Tip.stories.js +783 -55
- package/lib/cjs/components/message/Tip/Tip.stories.js.map +1 -7
- package/lib/cjs/components/message/Tip/index.js +724 -52
- package/lib/cjs/components/message/Tip/index.js.map +1 -7
- package/lib/cjs/components/message/Tooltip/Tooltip.stories.js +825 -90
- package/lib/cjs/components/message/Tooltip/Tooltip.stories.js.map +1 -7
- package/lib/cjs/components/message/Tooltip/index.js +720 -60
- package/lib/cjs/components/message/Tooltip/index.js.map +1 -7
- package/lib/cjs/components/message/Tooltip/styles.js +86 -26
- package/lib/cjs/components/message/Tooltip/styles.js.map +1 -7
- package/lib/cjs/components/message/index.js +1449 -48
- package/lib/cjs/components/message/index.js.map +1 -7
- package/lib/cjs/components/navigation/Aside/Aside.stories.js +926 -63
- package/lib/cjs/components/navigation/Aside/Aside.stories.js.map +1 -7
- package/lib/cjs/components/navigation/Aside/index.js +176 -40
- package/lib/cjs/components/navigation/Aside/index.js.map +1 -7
- package/lib/cjs/components/navigation/Aside/stories.helper.js +36 -21
- package/lib/cjs/components/navigation/Aside/stories.helper.js.map +1 -7
- package/lib/cjs/components/navigation/Breadcrumb/Breadcrumb.stories.js +1910 -118
- package/lib/cjs/components/navigation/Breadcrumb/Breadcrumb.stories.js.map +1 -7
- package/lib/cjs/components/navigation/Breadcrumb/index.js +1729 -89
- package/lib/cjs/components/navigation/Breadcrumb/index.js.map +1 -7
- package/lib/cjs/components/navigation/FlowStepper/FlowStepper.stories.js +1868 -225
- package/lib/cjs/components/navigation/FlowStepper/FlowStepper.stories.js.map +1 -7
- package/lib/cjs/components/navigation/FlowStepper/index.js +951 -88
- package/lib/cjs/components/navigation/FlowStepper/index.js.map +1 -7
- package/lib/cjs/components/navigation/Header/Header.stories.js +786 -47
- package/lib/cjs/components/navigation/Header/Header.stories.js.map +1 -7
- package/lib/cjs/components/navigation/Header/index.js +163 -35
- package/lib/cjs/components/navigation/Header/index.js.map +1 -7
- package/lib/cjs/components/navigation/index.js +2661 -44
- package/lib/cjs/components/navigation/index.js.map +1 -7
- package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.js +703 -49
- package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.js.map +1 -7
- package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.stories.js +788 -72
- package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.stories.js.map +1 -7
- package/lib/cjs/components/navigation/progress/ProgressBar/index.js +743 -34
- package/lib/cjs/components/navigation/progress/ProgressBar/index.js.map +1 -7
- package/lib/cjs/components/navigation/progress/Stepper/Item.stories.js +879 -44
- package/lib/cjs/components/navigation/progress/Stepper/Item.stories.js.map +1 -7
- package/lib/cjs/components/navigation/progress/Stepper/ProgressSteps.stories.js +898 -56
- package/lib/cjs/components/navigation/progress/Stepper/ProgressSteps.stories.js.map +1 -7
- package/lib/cjs/components/navigation/progress/Stepper/index.js +825 -132
- package/lib/cjs/components/navigation/progress/Stepper/index.js.map +1 -7
- package/lib/cjs/components/navigation/progress/index.js +942 -36
- package/lib/cjs/components/navigation/progress/index.js.map +1 -7
- package/lib/cjs/components/navigation/sideBar/Item/Item.js +808 -106
- package/lib/cjs/components/navigation/sideBar/Item/Item.js.map +1 -7
- package/lib/cjs/components/navigation/sideBar/Item/Item.stories.js +978 -94
- package/lib/cjs/components/navigation/sideBar/Item/Item.stories.js.map +1 -7
- package/lib/cjs/components/navigation/sideBar/Item/index.js +868 -34
- package/lib/cjs/components/navigation/sideBar/Item/index.js.map +1 -7
- package/lib/cjs/components/navigation/sideBar/Logo/Logo.js +243 -61
- package/lib/cjs/components/navigation/sideBar/Logo/Logo.js.map +1 -7
- package/lib/cjs/components/navigation/sideBar/Logo/index.js +257 -31
- package/lib/cjs/components/navigation/sideBar/Logo/index.js.map +1 -7
- package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.js +1107 -73
- package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.js.map +1 -7
- package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.stories.js +1269 -68
- package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.stories.js.map +1 -7
- package/lib/cjs/components/navigation/sideBar/SideBar/index.js +1140 -34
- package/lib/cjs/components/navigation/sideBar/SideBar/index.js.map +1 -7
- package/lib/cjs/components/navigation/sideBar/Toggle/Toggle.js +188 -55
- package/lib/cjs/components/navigation/sideBar/Toggle/Toggle.js.map +1 -7
- package/lib/cjs/components/navigation/sideBar/Toggle/index.js +209 -30
- package/lib/cjs/components/navigation/sideBar/Toggle/index.js.map +1 -7
- package/lib/cjs/components/navigation/sideBar/index.js +82 -22
- package/lib/cjs/components/navigation/sideBar/index.js.map +1 -7
- package/lib/cjs/components/styled.js +125 -54
- package/lib/cjs/components/styled.js.map +1 -7
- package/lib/cjs/components/styled.stories.js +181 -68
- package/lib/cjs/components/styled.stories.js.map +1 -7
- package/lib/cjs/components/tabs/Bar/Bar.stories.js +774 -55
- package/lib/cjs/components/tabs/Bar/Bar.stories.js.map +1 -7
- package/lib/cjs/components/tabs/Bar/index.js +175 -54
- package/lib/cjs/components/tabs/Bar/index.js.map +1 -7
- package/lib/cjs/components/tabs/Chip/Chip.stories.js +784 -55
- package/lib/cjs/components/tabs/Chip/Chip.stories.js.map +1 -7
- package/lib/cjs/components/tabs/Chip/index.js +183 -60
- package/lib/cjs/components/tabs/Chip/index.js.map +1 -7
- package/lib/cjs/components/tabs/Pill/Pill.stories.js +841 -58
- package/lib/cjs/components/tabs/Pill/Pill.stories.js.map +1 -7
- package/lib/cjs/components/tabs/Pill/index.js +184 -61
- package/lib/cjs/components/tabs/Pill/index.js.map +1 -7
- package/lib/cjs/components/tabs/Tabs/Tabs.stories.js +1024 -104
- package/lib/cjs/components/tabs/Tabs/Tabs.stories.js.map +1 -7
- package/lib/cjs/components/tabs/Tabs/index.js +879 -112
- package/lib/cjs/components/tabs/Tabs/index.js.map +1 -7
- package/lib/cjs/components/tabs/index.js +1102 -40
- package/lib/cjs/components/tabs/index.js.map +1 -7
- package/lib/cjs/components/transitions/TransitionInOut.js +106 -42
- package/lib/cjs/components/transitions/TransitionInOut.js.map +1 -7
- package/lib/cjs/components/transitions/TransitionScale.js +103 -41
- package/lib/cjs/components/transitions/TransitionScale.js.map +1 -7
- package/lib/cjs/components/transitions/TransitionSlide.js +108 -45
- package/lib/cjs/components/transitions/TransitionSlide.js.map +1 -7
- package/lib/cjs/components/transitions/index.js +253 -35
- package/lib/cjs/components/transitions/index.js.map +1 -7
- package/lib/cjs/helpers.types.js +32 -15
- package/lib/cjs/helpers.types.js.map +1 -7
- package/lib/cjs/index.js +7712 -29
- package/lib/cjs/index.js.map +1 -7
- package/lib/cjs/pre-ldls/components/AccountItem/AccountItem.js +2073 -114
- package/lib/cjs/pre-ldls/components/AccountItem/AccountItem.js.map +1 -7
- package/lib/cjs/pre-ldls/components/AccountItem/AccountItem.stories.js +2315 -171
- package/lib/cjs/pre-ldls/components/AccountItem/AccountItem.stories.js.map +1 -7
- package/lib/cjs/pre-ldls/components/AccountList/AccountList.js +2406 -55
- package/lib/cjs/pre-ldls/components/AccountList/AccountList.js.map +1 -7
- package/lib/cjs/pre-ldls/components/AccountList/AccountList.stories.js +2466 -66
- package/lib/cjs/pre-ldls/components/AccountList/AccountList.stories.js.map +1 -7
- package/lib/cjs/pre-ldls/components/Address/Address.js +1782 -59
- package/lib/cjs/pre-ldls/components/Address/Address.js.map +1 -7
- package/lib/cjs/pre-ldls/components/Address/Address.stories.js +1836 -47
- package/lib/cjs/pre-ldls/components/Address/Address.stories.js.map +1 -7
- package/lib/cjs/pre-ldls/components/Address/formatAddress.js +51 -31
- package/lib/cjs/pre-ldls/components/Address/formatAddress.js.map +1 -7
- package/lib/cjs/pre-ldls/components/Address/tests/formatAddress.test.js +133 -47
- package/lib/cjs/pre-ldls/components/Address/tests/formatAddress.test.js.map +1 -7
- package/lib/cjs/pre-ldls/components/ApyIndicator/ApyIndicator.js +1771 -37
- package/lib/cjs/pre-ldls/components/ApyIndicator/ApyIndicator.js.map +1 -7
- package/lib/cjs/pre-ldls/components/ApyIndicator/ApyIndicator.stories.js +1827 -42
- package/lib/cjs/pre-ldls/components/ApyIndicator/ApyIndicator.stories.js.map +1 -7
- package/lib/cjs/pre-ldls/components/AssetItem/AssetItem.js +1789 -114
- package/lib/cjs/pre-ldls/components/AssetItem/AssetItem.js.map +1 -7
- package/lib/cjs/pre-ldls/components/AssetItem/AssetItem.stories.js +1980 -74
- package/lib/cjs/pre-ldls/components/AssetItem/AssetItem.stories.js.map +1 -7
- package/lib/cjs/pre-ldls/components/AssetList/AssetList.js +2104 -60
- package/lib/cjs/pre-ldls/components/AssetList/AssetList.js.map +1 -7
- package/lib/cjs/pre-ldls/components/AssetList/AssetList.stories.js +2279 -95
- package/lib/cjs/pre-ldls/components/AssetList/AssetList.stories.js.map +1 -7
- package/lib/cjs/pre-ldls/components/CardButton/CardButton.js +1162 -58
- package/lib/cjs/pre-ldls/components/CardButton/CardButton.js.map +1 -7
- package/lib/cjs/pre-ldls/components/CardButton/CardButton.stories.js +1261 -71
- package/lib/cjs/pre-ldls/components/CardButton/CardButton.stories.js.map +1 -7
- package/lib/cjs/pre-ldls/components/Checkbox/Checkbox.js +1199 -71
- package/lib/cjs/pre-ldls/components/Checkbox/Checkbox.js.map +1 -7
- package/lib/cjs/pre-ldls/components/Checkbox/Checkbox.stories.js +1248 -26
- package/lib/cjs/pre-ldls/components/Checkbox/Checkbox.stories.js.map +1 -7
- package/lib/cjs/pre-ldls/components/Input/Input.js +1160 -47
- package/lib/cjs/pre-ldls/components/Input/Input.js.map +1 -7
- package/lib/cjs/pre-ldls/components/Input/Input.stories.js +1229 -54
- package/lib/cjs/pre-ldls/components/Input/Input.stories.js.map +1 -7
- package/lib/cjs/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.js +1779 -82
- package/lib/cjs/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.js.map +1 -7
- package/lib/cjs/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.stories.js +1840 -42
- package/lib/cjs/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.stories.js.map +1 -7
- package/lib/cjs/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.js +1774 -79
- package/lib/cjs/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.js.map +1 -7
- package/lib/cjs/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.stories.js +1843 -42
- package/lib/cjs/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.stories.js.map +1 -7
- package/lib/cjs/pre-ldls/components/NetworkItem/NetworkItem.js +1759 -69
- package/lib/cjs/pre-ldls/components/NetworkItem/NetworkItem.js.map +1 -7
- package/lib/cjs/pre-ldls/components/NetworkItem/NetworkItem.stories.js +1910 -55
- package/lib/cjs/pre-ldls/components/NetworkItem/NetworkItem.stories.js.map +1 -7
- package/lib/cjs/pre-ldls/components/NetworkList/NetworkList.js +2052 -46
- package/lib/cjs/pre-ldls/components/NetworkList/NetworkList.js.map +1 -7
- package/lib/cjs/pre-ldls/components/NetworkList/NetworkList.stories.js +2105 -59
- package/lib/cjs/pre-ldls/components/NetworkList/NetworkList.stories.js.map +1 -7
- package/lib/cjs/pre-ldls/components/Search/Search.js +1277 -85
- package/lib/cjs/pre-ldls/components/Search/Search.js.map +1 -7
- package/lib/cjs/pre-ldls/components/Search/Search.stories.js +1343 -56
- package/lib/cjs/pre-ldls/components/Search/Search.stories.js.map +1 -7
- package/lib/cjs/pre-ldls/components/Tag/Tag.js +1749 -61
- package/lib/cjs/pre-ldls/components/Tag/Tag.js.map +1 -7
- package/lib/cjs/pre-ldls/components/Tag/Tag.stories.js +1804 -39
- package/lib/cjs/pre-ldls/components/Tag/Tag.stories.js.map +1 -7
- package/lib/cjs/pre-ldls/components/TextInput/TextInput.js +1321 -138
- package/lib/cjs/pre-ldls/components/TextInput/TextInput.js.map +1 -7
- package/lib/cjs/pre-ldls/components/TextInput/TextInput.stories.js +1467 -76
- package/lib/cjs/pre-ldls/components/TextInput/TextInput.stories.js.map +1 -7
- package/lib/cjs/pre-ldls/components/VirtualList/VirtualList.js +356 -142
- package/lib/cjs/pre-ldls/components/VirtualList/VirtualList.js.map +1 -7
- package/lib/cjs/pre-ldls/components/VirtualList/VirtualList.stories.js +575 -166
- package/lib/cjs/pre-ldls/components/VirtualList/VirtualList.stories.js.map +1 -7
- package/lib/cjs/pre-ldls/components/index.js +3221 -33
- package/lib/cjs/pre-ldls/components/index.js.map +1 -7
- package/lib/cjs/pre-ldls/components/sharedStoryBook.js +1787 -60
- package/lib/cjs/pre-ldls/components/sharedStoryBook.js.map +1 -7
- package/lib/cjs/pre-ldls/hooks/index.js +108 -17
- package/lib/cjs/pre-ldls/hooks/index.js.map +1 -7
- package/lib/cjs/pre-ldls/hooks/useDebouncedCallback.js +95 -33
- package/lib/cjs/pre-ldls/hooks/useDebouncedCallback.js.map +1 -7
- package/lib/cjs/pre-ldls/hooks/useDebouncedCallback.stories.js +175 -82
- package/lib/cjs/pre-ldls/hooks/useDebouncedCallback.stories.js.map +1 -7
- package/lib/cjs/pre-ldls/index.js +3245 -18
- package/lib/cjs/pre-ldls/index.js.map +1 -7
- package/lib/cjs/pre-ldls/libs/design-tokens.js +990 -974
- package/lib/cjs/pre-ldls/libs/design-tokens.js.map +1 -7
- package/lib/cjs/pre-ldls/libs/index.js +1126 -90
- package/lib/cjs/pre-ldls/libs/index.js.map +1 -7
- package/lib/cjs/styles/InvertTheme.js +407 -68
- package/lib/cjs/styles/InvertTheme.js.map +1 -7
- package/lib/cjs/styles/Spacing.stories.js +725 -58
- package/lib/cjs/styles/Spacing.stories.js.map +1 -7
- package/lib/cjs/styles/StyleProvider.js +756 -58
- package/lib/cjs/styles/StyleProvider.js.map +1 -7
- package/lib/cjs/styles/breakpoints.stories.js +746 -69
- package/lib/cjs/styles/breakpoints.stories.js.map +1 -7
- package/lib/cjs/styles/global.js +385 -38
- package/lib/cjs/styles/global.js.map +1 -7
- package/lib/cjs/styles/helpers.js +396 -58
- package/lib/cjs/styles/helpers.js.map +1 -7
- package/lib/cjs/styles/index.js +849 -43
- package/lib/cjs/styles/index.js.map +1 -7
- package/lib/cjs/styles/override.js +22 -1
- package/lib/cjs/styles/override.js.map +1 -7
- package/lib/cjs/styles/palettes/colors.stories.js +756 -66
- package/lib/cjs/styles/palettes/colors.stories.js.map +1 -7
- package/lib/cjs/styles/styled/fontFamily.js +411 -30
- package/lib/cjs/styles/styled/fontFamily.js.map +1 -7
- package/lib/cjs/styles/system/gaps.js +91 -25
- package/lib/cjs/styles/system/gaps.js.map +1 -7
- package/lib/cjs/styles/theme.js +259 -172
- package/lib/cjs/styles/theme.js.map +1 -7
- package/package.json +12 -16
- package/lib/cjs/assets/images/images.d.js.map +0 -7
|
@@ -1,191 +1,2335 @@
|
|
|
1
|
+
(() => {
|
|
1
2
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
var __webpack_modules__ = ({
|
|
4
|
+
1215(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
5
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
6
|
+
"default": () => (__rspack_default_export)
|
|
7
|
+
});
|
|
8
|
+
/* import */ var _ledgerhq_icons_ui_reactLegacy__rspack_import_0 = __webpack_require__(9979);
|
|
9
|
+
/* import */ var _ledgerhq_icons_ui_reactLegacy__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(_ledgerhq_icons_ui_reactLegacy__rspack_import_0);
|
|
10
|
+
/* import */ var react__rspack_import_1 = __webpack_require__(2015);
|
|
11
|
+
/* import */ var react__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_1);
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
const iconNames = Array.from(Object.keys(_ledgerhq_icons_ui_reactLegacy__rspack_import_0).reduce((set, rawKey)=>{
|
|
15
|
+
const key = rawKey.replace(/(.+)(Medium)+$/g, "$1");
|
|
16
|
+
if (!set.has(key)) set.add(key);
|
|
17
|
+
return set;
|
|
18
|
+
}, new Set()));
|
|
19
|
+
const Icon = ({ name, size = 16, color = "currentColor", weight = "Medium" })=>{
|
|
20
|
+
const maybeIconName = `${name}${weight}`;
|
|
21
|
+
if (maybeIconName in _ledgerhq_icons_ui_reactLegacy__rspack_import_0) {
|
|
22
|
+
// @ts-expect-error FIXME I don't know how to make you happy ts
|
|
23
|
+
const Component = _ledgerhq_icons_ui_reactLegacy__rspack_import_0[maybeIconName];
|
|
24
|
+
return /*#__PURE__*/ react__rspack_import_1_default().createElement(Component, {
|
|
25
|
+
size: size,
|
|
26
|
+
color: color
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
return null;
|
|
30
|
+
};
|
|
31
|
+
/* export default */ const __rspack_default_export = (Icon);
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
},
|
|
35
|
+
348(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
36
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
37
|
+
"default": () => (__rspack_default_export)
|
|
38
|
+
});
|
|
39
|
+
/* import */ var _styled__rspack_import_1 = __webpack_require__(7680);
|
|
40
|
+
/* import */ var styled_system__rspack_import_0 = __webpack_require__(9351);
|
|
41
|
+
/* import */ var styled_system__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_0);
|
|
42
|
+
/* import */ var _styles_styled_fontFamily__rspack_import_3 = __webpack_require__(3364);
|
|
43
|
+
/* import */ var _styles__rspack_import_2 = __webpack_require__(4368);
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
const uppercase = (0,styled_system__rspack_import_0.system)({
|
|
49
|
+
uppercase: {
|
|
50
|
+
property: "textTransform",
|
|
51
|
+
transform: (value)=>value ? "uppercase" : "none"
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
const Text = _styled__rspack_import_1["default"].span.attrs(({ variant = "body", fontSize, color })=>({
|
|
55
|
+
fontSize: fontSize ? fontSize : variant,
|
|
56
|
+
color: color || "neutral.c100"
|
|
57
|
+
}))`
|
|
58
|
+
font-weight: 500;
|
|
59
|
+
white-space: ${(props)=>props.whiteSpace ?? "normal"};
|
|
60
|
+
${(p)=>_styles__rspack_import_2.textVariantStyle[p.variant || "body"]}
|
|
61
|
+
${(0,styled_system__rspack_import_0.compose)(uppercase, styled_system__rspack_import_0.lineHeight, _styles_styled_fontFamily__rspack_import_3["default"], styled_system__rspack_import_0.fontSize, styled_system__rspack_import_0.textAlign, styled_system__rspack_import_0.fontWeight, styled_system__rspack_import_0.letterSpacing, (0,styled_system__rspack_import_0.system)({
|
|
62
|
+
textOverflow: true
|
|
63
|
+
}))}
|
|
64
|
+
${(p)=>p.textTransform ? `text-transform: ${p.textTransform};` : ""}
|
|
65
|
+
`;
|
|
66
|
+
/* export default */ const __rspack_default_export = (Text);
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
},
|
|
70
|
+
4368(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
71
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
72
|
+
textVariantStyle: () => (textVariantStyle)
|
|
73
|
+
});
|
|
74
|
+
/* import */ var styled_components__rspack_import_0 = __webpack_require__(2770);
|
|
75
|
+
/* import */ var styled_components__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_0);
|
|
76
|
+
|
|
77
|
+
const getFontSource = (name)=>(props)=>{
|
|
78
|
+
const fontsPath = props.fontsPath ?? "assets/fonts";
|
|
79
|
+
const fontName = props.fontMappings && props.fontMappings(name) || `${name}.woff2`;
|
|
80
|
+
return `url("${fontsPath}/${fontName}") format("woff2")`;
|
|
81
|
+
};
|
|
82
|
+
const fontStyles = (0,styled_components__rspack_import_0.css)`
|
|
83
|
+
@font-face {
|
|
84
|
+
font-family: "Inter";
|
|
85
|
+
src: ${getFontSource("Inter-ExtraLight-BETA")};
|
|
86
|
+
font-weight: 100;
|
|
87
|
+
font-style: normal;
|
|
15
88
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
89
|
+
|
|
90
|
+
@font-face {
|
|
91
|
+
font-family: "Inter";
|
|
92
|
+
src: ${getFontSource("Inter-Light-BETA")};
|
|
93
|
+
font-weight: 300;
|
|
94
|
+
font-style: normal;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@font-face {
|
|
98
|
+
font-family: "Inter";
|
|
99
|
+
src: ${getFontSource("Inter-Regular")};
|
|
100
|
+
font-weight: 400;
|
|
101
|
+
font-style: normal;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@font-face {
|
|
105
|
+
font-family: "Inter";
|
|
106
|
+
src: ${getFontSource("Inter-Medium")};
|
|
107
|
+
font-weight: 500;
|
|
108
|
+
font-style: normal;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@font-face {
|
|
112
|
+
font-family: "Inter";
|
|
113
|
+
src: ${getFontSource("Inter-SemiBold")};
|
|
114
|
+
font-weight: 600;
|
|
115
|
+
font-style: normal;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@font-face {
|
|
119
|
+
font-family: "Inter";
|
|
120
|
+
src: ${getFontSource("Inter-ExtraBold")};
|
|
121
|
+
font-weight: 900;
|
|
122
|
+
font-style: normal;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@font-face {
|
|
126
|
+
font-family: "Alpha";
|
|
127
|
+
src: ${getFontSource("HMAlphaMono-Medium")};
|
|
128
|
+
font-weight: 500;
|
|
129
|
+
font-style: normal;
|
|
130
|
+
}
|
|
131
|
+
`;
|
|
132
|
+
const textVariantStyle = {
|
|
133
|
+
h1: {
|
|
134
|
+
fontFamily: "Alpha, Inter, Sans",
|
|
135
|
+
fontWeight: 500,
|
|
136
|
+
"text-transform": "uppercase"
|
|
137
|
+
},
|
|
138
|
+
h1Inter: {
|
|
139
|
+
fontFamily: "Inter, Sans",
|
|
140
|
+
fontWeight: 500,
|
|
141
|
+
"text-transform": "uppercase"
|
|
142
|
+
},
|
|
143
|
+
h2: {
|
|
144
|
+
fontFamily: "Alpha, Inter, Sans",
|
|
145
|
+
fontWeight: 500,
|
|
146
|
+
"text-transform": "uppercase"
|
|
147
|
+
},
|
|
148
|
+
h2Inter: {
|
|
149
|
+
fontFamily: "Inter, Sans",
|
|
150
|
+
fontWeight: 500,
|
|
151
|
+
"text-transform": "uppercase"
|
|
152
|
+
},
|
|
153
|
+
h3: {
|
|
154
|
+
fontFamily: "Alpha, Inter, Sans",
|
|
155
|
+
fontWeight: 500,
|
|
156
|
+
"text-transform": "uppercase"
|
|
157
|
+
},
|
|
158
|
+
h3Inter: {
|
|
159
|
+
fontFamily: "Inter, Sans",
|
|
160
|
+
fontWeight: 500
|
|
161
|
+
},
|
|
162
|
+
h4: {
|
|
163
|
+
fontFamily: "Alpha, Inter, Sans",
|
|
164
|
+
fontWeight: 500,
|
|
165
|
+
"text-transform": "uppercase"
|
|
166
|
+
},
|
|
167
|
+
h4Inter: {
|
|
168
|
+
fontFamily: "Inter, Sans",
|
|
169
|
+
fontWeight: 600
|
|
170
|
+
},
|
|
171
|
+
h5: {
|
|
172
|
+
fontFamily: "Alpha, Inter, Sans",
|
|
173
|
+
fontWeight: 500,
|
|
174
|
+
"text-transform": "uppercase"
|
|
175
|
+
},
|
|
176
|
+
h5Inter: {
|
|
177
|
+
fontFamily: "Inter, Sans",
|
|
178
|
+
fontWeight: 500
|
|
179
|
+
},
|
|
180
|
+
large: {
|
|
181
|
+
fontFamily: "Inter, Sans"
|
|
182
|
+
},
|
|
183
|
+
largeLineHeight: {
|
|
184
|
+
fontFamily: "Inter, Sans",
|
|
185
|
+
lineHeight: 1.7
|
|
186
|
+
},
|
|
187
|
+
body: {
|
|
188
|
+
fontFamily: "Inter, Sans"
|
|
189
|
+
},
|
|
190
|
+
bodyLineHeight: {
|
|
191
|
+
fontFamily: "Inter, Sans",
|
|
192
|
+
lineHeight: 1.7
|
|
193
|
+
},
|
|
194
|
+
paragraph: {
|
|
195
|
+
fontFamily: "Inter, Sans"
|
|
196
|
+
},
|
|
197
|
+
paragraphLineHeight: {
|
|
198
|
+
fontFamily: "Inter, Sans",
|
|
199
|
+
lineHeight: 1.7
|
|
200
|
+
},
|
|
201
|
+
small: {
|
|
202
|
+
fontFamily: "Inter, Sans"
|
|
203
|
+
},
|
|
204
|
+
extraSmall: {
|
|
205
|
+
fontFamily: "Inter, Sans"
|
|
206
|
+
},
|
|
207
|
+
tiny: {
|
|
208
|
+
fontFamily: "Inter, Sans"
|
|
209
|
+
},
|
|
210
|
+
micro: {
|
|
211
|
+
fontFamily: "Inter, Sans"
|
|
212
|
+
},
|
|
213
|
+
subtitle: {
|
|
214
|
+
fontFamily: "Inter, Sans",
|
|
215
|
+
fontWeight: 600,
|
|
216
|
+
"text-transform": "uppercase"
|
|
48
217
|
}
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
},
|
|
222
|
+
3696(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
223
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
224
|
+
"default": () => (__rspack_default_export)
|
|
225
|
+
});
|
|
226
|
+
/* import */ var _styled__rspack_import_0 = __webpack_require__(7680);
|
|
227
|
+
|
|
228
|
+
const FlexBox = _styled__rspack_import_0["default"].div.attrs({
|
|
229
|
+
display: "flex"
|
|
230
|
+
})``;
|
|
231
|
+
/* export default */ const __rspack_default_export = (FlexBox);
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
},
|
|
235
|
+
7680(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
236
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
237
|
+
"default": () => (__rspack_default_export)
|
|
238
|
+
});
|
|
239
|
+
/* import */ var _styles_system_gaps__rspack_import_2 = __webpack_require__(4182);
|
|
240
|
+
/* import */ var styled_components__rspack_import_0 = __webpack_require__(2770);
|
|
241
|
+
/* import */ var styled_components__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_0);
|
|
242
|
+
/* import */ var styled_system__rspack_import_1 = __webpack_require__(9351);
|
|
243
|
+
/* import */ var styled_system__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_1);
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
const baseStyles = (0,styled_system__rspack_import_1.compose)(styled_system__rspack_import_1.flexbox, styled_system__rspack_import_1.space, styled_system__rspack_import_1.position, styled_system__rspack_import_1.color, styled_system__rspack_import_1.layout, styled_system__rspack_import_1.overflow, _styles_system_gaps__rspack_import_2["default"], styled_system__rspack_import_1.border);
|
|
248
|
+
const proxyStyled = new Proxy((styled_components__rspack_import_0_default()), {
|
|
249
|
+
apply (target, thisArg, argumentsList) {
|
|
250
|
+
return styled_components__rspack_import_0_default()(target.apply(thisArg, argumentsList)(baseStyles));
|
|
251
|
+
},
|
|
252
|
+
get (target, property) {
|
|
253
|
+
if (typeof target[property] === "function") {
|
|
254
|
+
return styled_components__rspack_import_0_default()(target[property].apply((styled_components__rspack_import_0_default()), [
|
|
255
|
+
baseStyles
|
|
256
|
+
]));
|
|
257
|
+
}
|
|
258
|
+
return target[property];
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
/* export default */ const __rspack_default_export = (proxyStyled);
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
},
|
|
265
|
+
2136(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
266
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
267
|
+
AccountItem: () => (AccountItem)
|
|
268
|
+
});
|
|
269
|
+
/* import */ var react__rspack_import_0 = __webpack_require__(2015);
|
|
270
|
+
/* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
|
|
271
|
+
/* import */ var styled_components__rspack_import_1 = __webpack_require__(2770);
|
|
272
|
+
/* import */ var styled_components__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_1);
|
|
273
|
+
/* import */ var _assets__rspack_import_9 = __webpack_require__(7304);
|
|
274
|
+
/* import */ var _assets__rspack_import_9_default = /*#__PURE__*/__webpack_require__.n(_assets__rspack_import_9);
|
|
275
|
+
/* import */ var _components__rspack_import_3 = __webpack_require__(348);
|
|
276
|
+
/* import */ var _components__rspack_import_6 = __webpack_require__(3696);
|
|
277
|
+
/* import */ var _components__rspack_import_8 = __webpack_require__(1215);
|
|
278
|
+
/* import */ var _libs__rspack_import_2 = __webpack_require__(1507);
|
|
279
|
+
/* import */ var _Address_Address__rspack_import_5 = __webpack_require__(640);
|
|
280
|
+
/* import */ var _Checkbox_Checkbox__rspack_import_7 = __webpack_require__(5242);
|
|
281
|
+
/* import */ var _Tag_Tag__rspack_import_4 = __webpack_require__(2472);
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
const ICON_BUTTONS_SIZE = "32px";
|
|
291
|
+
// TODO a proper IconButton component that handles hover and pressed states.
|
|
292
|
+
const IconButton = (styled_components__rspack_import_1_default().button)`
|
|
293
|
+
${(0,_libs__rspack_import_2.withTokens)("colors-content-default-default")}
|
|
294
|
+
|
|
295
|
+
all: unset;
|
|
296
|
+
cursor: pointer;
|
|
297
|
+
display: inline-flex;
|
|
298
|
+
align-items: center;
|
|
299
|
+
justify-content: center;
|
|
300
|
+
height: ${ICON_BUTTONS_SIZE};
|
|
301
|
+
width: ${ICON_BUTTONS_SIZE};
|
|
302
|
+
`;
|
|
303
|
+
const Wrapper = (styled_components__rspack_import_1_default().div)`
|
|
304
|
+
${(0,_libs__rspack_import_2.withTokens)("spacing-xxxs", "spacing-xxs", "spacing-xs", "margin-s", "radius-s", "radius-m", "colors-content-default-default", "colors-surface-transparent-hover", "colors-surface-transparent-pressed", "colors-content-subdued-default-default", "colors-surface-transparent-subdued-default")}
|
|
305
|
+
|
|
306
|
+
display: flex;
|
|
307
|
+
cursor: ${(p)=>p.isClickable ? "pointer" : "default"};
|
|
308
|
+
justify-content: space-between;
|
|
309
|
+
align-items: center;
|
|
310
|
+
width: 100%;
|
|
311
|
+
box-sizing: border-box;
|
|
312
|
+
max-width: 100%;
|
|
313
|
+
min-width: 200px;
|
|
314
|
+
overflow: hidden;
|
|
315
|
+
|
|
316
|
+
background-color: ${(p)=>p.backgroundColor ? p.backgroundColor : "transparent"};
|
|
317
|
+
|
|
318
|
+
${(p)=>p.isClickable ? `
|
|
319
|
+
border-radius: var(--radius-m);
|
|
320
|
+
padding: var(--margin-s);
|
|
321
|
+
&:hover {
|
|
322
|
+
background-color: var(--colors-surface-transparent-hover);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
&:active {
|
|
326
|
+
background-color: var(--colors-surface-transparent-pressed);
|
|
327
|
+
}
|
|
328
|
+
` : ""}
|
|
329
|
+
`;
|
|
330
|
+
const ContentContainer = (styled_components__rspack_import_1_default().div)`
|
|
331
|
+
align-items: center;
|
|
332
|
+
display: flex;
|
|
333
|
+
flex: 1;
|
|
334
|
+
gap: var(--spacing-xs);
|
|
335
|
+
justify-content: space-between;
|
|
336
|
+
min-width: 0;
|
|
337
|
+
overflow: hidden;
|
|
338
|
+
width: 100%;
|
|
339
|
+
`;
|
|
340
|
+
const AccountInfoContainer = (styled_components__rspack_import_1_default().div)`
|
|
341
|
+
display: flex;
|
|
342
|
+
flex-direction: column;
|
|
343
|
+
justify-content: center;
|
|
344
|
+
min-width: 0;
|
|
345
|
+
flex: 1;
|
|
346
|
+
overflow: hidden;
|
|
347
|
+
`;
|
|
348
|
+
const NameRow = (styled_components__rspack_import_1_default().div)`
|
|
349
|
+
display: flex;
|
|
350
|
+
flex-direction: row;
|
|
351
|
+
align-items: center;
|
|
352
|
+
margin-bottom: var(--spacing-xxxs);
|
|
353
|
+
min-width: 0;
|
|
354
|
+
width: 100%;
|
|
355
|
+
`;
|
|
356
|
+
const NameDiv = (styled_components__rspack_import_1_default().div)`
|
|
357
|
+
white-space: nowrap;
|
|
358
|
+
overflow: hidden;
|
|
359
|
+
text-overflow: ellipsis;
|
|
360
|
+
min-width: 0;
|
|
361
|
+
flex: 1;
|
|
362
|
+
max-width: fit-content;
|
|
363
|
+
`;
|
|
364
|
+
const TagWrapper = (styled_components__rspack_import_1_default().div)`
|
|
365
|
+
flex-shrink: 0;
|
|
366
|
+
margin-left: var(--spacing-xxs);
|
|
367
|
+
display: flex;
|
|
368
|
+
flex: 1;
|
|
369
|
+
max-width: fit-content;
|
|
370
|
+
align-items: center;
|
|
371
|
+
`;
|
|
372
|
+
const BalanceContainer = (styled_components__rspack_import_1_default().div)`
|
|
373
|
+
display: flex;
|
|
374
|
+
flex-direction: column;
|
|
375
|
+
flex-shrink: 0;
|
|
376
|
+
text-align: right;
|
|
377
|
+
`;
|
|
378
|
+
const AccountItem = ({ onClick, account, rightElement, showIcon = true, backgroundColor })=>{
|
|
379
|
+
const { name, balance, fiatValue, protocol, address, ticker, cryptoId, parentId } = account;
|
|
380
|
+
return /*#__PURE__*/ react__rspack_import_0_default().createElement(Wrapper, {
|
|
381
|
+
backgroundColor: backgroundColor,
|
|
382
|
+
isClickable: Boolean(onClick),
|
|
383
|
+
onClick: onClick
|
|
384
|
+
}, /*#__PURE__*/ react__rspack_import_0_default().createElement(ContentContainer, null, /*#__PURE__*/ react__rspack_import_0_default().createElement(AccountInfoContainer, null, /*#__PURE__*/ react__rspack_import_0_default().createElement(NameRow, null, /*#__PURE__*/ react__rspack_import_0_default().createElement(NameDiv, null, /*#__PURE__*/ react__rspack_import_0_default().createElement(_components__rspack_import_3["default"], {
|
|
385
|
+
"data-testid": `account-row-${name}`,
|
|
386
|
+
variant: "largeLineHeight",
|
|
387
|
+
fontWeight: "semiBold",
|
|
388
|
+
color: "var(--colors-content-default-default)",
|
|
389
|
+
fontSize: "14px",
|
|
390
|
+
lineHeight: "20px",
|
|
391
|
+
title: name,
|
|
392
|
+
style: {
|
|
393
|
+
display: "block",
|
|
394
|
+
whiteSpace: "nowrap",
|
|
395
|
+
overflow: "hidden",
|
|
396
|
+
textOverflow: "ellipsis"
|
|
397
|
+
}
|
|
398
|
+
}, name)), protocol && /*#__PURE__*/ react__rspack_import_0_default().createElement(TagWrapper, null, /*#__PURE__*/ react__rspack_import_0_default().createElement(_Tag_Tag__rspack_import_4.Tag, {
|
|
399
|
+
textTransform: "uppercase"
|
|
400
|
+
}, protocol))), /*#__PURE__*/ react__rspack_import_0_default().createElement(_Address_Address__rspack_import_5.Address, {
|
|
401
|
+
address: address,
|
|
402
|
+
cryptoId: cryptoId,
|
|
403
|
+
ticker: ticker,
|
|
404
|
+
parentId: parentId,
|
|
405
|
+
showIcon: showIcon,
|
|
406
|
+
isShortened: true
|
|
407
|
+
})), /*#__PURE__*/ react__rspack_import_0_default().createElement(BalanceContainer, null, fiatValue && /*#__PURE__*/ react__rspack_import_0_default().createElement(_components__rspack_import_3["default"], {
|
|
408
|
+
fontSize: "14px"
|
|
409
|
+
}, fiatValue), balance && /*#__PURE__*/ react__rspack_import_0_default().createElement(_components__rspack_import_3["default"], {
|
|
410
|
+
fontSize: "12px",
|
|
411
|
+
color: "var(--colors-content-subdued-default-default)"
|
|
412
|
+
}, balance)), rightElement && rightElement.type === "checkbox" && /*#__PURE__*/ react__rspack_import_0_default().createElement(_components__rspack_import_6["default"], {
|
|
413
|
+
"data-testid": "right-element-checkbox",
|
|
414
|
+
"aria-label": "Checkbox account item"
|
|
415
|
+
}, /*#__PURE__*/ react__rspack_import_0_default().createElement(_Checkbox_Checkbox__rspack_import_7.Checkbox, {
|
|
416
|
+
...rightElement.checkbox,
|
|
417
|
+
size: 20
|
|
418
|
+
})), rightElement && rightElement.type === "arrow" && /*#__PURE__*/ react__rspack_import_0_default().createElement(_components__rspack_import_6["default"], {
|
|
419
|
+
"data-testid": "right-element-arrow-icon",
|
|
420
|
+
"aria-label": "Arrow account item"
|
|
421
|
+
}, /*#__PURE__*/ react__rspack_import_0_default().createElement(_components__rspack_import_8["default"], {
|
|
422
|
+
name: "ChevronRight",
|
|
423
|
+
size: 24
|
|
424
|
+
})), rightElement && rightElement.type === "edit" && /*#__PURE__*/ react__rspack_import_0_default().createElement(IconButton, {
|
|
425
|
+
"aria-label": "Edit account item",
|
|
426
|
+
"data-testid": "right-element-edit-icon",
|
|
427
|
+
onClick: (e)=>{
|
|
428
|
+
e.stopPropagation();
|
|
429
|
+
if (rightElement?.type === "edit") {
|
|
430
|
+
rightElement.onClick();
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}, /*#__PURE__*/ react__rspack_import_0_default().createElement(_assets__rspack_import_9.PenEdit, {
|
|
434
|
+
size: "S",
|
|
435
|
+
color: "var(--colors-content-default-default)"
|
|
436
|
+
}))));
|
|
437
|
+
};
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
},
|
|
441
|
+
640(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
442
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
443
|
+
Address: () => (Address)
|
|
444
|
+
});
|
|
445
|
+
/* import */ var react__rspack_import_0 = __webpack_require__(2015);
|
|
446
|
+
/* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
|
|
447
|
+
/* import */ var _components__rspack_import_5 = __webpack_require__(348);
|
|
448
|
+
/* import */ var styled_components__rspack_import_1 = __webpack_require__(2770);
|
|
449
|
+
/* import */ var styled_components__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_1);
|
|
450
|
+
/* import */ var _libs__rspack_import_3 = __webpack_require__(1507);
|
|
451
|
+
/* import */ var _ledgerhq_crypto_icons__rspack_import_2 = __webpack_require__(4505);
|
|
452
|
+
/* import */ var _ledgerhq_crypto_icons__rspack_import_2_default = /*#__PURE__*/__webpack_require__.n(_ledgerhq_crypto_icons__rspack_import_2);
|
|
453
|
+
/* import */ var _formatAddress__rspack_import_4 = __webpack_require__(3165);
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
const Wrapper = (styled_components__rspack_import_1_default().div)`
|
|
461
|
+
${(0,_libs__rspack_import_3.withTokens)("spacing-xxxs", "colors-content-subdued-default-default")}
|
|
462
|
+
|
|
463
|
+
display: flex;
|
|
464
|
+
flex-direction: row;
|
|
465
|
+
align-items: center;
|
|
466
|
+
`;
|
|
467
|
+
const Address = ({ address, showIcon, cryptoId, ticker, parentId, isShortened = false })=>{
|
|
468
|
+
const formattedAddress = isShortened ? (0,_formatAddress__rspack_import_4.formatAddress)(address) : address;
|
|
469
|
+
return /*#__PURE__*/ react__rspack_import_0_default().createElement(Wrapper, null, /*#__PURE__*/ react__rspack_import_0_default().createElement(_components__rspack_import_5["default"], {
|
|
470
|
+
marginRight: "var(--spacing-xxxs)",
|
|
471
|
+
fontSize: "12px",
|
|
472
|
+
color: "var(--colors-content-subdued-default-default)"
|
|
473
|
+
}, formattedAddress), showIcon && /*#__PURE__*/ react__rspack_import_0_default().createElement(_ledgerhq_crypto_icons__rspack_import_2.CryptoIcon, {
|
|
474
|
+
ledgerId: cryptoId,
|
|
475
|
+
network: parentId,
|
|
476
|
+
ticker: ticker,
|
|
477
|
+
size: "20px"
|
|
478
|
+
}));
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
},
|
|
483
|
+
3165(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
484
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
485
|
+
formatAddress: () => (formatAddress)
|
|
486
|
+
});
|
|
487
|
+
/**
|
|
488
|
+
* Format an address by showing only parts of it
|
|
489
|
+
*
|
|
490
|
+
* @param address - The address to format
|
|
491
|
+
* @param options - Configuration options
|
|
492
|
+
* @param options.prefixLength - Number of characters to show at the start (default: 5)
|
|
493
|
+
* @param options.suffixLength - Number of characters to show at the end (default: 5)
|
|
494
|
+
* @param options.separator - String to use as separator (default: "...")
|
|
495
|
+
* @param options.threshold - Minimum length before truncating (default: calculated from other params)
|
|
496
|
+
* @returns Formatted address string
|
|
497
|
+
*/ const formatAddress = (address, options = {})=>{
|
|
498
|
+
const { prefixLength = 5, suffixLength = 5, separator = "...", threshold = prefixLength + separator.length + suffixLength } = options;
|
|
499
|
+
if (!address || address.length <= threshold) {
|
|
500
|
+
return address;
|
|
501
|
+
}
|
|
502
|
+
return `${address.slice(0, prefixLength)}${separator}${address.slice(-suffixLength)}`;
|
|
503
|
+
};
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
},
|
|
507
|
+
5242(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
508
|
+
|
|
509
|
+
// EXPORTS
|
|
510
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
511
|
+
Checkbox: () => (/* binding */ Checkbox)
|
|
512
|
+
});
|
|
513
|
+
|
|
514
|
+
// EXTERNAL MODULE: external "react"
|
|
515
|
+
var external_react_ = __webpack_require__(2015);
|
|
516
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
517
|
+
// EXTERNAL MODULE: external "styled-components"
|
|
518
|
+
var external_styled_components_ = __webpack_require__(2770);
|
|
519
|
+
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
520
|
+
;// CONCATENATED MODULE: external "@ledgerhq/icons-ui/reactLegacy/CheckAloneMedium"
|
|
521
|
+
const CheckAloneMedium_namespaceObject = require("@ledgerhq/icons-ui/reactLegacy/CheckAloneMedium");
|
|
522
|
+
var CheckAloneMedium_default = /*#__PURE__*/__webpack_require__.n(CheckAloneMedium_namespaceObject);
|
|
523
|
+
;// CONCATENATED MODULE: external "react-dom/server"
|
|
524
|
+
const server_namespaceObject = require("react-dom/server");
|
|
525
|
+
// EXTERNAL MODULE: ./src/pre-ldls/libs/index.ts + 1 modules
|
|
526
|
+
var libs = __webpack_require__(1507);
|
|
527
|
+
;// CONCATENATED MODULE: ./src/pre-ldls/components/Checkbox/Checkbox.tsx
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
const Icon = ()=>/*#__PURE__*/ external_react_default().cloneElement(CheckAloneMedium_default()({
|
|
534
|
+
size: 13,
|
|
535
|
+
color: "currentColor"
|
|
536
|
+
}), {
|
|
537
|
+
// the xmlns attribute is required to properly display the checkbox
|
|
538
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
539
|
+
});
|
|
540
|
+
const CheckMarkIcon = encodeURIComponent((0,server_namespaceObject.renderToStaticMarkup)(/*#__PURE__*/ external_react_default().createElement(Icon, null)));
|
|
541
|
+
const Input = (external_styled_components_default()).input`
|
|
542
|
+
background-color: transparent;
|
|
543
|
+
|
|
544
|
+
border-radius: ${(p)=>`${p.theme.radii[1]}px`};
|
|
545
|
+
position: relative;
|
|
546
|
+
|
|
547
|
+
min-width: ${(p)=>p.size ? `${p.size}px` : `${p.theme.space[7]}px`};
|
|
548
|
+
height: ${(p)=>p.size ? `${p.size}px` : `${p.theme.space[7]}px`};
|
|
549
|
+
appearance: none;
|
|
550
|
+
border: 1px solid ${(props)=>props.theme.colors.opacityDefault.c30};
|
|
551
|
+
box-shadow: none;
|
|
552
|
+
|
|
553
|
+
&:checked {
|
|
554
|
+
background-color: currentColor;
|
|
555
|
+
border-color: currentColor;
|
|
49
556
|
}
|
|
557
|
+
|
|
558
|
+
&:checked::after {
|
|
559
|
+
content: " ";
|
|
560
|
+
width: ${(p)=>p.size ? `${p.size}px` : `${p.theme.space[7]}px`};
|
|
561
|
+
height: ${(p)=>p.size ? `${p.size}px` : `${p.theme.space[7]}px`};
|
|
562
|
+
display: inline-block;
|
|
563
|
+
color: ${(props)=>props.theme.colors.neutral.c00};
|
|
564
|
+
|
|
565
|
+
background-image: url("data:image/svg+xml,${CheckMarkIcon}");
|
|
566
|
+
background-position: center;
|
|
567
|
+
background-repeat: no-repeat;
|
|
568
|
+
|
|
569
|
+
/* Trick to center the check mark by taking into account the border */
|
|
570
|
+
position: absolute;
|
|
571
|
+
top: -1px;
|
|
572
|
+
left: -1px;
|
|
573
|
+
}
|
|
574
|
+
`;
|
|
575
|
+
const Container = (external_styled_components_default()).div`
|
|
576
|
+
${(0,libs.withTokens)("colors-background-active")}
|
|
577
|
+
|
|
578
|
+
color: var(--colors-background-active);
|
|
579
|
+
|
|
580
|
+
display: inline-flex;
|
|
581
|
+
column-gap: ${(p)=>p.theme.space[5]}px;
|
|
582
|
+
align-items: center;
|
|
583
|
+
cursor: pointer;
|
|
584
|
+
`;
|
|
585
|
+
const Checkbox = ({ isDisabled = false, isChecked, name, onChange, size })=>/*#__PURE__*/ external_react_default().createElement(Container, {
|
|
586
|
+
"data-disabled": isDisabled
|
|
587
|
+
}, /*#__PURE__*/ external_react_default().createElement(Input, {
|
|
588
|
+
type: "checkbox",
|
|
589
|
+
name: name,
|
|
590
|
+
id: name,
|
|
591
|
+
checked: isChecked,
|
|
592
|
+
disabled: isDisabled,
|
|
593
|
+
onChange: (e)=>{
|
|
594
|
+
// TODO Checkbox should be an uncontrolled component that exposes the event onChange.
|
|
595
|
+
// (leave stopPropagation to the parent)
|
|
596
|
+
e.stopPropagation();
|
|
597
|
+
onChange(!isChecked);
|
|
598
|
+
},
|
|
599
|
+
size: size
|
|
600
|
+
}));
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
},
|
|
604
|
+
2472(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
605
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
606
|
+
Tag: () => (Tag)
|
|
607
|
+
});
|
|
608
|
+
/* import */ var react__rspack_import_0 = __webpack_require__(2015);
|
|
609
|
+
/* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
|
|
610
|
+
/* import */ var _components__rspack_import_3 = __webpack_require__(348);
|
|
611
|
+
/* import */ var _libs__rspack_import_2 = __webpack_require__(1507);
|
|
612
|
+
/* import */ var styled_components__rspack_import_1 = __webpack_require__(2770);
|
|
613
|
+
/* import */ var styled_components__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_1);
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
const Wrapper = (styled_components__rspack_import_1_default().div)`
|
|
619
|
+
${(0,_libs__rspack_import_2.withTokens)("colors-surface-transparent-subdued-default", "colors-content-subdued-default-default", "radius-xs", "spacing-xxxs")}
|
|
620
|
+
|
|
621
|
+
padding: ${({ $spacing })=>$spacing === "sm" ? "1px" : "2px"} var(--spacing-xxxs);
|
|
622
|
+
border-radius: var(--radius-xs);
|
|
623
|
+
display: inline-flex;
|
|
624
|
+
background-color: var(--colors-surface-transparent-subdued-default);
|
|
625
|
+
flex-shrink: 0;
|
|
626
|
+
`;
|
|
627
|
+
const Tag = ({ textTransform = "none", spacing = "sm", children })=>{
|
|
628
|
+
return /*#__PURE__*/ react__rspack_import_0_default().createElement(Wrapper, {
|
|
629
|
+
"data-testid": "tag",
|
|
630
|
+
$spacing: spacing
|
|
631
|
+
}, /*#__PURE__*/ react__rspack_import_0_default().createElement(_components__rspack_import_3["default"], {
|
|
632
|
+
color: "var(--colors-content-subdued-default-default)",
|
|
633
|
+
fontSize: "10px",
|
|
634
|
+
lineHeight: "16px",
|
|
635
|
+
textTransform: textTransform
|
|
636
|
+
}, children));
|
|
637
|
+
};
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
},
|
|
641
|
+
8112(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
642
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
643
|
+
dark: () => (dark),
|
|
644
|
+
light: () => (light),
|
|
645
|
+
spacing: () => (spacing)
|
|
646
|
+
});
|
|
647
|
+
// From https://github.com/LedgerHQ/ldls/blob/main/libs/design-tokens/src/lib/design-tokens.ts :
|
|
648
|
+
const spacing = {
|
|
649
|
+
"spacing-xs": "8px",
|
|
650
|
+
"spacing-s": "16px",
|
|
651
|
+
"spacing-m": "24px",
|
|
652
|
+
"spacing-l": "32px",
|
|
653
|
+
"spacing-xl": "40px",
|
|
654
|
+
"spacing-xxs": "12px",
|
|
655
|
+
"spacing-xxxs": "4px",
|
|
656
|
+
"spacing-none": "0px",
|
|
657
|
+
"marging-xs": "8px",
|
|
658
|
+
"marging-s": "16px",
|
|
659
|
+
"marging-m": "24px",
|
|
660
|
+
"marging-l": "32px"
|
|
661
|
+
};
|
|
662
|
+
const light = {
|
|
663
|
+
"background-default": "#ffffff",
|
|
664
|
+
"background-constant-black": "#000000",
|
|
665
|
+
"background-constant-white": "#ffffff",
|
|
666
|
+
"background-backdrop-default": "#0000004d",
|
|
667
|
+
"background-inverted": "#000000",
|
|
668
|
+
"background-drawer-default": "#ffffff",
|
|
669
|
+
"surface-brand-primary-default": "#d4a0ff",
|
|
670
|
+
"surface-brand-primary-hover": "#b380dd",
|
|
671
|
+
"surface-brand-primary-pressed": "#7e4ea5",
|
|
672
|
+
"surface-default-default": "#ffffff",
|
|
673
|
+
"surface-default-hover": "#fbfbfb",
|
|
674
|
+
"surface-default-pressed": "#f4f4f4",
|
|
675
|
+
"surface-default-inverted-default": "#000000",
|
|
676
|
+
"surface-default-inverted-hover": "#272727",
|
|
677
|
+
"surface-default-inverted-pressed": "#4d4d4d",
|
|
678
|
+
"surface-constant-white": "#ffffff",
|
|
679
|
+
"surface-constant-black": "#000000",
|
|
680
|
+
"surface-status-error-default": "#c242441a",
|
|
681
|
+
"surface-status-error-strong-default": "#c24244",
|
|
682
|
+
"surface-status-error-strong-hover": "#852e2f",
|
|
683
|
+
"surface-status-error-strong-pressed": "#702e2f",
|
|
684
|
+
"surface-status-warning-default": "#d38b201a",
|
|
685
|
+
"surface-status-warning-strong-default": "#d38b20",
|
|
686
|
+
"surface-status-warning-strong-hover": "#885a14",
|
|
687
|
+
"surface-status-warning-strong-pressed": "#63420f",
|
|
688
|
+
"surface-status-success-default": "#47883a1a",
|
|
689
|
+
"surface-status-success-strong-default": "#47883a",
|
|
690
|
+
"surface-status-success-strong-hover": "#33572e",
|
|
691
|
+
"surface-status-success-strong-pressed": "#2c4828",
|
|
692
|
+
"surface-transparent-default": "#00000000",
|
|
693
|
+
"surface-transparent-hover": "#0000001a",
|
|
694
|
+
"surface-transparent-pressed": "#00000033",
|
|
695
|
+
"surface-transparent-inverted-default": "#ffffff00",
|
|
696
|
+
"surface-transparent-inverted-hover": "#ffffff1a",
|
|
697
|
+
"surface-transparent-inverted-pressed": "#ffffff33",
|
|
698
|
+
"surface-transparent-subdued-default": "#0000000d",
|
|
699
|
+
"surface-transparent-subdued-inverted-default": "#ffffff1a",
|
|
700
|
+
"surface-transparent-subdued-inverted-hover": "#ffffff33",
|
|
701
|
+
"surface-transparent-subdued-inverted-pressed": "#ffffff4d",
|
|
702
|
+
"surface-transparent-subdued-inverted-disabled": "#ffffff1a",
|
|
703
|
+
"surface-transparent-subdued-hover": "#0000001a",
|
|
704
|
+
"surface-transparent-subdued-pressed": "#00000033",
|
|
705
|
+
"surface-transparent-subdued-disabled": "#0000000d",
|
|
706
|
+
"surface-subdued-default": "#f4f4f4",
|
|
707
|
+
"surface-subdued-hover": "#e8e8e8",
|
|
708
|
+
"surface-subdued-pressed": "#d5d5d5",
|
|
709
|
+
"surface-disabled": "#f4f4f4",
|
|
710
|
+
"surface-interactive-default": "#ffffff",
|
|
711
|
+
"surface-interactive-hover": "#fbfbfb",
|
|
712
|
+
"surface-interactive-pressed": "#f4f4f4",
|
|
713
|
+
"surface-interactive-selected-default": "#4d4d4d",
|
|
714
|
+
"surface-interactive-selected-hover": "#272727",
|
|
715
|
+
"surface-interactive-selected-pressed": "#000000",
|
|
716
|
+
"surface-_native-default": "#f7f7f7",
|
|
717
|
+
"surface-dark-default": "#c1c1c1",
|
|
718
|
+
"surface-dark-hover": "#767676",
|
|
719
|
+
"surface-dark-pressed": "#6a6a6a",
|
|
720
|
+
"surface-active-default": "#d4a0ff",
|
|
721
|
+
"surface-active-hover": "#b380dd",
|
|
722
|
+
"surface-active-pressed": "#7e4ea5",
|
|
723
|
+
"content-default-default": "#000000",
|
|
724
|
+
"content-default-inverted-default": "#ffffff",
|
|
725
|
+
"content-constant-white": "#ffffff",
|
|
726
|
+
"content-constant-black": "#000000",
|
|
727
|
+
"content-constant-grey": "#e8e8e8",
|
|
728
|
+
"content-status-error-default": "#c24244",
|
|
729
|
+
"content-status-error-hover": "#a43234",
|
|
730
|
+
"content-status-error-pressed": "#852e2f",
|
|
731
|
+
"content-status-warning-default": "#ae731a",
|
|
732
|
+
"content-status-success-color": "#47883a",
|
|
733
|
+
"content-on-primary-default": "#000000",
|
|
734
|
+
"content-on-primary-hover": "#ffffffcc",
|
|
735
|
+
"content-on-primary-pressed": "#ffffffb3",
|
|
736
|
+
"content-on-primary-disabled": "#ffffff99",
|
|
737
|
+
"content-on-secondary-default": "#ffffff",
|
|
738
|
+
"content-on-secondary-hover": "#ffffff",
|
|
739
|
+
"content-on-secondary-pressed": "#ffffff",
|
|
740
|
+
"content-on-secondary-disabled": "#ffffff",
|
|
741
|
+
"content-disabled": "#c1c1c1",
|
|
742
|
+
"content-interactive-default-default": "#000000",
|
|
743
|
+
"content-interactive-default-hover": "#272727",
|
|
744
|
+
"content-interactive-default-pressed": "#4d4d4d",
|
|
745
|
+
"content-interactive-inverted-default": "#ffffff",
|
|
746
|
+
"content-interactive-inverted-hover": "#fbfbfb",
|
|
747
|
+
"content-interactive-inverted-pressed": "#f4f4f4",
|
|
748
|
+
"content-subdued-default-default": "#6a6a6a",
|
|
749
|
+
"content-subdued-inverted-default": "#d5d5d5",
|
|
750
|
+
"content-_native-default": "#007aff",
|
|
751
|
+
"content-light-default-default": "#e8e8e8",
|
|
752
|
+
"content-light-inverted-default": "#6a6a6a",
|
|
753
|
+
"border-default-default": "#000000",
|
|
754
|
+
"border-default-inverted-default": "#ffffff",
|
|
755
|
+
"border-default-inverted-disabled": "#272727",
|
|
756
|
+
"border-constant-white": "#ffffff",
|
|
757
|
+
"border-constant-black": "#000000",
|
|
758
|
+
"border-status-error-default": "#c24244",
|
|
759
|
+
"border-status-error-hover": "#a43234",
|
|
760
|
+
"border-status-error-pressed": "#852e2f",
|
|
761
|
+
"border-status-warning-default": "#d38b20",
|
|
762
|
+
"border-status-success-default": "#47883a",
|
|
763
|
+
"border-on-primary-default": "#ffffff99",
|
|
764
|
+
"border-on-primary-disabled": "#ffffff99",
|
|
765
|
+
"border-on-secondary-default": "#ffffff",
|
|
766
|
+
"border-on-secondary-disabled": "#ffffff",
|
|
767
|
+
"border-disabled-default": "#e8e8e8",
|
|
768
|
+
"border-disabled-inverted": "#272727",
|
|
769
|
+
"border-light-default": "#e8e8e8",
|
|
770
|
+
"border-subdued-default-default": "#c1c1c1",
|
|
771
|
+
"border-subdued-default-hover": "#767676",
|
|
772
|
+
"border-subdued-inverted-default": "#4d4d4d",
|
|
773
|
+
"border-interactive-default": "#000000",
|
|
774
|
+
"border-interactive-hover": "#272727",
|
|
775
|
+
"border-interactive-pressed": "#4d4d4d",
|
|
776
|
+
"border-focus-default": "#7e4ea5",
|
|
777
|
+
"border-active-default": "#d4a0ff",
|
|
778
|
+
"border-active-hover": "#b380dd",
|
|
779
|
+
"border-active-pressed": "#7e4ea5",
|
|
780
|
+
"crypto-bitcoin-sv": "#eab300",
|
|
781
|
+
"crypto-bitcoin-gold": "#152569",
|
|
782
|
+
"crypto-zcash": "#f4b728",
|
|
783
|
+
"crypto-yieldly": "#f3b732",
|
|
784
|
+
"crypto-uni": "#f04086",
|
|
785
|
+
"crypto-uniswap": "#ff007a",
|
|
786
|
+
"crypto-bitcoin-cash": "#0ac18e",
|
|
787
|
+
"crypto-tezos": "#2c7df7",
|
|
788
|
+
"crypto-sol": "#9945ff",
|
|
789
|
+
"crypto-xrp": "#333333",
|
|
790
|
+
"crypto-tron": "#ff060a",
|
|
791
|
+
"crypto-sats": "#ff8b00",
|
|
792
|
+
"crypto-polkadot": "#e6007a",
|
|
793
|
+
"crypto-bitcoin": "#f7931a",
|
|
794
|
+
"crypto-compound": "#00d395",
|
|
795
|
+
"crypto-peercoin": "#3cb054",
|
|
796
|
+
"crypto-omg-network": "#000000",
|
|
797
|
+
"crypto-near": "#1c1d1f",
|
|
798
|
+
"crypto-stellar": "#000000",
|
|
799
|
+
"crypto-nano": "#5d8eb2",
|
|
800
|
+
"crypto-nimiq": "#f8b425",
|
|
801
|
+
"crypto-multiverse-x": "#23f7dd",
|
|
802
|
+
"crypto-ethereum": "#454a75",
|
|
803
|
+
"crypto-okb": "#2d60e0",
|
|
804
|
+
"crypto-tether-usdt": "#00a478",
|
|
805
|
+
"crypto-avax": "#e84142",
|
|
806
|
+
"crypto-bgb": "#00e0ff",
|
|
807
|
+
"crypto-usdc": "#f04086",
|
|
808
|
+
"crypto-monero": "#f26822",
|
|
809
|
+
"crypto-tkx": "#fd6a1f",
|
|
810
|
+
"crypto-huobi": "#357ce1",
|
|
811
|
+
"crypto-pivx": "#5c4c7c",
|
|
812
|
+
"crypto-cardano": "#0033ad",
|
|
813
|
+
"crypto-dydx": "#6966ff",
|
|
814
|
+
"crypto-cro": "#002d74",
|
|
815
|
+
"crypto-hnt": "#474dff",
|
|
816
|
+
"crypto-hedera": "#000000",
|
|
817
|
+
"crypto-ftm": "#1969ff",
|
|
818
|
+
"crypto-flr": "#e62058",
|
|
819
|
+
"crypto-bat": "#ff5000",
|
|
820
|
+
"crypto-ethereum-classic": "#0b8311",
|
|
821
|
+
"crypto-bincance": "#f5bc00",
|
|
822
|
+
"crypto-ethergem": "#4a4ab6",
|
|
823
|
+
"crypto-iota": "#000000",
|
|
824
|
+
"crypto-chainlink": "#2a5ada",
|
|
825
|
+
"crypto-dym": "#f1e1d4",
|
|
826
|
+
"crypto-eos": "#000000",
|
|
827
|
+
"crypto-waves": "#0055ff",
|
|
828
|
+
"crypto-polygon": "#8247e5",
|
|
829
|
+
"crypto-celo": "#fcff52",
|
|
830
|
+
"crypto-dogecoin": "#c3a634",
|
|
831
|
+
"crypto-algorand": "#00a478",
|
|
832
|
+
"crypto-cosmos": "#2e3148",
|
|
833
|
+
"crypto-digibyte": "#0066cc",
|
|
834
|
+
"crypto-pirl": "#357ce1",
|
|
835
|
+
"crypto-eng": "#2f2f2f",
|
|
836
|
+
"crypto-decred": "#2970ff",
|
|
837
|
+
"crypto-dash": "#008ce7",
|
|
838
|
+
"crypto-xin": "#1eb5fa",
|
|
839
|
+
"crypto-tusd": "#1a5aff",
|
|
840
|
+
"crypto-litecoin": "#345d9d",
|
|
841
|
+
"crypto-komodo": "#41ead4",
|
|
842
|
+
"crypto-elrond": "#000000",
|
|
843
|
+
"crypto-osmo": "#302dbb",
|
|
844
|
+
"crypto-leo": "#000000",
|
|
845
|
+
"crypto-bytecoin": "#f04086",
|
|
846
|
+
"crypto-aion": "#212529",
|
|
847
|
+
"crypto-dai": "#f5ac37",
|
|
848
|
+
"crypto-neo": "#7dd224"
|
|
849
|
+
};
|
|
850
|
+
const dark = {
|
|
851
|
+
"background-default": "#000000",
|
|
852
|
+
"background-constant-black": "#000000",
|
|
853
|
+
"background-constant-white": "#ffffff",
|
|
854
|
+
"background-backdrop-default": "#0000004d",
|
|
855
|
+
"background-inverted": "#ffffff",
|
|
856
|
+
"background-drawer-default": "#191919",
|
|
857
|
+
"surface-brand-primary-default": "#d4a0ff",
|
|
858
|
+
"surface-brand-primary-hover": "#ddb3ff",
|
|
859
|
+
"surface-brand-primary-pressed": "#e5c6ff",
|
|
860
|
+
"surface-default-default": "#000000",
|
|
861
|
+
"surface-default-hover": "#191919",
|
|
862
|
+
"surface-default-pressed": "#272727",
|
|
863
|
+
"surface-default-inverted-default": "#ffffff",
|
|
864
|
+
"surface-default-inverted-hover": "#e1e1e1",
|
|
865
|
+
"surface-default-inverted-pressed": "#c3c3c3",
|
|
866
|
+
"surface-constant-white": "#ffffff",
|
|
867
|
+
"surface-constant-black": "#000000",
|
|
868
|
+
"surface-status-error-default": "#f872741a",
|
|
869
|
+
"surface-status-error-strong-default": "#f87274",
|
|
870
|
+
"surface-status-error-strong-hover": "#fec8c9",
|
|
871
|
+
"surface-status-error-strong-pressed": "#fee1e2",
|
|
872
|
+
"surface-status-warning-default": "#ffbd421a",
|
|
873
|
+
"surface-status-warning-strong-default": "#ffbd42",
|
|
874
|
+
"surface-status-warning-strong-hover": "#ffe7ac",
|
|
875
|
+
"surface-status-warning-strong-pressed": "#fff3d5",
|
|
876
|
+
"surface-status-success-default": "#6ec85c1a",
|
|
877
|
+
"surface-status-success-strong-default": "#6ec85c",
|
|
878
|
+
"surface-status-success-strong-hover": "#cbeec4",
|
|
879
|
+
"surface-status-success-strong-pressed": "#e6f7e1",
|
|
880
|
+
"surface-transparent-default": "#ffffff00",
|
|
881
|
+
"surface-transparent-hover": "#ffffff1a",
|
|
882
|
+
"surface-transparent-pressed": "#ffffff33",
|
|
883
|
+
"surface-transparent-inverted-default": "#00000000",
|
|
884
|
+
"surface-transparent-inverted-hover": "#0000001a",
|
|
885
|
+
"surface-transparent-inverted-pressed": "#00000033",
|
|
886
|
+
"surface-transparent-subdued-default": "#ffffff1a",
|
|
887
|
+
"surface-transparent-subdued-inverted-default": "#0000000d",
|
|
888
|
+
"surface-transparent-subdued-inverted-hover": "#0000001a",
|
|
889
|
+
"surface-transparent-subdued-inverted-pressed": "#00000033",
|
|
890
|
+
"surface-transparent-subdued-inverted-disabled": "#0000000d",
|
|
891
|
+
"surface-transparent-subdued-hover": "#ffffff33",
|
|
892
|
+
"surface-transparent-subdued-pressed": "#ffffff4d",
|
|
893
|
+
"surface-transparent-subdued-disabled": "#ffffff1a",
|
|
894
|
+
"surface-subdued-default": "#272727",
|
|
895
|
+
"surface-subdued-hover": "#3c3c3c",
|
|
896
|
+
"surface-subdued-pressed": "#565656",
|
|
897
|
+
"surface-disabled": "#272727",
|
|
898
|
+
"surface-interactive-default": "#000000",
|
|
899
|
+
"surface-interactive-hover": "#191919",
|
|
900
|
+
"surface-interactive-pressed": "#272727",
|
|
901
|
+
"surface-interactive-selected-default": "#c3c3c3",
|
|
902
|
+
"surface-interactive-selected-hover": "#e1e1e1",
|
|
903
|
+
"surface-interactive-selected-pressed": "#ffffff",
|
|
904
|
+
"surface-_native-default": "#c3c3c3",
|
|
905
|
+
"surface-dark-default": "#717070",
|
|
906
|
+
"surface-dark-hover": "#848484",
|
|
907
|
+
"surface-dark-pressed": "#9c9c9c",
|
|
908
|
+
"surface-active-default": "#d4a0ff",
|
|
909
|
+
"surface-active-hover": "#ddb3ff",
|
|
910
|
+
"surface-active-pressed": "#e5c6ff",
|
|
911
|
+
"content-default-default": "#ffffff",
|
|
912
|
+
"content-default-inverted-default": "#000000",
|
|
913
|
+
"content-constant-white": "#ffffff",
|
|
914
|
+
"content-constant-black": "#000000",
|
|
915
|
+
"content-constant-grey": "#e1e1e1",
|
|
916
|
+
"content-status-error-default": "#f87274",
|
|
917
|
+
"content-status-error-hover": "#fca6a7",
|
|
918
|
+
"content-status-error-pressed": "#fec8c9",
|
|
919
|
+
"content-status-warning-default": "#ffd373",
|
|
920
|
+
"content-status-success-color": "#6ec85c",
|
|
921
|
+
"content-on-primary-default": "#000000",
|
|
922
|
+
"content-on-primary-hover": "#000000cc",
|
|
923
|
+
"content-on-primary-pressed": "#000000b3",
|
|
924
|
+
"content-on-primary-disabled": "#00000099",
|
|
925
|
+
"content-on-secondary-default": "#ffffff",
|
|
926
|
+
"content-on-secondary-hover": "#ffffff",
|
|
927
|
+
"content-on-secondary-pressed": "#ffffff",
|
|
928
|
+
"content-on-secondary-disabled": "#ffffff",
|
|
929
|
+
"content-disabled": "#565656",
|
|
930
|
+
"content-interactive-default-default": "#ffffff",
|
|
931
|
+
"content-interactive-default-hover": "#e1e1e1",
|
|
932
|
+
"content-interactive-default-pressed": "#c3c3c3",
|
|
933
|
+
"content-interactive-inverted-default": "#000000",
|
|
934
|
+
"content-interactive-inverted-hover": "#191919",
|
|
935
|
+
"content-interactive-inverted-pressed": "#272727",
|
|
936
|
+
"content-subdued-default-default": "#9c9c9c",
|
|
937
|
+
"content-subdued-inverted-default": "#565656",
|
|
938
|
+
"content-_native-default": "#007aff",
|
|
939
|
+
"content-light-default-default": "#3c3c3c",
|
|
940
|
+
"content-light-inverted-default": "#9c9c9c",
|
|
941
|
+
"border-default-default": "#ffffff",
|
|
942
|
+
"border-default-inverted-default": "#000000",
|
|
943
|
+
"border-default-inverted-disabled": "#9c9c9c",
|
|
944
|
+
"border-constant-white": "#ffffff",
|
|
945
|
+
"border-constant-black": "#000000",
|
|
946
|
+
"border-status-error-default": "#f87274",
|
|
947
|
+
"border-status-error-hover": "#fca6a7",
|
|
948
|
+
"border-status-error-pressed": "#fec8c9",
|
|
949
|
+
"border-status-warning-default": "#ffbd42",
|
|
950
|
+
"border-status-success-default": "#6ec85c",
|
|
951
|
+
"border-on-primary-default": "#00000099",
|
|
952
|
+
"border-on-primary-disabled": "#00000099",
|
|
953
|
+
"border-on-secondary-default": "#ffffff",
|
|
954
|
+
"border-on-secondary-disabled": "#ffffff",
|
|
955
|
+
"border-disabled-default": "#191919",
|
|
956
|
+
"border-disabled-inverted": "#9c9c9c",
|
|
957
|
+
"border-light-default": "#3c3c3c",
|
|
958
|
+
"border-subdued-default-default": "#717070",
|
|
959
|
+
"border-subdued-default-hover": "#848484",
|
|
960
|
+
"border-subdued-inverted-default": "#c3c3c3",
|
|
961
|
+
"border-interactive-default": "#ffffff",
|
|
962
|
+
"border-interactive-hover": "#e1e1e1",
|
|
963
|
+
"border-interactive-pressed": "#c3c3c3",
|
|
964
|
+
"border-focus-default": "#f2e2ff",
|
|
965
|
+
"border-active-default": "#d4a0ff",
|
|
966
|
+
"border-active-hover": "#ddb3ff",
|
|
967
|
+
"border-active-pressed": "#e5c6ff",
|
|
968
|
+
"crypto-bitcoin-sv": "#eab300",
|
|
969
|
+
"crypto-bitcoin-gold": "#152569",
|
|
970
|
+
"crypto-zcash": "#f4b728",
|
|
971
|
+
"crypto-yieldly": "#f3b732",
|
|
972
|
+
"crypto-uni": "#f04086",
|
|
973
|
+
"crypto-uniswap": "#ff007a",
|
|
974
|
+
"crypto-bitcoin-cash": "#0ac18e",
|
|
975
|
+
"crypto-tezos": "#2c7df7",
|
|
976
|
+
"crypto-sol": "#9945ff",
|
|
977
|
+
"crypto-xrp": "#333333",
|
|
978
|
+
"crypto-tron": "#ff060a",
|
|
979
|
+
"crypto-sats": "#ff8b00",
|
|
980
|
+
"crypto-polkadot": "#e6007a",
|
|
981
|
+
"crypto-bitcoin": "#f7931a",
|
|
982
|
+
"crypto-compound": "#00d395",
|
|
983
|
+
"crypto-peercoin": "#3cb054",
|
|
984
|
+
"crypto-omg-network": "#000000",
|
|
985
|
+
"crypto-near": "#1c1d1f",
|
|
986
|
+
"crypto-stellar": "#000000",
|
|
987
|
+
"crypto-nano": "#5d8eb2",
|
|
988
|
+
"crypto-nimiq": "#f8b425",
|
|
989
|
+
"crypto-multiverse-x": "#23f7dd",
|
|
990
|
+
"crypto-ethereum": "#454a75",
|
|
991
|
+
"crypto-okb": "#2d60e0",
|
|
992
|
+
"crypto-tether-usdt": "#00a478",
|
|
993
|
+
"crypto-avax": "#e84142",
|
|
994
|
+
"crypto-bgb": "#00e0ff",
|
|
995
|
+
"crypto-usdc": "#f04086",
|
|
996
|
+
"crypto-monero": "#f26822",
|
|
997
|
+
"crypto-tkx": "#fd6a1f",
|
|
998
|
+
"crypto-huobi": "#357ce1",
|
|
999
|
+
"crypto-pivx": "#5c4c7c",
|
|
1000
|
+
"crypto-cardano": "#0033ad",
|
|
1001
|
+
"crypto-dydx": "#6966ff",
|
|
1002
|
+
"crypto-cro": "#002d74",
|
|
1003
|
+
"crypto-hnt": "#474dff",
|
|
1004
|
+
"crypto-hedera": "#000000",
|
|
1005
|
+
"crypto-ftm": "#1969ff",
|
|
1006
|
+
"crypto-flr": "#e62058",
|
|
1007
|
+
"crypto-bat": "#ff5000",
|
|
1008
|
+
"crypto-ethereum-classic": "#0b8311",
|
|
1009
|
+
"crypto-bincance": "#f5bc00",
|
|
1010
|
+
"crypto-ethergem": "#4a4ab6",
|
|
1011
|
+
"crypto-iota": "#000000",
|
|
1012
|
+
"crypto-chainlink": "#2a5ada",
|
|
1013
|
+
"crypto-dym": "#f1e1d4",
|
|
1014
|
+
"crypto-eos": "#000000",
|
|
1015
|
+
"crypto-waves": "#0055ff",
|
|
1016
|
+
"crypto-polygon": "#8247e5",
|
|
1017
|
+
"crypto-celo": "#fcff52",
|
|
1018
|
+
"crypto-dogecoin": "#c3a634",
|
|
1019
|
+
"crypto-algorand": "#00a478",
|
|
1020
|
+
"crypto-cosmos": "#2e3148",
|
|
1021
|
+
"crypto-digibyte": "#0066cc",
|
|
1022
|
+
"crypto-pirl": "#357ce1",
|
|
1023
|
+
"crypto-eng": "#2f2f2f",
|
|
1024
|
+
"crypto-decred": "#2970ff",
|
|
1025
|
+
"crypto-dash": "#008ce7",
|
|
1026
|
+
"crypto-xin": "#1eb5fa",
|
|
1027
|
+
"crypto-tusd": "#1a5aff",
|
|
1028
|
+
"crypto-litecoin": "#345d9d",
|
|
1029
|
+
"crypto-komodo": "#41ead4",
|
|
1030
|
+
"crypto-elrond": "#000000",
|
|
1031
|
+
"crypto-osmo": "#302dbb",
|
|
1032
|
+
"crypto-leo": "#000000",
|
|
1033
|
+
"crypto-bytecoin": "#f04086",
|
|
1034
|
+
"crypto-aion": "#212529",
|
|
1035
|
+
"crypto-dai": "#f5ac37",
|
|
1036
|
+
"crypto-neo": "#7dd224"
|
|
1037
|
+
};
|
|
1038
|
+
const tailwindColors = (/* unused pure expression or super */ null && ({
|
|
1039
|
+
"background-default": "var(--background-default)",
|
|
1040
|
+
"background-constant-black": "var(--background-constant-black)",
|
|
1041
|
+
"background-constant-white": "var(--background-constant-white)",
|
|
1042
|
+
"background-backdrop-default": "var(--background-backdrop-default)",
|
|
1043
|
+
"background-inverted": "var(--background-inverted)",
|
|
1044
|
+
"background-drawer-default": "var(--background-drawer-default)",
|
|
1045
|
+
"surface-brand-primary-default": "var(--surface-brand-primary-default)",
|
|
1046
|
+
"surface-brand-primary-hover": "var(--surface-brand-primary-hover)",
|
|
1047
|
+
"surface-brand-primary-pressed": "var(--surface-brand-primary-pressed)",
|
|
1048
|
+
"surface-default-default": "var(--surface-default-default)",
|
|
1049
|
+
"surface-default-hover": "var(--surface-default-hover)",
|
|
1050
|
+
"surface-default-pressed": "var(--surface-default-pressed)",
|
|
1051
|
+
"surface-default-inverted-default": "var(--surface-default-inverted-default)",
|
|
1052
|
+
"surface-default-inverted-hover": "var(--surface-default-inverted-hover)",
|
|
1053
|
+
"surface-default-inverted-pressed": "var(--surface-default-inverted-pressed)",
|
|
1054
|
+
"surface-constant-white": "var(--surface-constant-white)",
|
|
1055
|
+
"surface-constant-black": "var(--surface-constant-black)",
|
|
1056
|
+
"surface-status-error-default": "var(--surface-status-error-default)",
|
|
1057
|
+
"surface-status-error-strong-default": "var(--surface-status-error-strong-default)",
|
|
1058
|
+
"surface-status-error-strong-hover": "var(--surface-status-error-strong-hover)",
|
|
1059
|
+
"surface-status-error-strong-pressed": "var(--surface-status-error-strong-pressed)",
|
|
1060
|
+
"surface-status-warning-default": "var(--surface-status-warning-default)",
|
|
1061
|
+
"surface-status-warning-strong-default": "var(--surface-status-warning-strong-default)",
|
|
1062
|
+
"surface-status-warning-strong-hover": "var(--surface-status-warning-strong-hover)",
|
|
1063
|
+
"surface-status-warning-strong-pressed": "var(--surface-status-warning-strong-pressed)",
|
|
1064
|
+
"surface-status-success-default": "var(--surface-status-success-default)",
|
|
1065
|
+
"surface-status-success-strong-default": "var(--surface-status-success-strong-default)",
|
|
1066
|
+
"surface-status-success-strong-hover": "var(--surface-status-success-strong-hover)",
|
|
1067
|
+
"surface-status-success-strong-pressed": "var(--surface-status-success-strong-pressed)",
|
|
1068
|
+
"surface-transparent-default": "var(--surface-transparent-default)",
|
|
1069
|
+
"surface-transparent-hover": "var(--surface-transparent-hover)",
|
|
1070
|
+
"surface-transparent-pressed": "var(--surface-transparent-pressed)",
|
|
1071
|
+
"surface-transparent-inverted-default": "var(--surface-transparent-inverted-default)",
|
|
1072
|
+
"surface-transparent-inverted-hover": "var(--surface-transparent-inverted-hover)",
|
|
1073
|
+
"surface-transparent-inverted-pressed": "var(--surface-transparent-inverted-pressed)",
|
|
1074
|
+
"surface-transparent-subdued-default": "var(--surface-transparent-subdued-default)",
|
|
1075
|
+
"surface-transparent-subdued-inverted-default": "var(--surface-transparent-subdued-inverted-default)",
|
|
1076
|
+
"surface-transparent-subdued-inverted-hover": "var(--surface-transparent-subdued-inverted-hover)",
|
|
1077
|
+
"surface-transparent-subdued-inverted-pressed": "var(--surface-transparent-subdued-inverted-pressed)",
|
|
1078
|
+
"surface-transparent-subdued-inverted-disabled": "var(--surface-transparent-subdued-inverted-disabled)",
|
|
1079
|
+
"surface-transparent-subdued-hover": "var(--surface-transparent-subdued-hover)",
|
|
1080
|
+
"surface-transparent-subdued-pressed": "var(--surface-transparent-subdued-pressed)",
|
|
1081
|
+
"surface-transparent-subdued-disabled": "var(--surface-transparent-subdued-disabled)",
|
|
1082
|
+
"surface-subdued-default": "var(--surface-subdued-default)",
|
|
1083
|
+
"surface-subdued-hover": "var(--surface-subdued-hover)",
|
|
1084
|
+
"surface-subdued-pressed": "var(--surface-subdued-pressed)",
|
|
1085
|
+
"surface-disabled": "var(--surface-disabled)",
|
|
1086
|
+
"surface-interactive-default": "var(--surface-interactive-default)",
|
|
1087
|
+
"surface-interactive-hover": "var(--surface-interactive-hover)",
|
|
1088
|
+
"surface-interactive-pressed": "var(--surface-interactive-pressed)",
|
|
1089
|
+
"surface-interactive-selected-default": "var(--surface-interactive-selected-default)",
|
|
1090
|
+
"surface-interactive-selected-hover": "var(--surface-interactive-selected-hover)",
|
|
1091
|
+
"surface-interactive-selected-pressed": "var(--surface-interactive-selected-pressed)",
|
|
1092
|
+
"surface-_native-default": "var(--surface-_native-default)",
|
|
1093
|
+
"surface-dark-default": "var(--surface-dark-default)",
|
|
1094
|
+
"surface-dark-hover": "var(--surface-dark-hover)",
|
|
1095
|
+
"surface-dark-pressed": "var(--surface-dark-pressed)",
|
|
1096
|
+
"surface-active-default": "var(--surface-active-default)",
|
|
1097
|
+
"surface-active-hover": "var(--surface-active-hover)",
|
|
1098
|
+
"surface-active-pressed": "var(--surface-active-pressed)",
|
|
1099
|
+
"content-default-default": "var(--content-default-default)",
|
|
1100
|
+
"content-default-inverted-default": "var(--content-default-inverted-default)",
|
|
1101
|
+
"content-constant-white": "var(--content-constant-white)",
|
|
1102
|
+
"content-constant-black": "var(--content-constant-black)",
|
|
1103
|
+
"content-constant-grey": "var(--content-constant-grey)",
|
|
1104
|
+
"content-status-error-default": "var(--content-status-error-default)",
|
|
1105
|
+
"content-status-error-hover": "var(--content-status-error-hover)",
|
|
1106
|
+
"content-status-error-pressed": "var(--content-status-error-pressed)",
|
|
1107
|
+
"content-status-warning-default": "var(--content-status-warning-default)",
|
|
1108
|
+
"content-status-success-color": "var(--content-status-success-color)",
|
|
1109
|
+
"content-on-primary-default": "var(--content-on-primary-default)",
|
|
1110
|
+
"content-on-primary-hover": "var(--content-on-primary-hover)",
|
|
1111
|
+
"content-on-primary-pressed": "var(--content-on-primary-pressed)",
|
|
1112
|
+
"content-on-primary-disabled": "var(--content-on-primary-disabled)",
|
|
1113
|
+
"content-on-secondary-default": "var(--content-on-secondary-default)",
|
|
1114
|
+
"content-on-secondary-hover": "var(--content-on-secondary-hover)",
|
|
1115
|
+
"content-on-secondary-pressed": "var(--content-on-secondary-pressed)",
|
|
1116
|
+
"content-on-secondary-disabled": "var(--content-on-secondary-disabled)",
|
|
1117
|
+
"content-disabled": "var(--content-disabled)",
|
|
1118
|
+
"content-interactive-default-default": "var(--content-interactive-default-default)",
|
|
1119
|
+
"content-interactive-default-hover": "var(--content-interactive-default-hover)",
|
|
1120
|
+
"content-interactive-default-pressed": "var(--content-interactive-default-pressed)",
|
|
1121
|
+
"content-interactive-inverted-default": "var(--content-interactive-inverted-default)",
|
|
1122
|
+
"content-interactive-inverted-hover": "var(--content-interactive-inverted-hover)",
|
|
1123
|
+
"content-interactive-inverted-pressed": "var(--content-interactive-inverted-pressed)",
|
|
1124
|
+
"content-subdued-default-default": "var(--content-subdued-default-default)",
|
|
1125
|
+
"content-subdued-inverted-default": "var(--content-subdued-inverted-default)",
|
|
1126
|
+
"content-_native-default": "var(--content-_native-default)",
|
|
1127
|
+
"content-light-default-default": "var(--content-light-default-default)",
|
|
1128
|
+
"content-light-inverted-default": "var(--content-light-inverted-default)",
|
|
1129
|
+
"border-default-default": "var(--border-default-default)",
|
|
1130
|
+
"border-default-inverted-default": "var(--border-default-inverted-default)",
|
|
1131
|
+
"border-default-inverted-disabled": "var(--border-default-inverted-disabled)",
|
|
1132
|
+
"border-constant-white": "var(--border-constant-white)",
|
|
1133
|
+
"border-constant-black": "var(--border-constant-black)",
|
|
1134
|
+
"border-status-error-default": "var(--border-status-error-default)",
|
|
1135
|
+
"border-status-error-hover": "var(--border-status-error-hover)",
|
|
1136
|
+
"border-status-error-pressed": "var(--border-status-error-pressed)",
|
|
1137
|
+
"border-status-warning-default": "var(--border-status-warning-default)",
|
|
1138
|
+
"border-status-success-default": "var(--border-status-success-default)",
|
|
1139
|
+
"border-on-primary-default": "var(--border-on-primary-default)",
|
|
1140
|
+
"border-on-primary-disabled": "var(--border-on-primary-disabled)",
|
|
1141
|
+
"border-on-secondary-default": "var(--border-on-secondary-default)",
|
|
1142
|
+
"border-on-secondary-disabled": "var(--border-on-secondary-disabled)",
|
|
1143
|
+
"border-disabled-default": "var(--border-disabled-default)",
|
|
1144
|
+
"border-disabled-inverted": "var(--border-disabled-inverted)",
|
|
1145
|
+
"border-light-default": "var(--border-light-default)",
|
|
1146
|
+
"border-subdued-default-default": "var(--border-subdued-default-default)",
|
|
1147
|
+
"border-subdued-default-hover": "var(--border-subdued-default-hover)",
|
|
1148
|
+
"border-subdued-inverted-default": "var(--border-subdued-inverted-default)",
|
|
1149
|
+
"border-interactive-default": "var(--border-interactive-default)",
|
|
1150
|
+
"border-interactive-hover": "var(--border-interactive-hover)",
|
|
1151
|
+
"border-interactive-pressed": "var(--border-interactive-pressed)",
|
|
1152
|
+
"border-focus-default": "var(--border-focus-default)",
|
|
1153
|
+
"border-active-default": "var(--border-active-default)",
|
|
1154
|
+
"border-active-hover": "var(--border-active-hover)",
|
|
1155
|
+
"border-active-pressed": "var(--border-active-pressed)",
|
|
1156
|
+
"crypto-bitcoin-sv": "var(--crypto-bitcoin-sv)",
|
|
1157
|
+
"crypto-bitcoin-gold": "var(--crypto-bitcoin-gold)",
|
|
1158
|
+
"crypto-zcash": "var(--crypto-zcash)",
|
|
1159
|
+
"crypto-yieldly": "var(--crypto-yieldly)",
|
|
1160
|
+
"crypto-uni": "var(--crypto-uni)",
|
|
1161
|
+
"crypto-uniswap": "var(--crypto-uniswap)",
|
|
1162
|
+
"crypto-bitcoin-cash": "var(--crypto-bitcoin-cash)",
|
|
1163
|
+
"crypto-tezos": "var(--crypto-tezos)",
|
|
1164
|
+
"crypto-sol": "var(--crypto-sol)",
|
|
1165
|
+
"crypto-xrp": "var(--crypto-xrp)",
|
|
1166
|
+
"crypto-tron": "var(--crypto-tron)",
|
|
1167
|
+
"crypto-sats": "var(--crypto-sats)",
|
|
1168
|
+
"crypto-polkadot": "var(--crypto-polkadot)",
|
|
1169
|
+
"crypto-bitcoin": "var(--crypto-bitcoin)",
|
|
1170
|
+
"crypto-compound": "var(--crypto-compound)",
|
|
1171
|
+
"crypto-peercoin": "var(--crypto-peercoin)",
|
|
1172
|
+
"crypto-omg-network": "var(--crypto-omg-network)",
|
|
1173
|
+
"crypto-near": "var(--crypto-near)",
|
|
1174
|
+
"crypto-stellar": "var(--crypto-stellar)",
|
|
1175
|
+
"crypto-nano": "var(--crypto-nano)",
|
|
1176
|
+
"crypto-nimiq": "var(--crypto-nimiq)",
|
|
1177
|
+
"crypto-multiverse-x": "var(--crypto-multiverse-x)",
|
|
1178
|
+
"crypto-ethereum": "var(--crypto-ethereum)",
|
|
1179
|
+
"crypto-okb": "var(--crypto-okb)",
|
|
1180
|
+
"crypto-tether-usdt": "var(--crypto-tether-usdt)",
|
|
1181
|
+
"crypto-avax": "var(--crypto-avax)",
|
|
1182
|
+
"crypto-bgb": "var(--crypto-bgb)",
|
|
1183
|
+
"crypto-usdc": "var(--crypto-usdc)",
|
|
1184
|
+
"crypto-monero": "var(--crypto-monero)",
|
|
1185
|
+
"crypto-tkx": "var(--crypto-tkx)",
|
|
1186
|
+
"crypto-huobi": "var(--crypto-huobi)",
|
|
1187
|
+
"crypto-pivx": "var(--crypto-pivx)",
|
|
1188
|
+
"crypto-cardano": "var(--crypto-cardano)",
|
|
1189
|
+
"crypto-dydx": "var(--crypto-dydx)",
|
|
1190
|
+
"crypto-cro": "var(--crypto-cro)",
|
|
1191
|
+
"crypto-hnt": "var(--crypto-hnt)",
|
|
1192
|
+
"crypto-hedera": "var(--crypto-hedera)",
|
|
1193
|
+
"crypto-ftm": "var(--crypto-ftm)",
|
|
1194
|
+
"crypto-flr": "var(--crypto-flr)",
|
|
1195
|
+
"crypto-bat": "var(--crypto-bat)",
|
|
1196
|
+
"crypto-ethereum-classic": "var(--crypto-ethereum-classic)",
|
|
1197
|
+
"crypto-bincance": "var(--crypto-bincance)",
|
|
1198
|
+
"crypto-ethergem": "var(--crypto-ethergem)",
|
|
1199
|
+
"crypto-iota": "var(--crypto-iota)",
|
|
1200
|
+
"crypto-chainlink": "var(--crypto-chainlink)",
|
|
1201
|
+
"crypto-dym": "var(--crypto-dym)",
|
|
1202
|
+
"crypto-eos": "var(--crypto-eos)",
|
|
1203
|
+
"crypto-waves": "var(--crypto-waves)",
|
|
1204
|
+
"crypto-polygon": "var(--crypto-polygon)",
|
|
1205
|
+
"crypto-celo": "var(--crypto-celo)",
|
|
1206
|
+
"crypto-dogecoin": "var(--crypto-dogecoin)",
|
|
1207
|
+
"crypto-algorand": "var(--crypto-algorand)",
|
|
1208
|
+
"crypto-cosmos": "var(--crypto-cosmos)",
|
|
1209
|
+
"crypto-digibyte": "var(--crypto-digibyte)",
|
|
1210
|
+
"crypto-pirl": "var(--crypto-pirl)",
|
|
1211
|
+
"crypto-eng": "var(--crypto-eng)",
|
|
1212
|
+
"crypto-decred": "var(--crypto-decred)",
|
|
1213
|
+
"crypto-dash": "var(--crypto-dash)",
|
|
1214
|
+
"crypto-xin": "var(--crypto-xin)",
|
|
1215
|
+
"crypto-tusd": "var(--crypto-tusd)",
|
|
1216
|
+
"crypto-litecoin": "var(--crypto-litecoin)",
|
|
1217
|
+
"crypto-komodo": "var(--crypto-komodo)",
|
|
1218
|
+
"crypto-elrond": "var(--crypto-elrond)",
|
|
1219
|
+
"crypto-osmo": "var(--crypto-osmo)",
|
|
1220
|
+
"crypto-leo": "var(--crypto-leo)",
|
|
1221
|
+
"crypto-bytecoin": "var(--crypto-bytecoin)",
|
|
1222
|
+
"crypto-aion": "var(--crypto-aion)",
|
|
1223
|
+
"crypto-dai": "var(--crypto-dai)",
|
|
1224
|
+
"crypto-neo": "var(--crypto-neo)"
|
|
1225
|
+
}));
|
|
1226
|
+
const primitiveColors = (/* unused pure expression or super */ null && ({
|
|
1227
|
+
"light-constant-400": "#d5d5d5",
|
|
1228
|
+
"light-constant-950": "#000000",
|
|
1229
|
+
"light-constant-050": "#ffffff",
|
|
1230
|
+
"light-green-100": "#e6f7e1",
|
|
1231
|
+
"light-green-200": "#cbeec4",
|
|
1232
|
+
"light-green-300": "#a2e095",
|
|
1233
|
+
"light-green-400": "#6ec85c",
|
|
1234
|
+
"light-green-500": "#5ba34d",
|
|
1235
|
+
"light-green-600": "#47883a",
|
|
1236
|
+
"light-green-700": "#3b6c32",
|
|
1237
|
+
"light-green-800": "#33572e",
|
|
1238
|
+
"light-green-900": "#2c4828",
|
|
1239
|
+
"light-green-950": "#142b12",
|
|
1240
|
+
"light-green-050": "#f4fbf2",
|
|
1241
|
+
"light-green-600---0%": "#47883a00",
|
|
1242
|
+
"light-green-400---0%": "#6ec85c00",
|
|
1243
|
+
"light-green-color": "#ffffff",
|
|
1244
|
+
"light-green-600---10%": "#47883a1a",
|
|
1245
|
+
"light-green-400---10%": "#6ec85c1a",
|
|
1246
|
+
"light-yellow-100": "#fff3d5",
|
|
1247
|
+
"light-yellow-200": "#ffe7ac",
|
|
1248
|
+
"light-yellow-300": "#ffd373",
|
|
1249
|
+
"light-yellow-400": "#ffbd42",
|
|
1250
|
+
"light-yellow-500": "#efa22f",
|
|
1251
|
+
"light-yellow-600": "#d38b20",
|
|
1252
|
+
"light-yellow-700": "#ae731a",
|
|
1253
|
+
"light-yellow-800": "#885a14",
|
|
1254
|
+
"light-yellow-900": "#63420f",
|
|
1255
|
+
"light-yellow-950": "#3e2909",
|
|
1256
|
+
"light-yellow-050": "#fff8e6",
|
|
1257
|
+
"light-yellow-600---0%": "#d38b2000",
|
|
1258
|
+
"light-yellow-600---10%": "#d38b201a",
|
|
1259
|
+
"light-yellow-400---0%": "#ffbd4200",
|
|
1260
|
+
"light-yellow-400---10%": "#ffbd421a",
|
|
1261
|
+
"light-red-100": "#fee1e2",
|
|
1262
|
+
"light-red-200": "#fec8c9",
|
|
1263
|
+
"light-red-300": "#fca6a7",
|
|
1264
|
+
"light-red-400": "#f87274",
|
|
1265
|
+
"light-red-500": "#f04f52",
|
|
1266
|
+
"light-red-600": "#c24244",
|
|
1267
|
+
"light-red-700": "#a43234",
|
|
1268
|
+
"light-red-800": "#852e2f",
|
|
1269
|
+
"light-red-900": "#702e2f",
|
|
1270
|
+
"light-red-950": "#3b1212",
|
|
1271
|
+
"light-red-050": "#fef1f1",
|
|
1272
|
+
"light-red-400---0%": "#f8727400",
|
|
1273
|
+
"light-red-600---0%": "#c2424400",
|
|
1274
|
+
"light-red-600---10%": "#c242441a",
|
|
1275
|
+
"light-red-400---10%": "#f872741a",
|
|
1276
|
+
"light-grey-100": "#fbfbfb",
|
|
1277
|
+
"light-grey-200": "#f4f4f4",
|
|
1278
|
+
"light-grey-300": "#e8e8e8",
|
|
1279
|
+
"light-grey-400": "#d5d5d5",
|
|
1280
|
+
"light-grey-500": "#c1c1c1",
|
|
1281
|
+
"light-grey-600": "#767676",
|
|
1282
|
+
"light-grey-700": "#6a6a6a",
|
|
1283
|
+
"light-grey-800": "#4d4d4d",
|
|
1284
|
+
"light-grey-900": "#272727",
|
|
1285
|
+
"light-grey-950": "#000000",
|
|
1286
|
+
"light-grey-950---30-%": "#0000004d",
|
|
1287
|
+
"light-grey-050": "#ffffff",
|
|
1288
|
+
"light-grey-050---90%": "#ffffffe6",
|
|
1289
|
+
"light-grey-050---80%": "#ffffffcc",
|
|
1290
|
+
"light-grey-050---70%": "#ffffffb3",
|
|
1291
|
+
"light-grey-050---60%": "#ffffff99",
|
|
1292
|
+
"light-grey-050---50%": "#ffffff80",
|
|
1293
|
+
"light-grey-050---40%": "#ffffff66",
|
|
1294
|
+
"light-grey-050--30%": "#ffffff4d",
|
|
1295
|
+
"light-grey-050---20%": "#ffffff33",
|
|
1296
|
+
"light-grey-050---10-%": "#ffffff1a",
|
|
1297
|
+
"light-grey-950---10%": "#0000001a",
|
|
1298
|
+
"light-grey-950---20%": "#00000033",
|
|
1299
|
+
"light-grey-950---40%": "#00000066",
|
|
1300
|
+
"light-grey-950---50%": "#00000080",
|
|
1301
|
+
"light-grey-950---60%": "#00000099",
|
|
1302
|
+
"light-grey-950---70%": "#000000b3",
|
|
1303
|
+
"light-grey-950---80%": "#000000cc",
|
|
1304
|
+
"light-grey-950---90%": "#000000e6",
|
|
1305
|
+
"light-grey-950---0%": "#00000000",
|
|
1306
|
+
"light-grey-050---0%": "#ffffff00",
|
|
1307
|
+
"light-grey-950----30%": "#0000004d",
|
|
1308
|
+
"light-grey-050---30%": "#ffffff4d",
|
|
1309
|
+
"light-grey-050---5%": "#ffffff0d",
|
|
1310
|
+
"light-grey-950---5%": "#0000000d",
|
|
1311
|
+
"light-grey-950---2%": "#00000005",
|
|
1312
|
+
"light-grey-050---2%": "#ffffff05",
|
|
1313
|
+
"light-orange-100": "#ffddcc",
|
|
1314
|
+
"light-orange-200": "#ffc2a4",
|
|
1315
|
+
"light-orange-300": "#ffa97f",
|
|
1316
|
+
"light-orange-400": "#ff8c55",
|
|
1317
|
+
"light-orange-500": "#ff702a",
|
|
1318
|
+
"light-orange-600": "#ff5300",
|
|
1319
|
+
"light-orange-700": "#d64400",
|
|
1320
|
+
"light-orange-800": "#b23a00",
|
|
1321
|
+
"light-orange-900": "#9e3300",
|
|
1322
|
+
"light-orange-950": "#662100",
|
|
1323
|
+
"light-orange-050": "#fef0e9",
|
|
1324
|
+
"light-crypto-colors-algorand": "#00a478",
|
|
1325
|
+
"light-crypto-colors-aion": "#212529",
|
|
1326
|
+
"light-crypto-colors-avax": "#e84142",
|
|
1327
|
+
"light-crypto-colors-bat": "#ff5000",
|
|
1328
|
+
"light-crypto-colors-bgb": "#00e0ff",
|
|
1329
|
+
"light-crypto-colors-bitcoin": "#f7931a",
|
|
1330
|
+
"light-crypto-colors-bitcoin-cash": "#0ac18e",
|
|
1331
|
+
"light-crypto-colors-bitcoin-gold": "#152569",
|
|
1332
|
+
"light-crypto-colors-bitcoin-sv": "#eab300",
|
|
1333
|
+
"light-crypto-colors-bincance": "#f5bc00",
|
|
1334
|
+
"light-crypto-colors-bytecoin": "#f04086",
|
|
1335
|
+
"light-crypto-colors-cardano": "#0033ad",
|
|
1336
|
+
"light-crypto-colors-cosmos": "#2e3148",
|
|
1337
|
+
"light-crypto-colors-compound": "#00d395",
|
|
1338
|
+
"light-crypto-colors-chainlink": "#2a5ada",
|
|
1339
|
+
"light-crypto-colors-dash": "#008ce7",
|
|
1340
|
+
"light-crypto-colors-dai": "#f5ac37",
|
|
1341
|
+
"light-crypto-colors-decred": "#2970ff",
|
|
1342
|
+
"light-crypto-colors-digibyte": "#0066cc",
|
|
1343
|
+
"light-crypto-colors-dogecoin": "#c3a634",
|
|
1344
|
+
"light-crypto-colors-dydx": "#6966ff",
|
|
1345
|
+
"light-crypto-colors-elrond": "#000000",
|
|
1346
|
+
"light-crypto-colors-eos": "#000000",
|
|
1347
|
+
"light-crypto-colors-ethergem": "#4a4ab6",
|
|
1348
|
+
"light-crypto-colors-ethereum": "#454a75",
|
|
1349
|
+
"light-crypto-colors-ethereum-classic": "#0b8311",
|
|
1350
|
+
"light-crypto-colors-huobi": "#357ce1",
|
|
1351
|
+
"light-crypto-colors-hnt": "#474dff",
|
|
1352
|
+
"light-crypto-colors-iota": "#000000",
|
|
1353
|
+
"light-crypto-colors-komodo": "#41ead4",
|
|
1354
|
+
"light-crypto-colors-leo": "#000000",
|
|
1355
|
+
"light-crypto-colors-litecoin": "#345d9d",
|
|
1356
|
+
"light-crypto-colors-monero": "#f26822",
|
|
1357
|
+
"light-crypto-colors-multiverse-x": "#23f7dd",
|
|
1358
|
+
"light-crypto-colors-nano": "#5d8eb2",
|
|
1359
|
+
"light-crypto-colors-near": "#1c1d1f",
|
|
1360
|
+
"light-crypto-colors-neo": "#7dd224",
|
|
1361
|
+
"light-crypto-colors-nimiq": "#f8b425",
|
|
1362
|
+
"light-crypto-colors-osmo": "#302dbb",
|
|
1363
|
+
"light-crypto-colors-okb": "#2d60e0",
|
|
1364
|
+
"light-crypto-colors-peercoin": "#3cb054",
|
|
1365
|
+
"light-crypto-colors-pirl": "#357ce1",
|
|
1366
|
+
"light-crypto-colors-pivx": "#5c4c7c",
|
|
1367
|
+
"light-crypto-colors-polkadot": "#e6007a",
|
|
1368
|
+
"light-crypto-colors-stellar": "#000000",
|
|
1369
|
+
"light-crypto-colors-tether-usdt": "#00a478",
|
|
1370
|
+
"light-crypto-colors-tezos": "#2c7df7",
|
|
1371
|
+
"light-crypto-colors-tkx": "#fd6a1f",
|
|
1372
|
+
"light-crypto-colors-tron": "#ff060a",
|
|
1373
|
+
"light-crypto-colors-tusd": "#1a5aff",
|
|
1374
|
+
"light-crypto-colors-usdc": "#f04086",
|
|
1375
|
+
"light-crypto-colors-uni": "#f04086",
|
|
1376
|
+
"light-crypto-colors-waves": "#0055ff",
|
|
1377
|
+
"light-crypto-colors-xrp": "#333333",
|
|
1378
|
+
"light-crypto-colors-zcash": "#f4b728",
|
|
1379
|
+
"light-crypto-colors-cro": "#002d74",
|
|
1380
|
+
"light-crypto-colors-eng": "#2f2f2f",
|
|
1381
|
+
"light-crypto-colors-hedera": "#000000",
|
|
1382
|
+
"light-crypto-colors-polygon": "#8247e5",
|
|
1383
|
+
"light-crypto-colors-sats": "#ff8b00",
|
|
1384
|
+
"light-crypto-colors-sol": "#9945ff",
|
|
1385
|
+
"light-crypto-colors-uniswap": "#ff007a",
|
|
1386
|
+
"light-crypto-colors-xin": "#1eb5fa",
|
|
1387
|
+
"light-crypto-colors-yieldly": "#f3b732",
|
|
1388
|
+
"light-crypto-colors-omg-network": "#000000",
|
|
1389
|
+
"light-crypto-colors-celo": "#fcff52",
|
|
1390
|
+
"light-crypto-colors-ftm": "#1969ff",
|
|
1391
|
+
"light-crypto-colors-dym": "#f1e1d4",
|
|
1392
|
+
"light-crypto-colors-flr": "#e62058",
|
|
1393
|
+
"light-discover-1inch": "#212529",
|
|
1394
|
+
"light-discover-changelly": "#10d078",
|
|
1395
|
+
"light-discover-compound": "#00d395",
|
|
1396
|
+
"light-discover-deversifi": "#6436ff",
|
|
1397
|
+
"light-discover-lido": "#47a1f8",
|
|
1398
|
+
"light-discover-opensea": "#2081e2",
|
|
1399
|
+
"light-discover-paraswap": "#266ef0",
|
|
1400
|
+
"light-discover-rarible": "#feda03",
|
|
1401
|
+
"light-discover-zerion": "#2962ef",
|
|
1402
|
+
"light-discover-bitrefill": "#449bf7",
|
|
1403
|
+
"light-discover-loopipay-blue": "#0050ff",
|
|
1404
|
+
"light-discover-loopipay-black": "#0e0d13",
|
|
1405
|
+
"light-discover-loopipay-lime": "#e1fb61",
|
|
1406
|
+
"light-discover-simplex": "#2ea836",
|
|
1407
|
+
"light-discover-baanx": "#003edd",
|
|
1408
|
+
"light-discover-mercuryo": "#212529",
|
|
1409
|
+
"light-discover-juno": "#4643ee",
|
|
1410
|
+
"light-discover-sardine": "#2d29d7",
|
|
1411
|
+
"light-purple-100": "#f6ecff",
|
|
1412
|
+
"light-purple-200": "#f2e2ff",
|
|
1413
|
+
"light-purple-300": "#eed9ff",
|
|
1414
|
+
"light-purple-400": "#e5c6ff",
|
|
1415
|
+
"light-purple-500": "#ddb3ff",
|
|
1416
|
+
"light-purple-600": "#d4a0ff",
|
|
1417
|
+
"light-purple-700": "#b380dd",
|
|
1418
|
+
"light-purple-800": "#7e4ea5",
|
|
1419
|
+
"light-purple-900": "#6a3794",
|
|
1420
|
+
"light-purple-950": "#3f2058",
|
|
1421
|
+
"light-purple-050": "#fbf5ff",
|
|
1422
|
+
"dark-constant-400": "#c3c3c3",
|
|
1423
|
+
"dark-constant-950": "#000000",
|
|
1424
|
+
"dark-constant-050": "#ffffff",
|
|
1425
|
+
"dark-green-100": "#2c4828",
|
|
1426
|
+
"dark-green-200": "#33572e",
|
|
1427
|
+
"dark-green-300": "#3b6c32",
|
|
1428
|
+
"dark-green-400": "#47883a",
|
|
1429
|
+
"dark-green-500": "#5ba34d",
|
|
1430
|
+
"dark-green-600": "#6ec85c",
|
|
1431
|
+
"dark-green-700": "#a2e095",
|
|
1432
|
+
"dark-green-800": "#cbeec4",
|
|
1433
|
+
"dark-green-900": "#e6f7e1",
|
|
1434
|
+
"dark-green-950": "#f4fbf2",
|
|
1435
|
+
"dark-green-050": "#142b12",
|
|
1436
|
+
"dark-green-600---0%": "#6ec85c00",
|
|
1437
|
+
"dark-green-600---10%": "#6ec85c1a",
|
|
1438
|
+
"dark-yellow-100": "#63420f",
|
|
1439
|
+
"dark-yellow-200": "#885a14",
|
|
1440
|
+
"dark-yellow-300": "#ae731a",
|
|
1441
|
+
"dark-yellow-400": "#d38b20",
|
|
1442
|
+
"dark-yellow-500": "#efa22f",
|
|
1443
|
+
"dark-yellow-600": "#ffbd42",
|
|
1444
|
+
"dark-yellow-700": "#ffd373",
|
|
1445
|
+
"dark-yellow-800": "#ffe7ac",
|
|
1446
|
+
"dark-yellow-900": "#fff3d5",
|
|
1447
|
+
"dark-yellow-950": "#fff8e6",
|
|
1448
|
+
"dark-yellow-050": "#3e2909",
|
|
1449
|
+
"dark-yellow-600---0%": "#ffbd4200",
|
|
1450
|
+
"dark-yellow-600---10%": "#ffbd421a",
|
|
1451
|
+
"dark-red-100": "#702e2f",
|
|
1452
|
+
"dark-red-200": "#852e2f",
|
|
1453
|
+
"dark-red-300": "#a43234",
|
|
1454
|
+
"dark-red-400": "#c24244",
|
|
1455
|
+
"dark-red-500": "#f04f52",
|
|
1456
|
+
"dark-red-600": "#f87274",
|
|
1457
|
+
"dark-red-700": "#fca6a7",
|
|
1458
|
+
"dark-red-800": "#fec8c9",
|
|
1459
|
+
"dark-red-900": "#fee1e2",
|
|
1460
|
+
"dark-red-1000": "#fef1f1",
|
|
1461
|
+
"dark-red-050": "#3b1212",
|
|
1462
|
+
"dark-red-600---0%": "#f8727400",
|
|
1463
|
+
"dark-red-600---10%": "#f872741a",
|
|
1464
|
+
"dark-grey-100": "#191919",
|
|
1465
|
+
"dark-grey-200": "#272727",
|
|
1466
|
+
"dark-grey-300": "#3c3c3c",
|
|
1467
|
+
"dark-grey-400": "#565656",
|
|
1468
|
+
"dark-grey-500": "#717070",
|
|
1469
|
+
"dark-grey-600": "#848484",
|
|
1470
|
+
"dark-grey-700": "#9c9c9c",
|
|
1471
|
+
"dark-grey-800": "#c3c3c3",
|
|
1472
|
+
"dark-grey-900": "#e1e1e1",
|
|
1473
|
+
"dark-grey-950": "#ffffff",
|
|
1474
|
+
"dark-grey-050---10%": "#0000001a",
|
|
1475
|
+
"dark-grey-050---20%": "#00000033",
|
|
1476
|
+
"dark-grey-050---30%": "#0000004d",
|
|
1477
|
+
"dark-grey-050---40%": "#00000066",
|
|
1478
|
+
"dark-grey-050---50%": "#00000080",
|
|
1479
|
+
"dark-grey-050---60%": "#00000099",
|
|
1480
|
+
"dark-grey-050---70%": "#000000b3",
|
|
1481
|
+
"dark-grey-050---80%": "#000000cc",
|
|
1482
|
+
"dark-grey-050---90%": "#000000e6",
|
|
1483
|
+
"dark-grey-950---10%": "#ffffff1a",
|
|
1484
|
+
"dark-grey-950---20%": "#ffffff33",
|
|
1485
|
+
"dark-grey-950---30%": "#ffffff4d",
|
|
1486
|
+
"dark-grey-950---40%": "#ffffff66",
|
|
1487
|
+
"dark-grey-950---50%": "#ffffff80",
|
|
1488
|
+
"dark-grey-950---60%": "#ffffff99",
|
|
1489
|
+
"dark-grey-950---70%": "#ffffffb3",
|
|
1490
|
+
"dark-grey-950---80%": "#ffffffcc",
|
|
1491
|
+
"dark-grey-950---90%": "#ffffffe6",
|
|
1492
|
+
"dark-grey-050": "#000000",
|
|
1493
|
+
"dark-grey-950---0%": "#ffffff00",
|
|
1494
|
+
"dark-grey-050---0%": "#00000000",
|
|
1495
|
+
"dark-grey-050---5%": "#0000000d",
|
|
1496
|
+
"dark-grey-950---5%": "#ffffff0d",
|
|
1497
|
+
"dark-grey-950---2%": "#ffffff05",
|
|
1498
|
+
"dark-orange-100": "#9e3300",
|
|
1499
|
+
"dark-orange-200": "#b23a00",
|
|
1500
|
+
"dark-orange-300": "#d64400",
|
|
1501
|
+
"dark-orange-400": "#ff5300",
|
|
1502
|
+
"dark-orange-500": "#ff702a",
|
|
1503
|
+
"dark-orange-600": "#ff8c55",
|
|
1504
|
+
"dark-orange-700": "#ffa97f",
|
|
1505
|
+
"dark-orange-800": "#ffc2a4",
|
|
1506
|
+
"dark-orange-900": "#ffddcc",
|
|
1507
|
+
"dark-orange-950": "#fef0e9",
|
|
1508
|
+
"dark-orange-050": "#662100",
|
|
1509
|
+
"dark-crypto-colors-aion": "#212529",
|
|
1510
|
+
"dark-crypto-colors-algorand": "#00a478",
|
|
1511
|
+
"dark-crypto-colors-bytecoin": "#f04086",
|
|
1512
|
+
"dark-crypto-colors-avax": "#e84142",
|
|
1513
|
+
"dark-crypto-colors-bat": "#ff5000",
|
|
1514
|
+
"dark-crypto-colors-bgb": "#00e0ff",
|
|
1515
|
+
"dark-crypto-colors-bitcoin": "#f7931a",
|
|
1516
|
+
"dark-crypto-colors-bitcoin-cash": "#0ac18e",
|
|
1517
|
+
"dark-crypto-colors-bitcoin-gold": "#152569",
|
|
1518
|
+
"dark-crypto-colors-bitcoin-sv": "#eab300",
|
|
1519
|
+
"dark-crypto-colors-bincance": "#f5bc00",
|
|
1520
|
+
"dark-crypto-colors-cardano": "#0033ad",
|
|
1521
|
+
"dark-crypto-colors-cosmos": "#2e3148",
|
|
1522
|
+
"dark-crypto-colors-compound": "#00d395",
|
|
1523
|
+
"dark-crypto-colors-celo": "#fcff52",
|
|
1524
|
+
"dark-crypto-colors-chainlink": "#2a5ada",
|
|
1525
|
+
"dark-crypto-colors-cro": "#002d74",
|
|
1526
|
+
"dark-crypto-colors-dash": "#008ce7",
|
|
1527
|
+
"dark-crypto-colors-dai": "#f5ac37",
|
|
1528
|
+
"dark-crypto-colors-decred": "#2970ff",
|
|
1529
|
+
"dark-crypto-colors-digibyte": "#0066cc",
|
|
1530
|
+
"dark-crypto-colors-dogecoin": "#c3a634",
|
|
1531
|
+
"dark-crypto-colors-dydx": "#6966ff",
|
|
1532
|
+
"dark-crypto-colors-dym": "#f1e1d4",
|
|
1533
|
+
"dark-crypto-colors-elrond": "#000000",
|
|
1534
|
+
"dark-crypto-colors-eng": "#2f2f2f",
|
|
1535
|
+
"dark-crypto-colors-eos": "#000000",
|
|
1536
|
+
"dark-crypto-colors-ethergem": "#4a4ab6",
|
|
1537
|
+
"dark-crypto-colors-ethereum": "#454a75",
|
|
1538
|
+
"dark-crypto-colors-ethereum-classic": "#0b8311",
|
|
1539
|
+
"dark-crypto-colors-flr": "#e62058",
|
|
1540
|
+
"dark-crypto-colors-ftm": "#1969ff",
|
|
1541
|
+
"dark-crypto-colors-hedera": "#000000",
|
|
1542
|
+
"dark-crypto-colors-hnt": "#474dff",
|
|
1543
|
+
"dark-crypto-colors-huobi": "#357ce1",
|
|
1544
|
+
"dark-crypto-colors-iota": "#000000",
|
|
1545
|
+
"dark-crypto-colors-komodo": "#41ead4",
|
|
1546
|
+
"dark-crypto-colors-leo": "#000000",
|
|
1547
|
+
"dark-crypto-colors-litecoin": "#345d9d",
|
|
1548
|
+
"dark-crypto-colors-monero": "#f26822",
|
|
1549
|
+
"dark-crypto-colors-multiverse-x": "#23f7dd",
|
|
1550
|
+
"dark-crypto-colors-nano": "#5d8eb2",
|
|
1551
|
+
"dark-crypto-colors-near": "#1c1d1f",
|
|
1552
|
+
"dark-crypto-colors-neo": "#7dd224",
|
|
1553
|
+
"dark-crypto-colors-nimiq": "#f8b425",
|
|
1554
|
+
"dark-crypto-colors-omg-network": "#000000",
|
|
1555
|
+
"dark-crypto-colors-okb": "#2d60e0",
|
|
1556
|
+
"dark-crypto-colors-osmo": "#302dbb",
|
|
1557
|
+
"dark-crypto-colors-peercoin": "#3cb054",
|
|
1558
|
+
"dark-crypto-colors-pirl": "#357ce1",
|
|
1559
|
+
"dark-crypto-colors-pivx": "#5c4c7c",
|
|
1560
|
+
"dark-crypto-colors-polkadot": "#e6007a",
|
|
1561
|
+
"dark-crypto-colors-polygon": "#8247e5",
|
|
1562
|
+
"dark-crypto-colors-sats": "#ff8b00",
|
|
1563
|
+
"dark-crypto-colors-stellar": "#000000",
|
|
1564
|
+
"dark-crypto-colors-sol": "#9945ff",
|
|
1565
|
+
"dark-crypto-colors-tether-usdt": "#00a478",
|
|
1566
|
+
"dark-crypto-colors-tezos": "#2c7df7",
|
|
1567
|
+
"dark-crypto-colors-tkx": "#fd6a1f",
|
|
1568
|
+
"dark-crypto-colors-tron": "#ff060a",
|
|
1569
|
+
"dark-crypto-colors-uniswap": "#ff007a",
|
|
1570
|
+
"dark-crypto-colors-tusd": "#1a5aff",
|
|
1571
|
+
"dark-crypto-colors-usdc": "#f04086",
|
|
1572
|
+
"dark-crypto-colors-uni": "#f04086",
|
|
1573
|
+
"dark-crypto-colors-waves": "#0055ff",
|
|
1574
|
+
"dark-crypto-colors-xrp": "#333333",
|
|
1575
|
+
"dark-crypto-colors-xin": "#1eb5fa",
|
|
1576
|
+
"dark-crypto-colors-yieldly": "#f3b732",
|
|
1577
|
+
"dark-crypto-colors-zcash": "#f4b728",
|
|
1578
|
+
"dark-discover-1inch": "#212529",
|
|
1579
|
+
"dark-discover-changelly": "#10d078",
|
|
1580
|
+
"dark-discover-loopipay-blue": "#0050ff",
|
|
1581
|
+
"dark-discover-loopipay-black": "#0e0d13",
|
|
1582
|
+
"dark-discover-loopipay-lime-2": "#e1fb61",
|
|
1583
|
+
"dark-discover-simplex": "#2ea836",
|
|
1584
|
+
"dark-discover-baanx": "#003edd",
|
|
1585
|
+
"dark-discover-mercuryo": "#212529",
|
|
1586
|
+
"dark-discover-juno": "#4643ee",
|
|
1587
|
+
"dark-discover-sardine": "#2d29d7",
|
|
1588
|
+
"dark-discover-compound": "#00d395",
|
|
1589
|
+
"dark-discover-deversifi": "#6436ff",
|
|
1590
|
+
"dark-discover-lido": "#47a1f8",
|
|
1591
|
+
"dark-discover-opensea": "#2081e2",
|
|
1592
|
+
"dark-discover-paraswap": "#266ef0",
|
|
1593
|
+
"dark-discover-rarible": "#feda03",
|
|
1594
|
+
"dark-discover-zerion": "#2962ef",
|
|
1595
|
+
"dark-discover-bitrefill": "#449bf7",
|
|
1596
|
+
"dark-purple-100": "#6a3794",
|
|
1597
|
+
"dark-purple-200": "#7e4ea5",
|
|
1598
|
+
"dark-purple-300": "#b380dd",
|
|
1599
|
+
"dark-purple-400": "#d4a0ff",
|
|
1600
|
+
"dark-purple-500": "#ddb3ff",
|
|
1601
|
+
"dark-purple-600": "#e5c6ff",
|
|
1602
|
+
"dark-purple-700": "#eed9ff",
|
|
1603
|
+
"dark-purple-800": "#f2e2ff",
|
|
1604
|
+
"dark-purple-900": "#f6ecff",
|
|
1605
|
+
"dark-purple-950": "#fbf5ff",
|
|
1606
|
+
"dark-purple-050": "#3f2058"
|
|
1607
|
+
}));
|
|
1608
|
+
|
|
1609
|
+
|
|
1610
|
+
},
|
|
1611
|
+
1507(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
1612
|
+
|
|
1613
|
+
// EXPORTS
|
|
1614
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
1615
|
+
withTokens: () => (/* binding */ withTokens)
|
|
1616
|
+
});
|
|
1617
|
+
|
|
1618
|
+
;// CONCATENATED MODULE: external "lodash/memoize"
|
|
1619
|
+
const memoize_namespaceObject = require("lodash/memoize");
|
|
1620
|
+
var memoize_default = /*#__PURE__*/__webpack_require__.n(memoize_namespaceObject);
|
|
1621
|
+
// EXTERNAL MODULE: external "styled-components"
|
|
1622
|
+
var external_styled_components_ = __webpack_require__(2770);
|
|
1623
|
+
// EXTERNAL MODULE: ./src/pre-ldls/libs/design-tokens.ts
|
|
1624
|
+
var design_tokens = __webpack_require__(8112);
|
|
1625
|
+
;// CONCATENATED MODULE: ./src/pre-ldls/libs/index.ts
|
|
1626
|
+
|
|
1627
|
+
|
|
1628
|
+
|
|
1629
|
+
// Add temporarily missing and override incorrect tokens here
|
|
1630
|
+
const overrideOther = {
|
|
1631
|
+
"radius-m": "12px",
|
|
1632
|
+
"radius-s": "8px",
|
|
1633
|
+
"radius-xs": "4px",
|
|
1634
|
+
"border-width-default": "1px",
|
|
1635
|
+
"border-width-focus": "2px",
|
|
1636
|
+
"margin-xs": "8px",
|
|
1637
|
+
"margin-s": "16px",
|
|
1638
|
+
"margin-m": "24px",
|
|
1639
|
+
"margin-l": "32px",
|
|
1640
|
+
"spacing-xs": "12px",
|
|
1641
|
+
"spacing-xxs": "8px"
|
|
1642
|
+
};
|
|
1643
|
+
// Add temporarily missing and override incorrect colours here
|
|
1644
|
+
const overrideColor = {
|
|
1645
|
+
light: {
|
|
1646
|
+
"surface-transparent-hover": "#0000000D",
|
|
1647
|
+
"surface-transparent-pressed": "#0000001A",
|
|
1648
|
+
"border-subdued-default-hover": "#D5D5D5",
|
|
1649
|
+
"border-subdued-default-pressed": "#C1C1C1",
|
|
1650
|
+
"background-active": "#D4A0FF"
|
|
1651
|
+
},
|
|
1652
|
+
dark: {
|
|
1653
|
+
"opacity-default-10": "#FFFFFF1A",
|
|
1654
|
+
"background-active": "#D4A0FF"
|
|
1655
|
+
}
|
|
1656
|
+
};
|
|
1657
|
+
const withTokens = (...usedTokens)=>{
|
|
1658
|
+
const filterTokens = memoize_default()((theme)=>{
|
|
1659
|
+
const colors = {
|
|
1660
|
+
dark: {
|
|
1661
|
+
...design_tokens.dark,
|
|
1662
|
+
...overrideColor.dark
|
|
1663
|
+
},
|
|
1664
|
+
light: {
|
|
1665
|
+
...design_tokens.light,
|
|
1666
|
+
...overrideColor.light
|
|
1667
|
+
}
|
|
1668
|
+
}[theme];
|
|
1669
|
+
const colorEntries = Object.entries(colors).flatMap(([key, value])=>{
|
|
1670
|
+
const color = `colors-${key}`;
|
|
1671
|
+
if (!usedTokens.includes(color)) return [];
|
|
1672
|
+
return [
|
|
1673
|
+
[
|
|
1674
|
+
`--${color}`,
|
|
1675
|
+
value
|
|
1676
|
+
]
|
|
1677
|
+
];
|
|
1678
|
+
});
|
|
1679
|
+
const otherEntries = [
|
|
1680
|
+
design_tokens.spacing,
|
|
1681
|
+
overrideOther
|
|
1682
|
+
].flatMap(Object.entries).flatMap(([key, value])=>{
|
|
1683
|
+
if (!usedTokens.includes(key)) return [];
|
|
1684
|
+
return [
|
|
1685
|
+
[
|
|
1686
|
+
`--${key}`,
|
|
1687
|
+
value
|
|
1688
|
+
]
|
|
1689
|
+
];
|
|
1690
|
+
});
|
|
1691
|
+
return Object.fromEntries([
|
|
1692
|
+
...colorEntries,
|
|
1693
|
+
...otherEntries
|
|
1694
|
+
]);
|
|
1695
|
+
});
|
|
1696
|
+
return (0,external_styled_components_.css)(({ theme })=>filterTokens(theme.colors.type));
|
|
1697
|
+
};
|
|
1698
|
+
|
|
1699
|
+
|
|
1700
|
+
},
|
|
1701
|
+
4336(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
1702
|
+
|
|
1703
|
+
// EXPORTS
|
|
1704
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
1705
|
+
ff: () => (/* binding */ ff)
|
|
1706
|
+
});
|
|
1707
|
+
|
|
1708
|
+
// UNUSED EXPORTS: darken, ensureContrast, mix, rgba, lighten
|
|
1709
|
+
|
|
1710
|
+
;// CONCATENATED MODULE: external "color"
|
|
1711
|
+
const external_color_namespaceObject = require("color");
|
|
1712
|
+
// EXTERNAL MODULE: ./src/styles/theme.ts
|
|
1713
|
+
var theme = __webpack_require__(5548);
|
|
1714
|
+
;// CONCATENATED MODULE: ./src/styles/helpers.ts
|
|
1715
|
+
|
|
1716
|
+
|
|
1717
|
+
const rgba = (c, a)=>Color(c).alpha(a).rgb().toString();
|
|
1718
|
+
const darken = (c, a)=>Color(c).darken(a).toString();
|
|
1719
|
+
const lighten = (c, a)=>Color(c).lighten(a).toString();
|
|
1720
|
+
const mix = (c, b, a)=>Color(c).mix(Color(b), a).toString();
|
|
1721
|
+
const ff = (v)=>{
|
|
1722
|
+
const [font, type = "Regular"] = v.split("|");
|
|
1723
|
+
// @ts-expect-error FIXME
|
|
1724
|
+
const { style, weight } = theme.fontFamilies[font][type];
|
|
1725
|
+
// @ts-expect-error FIXME
|
|
1726
|
+
const fallback = theme.fontFamilies[font].fallback ?? "Arial";
|
|
1727
|
+
return {
|
|
1728
|
+
fontFamily: `${font}, ${fallback}`,
|
|
1729
|
+
fontWeight: weight,
|
|
1730
|
+
fontStyle: style
|
|
1731
|
+
};
|
|
50
1732
|
};
|
|
51
|
-
|
|
1733
|
+
const ensureContrast = (color1, color2)=>{
|
|
1734
|
+
const colorL1 = Color(color1).luminosity() + 0.05;
|
|
1735
|
+
const colorL2 = Color(color2).luminosity() + 0.05;
|
|
1736
|
+
const lRatio = colorL1 > colorL2 ? colorL1 / colorL2 : colorL2 / colorL1;
|
|
1737
|
+
if (lRatio < 1.5) {
|
|
1738
|
+
return Color(color1).rotate(180).negate().string();
|
|
1739
|
+
}
|
|
1740
|
+
return color1;
|
|
1741
|
+
};
|
|
1742
|
+
|
|
1743
|
+
|
|
1744
|
+
},
|
|
1745
|
+
3364(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
1746
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
1747
|
+
"default": () => (__rspack_default_export)
|
|
1748
|
+
});
|
|
1749
|
+
/* import */ var _helpers__rspack_import_0 = __webpack_require__(4336);
|
|
1750
|
+
|
|
1751
|
+
/* export default */ const __rspack_default_export = ((props)=>{
|
|
1752
|
+
const prop = props.ff;
|
|
1753
|
+
if (prop == null) {
|
|
1754
|
+
return null;
|
|
1755
|
+
}
|
|
1756
|
+
return (0,_helpers__rspack_import_0.ff)(prop);
|
|
1757
|
+
});
|
|
1758
|
+
|
|
1759
|
+
|
|
1760
|
+
},
|
|
1761
|
+
4182(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
1762
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
1763
|
+
"default": () => (__rspack_default_export)
|
|
1764
|
+
});
|
|
1765
|
+
/* import */ var styled_system__rspack_import_0 = __webpack_require__(9351);
|
|
1766
|
+
/* import */ var styled_system__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_0);
|
|
1767
|
+
|
|
1768
|
+
const gaps = (0,styled_system__rspack_import_0.system)({
|
|
1769
|
+
rowGap: {
|
|
1770
|
+
property: "rowGap",
|
|
1771
|
+
scale: "space"
|
|
1772
|
+
},
|
|
1773
|
+
columnGap: {
|
|
1774
|
+
property: "columnGap",
|
|
1775
|
+
scale: "space"
|
|
1776
|
+
}
|
|
1777
|
+
});
|
|
1778
|
+
/* export default */ const __rspack_default_export = (gaps);
|
|
1779
|
+
|
|
1780
|
+
|
|
1781
|
+
},
|
|
1782
|
+
5548(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
1783
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
1784
|
+
fontFamilies: () => (fontFamilies)
|
|
1785
|
+
});
|
|
1786
|
+
/* import */ var styled_components__rspack_import_0 = __webpack_require__(2770);
|
|
1787
|
+
/* import */ var styled_components__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_0);
|
|
1788
|
+
/* import */ var _ledgerhq_ui_shared__rspack_import_1 = __webpack_require__(2993);
|
|
1789
|
+
/* import */ var _ledgerhq_ui_shared__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(_ledgerhq_ui_shared__rspack_import_1);
|
|
1790
|
+
|
|
1791
|
+
|
|
1792
|
+
const breakpoints = {
|
|
1793
|
+
sm: "640px",
|
|
1794
|
+
md: "768px",
|
|
1795
|
+
lg: "1024px",
|
|
1796
|
+
xl: "1280px",
|
|
1797
|
+
xxl: "1536px"
|
|
1798
|
+
};
|
|
1799
|
+
const space = [
|
|
1800
|
+
/* space indexes:
|
|
1801
|
+
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 */ 0,
|
|
1802
|
+
2,
|
|
1803
|
+
4,
|
|
1804
|
+
8,
|
|
1805
|
+
10,
|
|
1806
|
+
12,
|
|
1807
|
+
16,
|
|
1808
|
+
20,
|
|
1809
|
+
24,
|
|
1810
|
+
28,
|
|
1811
|
+
32,
|
|
1812
|
+
36,
|
|
1813
|
+
40,
|
|
1814
|
+
44,
|
|
1815
|
+
48,
|
|
1816
|
+
52,
|
|
1817
|
+
56,
|
|
1818
|
+
60,
|
|
1819
|
+
64,
|
|
1820
|
+
68,
|
|
1821
|
+
72,
|
|
1822
|
+
76
|
|
1823
|
+
];
|
|
1824
|
+
const fontSizes = [
|
|
1825
|
+
8,
|
|
1826
|
+
10,
|
|
1827
|
+
11,
|
|
1828
|
+
12,
|
|
1829
|
+
13,
|
|
1830
|
+
14,
|
|
1831
|
+
16,
|
|
1832
|
+
20,
|
|
1833
|
+
24,
|
|
1834
|
+
28,
|
|
1835
|
+
32,
|
|
1836
|
+
36
|
|
1837
|
+
];
|
|
1838
|
+
[fontSizes.micro, fontSizes.tiny, fontSizes.extraSmall, fontSizes.small, fontSizes.paragraph, fontSizes.body, fontSizes.large, fontSizes.h5, fontSizes.h4, fontSizes.h3, fontSizes.h2, fontSizes.h1] = fontSizes;
|
|
1839
|
+
fontSizes.largeLineHeight = fontSizes.large;
|
|
1840
|
+
fontSizes.bodyLineHeight = fontSizes.body;
|
|
1841
|
+
fontSizes.paragraphLineHeight = fontSizes.paragraph;
|
|
1842
|
+
fontSizes.subtitle = fontSizes.extraSmall;
|
|
1843
|
+
fontSizes.h1Inter = fontSizes.h1;
|
|
1844
|
+
fontSizes.h2Inter = fontSizes.h2;
|
|
1845
|
+
fontSizes.h3Inter = fontSizes.h3;
|
|
1846
|
+
fontSizes.h4Inter = fontSizes.h4;
|
|
1847
|
+
fontSizes.h5Inter = fontSizes.h5;
|
|
1848
|
+
const fontWeights = {
|
|
1849
|
+
extraLight: "100",
|
|
1850
|
+
light: "300",
|
|
1851
|
+
regular: "400",
|
|
1852
|
+
medium: "500",
|
|
1853
|
+
semiBold: "600",
|
|
1854
|
+
bold: "700",
|
|
1855
|
+
extraBold: "800"
|
|
1856
|
+
};
|
|
1857
|
+
const radii = [
|
|
1858
|
+
0,
|
|
1859
|
+
4,
|
|
1860
|
+
8,
|
|
1861
|
+
12,
|
|
1862
|
+
16,
|
|
1863
|
+
20
|
|
1864
|
+
];
|
|
1865
|
+
const shadows = [
|
|
1866
|
+
"0 4px 8px 0 rgba(0, 0, 0, 0.03)"
|
|
1867
|
+
];
|
|
1868
|
+
const zIndexes = [
|
|
1869
|
+
-1,
|
|
1870
|
+
0,
|
|
1871
|
+
1,
|
|
1872
|
+
9,
|
|
1873
|
+
10,
|
|
1874
|
+
90,
|
|
1875
|
+
100,
|
|
1876
|
+
900,
|
|
1877
|
+
1000
|
|
1878
|
+
];
|
|
1879
|
+
// Those fonts are now defined in global.css, this is just a mapping for styled-system
|
|
1880
|
+
const fontFamilies = {
|
|
1881
|
+
Inter: {
|
|
1882
|
+
ExtraLight: {
|
|
1883
|
+
weight: 100,
|
|
1884
|
+
style: "normal"
|
|
1885
|
+
},
|
|
1886
|
+
Light: {
|
|
1887
|
+
weight: 300,
|
|
1888
|
+
style: "normal"
|
|
1889
|
+
},
|
|
1890
|
+
Regular: {
|
|
1891
|
+
weight: 400,
|
|
1892
|
+
style: "normal"
|
|
1893
|
+
},
|
|
1894
|
+
Medium: {
|
|
1895
|
+
weight: 500,
|
|
1896
|
+
style: "normal"
|
|
1897
|
+
},
|
|
1898
|
+
SemiBold: {
|
|
1899
|
+
weight: 600,
|
|
1900
|
+
style: "normal"
|
|
1901
|
+
},
|
|
1902
|
+
Bold: {
|
|
1903
|
+
weight: 700,
|
|
1904
|
+
style: "normal"
|
|
1905
|
+
},
|
|
1906
|
+
ExtraBold: {
|
|
1907
|
+
weight: 800,
|
|
1908
|
+
style: "normal"
|
|
1909
|
+
}
|
|
1910
|
+
},
|
|
1911
|
+
Alpha: {
|
|
1912
|
+
Medium: {
|
|
1913
|
+
weight: 500,
|
|
1914
|
+
style: "normal"
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
};
|
|
1918
|
+
const animationDuration = "0.33s";
|
|
1919
|
+
const easings = {
|
|
1920
|
+
outQuadratic: "cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
1921
|
+
};
|
|
1922
|
+
const transition = (properties = [
|
|
1923
|
+
"all"
|
|
1924
|
+
], duration = animationDuration, easing = easings.outQuadratic)=>(0,styled_components__rspack_import_0.css)`
|
|
1925
|
+
transition-property: ${properties.join(",")};
|
|
1926
|
+
transition-duration: ${duration};
|
|
1927
|
+
transition-timing-function: ${easing};
|
|
1928
|
+
`;
|
|
1929
|
+
const fadeIn = (0,styled_components__rspack_import_0.keyframes)`
|
|
1930
|
+
0% {
|
|
1931
|
+
opacity: 0;
|
|
1932
|
+
}
|
|
1933
|
+
100% {
|
|
1934
|
+
opacity: 1;
|
|
1935
|
+
}
|
|
1936
|
+
`;
|
|
1937
|
+
const fadeOut = (0,styled_components__rspack_import_0.keyframes)`
|
|
1938
|
+
0% {
|
|
1939
|
+
opacity: 1;
|
|
1940
|
+
}
|
|
1941
|
+
100% {
|
|
1942
|
+
opacity: 0;
|
|
1943
|
+
}
|
|
1944
|
+
`;
|
|
1945
|
+
const fadeInGrowX = (0,styled_components__rspack_import_0.keyframes)`
|
|
1946
|
+
0% {
|
|
1947
|
+
opacity: 0;
|
|
1948
|
+
transform: scaleX(0);
|
|
1949
|
+
}
|
|
1950
|
+
100% {
|
|
1951
|
+
opacity: 1;
|
|
1952
|
+
transform: scaleX(1);
|
|
1953
|
+
}
|
|
1954
|
+
`;
|
|
1955
|
+
const fadeInUp = (0,styled_components__rspack_import_0.keyframes)`
|
|
1956
|
+
0% {
|
|
1957
|
+
opacity: 0;
|
|
1958
|
+
transform: translateY(66%);
|
|
1959
|
+
}
|
|
1960
|
+
100% {
|
|
1961
|
+
opacity: 1;
|
|
1962
|
+
transform: translateY(0%);
|
|
1963
|
+
}
|
|
1964
|
+
`;
|
|
1965
|
+
const animations = {
|
|
1966
|
+
fadeIn: ()=>(0,styled_components__rspack_import_0.css)`
|
|
1967
|
+
${fadeIn} ${animationDuration} ${easings.outQuadratic} forwards
|
|
1968
|
+
`,
|
|
1969
|
+
fadeOut: ()=>(0,styled_components__rspack_import_0.css)`
|
|
1970
|
+
${fadeOut} ${animationDuration} ${easings.outQuadratic} forwards
|
|
1971
|
+
`,
|
|
1972
|
+
fadeInGrowX: ()=>(0,styled_components__rspack_import_0.css)`
|
|
1973
|
+
${fadeInGrowX} 0.6s ${easings.outQuadratic} forwards
|
|
1974
|
+
`,
|
|
1975
|
+
fadeInUp: ()=>(0,styled_components__rspack_import_0.css)`
|
|
1976
|
+
${fadeInUp} ${animationDuration} ${easings.outQuadratic} forwards
|
|
1977
|
+
`
|
|
1978
|
+
};
|
|
1979
|
+
const overflow = {
|
|
1980
|
+
x: (0,styled_components__rspack_import_0.css)`
|
|
1981
|
+
overflow-y: hidden;
|
|
1982
|
+
overflow-x: scroll;
|
|
1983
|
+
will-change: transform;
|
|
1984
|
+
&:hover {
|
|
1985
|
+
--track-color: ${(p)=>p.theme.colors.neutral.c30};
|
|
1986
|
+
}
|
|
1987
|
+
`,
|
|
1988
|
+
y: (0,styled_components__rspack_import_0.css)`
|
|
1989
|
+
overflow-x: hidden;
|
|
1990
|
+
overflow-y: scroll;
|
|
1991
|
+
will-change: transform;
|
|
1992
|
+
&:hover {
|
|
1993
|
+
--track-color: ${(p)=>p.theme.colors.neutral.c30};
|
|
1994
|
+
}
|
|
1995
|
+
`,
|
|
1996
|
+
yAuto: (0,styled_components__rspack_import_0.css)`
|
|
1997
|
+
overflow-x: hidden;
|
|
1998
|
+
overflow-y: auto;
|
|
1999
|
+
will-change: transform;
|
|
2000
|
+
&:hover {
|
|
2001
|
+
--track-color: ${(p)=>p.theme.colors.neutral.c30};
|
|
2002
|
+
}
|
|
2003
|
+
`,
|
|
2004
|
+
xy: (0,styled_components__rspack_import_0.css)`
|
|
2005
|
+
overflow: scroll;
|
|
2006
|
+
will-change: transform;
|
|
2007
|
+
&:hover {
|
|
2008
|
+
--track-color: ${(p)=>p.theme.colors.neutral.c30};
|
|
2009
|
+
}
|
|
2010
|
+
`,
|
|
2011
|
+
trackSize: 12
|
|
2012
|
+
};
|
|
2013
|
+
const theme = {
|
|
2014
|
+
theme: "light",
|
|
2015
|
+
sizes: {
|
|
2016
|
+
drawer: {
|
|
2017
|
+
side: {
|
|
2018
|
+
big: {
|
|
2019
|
+
width: 580
|
|
2020
|
+
},
|
|
2021
|
+
small: {
|
|
2022
|
+
width: 420
|
|
2023
|
+
}
|
|
2024
|
+
},
|
|
2025
|
+
popin: {
|
|
2026
|
+
min: {
|
|
2027
|
+
height: 158,
|
|
2028
|
+
width: 462
|
|
2029
|
+
},
|
|
2030
|
+
max: {
|
|
2031
|
+
height: 522,
|
|
2032
|
+
width: 622
|
|
2033
|
+
}
|
|
2034
|
+
}
|
|
2035
|
+
},
|
|
2036
|
+
topBarHeight: 58,
|
|
2037
|
+
sideBarWidth: 230
|
|
2038
|
+
},
|
|
2039
|
+
radii,
|
|
2040
|
+
fontFamilies,
|
|
2041
|
+
fontSizes,
|
|
2042
|
+
fontWeights,
|
|
2043
|
+
space,
|
|
2044
|
+
shadows,
|
|
2045
|
+
colors: _ledgerhq_ui_shared__rspack_import_1.palettes.light,
|
|
2046
|
+
animations,
|
|
2047
|
+
overflow,
|
|
2048
|
+
transition,
|
|
2049
|
+
zIndexes,
|
|
2050
|
+
breakpoints
|
|
2051
|
+
};
|
|
2052
|
+
/* unused export default */ var __rspack_default_export = ((/* unused pure expression or super */ null && (theme)));
|
|
2053
|
+
|
|
2054
|
+
|
|
2055
|
+
},
|
|
2056
|
+
4505(module) {
|
|
2057
|
+
module.exports = require("@ledgerhq/crypto-icons");
|
|
2058
|
+
|
|
2059
|
+
},
|
|
2060
|
+
7304(module) {
|
|
2061
|
+
module.exports = require("@ledgerhq/icons-ui/react");
|
|
2062
|
+
|
|
2063
|
+
},
|
|
2064
|
+
9979(module) {
|
|
2065
|
+
module.exports = require("@ledgerhq/icons-ui/reactLegacy");
|
|
2066
|
+
|
|
2067
|
+
},
|
|
2068
|
+
2993(module) {
|
|
2069
|
+
module.exports = require("@ledgerhq/ui-shared");
|
|
2070
|
+
|
|
2071
|
+
},
|
|
2072
|
+
2015(module) {
|
|
2073
|
+
module.exports = require("react");
|
|
2074
|
+
|
|
2075
|
+
},
|
|
2076
|
+
2770(module) {
|
|
2077
|
+
module.exports = require("styled-components");
|
|
2078
|
+
|
|
2079
|
+
},
|
|
2080
|
+
9351(module) {
|
|
2081
|
+
module.exports = require("styled-system");
|
|
2082
|
+
|
|
2083
|
+
},
|
|
2084
|
+
|
|
2085
|
+
});
|
|
2086
|
+
// The module cache
|
|
2087
|
+
var __webpack_module_cache__ = {};
|
|
2088
|
+
|
|
2089
|
+
// The require function
|
|
2090
|
+
function __webpack_require__(moduleId) {
|
|
2091
|
+
|
|
2092
|
+
// Check if module is in cache
|
|
2093
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
2094
|
+
if (cachedModule !== undefined) {
|
|
2095
|
+
return cachedModule.exports;
|
|
2096
|
+
}
|
|
2097
|
+
// Create a new module (and put it into the cache)
|
|
2098
|
+
var module = (__webpack_module_cache__[moduleId] = {
|
|
2099
|
+
exports: {}
|
|
2100
|
+
});
|
|
2101
|
+
// Execute the module function
|
|
2102
|
+
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
2103
|
+
|
|
2104
|
+
// Return the exports of the module
|
|
2105
|
+
return module.exports;
|
|
2106
|
+
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2109
|
+
// webpack/runtime/compat_get_default_export
|
|
2110
|
+
(() => {
|
|
2111
|
+
// getDefaultExport function for compatibility with non-ESM modules
|
|
2112
|
+
__webpack_require__.n = (module) => {
|
|
2113
|
+
var getter = module && module.__esModule ?
|
|
2114
|
+
() => (module['default']) :
|
|
2115
|
+
() => (module);
|
|
2116
|
+
__webpack_require__.d(getter, { a: getter });
|
|
2117
|
+
return getter;
|
|
2118
|
+
};
|
|
2119
|
+
|
|
2120
|
+
})();
|
|
2121
|
+
// webpack/runtime/define_property_getters
|
|
2122
|
+
(() => {
|
|
2123
|
+
__webpack_require__.d = (exports, definition) => {
|
|
2124
|
+
for(var key in definition) {
|
|
2125
|
+
if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
2126
|
+
Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
};
|
|
2130
|
+
})();
|
|
2131
|
+
// webpack/runtime/has_own_property
|
|
2132
|
+
(() => {
|
|
2133
|
+
__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
2134
|
+
})();
|
|
2135
|
+
// webpack/runtime/make_namespace_object
|
|
2136
|
+
(() => {
|
|
2137
|
+
// define __esModule on exports
|
|
2138
|
+
__webpack_require__.r = (exports) => {
|
|
2139
|
+
if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
2140
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2141
|
+
}
|
|
2142
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2143
|
+
};
|
|
2144
|
+
})();
|
|
2145
|
+
var __webpack_exports__ = {};
|
|
2146
|
+
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
|
|
2147
|
+
(() => {
|
|
2148
|
+
// ESM COMPAT FLAG
|
|
2149
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2150
|
+
|
|
2151
|
+
// EXPORTS
|
|
2152
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
2153
|
+
"default": () => (/* binding */ AccountItem_stories),
|
|
2154
|
+
TestWithArrow: () => (/* binding */ TestWithArrow),
|
|
2155
|
+
TestWithEdit: () => (/* binding */ TestWithEdit),
|
|
2156
|
+
TestWithoutProtocol: () => (/* binding */ TestWithoutProtocol),
|
|
2157
|
+
TestWithCheckbox: () => (/* binding */ TestWithCheckbox),
|
|
2158
|
+
Default: () => (/* binding */ Default),
|
|
2159
|
+
TestAccount: () => (/* binding */ TestAccount),
|
|
2160
|
+
TestWithoutAddressIcon: () => (/* binding */ TestWithoutAddressIcon)
|
|
2161
|
+
});
|
|
2162
|
+
|
|
2163
|
+
;// CONCATENATED MODULE: external "@storybook/test"
|
|
2164
|
+
const test_namespaceObject = require("@storybook/test");
|
|
2165
|
+
// EXTERNAL MODULE: ./src/pre-ldls/components/AccountItem/AccountItem.tsx
|
|
2166
|
+
var AccountItem = __webpack_require__(2136);
|
|
2167
|
+
;// CONCATENATED MODULE: ./src/pre-ldls/components/AccountItem/AccountItem.stories.tsx
|
|
2168
|
+
|
|
2169
|
+
|
|
2170
|
+
const onClick = (0,test_namespaceObject.fn)();
|
|
2171
|
+
const meta = {
|
|
2172
|
+
component: AccountItem.AccountItem,
|
|
2173
|
+
title: "PreLdls/Components/AccountItem",
|
|
2174
|
+
tags: [
|
|
2175
|
+
"autodocs"
|
|
2176
|
+
],
|
|
2177
|
+
args: {
|
|
2178
|
+
onClick: onClick,
|
|
2179
|
+
account: {
|
|
2180
|
+
address: "n4A9323232Zgty",
|
|
2181
|
+
balance: "0.118 ETH",
|
|
2182
|
+
cryptoId: "bitcoin",
|
|
2183
|
+
fiatValue: "$5,969.83",
|
|
2184
|
+
id: "12345",
|
|
2185
|
+
name: "Main BTC",
|
|
2186
|
+
ticker: "btc"
|
|
2187
|
+
}
|
|
2188
|
+
}
|
|
2189
|
+
};
|
|
2190
|
+
/* export default */ const AccountItem_stories = (meta);
|
|
52
2191
|
const Default = {};
|
|
53
2192
|
const TestAccount = {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
2193
|
+
args: {
|
|
2194
|
+
onClick: onClick,
|
|
2195
|
+
account: {
|
|
2196
|
+
address: "n4A9323232Zgty",
|
|
2197
|
+
balance: "0.118 BTC",
|
|
2198
|
+
cryptoId: "bitcoin",
|
|
2199
|
+
fiatValue: "$5,969.83",
|
|
2200
|
+
id: "12345",
|
|
2201
|
+
name: "Main BTC",
|
|
2202
|
+
protocol: "Native Segwit",
|
|
2203
|
+
ticker: "btc"
|
|
2204
|
+
}
|
|
2205
|
+
},
|
|
2206
|
+
play: async ({ canvasElement })=>{
|
|
2207
|
+
const canvas = (0,test_namespaceObject.within)(canvasElement);
|
|
2208
|
+
const name = canvas.getByText("Main BTC");
|
|
2209
|
+
const protocol = canvas.getByTestId("tag");
|
|
2210
|
+
const address = canvas.getByText("n4A93...2Zgty");
|
|
2211
|
+
const addressIcon = canvas.getByRole("img");
|
|
2212
|
+
const fiatValue = canvas.getByText("$5,969.83");
|
|
2213
|
+
const balance = canvas.getByText("0.118 BTC");
|
|
2214
|
+
await (0,test_namespaceObject.expect)(name).toBeInTheDocument();
|
|
2215
|
+
await (0,test_namespaceObject.expect)(protocol).toBeInTheDocument();
|
|
2216
|
+
await (0,test_namespaceObject.expect)(protocol).toHaveTextContent("Native Segwit");
|
|
2217
|
+
await (0,test_namespaceObject.expect)(address).toBeInTheDocument();
|
|
2218
|
+
await (0,test_namespaceObject.expect)(addressIcon).toBeInTheDocument();
|
|
2219
|
+
await (0,test_namespaceObject.expect)(fiatValue).toBeInTheDocument();
|
|
2220
|
+
await (0,test_namespaceObject.expect)(balance).toBeInTheDocument();
|
|
2221
|
+
}
|
|
83
2222
|
};
|
|
84
2223
|
const TestWithoutProtocol = {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
2224
|
+
args: {
|
|
2225
|
+
onClick: onClick,
|
|
2226
|
+
account: {
|
|
2227
|
+
address: "n4A9323232Zgty",
|
|
2228
|
+
balance: "0.118 BTC",
|
|
2229
|
+
cryptoId: "bitcoin",
|
|
2230
|
+
fiatValue: "$5,969.83",
|
|
2231
|
+
id: "21345",
|
|
2232
|
+
name: "Main BTC",
|
|
2233
|
+
ticker: "btc"
|
|
2234
|
+
}
|
|
2235
|
+
},
|
|
2236
|
+
play: async ({ canvasElement })=>{
|
|
2237
|
+
const canvas = (0,test_namespaceObject.within)(canvasElement);
|
|
2238
|
+
const protocol = canvas.queryByTestId("tag");
|
|
2239
|
+
await (0,test_namespaceObject.expect)(protocol).not.toBeInTheDocument();
|
|
2240
|
+
}
|
|
102
2241
|
};
|
|
103
2242
|
const TestWithoutAddressIcon = {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
2243
|
+
args: {
|
|
2244
|
+
onClick: onClick,
|
|
2245
|
+
account: {
|
|
2246
|
+
address: "n4A9323232Zgty",
|
|
2247
|
+
balance: "0.118 BTC",
|
|
2248
|
+
fiatValue: "$5,969.83",
|
|
2249
|
+
id: "bitcoin",
|
|
2250
|
+
name: "Main BTC"
|
|
2251
|
+
},
|
|
2252
|
+
showIcon: false
|
|
2253
|
+
},
|
|
2254
|
+
play: async ({ canvasElement })=>{
|
|
2255
|
+
const canvas = (0,test_namespaceObject.within)(canvasElement);
|
|
2256
|
+
const addressIcon = canvas.queryByRole("img");
|
|
2257
|
+
await (0,test_namespaceObject.expect)(addressIcon).not.toBeInTheDocument();
|
|
2258
|
+
}
|
|
120
2259
|
};
|
|
121
2260
|
const TestWithCheckbox = {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
2261
|
+
args: {
|
|
2262
|
+
account: {
|
|
2263
|
+
address: "n4A9323232Zgty",
|
|
2264
|
+
balance: "0.118",
|
|
2265
|
+
cryptoId: "bitcoin",
|
|
2266
|
+
fiatValue: "$5,969.83",
|
|
2267
|
+
id: "12345",
|
|
2268
|
+
name: "Main BTC",
|
|
2269
|
+
ticker: "btc"
|
|
2270
|
+
},
|
|
2271
|
+
onClick,
|
|
2272
|
+
rightElement: {
|
|
2273
|
+
type: "checkbox",
|
|
2274
|
+
checkbox: {
|
|
2275
|
+
isChecked: false,
|
|
2276
|
+
name: "checkbox",
|
|
2277
|
+
onChange: ()=>{}
|
|
2278
|
+
}
|
|
139
2279
|
}
|
|
140
|
-
|
|
2280
|
+
},
|
|
2281
|
+
play: async ({ canvasElement })=>{
|
|
2282
|
+
const canvas = (0,test_namespaceObject.within)(canvasElement);
|
|
2283
|
+
const arrowIcon = canvas.getByTestId("right-element-checkbox");
|
|
2284
|
+
await (0,test_namespaceObject.expect)(arrowIcon).toBeInTheDocument();
|
|
141
2285
|
}
|
|
142
|
-
},
|
|
143
|
-
play: async ({ canvasElement }) => {
|
|
144
|
-
const canvas = (0, import_test.within)(canvasElement);
|
|
145
|
-
const arrowIcon = canvas.getByTestId("right-element-checkbox");
|
|
146
|
-
await (0, import_test.expect)(arrowIcon).toBeInTheDocument();
|
|
147
|
-
}
|
|
148
2286
|
};
|
|
149
2287
|
const TestWithArrow = {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
2288
|
+
args: {
|
|
2289
|
+
account: {
|
|
2290
|
+
address: "n4A9323232Zgty",
|
|
2291
|
+
cryptoId: "bitcoin",
|
|
2292
|
+
fiatValue: "$5,969.83",
|
|
2293
|
+
id: "12345",
|
|
2294
|
+
name: "Main BTC",
|
|
2295
|
+
ticker: "btc"
|
|
2296
|
+
},
|
|
2297
|
+
rightElement: {
|
|
2298
|
+
type: "arrow"
|
|
2299
|
+
}
|
|
2300
|
+
},
|
|
2301
|
+
play: async ({ canvasElement })=>{
|
|
2302
|
+
const canvas = (0,test_namespaceObject.within)(canvasElement);
|
|
2303
|
+
const arrowIcon = canvas.getByTestId("right-element-arrow-icon");
|
|
2304
|
+
await (0,test_namespaceObject.expect)(arrowIcon).toBeInTheDocument();
|
|
2305
|
+
}
|
|
168
2306
|
};
|
|
169
2307
|
const TestWithEdit = {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
2308
|
+
args: {
|
|
2309
|
+
account: {
|
|
2310
|
+
address: "n4A9323232Zgty",
|
|
2311
|
+
cryptoId: "bitcoin",
|
|
2312
|
+
fiatValue: "$5,969.83",
|
|
2313
|
+
id: "12345",
|
|
2314
|
+
name: "Main BTC",
|
|
2315
|
+
ticker: "btc"
|
|
2316
|
+
},
|
|
2317
|
+
onClick: undefined,
|
|
2318
|
+
rightElement: {
|
|
2319
|
+
type: "edit",
|
|
2320
|
+
onClick
|
|
2321
|
+
}
|
|
2322
|
+
},
|
|
2323
|
+
play: async ({ canvasElement })=>{
|
|
2324
|
+
const canvas = (0,test_namespaceObject.within)(canvasElement);
|
|
2325
|
+
const arrowIcon = canvas.getByTestId("right-element-edit-icon");
|
|
2326
|
+
await (0,test_namespaceObject.expect)(arrowIcon).toBeInTheDocument();
|
|
2327
|
+
}
|
|
190
2328
|
};
|
|
191
|
-
|
|
2329
|
+
|
|
2330
|
+
})();
|
|
2331
|
+
|
|
2332
|
+
module.exports = __webpack_exports__;
|
|
2333
|
+
})()
|
|
2334
|
+
;
|
|
2335
|
+
//# sourceMappingURL=AccountItem.stories.js.map
|