@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,44 +1,1225 @@
|
|
|
1
|
+
(() => {
|
|
1
2
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
3
|
+
var __webpack_modules__ = ({
|
|
4
|
+
348(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
5
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
6
|
+
"default": () => (__rspack_default_export)
|
|
7
|
+
});
|
|
8
|
+
/* import */ var _styled__rspack_import_1 = __webpack_require__(7680);
|
|
9
|
+
/* import */ var styled_system__rspack_import_0 = __webpack_require__(9351);
|
|
10
|
+
/* import */ var styled_system__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_0);
|
|
11
|
+
/* import */ var _styles_styled_fontFamily__rspack_import_3 = __webpack_require__(3364);
|
|
12
|
+
/* import */ var _styles__rspack_import_2 = __webpack_require__(4368);
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
const uppercase = (0,styled_system__rspack_import_0.system)({
|
|
18
|
+
uppercase: {
|
|
19
|
+
property: "textTransform",
|
|
20
|
+
transform: (value)=>value ? "uppercase" : "none"
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const Text = _styled__rspack_import_1["default"].span.attrs(({ variant = "body", fontSize, color })=>({
|
|
24
|
+
fontSize: fontSize ? fontSize : variant,
|
|
25
|
+
color: color || "neutral.c100"
|
|
26
|
+
}))`
|
|
27
|
+
font-weight: 500;
|
|
28
|
+
white-space: ${(props)=>props.whiteSpace ?? "normal"};
|
|
29
|
+
${(p)=>_styles__rspack_import_2.textVariantStyle[p.variant || "body"]}
|
|
30
|
+
${(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)({
|
|
31
|
+
textOverflow: true
|
|
32
|
+
}))}
|
|
33
|
+
${(p)=>p.textTransform ? `text-transform: ${p.textTransform};` : ""}
|
|
34
|
+
`;
|
|
35
|
+
/* export default */ const __rspack_default_export = (Text);
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
},
|
|
39
|
+
4368(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
40
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
41
|
+
textVariantStyle: () => (textVariantStyle)
|
|
42
|
+
});
|
|
43
|
+
/* import */ var styled_components__rspack_import_0 = __webpack_require__(2770);
|
|
44
|
+
/* import */ var styled_components__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_0);
|
|
45
|
+
|
|
46
|
+
const getFontSource = (name)=>(props)=>{
|
|
47
|
+
const fontsPath = props.fontsPath ?? "assets/fonts";
|
|
48
|
+
const fontName = props.fontMappings && props.fontMappings(name) || `${name}.woff2`;
|
|
49
|
+
return `url("${fontsPath}/${fontName}") format("woff2")`;
|
|
50
|
+
};
|
|
51
|
+
const fontStyles = (0,styled_components__rspack_import_0.css)`
|
|
52
|
+
@font-face {
|
|
53
|
+
font-family: "Inter";
|
|
54
|
+
src: ${getFontSource("Inter-ExtraLight-BETA")};
|
|
55
|
+
font-weight: 100;
|
|
56
|
+
font-style: normal;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@font-face {
|
|
60
|
+
font-family: "Inter";
|
|
61
|
+
src: ${getFontSource("Inter-Light-BETA")};
|
|
62
|
+
font-weight: 300;
|
|
63
|
+
font-style: normal;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@font-face {
|
|
67
|
+
font-family: "Inter";
|
|
68
|
+
src: ${getFontSource("Inter-Regular")};
|
|
69
|
+
font-weight: 400;
|
|
70
|
+
font-style: normal;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@font-face {
|
|
74
|
+
font-family: "Inter";
|
|
75
|
+
src: ${getFontSource("Inter-Medium")};
|
|
76
|
+
font-weight: 500;
|
|
77
|
+
font-style: normal;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@font-face {
|
|
81
|
+
font-family: "Inter";
|
|
82
|
+
src: ${getFontSource("Inter-SemiBold")};
|
|
83
|
+
font-weight: 600;
|
|
84
|
+
font-style: normal;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@font-face {
|
|
88
|
+
font-family: "Inter";
|
|
89
|
+
src: ${getFontSource("Inter-ExtraBold")};
|
|
90
|
+
font-weight: 900;
|
|
91
|
+
font-style: normal;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@font-face {
|
|
95
|
+
font-family: "Alpha";
|
|
96
|
+
src: ${getFontSource("HMAlphaMono-Medium")};
|
|
97
|
+
font-weight: 500;
|
|
98
|
+
font-style: normal;
|
|
99
|
+
}
|
|
100
|
+
`;
|
|
101
|
+
const textVariantStyle = {
|
|
102
|
+
h1: {
|
|
103
|
+
fontFamily: "Alpha, Inter, Sans",
|
|
104
|
+
fontWeight: 500,
|
|
105
|
+
"text-transform": "uppercase"
|
|
106
|
+
},
|
|
107
|
+
h1Inter: {
|
|
108
|
+
fontFamily: "Inter, Sans",
|
|
109
|
+
fontWeight: 500,
|
|
110
|
+
"text-transform": "uppercase"
|
|
111
|
+
},
|
|
112
|
+
h2: {
|
|
113
|
+
fontFamily: "Alpha, Inter, Sans",
|
|
114
|
+
fontWeight: 500,
|
|
115
|
+
"text-transform": "uppercase"
|
|
116
|
+
},
|
|
117
|
+
h2Inter: {
|
|
118
|
+
fontFamily: "Inter, Sans",
|
|
119
|
+
fontWeight: 500,
|
|
120
|
+
"text-transform": "uppercase"
|
|
121
|
+
},
|
|
122
|
+
h3: {
|
|
123
|
+
fontFamily: "Alpha, Inter, Sans",
|
|
124
|
+
fontWeight: 500,
|
|
125
|
+
"text-transform": "uppercase"
|
|
126
|
+
},
|
|
127
|
+
h3Inter: {
|
|
128
|
+
fontFamily: "Inter, Sans",
|
|
129
|
+
fontWeight: 500
|
|
130
|
+
},
|
|
131
|
+
h4: {
|
|
132
|
+
fontFamily: "Alpha, Inter, Sans",
|
|
133
|
+
fontWeight: 500,
|
|
134
|
+
"text-transform": "uppercase"
|
|
135
|
+
},
|
|
136
|
+
h4Inter: {
|
|
137
|
+
fontFamily: "Inter, Sans",
|
|
138
|
+
fontWeight: 600
|
|
139
|
+
},
|
|
140
|
+
h5: {
|
|
141
|
+
fontFamily: "Alpha, Inter, Sans",
|
|
142
|
+
fontWeight: 500,
|
|
143
|
+
"text-transform": "uppercase"
|
|
144
|
+
},
|
|
145
|
+
h5Inter: {
|
|
146
|
+
fontFamily: "Inter, Sans",
|
|
147
|
+
fontWeight: 500
|
|
148
|
+
},
|
|
149
|
+
large: {
|
|
150
|
+
fontFamily: "Inter, Sans"
|
|
151
|
+
},
|
|
152
|
+
largeLineHeight: {
|
|
153
|
+
fontFamily: "Inter, Sans",
|
|
154
|
+
lineHeight: 1.7
|
|
155
|
+
},
|
|
156
|
+
body: {
|
|
157
|
+
fontFamily: "Inter, Sans"
|
|
158
|
+
},
|
|
159
|
+
bodyLineHeight: {
|
|
160
|
+
fontFamily: "Inter, Sans",
|
|
161
|
+
lineHeight: 1.7
|
|
162
|
+
},
|
|
163
|
+
paragraph: {
|
|
164
|
+
fontFamily: "Inter, Sans"
|
|
165
|
+
},
|
|
166
|
+
paragraphLineHeight: {
|
|
167
|
+
fontFamily: "Inter, Sans",
|
|
168
|
+
lineHeight: 1.7
|
|
169
|
+
},
|
|
170
|
+
small: {
|
|
171
|
+
fontFamily: "Inter, Sans"
|
|
172
|
+
},
|
|
173
|
+
extraSmall: {
|
|
174
|
+
fontFamily: "Inter, Sans"
|
|
175
|
+
},
|
|
176
|
+
tiny: {
|
|
177
|
+
fontFamily: "Inter, Sans"
|
|
178
|
+
},
|
|
179
|
+
micro: {
|
|
180
|
+
fontFamily: "Inter, Sans"
|
|
181
|
+
},
|
|
182
|
+
subtitle: {
|
|
183
|
+
fontFamily: "Inter, Sans",
|
|
184
|
+
fontWeight: 600,
|
|
185
|
+
"text-transform": "uppercase"
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
},
|
|
191
|
+
1133(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
192
|
+
|
|
193
|
+
// EXPORTS
|
|
194
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
195
|
+
"default": () => (/* binding */ cta_Button)
|
|
196
|
+
});
|
|
197
|
+
|
|
198
|
+
// UNUSED EXPORTS: ButtonUnstyled, ButtonExpand, buttonSizeStyle, Base
|
|
199
|
+
|
|
200
|
+
;// CONCATENATED MODULE: external "@ledgerhq/icons-ui/reactLegacy/ChevronBottomMedium"
|
|
201
|
+
const ChevronBottomMedium_namespaceObject = require("@ledgerhq/icons-ui/reactLegacy/ChevronBottomMedium");
|
|
202
|
+
var ChevronBottomMedium_default = /*#__PURE__*/__webpack_require__.n(ChevronBottomMedium_namespaceObject);
|
|
203
|
+
// EXTERNAL MODULE: external "react"
|
|
204
|
+
var external_react_ = __webpack_require__(2015);
|
|
205
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
206
|
+
// EXTERNAL MODULE: external "styled-components"
|
|
207
|
+
var external_styled_components_ = __webpack_require__(2770);
|
|
208
|
+
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
209
|
+
// EXTERNAL MODULE: external "styled-system"
|
|
210
|
+
var external_styled_system_ = __webpack_require__(9351);
|
|
211
|
+
// EXTERNAL MODULE: ./src/styles/helpers.ts + 1 modules
|
|
212
|
+
var helpers = __webpack_require__(4336);
|
|
213
|
+
// EXTERNAL MODULE: ./src/styles/styled/fontFamily.ts
|
|
214
|
+
var fontFamily = __webpack_require__(3364);
|
|
215
|
+
// EXTERNAL MODULE: ./src/styles/theme.ts
|
|
216
|
+
var theme = __webpack_require__(5548);
|
|
217
|
+
// EXTERNAL MODULE: ./src/components/styled.ts
|
|
218
|
+
var styled = __webpack_require__(7680);
|
|
219
|
+
;// CONCATENATED MODULE: ./src/components/cta/Button/index.tsx
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
const IconContainer = (external_styled_components_default()).div`
|
|
229
|
+
display: inline-block;
|
|
230
|
+
${(p)=>`${p.iconPosition === "left" ? "margin-right" : "margin-left"}: ${p.theme.space[4]}px;`}
|
|
231
|
+
padding-top: 0.2em;
|
|
232
|
+
`;
|
|
233
|
+
const getVariantColors = (p)=>({
|
|
234
|
+
main: {
|
|
235
|
+
outline: `
|
|
236
|
+
border-color: ${p.theme.colors.neutral.c100};
|
|
237
|
+
color: ${p.theme.colors.neutral.c100};
|
|
238
|
+
background-color: transparent;
|
|
239
|
+
&:hover, &:focus {
|
|
240
|
+
background-color: ${(0,helpers.rgba)(p.theme.colors.neutral.c100, 0.03)};
|
|
241
|
+
}
|
|
242
|
+
&:active {
|
|
243
|
+
background-color: ${(0,helpers.rgba)(p.theme.colors.neutral.c100, 0.05)};
|
|
244
|
+
}
|
|
245
|
+
`,
|
|
246
|
+
filled: `
|
|
247
|
+
color: ${p.theme.colors.neutral.c00};
|
|
248
|
+
background-color: ${p.theme.colors.neutral.c100};
|
|
249
|
+
&:hover, &:focus {
|
|
250
|
+
background-color: ${p.theme.colors.neutral.c90};
|
|
251
|
+
}
|
|
252
|
+
`
|
|
253
|
+
},
|
|
254
|
+
shade: `
|
|
255
|
+
border-color: ${p.theme.colors.neutral.c40};
|
|
256
|
+
color: ${p.theme.colors.neutral.c100};
|
|
257
|
+
&:focus {
|
|
258
|
+
border-color: ${p.theme.colors.primary.c80};
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
&:hover, &:focus {
|
|
262
|
+
background-color: ${p.theme.colors.neutral.c20};
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
&:active {
|
|
266
|
+
background-color: ${p.theme.colors.neutral.c30};
|
|
267
|
+
}
|
|
268
|
+
`,
|
|
269
|
+
error: {
|
|
270
|
+
outline: `
|
|
271
|
+
border-color: ${p.theme.colors.error.c50};
|
|
272
|
+
color: ${p.theme.colors.error.c50};
|
|
273
|
+
background-color: transparent;
|
|
274
|
+
&:hover {
|
|
275
|
+
background-color: ${(0,helpers.rgba)(p.theme.colors.error.c50, 0.02)};
|
|
276
|
+
}
|
|
277
|
+
&:active {
|
|
278
|
+
background-color: ${(0,helpers.rgba)(p.theme.colors.error.c50, 0.05)};
|
|
279
|
+
}
|
|
280
|
+
`,
|
|
281
|
+
filled: `
|
|
282
|
+
color: ${p.theme.colors.neutral.c00};
|
|
283
|
+
background-color: ${p.theme.colors.error.c50};
|
|
284
|
+
&:hover {
|
|
285
|
+
background-color: ${p.theme.colors.error.c40};
|
|
286
|
+
}
|
|
287
|
+
`
|
|
288
|
+
},
|
|
289
|
+
neutral: `
|
|
290
|
+
color: ${p.theme.colors.neutral.c100};
|
|
291
|
+
background-color: ${p.theme.colors.neutral.c30};
|
|
292
|
+
&:hover {
|
|
293
|
+
background-color: ${p.theme.colors.neutral.c40};
|
|
294
|
+
}
|
|
295
|
+
`,
|
|
296
|
+
color: {
|
|
297
|
+
outline: `
|
|
298
|
+
border-color: ${p.theme.colors.primary.c80};
|
|
299
|
+
color: ${p.theme.colors.primary.c80};
|
|
300
|
+
background-color: transparent;
|
|
301
|
+
&:hover {
|
|
302
|
+
background-color: ${(0,helpers.rgba)(p.theme.colors.primary.c100, 0.02)};
|
|
303
|
+
}
|
|
304
|
+
&:active {
|
|
305
|
+
background-color: ${(0,helpers.rgba)(p.theme.colors.primary.c100, 0.05)};
|
|
306
|
+
}
|
|
307
|
+
`,
|
|
308
|
+
filled: `
|
|
309
|
+
color: ${p.theme.colors.neutral.c00};
|
|
310
|
+
background-color: ${p.theme.colors.primary.c80};
|
|
311
|
+
&:hover {
|
|
312
|
+
background-color: ${p.theme.colors.primary.c70};
|
|
313
|
+
}
|
|
314
|
+
`
|
|
315
|
+
},
|
|
316
|
+
disabled: {
|
|
317
|
+
outline: `
|
|
318
|
+
border-color: ${p.theme.colors.neutral.c50};
|
|
319
|
+
color: ${p.theme.colors.neutral.c50};
|
|
320
|
+
background-color: transparent;
|
|
321
|
+
&:focus, &:hover {
|
|
322
|
+
box-shadow: none;
|
|
323
|
+
}
|
|
324
|
+
`,
|
|
325
|
+
filled: `
|
|
326
|
+
color: ${p.theme.colors.neutral.c50};
|
|
327
|
+
background-color: ${p.theme.colors.neutral.c30};
|
|
328
|
+
&:focus, &:hover {
|
|
329
|
+
box-shadow: none;
|
|
330
|
+
}
|
|
331
|
+
`
|
|
332
|
+
},
|
|
333
|
+
default: `
|
|
334
|
+
color: ${p.theme.colors.neutral.c100};
|
|
335
|
+
background-color: transparent;
|
|
336
|
+
&:hover {
|
|
337
|
+
text-decoration: underline;
|
|
338
|
+
}
|
|
339
|
+
`
|
|
340
|
+
});
|
|
341
|
+
const ButtonUnstyled = styled["default"].button`
|
|
342
|
+
all: unset;
|
|
343
|
+
cursor: pointer;
|
|
344
|
+
|
|
345
|
+
&:disabled {
|
|
346
|
+
cursor: default;
|
|
347
|
+
}
|
|
348
|
+
`;
|
|
349
|
+
const Base = styled["default"].button.attrs((p)=>({
|
|
350
|
+
fontFamily: "Inter",
|
|
351
|
+
fontSize: p.fontSize ?? 4
|
|
352
|
+
}))`
|
|
353
|
+
background-color: transparent;
|
|
354
|
+
border-color: transparent;
|
|
355
|
+
border-radius: 44px;
|
|
356
|
+
border-style: solid;
|
|
357
|
+
border-width: ${(p)=>p.outline || p.variant === "shade" ? 1 : 0}px;
|
|
358
|
+
font-weight: 600;
|
|
359
|
+
${(0,external_styled_system_.compose)(fontFamily["default"], external_styled_system_.fontSize, external_styled_system_.border)};
|
|
360
|
+
line-height: ${(p)=>p.theme.fontSizes[p.fontSize]}px;
|
|
361
|
+
text-align: center;
|
|
362
|
+
display: inline-flex;
|
|
363
|
+
align-items: center;
|
|
364
|
+
justify-content: center;
|
|
365
|
+
overflow: hidden;
|
|
366
|
+
${(p)=>buttonSizeStyle[p.size || "medium"]}
|
|
367
|
+
text-overflow: ellipsis;
|
|
368
|
+
white-space: ${(p)=>p.whiteSpace ? p.whiteSpace : "nowrap"};
|
|
369
|
+
max-width: 100%;
|
|
370
|
+
position: relative;
|
|
371
|
+
cursor: ${(p)=>p.disabled ? "default" : "pointer"};
|
|
372
|
+
&:active {
|
|
373
|
+
box-shadow: 0 0 0 4px ${(p)=>(0,helpers.rgba)(p.theme.colors.primary.c60, 0.4)};
|
|
374
|
+
}
|
|
375
|
+
&:focus, &:hover {
|
|
376
|
+
box-shadow: 0 0 0 2px ${(p)=>(0,helpers.rgba)(p.theme.colors.primary.c60, 0.4)};
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
${(p)=>{
|
|
380
|
+
const variants = getVariantColors(p);
|
|
381
|
+
if (p.disabled) {
|
|
382
|
+
return p.outline || p.variant === "shade" ? variants.disabled.outline : variants.disabled.filled;
|
|
383
|
+
}
|
|
384
|
+
const variant = p.variant ?? "default";
|
|
385
|
+
switch(variant){
|
|
386
|
+
case "main":
|
|
387
|
+
return p.outline ? variants.main.outline : variants.main.filled;
|
|
388
|
+
case "shade":
|
|
389
|
+
return variants.shade;
|
|
390
|
+
case "error":
|
|
391
|
+
return p.outline ? variants.error.outline : variants.error.filled;
|
|
392
|
+
case "color":
|
|
393
|
+
return p.outline ? variants.color.outline : variants.color.filled;
|
|
394
|
+
case "neutral":
|
|
395
|
+
return variants.neutral;
|
|
396
|
+
case "default":
|
|
397
|
+
default:
|
|
398
|
+
return variants.default;
|
|
399
|
+
}
|
|
400
|
+
}}
|
|
401
|
+
${(p)=>p.iconButton ? (0,external_styled_components_.css)`
|
|
402
|
+
width: ${p.theme.space[12]}px;
|
|
403
|
+
padding: 0;
|
|
404
|
+
${IconContainer} {
|
|
405
|
+
margin: 0;
|
|
406
|
+
}
|
|
407
|
+
` : ""}
|
|
408
|
+
${(p)=>p.theme.transition([
|
|
409
|
+
"background-color",
|
|
410
|
+
"color",
|
|
411
|
+
"border-color",
|
|
412
|
+
"box-shadow"
|
|
413
|
+
], "0.2s")}
|
|
414
|
+
`;
|
|
415
|
+
const ContentContainer = (external_styled_components_default()).div``;
|
|
416
|
+
const Button = ({ Icon, iconPosition = "right", iconSize = 16, children, onClick, ...props }, ref)=>{
|
|
417
|
+
const iconNodeSize = iconSize || theme.fontSizes[props.fontSize ?? 4];
|
|
418
|
+
const IconNode = (0,external_react_.useMemo)(()=>{
|
|
419
|
+
if (!Icon) return null;
|
|
420
|
+
if (typeof Icon === "object") return Icon;
|
|
421
|
+
return /*#__PURE__*/ external_react_default().createElement(Icon, {
|
|
422
|
+
size: iconNodeSize
|
|
423
|
+
});
|
|
424
|
+
}, [
|
|
425
|
+
iconNodeSize,
|
|
426
|
+
Icon
|
|
427
|
+
]);
|
|
428
|
+
return /*#__PURE__*/ external_react_default().createElement(Base, {
|
|
429
|
+
...props,
|
|
430
|
+
ref: ref,
|
|
431
|
+
iconButton: !(Icon == null) && !children,
|
|
432
|
+
onClick: onClick
|
|
433
|
+
}, iconPosition === "right" ? /*#__PURE__*/ external_react_default().createElement(ContentContainer, null, children) : null, IconNode && /*#__PURE__*/ external_react_default().createElement(IconContainer, {
|
|
434
|
+
iconPosition: iconPosition
|
|
435
|
+
}, IconNode), iconPosition === "left" ? /*#__PURE__*/ external_react_default().createElement(ContentContainer, null, children) : null);
|
|
436
|
+
};
|
|
437
|
+
const ButtonWithRef = /*#__PURE__*/ external_react_default().forwardRef(Button);
|
|
438
|
+
const StyledButtonExpand = external_styled_components_default()(ButtonWithRef).attrs((props)=>({
|
|
439
|
+
Icon: props.Icon != null || (ChevronBottomMedium_default()),
|
|
440
|
+
iconPosition: props.iconPosition || "right"
|
|
441
|
+
}))`
|
|
442
|
+
${IconContainer} {
|
|
443
|
+
transition: transform 0.25s;
|
|
444
|
+
${(p)=>p.expanded ? "transform: rotate(180deg)" : ""}
|
|
445
|
+
}
|
|
446
|
+
`;
|
|
447
|
+
function ButtonExpand({ onToggle, onClick, ...props }, ref) {
|
|
448
|
+
const [expanded, setExpanded] = (0,external_react_.useState)(false);
|
|
449
|
+
return /*#__PURE__*/ external_react_default().createElement(StyledButtonExpand, {
|
|
450
|
+
...props,
|
|
451
|
+
ref: ref,
|
|
452
|
+
expanded: expanded,
|
|
453
|
+
onClick: (event)=>{
|
|
454
|
+
setExpanded((expanded)=>!expanded);
|
|
455
|
+
onToggle != null && onToggle(!expanded);
|
|
456
|
+
onClick != null && onClick(event);
|
|
457
|
+
}
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
const buttonSizeStyle = {
|
|
461
|
+
xs: {
|
|
462
|
+
padding: "0 12px",
|
|
463
|
+
height: "28px"
|
|
464
|
+
},
|
|
465
|
+
small: {
|
|
466
|
+
padding: "0 20px",
|
|
467
|
+
height: "32px"
|
|
468
|
+
},
|
|
469
|
+
medium: {
|
|
470
|
+
padding: "0 24px",
|
|
471
|
+
height: "40px"
|
|
472
|
+
},
|
|
473
|
+
large: {
|
|
474
|
+
padding: "0 28px",
|
|
475
|
+
height: "48px"
|
|
476
|
+
},
|
|
477
|
+
xl: {
|
|
478
|
+
padding: "0 28px",
|
|
479
|
+
height: "56px"
|
|
480
|
+
}
|
|
481
|
+
};
|
|
482
|
+
Button.Unstyled = ButtonUnstyled;
|
|
483
|
+
Button.Expand = /*#__PURE__*/ external_react_default().forwardRef(ButtonExpand);
|
|
484
|
+
ButtonWithRef.Unstyled = Button.Unstyled;
|
|
485
|
+
ButtonWithRef.Expand = Button.Expand;
|
|
486
|
+
/* export default */ const cta_Button = (ButtonWithRef);
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
},
|
|
490
|
+
3696(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
491
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
492
|
+
"default": () => (__rspack_default_export)
|
|
493
|
+
});
|
|
494
|
+
/* import */ var _styled__rspack_import_0 = __webpack_require__(7680);
|
|
495
|
+
|
|
496
|
+
const FlexBox = _styled__rspack_import_0["default"].div.attrs({
|
|
497
|
+
display: "flex"
|
|
498
|
+
})``;
|
|
499
|
+
/* export default */ const __rspack_default_export = (FlexBox);
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
},
|
|
503
|
+
7843(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
504
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
505
|
+
"default": () => (__rspack_default_export)
|
|
506
|
+
});
|
|
507
|
+
/* import */ var react__rspack_import_0 = __webpack_require__(2015);
|
|
508
|
+
/* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
|
|
509
|
+
/* import */ var react_dom__rspack_import_1 = __webpack_require__(2326);
|
|
510
|
+
/* import */ var react_dom__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(react_dom__rspack_import_1);
|
|
511
|
+
/* import */ var styled_components__rspack_import_2 = __webpack_require__(2770);
|
|
512
|
+
/* import */ var styled_components__rspack_import_2_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_2);
|
|
513
|
+
/* import */ var _ledgerhq_icons_ui_reactLegacy_CloseMedium__rspack_import_3 = __webpack_require__(4295);
|
|
514
|
+
/* import */ var _ledgerhq_icons_ui_reactLegacy_CloseMedium__rspack_import_3_default = /*#__PURE__*/__webpack_require__.n(_ledgerhq_icons_ui_reactLegacy_CloseMedium__rspack_import_3);
|
|
515
|
+
/* import */ var _ledgerhq_icons_ui_reactLegacy_ArrowLeftMedium__rspack_import_4 = __webpack_require__(3935);
|
|
516
|
+
/* import */ var _ledgerhq_icons_ui_reactLegacy_ArrowLeftMedium__rspack_import_4_default = /*#__PURE__*/__webpack_require__.n(_ledgerhq_icons_ui_reactLegacy_ArrowLeftMedium__rspack_import_4);
|
|
517
|
+
/* import */ var _styled__rspack_import_6 = __webpack_require__(7680);
|
|
518
|
+
/* import */ var _layout_Flex__rspack_import_5 = __webpack_require__(3696);
|
|
519
|
+
/* import */ var _cta_Button__rspack_import_7 = __webpack_require__(1133);
|
|
520
|
+
/* import */ var _transitions_TransitionInOut__rspack_import_8 = __webpack_require__(660);
|
|
521
|
+
/* import */ var _transitions_TransitionScale__rspack_import_9 = __webpack_require__(733);
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
const ICON_SIZE = 20;
|
|
533
|
+
const Wrapper = styled_components__rspack_import_2_default()((0,_layout_Flex__rspack_import_5["default"])).attrs((p)=>({
|
|
534
|
+
flexDirection: "column",
|
|
535
|
+
alignItems: "stretch",
|
|
536
|
+
justifyContent: "space-between",
|
|
537
|
+
height: p.height || `${p.theme.sizes.drawer.popin.max.height}px`,
|
|
538
|
+
width: p.width || `${p.theme.sizes.drawer.popin.max.width}px`,
|
|
539
|
+
minHeight: `${p.theme.sizes.drawer.popin.min.height}px`,
|
|
540
|
+
minWidth: `${p.theme.sizes.drawer.popin.min.width}px`,
|
|
541
|
+
maxHeight: `${p.theme.sizes.drawer.popin.max.height}px`,
|
|
542
|
+
maxWidth: `${p.theme.sizes.drawer.popin.max.width}px`,
|
|
543
|
+
zIndex: p.theme.zIndexes[8],
|
|
544
|
+
p: p.p !== undefined ? p.p : p.theme.space[10],
|
|
545
|
+
rowGap: 6,
|
|
546
|
+
backgroundColor: "background.main"
|
|
547
|
+
}))``;
|
|
548
|
+
const Overlay = styled_components__rspack_import_2_default()((0,_layout_Flex__rspack_import_5["default"])).attrs((p)=>({
|
|
549
|
+
justifyContent: "center",
|
|
550
|
+
alignItems: "center",
|
|
551
|
+
width: "100vw",
|
|
552
|
+
height: "100vh",
|
|
553
|
+
zIndex: p.theme.zIndexes[8],
|
|
554
|
+
position: "fixed",
|
|
555
|
+
top: 0,
|
|
556
|
+
left: 0,
|
|
557
|
+
backgroundColor: "constant.overlay"
|
|
558
|
+
}))``;
|
|
559
|
+
const Header = _styled__rspack_import_6["default"].section`
|
|
560
|
+
display: grid;
|
|
561
|
+
grid-template-columns: [icon] ${ICON_SIZE}px [title] 1fr [icon] ${ICON_SIZE}px;
|
|
562
|
+
column-gap: 12px;
|
|
563
|
+
`;
|
|
564
|
+
const HeaderTitleContainer = styled_components__rspack_import_2_default()((0,_layout_Flex__rspack_import_5["default"])).attrs(()=>({
|
|
565
|
+
justifyContent: "center"
|
|
566
|
+
}))``;
|
|
567
|
+
const PopinBody = (0,_styled__rspack_import_6["default"])((0,_layout_Flex__rspack_import_5["default"])).attrs({
|
|
568
|
+
as: "section",
|
|
569
|
+
flexDirection: "column",
|
|
570
|
+
flex: 1,
|
|
571
|
+
overflow: "auto"
|
|
572
|
+
})``;
|
|
573
|
+
const PopinFooter = (0,_styled__rspack_import_6["default"])((0,_layout_Flex__rspack_import_5["default"])).attrs({
|
|
574
|
+
as: "section"
|
|
575
|
+
})``;
|
|
576
|
+
const IconContainer = styled_components__rspack_import_2_default()(_cta_Button__rspack_import_7["default"].Unstyled)`
|
|
577
|
+
display: flex;
|
|
578
|
+
align-items: center;
|
|
579
|
+
`;
|
|
580
|
+
const PopinHeader = ({ children, onClose, onBack, ...props })=>/*#__PURE__*/ react__rspack_import_0_default().createElement(Header, props, /*#__PURE__*/ react__rspack_import_0_default().createElement(_layout_Flex__rspack_import_5["default"], null, onBack ? /*#__PURE__*/ react__rspack_import_0_default().createElement(IconContainer, {
|
|
581
|
+
onClick: onBack
|
|
582
|
+
}, /*#__PURE__*/ react__rspack_import_0_default().createElement((_ledgerhq_icons_ui_reactLegacy_ArrowLeftMedium__rspack_import_4_default()), {
|
|
583
|
+
size: ICON_SIZE,
|
|
584
|
+
color: "neutral.c100"
|
|
585
|
+
})) : null), /*#__PURE__*/ react__rspack_import_0_default().createElement(HeaderTitleContainer, null, children), /*#__PURE__*/ react__rspack_import_0_default().createElement(_layout_Flex__rspack_import_5["default"], null, onClose ? /*#__PURE__*/ react__rspack_import_0_default().createElement(IconContainer, {
|
|
586
|
+
onClick: onClose
|
|
587
|
+
}, /*#__PURE__*/ react__rspack_import_0_default().createElement((_ledgerhq_icons_ui_reactLegacy_CloseMedium__rspack_import_3_default()), {
|
|
588
|
+
size: ICON_SIZE,
|
|
589
|
+
color: "neutral.c100"
|
|
590
|
+
})) : null));
|
|
591
|
+
const Popin = ({ isOpen, children, width, height, ...props })=>/*#__PURE__*/ react__rspack_import_0_default().createElement(_transitions_TransitionInOut__rspack_import_8["default"], {
|
|
592
|
+
in: isOpen,
|
|
593
|
+
appear: true,
|
|
594
|
+
mountOnEnter: true,
|
|
595
|
+
unmountOnExit: true
|
|
596
|
+
}, /*#__PURE__*/ react__rspack_import_0_default().createElement(Overlay, null, /*#__PURE__*/ react__rspack_import_0_default().createElement(_transitions_TransitionScale__rspack_import_9["default"], {
|
|
597
|
+
in: isOpen,
|
|
598
|
+
appear: true
|
|
599
|
+
}, /*#__PURE__*/ react__rspack_import_0_default().createElement(Wrapper, {
|
|
600
|
+
width: width,
|
|
601
|
+
height: height,
|
|
602
|
+
...props
|
|
603
|
+
}, children))));
|
|
604
|
+
const PopinWrapper = ({ children, menuPortalTarget, ...popinProps })=>{
|
|
605
|
+
const $root = react__rspack_import_0_default().useMemo(()=>menuPortalTarget === undefined && typeof document !== "undefined" ? document.querySelector("body") : menuPortalTarget, [
|
|
606
|
+
menuPortalTarget
|
|
607
|
+
]);
|
|
608
|
+
if (!$root) {
|
|
609
|
+
return /*#__PURE__*/ react__rspack_import_0_default().createElement(Popin, popinProps, children);
|
|
610
|
+
} else {
|
|
611
|
+
return /*#__PURE__*/ react_dom__rspack_import_1_default().createPortal(/*#__PURE__*/ react__rspack_import_0_default().createElement(Popin, popinProps, children), $root);
|
|
612
|
+
}
|
|
613
|
+
};
|
|
614
|
+
PopinWrapper.Header = PopinHeader;
|
|
615
|
+
PopinWrapper.Body = PopinBody;
|
|
616
|
+
PopinWrapper.Footer = PopinFooter;
|
|
617
|
+
/* export default */ const __rspack_default_export = (PopinWrapper);
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
},
|
|
621
|
+
7680(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
622
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
623
|
+
"default": () => (__rspack_default_export)
|
|
624
|
+
});
|
|
625
|
+
/* import */ var _styles_system_gaps__rspack_import_2 = __webpack_require__(4182);
|
|
626
|
+
/* import */ var styled_components__rspack_import_0 = __webpack_require__(2770);
|
|
627
|
+
/* import */ var styled_components__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_0);
|
|
628
|
+
/* import */ var styled_system__rspack_import_1 = __webpack_require__(9351);
|
|
629
|
+
/* import */ var styled_system__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_1);
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
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);
|
|
634
|
+
const proxyStyled = new Proxy((styled_components__rspack_import_0_default()), {
|
|
635
|
+
apply (target, thisArg, argumentsList) {
|
|
636
|
+
return styled_components__rspack_import_0_default()(target.apply(thisArg, argumentsList)(baseStyles));
|
|
637
|
+
},
|
|
638
|
+
get (target, property) {
|
|
639
|
+
if (typeof target[property] === "function") {
|
|
640
|
+
return styled_components__rspack_import_0_default()(target[property].apply((styled_components__rspack_import_0_default()), [
|
|
641
|
+
baseStyles
|
|
642
|
+
]));
|
|
643
|
+
}
|
|
644
|
+
return target[property];
|
|
645
|
+
}
|
|
646
|
+
});
|
|
647
|
+
/* export default */ const __rspack_default_export = (proxyStyled);
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
},
|
|
651
|
+
660(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
652
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
653
|
+
"default": () => (__rspack_default_export)
|
|
654
|
+
});
|
|
655
|
+
/* import */ var react__rspack_import_0 = __webpack_require__(2015);
|
|
656
|
+
/* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
|
|
657
|
+
/* import */ var react_transition_group__rspack_import_1 = __webpack_require__(7727);
|
|
658
|
+
/* import */ var react_transition_group__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(react_transition_group__rspack_import_1);
|
|
659
|
+
/* import */ var styled_components__rspack_import_2 = __webpack_require__(2770);
|
|
660
|
+
/* import */ var styled_components__rspack_import_2_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_2);
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
const duration = 150;
|
|
665
|
+
const ChildrenWrapper = (styled_components__rspack_import_2_default().div)`
|
|
666
|
+
transition: ${(props)=>`opacity ${props.timeout}ms ease-in-out`};
|
|
667
|
+
|
|
668
|
+
&.transition-inout-enter {
|
|
669
|
+
opacity: 0;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
&.transition-inout-enter-active {
|
|
673
|
+
opacity: 1;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
&.transition-inout-exit {
|
|
677
|
+
opacity: 1;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
&.transition-inout-exit-active {
|
|
681
|
+
opacity: 0;
|
|
682
|
+
}
|
|
683
|
+
`;
|
|
684
|
+
const TransitionInOut = ({ children, in: inProp, timeout = duration, ...TransitionProps })=>/*#__PURE__*/ react__rspack_import_0_default().createElement(react_transition_group__rspack_import_1.CSSTransition, {
|
|
685
|
+
...TransitionProps,
|
|
686
|
+
in: inProp,
|
|
687
|
+
timeout: timeout,
|
|
688
|
+
classNames: "transition-inout"
|
|
689
|
+
}, /*#__PURE__*/ react__rspack_import_0_default().createElement(ChildrenWrapper, {
|
|
690
|
+
timeout: timeout
|
|
691
|
+
}, children));
|
|
692
|
+
/* export default */ const __rspack_default_export = (TransitionInOut);
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
},
|
|
696
|
+
733(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
697
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
698
|
+
"default": () => (__rspack_default_export)
|
|
699
|
+
});
|
|
700
|
+
/* import */ var react__rspack_import_0 = __webpack_require__(2015);
|
|
701
|
+
/* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
|
|
702
|
+
/* import */ var react_transition_group__rspack_import_1 = __webpack_require__(7727);
|
|
703
|
+
/* import */ var react_transition_group__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(react_transition_group__rspack_import_1);
|
|
704
|
+
/* import */ var styled_components__rspack_import_2 = __webpack_require__(2770);
|
|
705
|
+
/* import */ var styled_components__rspack_import_2_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_2);
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
const duration = 150;
|
|
710
|
+
const ChildrenWrapper = (styled_components__rspack_import_2_default().div)`
|
|
711
|
+
transition: transform ${duration}ms;
|
|
712
|
+
|
|
713
|
+
&.transition-scale-appear {
|
|
714
|
+
transform: scale(0.9);
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
&.transition-scale-appear-active {
|
|
718
|
+
transform: scale(1);
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
&.transition-scale-exit {
|
|
722
|
+
transform: scale(1);
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
&.transition-scale-exit-active {
|
|
726
|
+
transform: scale(0.9);
|
|
727
|
+
}
|
|
728
|
+
`;
|
|
729
|
+
const TransitionScale = ({ children, in: inProp, timeout = duration, ...TransitionProps })=>/*#__PURE__*/ react__rspack_import_0_default().createElement(react_transition_group__rspack_import_1.CSSTransition, {
|
|
730
|
+
...TransitionProps,
|
|
731
|
+
in: inProp,
|
|
732
|
+
timeout: timeout,
|
|
733
|
+
classNames: "transition-scale"
|
|
734
|
+
}, /*#__PURE__*/ react__rspack_import_0_default().createElement(ChildrenWrapper, null, children));
|
|
735
|
+
/* export default */ const __rspack_default_export = (TransitionScale);
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
},
|
|
739
|
+
4336(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
740
|
+
|
|
741
|
+
// EXPORTS
|
|
742
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
743
|
+
rgba: () => (/* binding */ rgba),
|
|
744
|
+
ff: () => (/* binding */ ff)
|
|
745
|
+
});
|
|
746
|
+
|
|
747
|
+
// UNUSED EXPORTS: darken, ensureContrast, mix, lighten
|
|
748
|
+
|
|
749
|
+
;// CONCATENATED MODULE: external "color"
|
|
750
|
+
const external_color_namespaceObject = require("color");
|
|
751
|
+
var external_color_default = /*#__PURE__*/__webpack_require__.n(external_color_namespaceObject);
|
|
752
|
+
// EXTERNAL MODULE: ./src/styles/theme.ts
|
|
753
|
+
var theme = __webpack_require__(5548);
|
|
754
|
+
;// CONCATENATED MODULE: ./src/styles/helpers.ts
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
const rgba = (c, a)=>external_color_default()(c).alpha(a).rgb().toString();
|
|
758
|
+
const darken = (c, a)=>Color(c).darken(a).toString();
|
|
759
|
+
const lighten = (c, a)=>Color(c).lighten(a).toString();
|
|
760
|
+
const mix = (c, b, a)=>Color(c).mix(Color(b), a).toString();
|
|
761
|
+
const ff = (v)=>{
|
|
762
|
+
const [font, type = "Regular"] = v.split("|");
|
|
763
|
+
// @ts-expect-error FIXME
|
|
764
|
+
const { style, weight } = theme.fontFamilies[font][type];
|
|
765
|
+
// @ts-expect-error FIXME
|
|
766
|
+
const fallback = theme.fontFamilies[font].fallback ?? "Arial";
|
|
767
|
+
return {
|
|
768
|
+
fontFamily: `${font}, ${fallback}`,
|
|
769
|
+
fontWeight: weight,
|
|
770
|
+
fontStyle: style
|
|
771
|
+
};
|
|
772
|
+
};
|
|
773
|
+
const ensureContrast = (color1, color2)=>{
|
|
774
|
+
const colorL1 = Color(color1).luminosity() + 0.05;
|
|
775
|
+
const colorL2 = Color(color2).luminosity() + 0.05;
|
|
776
|
+
const lRatio = colorL1 > colorL2 ? colorL1 / colorL2 : colorL2 / colorL1;
|
|
777
|
+
if (lRatio < 1.5) {
|
|
778
|
+
return Color(color1).rotate(180).negate().string();
|
|
779
|
+
}
|
|
780
|
+
return color1;
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
},
|
|
785
|
+
3364(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
786
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
787
|
+
"default": () => (__rspack_default_export)
|
|
788
|
+
});
|
|
789
|
+
/* import */ var _helpers__rspack_import_0 = __webpack_require__(4336);
|
|
790
|
+
|
|
791
|
+
/* export default */ const __rspack_default_export = ((props)=>{
|
|
792
|
+
const prop = props.ff;
|
|
793
|
+
if (prop == null) {
|
|
794
|
+
return null;
|
|
795
|
+
}
|
|
796
|
+
return (0,_helpers__rspack_import_0.ff)(prop);
|
|
797
|
+
});
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
},
|
|
801
|
+
4182(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
802
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
803
|
+
"default": () => (__rspack_default_export)
|
|
804
|
+
});
|
|
805
|
+
/* import */ var styled_system__rspack_import_0 = __webpack_require__(9351);
|
|
806
|
+
/* import */ var styled_system__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_0);
|
|
807
|
+
|
|
808
|
+
const gaps = (0,styled_system__rspack_import_0.system)({
|
|
809
|
+
rowGap: {
|
|
810
|
+
property: "rowGap",
|
|
811
|
+
scale: "space"
|
|
812
|
+
},
|
|
813
|
+
columnGap: {
|
|
814
|
+
property: "columnGap",
|
|
815
|
+
scale: "space"
|
|
816
|
+
}
|
|
817
|
+
});
|
|
818
|
+
/* export default */ const __rspack_default_export = (gaps);
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
},
|
|
822
|
+
5548(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
823
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
824
|
+
"default": () => (__rspack_default_export),
|
|
825
|
+
fontFamilies: () => (fontFamilies),
|
|
826
|
+
fontSizes: () => (fontSizes)
|
|
827
|
+
});
|
|
828
|
+
/* import */ var styled_components__rspack_import_0 = __webpack_require__(2770);
|
|
829
|
+
/* import */ var styled_components__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_0);
|
|
830
|
+
/* import */ var _ledgerhq_ui_shared__rspack_import_1 = __webpack_require__(2993);
|
|
831
|
+
/* import */ var _ledgerhq_ui_shared__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(_ledgerhq_ui_shared__rspack_import_1);
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
const breakpoints = {
|
|
835
|
+
sm: "640px",
|
|
836
|
+
md: "768px",
|
|
837
|
+
lg: "1024px",
|
|
838
|
+
xl: "1280px",
|
|
839
|
+
xxl: "1536px"
|
|
840
|
+
};
|
|
841
|
+
const space = [
|
|
842
|
+
/* space indexes:
|
|
843
|
+
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 */ 0,
|
|
844
|
+
2,
|
|
845
|
+
4,
|
|
846
|
+
8,
|
|
847
|
+
10,
|
|
848
|
+
12,
|
|
849
|
+
16,
|
|
850
|
+
20,
|
|
851
|
+
24,
|
|
852
|
+
28,
|
|
853
|
+
32,
|
|
854
|
+
36,
|
|
855
|
+
40,
|
|
856
|
+
44,
|
|
857
|
+
48,
|
|
858
|
+
52,
|
|
859
|
+
56,
|
|
860
|
+
60,
|
|
861
|
+
64,
|
|
862
|
+
68,
|
|
863
|
+
72,
|
|
864
|
+
76
|
|
865
|
+
];
|
|
866
|
+
const fontSizes = [
|
|
867
|
+
8,
|
|
868
|
+
10,
|
|
869
|
+
11,
|
|
870
|
+
12,
|
|
871
|
+
13,
|
|
872
|
+
14,
|
|
873
|
+
16,
|
|
874
|
+
20,
|
|
875
|
+
24,
|
|
876
|
+
28,
|
|
877
|
+
32,
|
|
878
|
+
36
|
|
879
|
+
];
|
|
880
|
+
[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;
|
|
881
|
+
fontSizes.largeLineHeight = fontSizes.large;
|
|
882
|
+
fontSizes.bodyLineHeight = fontSizes.body;
|
|
883
|
+
fontSizes.paragraphLineHeight = fontSizes.paragraph;
|
|
884
|
+
fontSizes.subtitle = fontSizes.extraSmall;
|
|
885
|
+
fontSizes.h1Inter = fontSizes.h1;
|
|
886
|
+
fontSizes.h2Inter = fontSizes.h2;
|
|
887
|
+
fontSizes.h3Inter = fontSizes.h3;
|
|
888
|
+
fontSizes.h4Inter = fontSizes.h4;
|
|
889
|
+
fontSizes.h5Inter = fontSizes.h5;
|
|
890
|
+
const fontWeights = {
|
|
891
|
+
extraLight: "100",
|
|
892
|
+
light: "300",
|
|
893
|
+
regular: "400",
|
|
894
|
+
medium: "500",
|
|
895
|
+
semiBold: "600",
|
|
896
|
+
bold: "700",
|
|
897
|
+
extraBold: "800"
|
|
898
|
+
};
|
|
899
|
+
const radii = [
|
|
900
|
+
0,
|
|
901
|
+
4,
|
|
902
|
+
8,
|
|
903
|
+
12,
|
|
904
|
+
16,
|
|
905
|
+
20
|
|
906
|
+
];
|
|
907
|
+
const shadows = [
|
|
908
|
+
"0 4px 8px 0 rgba(0, 0, 0, 0.03)"
|
|
909
|
+
];
|
|
910
|
+
const zIndexes = [
|
|
911
|
+
-1,
|
|
912
|
+
0,
|
|
913
|
+
1,
|
|
914
|
+
9,
|
|
915
|
+
10,
|
|
916
|
+
90,
|
|
917
|
+
100,
|
|
918
|
+
900,
|
|
919
|
+
1000
|
|
920
|
+
];
|
|
921
|
+
// Those fonts are now defined in global.css, this is just a mapping for styled-system
|
|
922
|
+
const fontFamilies = {
|
|
923
|
+
Inter: {
|
|
924
|
+
ExtraLight: {
|
|
925
|
+
weight: 100,
|
|
926
|
+
style: "normal"
|
|
927
|
+
},
|
|
928
|
+
Light: {
|
|
929
|
+
weight: 300,
|
|
930
|
+
style: "normal"
|
|
931
|
+
},
|
|
932
|
+
Regular: {
|
|
933
|
+
weight: 400,
|
|
934
|
+
style: "normal"
|
|
935
|
+
},
|
|
936
|
+
Medium: {
|
|
937
|
+
weight: 500,
|
|
938
|
+
style: "normal"
|
|
939
|
+
},
|
|
940
|
+
SemiBold: {
|
|
941
|
+
weight: 600,
|
|
942
|
+
style: "normal"
|
|
943
|
+
},
|
|
944
|
+
Bold: {
|
|
945
|
+
weight: 700,
|
|
946
|
+
style: "normal"
|
|
947
|
+
},
|
|
948
|
+
ExtraBold: {
|
|
949
|
+
weight: 800,
|
|
950
|
+
style: "normal"
|
|
951
|
+
}
|
|
952
|
+
},
|
|
953
|
+
Alpha: {
|
|
954
|
+
Medium: {
|
|
955
|
+
weight: 500,
|
|
956
|
+
style: "normal"
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
};
|
|
960
|
+
const animationDuration = "0.33s";
|
|
961
|
+
const easings = {
|
|
962
|
+
outQuadratic: "cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
963
|
+
};
|
|
964
|
+
const transition = (properties = [
|
|
965
|
+
"all"
|
|
966
|
+
], duration = animationDuration, easing = easings.outQuadratic)=>(0,styled_components__rspack_import_0.css)`
|
|
967
|
+
transition-property: ${properties.join(",")};
|
|
968
|
+
transition-duration: ${duration};
|
|
969
|
+
transition-timing-function: ${easing};
|
|
970
|
+
`;
|
|
971
|
+
const fadeIn = (0,styled_components__rspack_import_0.keyframes)`
|
|
972
|
+
0% {
|
|
973
|
+
opacity: 0;
|
|
974
|
+
}
|
|
975
|
+
100% {
|
|
976
|
+
opacity: 1;
|
|
977
|
+
}
|
|
978
|
+
`;
|
|
979
|
+
const fadeOut = (0,styled_components__rspack_import_0.keyframes)`
|
|
980
|
+
0% {
|
|
981
|
+
opacity: 1;
|
|
982
|
+
}
|
|
983
|
+
100% {
|
|
984
|
+
opacity: 0;
|
|
985
|
+
}
|
|
986
|
+
`;
|
|
987
|
+
const fadeInGrowX = (0,styled_components__rspack_import_0.keyframes)`
|
|
988
|
+
0% {
|
|
989
|
+
opacity: 0;
|
|
990
|
+
transform: scaleX(0);
|
|
991
|
+
}
|
|
992
|
+
100% {
|
|
993
|
+
opacity: 1;
|
|
994
|
+
transform: scaleX(1);
|
|
995
|
+
}
|
|
996
|
+
`;
|
|
997
|
+
const fadeInUp = (0,styled_components__rspack_import_0.keyframes)`
|
|
998
|
+
0% {
|
|
999
|
+
opacity: 0;
|
|
1000
|
+
transform: translateY(66%);
|
|
1001
|
+
}
|
|
1002
|
+
100% {
|
|
1003
|
+
opacity: 1;
|
|
1004
|
+
transform: translateY(0%);
|
|
1005
|
+
}
|
|
1006
|
+
`;
|
|
1007
|
+
const animations = {
|
|
1008
|
+
fadeIn: ()=>(0,styled_components__rspack_import_0.css)`
|
|
1009
|
+
${fadeIn} ${animationDuration} ${easings.outQuadratic} forwards
|
|
1010
|
+
`,
|
|
1011
|
+
fadeOut: ()=>(0,styled_components__rspack_import_0.css)`
|
|
1012
|
+
${fadeOut} ${animationDuration} ${easings.outQuadratic} forwards
|
|
1013
|
+
`,
|
|
1014
|
+
fadeInGrowX: ()=>(0,styled_components__rspack_import_0.css)`
|
|
1015
|
+
${fadeInGrowX} 0.6s ${easings.outQuadratic} forwards
|
|
1016
|
+
`,
|
|
1017
|
+
fadeInUp: ()=>(0,styled_components__rspack_import_0.css)`
|
|
1018
|
+
${fadeInUp} ${animationDuration} ${easings.outQuadratic} forwards
|
|
1019
|
+
`
|
|
1020
|
+
};
|
|
1021
|
+
const overflow = {
|
|
1022
|
+
x: (0,styled_components__rspack_import_0.css)`
|
|
1023
|
+
overflow-y: hidden;
|
|
1024
|
+
overflow-x: scroll;
|
|
1025
|
+
will-change: transform;
|
|
1026
|
+
&:hover {
|
|
1027
|
+
--track-color: ${(p)=>p.theme.colors.neutral.c30};
|
|
1028
|
+
}
|
|
1029
|
+
`,
|
|
1030
|
+
y: (0,styled_components__rspack_import_0.css)`
|
|
1031
|
+
overflow-x: hidden;
|
|
1032
|
+
overflow-y: scroll;
|
|
1033
|
+
will-change: transform;
|
|
1034
|
+
&:hover {
|
|
1035
|
+
--track-color: ${(p)=>p.theme.colors.neutral.c30};
|
|
1036
|
+
}
|
|
1037
|
+
`,
|
|
1038
|
+
yAuto: (0,styled_components__rspack_import_0.css)`
|
|
1039
|
+
overflow-x: hidden;
|
|
1040
|
+
overflow-y: auto;
|
|
1041
|
+
will-change: transform;
|
|
1042
|
+
&:hover {
|
|
1043
|
+
--track-color: ${(p)=>p.theme.colors.neutral.c30};
|
|
1044
|
+
}
|
|
1045
|
+
`,
|
|
1046
|
+
xy: (0,styled_components__rspack_import_0.css)`
|
|
1047
|
+
overflow: scroll;
|
|
1048
|
+
will-change: transform;
|
|
1049
|
+
&:hover {
|
|
1050
|
+
--track-color: ${(p)=>p.theme.colors.neutral.c30};
|
|
1051
|
+
}
|
|
1052
|
+
`,
|
|
1053
|
+
trackSize: 12
|
|
1054
|
+
};
|
|
1055
|
+
const theme = {
|
|
1056
|
+
theme: "light",
|
|
1057
|
+
sizes: {
|
|
1058
|
+
drawer: {
|
|
1059
|
+
side: {
|
|
1060
|
+
big: {
|
|
1061
|
+
width: 580
|
|
1062
|
+
},
|
|
1063
|
+
small: {
|
|
1064
|
+
width: 420
|
|
1065
|
+
}
|
|
1066
|
+
},
|
|
1067
|
+
popin: {
|
|
1068
|
+
min: {
|
|
1069
|
+
height: 158,
|
|
1070
|
+
width: 462
|
|
1071
|
+
},
|
|
1072
|
+
max: {
|
|
1073
|
+
height: 522,
|
|
1074
|
+
width: 622
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
},
|
|
1078
|
+
topBarHeight: 58,
|
|
1079
|
+
sideBarWidth: 230
|
|
1080
|
+
},
|
|
1081
|
+
radii,
|
|
1082
|
+
fontFamilies,
|
|
1083
|
+
fontSizes,
|
|
1084
|
+
fontWeights,
|
|
1085
|
+
space,
|
|
1086
|
+
shadows,
|
|
1087
|
+
colors: _ledgerhq_ui_shared__rspack_import_1.palettes.light,
|
|
1088
|
+
animations,
|
|
1089
|
+
overflow,
|
|
1090
|
+
transition,
|
|
1091
|
+
zIndexes,
|
|
1092
|
+
breakpoints
|
|
1093
|
+
};
|
|
1094
|
+
/* export default */ const __rspack_default_export = (theme);
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
},
|
|
1098
|
+
3935(module) {
|
|
1099
|
+
module.exports = require("@ledgerhq/icons-ui/reactLegacy/ArrowLeftMedium");
|
|
1100
|
+
|
|
1101
|
+
},
|
|
1102
|
+
4295(module) {
|
|
1103
|
+
module.exports = require("@ledgerhq/icons-ui/reactLegacy/CloseMedium");
|
|
1104
|
+
|
|
1105
|
+
},
|
|
1106
|
+
2993(module) {
|
|
1107
|
+
module.exports = require("@ledgerhq/ui-shared");
|
|
1108
|
+
|
|
1109
|
+
},
|
|
1110
|
+
2015(module) {
|
|
1111
|
+
module.exports = require("react");
|
|
1112
|
+
|
|
1113
|
+
},
|
|
1114
|
+
2326(module) {
|
|
1115
|
+
module.exports = require("react-dom");
|
|
1116
|
+
|
|
1117
|
+
},
|
|
1118
|
+
7727(module) {
|
|
1119
|
+
module.exports = require("react-transition-group");
|
|
1120
|
+
|
|
1121
|
+
},
|
|
1122
|
+
2770(module) {
|
|
1123
|
+
module.exports = require("styled-components");
|
|
1124
|
+
|
|
1125
|
+
},
|
|
1126
|
+
9351(module) {
|
|
1127
|
+
module.exports = require("styled-system");
|
|
1128
|
+
|
|
1129
|
+
},
|
|
1130
|
+
|
|
1131
|
+
});
|
|
1132
|
+
// The module cache
|
|
1133
|
+
var __webpack_module_cache__ = {};
|
|
1134
|
+
|
|
1135
|
+
// The require function
|
|
1136
|
+
function __webpack_require__(moduleId) {
|
|
1137
|
+
|
|
1138
|
+
// Check if module is in cache
|
|
1139
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
1140
|
+
if (cachedModule !== undefined) {
|
|
1141
|
+
return cachedModule.exports;
|
|
1142
|
+
}
|
|
1143
|
+
// Create a new module (and put it into the cache)
|
|
1144
|
+
var module = (__webpack_module_cache__[moduleId] = {
|
|
1145
|
+
exports: {}
|
|
1146
|
+
});
|
|
1147
|
+
// Execute the module function
|
|
1148
|
+
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
1149
|
+
|
|
1150
|
+
// Return the exports of the module
|
|
1151
|
+
return module.exports;
|
|
1152
|
+
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
// webpack/runtime/compat_get_default_export
|
|
1156
|
+
(() => {
|
|
1157
|
+
// getDefaultExport function for compatibility with non-ESM modules
|
|
1158
|
+
__webpack_require__.n = (module) => {
|
|
1159
|
+
var getter = module && module.__esModule ?
|
|
1160
|
+
() => (module['default']) :
|
|
1161
|
+
() => (module);
|
|
1162
|
+
__webpack_require__.d(getter, { a: getter });
|
|
1163
|
+
return getter;
|
|
1164
|
+
};
|
|
1165
|
+
|
|
1166
|
+
})();
|
|
1167
|
+
// webpack/runtime/define_property_getters
|
|
1168
|
+
(() => {
|
|
1169
|
+
__webpack_require__.d = (exports, definition) => {
|
|
1170
|
+
for(var key in definition) {
|
|
1171
|
+
if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
1172
|
+
Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
};
|
|
1176
|
+
})();
|
|
1177
|
+
// webpack/runtime/has_own_property
|
|
1178
|
+
(() => {
|
|
1179
|
+
__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
1180
|
+
})();
|
|
1181
|
+
// webpack/runtime/make_namespace_object
|
|
1182
|
+
(() => {
|
|
1183
|
+
// define __esModule on exports
|
|
1184
|
+
__webpack_require__.r = (exports) => {
|
|
1185
|
+
if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
1186
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
1187
|
+
}
|
|
1188
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1189
|
+
};
|
|
1190
|
+
})();
|
|
1191
|
+
var __webpack_exports__ = {};
|
|
1192
|
+
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
|
|
1193
|
+
(() => {
|
|
1194
|
+
// ESM COMPAT FLAG
|
|
1195
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1196
|
+
|
|
1197
|
+
// EXPORTS
|
|
1198
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
1199
|
+
"default": () => (/* binding */ Popin_stories),
|
|
1200
|
+
Default: () => (/* binding */ Default)
|
|
1201
|
+
});
|
|
1202
|
+
|
|
1203
|
+
// EXTERNAL MODULE: external "react"
|
|
1204
|
+
var external_react_ = __webpack_require__(2015);
|
|
1205
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
1206
|
+
;// CONCATENATED MODULE: external "storybook/manager-api"
|
|
1207
|
+
const manager_api_namespaceObject = require("storybook/manager-api");
|
|
1208
|
+
// EXTERNAL MODULE: ./src/components/layout/Popin/index.tsx
|
|
1209
|
+
var Popin = __webpack_require__(7843);
|
|
1210
|
+
// EXTERNAL MODULE: ./src/components/asorted/Text/index.tsx
|
|
1211
|
+
var Text = __webpack_require__(348);
|
|
1212
|
+
// EXTERNAL MODULE: ./src/components/cta/Button/index.tsx + 1 modules
|
|
1213
|
+
var Button = __webpack_require__(1133);
|
|
1214
|
+
// EXTERNAL MODULE: ./src/styles/theme.ts
|
|
1215
|
+
var theme = __webpack_require__(5548);
|
|
1216
|
+
;// CONCATENATED MODULE: ./src/components/layout/Popin/Popin.stories.tsx
|
|
1217
|
+
|
|
1218
|
+
|
|
1219
|
+
|
|
1220
|
+
|
|
1221
|
+
|
|
1222
|
+
|
|
42
1223
|
const description = `
|
|
43
1224
|
### This is a customizable pop-in component.
|
|
44
1225
|
|
|
@@ -53,7 +1234,8 @@ import { Popin } from "@ledgerhq/react-ui"
|
|
|
53
1234
|
|
|
54
1235
|
\`\`\`
|
|
55
1236
|
|
|
56
|
-
From the default Popin component, you can access 3 different pre-styled sections *(\`Popin.Header\`, \`Popin.Body\` and \`Popin.Footer\`)*.
|
|
1237
|
+
From the default Popin component, you can access 3 different pre-styled sections *(\`Popin.Header\`, \`Popin.Body\` and \`Popin.Footer\`)*. \
|
|
1238
|
+
All of these components are optional.
|
|
57
1239
|
|
|
58
1240
|
- \`Popin.Header\` is accepting an onClose callback. The cross icon is only rendered if the onClose callback is provided
|
|
59
1241
|
- \`Popin.Body\` is just a customizable scrollable Flex component configured to take all the available space
|
|
@@ -62,7 +1244,8 @@ From the default Popin component, you can access 3 different pre-styled sections
|
|
|
62
1244
|
## Sandbox
|
|
63
1245
|
|
|
64
1246
|
Placement, style and content can be customized using props as demonstrated in the following example.<br />
|
|
65
|
-
Additionally, the story provide some playground options to play with the component. These options aren't
|
|
1247
|
+
Additionally, the story provide some playground options to play with the component. These options aren't \
|
|
1248
|
+
props of the component itself.
|
|
66
1249
|
`;
|
|
67
1250
|
const code = `
|
|
68
1251
|
<Popin isOpen={isOpen}>
|
|
@@ -75,132 +1258,182 @@ const code = `
|
|
|
75
1258
|
</Popin.Footer>
|
|
76
1259
|
</Popin>
|
|
77
1260
|
`;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
type: "number",
|
|
91
|
-
description: "Optional popin's width",
|
|
92
|
-
control: {
|
|
93
|
-
type: "number",
|
|
94
|
-
min: import_theme.default.sizes.drawer.popin.min.width,
|
|
95
|
-
max: import_theme.default.sizes.drawer.popin.max.width
|
|
96
|
-
},
|
|
97
|
-
table: {
|
|
98
|
-
type: {
|
|
99
|
-
summary: "Accepted range",
|
|
100
|
-
detail: `Value lower than ${import_theme.default.sizes.drawer.popin.min.width}px or greather than ${import_theme.default.sizes.drawer.popin.max.width}px will have no effect because of min/max css rules.`
|
|
101
|
-
},
|
|
102
|
-
defaultValue: {
|
|
103
|
-
summary: import_theme.default.sizes.drawer.popin.min.width
|
|
1261
|
+
/* export default */ const Popin_stories = ({
|
|
1262
|
+
title: "Layout/Popin",
|
|
1263
|
+
component: Popin["default"],
|
|
1264
|
+
parameters: {
|
|
1265
|
+
docs: {
|
|
1266
|
+
description: {
|
|
1267
|
+
component: description
|
|
1268
|
+
},
|
|
1269
|
+
source: {
|
|
1270
|
+
code,
|
|
1271
|
+
type: "code"
|
|
1272
|
+
}
|
|
104
1273
|
}
|
|
105
|
-
}
|
|
106
1274
|
},
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
1275
|
+
argTypes: {
|
|
1276
|
+
/** PROPS **/ width: {
|
|
1277
|
+
type: "number",
|
|
1278
|
+
description: "Optional popin's width",
|
|
1279
|
+
control: {
|
|
1280
|
+
type: "number",
|
|
1281
|
+
min: theme["default"].sizes.drawer.popin.min.width,
|
|
1282
|
+
max: theme["default"].sizes.drawer.popin.max.width
|
|
1283
|
+
},
|
|
1284
|
+
table: {
|
|
1285
|
+
type: {
|
|
1286
|
+
summary: "Accepted range",
|
|
1287
|
+
detail: `Value lower than ${theme["default"].sizes.drawer.popin.min.width}px or greather than ${theme["default"].sizes.drawer.popin.max.width}px will have no effect because of min/max css rules.`
|
|
1288
|
+
},
|
|
1289
|
+
defaultValue: {
|
|
1290
|
+
summary: theme["default"].sizes.drawer.popin.min.width
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
},
|
|
1294
|
+
height: {
|
|
1295
|
+
type: "number",
|
|
1296
|
+
description: "Optional popin's height",
|
|
1297
|
+
control: {
|
|
1298
|
+
type: "number",
|
|
1299
|
+
min: theme["default"].sizes.drawer.popin.min.height,
|
|
1300
|
+
max: theme["default"].sizes.drawer.popin.max.height
|
|
1301
|
+
},
|
|
1302
|
+
table: {
|
|
1303
|
+
type: {
|
|
1304
|
+
summary: "Accepted range",
|
|
1305
|
+
detail: `Value lower than ${theme["default"].sizes.drawer.popin.min.height}px or greather than ${theme["default"].sizes.drawer.popin.max.height}px will have no effect because of min/max css rules.`
|
|
1306
|
+
},
|
|
1307
|
+
defaultValue: {
|
|
1308
|
+
summary: theme["default"].sizes.drawer.popin.min.height
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
},
|
|
1312
|
+
isOpen: {
|
|
1313
|
+
type: "boolean",
|
|
1314
|
+
description: "Controls if the popin is mounted or not.",
|
|
1315
|
+
required: true,
|
|
1316
|
+
control: {
|
|
1317
|
+
type: "boolean"
|
|
1318
|
+
}
|
|
1319
|
+
},
|
|
1320
|
+
onClose: {
|
|
1321
|
+
description: "Unmount the component when the user click on the cross icon. This props controls if the cross icon should be rendered inside the header component.",
|
|
1322
|
+
control: false
|
|
1323
|
+
},
|
|
1324
|
+
/** playground **/ hasHeader: {
|
|
1325
|
+
type: "boolean",
|
|
1326
|
+
value: true,
|
|
1327
|
+
description: "Controls if the header should be displayed.",
|
|
1328
|
+
required: true,
|
|
1329
|
+
control: {
|
|
1330
|
+
type: "boolean"
|
|
1331
|
+
},
|
|
1332
|
+
table: {
|
|
1333
|
+
category: "playground"
|
|
1334
|
+
}
|
|
1335
|
+
},
|
|
1336
|
+
hasFooter: {
|
|
1337
|
+
type: "boolean",
|
|
1338
|
+
value: true,
|
|
1339
|
+
description: "Controls if the footer should be displayed.",
|
|
1340
|
+
required: true,
|
|
1341
|
+
control: {
|
|
1342
|
+
type: "boolean"
|
|
1343
|
+
},
|
|
1344
|
+
table: {
|
|
1345
|
+
category: "playground"
|
|
1346
|
+
}
|
|
1347
|
+
},
|
|
1348
|
+
isCloseDisplayed: {
|
|
1349
|
+
type: "boolean",
|
|
1350
|
+
description: "Controls if the close button should be rendered.",
|
|
1351
|
+
required: true,
|
|
1352
|
+
control: {
|
|
1353
|
+
type: "boolean"
|
|
1354
|
+
},
|
|
1355
|
+
table: {
|
|
1356
|
+
category: "playground"
|
|
1357
|
+
}
|
|
1358
|
+
},
|
|
1359
|
+
isBackDisplayed: {
|
|
1360
|
+
type: "boolean",
|
|
1361
|
+
description: "Controls if the back button should be rendered.",
|
|
1362
|
+
required: true,
|
|
1363
|
+
control: {
|
|
1364
|
+
type: "boolean"
|
|
1365
|
+
},
|
|
1366
|
+
table: {
|
|
1367
|
+
category: "playground"
|
|
1368
|
+
}
|
|
1369
|
+
},
|
|
1370
|
+
"Header.Children.Text": {
|
|
1371
|
+
type: "text",
|
|
1372
|
+
description: "Any valid text. This parameter is passed to a Text component as children. The Text component is the children of the Header component.",
|
|
1373
|
+
required: true,
|
|
1374
|
+
control: {
|
|
1375
|
+
type: "text"
|
|
1376
|
+
},
|
|
1377
|
+
table: {
|
|
1378
|
+
category: "playground"
|
|
1379
|
+
}
|
|
1380
|
+
},
|
|
1381
|
+
"Body.Children.Text": {
|
|
1382
|
+
type: "text",
|
|
1383
|
+
description: "Any valid text. This parameter is passed to a Text component as children. The Text component is the children of the Body component.",
|
|
1384
|
+
required: true,
|
|
1385
|
+
control: {
|
|
1386
|
+
type: "text"
|
|
1387
|
+
},
|
|
1388
|
+
table: {
|
|
1389
|
+
category: "playground"
|
|
1390
|
+
}
|
|
122
1391
|
}
|
|
123
|
-
}
|
|
124
1392
|
},
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
control: { type: "boolean" },
|
|
164
|
-
table: { category: "playground" }
|
|
165
|
-
},
|
|
166
|
-
"Header.Children.Text": {
|
|
167
|
-
type: "text",
|
|
168
|
-
description: "Any valid text. This parameter is passed to a Text component as children. The Text component is the children of the Header component.",
|
|
169
|
-
required: true,
|
|
170
|
-
control: { type: "text" },
|
|
171
|
-
table: { category: "playground" }
|
|
172
|
-
},
|
|
173
|
-
"Body.Children.Text": {
|
|
174
|
-
type: "text",
|
|
175
|
-
description: "Any valid text. This parameter is passed to a Text component as children. The Text component is the children of the Body component.",
|
|
176
|
-
required: true,
|
|
177
|
-
control: { type: "text" },
|
|
178
|
-
table: { category: "playground" }
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
args: {
|
|
182
|
-
width: import_theme.default.sizes.drawer.popin.max.width,
|
|
183
|
-
height: import_theme.default.sizes.drawer.popin.max.height,
|
|
184
|
-
isOpen: true,
|
|
185
|
-
hasHeader: true,
|
|
186
|
-
hasFooter: true,
|
|
187
|
-
isCloseDisplayed: true,
|
|
188
|
-
isBackDisplayed: true,
|
|
189
|
-
"Body.Children.Text": `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus dignissim fermentum lectus, eu aliquet arcu tincidunt a. Etiam dapibus dolor at felis pretium, a posuere turpis dapibus. Mauris id felis et quam accumsan congue. Curabitur auctor nunc nec augue suscipit sagittis. Nunc eu eros varius, bibendum ligula id, molestie quam. Nam ac sem et mi pellentesque rhoncus sed eu nisi. Maecenas auctor elit at sollicitudin imperdiet. Sed mollis eros at nunc malesuada posuere. Suspendisse luctus commodo porttitor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus dignissim fermentum lectus, eu aliquet arcu tincidunt a. Etiam dapibus dolor at felis pretium, a posuere turpis dapibus. Mauris id felis et quam accumsan congue. Curabitur auctor nunc nec augue suscipit sagittis. Nunc eu eros varius, bibendum ligula id, molestie quam. Nam ac sem et mi pellentesque rhoncus sed eu nisi. Maecenas auctor elit at sollicitudin imperdiet. Sed mollis eros at nunc malesuada posuere. Suspendisse luctus commodo porttitor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus dignissim fermentum lectus, eu aliquet arcu tincidunt a. Etiam dapibus dolor at felis pretium, a posuere turpis dapibus. Mauris id felis et quam accumsan congue. Curabitur auctor nunc nec augue suscipit sagittis. Nunc eu eros varius, bibendum ligula id, molestie quam. Nam ac sem et mi pellentesque rhoncus sed eu nisi. Maecenas auctor elit at sollicitudin imperdiet. Sed mollis eros at nunc malesuada posuere. Suspendisse luctus commodo porttitor. Mauris id felis et quam accumsan congue. Curabitur auctor nunc nec augue suscipit sagittis. Nunc eu eros varius, bibendum ligula id, molestie quam. Nam ac sem et mi pellentesque rhoncus sed eu nisi. Maecenas auctor elit at sollicitudin imperdiet. Sed mollis eros at nunc malesuada posuere. Suspendisse luctus commodo porttitor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus dignissim fermentum lectus, eu aliquet arcu tincidunt a. Etiam dapibus dolor at felis pretium, a posuere turpis dapibus. Mauris id felis et quam accumsan congue. Curabitur auctor nunc nec augue suscipit sagittis. Nunc eu eros varius, bibendum ligula id, molestie quam. Nam ac sem et mi pellentesque rhoncus sed eu nisi. Maecenas auctor elit at sollicitudin imperdiet. Sed mollis eros at nunc malesuada posuere. Suspendisse luctus commodo porttitor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus dignissim fermentum lectus, eu aliquet arcu tincidunt a. Etiam dapibus dolor at felis pretium, a posuere turpis dapibus. Mauris id felis et quam accumsan congue. Curabitur auctor nunc nec augue suscipit sagittis. Nunc eu eros varius, bibendum ligula id, molestie quam. Nam ac sem et mi pellentesque rhoncus sed eu nisi. Maecenas auctor elit at sollicitudin imperdiet. Sed mollis eros at nunc malesuada posuere. Suspendisse luctus commodo porttitor. Mauris id felis et quam accumsan congue. Curabitur auctor nunc nec augue suscipit sagittis. Nunc eu eros varius, bibendum ligula id, molestie quam. Nam ac sem et mi pellentesque rhoncus sed eu nisi. Maecenas auctor elit at sollicitudin imperdiet. Sed mollis eros at nunc malesuada posuere. Suspendisse luctus commodo porttitor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus dignissim fermentum lectus, eu aliquet arcu tincidunt a. Etiam dapibus dolor at felis pretium, a posuere turpis dapibus. Mauris id felis et quam accumsan congue. Curabitur auctor nunc nec augue suscipit sagittis. Nunc eu eros varius, bibendum ligula id, molestie quam. Nam ac sem et mi pellentesque rhoncus sed eu nisi. Maecenas auctor elit at sollicitudin imperdiet. Sed mollis eros at nunc malesuada posuere. Suspendisse luctus commodo porttitor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus dignissim fermentum lectus, eu aliquet arcu tincidunt a. Etiam dapibus dolor at felis pretium, a posuere turpis dapibus. Mauris id felis et quam accumsan congue. Curabitur auctor nunc nec augue suscipit sagittis. Nunc eu eros varius, bibendum ligula id, molestie quam. Nam ac sem et mi pellentesque rhoncus sed eu nisi. Maecenas auctor elit at sollicitudin imperdiet. Sed mollis eros at nunc malesuada posuere. Suspendisse luctus commodo porttitor.`,
|
|
190
|
-
"Header.Children.Text": "This is a fake title"
|
|
191
|
-
}
|
|
192
|
-
};
|
|
193
|
-
const Template = (args) => {
|
|
194
|
-
const [, updateArgs] = (0, import_manager_api.useArgs)();
|
|
195
|
-
const onClose = () => updateArgs({ isOpen: false });
|
|
196
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_Button.default, { variant: "shade", onClick: () => updateArgs({ isOpen: true }) }, "Open the modal"), /* @__PURE__ */ import_react.default.createElement(import_index.default, { ...args }, args.hasHeader ? /* @__PURE__ */ import_react.default.createElement(
|
|
197
|
-
import_index.default.Header,
|
|
198
|
-
{
|
|
199
|
-
onBack: args.isBackDisplayed ? (0, import_addon_actions.action)("previous") : void 0,
|
|
200
|
-
onClose: args.isCloseDisplayed ? onClose : void 0
|
|
201
|
-
},
|
|
202
|
-
/* @__PURE__ */ import_react.default.createElement(import_Text.default, { variant: "h5" }, args["Header.Children.Text"])
|
|
203
|
-
) : null, /* @__PURE__ */ import_react.default.createElement(import_index.default.Body, null, /* @__PURE__ */ import_react.default.createElement(import_Text.default, { variant: "paragraph" }, args["Body.Children.Text"])), args.hasFooter ? /* @__PURE__ */ import_react.default.createElement(import_index.default.Footer, { flexDirection: "row-reverse" }, /* @__PURE__ */ import_react.default.createElement(import_Button.default, { variant: "main", onClick: (0, import_addon_actions.action)("next") }, "Next")) : null));
|
|
1393
|
+
args: {
|
|
1394
|
+
width: theme["default"].sizes.drawer.popin.max.width,
|
|
1395
|
+
height: theme["default"].sizes.drawer.popin.max.height,
|
|
1396
|
+
isOpen: true,
|
|
1397
|
+
hasHeader: true,
|
|
1398
|
+
hasFooter: true,
|
|
1399
|
+
isCloseDisplayed: true,
|
|
1400
|
+
isBackDisplayed: true,
|
|
1401
|
+
"Body.Children.Text": `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus dignissim fermentum lectus, eu aliquet arcu tincidunt a. Etiam dapibus dolor at felis pretium, a posuere turpis dapibus. Mauris id felis et quam accumsan congue. Curabitur auctor nunc nec augue suscipit sagittis. Nunc eu eros varius, bibendum ligula id, molestie quam. Nam ac sem et mi pellentesque rhoncus sed eu nisi. Maecenas auctor elit at sollicitudin imperdiet. Sed mollis eros at nunc malesuada posuere. Suspendisse luctus commodo porttitor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus dignissim fermentum lectus, eu aliquet arcu tincidunt a. Etiam dapibus dolor at felis pretium, a posuere turpis dapibus. Mauris id felis et quam accumsan congue. Curabitur auctor nunc nec augue suscipit sagittis. Nunc eu eros varius, bibendum ligula id, molestie quam. Nam ac sem et mi pellentesque rhoncus sed eu nisi. Maecenas auctor elit at sollicitudin imperdiet. Sed mollis eros at nunc malesuada posuere. Suspendisse luctus commodo porttitor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus dignissim fermentum lectus, eu aliquet arcu tincidunt a. Etiam dapibus dolor at felis pretium, a posuere turpis dapibus. Mauris id felis et quam accumsan congue. Curabitur auctor nunc nec augue suscipit sagittis. Nunc eu eros varius, bibendum ligula id, molestie quam. Nam ac sem et mi pellentesque rhoncus sed eu nisi. Maecenas auctor elit at sollicitudin imperdiet. Sed mollis eros at nunc malesuada posuere. Suspendisse luctus commodo porttitor. Mauris id felis et quam accumsan congue. Curabitur auctor nunc nec augue suscipit sagittis. Nunc eu eros varius, bibendum ligula id, molestie quam. Nam ac sem et mi pellentesque rhoncus sed eu nisi. Maecenas auctor elit at sollicitudin imperdiet. Sed mollis eros at nunc malesuada posuere. Suspendisse luctus commodo porttitor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus dignissim fermentum lectus, eu aliquet arcu tincidunt a. Etiam dapibus dolor at felis pretium, a posuere turpis dapibus. Mauris id felis et quam accumsan congue. Curabitur auctor nunc nec augue suscipit sagittis. Nunc eu eros varius, bibendum ligula id, molestie quam. Nam ac sem et mi pellentesque rhoncus sed eu nisi. Maecenas auctor elit at sollicitudin imperdiet. Sed mollis eros at nunc malesuada posuere. Suspendisse luctus commodo porttitor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus dignissim fermentum lectus, eu aliquet arcu tincidunt a. Etiam dapibus dolor at felis pretium, a posuere turpis dapibus. Mauris id felis et quam accumsan congue. Curabitur auctor nunc nec augue suscipit sagittis. Nunc eu eros varius, bibendum ligula id, molestie quam. Nam ac sem et mi pellentesque rhoncus sed eu nisi. Maecenas auctor elit at sollicitudin imperdiet. Sed mollis eros at nunc malesuada posuere. Suspendisse luctus commodo porttitor. Mauris id felis et quam accumsan congue. Curabitur auctor nunc nec augue suscipit sagittis. Nunc eu eros varius, bibendum ligula id, molestie quam. Nam ac sem et mi pellentesque rhoncus sed eu nisi. Maecenas auctor elit at sollicitudin imperdiet. Sed mollis eros at nunc malesuada posuere. Suspendisse luctus commodo porttitor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus dignissim fermentum lectus, eu aliquet arcu tincidunt a. Etiam dapibus dolor at felis pretium, a posuere turpis dapibus. Mauris id felis et quam accumsan congue. Curabitur auctor nunc nec augue suscipit sagittis. Nunc eu eros varius, bibendum ligula id, molestie quam. Nam ac sem et mi pellentesque rhoncus sed eu nisi. Maecenas auctor elit at sollicitudin imperdiet. Sed mollis eros at nunc malesuada posuere. Suspendisse luctus commodo porttitor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus dignissim fermentum lectus, eu aliquet arcu tincidunt a. Etiam dapibus dolor at felis pretium, a posuere turpis dapibus. Mauris id felis et quam accumsan congue. Curabitur auctor nunc nec augue suscipit sagittis. Nunc eu eros varius, bibendum ligula id, molestie quam. Nam ac sem et mi pellentesque rhoncus sed eu nisi. Maecenas auctor elit at sollicitudin imperdiet. Sed mollis eros at nunc malesuada posuere. Suspendisse luctus commodo porttitor.`,
|
|
1402
|
+
"Header.Children.Text": "This is a fake title"
|
|
1403
|
+
}
|
|
1404
|
+
});
|
|
1405
|
+
const Template = (args)=>{
|
|
1406
|
+
const [, updateArgs] = (0,manager_api_namespaceObject.useArgs)();
|
|
1407
|
+
/* Allow interactive controls from the story. Thanks to this, triggering onClose
|
|
1408
|
+
** function from the component itself (by clicking on the cross icon e.g.)
|
|
1409
|
+
** will update the value of the isOpen props.
|
|
1410
|
+
*/ const onClose = ()=>updateArgs({
|
|
1411
|
+
isOpen: false
|
|
1412
|
+
});
|
|
1413
|
+
return /*#__PURE__*/ external_react_default().createElement((external_react_default()).Fragment, null, /*#__PURE__*/ external_react_default().createElement(Button["default"], {
|
|
1414
|
+
variant: "shade",
|
|
1415
|
+
onClick: ()=>updateArgs({
|
|
1416
|
+
isOpen: true
|
|
1417
|
+
})
|
|
1418
|
+
}, "Open the modal"), /*#__PURE__*/ external_react_default().createElement(Popin["default"], args, args.hasHeader ? /*#__PURE__*/ external_react_default().createElement(Popin["default"].Header, {
|
|
1419
|
+
onBack: args.isBackDisplayed ? ()=>{} : undefined,
|
|
1420
|
+
onClose: args.isCloseDisplayed ? onClose : undefined
|
|
1421
|
+
}, /*#__PURE__*/ external_react_default().createElement(Text["default"], {
|
|
1422
|
+
variant: "h5"
|
|
1423
|
+
}, args["Header.Children.Text"])) : null, /*#__PURE__*/ external_react_default().createElement(Popin["default"].Body, null, /*#__PURE__*/ external_react_default().createElement(Text["default"], {
|
|
1424
|
+
variant: "paragraph"
|
|
1425
|
+
}, args["Body.Children.Text"])), args.hasFooter ? /*#__PURE__*/ external_react_default().createElement(Popin["default"].Footer, {
|
|
1426
|
+
flexDirection: "row-reverse"
|
|
1427
|
+
}, /*#__PURE__*/ external_react_default().createElement(Button["default"], {
|
|
1428
|
+
variant: "main",
|
|
1429
|
+
onClick: ()=>{}
|
|
1430
|
+
}, "Next")) : null));
|
|
204
1431
|
};
|
|
205
1432
|
const Default = Template.bind({});
|
|
206
|
-
|
|
1433
|
+
|
|
1434
|
+
})();
|
|
1435
|
+
|
|
1436
|
+
module.exports = __webpack_exports__;
|
|
1437
|
+
})()
|
|
1438
|
+
;
|
|
1439
|
+
//# sourceMappingURL=Popin.stories.js.map
|