@ledgerhq/react-ui 0.53.0 → 0.53.1-nightly.20260902021544
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 +3 -6
- package/lib/assets/logos/LedgerLiveAltRegular.d.ts.map +1 -1
- package/lib/assets/logos/LedgerLiveRegular.d.ts.map +1 -1
- package/lib/cjs/components/animations/GlitchText/index.js +16 -42
- package/lib/cjs/components/animations/GlitchText/index.js.map +1 -1
- package/lib/cjs/components/form/Radio/RadioElement.js +2 -2
- package/lib/cjs/components/form/Radio/RadioElement.js.map +1 -1
- package/lib/cjs/components/form/Radio/RadioListElement.js +2 -2
- package/lib/cjs/components/form/Radio/RadioListElement.js.map +1 -1
- package/lib/cjs/components/form/Radio/index.js +2 -2
- package/lib/cjs/components/form/Radio/index.js.map +1 -1
- package/lib/cjs/components/form/index.js +2 -2
- package/lib/cjs/components/form/index.js.map +1 -1
- package/lib/cjs/components/index.js +2 -2
- package/lib/cjs/components/index.js.map +1 -1
- package/lib/cjs/components/layout/Carousel/Footer/Pagination/bullets.js.map +1 -1
- package/lib/cjs/components/layout/Carousel/Footer/Pagination/index.js.map +1 -1
- package/lib/cjs/components/layout/Carousel/Footer/Pagination/types.js.map +1 -1
- package/lib/cjs/components/layout/Carousel/Footer/Pagination/utils.js.map +1 -1
- package/lib/cjs/components/layout/Carousel/Footer/index.js.map +1 -1
- package/lib/cjs/components/layout/Carousel/Footer/variantContentCard.js.map +1 -1
- package/lib/cjs/components/layout/Carousel/Footer/variantDefault.js.map +1 -1
- package/lib/cjs/components/layout/Carousel/index.js.map +1 -1
- package/lib/cjs/components/layout/index.js.map +1 -1
- package/lib/cjs/index.js +2 -2
- package/lib/cjs/index.js.map +1 -1
- package/lib/components/Table/index.d.ts +5 -11
- package/lib/components/Table/index.d.ts.map +1 -1
- package/lib/components/asorted/Divider/index.d.ts.map +1 -1
- package/lib/components/asorted/Icon/BoxedIcon.d.ts.map +1 -1
- package/lib/components/asorted/Icon/Icon.d.ts.map +1 -1
- package/lib/components/asorted/Text/index.d.ts.map +1 -1
- package/lib/components/cta/Button/index.d.ts.map +1 -1
- package/lib/components/cta/Link/index.d.ts.map +1 -1
- package/lib/components/cta/Toggle/index.d.ts.map +1 -1
- package/lib/components/form/BaseInput/index.d.ts +2 -2
- package/lib/components/form/BaseInput/index.d.ts.map +1 -1
- package/lib/components/form/Checkbox/Checkbox.d.ts.map +1 -1
- package/lib/components/form/LegendInput/index.d.ts +2 -2
- package/lib/components/form/LegendInput/index.d.ts.map +1 -1
- package/lib/components/form/NumberInput/index.d.ts +2 -2
- package/lib/components/form/NumberInput/index.d.ts.map +1 -1
- package/lib/components/form/QrCodeInput/index.d.ts +2 -2
- package/lib/components/form/QrCodeInput/index.d.ts.map +1 -1
- package/lib/components/form/QuantityInput/index.d.ts +2 -2
- package/lib/components/form/QuantityInput/index.d.ts.map +1 -1
- package/lib/components/form/Radio/RadioElement.d.ts +6 -5
- package/lib/components/form/Radio/RadioElement.d.ts.map +1 -1
- package/lib/components/form/Radio/RadioElement.js +1 -1
- package/lib/components/form/Radio/RadioElement.js.map +1 -1
- package/lib/components/form/Radio/RadioListElement.d.ts +5 -5
- package/lib/components/form/Radio/RadioListElement.d.ts.map +1 -1
- package/lib/components/form/Radio/RadioListElement.js +1 -1
- package/lib/components/form/Radio/RadioListElement.js.map +1 -1
- package/lib/components/form/Radio/index.d.ts +7 -16
- package/lib/components/form/Radio/index.d.ts.map +1 -1
- package/lib/components/form/SearchInput/index.d.ts +2 -2
- package/lib/components/form/SearchInput/index.d.ts.map +1 -1
- package/lib/components/form/SelectInput/index.d.ts.map +1 -1
- package/lib/components/form/Switch/Switch.d.ts.map +1 -1
- package/lib/components/layout/Box/index.d.ts.map +1 -1
- package/lib/components/layout/Carousel/Footer/Pagination/bullets.d.ts.map +1 -1
- package/lib/components/layout/Carousel/Footer/Pagination/index.d.ts.map +1 -1
- package/lib/components/layout/Carousel/Footer/Pagination/types.d.ts +4 -4
- package/lib/components/layout/Carousel/Footer/Pagination/types.d.ts.map +1 -1
- package/lib/components/layout/Carousel/Footer/Pagination/types.js.map +1 -1
- package/lib/components/layout/Carousel/Footer/Pagination/utils.d.ts.map +1 -1
- package/lib/components/layout/Carousel/Footer/index.d.ts.map +1 -1
- package/lib/components/layout/Carousel/Footer/variantContentCard.d.ts.map +1 -1
- package/lib/components/layout/Carousel/Footer/variantDefault.d.ts.map +1 -1
- package/lib/components/layout/Carousel/index.d.ts.map +1 -1
- package/lib/components/layout/Drawer/index.d.ts.map +1 -1
- package/lib/components/layout/Flex/index.d.ts +1 -1
- package/lib/components/layout/Flex/index.d.ts.map +1 -1
- package/lib/components/layout/Grid/index.d.ts.map +1 -1
- package/lib/components/layout/List/VerticalTimeline/TimelineIndicator.d.ts +0 -3
- package/lib/components/layout/List/VerticalTimeline/TimelineIndicator.d.ts.map +1 -1
- package/lib/components/layout/List/VerticalTimeline/TimelineItem.d.ts.map +1 -1
- package/lib/components/layout/List/VerticalTimeline/index.d.ts.map +1 -1
- package/lib/components/layout/Popin/index.d.ts +26 -23
- package/lib/components/layout/Popin/index.d.ts.map +1 -1
- package/lib/components/layout/Side/Provider.d.ts.map +1 -1
- package/lib/components/layout/Side/index.d.ts.map +1 -1
- package/lib/components/message/Alert/index.d.ts +12 -10
- package/lib/components/message/Alert/index.d.ts.map +1 -1
- package/lib/components/message/ContinueOnDevice/index.d.ts.map +1 -1
- package/lib/components/message/Log/index.d.ts.map +1 -1
- package/lib/components/message/Notification/index.d.ts.map +1 -1
- package/lib/components/message/StatusNotification/index.d.ts.map +1 -1
- package/lib/components/message/Tooltip/styles.d.ts.map +1 -1
- package/lib/components/navigation/Aside/index.d.ts +1 -1
- package/lib/components/navigation/Breadcrumb/index.d.ts.map +1 -1
- package/lib/components/navigation/FlowStepper/index.d.ts +3 -6
- package/lib/components/navigation/FlowStepper/index.d.ts.map +1 -1
- package/lib/components/navigation/progress/ProgressBar/Onboarding.d.ts.map +1 -1
- package/lib/components/navigation/progress/Stepper/index.d.ts.map +1 -1
- package/lib/components/navigation/sideBar/Item/Item.d.ts.map +1 -1
- package/lib/components/navigation/sideBar/Logo/Logo.d.ts.map +1 -1
- package/lib/components/navigation/sideBar/SideBar/SideBar.d.ts +5 -4
- package/lib/components/navigation/sideBar/SideBar/SideBar.d.ts.map +1 -1
- package/lib/components/navigation/sideBar/Toggle/Toggle.d.ts.map +1 -1
- package/lib/components/navigation/sideBar/index.d.ts.map +1 -1
- package/lib/components/styled.d.ts.map +1 -1
- package/lib/components/transitions/TransitionInOut.d.ts.map +1 -1
- package/lib/components/transitions/TransitionScale.d.ts.map +1 -1
- package/lib/components/transitions/TransitionSlide.d.ts.map +1 -1
- package/lib/helpers.d.ts.map +1 -1
- package/lib/pre-ldls/components/AccountItem/AccountItem.d.ts.map +1 -1
- package/lib/pre-ldls/components/AccountList/AccountList.d.ts.map +1 -1
- package/lib/pre-ldls/components/Address/Address.d.ts.map +1 -1
- package/lib/pre-ldls/components/Address/formatAddress.d.ts.map +1 -1
- package/lib/pre-ldls/components/Address/formatAddress.js.map +1 -1
- package/lib/pre-ldls/components/CardButton/CardButton.d.ts.map +1 -1
- package/lib/pre-ldls/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/lib/pre-ldls/components/Tag/Tag.d.ts.map +1 -1
- package/lib/pre-ldls/components/Tag/Tag.js +1 -1
- package/lib/pre-ldls/components/Tag/Tag.js.map +1 -1
- package/lib/pre-ldls/components/VirtualList/VirtualList.d.ts.map +1 -1
- package/lib/pre-ldls/libs/design-tokens.d.ts.map +1 -1
- package/lib/pre-ldls/libs/index.d.ts.map +1 -1
- package/lib/styles/InvertTheme.d.ts.map +1 -1
- package/lib/styles/StyleProvider.d.ts.map +1 -1
- package/lib/styles/helpers.d.ts.map +1 -1
- package/lib/styles/styled/fontFamily.d.ts +3 -3
- package/lib/styles/styled/fontFamily.d.ts.map +1 -1
- package/lib/styles/system/gaps.d.ts.map +1 -1
- package/lib/styles/theme.d.ts.map +1 -1
- package/package.json +14 -24
- package/lib/cjs/components/Table/Table.stories.js +0 -1985
- package/lib/cjs/components/Table/Table.stories.js.map +0 -1
- package/lib/cjs/components/Table/stories.helper.js +0 -1188
- package/lib/cjs/components/Table/stories.helper.js.map +0 -1
- package/lib/cjs/components/Tag/Tag.stories.js +0 -918
- package/lib/cjs/components/Tag/Tag.stories.js.map +0 -1
- package/lib/cjs/components/animations/GlitchText/GlitchText.stories.js +0 -905
- package/lib/cjs/components/animations/GlitchText/GlitchText.stories.js.map +0 -1
- package/lib/cjs/components/asorted/Divider/Divider.stories.js +0 -794
- package/lib/cjs/components/asorted/Divider/Divider.stories.js.map +0 -1
- package/lib/cjs/components/asorted/Icon/BoxedIcon.stories.js +0 -393
- package/lib/cjs/components/asorted/Icon/BoxedIcon.stories.js.map +0 -1
- package/lib/cjs/components/asorted/Icon/Icons.stories.js +0 -789
- package/lib/cjs/components/asorted/Icon/Icons.stories.js.map +0 -1
- package/lib/cjs/components/asorted/Icon/IconsLegacy.stories.js +0 -1472
- package/lib/cjs/components/asorted/Icon/IconsLegacy.stories.js.map +0 -1
- package/lib/cjs/components/asorted/Icon/NotificationIcon.stories.js +0 -348
- package/lib/cjs/components/asorted/Icon/NotificationIcon.stories.js.map +0 -1
- package/lib/cjs/components/asorted/Text/Text.stories.js +0 -836
- package/lib/cjs/components/asorted/Text/Text.stories.js.map +0 -1
- package/lib/cjs/components/cta/Button/Button.stories.js +0 -1286
- package/lib/cjs/components/cta/Button/Button.stories.js.map +0 -1
- package/lib/cjs/components/cta/Link/Link.stories.js +0 -911
- package/lib/cjs/components/cta/Link/Link.stories.js.map +0 -1
- package/lib/cjs/components/cta/Toggle/Toggle.stories.js +0 -873
- package/lib/cjs/components/cta/Toggle/Toggle.stories.js.map +0 -1
- package/lib/cjs/components/form/BaseInput/Input.stories.js +0 -1310
- package/lib/cjs/components/form/BaseInput/Input.stories.js.map +0 -1
- package/lib/cjs/components/form/Checkbox/Checkbox.stories.js +0 -909
- package/lib/cjs/components/form/Checkbox/Checkbox.stories.js.map +0 -1
- package/lib/cjs/components/form/Dropdown/Dropdown.stories.js +0 -1758
- package/lib/cjs/components/form/Dropdown/Dropdown.stories.js.map +0 -1
- package/lib/cjs/components/form/LegendInput/Input.stories.js +0 -1283
- package/lib/cjs/components/form/LegendInput/Input.stories.js.map +0 -1
- package/lib/cjs/components/form/NumberInput/Input.stories.js +0 -1341
- package/lib/cjs/components/form/NumberInput/Input.stories.js.map +0 -1
- package/lib/cjs/components/form/QrCodeInput/Input.stories.js +0 -1305
- package/lib/cjs/components/form/QrCodeInput/Input.stories.js.map +0 -1
- package/lib/cjs/components/form/QuantityInput/Input.stories.js +0 -1332
- package/lib/cjs/components/form/QuantityInput/Input.stories.js.map +0 -1
- package/lib/cjs/components/form/Radio/Radio.stories.js +0 -1196
- package/lib/cjs/components/form/Radio/Radio.stories.js.map +0 -1
- package/lib/cjs/components/form/Radio/RadioElement.stories.js +0 -1084
- package/lib/cjs/components/form/Radio/RadioElement.stories.js.map +0 -1
- package/lib/cjs/components/form/Radio/RadioListElement.stories.js +0 -1052
- package/lib/cjs/components/form/Radio/RadioListElement.stories.js.map +0 -1
- package/lib/cjs/components/form/SearchInput/Input.stories.js +0 -1278
- package/lib/cjs/components/form/SearchInput/Input.stories.js.map +0 -1
- package/lib/cjs/components/form/SelectInput/Select.stories.js +0 -2175
- package/lib/cjs/components/form/SelectInput/Select.stories.js.map +0 -1
- package/lib/cjs/components/form/SplitInput/SplitInput.stories.js +0 -2020
- package/lib/cjs/components/form/SplitInput/SplitInput.stories.js.map +0 -1
- package/lib/cjs/components/form/Switch/Switch.stories.js +0 -940
- package/lib/cjs/components/form/Switch/Switch.stories.js.map +0 -1
- package/lib/cjs/components/form/TabSelector/TabSelector.stories.js +0 -837
- package/lib/cjs/components/form/TabSelector/TabSelector.stories.js.map +0 -1
- package/lib/cjs/components/layout/Banner/BannerCard/BannerCard.stories.js +0 -1625
- package/lib/cjs/components/layout/Banner/BannerCard/BannerCard.stories.js.map +0 -1
- package/lib/cjs/components/layout/Banner/NotificationCard/NotificationCard.stories.js +0 -1110
- package/lib/cjs/components/layout/Banner/NotificationCard/NotificationCard.stories.js.map +0 -1
- package/lib/cjs/components/layout/Box/Box.stories.js +0 -221
- package/lib/cjs/components/layout/Box/Box.stories.js.map +0 -1
- package/lib/cjs/components/layout/Carousel/Carousel.stories.js +0 -2064
- package/lib/cjs/components/layout/Carousel/Carousel.stories.js.map +0 -1
- package/lib/cjs/components/layout/ContentCard/PortfolioContentCard/PortfolioContentCard.stories.js +0 -1514
- package/lib/cjs/components/layout/ContentCard/PortfolioContentCard/PortfolioContentCard.stories.js.map +0 -1
- package/lib/cjs/components/layout/Drawer/Drawer.stories.js +0 -1482
- package/lib/cjs/components/layout/Drawer/Drawer.stories.js.map +0 -1
- package/lib/cjs/components/layout/Flex/Flex.stories.js +0 -491
- package/lib/cjs/components/layout/Flex/Flex.stories.js.map +0 -1
- package/lib/cjs/components/layout/Grid/Grid.stories.js +0 -959
- package/lib/cjs/components/layout/Grid/Grid.stories.js.map +0 -1
- package/lib/cjs/components/layout/List/NumberedList/NumberedList.stories.js +0 -928
- package/lib/cjs/components/layout/List/NumberedList/NumberedList.stories.js.map +0 -1
- package/lib/cjs/components/layout/List/VerticalTimeline/VerticalTimeline.stories.js +0 -1884
- package/lib/cjs/components/layout/List/VerticalTimeline/VerticalTimeline.stories.js.map +0 -1
- package/lib/cjs/components/layout/Popin/Popin.stories.js +0 -1478
- package/lib/cjs/components/layout/Popin/Popin.stories.js.map +0 -1
- package/lib/cjs/components/layout/Side/Side.stories.js +0 -1623
- package/lib/cjs/components/layout/Side/Side.stories.js.map +0 -1
- package/lib/cjs/components/loaders/InfiniteLoader/InfiniteLoader.stories.js +0 -262
- package/lib/cjs/components/loaders/InfiniteLoader/InfiniteLoader.stories.js.map +0 -1
- package/lib/cjs/components/loaders/ProgressLoader/ProgressLoader.stories.js +0 -862
- package/lib/cjs/components/loaders/ProgressLoader/ProgressLoader.stories.js.map +0 -1
- package/lib/cjs/components/message/Alert/Alert.stories.js +0 -1345
- package/lib/cjs/components/message/Alert/Alert.stories.js.map +0 -1
- package/lib/cjs/components/message/ContinueOnDevice/ContinueOnDevice.stories.js +0 -854
- package/lib/cjs/components/message/ContinueOnDevice/ContinueOnDevice.stories.js.map +0 -1
- package/lib/cjs/components/message/Log/Log.stories.js +0 -839
- package/lib/cjs/components/message/Log/Log.stories.js.map +0 -1
- package/lib/cjs/components/message/Notification/Badge.stories.js +0 -319
- package/lib/cjs/components/message/Notification/Badge.stories.js.map +0 -1
- package/lib/cjs/components/message/Notification/Notification.stories.js +0 -1085
- package/lib/cjs/components/message/Notification/Notification.stories.js.map +0 -1
- package/lib/cjs/components/message/StatusNotification/StatusNotification.stories.js +0 -977
- package/lib/cjs/components/message/StatusNotification/StatusNotification.stories.js.map +0 -1
- package/lib/cjs/components/message/Tip/Tip.stories.js +0 -812
- package/lib/cjs/components/message/Tip/Tip.stories.js.map +0 -1
- package/lib/cjs/components/message/Tooltip/Tooltip.stories.js +0 -853
- package/lib/cjs/components/message/Tooltip/Tooltip.stories.js.map +0 -1
- package/lib/cjs/components/navigation/Aside/Aside.stories.js +0 -961
- package/lib/cjs/components/navigation/Aside/Aside.stories.js.map +0 -1
- package/lib/cjs/components/navigation/Aside/stories.helper.js +0 -48
- package/lib/cjs/components/navigation/Aside/stories.helper.js.map +0 -1
- package/lib/cjs/components/navigation/Breadcrumb/Breadcrumb.stories.js +0 -1953
- package/lib/cjs/components/navigation/Breadcrumb/Breadcrumb.stories.js.map +0 -1
- package/lib/cjs/components/navigation/FlowStepper/FlowStepper.stories.js +0 -2054
- package/lib/cjs/components/navigation/FlowStepper/FlowStepper.stories.js.map +0 -1
- package/lib/cjs/components/navigation/Header/Header.stories.js +0 -815
- package/lib/cjs/components/navigation/Header/Header.stories.js.map +0 -1
- package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.stories.js +0 -822
- package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.stories.js.map +0 -1
- package/lib/cjs/components/navigation/progress/Stepper/Item.stories.js +0 -907
- package/lib/cjs/components/navigation/progress/Stepper/Item.stories.js.map +0 -1
- package/lib/cjs/components/navigation/progress/Stepper/ProgressSteps.stories.js +0 -927
- package/lib/cjs/components/navigation/progress/Stepper/ProgressSteps.stories.js.map +0 -1
- package/lib/cjs/components/navigation/sideBar/Item/Item.stories.js +0 -1030
- package/lib/cjs/components/navigation/sideBar/Item/Item.stories.js.map +0 -1
- package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.stories.js +0 -1318
- package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.stories.js.map +0 -1
- package/lib/cjs/components/styled.stories.js +0 -200
- package/lib/cjs/components/styled.stories.js.map +0 -1
- package/lib/cjs/components/tabs/Bar/Bar.stories.js +0 -808
- package/lib/cjs/components/tabs/Bar/Bar.stories.js.map +0 -1
- package/lib/cjs/components/tabs/Chip/Chip.stories.js +0 -818
- package/lib/cjs/components/tabs/Chip/Chip.stories.js.map +0 -1
- package/lib/cjs/components/tabs/Pill/Pill.stories.js +0 -873
- package/lib/cjs/components/tabs/Pill/Pill.stories.js.map +0 -1
- package/lib/cjs/components/tabs/Tabs/Tabs.stories.js +0 -1061
- package/lib/cjs/components/tabs/Tabs/Tabs.stories.js.map +0 -1
- package/lib/cjs/pre-ldls/components/AccountItem/AccountItem.stories.js +0 -2372
- package/lib/cjs/pre-ldls/components/AccountItem/AccountItem.stories.js.map +0 -1
- package/lib/cjs/pre-ldls/components/AccountList/AccountList.stories.js +0 -2513
- package/lib/cjs/pre-ldls/components/AccountList/AccountList.stories.js.map +0 -1
- package/lib/cjs/pre-ldls/components/Address/Address.stories.js +0 -1873
- package/lib/cjs/pre-ldls/components/Address/Address.stories.js.map +0 -1
- package/lib/cjs/pre-ldls/components/CardButton/CardButton.stories.js +0 -1282
- package/lib/cjs/pre-ldls/components/CardButton/CardButton.stories.js.map +0 -1
- package/lib/cjs/pre-ldls/components/Checkbox/Checkbox.stories.js +0 -1263
- package/lib/cjs/pre-ldls/components/Checkbox/Checkbox.stories.js.map +0 -1
- package/lib/cjs/pre-ldls/components/Tag/Tag.stories.js +0 -1834
- package/lib/cjs/pre-ldls/components/Tag/Tag.stories.js.map +0 -1
- package/lib/cjs/pre-ldls/components/TextInput/TextInput.stories.js +0 -1498
- package/lib/cjs/pre-ldls/components/TextInput/TextInput.stories.js.map +0 -1
- package/lib/cjs/pre-ldls/components/VirtualList/VirtualList.stories.js +0 -606
- package/lib/cjs/pre-ldls/components/VirtualList/VirtualList.stories.js.map +0 -1
- package/lib/cjs/pre-ldls/components/sharedStoryBook.js +0 -1819
- package/lib/cjs/pre-ldls/components/sharedStoryBook.js.map +0 -1
- package/lib/cjs/styles/Spacing.stories.js +0 -759
- package/lib/cjs/styles/Spacing.stories.js.map +0 -1
- package/lib/cjs/styles/breakpoints.stories.js +0 -823
- package/lib/cjs/styles/breakpoints.stories.js.map +0 -1
- package/lib/cjs/styles/palettes/colors.stories.js +0 -785
- package/lib/cjs/styles/palettes/colors.stories.js.map +0 -1
- package/lib/components/Table/stories.helper.d.ts +0 -30
- package/lib/components/Table/stories.helper.d.ts.map +0 -1
- package/lib/components/Table/stories.helper.js +0 -185
- package/lib/components/Table/stories.helper.js.map +0 -1
- package/lib/components/navigation/Aside/stories.helper.d.ts +0 -3
- package/lib/components/navigation/Aside/stories.helper.d.ts.map +0 -1
- package/lib/components/navigation/Aside/stories.helper.js +0 -3
- package/lib/components/navigation/Aside/stories.helper.js.map +0 -1
- package/lib/pre-ldls/components/sharedStoryBook.d.ts +0 -5
- package/lib/pre-ldls/components/sharedStoryBook.d.ts.map +0 -1
- package/lib/pre-ldls/components/sharedStoryBook.js +0 -15
- package/lib/pre-ldls/components/sharedStoryBook.js.map +0 -1
|
@@ -1,2064 +0,0 @@
|
|
|
1
|
-
(() => {
|
|
2
|
-
"use strict";
|
|
3
|
-
var __webpack_modules__ = ({
|
|
4
|
-
4572(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
5
|
-
/* import */ var react__rspack_import_0 = __webpack_require__(2015);
|
|
6
|
-
/* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
|
|
7
|
-
/* import */ var styled_system__rspack_import_1 = __webpack_require__(9351);
|
|
8
|
-
/* import */ var styled_system__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_1);
|
|
9
|
-
/* import */ var _asorted_Text__rspack_import_3 = __webpack_require__(348);
|
|
10
|
-
/* import */ var _styled__rspack_import_2 = __webpack_require__(7680);
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
function getColor({ type, active, disabled }) {
|
|
16
|
-
switch(type){
|
|
17
|
-
case "plain":
|
|
18
|
-
if (disabled) return active ? "neutral.c00" : "neutral.c70";
|
|
19
|
-
return active ? "neutral.c00" : "primary.c90";
|
|
20
|
-
default:
|
|
21
|
-
return disabled ? "neutral.c70" : "primary.c90";
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
function getBgColor({ type, active, disabled }) {
|
|
25
|
-
switch(type){
|
|
26
|
-
case "plain":
|
|
27
|
-
return active ? disabled ? "neutral.c70" : "primary.c90" : undefined;
|
|
28
|
-
case "opacity":
|
|
29
|
-
return active ? disabled ? "neutral.c30" : "primary.c20" : undefined;
|
|
30
|
-
default:
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
function getBorderColor({ type, active, disabled }) {
|
|
35
|
-
if (!active) return;
|
|
36
|
-
switch(type){
|
|
37
|
-
case "outlined":
|
|
38
|
-
return disabled ? "neutral.c70" : "primary.c90";
|
|
39
|
-
case "outlinedOpacity":
|
|
40
|
-
return disabled ? "neutral.c40" : "primary.c40";
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
function getPadding({ size }) {
|
|
44
|
-
// Padding is 1px less than what's indicated in the design because of the 1px wide border.
|
|
45
|
-
switch(size){
|
|
46
|
-
case "tiny":
|
|
47
|
-
return "1px 3px";
|
|
48
|
-
case "small":
|
|
49
|
-
return "2px 4px";
|
|
50
|
-
case "medium":
|
|
51
|
-
return "5px 7px";
|
|
52
|
-
case "large":
|
|
53
|
-
default:
|
|
54
|
-
return "8px 9px 9px";
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
function getTextProps({ size }) {
|
|
58
|
-
switch(size){
|
|
59
|
-
case "tiny":
|
|
60
|
-
case "small":
|
|
61
|
-
case "medium":
|
|
62
|
-
return {
|
|
63
|
-
variant: "tiny",
|
|
64
|
-
fontWeight: "semiBold",
|
|
65
|
-
lineHeight: "normal"
|
|
66
|
-
};
|
|
67
|
-
case "large":
|
|
68
|
-
default:
|
|
69
|
-
return {
|
|
70
|
-
variant: "extraSmall",
|
|
71
|
-
fontWeight: "semiBold"
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
const TagContainer = _styled__rspack_import_2["default"].div.attrs((props)=>({
|
|
76
|
-
backgroundColor: props.bg || props.backgroundColor || getBgColor(props),
|
|
77
|
-
color: props.color || getColor(props),
|
|
78
|
-
borderColor: getBorderColor(props)
|
|
79
|
-
}))`
|
|
80
|
-
display: inline-flex;
|
|
81
|
-
justify-content: center;
|
|
82
|
-
border: 1px solid transparent;
|
|
83
|
-
border-radius: ${(p)=>`${p.theme.radii[1]}px`};
|
|
84
|
-
padding: ${(p)=>getPadding(p)};
|
|
85
|
-
${styled_system__rspack_import_1.border}
|
|
86
|
-
`;
|
|
87
|
-
function Tag({ children, textProps, size = "large", ...props }) {
|
|
88
|
-
const textColor = getColor(props);
|
|
89
|
-
const baseTextProps = getTextProps({
|
|
90
|
-
size,
|
|
91
|
-
...props
|
|
92
|
-
});
|
|
93
|
-
return /*#__PURE__*/ react__rspack_import_0_default().createElement(TagContainer, {
|
|
94
|
-
size: size,
|
|
95
|
-
...props
|
|
96
|
-
}, /*#__PURE__*/ react__rspack_import_0_default().createElement(_asorted_Text__rspack_import_3["default"], {
|
|
97
|
-
...baseTextProps,
|
|
98
|
-
color: textColor,
|
|
99
|
-
...textProps ? textProps : {}
|
|
100
|
-
}, children));
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
104
|
-
"default": () => (Tag)
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
},
|
|
109
|
-
348(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
110
|
-
/* import */ var react__rspack_import_0 = __webpack_require__(2015);
|
|
111
|
-
/* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
|
|
112
|
-
/* import */ var _styled__rspack_import_2 = __webpack_require__(7680);
|
|
113
|
-
/* import */ var styled_system__rspack_import_1 = __webpack_require__(9351);
|
|
114
|
-
/* import */ var styled_system__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_1);
|
|
115
|
-
/* import */ var _styles_styled_fontFamily__rspack_import_4 = __webpack_require__(3364);
|
|
116
|
-
/* import */ var _styles__rspack_import_3 = __webpack_require__(4368);
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
const uppercase = (0,styled_system__rspack_import_1.system)({
|
|
123
|
-
uppercase: {
|
|
124
|
-
property: "textTransform",
|
|
125
|
-
transform: (value)=>value ? "uppercase" : "none"
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
const Text = _styled__rspack_import_2["default"].span.attrs(({ variant = "body", fontSize, color })=>({
|
|
129
|
-
fontSize: fontSize ? fontSize : variant,
|
|
130
|
-
color: color || "neutral.c100"
|
|
131
|
-
}))`
|
|
132
|
-
font-weight: 500;
|
|
133
|
-
white-space: ${(props)=>props.whiteSpace ?? "normal"};
|
|
134
|
-
${(p)=>_styles__rspack_import_3.textVariantStyle[p.variant || "body"]}
|
|
135
|
-
${(0,styled_system__rspack_import_1.compose)(uppercase, styled_system__rspack_import_1.lineHeight, _styles_styled_fontFamily__rspack_import_4["default"], styled_system__rspack_import_1.fontSize, styled_system__rspack_import_1.textAlign, styled_system__rspack_import_1.fontWeight, styled_system__rspack_import_1.letterSpacing, (0,styled_system__rspack_import_1.system)({
|
|
136
|
-
textOverflow: true
|
|
137
|
-
}))}
|
|
138
|
-
${(p)=>p.textTransform ? `text-transform: ${p.textTransform};` : ""}
|
|
139
|
-
`;
|
|
140
|
-
/* export default */ const __rspack_default_export = (Text);
|
|
141
|
-
|
|
142
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
143
|
-
}, {
|
|
144
|
-
"default": __rspack_default_export
|
|
145
|
-
});
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
},
|
|
149
|
-
4368(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
150
|
-
/* import */ var styled_components__rspack_import_0 = __webpack_require__(2770);
|
|
151
|
-
/* import */ var styled_components__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_0);
|
|
152
|
-
|
|
153
|
-
const getFontSource = (name)=>(props)=>{
|
|
154
|
-
const fontsPath = props.fontsPath ?? "assets/fonts";
|
|
155
|
-
const fontName = props.fontMappings && props.fontMappings(name) || `${name}.woff2`;
|
|
156
|
-
return `url("${fontsPath}/${fontName}") format("woff2")`;
|
|
157
|
-
};
|
|
158
|
-
const fontStyles = (0,styled_components__rspack_import_0.css)`
|
|
159
|
-
@font-face {
|
|
160
|
-
font-family: "Inter";
|
|
161
|
-
src: ${getFontSource("Inter-ExtraLight-BETA")};
|
|
162
|
-
font-weight: 100;
|
|
163
|
-
font-style: normal;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
@font-face {
|
|
167
|
-
font-family: "Inter";
|
|
168
|
-
src: ${getFontSource("Inter-Light-BETA")};
|
|
169
|
-
font-weight: 300;
|
|
170
|
-
font-style: normal;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
@font-face {
|
|
174
|
-
font-family: "Inter";
|
|
175
|
-
src: ${getFontSource("Inter-Regular")};
|
|
176
|
-
font-weight: 400;
|
|
177
|
-
font-style: normal;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
@font-face {
|
|
181
|
-
font-family: "Inter";
|
|
182
|
-
src: ${getFontSource("Inter-Medium")};
|
|
183
|
-
font-weight: 500;
|
|
184
|
-
font-style: normal;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
@font-face {
|
|
188
|
-
font-family: "Inter";
|
|
189
|
-
src: ${getFontSource("Inter-SemiBold")};
|
|
190
|
-
font-weight: 600;
|
|
191
|
-
font-style: normal;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
@font-face {
|
|
195
|
-
font-family: "Inter";
|
|
196
|
-
src: ${getFontSource("Inter-ExtraBold")};
|
|
197
|
-
font-weight: 900;
|
|
198
|
-
font-style: normal;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
@font-face {
|
|
202
|
-
font-family: "Alpha";
|
|
203
|
-
src: ${getFontSource("HMAlphaMono-Medium")};
|
|
204
|
-
font-weight: 500;
|
|
205
|
-
font-style: normal;
|
|
206
|
-
}
|
|
207
|
-
`;
|
|
208
|
-
const textVariantStyle = {
|
|
209
|
-
h1: {
|
|
210
|
-
fontFamily: "Alpha, Inter, Sans",
|
|
211
|
-
fontWeight: 500,
|
|
212
|
-
"text-transform": "uppercase"
|
|
213
|
-
},
|
|
214
|
-
h1Inter: {
|
|
215
|
-
fontFamily: "Inter, Sans",
|
|
216
|
-
fontWeight: 500,
|
|
217
|
-
"text-transform": "uppercase"
|
|
218
|
-
},
|
|
219
|
-
h2: {
|
|
220
|
-
fontFamily: "Alpha, Inter, Sans",
|
|
221
|
-
fontWeight: 500,
|
|
222
|
-
"text-transform": "uppercase"
|
|
223
|
-
},
|
|
224
|
-
h2Inter: {
|
|
225
|
-
fontFamily: "Inter, Sans",
|
|
226
|
-
fontWeight: 500,
|
|
227
|
-
"text-transform": "uppercase"
|
|
228
|
-
},
|
|
229
|
-
h3: {
|
|
230
|
-
fontFamily: "Alpha, Inter, Sans",
|
|
231
|
-
fontWeight: 500,
|
|
232
|
-
"text-transform": "uppercase"
|
|
233
|
-
},
|
|
234
|
-
h3Inter: {
|
|
235
|
-
fontFamily: "Inter, Sans",
|
|
236
|
-
fontWeight: 500
|
|
237
|
-
},
|
|
238
|
-
h4: {
|
|
239
|
-
fontFamily: "Alpha, Inter, Sans",
|
|
240
|
-
fontWeight: 500,
|
|
241
|
-
"text-transform": "uppercase"
|
|
242
|
-
},
|
|
243
|
-
h4Inter: {
|
|
244
|
-
fontFamily: "Inter, Sans",
|
|
245
|
-
fontWeight: 600
|
|
246
|
-
},
|
|
247
|
-
h5: {
|
|
248
|
-
fontFamily: "Alpha, Inter, Sans",
|
|
249
|
-
fontWeight: 500,
|
|
250
|
-
"text-transform": "uppercase"
|
|
251
|
-
},
|
|
252
|
-
h5Inter: {
|
|
253
|
-
fontFamily: "Inter, Sans",
|
|
254
|
-
fontWeight: 500
|
|
255
|
-
},
|
|
256
|
-
large: {
|
|
257
|
-
fontFamily: "Inter, Sans"
|
|
258
|
-
},
|
|
259
|
-
largeLineHeight: {
|
|
260
|
-
fontFamily: "Inter, Sans",
|
|
261
|
-
lineHeight: 1.7
|
|
262
|
-
},
|
|
263
|
-
body: {
|
|
264
|
-
fontFamily: "Inter, Sans"
|
|
265
|
-
},
|
|
266
|
-
bodyLineHeight: {
|
|
267
|
-
fontFamily: "Inter, Sans",
|
|
268
|
-
lineHeight: 1.7
|
|
269
|
-
},
|
|
270
|
-
paragraph: {
|
|
271
|
-
fontFamily: "Inter, Sans"
|
|
272
|
-
},
|
|
273
|
-
paragraphLineHeight: {
|
|
274
|
-
fontFamily: "Inter, Sans",
|
|
275
|
-
lineHeight: 1.7
|
|
276
|
-
},
|
|
277
|
-
small: {
|
|
278
|
-
fontFamily: "Inter, Sans"
|
|
279
|
-
},
|
|
280
|
-
extraSmall: {
|
|
281
|
-
fontFamily: "Inter, Sans"
|
|
282
|
-
},
|
|
283
|
-
tiny: {
|
|
284
|
-
fontFamily: "Inter, Sans"
|
|
285
|
-
},
|
|
286
|
-
micro: {
|
|
287
|
-
fontFamily: "Inter, Sans"
|
|
288
|
-
},
|
|
289
|
-
subtitle: {
|
|
290
|
-
fontFamily: "Inter, Sans",
|
|
291
|
-
fontWeight: 600,
|
|
292
|
-
"text-transform": "uppercase"
|
|
293
|
-
}
|
|
294
|
-
};
|
|
295
|
-
|
|
296
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
297
|
-
}, {
|
|
298
|
-
fontStyles: fontStyles,
|
|
299
|
-
textVariantStyle: textVariantStyle
|
|
300
|
-
});
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
},
|
|
304
|
-
6599(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
305
|
-
|
|
306
|
-
// EXPORTS
|
|
307
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
308
|
-
"default": () => (/* binding */ cta_Button)
|
|
309
|
-
});
|
|
310
|
-
|
|
311
|
-
// UNUSED EXPORTS: Base, ButtonExpand, ButtonUnstyled, buttonSizeStyle
|
|
312
|
-
|
|
313
|
-
;// CONCATENATED MODULE: external "@ledgerhq/icons-ui/reactLegacy/ChevronBottomMedium"
|
|
314
|
-
const ChevronBottomMedium_namespaceObject = require("@ledgerhq/icons-ui/reactLegacy/ChevronBottomMedium");
|
|
315
|
-
var ChevronBottomMedium_default = /*#__PURE__*/__webpack_require__.n(ChevronBottomMedium_namespaceObject);
|
|
316
|
-
// EXTERNAL MODULE: external "react"
|
|
317
|
-
var external_react_ = __webpack_require__(2015);
|
|
318
|
-
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
319
|
-
// EXTERNAL MODULE: external "styled-components"
|
|
320
|
-
var external_styled_components_ = __webpack_require__(2770);
|
|
321
|
-
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
322
|
-
// EXTERNAL MODULE: external "styled-system"
|
|
323
|
-
var external_styled_system_ = __webpack_require__(9351);
|
|
324
|
-
// EXTERNAL MODULE: ./src/styles/helpers.ts + 1 modules
|
|
325
|
-
var helpers = __webpack_require__(205);
|
|
326
|
-
// EXTERNAL MODULE: ./src/styles/styled/fontFamily.ts
|
|
327
|
-
var fontFamily = __webpack_require__(3364);
|
|
328
|
-
// EXTERNAL MODULE: ./src/styles/theme.ts
|
|
329
|
-
var theme = __webpack_require__(5548);
|
|
330
|
-
// EXTERNAL MODULE: ./src/components/styled.ts
|
|
331
|
-
var styled = __webpack_require__(7680);
|
|
332
|
-
;// CONCATENATED MODULE: ./src/components/cta/Button/index.tsx
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
const IconContainer = (external_styled_components_default()).div`
|
|
342
|
-
display: inline-block;
|
|
343
|
-
${(p)=>`${p.iconPosition === "left" ? "margin-right" : "margin-left"}: ${p.theme.space[4]}px;`}
|
|
344
|
-
padding-top: 0.2em;
|
|
345
|
-
`;
|
|
346
|
-
const getVariantColors = (p)=>({
|
|
347
|
-
main: {
|
|
348
|
-
outline: `
|
|
349
|
-
border-color: ${p.theme.colors.neutral.c100};
|
|
350
|
-
color: ${p.theme.colors.neutral.c100};
|
|
351
|
-
background-color: transparent;
|
|
352
|
-
&:hover, &:focus {
|
|
353
|
-
background-color: ${(0,helpers.rgba)(p.theme.colors.neutral.c100, 0.03)};
|
|
354
|
-
}
|
|
355
|
-
&:active {
|
|
356
|
-
background-color: ${(0,helpers.rgba)(p.theme.colors.neutral.c100, 0.05)};
|
|
357
|
-
}
|
|
358
|
-
`,
|
|
359
|
-
filled: `
|
|
360
|
-
color: ${p.theme.colors.neutral.c00};
|
|
361
|
-
background-color: ${p.theme.colors.neutral.c100};
|
|
362
|
-
&:hover, &:focus {
|
|
363
|
-
background-color: ${p.theme.colors.neutral.c90};
|
|
364
|
-
}
|
|
365
|
-
`
|
|
366
|
-
},
|
|
367
|
-
shade: `
|
|
368
|
-
border-color: ${p.theme.colors.neutral.c40};
|
|
369
|
-
color: ${p.theme.colors.neutral.c100};
|
|
370
|
-
&:focus {
|
|
371
|
-
border-color: ${p.theme.colors.primary.c80};
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
&:hover, &:focus {
|
|
375
|
-
background-color: ${p.theme.colors.neutral.c20};
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
&:active {
|
|
379
|
-
background-color: ${p.theme.colors.neutral.c30};
|
|
380
|
-
}
|
|
381
|
-
`,
|
|
382
|
-
error: {
|
|
383
|
-
outline: `
|
|
384
|
-
border-color: ${p.theme.colors.error.c50};
|
|
385
|
-
color: ${p.theme.colors.error.c50};
|
|
386
|
-
background-color: transparent;
|
|
387
|
-
&:hover {
|
|
388
|
-
background-color: ${(0,helpers.rgba)(p.theme.colors.error.c50, 0.02)};
|
|
389
|
-
}
|
|
390
|
-
&:active {
|
|
391
|
-
background-color: ${(0,helpers.rgba)(p.theme.colors.error.c50, 0.05)};
|
|
392
|
-
}
|
|
393
|
-
`,
|
|
394
|
-
filled: `
|
|
395
|
-
color: ${p.theme.colors.neutral.c00};
|
|
396
|
-
background-color: ${p.theme.colors.error.c50};
|
|
397
|
-
&:hover {
|
|
398
|
-
background-color: ${p.theme.colors.error.c40};
|
|
399
|
-
}
|
|
400
|
-
`
|
|
401
|
-
},
|
|
402
|
-
neutral: `
|
|
403
|
-
color: ${p.theme.colors.neutral.c100};
|
|
404
|
-
background-color: ${p.theme.colors.neutral.c30};
|
|
405
|
-
&:hover {
|
|
406
|
-
background-color: ${p.theme.colors.neutral.c40};
|
|
407
|
-
}
|
|
408
|
-
`,
|
|
409
|
-
color: {
|
|
410
|
-
outline: `
|
|
411
|
-
border-color: ${p.theme.colors.primary.c80};
|
|
412
|
-
color: ${p.theme.colors.primary.c80};
|
|
413
|
-
background-color: transparent;
|
|
414
|
-
&:hover {
|
|
415
|
-
background-color: ${(0,helpers.rgba)(p.theme.colors.primary.c100, 0.02)};
|
|
416
|
-
}
|
|
417
|
-
&:active {
|
|
418
|
-
background-color: ${(0,helpers.rgba)(p.theme.colors.primary.c100, 0.05)};
|
|
419
|
-
}
|
|
420
|
-
`,
|
|
421
|
-
filled: `
|
|
422
|
-
color: ${p.theme.colors.neutral.c00};
|
|
423
|
-
background-color: ${p.theme.colors.primary.c80};
|
|
424
|
-
&:hover {
|
|
425
|
-
background-color: ${p.theme.colors.primary.c70};
|
|
426
|
-
}
|
|
427
|
-
`
|
|
428
|
-
},
|
|
429
|
-
disabled: {
|
|
430
|
-
outline: `
|
|
431
|
-
border-color: ${p.theme.colors.neutral.c50};
|
|
432
|
-
color: ${p.theme.colors.neutral.c50};
|
|
433
|
-
background-color: transparent;
|
|
434
|
-
&:focus, &:hover {
|
|
435
|
-
box-shadow: none;
|
|
436
|
-
}
|
|
437
|
-
`,
|
|
438
|
-
filled: `
|
|
439
|
-
color: ${p.theme.colors.neutral.c50};
|
|
440
|
-
background-color: ${p.theme.colors.neutral.c30};
|
|
441
|
-
&:focus, &:hover {
|
|
442
|
-
box-shadow: none;
|
|
443
|
-
}
|
|
444
|
-
`
|
|
445
|
-
},
|
|
446
|
-
default: `
|
|
447
|
-
color: ${p.theme.colors.neutral.c100};
|
|
448
|
-
background-color: transparent;
|
|
449
|
-
&:hover {
|
|
450
|
-
text-decoration: underline;
|
|
451
|
-
}
|
|
452
|
-
`
|
|
453
|
-
});
|
|
454
|
-
const ButtonUnstyled = styled["default"].button`
|
|
455
|
-
all: unset;
|
|
456
|
-
cursor: pointer;
|
|
457
|
-
|
|
458
|
-
&:disabled {
|
|
459
|
-
cursor: default;
|
|
460
|
-
}
|
|
461
|
-
`;
|
|
462
|
-
const Base = styled["default"].button.attrs((p)=>({
|
|
463
|
-
fontFamily: "Inter",
|
|
464
|
-
fontSize: p.fontSize ?? 4
|
|
465
|
-
}))`
|
|
466
|
-
background-color: transparent;
|
|
467
|
-
border-color: transparent;
|
|
468
|
-
border-radius: 44px;
|
|
469
|
-
border-style: solid;
|
|
470
|
-
border-width: ${(p)=>p.outline || p.variant === "shade" ? 1 : 0}px;
|
|
471
|
-
font-weight: 600;
|
|
472
|
-
${(0,external_styled_system_.compose)(fontFamily["default"], external_styled_system_.fontSize, external_styled_system_.border)};
|
|
473
|
-
line-height: ${(p)=>p.theme.fontSizes[p.fontSize]}px;
|
|
474
|
-
text-align: center;
|
|
475
|
-
display: inline-flex;
|
|
476
|
-
align-items: center;
|
|
477
|
-
justify-content: center;
|
|
478
|
-
overflow: hidden;
|
|
479
|
-
${(p)=>buttonSizeStyle[p.size || "medium"]}
|
|
480
|
-
text-overflow: ellipsis;
|
|
481
|
-
white-space: ${(p)=>p.whiteSpace ? p.whiteSpace : "nowrap"};
|
|
482
|
-
max-width: 100%;
|
|
483
|
-
position: relative;
|
|
484
|
-
cursor: ${(p)=>p.disabled ? "default" : "pointer"};
|
|
485
|
-
&:active {
|
|
486
|
-
box-shadow: 0 0 0 4px ${(p)=>(0,helpers.rgba)(p.theme.colors.primary.c60, 0.4)};
|
|
487
|
-
}
|
|
488
|
-
&:focus, &:hover {
|
|
489
|
-
box-shadow: 0 0 0 2px ${(p)=>(0,helpers.rgba)(p.theme.colors.primary.c60, 0.4)};
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
${(p)=>{
|
|
493
|
-
const variants = getVariantColors(p);
|
|
494
|
-
if (p.disabled) {
|
|
495
|
-
return p.outline || p.variant === "shade" ? variants.disabled.outline : variants.disabled.filled;
|
|
496
|
-
}
|
|
497
|
-
const variant = p.variant ?? "default";
|
|
498
|
-
switch(variant){
|
|
499
|
-
case "main":
|
|
500
|
-
return p.outline ? variants.main.outline : variants.main.filled;
|
|
501
|
-
case "shade":
|
|
502
|
-
return variants.shade;
|
|
503
|
-
case "error":
|
|
504
|
-
return p.outline ? variants.error.outline : variants.error.filled;
|
|
505
|
-
case "color":
|
|
506
|
-
return p.outline ? variants.color.outline : variants.color.filled;
|
|
507
|
-
case "neutral":
|
|
508
|
-
return variants.neutral;
|
|
509
|
-
case "default":
|
|
510
|
-
default:
|
|
511
|
-
return variants.default;
|
|
512
|
-
}
|
|
513
|
-
}}
|
|
514
|
-
${(p)=>p.iconButton ? (0,external_styled_components_.css)`
|
|
515
|
-
width: ${p.theme.space[12]}px;
|
|
516
|
-
padding: 0;
|
|
517
|
-
${IconContainer} {
|
|
518
|
-
margin: 0;
|
|
519
|
-
}
|
|
520
|
-
` : ""}
|
|
521
|
-
${(p)=>p.theme.transition([
|
|
522
|
-
"background-color",
|
|
523
|
-
"color",
|
|
524
|
-
"border-color",
|
|
525
|
-
"box-shadow"
|
|
526
|
-
], "0.2s")}
|
|
527
|
-
`;
|
|
528
|
-
const ContentContainer = (external_styled_components_default()).div``;
|
|
529
|
-
const Button = ({ Icon, iconPosition = "right", iconSize = 16, children, onClick, ...props }, ref)=>{
|
|
530
|
-
const iconNodeSize = iconSize || theme.fontSizes[props.fontSize ?? 4];
|
|
531
|
-
const IconNode = (0,external_react_.useMemo)(()=>{
|
|
532
|
-
if (!Icon) return null;
|
|
533
|
-
if (typeof Icon === "object") return Icon;
|
|
534
|
-
return /*#__PURE__*/ external_react_default().createElement(Icon, {
|
|
535
|
-
size: iconNodeSize
|
|
536
|
-
});
|
|
537
|
-
}, [
|
|
538
|
-
iconNodeSize,
|
|
539
|
-
Icon
|
|
540
|
-
]);
|
|
541
|
-
return /*#__PURE__*/ external_react_default().createElement(Base, {
|
|
542
|
-
...props,
|
|
543
|
-
ref: ref,
|
|
544
|
-
iconButton: !(Icon == null) && !children,
|
|
545
|
-
onClick: onClick
|
|
546
|
-
}, iconPosition === "right" ? /*#__PURE__*/ external_react_default().createElement(ContentContainer, null, children) : null, IconNode && /*#__PURE__*/ external_react_default().createElement(IconContainer, {
|
|
547
|
-
iconPosition: iconPosition
|
|
548
|
-
}, IconNode), iconPosition === "left" ? /*#__PURE__*/ external_react_default().createElement(ContentContainer, null, children) : null);
|
|
549
|
-
};
|
|
550
|
-
const ButtonWithRef = /*#__PURE__*/ external_react_default().forwardRef(Button);
|
|
551
|
-
const StyledButtonExpand = external_styled_components_default()(ButtonWithRef).attrs((props)=>({
|
|
552
|
-
Icon: props.Icon != null || (ChevronBottomMedium_default()),
|
|
553
|
-
iconPosition: props.iconPosition || "right"
|
|
554
|
-
}))`
|
|
555
|
-
${IconContainer} {
|
|
556
|
-
transition: transform 0.25s;
|
|
557
|
-
${(p)=>p.expanded ? "transform: rotate(180deg)" : ""}
|
|
558
|
-
}
|
|
559
|
-
`;
|
|
560
|
-
function ButtonExpand({ onToggle, onClick, ...props }, ref) {
|
|
561
|
-
const [expanded, setExpanded] = (0,external_react_.useState)(false);
|
|
562
|
-
return /*#__PURE__*/ external_react_default().createElement(StyledButtonExpand, {
|
|
563
|
-
...props,
|
|
564
|
-
ref: ref,
|
|
565
|
-
expanded: expanded,
|
|
566
|
-
onClick: (event)=>{
|
|
567
|
-
setExpanded((expanded)=>!expanded);
|
|
568
|
-
onToggle != null && onToggle(!expanded);
|
|
569
|
-
onClick != null && onClick(event);
|
|
570
|
-
}
|
|
571
|
-
});
|
|
572
|
-
}
|
|
573
|
-
const buttonSizeStyle = {
|
|
574
|
-
xs: {
|
|
575
|
-
padding: "0 12px",
|
|
576
|
-
height: "28px"
|
|
577
|
-
},
|
|
578
|
-
small: {
|
|
579
|
-
padding: "0 20px",
|
|
580
|
-
height: "32px"
|
|
581
|
-
},
|
|
582
|
-
medium: {
|
|
583
|
-
padding: "0 24px",
|
|
584
|
-
height: "40px"
|
|
585
|
-
},
|
|
586
|
-
large: {
|
|
587
|
-
padding: "0 28px",
|
|
588
|
-
height: "48px"
|
|
589
|
-
},
|
|
590
|
-
xl: {
|
|
591
|
-
padding: "0 28px",
|
|
592
|
-
height: "56px"
|
|
593
|
-
}
|
|
594
|
-
};
|
|
595
|
-
Button.Unstyled = ButtonUnstyled;
|
|
596
|
-
Button.Expand = /*#__PURE__*/ external_react_default().forwardRef(ButtonExpand);
|
|
597
|
-
ButtonWithRef.Unstyled = Button.Unstyled;
|
|
598
|
-
ButtonWithRef.Expand = Button.Expand;
|
|
599
|
-
/* export default */ const cta_Button = (ButtonWithRef);
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
},
|
|
603
|
-
4974(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
604
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
605
|
-
"default": () => (BannerCard)
|
|
606
|
-
});
|
|
607
|
-
/* import */ var react__rspack_import_0 = __webpack_require__(2015);
|
|
608
|
-
/* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
|
|
609
|
-
/* import */ var styled_components__rspack_import_1 = __webpack_require__(2770);
|
|
610
|
-
/* import */ var styled_components__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_1);
|
|
611
|
-
/* import */ var _styles__rspack_import_3 = __webpack_require__(3151);
|
|
612
|
-
/* import */ var _assets__rspack_import_7 = __webpack_require__(7304);
|
|
613
|
-
/* import */ var _assets__rspack_import_7_default = /*#__PURE__*/__webpack_require__.n(_assets__rspack_import_7);
|
|
614
|
-
/* import */ var _asorted_Text__rspack_import_5 = __webpack_require__(348);
|
|
615
|
-
/* import */ var _cta__rspack_import_6 = __webpack_require__(6599);
|
|
616
|
-
/* import */ var _Tag__rspack_import_4 = __webpack_require__(4572);
|
|
617
|
-
/* import */ var ___rspack_import_2 = __webpack_require__(3696);
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
function BannerCard({ title, cta, description, descriptionWidth, tag, image, onClick, onClose, ...boxProps }) {
|
|
627
|
-
const handleClose = (event)=>{
|
|
628
|
-
event.stopPropagation();
|
|
629
|
-
onClose?.(event);
|
|
630
|
-
};
|
|
631
|
-
const handleClick = (event)=>{
|
|
632
|
-
event.stopPropagation();
|
|
633
|
-
onClick(event);
|
|
634
|
-
};
|
|
635
|
-
return /*#__PURE__*/ react__rspack_import_0_default().createElement(Wrapper, {
|
|
636
|
-
...boxProps,
|
|
637
|
-
image: image,
|
|
638
|
-
tag: tag,
|
|
639
|
-
onClick: handleClick
|
|
640
|
-
}, tag && /*#__PURE__*/ react__rspack_import_0_default().createElement(StyledTag, null, tag), /*#__PURE__*/ react__rspack_import_0_default().createElement(Title, null, title), description && /*#__PURE__*/ react__rspack_import_0_default().createElement(Desc, {
|
|
641
|
-
maxWidth: descriptionWidth
|
|
642
|
-
}, description), /*#__PURE__*/ react__rspack_import_0_default().createElement(___rspack_import_2["default"], {
|
|
643
|
-
columnGap: 5
|
|
644
|
-
}, cta), onClose && /*#__PURE__*/ react__rspack_import_0_default().createElement(_styles__rspack_import_3.StyleProvider, {
|
|
645
|
-
selectedPalette: "dark"
|
|
646
|
-
}, /*#__PURE__*/ react__rspack_import_0_default().createElement(CloseButton, {
|
|
647
|
-
"data-testid": "portfolio-card-close-button",
|
|
648
|
-
onClick: handleClose
|
|
649
|
-
})));
|
|
650
|
-
}
|
|
651
|
-
const StyledTag = styled_components__rspack_import_1_default()((0,_Tag__rspack_import_4["default"])).attrs({
|
|
652
|
-
size: "medium",
|
|
653
|
-
type: "plain",
|
|
654
|
-
active: true
|
|
655
|
-
})`
|
|
656
|
-
font-size: 11px;
|
|
657
|
-
background-color: ${(p)=>p.theme.colors.primary.c80};
|
|
658
|
-
`;
|
|
659
|
-
const Title = styled_components__rspack_import_1_default()((0,_asorted_Text__rspack_import_5["default"])).attrs({
|
|
660
|
-
variant: "h4Inter"
|
|
661
|
-
})`
|
|
662
|
-
font-family: Inter;
|
|
663
|
-
font-size: 24px;
|
|
664
|
-
font-weight: 600;
|
|
665
|
-
`;
|
|
666
|
-
const Desc = styled_components__rspack_import_1_default()((0,_asorted_Text__rspack_import_5["default"])).attrs({
|
|
667
|
-
variant: "small",
|
|
668
|
-
color: "neutral.c70"
|
|
669
|
-
})`
|
|
670
|
-
font-family: Inter;
|
|
671
|
-
font-size: 13px;
|
|
672
|
-
font-style: normal;
|
|
673
|
-
font-weight: 500;
|
|
674
|
-
padding-bottom: 8px;
|
|
675
|
-
`;
|
|
676
|
-
const Wrapper = styled_components__rspack_import_1_default()((0,___rspack_import_2["default"]))`
|
|
677
|
-
background-color: ${(p)=>p.theme.colors.background.card};
|
|
678
|
-
background-image: ${(p)=>p.image ? `url("${p.image}")` : "none"};
|
|
679
|
-
background-position: right center;
|
|
680
|
-
background-repeat: no-repeat;
|
|
681
|
-
background-size: 50% auto;
|
|
682
|
-
|
|
683
|
-
cursor: pointer;
|
|
684
|
-
padding: 16px;
|
|
685
|
-
padding-top: ${(p)=>p.tag ? "16px" : "24px"};
|
|
686
|
-
padding-right: 50%;
|
|
687
|
-
|
|
688
|
-
position: relative;
|
|
689
|
-
flex-direction: column;
|
|
690
|
-
justify-content: flex-end;
|
|
691
|
-
align-items: flex-start;
|
|
692
|
-
gap: 4px;
|
|
693
|
-
`;
|
|
694
|
-
const CloseButton = styled_components__rspack_import_1_default()((0,_cta__rspack_import_6["default"])).attrs({
|
|
695
|
-
Icon: /*#__PURE__*/ react__rspack_import_0_default().createElement(_assets__rspack_import_7.Close, {
|
|
696
|
-
size: "XS"
|
|
697
|
-
}),
|
|
698
|
-
iconButton: true,
|
|
699
|
-
outline: true
|
|
700
|
-
})`
|
|
701
|
-
background-color: ${(p)=>p.theme.colors.neutral.c30};
|
|
702
|
-
position: absolute;
|
|
703
|
-
top: 10px;
|
|
704
|
-
right: 10px;
|
|
705
|
-
width: 24px;
|
|
706
|
-
height: 24px;
|
|
707
|
-
svg {
|
|
708
|
-
width: 12px;
|
|
709
|
-
height: 12px;
|
|
710
|
-
}
|
|
711
|
-
`;
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
},
|
|
715
|
-
8459(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
716
|
-
/* import */ var react__rspack_import_0 = __webpack_require__(2015);
|
|
717
|
-
/* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
|
|
718
|
-
/* import */ var styled_components__rspack_import_1 = __webpack_require__(2770);
|
|
719
|
-
/* import */ var styled_components__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_1);
|
|
720
|
-
/* import */ var _assets__rspack_import_2 = __webpack_require__(7304);
|
|
721
|
-
/* import */ var _assets__rspack_import_2_default = /*#__PURE__*/__webpack_require__.n(_assets__rspack_import_2);
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
function ChevronArrow(props) {
|
|
726
|
-
return /*#__PURE__*/ react__rspack_import_0_default().createElement(ChevronArrowContainer, props, /*#__PURE__*/ react__rspack_import_0_default().createElement(_assets__rspack_import_2.ChevronLeft, null));
|
|
727
|
-
}
|
|
728
|
-
const ChevronArrowContainer = (styled_components__rspack_import_1_default().button)`
|
|
729
|
-
display: inline-flex;
|
|
730
|
-
justify-content: center;
|
|
731
|
-
align-items: center;
|
|
732
|
-
width: 32px;
|
|
733
|
-
height: 32px;
|
|
734
|
-
|
|
735
|
-
position: absolute;
|
|
736
|
-
top: 50%;
|
|
737
|
-
left: ${({ direction })=>direction === "left" ? "0" : "auto"};
|
|
738
|
-
right: ${({ direction })=>direction === "left" ? "auto" : "0"};
|
|
739
|
-
z-index: 1;
|
|
740
|
-
|
|
741
|
-
--dir: ${({ direction })=>direction === "left" ? "1" : "-1"};
|
|
742
|
-
scale: var(--dir) 1;
|
|
743
|
-
translate: calc(-50% * var(--dir)) -50%;
|
|
744
|
-
|
|
745
|
-
background-color: ${({ theme })=>theme.colors.background.default}; // Fake the transparent clip
|
|
746
|
-
border-radius: 100%;
|
|
747
|
-
border: none;
|
|
748
|
-
outline: none;
|
|
749
|
-
|
|
750
|
-
::before {
|
|
751
|
-
content: "";
|
|
752
|
-
display: block;
|
|
753
|
-
position: absolute;
|
|
754
|
-
z-index: -1;
|
|
755
|
-
inset: 3px;
|
|
756
|
-
background-color: ${({ theme })=>theme.colors.opacityDefault.c05};
|
|
757
|
-
border-color: ${({ theme })=>theme.colors.opacityDefault.c05};
|
|
758
|
-
border-radius: 100%;
|
|
759
|
-
border-style: solid;
|
|
760
|
-
border-width: 1px;
|
|
761
|
-
}
|
|
762
|
-
svg {
|
|
763
|
-
color: ${({ theme })=>theme.colors.primary.c100};
|
|
764
|
-
}
|
|
765
|
-
::before,
|
|
766
|
-
svg {
|
|
767
|
-
cursor: pointer;
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
transition: opacity 0.2s ease-in-out;
|
|
771
|
-
opacity: var(--hover-transition);
|
|
772
|
-
::before,
|
|
773
|
-
svg {
|
|
774
|
-
transition: translate 0.2s ease-in-out;
|
|
775
|
-
translate: calc(-50% + 50% * var(--hover-transition)) 0;
|
|
776
|
-
}
|
|
777
|
-
`;
|
|
778
|
-
|
|
779
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
780
|
-
ChevronArrow: () => (ChevronArrow)
|
|
781
|
-
});
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
},
|
|
785
|
-
1630(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
786
|
-
|
|
787
|
-
// EXPORTS
|
|
788
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
789
|
-
"default": () => (/* binding */ bullets)
|
|
790
|
-
});
|
|
791
|
-
|
|
792
|
-
// EXTERNAL MODULE: external "react"
|
|
793
|
-
var external_react_ = __webpack_require__(2015);
|
|
794
|
-
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
795
|
-
;// CONCATENATED MODULE: external "react-spring"
|
|
796
|
-
const external_react_spring_namespaceObject = require("react-spring");
|
|
797
|
-
// EXTERNAL MODULE: external "styled-components"
|
|
798
|
-
var external_styled_components_ = __webpack_require__(2770);
|
|
799
|
-
// EXTERNAL MODULE: ./src/components/layout/Carousel/Footer/Pagination/types.ts
|
|
800
|
-
var types = __webpack_require__(6287);
|
|
801
|
-
;// CONCATENATED MODULE: ./src/components/layout/Carousel/Footer/Pagination/bullets.tsx
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
const defaultBulletStyle = {
|
|
807
|
-
height: "6px",
|
|
808
|
-
borderRadius: "1000px",
|
|
809
|
-
marginRight: "4px",
|
|
810
|
-
opacity: 1
|
|
811
|
-
};
|
|
812
|
-
const useBulletStyles = ()=>{
|
|
813
|
-
const { colors } = (0,external_styled_components_.useTheme)();
|
|
814
|
-
const BulletStyle = {
|
|
815
|
-
[types.ItemStatus.active]: {
|
|
816
|
-
...defaultBulletStyle,
|
|
817
|
-
width: "16px",
|
|
818
|
-
backgroundColor: colors.opacityDefault.c80
|
|
819
|
-
},
|
|
820
|
-
[types.ItemStatus.nearby]: {
|
|
821
|
-
...defaultBulletStyle,
|
|
822
|
-
width: "8px",
|
|
823
|
-
backgroundColor: colors.opacityDefault.c30
|
|
824
|
-
},
|
|
825
|
-
[types.ItemStatus.far]: {
|
|
826
|
-
...defaultBulletStyle,
|
|
827
|
-
width: "4px",
|
|
828
|
-
backgroundColor: colors.opacityDefault.c10
|
|
829
|
-
},
|
|
830
|
-
[types.ItemStatus.none]: {
|
|
831
|
-
...defaultBulletStyle,
|
|
832
|
-
width: "0px",
|
|
833
|
-
opacity: 0,
|
|
834
|
-
backgroundColor: colors.opacityDefault.c10,
|
|
835
|
-
marginRight: "0px"
|
|
836
|
-
}
|
|
837
|
-
};
|
|
838
|
-
return BulletStyle;
|
|
839
|
-
};
|
|
840
|
-
const Bullet = ({ type })=>{
|
|
841
|
-
const springStyle = (0,external_react_spring_namespaceObject.useSpring)(useBulletStyles()[type]);
|
|
842
|
-
/* react-spring animated.div typings don't include style; spread with assertion for compatibility */ return /*#__PURE__*/ external_react_default().createElement(external_react_spring_namespaceObject.animated.div, {
|
|
843
|
-
style: springStyle
|
|
844
|
-
});
|
|
845
|
-
};
|
|
846
|
-
/* export default */ const bullets = (Bullet);
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
},
|
|
850
|
-
2378(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
851
|
-
/* import */ var react__rspack_import_0 = __webpack_require__(2015);
|
|
852
|
-
/* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
|
|
853
|
-
/* import */ var styled_components__rspack_import_1 = __webpack_require__(2770);
|
|
854
|
-
/* import */ var styled_components__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_1);
|
|
855
|
-
/* import */ var _bullets__rspack_import_2 = __webpack_require__(1630);
|
|
856
|
-
/* import */ var _utils__rspack_import_3 = __webpack_require__(8139);
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
const FooterCarouselBullets = (styled_components__rspack_import_1_default().div)`
|
|
862
|
-
display: flex;
|
|
863
|
-
align-items: center;
|
|
864
|
-
`;
|
|
865
|
-
const Pagination = ({ children, currentIndex })=>{
|
|
866
|
-
return /*#__PURE__*/ react__rspack_import_0_default().createElement(FooterCarouselBullets, null, children.map((child, index)=>/*#__PURE__*/ react__rspack_import_0_default().createElement(_bullets__rspack_import_2["default"], {
|
|
867
|
-
key: child.key,
|
|
868
|
-
type: (0,_utils__rspack_import_3.getItemStatus)(index, currentIndex, children.length)
|
|
869
|
-
})));
|
|
870
|
-
};
|
|
871
|
-
/* export default */ const __rspack_default_export = (Pagination);
|
|
872
|
-
|
|
873
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
874
|
-
}, {
|
|
875
|
-
"default": __rspack_default_export
|
|
876
|
-
});
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
},
|
|
880
|
-
6287(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
881
|
-
var ItemStatus = /*#__PURE__*/ function(ItemStatus) {
|
|
882
|
-
ItemStatus[ItemStatus["active"] = 0] = "active";
|
|
883
|
-
ItemStatus[ItemStatus["nearby"] = 1] = "nearby";
|
|
884
|
-
ItemStatus[ItemStatus["far"] = 2] = "far";
|
|
885
|
-
ItemStatus[ItemStatus["none"] = 3] = "none";
|
|
886
|
-
return ItemStatus;
|
|
887
|
-
}({});
|
|
888
|
-
|
|
889
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
890
|
-
ItemStatus: () => (ItemStatus)
|
|
891
|
-
});
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
},
|
|
895
|
-
8139(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
896
|
-
/* import */ var _types__rspack_import_0 = __webpack_require__(6287);
|
|
897
|
-
|
|
898
|
-
/**
|
|
899
|
-
* Returns the status of an indexed item from the carousel index.
|
|
900
|
-
*/ const getItemStatus = (itemIndex, activeIndex, itemCount)=>{
|
|
901
|
-
const isActive = itemIndex === activeIndex;
|
|
902
|
-
if (isActive) {
|
|
903
|
-
return _types__rspack_import_0.ItemStatus.active;
|
|
904
|
-
}
|
|
905
|
-
const isAdjacent = Math.abs(itemIndex - activeIndex) === 1;
|
|
906
|
-
if (isAdjacent) {
|
|
907
|
-
return _types__rspack_import_0.ItemStatus.nearby;
|
|
908
|
-
}
|
|
909
|
-
const isEdge = itemIndex === 0 || itemIndex === itemCount - 1;
|
|
910
|
-
return isEdge ? _types__rspack_import_0.ItemStatus.far : _types__rspack_import_0.ItemStatus.nearby;
|
|
911
|
-
};
|
|
912
|
-
|
|
913
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
914
|
-
}, {
|
|
915
|
-
getItemStatus: getItemStatus
|
|
916
|
-
});
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
},
|
|
920
|
-
8371(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
921
|
-
/* import */ var react__rspack_import_0 = __webpack_require__(2015);
|
|
922
|
-
/* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
|
|
923
|
-
/* import */ var _variantContentCard__rspack_import_1 = __webpack_require__(4123);
|
|
924
|
-
/* import */ var _variantDefault__rspack_import_2 = __webpack_require__(373);
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
const Footers = {
|
|
929
|
-
"content-card": _variantContentCard__rspack_import_1["default"],
|
|
930
|
-
default: _variantDefault__rspack_import_2["default"]
|
|
931
|
-
};
|
|
932
|
-
const Footer = (props)=>{
|
|
933
|
-
if (props.children.length === 1) return null;
|
|
934
|
-
const Component = Footers[props.variant];
|
|
935
|
-
return /*#__PURE__*/ react__rspack_import_0_default().createElement(Component, props);
|
|
936
|
-
};
|
|
937
|
-
/* export default */ const __rspack_default_export = (Footer);
|
|
938
|
-
|
|
939
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
940
|
-
}, {
|
|
941
|
-
"default": __rspack_default_export
|
|
942
|
-
});
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
},
|
|
946
|
-
4123(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
947
|
-
/* import */ var _ledgerhq_icons_ui_react__rspack_import_0 = __webpack_require__(7304);
|
|
948
|
-
/* import */ var _ledgerhq_icons_ui_react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(_ledgerhq_icons_ui_react__rspack_import_0);
|
|
949
|
-
/* import */ var react__rspack_import_1 = __webpack_require__(2015);
|
|
950
|
-
/* import */ var react__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_1);
|
|
951
|
-
/* import */ var styled_components__rspack_import_2 = __webpack_require__(2770);
|
|
952
|
-
/* import */ var styled_components__rspack_import_2_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_2);
|
|
953
|
-
/* import */ var _Pagination__rspack_import_3 = __webpack_require__(2378);
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
const FooterContainer = (styled_components__rspack_import_2_default().div)`
|
|
959
|
-
height: 32px;
|
|
960
|
-
border-top: 1px solid ${(p)=>p.theme.colors.opacityDefault.c10};
|
|
961
|
-
display: flex;
|
|
962
|
-
justify-content: space-between;
|
|
963
|
-
padding: 6px 16px 6px 16px;
|
|
964
|
-
`;
|
|
965
|
-
const FooterArrowsContainer = (styled_components__rspack_import_2_default().div)`
|
|
966
|
-
display: flex;
|
|
967
|
-
gap: 8px;
|
|
968
|
-
align-items: center;
|
|
969
|
-
`;
|
|
970
|
-
const FooterArrowContainer = (styled_components__rspack_import_2_default().div)`
|
|
971
|
-
display: flex;
|
|
972
|
-
align-items: center;
|
|
973
|
-
cursor: pointer;
|
|
974
|
-
`;
|
|
975
|
-
const FooterContentCard = ({ children, emblaApi, currentIndex, variant })=>{
|
|
976
|
-
return /*#__PURE__*/ react__rspack_import_1_default().createElement(FooterContainer, null, /*#__PURE__*/ react__rspack_import_1_default().createElement(_Pagination__rspack_import_3["default"], {
|
|
977
|
-
variant: variant,
|
|
978
|
-
children: children,
|
|
979
|
-
emblaApi: emblaApi,
|
|
980
|
-
currentIndex: currentIndex
|
|
981
|
-
}), /*#__PURE__*/ react__rspack_import_1_default().createElement(FooterArrowsContainer, null, /*#__PURE__*/ react__rspack_import_1_default().createElement(FooterArrowContainer, {
|
|
982
|
-
onClick: ()=>emblaApi?.scrollPrev()
|
|
983
|
-
}, /*#__PURE__*/ react__rspack_import_1_default().createElement(_ledgerhq_icons_ui_react__rspack_import_0.ArrowLeft, {
|
|
984
|
-
size: "S"
|
|
985
|
-
})), /*#__PURE__*/ react__rspack_import_1_default().createElement(FooterArrowContainer, {
|
|
986
|
-
onClick: ()=>emblaApi?.scrollNext()
|
|
987
|
-
}, /*#__PURE__*/ react__rspack_import_1_default().createElement(_ledgerhq_icons_ui_react__rspack_import_0.ArrowRight, {
|
|
988
|
-
size: "S"
|
|
989
|
-
}))));
|
|
990
|
-
};
|
|
991
|
-
/* export default */ const __rspack_default_export = (FooterContentCard);
|
|
992
|
-
|
|
993
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
994
|
-
}, {
|
|
995
|
-
"default": __rspack_default_export
|
|
996
|
-
});
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
},
|
|
1000
|
-
373(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
1001
|
-
/* import */ var react__rspack_import_0 = __webpack_require__(2015);
|
|
1002
|
-
/* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
|
|
1003
|
-
/* import */ var styled_components__rspack_import_1 = __webpack_require__(2770);
|
|
1004
|
-
/* import */ var styled_components__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_1);
|
|
1005
|
-
/* import */ var _Pagination__rspack_import_2 = __webpack_require__(2378);
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
const FooterContainer = (styled_components__rspack_import_1_default().div)`
|
|
1010
|
-
height: 32px;
|
|
1011
|
-
display: flex;
|
|
1012
|
-
justify-content: center;
|
|
1013
|
-
align-items: center;
|
|
1014
|
-
`;
|
|
1015
|
-
const FooterDefault = (props)=>{
|
|
1016
|
-
return /*#__PURE__*/ react__rspack_import_0_default().createElement(FooterContainer, null, /*#__PURE__*/ react__rspack_import_0_default().createElement(_Pagination__rspack_import_2["default"], props));
|
|
1017
|
-
};
|
|
1018
|
-
/* export default */ const __rspack_default_export = (FooterDefault);
|
|
1019
|
-
|
|
1020
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
1021
|
-
}, {
|
|
1022
|
-
"default": __rspack_default_export
|
|
1023
|
-
});
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
},
|
|
1027
|
-
2537(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
1028
|
-
|
|
1029
|
-
// EXPORTS
|
|
1030
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
1031
|
-
"default": () => (/* binding */ layout_Carousel)
|
|
1032
|
-
});
|
|
1033
|
-
|
|
1034
|
-
;// CONCATENATED MODULE: external "embla-carousel-autoplay"
|
|
1035
|
-
const external_embla_carousel_autoplay_namespaceObject = require("embla-carousel-autoplay");
|
|
1036
|
-
var external_embla_carousel_autoplay_default = /*#__PURE__*/__webpack_require__.n(external_embla_carousel_autoplay_namespaceObject);
|
|
1037
|
-
;// CONCATENATED MODULE: external "embla-carousel-react"
|
|
1038
|
-
const external_embla_carousel_react_namespaceObject = require("embla-carousel-react");
|
|
1039
|
-
var external_embla_carousel_react_default = /*#__PURE__*/__webpack_require__.n(external_embla_carousel_react_namespaceObject);
|
|
1040
|
-
;// CONCATENATED MODULE: external "lodash/debounce"
|
|
1041
|
-
const debounce_namespaceObject = require("lodash/debounce");
|
|
1042
|
-
var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce_namespaceObject);
|
|
1043
|
-
// EXTERNAL MODULE: external "react"
|
|
1044
|
-
var external_react_ = __webpack_require__(2015);
|
|
1045
|
-
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
1046
|
-
// EXTERNAL MODULE: external "styled-components"
|
|
1047
|
-
var external_styled_components_ = __webpack_require__(2770);
|
|
1048
|
-
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
1049
|
-
// EXTERNAL MODULE: ./src/components/layout/Carousel/Footer/index.tsx
|
|
1050
|
-
var Footer = __webpack_require__(8371);
|
|
1051
|
-
// EXTERNAL MODULE: ./src/components/layout/Carousel/ChevronArrow.tsx
|
|
1052
|
-
var ChevronArrow = __webpack_require__(8459);
|
|
1053
|
-
;// CONCATENATED MODULE: ./src/components/layout/Carousel/index.tsx
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
const Embla = (external_styled_components_default()).div`
|
|
1062
|
-
overflow: hidden;
|
|
1063
|
-
`;
|
|
1064
|
-
const EmblaContainer = (external_styled_components_default()).div`
|
|
1065
|
-
display: flex;
|
|
1066
|
-
`;
|
|
1067
|
-
const EmblaSlide = (external_styled_components_default()).div`
|
|
1068
|
-
display: flex;
|
|
1069
|
-
flex: 0 0 100%;
|
|
1070
|
-
min-width: 0;
|
|
1071
|
-
> * {
|
|
1072
|
-
flex-basis: 100%;
|
|
1073
|
-
}
|
|
1074
|
-
`;
|
|
1075
|
-
const CarouselContainer = (external_styled_components_default()).div`
|
|
1076
|
-
position: relative;
|
|
1077
|
-
|
|
1078
|
-
--hover-transition: 0;
|
|
1079
|
-
&:hover {
|
|
1080
|
-
--hover-transition: 1;
|
|
1081
|
-
}
|
|
1082
|
-
`;
|
|
1083
|
-
/**
|
|
1084
|
-
* This component uses the https://github.com/davidjerleke/embla-carousel library.
|
|
1085
|
-
*/ const Carousel = ({ children, variant = "default", initialDelay = 0, autoPlay = 0, onNext, onPrev })=>{
|
|
1086
|
-
const [currentIndex, setCurrentIndex] = (0,external_react_.useState)(0);
|
|
1087
|
-
const [autoplayEnabled, setAutoplayEnabled] = (0,external_react_.useState)(false);
|
|
1088
|
-
const plugins = (0,external_react_.useMemo)(()=>autoplayEnabled && autoPlay ? [
|
|
1089
|
-
external_embla_carousel_autoplay_default()({
|
|
1090
|
-
delay: autoPlay,
|
|
1091
|
-
...AutoplayFlags
|
|
1092
|
-
})
|
|
1093
|
-
] : [], [
|
|
1094
|
-
autoplayEnabled,
|
|
1095
|
-
autoPlay
|
|
1096
|
-
]);
|
|
1097
|
-
const [emblaRef, emblaApi] = external_embla_carousel_react_default()({
|
|
1098
|
-
loop: true
|
|
1099
|
-
}, plugins);
|
|
1100
|
-
(0,external_react_.useEffect)(()=>{
|
|
1101
|
-
if (autoPlay) {
|
|
1102
|
-
const timer = setTimeout(()=>setAutoplayEnabled(true), initialDelay);
|
|
1103
|
-
return ()=>clearTimeout(timer);
|
|
1104
|
-
}
|
|
1105
|
-
}, [
|
|
1106
|
-
autoPlay
|
|
1107
|
-
]);
|
|
1108
|
-
const updateIndex = (0,external_react_.useCallback)(()=>{
|
|
1109
|
-
if (!emblaApi) return;
|
|
1110
|
-
const newIndex = emblaApi.selectedScrollSnap();
|
|
1111
|
-
setCurrentIndex(newIndex);
|
|
1112
|
-
emblaApi.scrollTo(newIndex);
|
|
1113
|
-
}, [
|
|
1114
|
-
emblaApi
|
|
1115
|
-
]);
|
|
1116
|
-
(0,external_react_.useEffect)(()=>{
|
|
1117
|
-
if (!emblaApi) return;
|
|
1118
|
-
// Initial call to update carousel index
|
|
1119
|
-
updateIndex();
|
|
1120
|
-
const dragX = watchDragX(emblaApi);
|
|
1121
|
-
// When the selected scroll snap changes
|
|
1122
|
-
const handleAnySelect = debounce_default()((mightBeASwipe)=>{
|
|
1123
|
-
updateIndex();
|
|
1124
|
-
if (!mightBeASwipe || variant !== "default") return; // onNext/onPrev events are not supported for content-card variant ATM
|
|
1125
|
-
if (dragX.value > 0) return onPrev?.();
|
|
1126
|
-
if (dragX.value < 0) return onNext?.();
|
|
1127
|
-
}, 0); // all events are fired on the same tick so no need to wait past the next tick
|
|
1128
|
-
emblaApi.on("select", handleSelect);
|
|
1129
|
-
emblaApi.on("autoplay:select", handleAutoPlaySelect);
|
|
1130
|
-
emblaApi.on("button:prev", handlePrevButton);
|
|
1131
|
-
emblaApi.on("button:next", handleNextButton);
|
|
1132
|
-
// When `reInit` is called or when window is resized
|
|
1133
|
-
emblaApi.on("reInit", updateIndex);
|
|
1134
|
-
return ()=>{
|
|
1135
|
-
dragX.clean();
|
|
1136
|
-
emblaApi.off("select", handleSelect);
|
|
1137
|
-
emblaApi.off("autoplay:select", handleAutoPlaySelect);
|
|
1138
|
-
emblaApi.off("button:prev", handlePrevButton);
|
|
1139
|
-
emblaApi.off("button:next", handleNextButton);
|
|
1140
|
-
emblaApi.off("reInit", updateIndex);
|
|
1141
|
-
};
|
|
1142
|
-
function handleSelect() {
|
|
1143
|
-
handleAnySelect(true); // This could be a swipe action. As this runs first the debounce will override the value otherwise
|
|
1144
|
-
}
|
|
1145
|
-
function handleAutoPlaySelect() {
|
|
1146
|
-
handleAnySelect(false);
|
|
1147
|
-
}
|
|
1148
|
-
function handlePrevButton() {
|
|
1149
|
-
emblaApi?.scrollPrev();
|
|
1150
|
-
onPrev?.();
|
|
1151
|
-
handleAnySelect(false);
|
|
1152
|
-
}
|
|
1153
|
-
function handleNextButton() {
|
|
1154
|
-
emblaApi?.scrollNext();
|
|
1155
|
-
onNext?.();
|
|
1156
|
-
handleAnySelect(false);
|
|
1157
|
-
}
|
|
1158
|
-
}, [
|
|
1159
|
-
emblaApi,
|
|
1160
|
-
updateIndex,
|
|
1161
|
-
variant
|
|
1162
|
-
]);
|
|
1163
|
-
if (!children.length) return null;
|
|
1164
|
-
const handleGotoPrevSlide = ()=>emblaApi?.emit("button:prev");
|
|
1165
|
-
const handleGotoNextSlide = ()=>emblaApi?.emit("button:next");
|
|
1166
|
-
return /*#__PURE__*/ external_react_default().createElement("div", null, /*#__PURE__*/ external_react_default().createElement(CarouselContainer, {
|
|
1167
|
-
variant: variant
|
|
1168
|
-
}, variant === "default" && children.length > 1 && /*#__PURE__*/ external_react_default().createElement((external_react_default()).Fragment, null, /*#__PURE__*/ external_react_default().createElement(ChevronArrow.ChevronArrow, {
|
|
1169
|
-
"data-testid": "carousel-arrow-prev",
|
|
1170
|
-
direction: "left",
|
|
1171
|
-
onClick: handleGotoPrevSlide
|
|
1172
|
-
}), /*#__PURE__*/ external_react_default().createElement(ChevronArrow.ChevronArrow, {
|
|
1173
|
-
"data-testid": "carousel-arrow-next",
|
|
1174
|
-
direction: "right",
|
|
1175
|
-
onClick: handleGotoNextSlide
|
|
1176
|
-
})), /*#__PURE__*/ external_react_default().createElement(Embla, {
|
|
1177
|
-
ref: emblaRef
|
|
1178
|
-
}, /*#__PURE__*/ external_react_default().createElement(EmblaContainer, null, children.map((child)=>/*#__PURE__*/ external_react_default().createElement(EmblaSlide, {
|
|
1179
|
-
key: child.key
|
|
1180
|
-
}, child))))), /*#__PURE__*/ external_react_default().createElement(Footer["default"], {
|
|
1181
|
-
children: children,
|
|
1182
|
-
variant: variant,
|
|
1183
|
-
emblaApi: emblaApi,
|
|
1184
|
-
currentIndex: currentIndex
|
|
1185
|
-
}));
|
|
1186
|
-
};
|
|
1187
|
-
/* export default */ const layout_Carousel = (Carousel);
|
|
1188
|
-
const AutoplayFlags = {
|
|
1189
|
-
play: true,
|
|
1190
|
-
stopOnMouseEnter: true,
|
|
1191
|
-
stopOnInteraction: false
|
|
1192
|
-
};
|
|
1193
|
-
function watchDragX(emblaApi) {
|
|
1194
|
-
emblaApi.on("pointerDown", watchMouse);
|
|
1195
|
-
let start;
|
|
1196
|
-
let end;
|
|
1197
|
-
return {
|
|
1198
|
-
get value () {
|
|
1199
|
-
return typeof start === "undefined" || typeof end === "undefined" ? 0 : end - start;
|
|
1200
|
-
},
|
|
1201
|
-
clean: ()=>{
|
|
1202
|
-
emblaApi.off("pointerDown", watchMouse);
|
|
1203
|
-
document.removeEventListener("mouseup", handleMouseUp);
|
|
1204
|
-
}
|
|
1205
|
-
};
|
|
1206
|
-
function watchMouse() {
|
|
1207
|
-
document.addEventListener("mousemove", handleMouseMove);
|
|
1208
|
-
document.addEventListener("mouseup", handleMouseUp);
|
|
1209
|
-
}
|
|
1210
|
-
function handleMouseMove(event) {
|
|
1211
|
-
document.removeEventListener("mousemove", handleMouseMove);
|
|
1212
|
-
start = event.clientX;
|
|
1213
|
-
end = undefined;
|
|
1214
|
-
}
|
|
1215
|
-
function handleMouseUp(event) {
|
|
1216
|
-
document.removeEventListener("mouseup", handleMouseUp);
|
|
1217
|
-
end = event.clientX;
|
|
1218
|
-
}
|
|
1219
|
-
}
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
},
|
|
1223
|
-
6160(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
1224
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
1225
|
-
"default": () => (PortfolioContentCard)
|
|
1226
|
-
});
|
|
1227
|
-
/* import */ var react__rspack_import_0 = __webpack_require__(2015);
|
|
1228
|
-
/* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
|
|
1229
|
-
/* import */ var _cta__rspack_import_2 = __webpack_require__(6599);
|
|
1230
|
-
/* import */ var _Banner_BannerCard__rspack_import_1 = __webpack_require__(4974);
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
function PortfolioContentCard({ title, cta, description, tag, image, onClick, onClose }) {
|
|
1235
|
-
return /*#__PURE__*/ react__rspack_import_0_default().createElement(_Banner_BannerCard__rspack_import_1["default"], {
|
|
1236
|
-
title: title,
|
|
1237
|
-
cta: cta && /*#__PURE__*/ react__rspack_import_0_default().createElement(_cta__rspack_import_2["default"], {
|
|
1238
|
-
variant: "main",
|
|
1239
|
-
outline: false
|
|
1240
|
-
}, cta),
|
|
1241
|
-
description: description,
|
|
1242
|
-
tag: tag,
|
|
1243
|
-
image: image,
|
|
1244
|
-
onClick: onClick,
|
|
1245
|
-
onClose: onClose
|
|
1246
|
-
});
|
|
1247
|
-
}
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
},
|
|
1251
|
-
3696(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
1252
|
-
/* import */ var _styled__rspack_import_0 = __webpack_require__(7680);
|
|
1253
|
-
|
|
1254
|
-
const FlexBox = _styled__rspack_import_0["default"].div.attrs({
|
|
1255
|
-
display: "flex",
|
|
1256
|
-
minWidth: 0
|
|
1257
|
-
})``;
|
|
1258
|
-
/* export default */ const __rspack_default_export = (FlexBox);
|
|
1259
|
-
|
|
1260
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
1261
|
-
}, {
|
|
1262
|
-
"default": __rspack_default_export
|
|
1263
|
-
});
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
},
|
|
1267
|
-
6445(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
1268
|
-
/* import */ var styled_components__rspack_import_0 = __webpack_require__(2770);
|
|
1269
|
-
/* import */ var styled_components__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_0);
|
|
1270
|
-
|
|
1271
|
-
/* export default */ const __rspack_default_export = ((0,styled_components__rspack_import_0.css)`
|
|
1272
|
-
.tippy-box[data-animation="fade"][data-state="hidden"] {
|
|
1273
|
-
opacity: 0;
|
|
1274
|
-
}
|
|
1275
|
-
|
|
1276
|
-
[data-tippy-root] {
|
|
1277
|
-
max-width: calc(100vw - 10px);
|
|
1278
|
-
}
|
|
1279
|
-
|
|
1280
|
-
.tippy-box {
|
|
1281
|
-
position: relative;
|
|
1282
|
-
background-color: ${(p)=>p.theme.colors.neutral.c100};
|
|
1283
|
-
color: ${(p)=>p.theme.colors.neutral.c00};
|
|
1284
|
-
border-radius: 4px;
|
|
1285
|
-
font-size: 14px;
|
|
1286
|
-
line-height: 1.4;
|
|
1287
|
-
outline: 0;
|
|
1288
|
-
transition-property: transform, visibility, opacity;
|
|
1289
|
-
}
|
|
1290
|
-
|
|
1291
|
-
.tippy-arrow {
|
|
1292
|
-
width: 16px;
|
|
1293
|
-
height: 16px;
|
|
1294
|
-
color: ${(p)=>p.theme.colors.neutral.c100};
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
|
-
.tippy-arrow:before {
|
|
1298
|
-
content: "";
|
|
1299
|
-
position: absolute;
|
|
1300
|
-
border-color: transparent;
|
|
1301
|
-
border-style: solid;
|
|
1302
|
-
}
|
|
1303
|
-
|
|
1304
|
-
.tippy-box[data-placement^="top"] > .tippy-arrow {
|
|
1305
|
-
bottom: 0;
|
|
1306
|
-
}
|
|
1307
|
-
|
|
1308
|
-
.tippy-box[data-placement^="top"] > .tippy-arrow:before {
|
|
1309
|
-
bottom: -4px;
|
|
1310
|
-
left: 0;
|
|
1311
|
-
border-width: 10px 10px 0;
|
|
1312
|
-
border-top-color: initial;
|
|
1313
|
-
transform-origin: center top;
|
|
1314
|
-
}
|
|
1315
|
-
|
|
1316
|
-
.tippy-box[data-placement^="bottom"] > .tippy-arrow {
|
|
1317
|
-
top: 0;
|
|
1318
|
-
}
|
|
1319
|
-
|
|
1320
|
-
.tippy-box[data-placement^="bottom"] > .tippy-arrow:before {
|
|
1321
|
-
top: -4px;
|
|
1322
|
-
left: 0;
|
|
1323
|
-
border-width: 0 10px 10px;
|
|
1324
|
-
border-bottom-color: initial;
|
|
1325
|
-
transform-origin: center bottom;
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
|
-
.tippy-box[data-placement^="left"] > .tippy-arrow {
|
|
1329
|
-
right: 0;
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
|
-
.tippy-box[data-placement^="left"] > .tippy-arrow:before {
|
|
1333
|
-
border-width: 10px 0 10px 10px;
|
|
1334
|
-
border-left-color: initial;
|
|
1335
|
-
right: -4px;
|
|
1336
|
-
transform-origin: center left;
|
|
1337
|
-
}
|
|
1338
|
-
|
|
1339
|
-
.tippy-box[data-placement^="right"] > .tippy-arrow {
|
|
1340
|
-
left: 0;
|
|
1341
|
-
}
|
|
1342
|
-
|
|
1343
|
-
.tippy-box[data-placement^="right"] > .tippy-arrow:before {
|
|
1344
|
-
left: -4px;
|
|
1345
|
-
border-width: 10px 10px 10px 0;
|
|
1346
|
-
border-right-color: initial;
|
|
1347
|
-
transform-origin: center right;
|
|
1348
|
-
}
|
|
1349
|
-
|
|
1350
|
-
.tippy-box[data-inertia][data-state="visible"] {
|
|
1351
|
-
transition-timing-function: cubic-bezier(0.54, 1.5, 0.38, 1.11);
|
|
1352
|
-
}
|
|
1353
|
-
|
|
1354
|
-
.tippy-content {
|
|
1355
|
-
position: relative;
|
|
1356
|
-
padding: 8px 10px;
|
|
1357
|
-
z-index: 1;
|
|
1358
|
-
}
|
|
1359
|
-
`);
|
|
1360
|
-
|
|
1361
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
1362
|
-
}, {
|
|
1363
|
-
"default": __rspack_default_export
|
|
1364
|
-
});
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
},
|
|
1368
|
-
7680(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
1369
|
-
/* import */ var _styles_system_gaps__rspack_import_2 = __webpack_require__(4182);
|
|
1370
|
-
/* import */ var styled_components__rspack_import_0 = __webpack_require__(2770);
|
|
1371
|
-
/* import */ var styled_components__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_0);
|
|
1372
|
-
/* import */ var styled_system__rspack_import_1 = __webpack_require__(9351);
|
|
1373
|
-
/* import */ var styled_system__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_1);
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
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);
|
|
1378
|
-
const proxyStyled = new Proxy((styled_components__rspack_import_0_default()), {
|
|
1379
|
-
apply (target, thisArg, argumentsList) {
|
|
1380
|
-
return styled_components__rspack_import_0_default()(target.apply(thisArg, argumentsList)(baseStyles));
|
|
1381
|
-
},
|
|
1382
|
-
get (target, property) {
|
|
1383
|
-
if (typeof target[property] === "function") {
|
|
1384
|
-
return styled_components__rspack_import_0_default()(target[property].apply((styled_components__rspack_import_0_default()), [
|
|
1385
|
-
baseStyles
|
|
1386
|
-
]));
|
|
1387
|
-
}
|
|
1388
|
-
return target[property];
|
|
1389
|
-
}
|
|
1390
|
-
});
|
|
1391
|
-
/* export default */ const __rspack_default_export = (proxyStyled);
|
|
1392
|
-
|
|
1393
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
1394
|
-
}, {
|
|
1395
|
-
"default": __rspack_default_export
|
|
1396
|
-
});
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
},
|
|
1400
|
-
3151(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
1401
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
1402
|
-
StyleProvider: () => (StyleProvider)
|
|
1403
|
-
});
|
|
1404
|
-
/* import */ var react__rspack_import_0 = __webpack_require__(2015);
|
|
1405
|
-
/* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
|
|
1406
|
-
/* import */ var styled_components__rspack_import_1 = __webpack_require__(2770);
|
|
1407
|
-
/* import */ var styled_components__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_1);
|
|
1408
|
-
/* import */ var ___rspack_import_3 = __webpack_require__(5548);
|
|
1409
|
-
/* import */ var ___rspack_import_4 = __webpack_require__(6734);
|
|
1410
|
-
/* import */ var _ledgerhq_ui_shared__rspack_import_2 = __webpack_require__(2993);
|
|
1411
|
-
/* import */ var _ledgerhq_ui_shared__rspack_import_2_default = /*#__PURE__*/__webpack_require__.n(_ledgerhq_ui_shared__rspack_import_2);
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
const StyleProvider = ({ children, fontsPath, fontMappings, selectedPalette = "light" })=>{
|
|
1418
|
-
const theme = (0,react__rspack_import_0.useMemo)(()=>({
|
|
1419
|
-
...___rspack_import_3["default"],
|
|
1420
|
-
colors: {
|
|
1421
|
-
...___rspack_import_3["default"].colors,
|
|
1422
|
-
..._ledgerhq_ui_shared__rspack_import_2.palettes[selectedPalette],
|
|
1423
|
-
palette: _ledgerhq_ui_shared__rspack_import_2.palettes[selectedPalette]
|
|
1424
|
-
},
|
|
1425
|
-
theme: selectedPalette
|
|
1426
|
-
}), [
|
|
1427
|
-
selectedPalette
|
|
1428
|
-
]);
|
|
1429
|
-
return /*#__PURE__*/ react__rspack_import_0_default().createElement(styled_components__rspack_import_1.ThemeProvider, {
|
|
1430
|
-
theme: theme
|
|
1431
|
-
}, /*#__PURE__*/ react__rspack_import_0_default().createElement(___rspack_import_4.GlobalStyle, {
|
|
1432
|
-
fontsPath: fontsPath,
|
|
1433
|
-
fontMappings: fontMappings
|
|
1434
|
-
}), children);
|
|
1435
|
-
};
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
},
|
|
1439
|
-
6734(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
1440
|
-
/* import */ var styled_components__rspack_import_0 = __webpack_require__(2770);
|
|
1441
|
-
/* import */ var styled_components__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_0);
|
|
1442
|
-
/* import */ var _helpers__rspack_import_1 = __webpack_require__(205);
|
|
1443
|
-
/* import */ var _components_message_Tooltip_styles__rspack_import_3 = __webpack_require__(6445);
|
|
1444
|
-
/* import */ var _components_asorted_Text_styles__rspack_import_2 = __webpack_require__(4368);
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
const GlobalStyle = (0,styled_components__rspack_import_0.createGlobalStyle)`
|
|
1450
|
-
html {
|
|
1451
|
-
box-sizing: border-box;
|
|
1452
|
-
}
|
|
1453
|
-
|
|
1454
|
-
body {
|
|
1455
|
-
font-family: Inter, sans-serif;
|
|
1456
|
-
font-size: 100%;
|
|
1457
|
-
}
|
|
1458
|
-
|
|
1459
|
-
* {
|
|
1460
|
-
margin: 0;
|
|
1461
|
-
padding: 0;
|
|
1462
|
-
font: inherit;
|
|
1463
|
-
color: inherit;
|
|
1464
|
-
user-select: inherit;
|
|
1465
|
-
cursor: inherit;
|
|
1466
|
-
}
|
|
1467
|
-
|
|
1468
|
-
::selection {
|
|
1469
|
-
background: ${(p)=>(0,_helpers__rspack_import_1.rgba)(p.theme.colors.primary.c100, 0.1)};
|
|
1470
|
-
}
|
|
1471
|
-
|
|
1472
|
-
--track-color: rgba(0,0,0,0);
|
|
1473
|
-
|
|
1474
|
-
${(props)=>typeof props.fontsPath === "string" ? _components_asorted_Text_styles__rspack_import_2.fontStyles : ""}
|
|
1475
|
-
|
|
1476
|
-
${_components_message_Tooltip_styles__rspack_import_3["default"]}
|
|
1477
|
-
|
|
1478
|
-
::-webkit-scrollbar {
|
|
1479
|
-
width: 12px;
|
|
1480
|
-
height: 12px;
|
|
1481
|
-
background-color: rgba(0,0,0,0);
|
|
1482
|
-
}
|
|
1483
|
-
::-webkit-scrollbar-button {
|
|
1484
|
-
opacity: 0;
|
|
1485
|
-
height: 0;
|
|
1486
|
-
width: 0;
|
|
1487
|
-
}
|
|
1488
|
-
::-webkit-scrollbar-track {
|
|
1489
|
-
background-color: rgba(0,0,0,0);
|
|
1490
|
-
}
|
|
1491
|
-
::-webkit-scrollbar-thumb {
|
|
1492
|
-
box-shadow: inset 0 0 0 12px var(--track-color);
|
|
1493
|
-
border: 2px solid rgba(0,0,0,0);
|
|
1494
|
-
border-radius: 12px;
|
|
1495
|
-
}
|
|
1496
|
-
::-webkit-scrollbar-corner {
|
|
1497
|
-
opacity: 0;
|
|
1498
|
-
}
|
|
1499
|
-
`;
|
|
1500
|
-
|
|
1501
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
1502
|
-
}, {
|
|
1503
|
-
GlobalStyle: GlobalStyle
|
|
1504
|
-
});
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
},
|
|
1508
|
-
205(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
1509
|
-
|
|
1510
|
-
// EXPORTS
|
|
1511
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
1512
|
-
ff: () => (/* binding */ ff),
|
|
1513
|
-
rgba: () => (/* binding */ rgba)
|
|
1514
|
-
});
|
|
1515
|
-
|
|
1516
|
-
// UNUSED EXPORTS: darken, ensureContrast, lighten, mix
|
|
1517
|
-
|
|
1518
|
-
;// CONCATENATED MODULE: external "color"
|
|
1519
|
-
const external_color_namespaceObject = require("color");
|
|
1520
|
-
var external_color_default = /*#__PURE__*/__webpack_require__.n(external_color_namespaceObject);
|
|
1521
|
-
// EXTERNAL MODULE: ./src/styles/theme.ts
|
|
1522
|
-
var theme = __webpack_require__(5548);
|
|
1523
|
-
;// CONCATENATED MODULE: ./src/styles/helpers.ts
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
const rgba = (c, a)=>external_color_default()(c).alpha(a).rgb().toString();
|
|
1527
|
-
const darken = (c, a)=>Color(c).darken(a).toString();
|
|
1528
|
-
const lighten = (c, a)=>Color(c).lighten(a).toString();
|
|
1529
|
-
const mix = (c, b, a)=>Color(c).mix(Color(b), a).toString();
|
|
1530
|
-
const ff = (v)=>{
|
|
1531
|
-
const [font, type = "Regular"] = v.split("|");
|
|
1532
|
-
// @ts-expect-error FIXME
|
|
1533
|
-
const { style, weight } = theme.fontFamilies[font][type];
|
|
1534
|
-
// @ts-expect-error FIXME
|
|
1535
|
-
const fallback = theme.fontFamilies[font].fallback ?? "Arial";
|
|
1536
|
-
return {
|
|
1537
|
-
fontFamily: `${font}, ${fallback}`,
|
|
1538
|
-
fontWeight: weight,
|
|
1539
|
-
fontStyle: style
|
|
1540
|
-
};
|
|
1541
|
-
};
|
|
1542
|
-
const ensureContrast = (color1, color2)=>{
|
|
1543
|
-
const colorL1 = Color(color1).luminosity() + 0.05;
|
|
1544
|
-
const colorL2 = Color(color2).luminosity() + 0.05;
|
|
1545
|
-
const lRatio = colorL1 > colorL2 ? colorL1 / colorL2 : colorL2 / colorL1;
|
|
1546
|
-
if (lRatio < 1.5) {
|
|
1547
|
-
return Color(color1).rotate(180).negate().string();
|
|
1548
|
-
}
|
|
1549
|
-
return color1;
|
|
1550
|
-
};
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
},
|
|
1554
|
-
3364(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
1555
|
-
/* import */ var _helpers__rspack_import_0 = __webpack_require__(205);
|
|
1556
|
-
|
|
1557
|
-
/* export default */ const __rspack_default_export = ((props)=>{
|
|
1558
|
-
const prop = props.ff;
|
|
1559
|
-
if (prop == null) {
|
|
1560
|
-
return null;
|
|
1561
|
-
}
|
|
1562
|
-
return (0,_helpers__rspack_import_0.ff)(prop);
|
|
1563
|
-
});
|
|
1564
|
-
|
|
1565
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
1566
|
-
}, {
|
|
1567
|
-
"default": __rspack_default_export
|
|
1568
|
-
});
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
},
|
|
1572
|
-
4182(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
1573
|
-
/* import */ var styled_system__rspack_import_0 = __webpack_require__(9351);
|
|
1574
|
-
/* import */ var styled_system__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_0);
|
|
1575
|
-
|
|
1576
|
-
const gaps = (0,styled_system__rspack_import_0.system)({
|
|
1577
|
-
rowGap: {
|
|
1578
|
-
property: "rowGap",
|
|
1579
|
-
scale: "space"
|
|
1580
|
-
},
|
|
1581
|
-
columnGap: {
|
|
1582
|
-
property: "columnGap",
|
|
1583
|
-
scale: "space"
|
|
1584
|
-
}
|
|
1585
|
-
});
|
|
1586
|
-
/* export default */ const __rspack_default_export = (gaps);
|
|
1587
|
-
|
|
1588
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
1589
|
-
}, {
|
|
1590
|
-
"default": __rspack_default_export
|
|
1591
|
-
});
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
},
|
|
1595
|
-
5548(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
1596
|
-
/* import */ var styled_components__rspack_import_0 = __webpack_require__(2770);
|
|
1597
|
-
/* import */ var styled_components__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_0);
|
|
1598
|
-
/* import */ var _ledgerhq_ui_shared__rspack_import_1 = __webpack_require__(2993);
|
|
1599
|
-
/* import */ var _ledgerhq_ui_shared__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(_ledgerhq_ui_shared__rspack_import_1);
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
const breakpoints = {
|
|
1603
|
-
sm: "640px",
|
|
1604
|
-
md: "768px",
|
|
1605
|
-
lg: "1024px",
|
|
1606
|
-
xl: "1280px",
|
|
1607
|
-
xxl: "1536px"
|
|
1608
|
-
};
|
|
1609
|
-
const space = [
|
|
1610
|
-
/* space indexes:
|
|
1611
|
-
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 */ 0,
|
|
1612
|
-
2,
|
|
1613
|
-
4,
|
|
1614
|
-
8,
|
|
1615
|
-
10,
|
|
1616
|
-
12,
|
|
1617
|
-
16,
|
|
1618
|
-
20,
|
|
1619
|
-
24,
|
|
1620
|
-
28,
|
|
1621
|
-
32,
|
|
1622
|
-
36,
|
|
1623
|
-
40,
|
|
1624
|
-
44,
|
|
1625
|
-
48,
|
|
1626
|
-
52,
|
|
1627
|
-
56,
|
|
1628
|
-
60,
|
|
1629
|
-
64,
|
|
1630
|
-
68,
|
|
1631
|
-
72,
|
|
1632
|
-
76
|
|
1633
|
-
];
|
|
1634
|
-
const fontSizes = [
|
|
1635
|
-
8,
|
|
1636
|
-
10,
|
|
1637
|
-
11,
|
|
1638
|
-
12,
|
|
1639
|
-
13,
|
|
1640
|
-
14,
|
|
1641
|
-
16,
|
|
1642
|
-
20,
|
|
1643
|
-
24,
|
|
1644
|
-
28,
|
|
1645
|
-
32,
|
|
1646
|
-
36
|
|
1647
|
-
];
|
|
1648
|
-
[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;
|
|
1649
|
-
fontSizes.largeLineHeight = fontSizes.large;
|
|
1650
|
-
fontSizes.bodyLineHeight = fontSizes.body;
|
|
1651
|
-
fontSizes.paragraphLineHeight = fontSizes.paragraph;
|
|
1652
|
-
fontSizes.subtitle = fontSizes.extraSmall;
|
|
1653
|
-
fontSizes.h1Inter = fontSizes.h1;
|
|
1654
|
-
fontSizes.h2Inter = fontSizes.h2;
|
|
1655
|
-
fontSizes.h3Inter = fontSizes.h3;
|
|
1656
|
-
fontSizes.h4Inter = fontSizes.h4;
|
|
1657
|
-
fontSizes.h5Inter = fontSizes.h5;
|
|
1658
|
-
const fontWeights = {
|
|
1659
|
-
extraLight: "100",
|
|
1660
|
-
light: "300",
|
|
1661
|
-
regular: "400",
|
|
1662
|
-
medium: "500",
|
|
1663
|
-
semiBold: "600",
|
|
1664
|
-
bold: "700",
|
|
1665
|
-
extraBold: "800"
|
|
1666
|
-
};
|
|
1667
|
-
const radii = [
|
|
1668
|
-
0,
|
|
1669
|
-
4,
|
|
1670
|
-
8,
|
|
1671
|
-
12,
|
|
1672
|
-
16,
|
|
1673
|
-
20
|
|
1674
|
-
];
|
|
1675
|
-
const shadows = [
|
|
1676
|
-
"0 4px 8px 0 rgba(0, 0, 0, 0.03)"
|
|
1677
|
-
];
|
|
1678
|
-
const zIndexes = [
|
|
1679
|
-
-1,
|
|
1680
|
-
0,
|
|
1681
|
-
1,
|
|
1682
|
-
9,
|
|
1683
|
-
10,
|
|
1684
|
-
90,
|
|
1685
|
-
100,
|
|
1686
|
-
900,
|
|
1687
|
-
1000
|
|
1688
|
-
];
|
|
1689
|
-
// Those fonts are now defined in global.css, this is just a mapping for styled-system
|
|
1690
|
-
const fontFamilies = {
|
|
1691
|
-
Inter: {
|
|
1692
|
-
ExtraLight: {
|
|
1693
|
-
weight: 100,
|
|
1694
|
-
style: "normal"
|
|
1695
|
-
},
|
|
1696
|
-
Light: {
|
|
1697
|
-
weight: 300,
|
|
1698
|
-
style: "normal"
|
|
1699
|
-
},
|
|
1700
|
-
Regular: {
|
|
1701
|
-
weight: 400,
|
|
1702
|
-
style: "normal"
|
|
1703
|
-
},
|
|
1704
|
-
Medium: {
|
|
1705
|
-
weight: 500,
|
|
1706
|
-
style: "normal"
|
|
1707
|
-
},
|
|
1708
|
-
SemiBold: {
|
|
1709
|
-
weight: 600,
|
|
1710
|
-
style: "normal"
|
|
1711
|
-
},
|
|
1712
|
-
Bold: {
|
|
1713
|
-
weight: 700,
|
|
1714
|
-
style: "normal"
|
|
1715
|
-
},
|
|
1716
|
-
ExtraBold: {
|
|
1717
|
-
weight: 800,
|
|
1718
|
-
style: "normal"
|
|
1719
|
-
}
|
|
1720
|
-
},
|
|
1721
|
-
Alpha: {
|
|
1722
|
-
Medium: {
|
|
1723
|
-
weight: 500,
|
|
1724
|
-
style: "normal"
|
|
1725
|
-
}
|
|
1726
|
-
}
|
|
1727
|
-
};
|
|
1728
|
-
const animationDuration = "0.33s";
|
|
1729
|
-
const easings = {
|
|
1730
|
-
outQuadratic: "cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
1731
|
-
};
|
|
1732
|
-
const transition = (properties = [
|
|
1733
|
-
"all"
|
|
1734
|
-
], duration = animationDuration, easing = easings.outQuadratic)=>(0,styled_components__rspack_import_0.css)`
|
|
1735
|
-
transition-property: ${properties.join(",")};
|
|
1736
|
-
transition-duration: ${duration};
|
|
1737
|
-
transition-timing-function: ${easing};
|
|
1738
|
-
`;
|
|
1739
|
-
const fadeIn = (0,styled_components__rspack_import_0.keyframes)`
|
|
1740
|
-
0% {
|
|
1741
|
-
opacity: 0;
|
|
1742
|
-
}
|
|
1743
|
-
100% {
|
|
1744
|
-
opacity: 1;
|
|
1745
|
-
}
|
|
1746
|
-
`;
|
|
1747
|
-
const fadeOut = (0,styled_components__rspack_import_0.keyframes)`
|
|
1748
|
-
0% {
|
|
1749
|
-
opacity: 1;
|
|
1750
|
-
}
|
|
1751
|
-
100% {
|
|
1752
|
-
opacity: 0;
|
|
1753
|
-
}
|
|
1754
|
-
`;
|
|
1755
|
-
const fadeInGrowX = (0,styled_components__rspack_import_0.keyframes)`
|
|
1756
|
-
0% {
|
|
1757
|
-
opacity: 0;
|
|
1758
|
-
transform: scaleX(0);
|
|
1759
|
-
}
|
|
1760
|
-
100% {
|
|
1761
|
-
opacity: 1;
|
|
1762
|
-
transform: scaleX(1);
|
|
1763
|
-
}
|
|
1764
|
-
`;
|
|
1765
|
-
const fadeInUp = (0,styled_components__rspack_import_0.keyframes)`
|
|
1766
|
-
0% {
|
|
1767
|
-
opacity: 0;
|
|
1768
|
-
transform: translateY(66%);
|
|
1769
|
-
}
|
|
1770
|
-
100% {
|
|
1771
|
-
opacity: 1;
|
|
1772
|
-
transform: translateY(0%);
|
|
1773
|
-
}
|
|
1774
|
-
`;
|
|
1775
|
-
const animations = {
|
|
1776
|
-
fadeIn: ()=>(0,styled_components__rspack_import_0.css)`
|
|
1777
|
-
${fadeIn} ${animationDuration} ${easings.outQuadratic} forwards
|
|
1778
|
-
`,
|
|
1779
|
-
fadeOut: ()=>(0,styled_components__rspack_import_0.css)`
|
|
1780
|
-
${fadeOut} ${animationDuration} ${easings.outQuadratic} forwards
|
|
1781
|
-
`,
|
|
1782
|
-
fadeInGrowX: ()=>(0,styled_components__rspack_import_0.css)`
|
|
1783
|
-
${fadeInGrowX} 0.6s ${easings.outQuadratic} forwards
|
|
1784
|
-
`,
|
|
1785
|
-
fadeInUp: ()=>(0,styled_components__rspack_import_0.css)`
|
|
1786
|
-
${fadeInUp} ${animationDuration} ${easings.outQuadratic} forwards
|
|
1787
|
-
`
|
|
1788
|
-
};
|
|
1789
|
-
const overflow = {
|
|
1790
|
-
x: (0,styled_components__rspack_import_0.css)`
|
|
1791
|
-
overflow-y: hidden;
|
|
1792
|
-
overflow-x: scroll;
|
|
1793
|
-
will-change: transform;
|
|
1794
|
-
&:hover {
|
|
1795
|
-
--track-color: ${(p)=>p.theme.colors.neutral.c30};
|
|
1796
|
-
}
|
|
1797
|
-
`,
|
|
1798
|
-
y: (0,styled_components__rspack_import_0.css)`
|
|
1799
|
-
overflow-x: hidden;
|
|
1800
|
-
overflow-y: scroll;
|
|
1801
|
-
will-change: transform;
|
|
1802
|
-
&:hover {
|
|
1803
|
-
--track-color: ${(p)=>p.theme.colors.neutral.c30};
|
|
1804
|
-
}
|
|
1805
|
-
`,
|
|
1806
|
-
yAuto: (0,styled_components__rspack_import_0.css)`
|
|
1807
|
-
overflow-x: hidden;
|
|
1808
|
-
overflow-y: auto;
|
|
1809
|
-
will-change: transform;
|
|
1810
|
-
&:hover {
|
|
1811
|
-
--track-color: ${(p)=>p.theme.colors.neutral.c30};
|
|
1812
|
-
}
|
|
1813
|
-
`,
|
|
1814
|
-
xy: (0,styled_components__rspack_import_0.css)`
|
|
1815
|
-
overflow: scroll;
|
|
1816
|
-
will-change: transform;
|
|
1817
|
-
&:hover {
|
|
1818
|
-
--track-color: ${(p)=>p.theme.colors.neutral.c30};
|
|
1819
|
-
}
|
|
1820
|
-
`,
|
|
1821
|
-
trackSize: 12
|
|
1822
|
-
};
|
|
1823
|
-
const theme = {
|
|
1824
|
-
theme: "light",
|
|
1825
|
-
sizes: {
|
|
1826
|
-
drawer: {
|
|
1827
|
-
side: {
|
|
1828
|
-
big: {
|
|
1829
|
-
width: 580
|
|
1830
|
-
},
|
|
1831
|
-
small: {
|
|
1832
|
-
width: 420
|
|
1833
|
-
}
|
|
1834
|
-
},
|
|
1835
|
-
popin: {
|
|
1836
|
-
min: {
|
|
1837
|
-
height: 158,
|
|
1838
|
-
width: 462
|
|
1839
|
-
},
|
|
1840
|
-
max: {
|
|
1841
|
-
height: 522,
|
|
1842
|
-
width: 622
|
|
1843
|
-
}
|
|
1844
|
-
}
|
|
1845
|
-
},
|
|
1846
|
-
topBarHeight: 58,
|
|
1847
|
-
sideBarWidth: 230
|
|
1848
|
-
},
|
|
1849
|
-
radii,
|
|
1850
|
-
fontFamilies,
|
|
1851
|
-
fontSizes,
|
|
1852
|
-
fontWeights,
|
|
1853
|
-
space,
|
|
1854
|
-
shadows,
|
|
1855
|
-
colors: _ledgerhq_ui_shared__rspack_import_1.palettes.light,
|
|
1856
|
-
animations,
|
|
1857
|
-
overflow,
|
|
1858
|
-
transition,
|
|
1859
|
-
zIndexes,
|
|
1860
|
-
breakpoints
|
|
1861
|
-
};
|
|
1862
|
-
/* export default */ const __rspack_default_export = (theme);
|
|
1863
|
-
|
|
1864
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
1865
|
-
}, {
|
|
1866
|
-
"default": __rspack_default_export,
|
|
1867
|
-
fontFamilies: fontFamilies,
|
|
1868
|
-
fontSizes: fontSizes
|
|
1869
|
-
});
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
},
|
|
1873
|
-
7304(module) {
|
|
1874
|
-
module.exports = require("@ledgerhq/icons-ui/react");
|
|
1875
|
-
|
|
1876
|
-
},
|
|
1877
|
-
2993(module) {
|
|
1878
|
-
module.exports = require("@ledgerhq/ui-shared");
|
|
1879
|
-
|
|
1880
|
-
},
|
|
1881
|
-
2015(module) {
|
|
1882
|
-
module.exports = require("react");
|
|
1883
|
-
|
|
1884
|
-
},
|
|
1885
|
-
2770(module) {
|
|
1886
|
-
module.exports = require("styled-components");
|
|
1887
|
-
|
|
1888
|
-
},
|
|
1889
|
-
9351(module) {
|
|
1890
|
-
module.exports = require("styled-system");
|
|
1891
|
-
|
|
1892
|
-
},
|
|
1893
|
-
|
|
1894
|
-
});
|
|
1895
|
-
// The module cache
|
|
1896
|
-
var __webpack_module_cache__ = {};
|
|
1897
|
-
|
|
1898
|
-
// The require function
|
|
1899
|
-
function __webpack_require__(moduleId) {
|
|
1900
|
-
|
|
1901
|
-
// Check if module is in cache
|
|
1902
|
-
var cachedModule = __webpack_module_cache__[moduleId];
|
|
1903
|
-
if (cachedModule !== undefined) {
|
|
1904
|
-
return cachedModule.exports;
|
|
1905
|
-
}
|
|
1906
|
-
// Create a new module (and put it into the cache)
|
|
1907
|
-
var module = (__webpack_module_cache__[moduleId] = {
|
|
1908
|
-
exports: {}
|
|
1909
|
-
});
|
|
1910
|
-
// Execute the module function
|
|
1911
|
-
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
1912
|
-
|
|
1913
|
-
// Return the exports of the module
|
|
1914
|
-
return module.exports;
|
|
1915
|
-
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
|
-
// webpack/runtime/compat_get_default_export
|
|
1919
|
-
(() => {
|
|
1920
|
-
// getDefaultExport function for compatibility with non-ESM modules
|
|
1921
|
-
__webpack_require__.n = (module) => {
|
|
1922
|
-
var getter = module && module.__esModule ?
|
|
1923
|
-
() => (module['default']) :
|
|
1924
|
-
() => (module);
|
|
1925
|
-
__webpack_require__.d(getter, { a: getter });
|
|
1926
|
-
return getter;
|
|
1927
|
-
};
|
|
1928
|
-
|
|
1929
|
-
})();
|
|
1930
|
-
// webpack/runtime/define_property_getters
|
|
1931
|
-
(() => {
|
|
1932
|
-
__webpack_require__.d = (exports, getters, values) => {
|
|
1933
|
-
var define = (defs, kind) => {
|
|
1934
|
-
for(var key in defs) {
|
|
1935
|
-
if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
|
|
1936
|
-
Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
|
|
1937
|
-
}
|
|
1938
|
-
}
|
|
1939
|
-
};
|
|
1940
|
-
define(getters, "get");
|
|
1941
|
-
define(values, "value");
|
|
1942
|
-
};
|
|
1943
|
-
})();
|
|
1944
|
-
// webpack/runtime/has_own_property
|
|
1945
|
-
(() => {
|
|
1946
|
-
__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
1947
|
-
})();
|
|
1948
|
-
// webpack/runtime/make_namespace_object
|
|
1949
|
-
(() => {
|
|
1950
|
-
// define __esModule on exports
|
|
1951
|
-
__webpack_require__.r = (exports) => {
|
|
1952
|
-
if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
1953
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
1954
|
-
}
|
|
1955
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1956
|
-
};
|
|
1957
|
-
})();
|
|
1958
|
-
var __webpack_exports__ = {};
|
|
1959
|
-
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
|
|
1960
|
-
(() => {
|
|
1961
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1962
|
-
/* import */ var react__rspack_import_0 = __webpack_require__(2015);
|
|
1963
|
-
/* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
|
|
1964
|
-
/* import */ var _ContentCard_PortfolioContentCard__rspack_import_2 = __webpack_require__(6160);
|
|
1965
|
-
/* import */ var ___rspack_import_1 = __webpack_require__(2537);
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
const SlideContext = /*#__PURE__*/ react__rspack_import_0_default().createContext([]);
|
|
1970
|
-
/* export default */ const __rspack_default_export = ({
|
|
1971
|
-
title: "Layout/Carousel",
|
|
1972
|
-
argTypes: {
|
|
1973
|
-
children: {
|
|
1974
|
-
description: "The elements to be displayed.",
|
|
1975
|
-
control: {
|
|
1976
|
-
type: "range",
|
|
1977
|
-
min: 0,
|
|
1978
|
-
max: 10,
|
|
1979
|
-
step: 1
|
|
1980
|
-
}
|
|
1981
|
-
},
|
|
1982
|
-
variant: {
|
|
1983
|
-
description: "Variant for the carousel.",
|
|
1984
|
-
options: [
|
|
1985
|
-
"default",
|
|
1986
|
-
"content-card"
|
|
1987
|
-
],
|
|
1988
|
-
defaultValue: "default",
|
|
1989
|
-
control: "inline-radio"
|
|
1990
|
-
},
|
|
1991
|
-
autoPlay: {
|
|
1992
|
-
description: "The time in milliseconds between automatic slide change (0 for no auto-play)."
|
|
1993
|
-
},
|
|
1994
|
-
onNext: {
|
|
1995
|
-
description: "Function called when the user moves to the next slide."
|
|
1996
|
-
},
|
|
1997
|
-
onPrev: {
|
|
1998
|
-
description: "Function called when the user moves to the previous slide."
|
|
1999
|
-
}
|
|
2000
|
-
},
|
|
2001
|
-
args: {
|
|
2002
|
-
variant: "default",
|
|
2003
|
-
children: 5,
|
|
2004
|
-
autoPlay: 0
|
|
2005
|
-
},
|
|
2006
|
-
parameters: {
|
|
2007
|
-
docs: {
|
|
2008
|
-
description: {
|
|
2009
|
-
component: "A simple Carousel component."
|
|
2010
|
-
}
|
|
2011
|
-
}
|
|
2012
|
-
},
|
|
2013
|
-
decorators: [
|
|
2014
|
-
(Story, { args, parameters })=>/*#__PURE__*/ react__rspack_import_0_default().createElement(SlideContext.Provider, {
|
|
2015
|
-
value: Array.from({
|
|
2016
|
-
length: args.children
|
|
2017
|
-
}, (_, index)=>/*#__PURE__*/ react__rspack_import_0_default().createElement(parameters.Slide, {
|
|
2018
|
-
key: index,
|
|
2019
|
-
index: index
|
|
2020
|
-
}))
|
|
2021
|
-
}, /*#__PURE__*/ react__rspack_import_0_default().createElement(Story, null))
|
|
2022
|
-
],
|
|
2023
|
-
render: ({ children, ...props })=>/*#__PURE__*/ react__rspack_import_0_default().createElement(___rspack_import_1["default"], props, (0,react__rspack_import_0.useContext)(SlideContext))
|
|
2024
|
-
});
|
|
2025
|
-
const Default = {
|
|
2026
|
-
parameters: {
|
|
2027
|
-
Slide: ({ index })=>/*#__PURE__*/ react__rspack_import_0_default().createElement("div", {
|
|
2028
|
-
style: {
|
|
2029
|
-
backgroundColor: `hsl(${Math.random() * 360}, 100%, 75%)`,
|
|
2030
|
-
padding: "16px 24px",
|
|
2031
|
-
borderRadius: "5px"
|
|
2032
|
-
}
|
|
2033
|
-
}, "Slide ", index)
|
|
2034
|
-
}
|
|
2035
|
-
};
|
|
2036
|
-
const PortfolioContentCards = {
|
|
2037
|
-
parameters: {
|
|
2038
|
-
Slide: ({ index })=>/*#__PURE__*/ react__rspack_import_0_default().createElement(_ContentCard_PortfolioContentCard__rspack_import_2["default"], {
|
|
2039
|
-
title: "Ledger Recover",
|
|
2040
|
-
description: "Get peace of mind and start your free trial.",
|
|
2041
|
-
cta: index % 2 ? undefined : "Start my free trial",
|
|
2042
|
-
tag: index % 3 ? undefined : "New",
|
|
2043
|
-
image: (index + 1) % 4 ? IMAGE_SRC : undefined,
|
|
2044
|
-
onClick: ()=>onSlideAction(`click on slide ${index}`),
|
|
2045
|
-
onClose: ()=>onSlideAction(`close slide ${index}`)
|
|
2046
|
-
})
|
|
2047
|
-
}
|
|
2048
|
-
};
|
|
2049
|
-
const onSlideAction = (_label)=>{};
|
|
2050
|
-
const IMAGE_SRC = "data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='450' height='526' viewBox='0 0 450 526'><defs><linearGradient id='g' x0='0' y0='0' x1='1' y1='1'><stop stop-color='%23000' offset='0%' /><stop stop-color='%23FFF' offset='100%' /></linearGradient></defs><path d='M0,0 H450 V526 Q0,526 0,0 z' fill='url(%23g)' /></svg>";
|
|
2051
|
-
|
|
2052
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
2053
|
-
}, {
|
|
2054
|
-
Default: Default,
|
|
2055
|
-
PortfolioContentCards: PortfolioContentCards,
|
|
2056
|
-
"default": __rspack_default_export
|
|
2057
|
-
});
|
|
2058
|
-
|
|
2059
|
-
})();
|
|
2060
|
-
|
|
2061
|
-
module.exports = __webpack_exports__;
|
|
2062
|
-
})()
|
|
2063
|
-
;
|
|
2064
|
-
//# sourceMappingURL=Carousel.stories.js.map
|