@ledgerhq/react-ui 0.12.1-recover-beta.0 → 0.13.0-next.0
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 +27 -3
- package/lib/cjs/assets/cryptoIcons.js +12 -14
- package/lib/cjs/assets/cryptoIcons.js.map +1 -1
- package/lib/cjs/assets/fonts.js +9 -26
- package/lib/cjs/assets/fonts.js.map +1 -1
- package/lib/cjs/assets/icons.js +12 -14
- package/lib/cjs/assets/icons.js.map +1 -1
- package/lib/cjs/assets/images/images.d.js +1 -0
- package/lib/cjs/assets/index.js +22 -15
- package/lib/cjs/assets/index.js.map +1 -1
- package/lib/cjs/assets/logos/LedgerLiveAltRegular.js +37 -23
- package/lib/cjs/assets/logos/LedgerLiveAltRegular.js.map +1 -1
- package/lib/cjs/assets/logos/LedgerLiveRegular.js +37 -23
- package/lib/cjs/assets/logos/LedgerLiveRegular.js.map +1 -1
- package/lib/cjs/assets/logos/index.js +21 -14
- package/lib/cjs/assets/logos/index.js.map +1 -1
- package/lib/cjs/components/Chart/Chart.stories.js +34 -56
- package/lib/cjs/components/Chart/Chart.stories.js.map +2 -2
- package/lib/cjs/components/Chart/index.js +79 -60
- package/lib/cjs/components/Chart/index.js.map +2 -2
- package/lib/cjs/components/Chart/types.js +15 -2
- package/lib/cjs/components/Chart/types.js.map +1 -1
- package/lib/cjs/components/Chart/utils.js +16 -3
- package/lib/cjs/components/Chart/utils.js.map +2 -2
- package/lib/cjs/components/Table/Columns.js +47 -41
- package/lib/cjs/components/Table/Columns.js.map +2 -2
- package/lib/cjs/components/Table/Table.stories.js +102 -104
- package/lib/cjs/components/Table/Table.stories.js.map +2 -2
- package/lib/cjs/components/Table/index.js +54 -46
- package/lib/cjs/components/Table/index.js.map +2 -2
- package/lib/cjs/components/Table/stories.helper.js +82 -68
- package/lib/cjs/components/Table/stories.helper.js.map +2 -2
- package/lib/cjs/components/Tag/Tag.stories.js +27 -46
- package/lib/cjs/components/Tag/Tag.stories.js.map +2 -2
- package/lib/cjs/components/Tag/index.js +24 -24
- package/lib/cjs/components/Tag/index.js.map +2 -2
- package/lib/cjs/components/animations/GlitchText/GlitchText.stories.js +23 -20
- package/lib/cjs/components/animations/GlitchText/GlitchText.stories.js.map +2 -2
- package/lib/cjs/components/animations/GlitchText/index.js +20 -13
- package/lib/cjs/components/animations/GlitchText/index.js.map +2 -2
- package/lib/cjs/components/asorted/Divider/Divider.stories.js +25 -20
- package/lib/cjs/components/asorted/Divider/Divider.stories.js.map +2 -2
- package/lib/cjs/components/asorted/Divider/index.js +22 -17
- package/lib/cjs/components/asorted/Divider/index.js.map +2 -2
- package/lib/cjs/components/asorted/Icon/BoxedIcon.js +33 -35
- package/lib/cjs/components/asorted/Icon/BoxedIcon.js.map +2 -2
- package/lib/cjs/components/asorted/Icon/BoxedIcon.stories.js +38 -37
- package/lib/cjs/components/asorted/Icon/BoxedIcon.stories.js.map +2 -2
- package/lib/cjs/components/asorted/Icon/CryptoIcon.js +60 -70
- package/lib/cjs/components/asorted/Icon/CryptoIcon.js.map +2 -2
- package/lib/cjs/components/asorted/Icon/CryptoIcons.stories.js +52 -52
- package/lib/cjs/components/asorted/Icon/CryptoIcons.stories.js.map +2 -2
- package/lib/cjs/components/asorted/Icon/Icon.js +30 -24
- package/lib/cjs/components/asorted/Icon/Icon.js.map +3 -3
- package/lib/cjs/components/asorted/Icon/Icons.stories.js +53 -53
- package/lib/cjs/components/asorted/Icon/Icons.stories.js.map +3 -3
- package/lib/cjs/components/asorted/Icon/ProviderIcon.js +33 -33
- package/lib/cjs/components/asorted/Icon/ProviderIcon.js.map +2 -2
- package/lib/cjs/components/asorted/Icon/Providers.stories.js +49 -48
- package/lib/cjs/components/asorted/Icon/Providers.stories.js.map +2 -2
- package/lib/cjs/components/asorted/Icon/index.js +23 -18
- package/lib/cjs/components/asorted/Icon/index.js.map +3 -3
- package/lib/cjs/components/asorted/Text/Text.stories.js +27 -40
- package/lib/cjs/components/asorted/Text/Text.stories.js.map +2 -2
- package/lib/cjs/components/asorted/Text/index.js +41 -23
- package/lib/cjs/components/asorted/Text/index.js.map +2 -2
- package/lib/cjs/components/asorted/Text/styles.js +12 -15
- package/lib/cjs/components/asorted/Text/styles.js.map +1 -1
- package/lib/cjs/components/asorted/index.js +22 -16
- package/lib/cjs/components/asorted/index.js.map +2 -2
- package/lib/cjs/components/cards/Carousel/Carousel.stories.js +24 -21
- package/lib/cjs/components/cards/Carousel/Carousel.stories.js.map +2 -2
- package/lib/cjs/components/cards/Carousel/Slide.js +24 -29
- package/lib/cjs/components/cards/Carousel/Slide.js.map +2 -2
- package/lib/cjs/components/cards/Carousel/index.js +61 -81
- package/lib/cjs/components/cards/Carousel/index.js.map +2 -2
- package/lib/cjs/components/cards/index.js +20 -13
- package/lib/cjs/components/cards/index.js.map +1 -1
- package/lib/cjs/components/cta/Button/Button.stories.js +50 -70
- package/lib/cjs/components/cta/Button/Button.stories.js.map +2 -2
- package/lib/cjs/components/cta/Button/index.js +43 -54
- package/lib/cjs/components/cta/Button/index.js.map +3 -3
- package/lib/cjs/components/cta/Link/Link.stories.js +24 -24
- package/lib/cjs/components/cta/Link/Link.stories.js.map +2 -2
- package/lib/cjs/components/cta/Link/getLinkStyle.js +16 -3
- package/lib/cjs/components/cta/Link/getLinkStyle.js.map +1 -1
- package/lib/cjs/components/cta/Link/index.js +37 -39
- package/lib/cjs/components/cta/Link/index.js.map +2 -2
- package/lib/cjs/components/cta/Toggle/Toggle.stories.js +23 -19
- package/lib/cjs/components/cta/Toggle/Toggle.stories.js.map +2 -2
- package/lib/cjs/components/cta/Toggle/index.js +26 -23
- package/lib/cjs/components/cta/Toggle/index.js.map +2 -2
- package/lib/cjs/components/cta/getCtaStyle.js +16 -3
- package/lib/cjs/components/cta/getCtaStyle.js.map +1 -1
- package/lib/cjs/components/cta/index.js +22 -15
- package/lib/cjs/components/cta/index.js.map +1 -1
- package/lib/cjs/components/form/BaseInput/Input.stories.js +58 -55
- package/lib/cjs/components/form/BaseInput/Input.stories.js.map +2 -2
- package/lib/cjs/components/form/BaseInput/index.js +66 -70
- package/lib/cjs/components/form/BaseInput/index.js.map +2 -2
- package/lib/cjs/components/form/Checkbox/Checkbox.js +27 -32
- package/lib/cjs/components/form/Checkbox/Checkbox.js.map +3 -3
- package/lib/cjs/components/form/Checkbox/Checkbox.stories.js +23 -19
- package/lib/cjs/components/form/Checkbox/Checkbox.stories.js.map +2 -2
- package/lib/cjs/components/form/Checkbox/index.js +20 -13
- package/lib/cjs/components/form/Checkbox/index.js.map +1 -1
- package/lib/cjs/components/form/Dropdown/Dropdown.stories.js +31 -21
- package/lib/cjs/components/form/Dropdown/Dropdown.stories.js.map +2 -2
- package/lib/cjs/components/form/Dropdown/index.js +69 -74
- package/lib/cjs/components/form/Dropdown/index.js.map +2 -2
- package/lib/cjs/components/form/DropdownGeneric/DropdownGeneric.stories.js +81 -100
- package/lib/cjs/components/form/DropdownGeneric/DropdownGeneric.stories.js.map +2 -2
- package/lib/cjs/components/form/DropdownGeneric/index.js +51 -43
- package/lib/cjs/components/form/DropdownGeneric/index.js.map +2 -2
- package/lib/cjs/components/form/LegendInput/Input.stories.js +22 -20
- package/lib/cjs/components/form/LegendInput/Input.stories.js.map +2 -2
- package/lib/cjs/components/form/LegendInput/index.js +31 -24
- package/lib/cjs/components/form/LegendInput/index.js.map +2 -2
- package/lib/cjs/components/form/NumberInput/Input.stories.js +33 -23
- package/lib/cjs/components/form/NumberInput/Input.stories.js.map +2 -2
- package/lib/cjs/components/form/NumberInput/index.js +47 -41
- package/lib/cjs/components/form/NumberInput/index.js.map +2 -2
- package/lib/cjs/components/form/QrCodeInput/Input.stories.js +22 -20
- package/lib/cjs/components/form/QrCodeInput/Input.stories.js.map +2 -2
- package/lib/cjs/components/form/QrCodeInput/index.js +32 -31
- package/lib/cjs/components/form/QrCodeInput/index.js.map +2 -2
- package/lib/cjs/components/form/QuantityInput/Input.stories.js +34 -24
- package/lib/cjs/components/form/QuantityInput/Input.stories.js.map +2 -2
- package/lib/cjs/components/form/QuantityInput/index.js +33 -38
- package/lib/cjs/components/form/QuantityInput/index.js.map +2 -2
- package/lib/cjs/components/form/Radio/Radio.stories.js +67 -88
- package/lib/cjs/components/form/Radio/Radio.stories.js.map +2 -2
- package/lib/cjs/components/form/Radio/RadioElement.js +46 -33
- package/lib/cjs/components/form/Radio/RadioElement.js.map +2 -2
- package/lib/cjs/components/form/Radio/RadioElement.stories.js +25 -49
- package/lib/cjs/components/form/Radio/RadioElement.stories.js.map +2 -2
- package/lib/cjs/components/form/Radio/RadioListElement.js +37 -35
- package/lib/cjs/components/form/Radio/RadioListElement.js.map +2 -2
- package/lib/cjs/components/form/Radio/RadioListElement.stories.js +23 -30
- package/lib/cjs/components/form/Radio/RadioListElement.stories.js.map +2 -2
- package/lib/cjs/components/form/Radio/index.js +24 -22
- package/lib/cjs/components/form/Radio/index.js.map +2 -2
- package/lib/cjs/components/form/SearchInput/Input.stories.js +22 -20
- package/lib/cjs/components/form/SearchInput/Input.stories.js.map +2 -2
- package/lib/cjs/components/form/SearchInput/index.js +36 -23
- package/lib/cjs/components/form/SearchInput/index.js.map +2 -2
- package/lib/cjs/components/form/SelectInput/Control.js +23 -22
- package/lib/cjs/components/form/SelectInput/Control.js.map +2 -2
- package/lib/cjs/components/form/SelectInput/DropdownIndicator.js +25 -26
- package/lib/cjs/components/form/SelectInput/DropdownIndicator.js.map +2 -2
- package/lib/cjs/components/form/SelectInput/IndicatorsContainer.js +23 -20
- package/lib/cjs/components/form/SelectInput/IndicatorsContainer.js.map +2 -2
- package/lib/cjs/components/form/SelectInput/MenuList.js +22 -17
- package/lib/cjs/components/form/SelectInput/MenuList.js.map +2 -2
- package/lib/cjs/components/form/SelectInput/Option.js +34 -25
- package/lib/cjs/components/form/SelectInput/Option.js.map +2 -2
- package/lib/cjs/components/form/SelectInput/Select.stories.js +136 -138
- package/lib/cjs/components/form/SelectInput/Select.stories.js.map +2 -2
- package/lib/cjs/components/form/SelectInput/ValueContainer.js +32 -23
- package/lib/cjs/components/form/SelectInput/ValueContainer.js.map +2 -2
- package/lib/cjs/components/form/SelectInput/VirtualMenuList.js +62 -37
- package/lib/cjs/components/form/SelectInput/VirtualMenuList.js.map +2 -2
- package/lib/cjs/components/form/SelectInput/index.js +56 -45
- package/lib/cjs/components/form/SelectInput/index.js.map +2 -2
- package/lib/cjs/components/form/SplitInput/SplitInput.stories.js +151 -131
- package/lib/cjs/components/form/SplitInput/SplitInput.stories.js.map +2 -2
- package/lib/cjs/components/form/SplitInput/index.js +31 -34
- package/lib/cjs/components/form/SplitInput/index.js.map +2 -2
- package/lib/cjs/components/form/Switch/Switch.js +38 -35
- package/lib/cjs/components/form/Switch/Switch.js.map +2 -2
- package/lib/cjs/components/form/Switch/Switch.stories.js +23 -19
- package/lib/cjs/components/form/Switch/Switch.stories.js.map +2 -2
- package/lib/cjs/components/form/Switch/index.js +20 -13
- package/lib/cjs/components/form/Switch/index.js.map +1 -1
- package/lib/cjs/components/form/index.js +32 -25
- package/lib/cjs/components/form/index.js.map +1 -1
- package/lib/cjs/components/helpers.js +16 -3
- package/lib/cjs/components/helpers.js.map +1 -1
- package/lib/cjs/components/index.js +33 -25
- package/lib/cjs/components/index.js.map +1 -1
- package/lib/cjs/components/layout/Box/Box.stories.js +22 -17
- package/lib/cjs/components/layout/Box/Box.stories.js.map +2 -2
- package/lib/cjs/components/layout/Box/index.js +20 -13
- package/lib/cjs/components/layout/Box/index.js.map +2 -2
- package/lib/cjs/components/layout/Drawer/Drawer.stories.js +46 -43
- package/lib/cjs/components/layout/Drawer/Drawer.stories.js.map +2 -2
- package/lib/cjs/components/layout/Drawer/index.js +137 -126
- package/lib/cjs/components/layout/Drawer/index.js.map +3 -3
- package/lib/cjs/components/layout/Flex/Flex.stories.js +22 -31
- package/lib/cjs/components/layout/Flex/Flex.stories.js.map +2 -2
- package/lib/cjs/components/layout/Flex/index.js +20 -13
- package/lib/cjs/components/layout/Flex/index.js.map +2 -2
- package/lib/cjs/components/layout/Grid/Grid.stories.js +119 -93
- package/lib/cjs/components/layout/Grid/Grid.stories.js.map +2 -2
- package/lib/cjs/components/layout/Grid/index.js +21 -14
- package/lib/cjs/components/layout/Grid/index.js.map +2 -2
- package/lib/cjs/components/layout/List/VerticalTimeline/TimelineIndicator.js +30 -33
- package/lib/cjs/components/layout/List/VerticalTimeline/TimelineIndicator.js.map +2 -2
- package/lib/cjs/components/layout/List/VerticalTimeline/TimelineItem.js +51 -43
- package/lib/cjs/components/layout/List/VerticalTimeline/TimelineItem.js.map +2 -2
- package/lib/cjs/components/layout/List/VerticalTimeline/VerticalTimeline.stories.js +24 -21
- package/lib/cjs/components/layout/List/VerticalTimeline/VerticalTimeline.stories.js.map +2 -2
- package/lib/cjs/components/layout/List/VerticalTimeline/index.js +31 -24
- package/lib/cjs/components/layout/List/VerticalTimeline/index.js.map +2 -2
- package/lib/cjs/components/layout/Popin/Popin.stories.js +36 -37
- package/lib/cjs/components/layout/Popin/Popin.stories.js.map +2 -2
- package/lib/cjs/components/layout/Popin/index.js +37 -55
- package/lib/cjs/components/layout/Popin/index.js.map +3 -3
- package/lib/cjs/components/layout/Side/Provider.js +30 -19
- package/lib/cjs/components/layout/Side/Provider.js.map +2 -2
- package/lib/cjs/components/layout/Side/Side.stories.js +47 -40
- package/lib/cjs/components/layout/Side/Side.stories.js.map +2 -2
- package/lib/cjs/components/layout/Side/index.js +40 -36
- package/lib/cjs/components/layout/Side/index.js.map +2 -2
- package/lib/cjs/components/layout/index.js +26 -19
- package/lib/cjs/components/layout/index.js.map +1 -1
- package/lib/cjs/components/loaders/InfiniteLoader/InfiniteLoader.stories.js +22 -17
- package/lib/cjs/components/loaders/InfiniteLoader/InfiniteLoader.stories.js.map +2 -2
- package/lib/cjs/components/loaders/InfiniteLoader/index.js +86 -72
- package/lib/cjs/components/loaders/InfiniteLoader/index.js.map +2 -2
- package/lib/cjs/components/loaders/ProgressLoader/ProgressLoader.stories.js +34 -24
- package/lib/cjs/components/loaders/ProgressLoader/ProgressLoader.stories.js.map +2 -2
- package/lib/cjs/components/loaders/ProgressLoader/index.js +53 -43
- package/lib/cjs/components/loaders/ProgressLoader/index.js.map +2 -2
- package/lib/cjs/components/loaders/index.js +21 -14
- package/lib/cjs/components/loaders/index.js.map +1 -1
- package/lib/cjs/components/message/Alert/Alert.stories.js +45 -38
- package/lib/cjs/components/message/Alert/Alert.stories.js.map +3 -3
- package/lib/cjs/components/message/Alert/index.js +41 -42
- package/lib/cjs/components/message/Alert/index.js.map +2 -2
- package/lib/cjs/components/message/Log/Brackets.js +46 -49
- package/lib/cjs/components/message/Log/Brackets.js.map +2 -2
- package/lib/cjs/components/message/Log/Log.stories.js +22 -17
- package/lib/cjs/components/message/Log/Log.stories.js.map +2 -2
- package/lib/cjs/components/message/Log/index.js +35 -31
- package/lib/cjs/components/message/Log/index.js.map +2 -2
- package/lib/cjs/components/message/Notification/Badge.js +23 -18
- package/lib/cjs/components/message/Notification/Badge.js.map +2 -2
- package/lib/cjs/components/message/Notification/Badge.stories.js +40 -36
- package/lib/cjs/components/message/Notification/Badge.stories.js.map +2 -2
- package/lib/cjs/components/message/Notification/Notification.stories.js +51 -66
- package/lib/cjs/components/message/Notification/Notification.stories.js.map +2 -2
- package/lib/cjs/components/message/Notification/index.js +27 -41
- package/lib/cjs/components/message/Notification/index.js.map +2 -2
- package/lib/cjs/components/message/StatusNotification/StatusNotification.stories.js +26 -49
- package/lib/cjs/components/message/StatusNotification/StatusNotification.stories.js.map +3 -3
- package/lib/cjs/components/message/StatusNotification/index.js +24 -20
- package/lib/cjs/components/message/StatusNotification/index.js.map +2 -2
- package/lib/cjs/components/message/Tip/Tip.stories.js +22 -17
- package/lib/cjs/components/message/Tip/Tip.stories.js.map +2 -2
- package/lib/cjs/components/message/Tip/index.js +28 -36
- package/lib/cjs/components/message/Tip/index.js.map +2 -2
- package/lib/cjs/components/message/Tooltip/Tooltip.stories.js +37 -31
- package/lib/cjs/components/message/Tooltip/Tooltip.stories.js.map +2 -2
- package/lib/cjs/components/message/Tooltip/index.js +48 -45
- package/lib/cjs/components/message/Tooltip/index.js.map +2 -2
- package/lib/cjs/components/message/Tooltip/styles.js +12 -15
- package/lib/cjs/components/message/Tooltip/styles.js.map +1 -1
- package/lib/cjs/components/message/index.js +26 -19
- package/lib/cjs/components/message/index.js.map +1 -1
- package/lib/cjs/components/navigation/Aside/Aside.stories.js +39 -58
- package/lib/cjs/components/navigation/Aside/Aside.stories.js.map +2 -2
- package/lib/cjs/components/navigation/Aside/index.js +24 -26
- package/lib/cjs/components/navigation/Aside/index.js.map +2 -2
- package/lib/cjs/components/navigation/Aside/stories.helper.js +16 -3
- package/lib/cjs/components/navigation/Aside/stories.helper.js.map +1 -1
- package/lib/cjs/components/navigation/Breadcrumb/Breadcrumb.stories.js +62 -73
- package/lib/cjs/components/navigation/Breadcrumb/Breadcrumb.stories.js.map +2 -2
- package/lib/cjs/components/navigation/Breadcrumb/index.js +71 -59
- package/lib/cjs/components/navigation/Breadcrumb/index.js.map +2 -2
- package/lib/cjs/components/navigation/FlowStepper/FlowStepper.stories.js +165 -191
- package/lib/cjs/components/navigation/FlowStepper/FlowStepper.stories.js.map +2 -2
- package/lib/cjs/components/navigation/FlowStepper/index.js +48 -59
- package/lib/cjs/components/navigation/FlowStepper/index.js.map +2 -2
- package/lib/cjs/components/navigation/Header/Header.stories.js +27 -49
- package/lib/cjs/components/navigation/Header/Header.stories.js.map +2 -2
- package/lib/cjs/components/navigation/Header/index.js +22 -20
- package/lib/cjs/components/navigation/Header/index.js.map +2 -2
- package/lib/cjs/components/navigation/index.js +26 -18
- package/lib/cjs/components/navigation/index.js.map +1 -1
- package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.js +23 -33
- package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.js.map +2 -2
- package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.stories.js +22 -18
- package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.stories.js.map +2 -2
- package/lib/cjs/components/navigation/progress/ProgressBar/index.js +20 -13
- package/lib/cjs/components/navigation/progress/ProgressBar/index.js.map +1 -1
- package/lib/cjs/components/navigation/progress/Stepper/Item.stories.js +22 -19
- package/lib/cjs/components/navigation/progress/Stepper/Item.stories.js.map +2 -2
- package/lib/cjs/components/navigation/progress/Stepper/ProgressSteps.stories.js +23 -22
- package/lib/cjs/components/navigation/progress/Stepper/ProgressSteps.stories.js.map +2 -2
- package/lib/cjs/components/navigation/progress/Stepper/index.js +36 -81
- package/lib/cjs/components/navigation/progress/Stepper/index.js.map +2 -2
- package/lib/cjs/components/navigation/progress/index.js +21 -14
- package/lib/cjs/components/navigation/progress/index.js.map +1 -1
- package/lib/cjs/components/navigation/sideBar/Item/Item.js +58 -43
- package/lib/cjs/components/navigation/sideBar/Item/Item.js.map +2 -2
- package/lib/cjs/components/navigation/sideBar/Item/Item.stories.js +47 -45
- package/lib/cjs/components/navigation/sideBar/Item/Item.stories.js.map +2 -2
- package/lib/cjs/components/navigation/sideBar/Item/index.js +20 -13
- package/lib/cjs/components/navigation/sideBar/Item/index.js.map +1 -1
- package/lib/cjs/components/navigation/sideBar/Logo/Logo.js +46 -31
- package/lib/cjs/components/navigation/sideBar/Logo/Logo.js.map +2 -2
- package/lib/cjs/components/navigation/sideBar/Logo/index.js +20 -13
- package/lib/cjs/components/navigation/sideBar/Logo/index.js.map +1 -1
- package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.js +43 -41
- package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.js.map +2 -2
- package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.stories.js +33 -78
- package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.stories.js.map +2 -2
- package/lib/cjs/components/navigation/sideBar/SideBar/index.js +20 -13
- package/lib/cjs/components/navigation/sideBar/SideBar/index.js.map +1 -1
- package/lib/cjs/components/navigation/sideBar/Toggle/Toggle.js +37 -26
- package/lib/cjs/components/navigation/sideBar/Toggle/Toggle.js.map +2 -2
- package/lib/cjs/components/navigation/sideBar/Toggle/index.js +20 -13
- package/lib/cjs/components/navigation/sideBar/Toggle/index.js.map +1 -1
- package/lib/cjs/components/navigation/sideBar/index.js +12 -15
- package/lib/cjs/components/navigation/sideBar/index.js.map +1 -1
- package/lib/cjs/components/styled.js +32 -16
- package/lib/cjs/components/styled.js.map +2 -2
- package/lib/cjs/components/styled.stories.js +22 -17
- package/lib/cjs/components/styled.stories.js.map +2 -2
- package/lib/cjs/components/tabs/Bar/Bar.stories.js +25 -33
- package/lib/cjs/components/tabs/Bar/Bar.stories.js.map +2 -2
- package/lib/cjs/components/tabs/Bar/index.js +34 -23
- package/lib/cjs/components/tabs/Bar/index.js.map +2 -2
- package/lib/cjs/components/tabs/Chip/Chip.stories.js +25 -33
- package/lib/cjs/components/tabs/Chip/Chip.stories.js.map +2 -2
- package/lib/cjs/components/tabs/Chip/index.js +34 -27
- package/lib/cjs/components/tabs/Chip/index.js.map +2 -2
- package/lib/cjs/components/tabs/Pill/Pill.stories.js +26 -33
- package/lib/cjs/components/tabs/Pill/Pill.stories.js.map +2 -2
- package/lib/cjs/components/tabs/Pill/index.js +35 -24
- package/lib/cjs/components/tabs/Pill/index.js.map +2 -2
- package/lib/cjs/components/tabs/Tabs/Tabs.stories.js +25 -31
- package/lib/cjs/components/tabs/Tabs/Tabs.stories.js.map +2 -2
- package/lib/cjs/components/tabs/Tabs/index.js +43 -41
- package/lib/cjs/components/tabs/Tabs/index.js.map +2 -2
- package/lib/cjs/components/tabs/index.js +23 -16
- package/lib/cjs/components/tabs/index.js.map +1 -1
- package/lib/cjs/components/transitions/TransitionInOut.js +23 -23
- package/lib/cjs/components/transitions/TransitionInOut.js.map +2 -2
- package/lib/cjs/components/transitions/TransitionScale.js +23 -21
- package/lib/cjs/components/transitions/TransitionScale.js.map +2 -2
- package/lib/cjs/components/transitions/TransitionSlide.js +23 -23
- package/lib/cjs/components/transitions/TransitionSlide.js.map +2 -2
- package/lib/cjs/components/transitions/index.js +22 -15
- package/lib/cjs/components/transitions/index.js.map +1 -1
- package/lib/cjs/index.js +15 -17
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/styles/InvertTheme.js +47 -38
- package/lib/cjs/styles/InvertTheme.js.map +2 -2
- package/lib/cjs/styles/Spacing.stories.js +32 -34
- package/lib/cjs/styles/Spacing.stories.js.map +2 -2
- package/lib/cjs/styles/StyleProvider.js +36 -31
- package/lib/cjs/styles/StyleProvider.js.map +2 -2
- package/lib/cjs/styles/breakpoints.stories.js +46 -44
- package/lib/cjs/styles/breakpoints.stories.js.map +2 -2
- package/lib/cjs/styles/global.js +23 -16
- package/lib/cjs/styles/global.js.map +2 -2
- package/lib/cjs/styles/helpers.js +21 -18
- package/lib/cjs/styles/helpers.js.map +3 -3
- package/lib/cjs/styles/index.js +26 -18
- package/lib/cjs/styles/index.js.map +1 -1
- package/lib/cjs/styles/palettes/colors.stories.js +45 -54
- package/lib/cjs/styles/palettes/colors.stories.js.map +3 -3
- package/lib/cjs/styles/styled/fontFamily.js +12 -15
- package/lib/cjs/styles/styled/fontFamily.js.map +1 -1
- package/lib/cjs/styles/system/gaps.js +12 -15
- package/lib/cjs/styles/system/gaps.js.map +1 -1
- package/lib/cjs/styles/theme.js +15 -16
- package/lib/cjs/styles/theme.js.map +1 -1
- package/lib/components/asorted/Icon/Icon.d.ts +1 -1
- package/lib/components/asorted/Icon/Icon.js +1 -3
- package/lib/components/asorted/Icon/index.d.ts +0 -1
- package/lib/components/asorted/Icon/index.js +0 -1
- package/lib/components/asorted/index.d.ts +1 -1
- package/lib/components/asorted/index.js +1 -1
- package/lib/components/cta/Button/index.d.ts +2 -3
- package/lib/components/cta/Button/index.js +3 -5
- package/lib/components/form/Checkbox/Checkbox.js +2 -2
- package/lib/components/layout/Drawer/index.js +1 -1
- package/lib/components/layout/Popin/index.js +2 -2
- package/lib/styles/helpers.d.ts +0 -2
- package/lib/styles/helpers.js +0 -2
- package/package.json +18 -18
- package/lib/cjs/components/asorted/Icon/PaymentIcon.js +0 -61
- package/lib/cjs/components/asorted/Icon/PaymentIcon.js.map +0 -7
- package/lib/cjs/components/asorted/Icon/PaymentIcon.stories.js +0 -117
- package/lib/cjs/components/asorted/Icon/PaymentIcon.stories.js.map +0 -7
- package/lib/components/asorted/Icon/PaymentIcon.d.ts +0 -18
- package/lib/components/asorted/Icon/PaymentIcon.js +0 -32
|
@@ -1,35 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
8
|
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
9
|
for (var name in all)
|
|
11
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
11
|
};
|
|
13
|
-
var
|
|
14
|
-
if (
|
|
15
|
-
for (let key of __getOwnPropNames(
|
|
16
|
-
if (!__hasOwnProp.call(
|
|
17
|
-
__defProp(
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
17
|
}
|
|
19
|
-
return
|
|
18
|
+
return to;
|
|
20
19
|
};
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var colors_stories_exports = {};
|
|
30
|
+
__export(colors_stories_exports, {
|
|
25
31
|
Colors: () => Colors,
|
|
26
32
|
default: () => colors_stories_default
|
|
27
33
|
});
|
|
28
|
-
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
34
|
+
module.exports = __toCommonJS(colors_stories_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_styled_components = __toESM(require("styled-components"));
|
|
37
|
+
var import_Text = __toESM(require("../../components/asorted/Text"));
|
|
38
|
+
var import_Flex = __toESM(require("../../components/layout/Flex"));
|
|
39
|
+
var import_ui_shared = require("@ledgerhq/ui-shared");
|
|
33
40
|
var colors_stories_default = { title: "Particles" };
|
|
34
41
|
const ColorArea = import_styled_components.default.div`
|
|
35
42
|
width: 200px;
|
|
@@ -41,45 +48,29 @@ const ColorArea = import_styled_components.default.div`
|
|
|
41
48
|
border-radius: 2px;
|
|
42
49
|
`;
|
|
43
50
|
const CardColor = ({ shade, type, value }) => {
|
|
44
|
-
const
|
|
51
|
+
const [isHovered, setIsHovered] = (0, import_react.useState)(false);
|
|
45
52
|
const onClick = (type2, shade2) => {
|
|
46
53
|
navigator.clipboard.writeText(`p.theme.colors.${type2}.${shade2}`);
|
|
47
54
|
};
|
|
48
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
flexDirection: "column",
|
|
67
|
-
rowGap: "2rem"
|
|
68
|
-
}, Object.entries(others).map(([type2, shades]) => /* @__PURE__ */ import_react.default.createElement(import_Flex.default, {
|
|
69
|
-
flexDirection: "column",
|
|
70
|
-
rowGap: "1rem"
|
|
71
|
-
}, /* @__PURE__ */ import_react.default.createElement(import_Text.default, {
|
|
72
|
-
variant: "h2",
|
|
73
|
-
textTransform: "uppercase"
|
|
74
|
-
}, type2), /* @__PURE__ */ import_react.default.createElement(import_Flex.default, {
|
|
75
|
-
columnGap: "0.5rem",
|
|
76
|
-
rowGap: "0.5rem",
|
|
77
|
-
flexWrap: "wrap"
|
|
78
|
-
}, Object.entries(shades).map(([shade, value]) => /* @__PURE__ */ import_react.default.createElement(CardColor, {
|
|
79
|
-
key: shade,
|
|
80
|
-
shade,
|
|
81
|
-
type: type2,
|
|
82
|
-
value
|
|
83
|
-
}))))));
|
|
55
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
56
|
+
import_Flex.default,
|
|
57
|
+
{
|
|
58
|
+
flexDirection: "column",
|
|
59
|
+
alignItems: "center",
|
|
60
|
+
onMouseEnter: () => setIsHovered(true),
|
|
61
|
+
onMouseLeave: () => setIsHovered(false)
|
|
62
|
+
},
|
|
63
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
64
|
+
ColorArea,
|
|
65
|
+
{
|
|
66
|
+
type,
|
|
67
|
+
shade,
|
|
68
|
+
onClick: () => onClick(type, shade)
|
|
69
|
+
}
|
|
70
|
+
),
|
|
71
|
+
/* @__PURE__ */ import_react.default.createElement(import_Text.default, { variant: "tiny" }, isHovered ? value : shade)
|
|
72
|
+
);
|
|
84
73
|
};
|
|
74
|
+
const { type: _, ...palette } = import_ui_shared.palettes.light;
|
|
75
|
+
const Colors = () => /* @__PURE__ */ import_react.default.createElement(import_Flex.default, { flexDirection: "column", rowGap: "2rem" }, Object.entries(palette).map(([type, shades]) => /* @__PURE__ */ import_react.default.createElement(import_Flex.default, { flexDirection: "column", rowGap: "1rem" }, /* @__PURE__ */ import_react.default.createElement(import_Text.default, { variant: "h2", textTransform: "uppercase" }, type), /* @__PURE__ */ import_react.default.createElement(import_Flex.default, { columnGap: "0.5rem", rowGap: "0.5rem", flexWrap: "wrap" }, Object.entries(shades).map(([shade, value]) => /* @__PURE__ */ import_react.default.createElement(CardColor, { key: shade, shade, type, value }))))));
|
|
85
76
|
//# sourceMappingURL=colors.stories.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/styles/palettes/colors.stories.tsx"],
|
|
4
|
-
"sourcesContent": ["import React, {
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
4
|
+
"sourcesContent": ["import React, { useState } from \"react\";\nimport styled from \"styled-components\";\nimport Text from \"../../components/asorted/Text\";\nimport Flex from \"../../components/layout/Flex\";\nimport { palettes, ColorPalette } from \"@ledgerhq/ui-shared\";\n\nexport default { title: \"Particles\" };\n\nconst ColorArea = styled.div<{ type: keyof ColorPalette; shade: string }>`\n width: 200px;\n aspect-ratio: 1;\n background-color: ${(p) => {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore next-line\n return p.theme.colors[p.type][p.shade];\n }};\n cursor: pointer;\n border-radius: 2px;\n`;\n\ntype CardColorProps = { shade: string; type: string; value: string };\nconst CardColor = ({ shade, type, value }: CardColorProps): JSX.Element => {\n const [isHovered, setIsHovered] = useState(false);\n\n const onClick = (type: string, shade: string): void => {\n navigator.clipboard.writeText(`p.theme.colors.${type}.${shade}`);\n };\n\n return (\n <Flex\n flexDirection=\"column\"\n alignItems=\"center\"\n onMouseEnter={() => setIsHovered(true)}\n onMouseLeave={() => setIsHovered(false)}\n >\n <ColorArea\n type={type as keyof ColorPalette}\n shade={shade}\n onClick={() => onClick(type, shade)}\n />\n <Text variant=\"tiny\">{isHovered ? value : shade}</Text>\n </Flex>\n );\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst { type: _, ...palette } = palettes.light;\n\nexport const Colors = (): JSX.Element => (\n <Flex flexDirection=\"column\" rowGap=\"2rem\">\n {Object.entries(palette).map(([type, shades]) => (\n <Flex flexDirection=\"column\" rowGap=\"1rem\">\n <Text variant=\"h2\" textTransform=\"uppercase\">\n {type}\n </Text>\n <Flex columnGap=\"0.5rem\" rowGap=\"0.5rem\" flexWrap=\"wrap\">\n {Object.entries(shades).map(([shade, value]) => (\n <CardColor key={shade} shade={shade} type={type} value={value} />\n ))}\n </Flex>\n </Flex>\n ))}\n </Flex>\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAgC;AAChC,+BAAmB;AACnB,kBAAiB;AACjB,kBAAiB;AACjB,uBAAuC;AAEvC,IAAO,yBAAQ,EAAE,OAAO,YAAY;AAEpC,MAAM,YAAY,yBAAAA,QAAO;AAAA;AAAA;AAAA,sBAGH,CAAC,MAAM;AAGzB,SAAO,EAAE,MAAM,OAAO,EAAE,IAAI,EAAE,EAAE,KAAK;AACvC;AAAA;AAAA;AAAA;AAMF,MAAM,YAAY,CAAC,EAAE,OAAO,MAAM,MAAM,MAAmC;AACzE,QAAM,CAAC,WAAW,YAAY,QAAI,uBAAS,KAAK;AAEhD,QAAM,UAAU,CAACC,OAAcC,WAAwB;AACrD,cAAU,UAAU,UAAU,kBAAkBD,SAAQC,QAAO;AAAA,EACjE;AAEA,SACE,6BAAAC,QAAA;AAAA,IAAC,YAAAC;AAAA,IAAA;AAAA,MACC,eAAc;AAAA,MACd,YAAW;AAAA,MACX,cAAc,MAAM,aAAa,IAAI;AAAA,MACrC,cAAc,MAAM,aAAa,KAAK;AAAA;AAAA,IAEtC,6BAAAD,QAAA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA,SAAS,MAAM,QAAQ,MAAM,KAAK;AAAA;AAAA,IACpC;AAAA,IACA,6BAAAA,QAAA,cAAC,YAAAE,SAAA,EAAK,SAAQ,UAAQ,YAAY,QAAQ,KAAM;AAAA,EAClD;AAEJ;AAGA,MAAM,EAAE,MAAM,GAAG,GAAG,QAAQ,IAAI,0BAAS;AAElC,MAAM,SAAS,MACpB,6BAAAF,QAAA,cAAC,YAAAC,SAAA,EAAK,eAAc,UAAS,QAAO,UACjC,OAAO,QAAQ,OAAO,EAAE,IAAI,CAAC,CAAC,MAAM,MAAM,MACzC,6BAAAD,QAAA,cAAC,YAAAC,SAAA,EAAK,eAAc,UAAS,QAAO,UAClC,6BAAAD,QAAA,cAAC,YAAAE,SAAA,EAAK,SAAQ,MAAK,eAAc,eAC9B,IACH,GACA,6BAAAF,QAAA,cAAC,YAAAC,SAAA,EAAK,WAAU,UAAS,QAAO,UAAS,UAAS,UAC/C,OAAO,QAAQ,MAAM,EAAE,IAAI,CAAC,CAAC,OAAO,KAAK,MACxC,6BAAAD,QAAA,cAAC,aAAU,KAAK,OAAO,OAAc,MAAY,OAAc,CAChE,CACH,CACF,CACD,CACH;",
|
|
6
|
+
"names": ["styled", "type", "shade", "React", "Flex", "Text"]
|
|
7
7
|
}
|
|
@@ -1,30 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
6
|
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
7
|
for (var name in all)
|
|
11
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
9
|
};
|
|
13
|
-
var
|
|
14
|
-
if (
|
|
15
|
-
for (let key of __getOwnPropNames(
|
|
16
|
-
if (!__hasOwnProp.call(
|
|
17
|
-
__defProp(
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
15
|
}
|
|
19
|
-
return
|
|
16
|
+
return to;
|
|
20
17
|
};
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
__export(exports, {
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var fontFamily_exports = {};
|
|
20
|
+
__export(fontFamily_exports, {
|
|
25
21
|
default: () => fontFamily_default
|
|
26
22
|
});
|
|
27
|
-
|
|
23
|
+
module.exports = __toCommonJS(fontFamily_exports);
|
|
24
|
+
var import_helpers = require("../helpers");
|
|
28
25
|
var fontFamily_default = (props) => {
|
|
29
26
|
const prop = props.ff;
|
|
30
27
|
if (prop == null) {
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/styles/styled/fontFamily.ts"],
|
|
4
4
|
"sourcesContent": ["import { ff } from \"../helpers\";\n\nexport default (props: { ff?: string }) => {\n const prop = props.ff;\n\n if (prop == null) {\n return null;\n }\n\n return ff(prop);\n};\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAmB;AAEnB,IAAO,qBAAQ,CAAC,UAA2B;AACzC,QAAM,OAAO,MAAM;AAEnB,MAAI,QAAQ,MAAM;AAChB,WAAO;AAAA,EACT;AAEA,aAAO,mBAAG,IAAI;AAChB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,30 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
6
|
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
7
|
for (var name in all)
|
|
11
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
9
|
};
|
|
13
|
-
var
|
|
14
|
-
if (
|
|
15
|
-
for (let key of __getOwnPropNames(
|
|
16
|
-
if (!__hasOwnProp.call(
|
|
17
|
-
__defProp(
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
15
|
}
|
|
19
|
-
return
|
|
16
|
+
return to;
|
|
20
17
|
};
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
__export(exports, {
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var gaps_exports = {};
|
|
20
|
+
__export(gaps_exports, {
|
|
25
21
|
default: () => gaps_default
|
|
26
22
|
});
|
|
27
|
-
|
|
23
|
+
module.exports = __toCommonJS(gaps_exports);
|
|
24
|
+
var import_styled_system = require("styled-system");
|
|
28
25
|
const gaps = (0, import_styled_system.system)({
|
|
29
26
|
rowGap: { property: "rowGap", scale: "space" },
|
|
30
27
|
columnGap: { property: "columnGap", scale: "space" }
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/styles/system/gaps.ts"],
|
|
4
4
|
"sourcesContent": ["import { system } from \"styled-system\";\n\nconst gaps = system({\n rowGap: { property: \"rowGap\", scale: \"space\" },\n columnGap: { property: \"columnGap\", scale: \"space\" },\n});\n\nexport default gaps;\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAAuB;AAEvB,MAAM,WAAO,6BAAO;AAAA,EAClB,QAAQ,EAAE,UAAU,UAAU,OAAO,QAAQ;AAAA,EAC7C,WAAW,EAAE,UAAU,aAAa,OAAO,QAAQ;AACrD,CAAC;AAED,IAAO,eAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/lib/cjs/styles/theme.js
CHANGED
|
@@ -1,27 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
6
|
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
7
|
for (var name in all)
|
|
11
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
9
|
};
|
|
13
|
-
var
|
|
14
|
-
if (
|
|
15
|
-
for (let key of __getOwnPropNames(
|
|
16
|
-
if (!__hasOwnProp.call(
|
|
17
|
-
__defProp(
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
15
|
}
|
|
19
|
-
return
|
|
16
|
+
return to;
|
|
20
17
|
};
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
__export(exports, {
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var theme_exports = {};
|
|
20
|
+
__export(theme_exports, {
|
|
25
21
|
breakpoints: () => breakpoints,
|
|
26
22
|
default: () => theme_default,
|
|
27
23
|
fontFamilies: () => fontFamilies,
|
|
@@ -31,8 +27,9 @@ __export(exports, {
|
|
|
31
27
|
space: () => space,
|
|
32
28
|
zIndexes: () => zIndexes
|
|
33
29
|
});
|
|
34
|
-
|
|
35
|
-
var
|
|
30
|
+
module.exports = __toCommonJS(theme_exports);
|
|
31
|
+
var import_styled_components = require("styled-components");
|
|
32
|
+
var import_ui_shared = require("@ledgerhq/ui-shared");
|
|
36
33
|
const breakpoints = {
|
|
37
34
|
sm: "640px",
|
|
38
35
|
md: "768px",
|
|
@@ -41,6 +38,8 @@ const breakpoints = {
|
|
|
41
38
|
xxl: "1536px"
|
|
42
39
|
};
|
|
43
40
|
const space = [
|
|
41
|
+
/* space indexes:
|
|
42
|
+
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 */
|
|
44
43
|
0,
|
|
45
44
|
2,
|
|
46
45
|
4,
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/styles/theme.ts"],
|
|
4
4
|
"sourcesContent": ["import { keyframes, css, DefaultTheme } from \"styled-components\";\nimport { palettes, ColorPalette } from \"@ledgerhq/ui-shared\";\n\nexport type screensBreakpoints = \"sm\" | \"md\" | \"lg\" | \"xl\" | \"xxl\";\n\nexport const breakpoints = {\n sm: \"640px\",\n md: \"768px\",\n lg: \"1024px\",\n xl: \"1280px\",\n xxl: \"1536px\",\n} as Record<screensBreakpoints, string>;\n\nexport const space = [\n /* space indexes:\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 */\n 0, 2, 4, 8, 10, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76,\n];\n\nexport type TextVariants =\n | \"h1\"\n | \"h1Inter\"\n | \"h2\"\n | \"h2Inter\"\n | \"h3\"\n | \"h3Inter\"\n | \"h4\"\n | \"h4Inter\"\n | \"h5\"\n | \"h5Inter\"\n | \"large\"\n | \"largeLineHeight\"\n | \"body\"\n | \"bodyLineHeight\"\n | \"paragraph\"\n | \"paragraphLineHeight\"\n | \"small\"\n | \"extraSmall\"\n | \"tiny\"\n | \"micro\"\n | \"subtitle\";\n\nexport type ThemeScale<Type, Aliases extends string> = Array<Type> & Record<Aliases, Type>;\n\nexport const fontSizes = [8, 10, 11, 12, 13, 14, 16, 20, 24, 28, 32, 36] as ThemeScale<\n number,\n TextVariants\n>;\n\n[\n fontSizes.micro,\n fontSizes.tiny,\n fontSizes.extraSmall,\n fontSizes.small,\n fontSizes.paragraph,\n fontSizes.body,\n fontSizes.large,\n fontSizes.h5,\n fontSizes.h4,\n fontSizes.h3,\n fontSizes.h2,\n fontSizes.h1,\n] = fontSizes;\nfontSizes.largeLineHeight = fontSizes.large;\nfontSizes.bodyLineHeight = fontSizes.body;\nfontSizes.paragraphLineHeight = fontSizes.paragraph;\nfontSizes.subtitle = fontSizes.extraSmall;\nfontSizes.h1Inter = fontSizes.h1;\nfontSizes.h2Inter = fontSizes.h2;\nfontSizes.h3Inter = fontSizes.h3;\nfontSizes.h4Inter = fontSizes.h4;\nfontSizes.h5Inter = fontSizes.h5;\n\nconst fontWeights = {\n extraLight: \"100\",\n light: \"300\",\n regular: \"400\",\n medium: \"500\",\n semiBold: \"600\",\n bold: \"700\",\n extraBold: \"800\",\n};\n\nexport const radii = [0, 4, 8, 12, 16, 20];\nexport const shadows = [\"0 4px 8px 0 rgba(0, 0, 0, 0.03)\"];\nexport const zIndexes = [-1, 0, 1, 9, 10, 90, 100, 900, 1000];\n\n// Those fonts are now defined in global.css, this is just a mapping for styled-system\nexport const fontFamilies = {\n Inter: {\n ExtraLight: {\n weight: 100,\n style: \"normal\",\n },\n Light: {\n weight: 300,\n style: \"normal\",\n },\n Regular: {\n weight: 400,\n style: \"normal\",\n },\n Medium: {\n weight: 500,\n style: \"normal\",\n },\n SemiBold: {\n weight: 600,\n style: \"normal\",\n },\n Bold: {\n weight: 700,\n style: \"normal\",\n },\n ExtraBold: {\n weight: 800,\n style: \"normal\",\n },\n },\n Alpha: {\n Medium: {\n weight: 500,\n style: \"normal\",\n },\n },\n};\n\nconst animationDuration = \"0.33s\";\nconst easings = {\n outQuadratic: \"cubic-bezier(0.25, 0.46, 0.45, 0.94)\",\n};\n\nconst transition = (\n properties = [\"all\"],\n duration = animationDuration,\n easing = easings.outQuadratic,\n) => css`\n transition-property: ${properties.join(\",\")};\n transition-duration: ${duration};\n transition-timing-function: ${easing};\n`;\n\nconst fadeIn = keyframes`\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n `;\nconst fadeOut = keyframes`\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n `;\nconst fadeInGrowX = keyframes`\n 0% {\n opacity: 0;\n transform: scaleX(0);\n }\n 100% {\n opacity: 1;\n transform: scaleX(1);\n }\n`;\nconst fadeInUp = keyframes`\n 0% {\n opacity: 0;\n transform: translateY(66%);\n }\n 100% {\n opacity: 1;\n transform: translateY(0%);\n }\n `;\nconst animations = {\n fadeIn: () =>\n css`\n ${fadeIn} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n fadeOut: () =>\n css`\n ${fadeOut} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n fadeInGrowX: () =>\n css`\n ${fadeInGrowX} 0.6s ${easings.outQuadratic} forwards\n `,\n fadeInUp: () =>\n css`\n ${fadeInUp} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n};\nconst overflow = {\n x: css`\n overflow-y: hidden;\n overflow-x: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${(p) => p.theme.colors.neutral.c30};\n }\n `,\n y: css`\n overflow-x: hidden;\n overflow-y: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${(p) => p.theme.colors.neutral.c30};\n }\n `,\n yAuto: css`\n overflow-x: hidden;\n overflow-y: auto;\n will-change: transform;\n &:hover {\n --track-color: ${(p) => p.theme.colors.neutral.c30};\n }\n `,\n xy: css`\n overflow: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${(p) => p.theme.colors.neutral.c30};\n }\n `,\n trackSize: 12,\n};\n\ndeclare module \"styled-components\" {\n export interface Font {\n weight: number;\n style: string;\n }\n export interface DefaultTheme {\n theme: \"dark\" | \"light\";\n animations: typeof animations;\n transition: typeof transition;\n overflow: typeof overflow;\n sizes: {\n topBarHeight: number;\n sideBarWidth: number;\n drawer: {\n side: {\n big: {\n width: number;\n };\n small: {\n width: number;\n };\n };\n popin: {\n min: {\n height: number;\n width: number;\n };\n max: {\n height: number;\n width: number;\n };\n };\n };\n };\n radii: number[];\n fontFamilies: Record<string, Record<string, Font>>;\n fontSizes: number[];\n space: number[];\n shadows: string[];\n colors: ColorPalette & {\n /**\n * @deprecated Do not use the .palette prefix anymore!\n */\n palette: ColorPalette;\n };\n fontWeights: Record<string, string>;\n breakpoints: Record<screensBreakpoints, string>;\n zIndexes: number[];\n }\n}\n\nconst theme: DefaultTheme = {\n theme: \"light\",\n sizes: {\n drawer: {\n side: {\n big: {\n width: 580,\n },\n small: {\n width: 420,\n },\n },\n popin: {\n min: {\n height: 158,\n width: 462,\n },\n max: {\n height: 522,\n width: 622,\n },\n },\n },\n topBarHeight: 58,\n sideBarWidth: 230,\n },\n radii,\n fontFamilies,\n fontSizes,\n fontWeights,\n space,\n shadows,\n colors: {\n palette: palettes.light,\n ...palettes.light,\n },\n animations,\n overflow,\n transition,\n zIndexes,\n breakpoints,\n};\n\nexport default theme;\nexport type Theme = DefaultTheme;\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": "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",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as icons from "@ledgerhq/icons-ui/react";
|
|
2
2
|
import React from "react";
|
|
3
3
|
export const iconNames = Array.from(Object.keys(icons).reduce((set, rawKey) => {
|
|
4
|
-
const key = rawKey
|
|
5
|
-
.replace(/(.+)(Regular|Light|UltraLight|Thin|Medium)+$/g, "$1")
|
|
6
|
-
.replace(/(.+)(Ultra)+$/g, "$1");
|
|
4
|
+
const key = rawKey.replace(/(.+)(Medium)+$/g, "$1");
|
|
7
5
|
if (!set.has(key))
|
|
8
6
|
set.add(key);
|
|
9
7
|
return set;
|
|
@@ -3,5 +3,4 @@ import BoxedIcon, { IconBox } from "./BoxedIcon";
|
|
|
3
3
|
export { BoxedIcon, IconBox };
|
|
4
4
|
export type { Props } from "./Icon";
|
|
5
5
|
export { default as CryptoIcon } from "./CryptoIcon";
|
|
6
|
-
export { default as PaymentIcon } from "./PaymentIcon";
|
|
7
6
|
export { default as ProviderIcon } from "./ProviderIcon";
|
|
@@ -2,5 +2,4 @@ export { default, iconNames } from "./Icon";
|
|
|
2
2
|
import BoxedIcon, { IconBox } from "./BoxedIcon";
|
|
3
3
|
export { BoxedIcon, IconBox };
|
|
4
4
|
export { default as CryptoIcon } from "./CryptoIcon";
|
|
5
|
-
export { default as PaymentIcon } from "./PaymentIcon";
|
|
6
5
|
export { default as ProviderIcon } from "./ProviderIcon";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as Divider } from "./Divider";
|
|
2
|
-
export { default as Icon, IconBox, BoxedIcon, CryptoIcon, ProviderIcon
|
|
2
|
+
export { default as Icon, IconBox, BoxedIcon, CryptoIcon, ProviderIcon } from "./Icon";
|
|
3
3
|
export { default as Text } from "./Text";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as Divider } from "./Divider";
|
|
2
|
-
export { default as Icon, IconBox, BoxedIcon, CryptoIcon, ProviderIcon
|
|
2
|
+
export { default as Icon, IconBox, BoxedIcon, CryptoIcon, ProviderIcon } from "./Icon";
|
|
3
3
|
export { default as Text } from "./Text";
|
|
@@ -17,7 +17,6 @@ interface BaseProps extends BaseStyledProps, BordersProps {
|
|
|
17
17
|
whiteSpace?: string;
|
|
18
18
|
}
|
|
19
19
|
export interface ButtonProps extends BaseProps, React.RefAttributes<HTMLButtonElement> {
|
|
20
|
-
iconName?: string;
|
|
21
20
|
Icon?: React.ComponentType<{
|
|
22
21
|
size: number;
|
|
23
22
|
color?: string;
|
|
@@ -33,11 +32,11 @@ export declare const Base: import("styled-components").StyledComponent<"button",
|
|
|
33
32
|
fontSize: number;
|
|
34
33
|
} & BaseProps, "fontFamily" | "fontSize">;
|
|
35
34
|
declare const ButtonWithRef: {
|
|
36
|
-
({ Icon, iconPosition, iconSize, children, onClick,
|
|
35
|
+
({ Icon, iconPosition, iconSize, children, onClick, ...props }: ButtonProps, ref?: React.ForwardedRef<HTMLButtonElement>): React.ReactElement;
|
|
37
36
|
Unstyled: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
38
37
|
Expand: React.ForwardRefExoticComponent<Pick<ButtonProps & {
|
|
39
38
|
onToggle?: ((arg0: boolean) => void) | undefined;
|
|
40
|
-
}, "overflow" | "p" | "style" | "key" | "color" | "children" | "onClick" | "variant" | "size" | "rowGap" | "alignContent" | "alignItems" | "alignSelf" | "backgroundColor" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "bottom" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontSize" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "top" | "verticalAlign" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "margin" | "outline" | "padding" | "disabled" | "onToggle" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "bg" | "borderX" | "borderY" | "Icon" | "iconSize" | "ff" | "iconPosition" | "iconButton"
|
|
39
|
+
}, "overflow" | "p" | "style" | "key" | "color" | "children" | "onClick" | "variant" | "size" | "rowGap" | "alignContent" | "alignItems" | "alignSelf" | "backgroundColor" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "bottom" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontSize" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "top" | "verticalAlign" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "margin" | "outline" | "padding" | "disabled" | "onToggle" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "bg" | "borderX" | "borderY" | "Icon" | "iconSize" | "ff" | "iconPosition" | "iconButton"> & React.RefAttributes<HTMLButtonElement>>;
|
|
41
40
|
};
|
|
42
41
|
export type ButtonExpandProps = React.PropsWithChildren<ButtonProps & {
|
|
43
42
|
onToggle?: (arg0: boolean) => void;
|
|
@@ -16,8 +16,7 @@ import { fontSize, border, compose } from "styled-system";
|
|
|
16
16
|
import fontFamily from "../../../styles/styled/fontFamily";
|
|
17
17
|
import { fontSizes } from "../../../styles/theme";
|
|
18
18
|
import { rgba } from "../../../styles/helpers";
|
|
19
|
-
import ChevronBottom from "@ledgerhq/icons-ui/react/
|
|
20
|
-
import IconComponent from "../../asorted/Icon";
|
|
19
|
+
import ChevronBottom from "@ledgerhq/icons-ui/react/ChevronBottomMedium";
|
|
21
20
|
const IconContainer = styled.div `
|
|
22
21
|
display: inline-block;
|
|
23
22
|
${(p) => `${p.iconPosition === "left" ? "margin-right" : "margin-left"}: ${p.theme.space[4]}px;`}
|
|
@@ -205,10 +204,9 @@ export const Base = baseStyled.button.attrs((p) => {
|
|
|
205
204
|
const ContentContainer = styled.div ``;
|
|
206
205
|
const Button = (_a, ref) => {
|
|
207
206
|
var _b;
|
|
208
|
-
var { Icon, iconPosition = "right", iconSize = 16, children, onClick
|
|
207
|
+
var { Icon, iconPosition = "right", iconSize = 16, children, onClick } = _a, props = __rest(_a, ["Icon", "iconPosition", "iconSize", "children", "onClick"]);
|
|
209
208
|
const iconNodeSize = iconSize || fontSizes[(_b = props.fontSize) !== null && _b !== void 0 ? _b : 4];
|
|
210
|
-
const IconNode = useMemo(() =>
|
|
211
|
-
(Icon && React.createElement(Icon, { size: iconNodeSize })), [iconName, iconNodeSize, Icon]);
|
|
209
|
+
const IconNode = useMemo(() => Icon && React.createElement(Icon, { size: iconNodeSize }), [iconNodeSize, Icon]);
|
|
212
210
|
return (React.createElement(Base, Object.assign({}, props, { ref: ref, iconButton: !(Icon == null) && !children, onClick: onClick }),
|
|
213
211
|
iconPosition === "right" ? React.createElement(ContentContainer, null, children) : null,
|
|
214
212
|
IconNode && React.createElement(IconContainer, { iconPosition: iconPosition }, IconNode),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import styled from "styled-components";
|
|
3
3
|
import Text from "../../asorted/Text";
|
|
4
|
-
import
|
|
4
|
+
import CheckAloneMedium from "@ledgerhq/icons-ui/react/CheckAloneMedium";
|
|
5
5
|
import { renderToStaticMarkup } from "react-dom/server";
|
|
6
|
-
const Icon = () => React.cloneElement(
|
|
6
|
+
const Icon = () => React.cloneElement(CheckAloneMedium({ size: 13, color: "currentColor" }), {
|
|
7
7
|
// the xmlns attribute is required to properly display the checkbox
|
|
8
8
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9
9
|
});
|
|
@@ -15,7 +15,7 @@ import styled from "styled-components";
|
|
|
15
15
|
import FlexBox from "../Flex";
|
|
16
16
|
import Divider from "../../asorted/Divider";
|
|
17
17
|
import Close from "@ledgerhq/icons-ui/react/CloseMedium";
|
|
18
|
-
import ArrowLeft from "@ledgerhq/icons-ui/react/
|
|
18
|
+
import ArrowLeft from "@ledgerhq/icons-ui/react/ArrowLeftMedium";
|
|
19
19
|
import TransitionSlide from "../../transitions/TransitionSlide";
|
|
20
20
|
import TransitionInOut from "../../transitions/TransitionInOut";
|
|
21
21
|
import Text from "../../asorted/Text";
|
|
@@ -12,8 +12,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import React from "react";
|
|
13
13
|
import ReactDOM from "react-dom";
|
|
14
14
|
import styled from "styled-components";
|
|
15
|
-
import CloseIcon from "@ledgerhq/icons-ui/react/
|
|
16
|
-
import ArrowLeftIcon from "@ledgerhq/icons-ui/react/
|
|
15
|
+
import CloseIcon from "@ledgerhq/icons-ui/react/CloseMedium";
|
|
16
|
+
import ArrowLeftIcon from "@ledgerhq/icons-ui/react/ArrowLeftMedium";
|
|
17
17
|
import baseStyled from "../../styled";
|
|
18
18
|
import Flex from "../../layout/Flex";
|
|
19
19
|
import Button from "../../cta/Button";
|
package/lib/styles/helpers.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export declare const rgba: (c: string, a: number) => string;
|
|
2
|
-
export declare const hex: (color: string) => string;
|
|
3
|
-
export declare const getAlpha: (color: string) => number;
|
|
4
2
|
export declare const darken: (c: string, a: number) => string;
|
|
5
3
|
export declare const lighten: (c: string, a: number) => string;
|
|
6
4
|
export declare const mix: (c: string, b: string, a: number) => string;
|
package/lib/styles/helpers.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import Color from "color";
|
|
2
2
|
import { fontFamilies } from "./theme";
|
|
3
3
|
export const rgba = (c, a) => Color(c).alpha(a).rgb().toString();
|
|
4
|
-
export const hex = (color) => Color(color).hex().toString();
|
|
5
|
-
export const getAlpha = (color) => Color(color).alpha();
|
|
6
4
|
export const darken = (c, a) => Color(c).darken(a).toString();
|
|
7
5
|
export const lighten = (c, a) => Color(c).lighten(a).toString();
|
|
8
6
|
export const mix = (c, b, a) => Color(c).mix(Color(b), a).toString();
|