@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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"components/asorted/Divider/Divider.stories.js","sources":["webpack://@ledgerhq/react-ui/./src/components/asorted/Divider/index.tsx","webpack://@ledgerhq/react-ui/./src/components/asorted/Text/index.tsx","webpack://@ledgerhq/react-ui/./src/components/asorted/Text/styles.ts","webpack://@ledgerhq/react-ui/./src/components/layout/Flex/index.ts","webpack://@ledgerhq/react-ui/./src/components/styled.ts","webpack://@ledgerhq/react-ui/./src/styles/helpers.ts","webpack://@ledgerhq/react-ui/./src/styles/styled/fontFamily.ts","webpack://@ledgerhq/react-ui/./src/styles/system/gaps.ts","webpack://@ledgerhq/react-ui/./src/styles/theme.ts","webpack://@ledgerhq/react-ui/webpack/runtime/compat_get_default_export","webpack://@ledgerhq/react-ui/webpack/runtime/define_property_getters","webpack://@ledgerhq/react-ui/webpack/runtime/has_own_property","webpack://@ledgerhq/react-ui/webpack/runtime/make_namespace_object","webpack://@ledgerhq/react-ui/./src/components/asorted/Divider/Divider.stories.tsx"],"sourcesContent":["import React from \"react\";\nimport styled from \"styled-components\";\nimport Flex, { FlexBoxProps } from \"../../layout/Flex\";\nimport Text from \"../../asorted/Text\";\n\nexport type Props = FlexBoxProps & { text?: string };\nconst DividerBase = styled(Flex).attrs<FlexBoxProps>((p: FlexBoxProps) => ({\n my: p.my || 0,\n height: 1,\n backgroundColor: p.color || \"neutral.c40\",\n}))`\n &[data-variant=\"light\"] {\n background: ${p => p.theme.colors.neutral.c30};\n }\n`;\n\nconst Divider: React.FC<Props> = props => {\n if (!props.text) return <DividerBase {...props} />;\n return (\n <Flex {...props} flexDirection=\"row\" alignItems=\"center\">\n <DividerBase my={6} flex={1} />\n <Text variant=\"bodyLineHeight\" color=\"neutral.c60\" mx={6}>\n {props.text}\n </Text>\n <DividerBase my={6} flex={1} />\n </Flex>\n );\n};\n\nexport default Divider;\n","import React from \"react\";\nimport baseStyled, { BaseStyledProps } from \"../../styled\";\nimport {\n compose,\n fontSize,\n fontWeight,\n textAlign,\n lineHeight,\n letterSpacing,\n system,\n} from \"styled-system\";\nimport fontFamily from \"../../../styles/styled/fontFamily\";\nimport { TextVariants } from \"../../../styles/theme\";\nimport { textVariantStyle } from \"./styles\";\n\nconst uppercase = system({\n uppercase: {\n property: \"textTransform\",\n transform: value => (value ? \"uppercase\" : \"none\"),\n },\n});\n\ntype FontFamilies =\n | \"Inter|ExtraLight\"\n | \"Inter|Light\"\n | \"Inter|Regular\"\n | \"Inter|Medium\"\n | \"Inter|SemiBold\"\n | \"Inter|Bold\"\n | \"Inter|ExtraBold\"\n | \"Alpha|Medium\";\n\ntype WhiteSpace = \"normal\" | \"nowrap\" | \"pre\" | \"pre-line\" | \"pre-wrap\";\n\nexport interface TextProps extends BaseStyledProps {\n fontFamily?: string;\n ff?: FontFamilies;\n fontSize?: number | string | TextVariants;\n variant?: TextVariants;\n textAlign?: string;\n fontWeight?: string;\n lineHeight?: string;\n textTransform?: string;\n textOverflow?: string;\n uppercase?: boolean;\n whiteSpace?: WhiteSpace;\n children?: React.ReactNode;\n}\n\nconst Text = baseStyled.span.attrs<TextProps, TextProps>(\n ({ variant = \"body\", fontSize, color }) => ({\n fontSize: fontSize ? fontSize : variant,\n color: color || \"neutral.c100\",\n }),\n)`\n font-weight: 500;\n white-space: ${props => props.whiteSpace ?? \"normal\"};\n ${(p: TextProps) => textVariantStyle[p.variant || \"body\"]}\n ${compose(\n uppercase,\n lineHeight,\n fontFamily,\n fontSize,\n textAlign,\n fontWeight,\n letterSpacing,\n system({\n textOverflow: true,\n }),\n )}\n ${p => (p.textTransform ? `text-transform: ${p.textTransform};` : \"\")}\n`;\n\nexport default Text;\n","import { GlobalStyleProps } from \"../../../styles/global\";\nimport { css } from \"styled-components\";\nimport { TextVariants } from \"../../../styles/theme\";\n\nconst getFontSource = (name: string) => (props: GlobalStyleProps) => {\n const fontsPath = props.fontsPath ?? \"assets/fonts\";\n const fontName = (props.fontMappings && props.fontMappings(name)) || `${name}.woff2`;\n return `url(\"${fontsPath}/${fontName}\") format(\"woff2\")`;\n};\n\nexport const fontStyles = css`\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-ExtraLight-BETA\")};\n font-weight: 100;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-Light-BETA\")};\n font-weight: 300;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-Regular\")};\n font-weight: 400;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-Medium\")};\n font-weight: 500;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-SemiBold\")};\n font-weight: 600;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-ExtraBold\")};\n font-weight: 900;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Alpha\";\n src: ${getFontSource(\"HMAlphaMono-Medium\")};\n font-weight: 500;\n font-style: normal;\n }\n`;\n\nexport const textVariantStyle: Record<\n TextVariants,\n {\n fontFamily: string;\n lineHeight?: string | number;\n fontWeight?: number;\n \"text-transform\"?: string;\n }\n> = {\n h1: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h1Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h2: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h2Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h3: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h3Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n },\n h4: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h4Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 600,\n },\n h5: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h5Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n },\n large: {\n fontFamily: \"Inter, Sans\",\n },\n largeLineHeight: {\n fontFamily: \"Inter, Sans\",\n lineHeight: 1.7,\n },\n body: {\n fontFamily: \"Inter, Sans\",\n },\n bodyLineHeight: {\n fontFamily: \"Inter, Sans\",\n lineHeight: 1.7,\n },\n paragraph: {\n fontFamily: \"Inter, Sans\",\n },\n paragraphLineHeight: {\n fontFamily: \"Inter, Sans\",\n lineHeight: 1.7,\n },\n small: {\n fontFamily: \"Inter, Sans\",\n },\n extraSmall: {\n fontFamily: \"Inter, Sans\",\n },\n tiny: {\n fontFamily: \"Inter, Sans\",\n },\n micro: {\n fontFamily: \"Inter, Sans\",\n },\n subtitle: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 600,\n \"text-transform\": \"uppercase\",\n },\n};\n","import baseStyled, { BaseStyledProps } from \"../../styled\";\n\nconst FlexBox = baseStyled.div.attrs<BaseStyledProps, BaseStyledProps>({\n display: \"flex\",\n minWidth: 0,\n})``;\nexport type FlexBoxProps = BaseStyledProps & React.HTMLAttributes<HTMLDivElement>;\n\nexport default FlexBox;\n","import React from \"react\";\nimport gaps from \"../styles/system/gaps\";\nimport styled, { StyledInterface, InterpolationFunction } from \"styled-components\";\nimport {\n compose,\n flexbox,\n FlexboxProps,\n space,\n SpaceProps,\n position,\n PositionProps,\n color,\n ColorProps,\n layout,\n LayoutProps,\n overflow,\n OverflowProps,\n border,\n BorderProps,\n} from \"styled-system\";\n\nexport type BaseStyledProps = SpaceProps &\n FlexboxProps &\n PositionProps &\n ColorProps &\n LayoutProps &\n BorderProps &\n OverflowProps & {\n /**\n * The columnGap CSS property sets the size of the gap (gutter) between an element's grid columns.\n */\n columnGap?: string | number;\n /**\n * The rowGap CSS property sets the size of the gap (gutter) between an element's grid rows.\n */\n rowGap?: string | number;\n color?: string;\n children?: React.ReactNode;\n };\n\nexport const baseStyles: InterpolationFunction<unknown> = compose(\n flexbox,\n space,\n position,\n color,\n layout,\n overflow,\n gaps,\n border,\n);\n\nconst proxyStyled = new Proxy(styled, {\n apply(target: typeof styled, thisArg, argumentsList: Parameters<typeof styled>) {\n return styled(target.apply(thisArg, argumentsList)(baseStyles));\n },\n get(target, property: keyof typeof styled) {\n if (typeof target[property] === \"function\") {\n return styled(target[property].apply(styled, [baseStyles]));\n }\n return target[property];\n },\n});\n\nexport default <StyledInterface>proxyStyled;\n","import Color from \"color\";\n\nimport { fontFamilies } from \"./theme\";\n\nexport const rgba = (c: string, a: number): string => Color(c).alpha(a).rgb().toString();\n\nexport const darken = (c: string, a: number): string => Color(c).darken(a).toString();\n\nexport const lighten = (c: string, a: number): string => Color(c).lighten(a).toString();\n\nexport const mix = (c: string, b: string, a: number): string =>\n Color(c).mix(Color(b), a).toString();\n\nexport const ff = (v: string) => {\n const [font, type = \"Regular\"] = v.split(\"|\");\n // @ts-expect-error FIXME\n const { style, weight } = fontFamilies[font][type];\n // @ts-expect-error FIXME\n const fallback: string = fontFamilies[font].fallback ?? \"Arial\";\n\n return {\n fontFamily: `${font}, ${fallback}`,\n fontWeight: weight,\n fontStyle: style,\n };\n};\n\nexport const ensureContrast = (color1: string, color2: string) => {\n const colorL1 = Color(color1).luminosity() + 0.05;\n const colorL2 = Color(color2).luminosity() + 0.05;\n\n const lRatio = colorL1 > colorL2 ? colorL1 / colorL2 : colorL2 / colorL1;\n\n if (lRatio < 1.5) {\n return Color(color1).rotate(180).negate().string();\n }\n return color1;\n};\n","import { ff } from \"../helpers\";\n\nexport default (props: { ff?: string }) => {\n const prop = props.ff;\n\n if (prop == null) {\n return null;\n }\n\n return ff(prop);\n};\n","import { system } from \"styled-system\";\n\nconst gaps = system({\n rowGap: { property: \"rowGap\", scale: \"space\" },\n columnGap: { property: \"columnGap\", scale: \"space\" },\n});\n\nexport default gaps;\n","import { keyframes, css, Font } from \"styled-components\";\nimport { palettes, ColorPalette } from \"@ledgerhq/ui-shared\";\n\nexport type screensBreakpoints = \"sm\" | \"md\" | \"lg\" | \"xl\" | \"xxl\";\n\nexport const breakpoints = {\n sm: \"640px\",\n md: \"768px\",\n lg: \"1024px\",\n xl: \"1280px\",\n xxl: \"1536px\",\n} as Record<screensBreakpoints, string>;\n\nexport const space = [\n /* space indexes:\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 */\n 0,\n 2, 4, 8, 10, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76,\n];\n\nexport type TextVariants =\n | \"h1\"\n | \"h1Inter\"\n | \"h2\"\n | \"h2Inter\"\n | \"h3\"\n | \"h3Inter\"\n | \"h4\"\n | \"h4Inter\"\n | \"h5\"\n | \"h5Inter\"\n | \"large\"\n | \"largeLineHeight\"\n | \"body\"\n | \"bodyLineHeight\"\n | \"paragraph\"\n | \"paragraphLineHeight\"\n | \"small\"\n | \"extraSmall\"\n | \"tiny\"\n | \"micro\"\n | \"subtitle\";\n\nexport type ThemeScale<Type, Aliases extends string> = Array<Type> & Record<Aliases, Type>;\n\nexport const fontSizes = [8, 10, 11, 12, 13, 14, 16, 20, 24, 28, 32, 36] as ThemeScale<\n number,\n TextVariants\n>;\n\n[\n fontSizes.micro,\n fontSizes.tiny,\n fontSizes.extraSmall,\n fontSizes.small,\n fontSizes.paragraph,\n fontSizes.body,\n fontSizes.large,\n fontSizes.h5,\n fontSizes.h4,\n fontSizes.h3,\n fontSizes.h2,\n fontSizes.h1,\n] = fontSizes;\nfontSizes.largeLineHeight = fontSizes.large;\nfontSizes.bodyLineHeight = fontSizes.body;\nfontSizes.paragraphLineHeight = fontSizes.paragraph;\nfontSizes.subtitle = fontSizes.extraSmall;\nfontSizes.h1Inter = fontSizes.h1;\nfontSizes.h2Inter = fontSizes.h2;\nfontSizes.h3Inter = fontSizes.h3;\nfontSizes.h4Inter = fontSizes.h4;\nfontSizes.h5Inter = fontSizes.h5;\n\nconst fontWeights = {\n extraLight: \"100\",\n light: \"300\",\n regular: \"400\",\n medium: \"500\",\n semiBold: \"600\",\n bold: \"700\",\n extraBold: \"800\",\n};\n\nexport const radii = [0, 4, 8, 12, 16, 20];\nexport const shadows = [\"0 4px 8px 0 rgba(0, 0, 0, 0.03)\"];\nexport const zIndexes = [-1, 0, 1, 9, 10, 90, 100, 900, 1000];\n\n// Those fonts are now defined in global.css, this is just a mapping for styled-system\nexport const fontFamilies = {\n Inter: {\n ExtraLight: {\n weight: 100,\n style: \"normal\",\n },\n Light: {\n weight: 300,\n style: \"normal\",\n },\n Regular: {\n weight: 400,\n style: \"normal\",\n },\n Medium: {\n weight: 500,\n style: \"normal\",\n },\n SemiBold: {\n weight: 600,\n style: \"normal\",\n },\n Bold: {\n weight: 700,\n style: \"normal\",\n },\n ExtraBold: {\n weight: 800,\n style: \"normal\",\n },\n },\n Alpha: {\n Medium: {\n weight: 500,\n style: \"normal\",\n },\n },\n};\n\nconst animationDuration = \"0.33s\";\nconst easings = {\n outQuadratic: \"cubic-bezier(0.25, 0.46, 0.45, 0.94)\",\n};\n\nconst transition = (\n properties = [\"all\"],\n duration = animationDuration,\n easing = easings.outQuadratic,\n) => css`\n transition-property: ${properties.join(\",\")};\n transition-duration: ${duration};\n transition-timing-function: ${easing};\n`;\n\nconst fadeIn = keyframes`\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n `;\nconst fadeOut = keyframes`\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n `;\nconst fadeInGrowX = keyframes`\n 0% {\n opacity: 0;\n transform: scaleX(0);\n }\n 100% {\n opacity: 1;\n transform: scaleX(1);\n }\n`;\nconst fadeInUp = keyframes`\n 0% {\n opacity: 0;\n transform: translateY(66%);\n }\n 100% {\n opacity: 1;\n transform: translateY(0%);\n }\n `;\nconst animations = {\n fadeIn: () => css`\n ${fadeIn} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n fadeOut: () => css`\n ${fadeOut} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n fadeInGrowX: () => css`\n ${fadeInGrowX} 0.6s ${easings.outQuadratic} forwards\n `,\n fadeInUp: () => css`\n ${fadeInUp} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n};\nconst overflow = {\n x: css`\n overflow-y: hidden;\n overflow-x: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n y: css`\n overflow-x: hidden;\n overflow-y: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n yAuto: css`\n overflow-x: hidden;\n overflow-y: auto;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n xy: css`\n overflow: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n trackSize: 12,\n};\n\ninterface DefaultTheme {\n theme: \"dark\" | \"light\";\n animations: typeof animations;\n transition: typeof transition;\n overflow: typeof overflow;\n sizes: {\n topBarHeight: number;\n sideBarWidth: number;\n drawer: {\n side: {\n big: {\n width: number;\n };\n small: {\n width: number;\n };\n };\n popin: {\n min: {\n height: number;\n width: number;\n };\n max: {\n height: number;\n width: number;\n };\n };\n };\n };\n radii: number[];\n fontFamilies: Record<string, Record<string, Font>>;\n fontSizes: number[];\n space: number[];\n shadows: string[];\n colors: ColorPalette;\n fontWeights: Record<string, string>;\n breakpoints: Record<screensBreakpoints, string>;\n zIndexes: number[];\n}\n\nconst theme: DefaultTheme = {\n theme: \"light\",\n sizes: {\n drawer: {\n side: {\n big: {\n width: 580,\n },\n small: {\n width: 420,\n },\n },\n popin: {\n min: {\n height: 158,\n width: 462,\n },\n max: {\n height: 522,\n width: 622,\n },\n },\n },\n topBarHeight: 58,\n sideBarWidth: 230,\n },\n radii,\n fontFamilies,\n fontSizes,\n fontWeights,\n space,\n shadows,\n colors: palettes.light,\n animations,\n overflow,\n transition,\n zIndexes,\n breakpoints,\n};\n\nexport default theme;\nexport type Theme = DefaultTheme;\n","// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, getters, values) => {\n\tvar define = (defs, kind) => {\n\t\tfor(var key in defs) {\n\t\t\tif(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {\n\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });\n\t\t\t}\n\t\t}\n\t};\n\tdefine(getters, \"get\");\n\tdefine(values, \"value\");\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import React from \"react\";\nimport Divider from \"./index\";\nimport Text from \"../Text\";\nimport Flex from \"../../layout/Flex\";\nimport styled from \"styled-components\";\n\nconst StyledWrapper = styled(Flex).attrs({ flexDirection: \"column\" })`\n row-gap: 15px;\n`;\n\nexport default {\n title: \"Asorted/Divider\",\n component: Divider,\n argTypes: {\n variant: {\n type: \"enum\",\n defaultValue: \"default\",\n description: \"The small variant is used to display a less noticeable separator.\",\n options: [\"default\", \"light\"],\n control: {\n options: [\"default\", \"light\"],\n control: { type: \"select\" },\n },\n },\n },\n};\n\nconst Template = (args: React.ComponentProps<typeof Divider>) => (\n <StyledWrapper>\n <Text>\n {\n \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer ante mauris, tempor faucibus urna quis, gravida vulputate nisl. Nam nec commodo dui. Quisque semper neque non risus elementum maximus. Nam molestie porttitor nibh, quis tempus quam maximus quis. Phasellus ultrices, leo nec pulvinar volutpat, ipsum purus lobortis metus, eu pharetra eros libero sed dui. Pellentesque in ligula lorem. In id vestibulum ligula. Aliquam quam tellus, ornare non molestie non, ornare vitae ex. Aliquam vel urna nec leo mattis iaculis. Maecenas velit metus, bibendum eu tincidunt et, rhoncus ac elit. Cras tristique quam vel mauris scelerisque aliquet. Donec dapibus lectus at nisi blandit, nec tristique ligula porttitor. Aliquam nec iaculis ex.\"\n }\n </Text>\n <Divider {...args} />\n <Text>\n {\n \"Cras maximus orci eget sem elementum accumsan. Donec at mollis odio, a varius metus. Donec dapibus id elit vitae dignissim. Suspendisse consequat ex ut scelerisque imperdiet. Donec interdum lorem risus. Praesent consectetur lectus vel libero volutpat, id dictum sapien vulputate. Donec vulputate eros at nulla aliquet rutrum sit amet lacinia tortor. Ut pretium, purus eget sollicitudin finibus, eros dolor commodo libero, ut pellentesque mauris odio vitae sem. Nam ornare arcu sit amet posuere vestibulum. Donec eget felis sed erat placerat suscipit.\"\n }\n </Text>\n </StyledWrapper>\n);\n\nexport const Default = Template.bind({});\n"],"names":["React","styled","Flex","Text","DividerBase","p","Divider","props","baseStyled","compose","fontSize","fontWeight","textAlign","lineHeight","letterSpacing","system","fontFamily","textVariantStyle","uppercase","value","variant","color","css","getFontSource","name","fontsPath","fontName","fontStyles","FlexBox","gaps","flexbox","space","position","layout","overflow","border","baseStyles","proxyStyled","Proxy","target","thisArg","argumentsList","property","Color","fontFamilies","rgba","c","a","darken","lighten","mix","b","ff","v","font","type","style","weight","fallback","ensureContrast","color1","color2","colorL1","colorL2","lRatio","prop","keyframes","palettes","breakpoints","fontSizes","fontWeights","radii","shadows","zIndexes","animationDuration","easings","transition","properties","duration","easing","fadeIn","fadeOut","fadeInGrowX","fadeInUp","animations","theme","StyledWrapper","Template","args","Default"],"mappings":";;;;;;;;;;AAA0B;AACa;AACgB;AACjB;AAGtC,MAAMI,cAAcH,4CAAMA,CAACC,4CAAIA,EAAE,KAAK,CAAe,CAACG,IAAqB;QACzE,IAAIA,EAAE,EAAE,IAAI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;;;;;;;;;;;;;;;;;ACpTrB;AACA;AACA;AACA;AACA;AACA,iCAAiC,WAAW;AAC5C;AACA;;;;;ACPA;AACA;AACA;AACA;AACA,0CAA0C,qCAAqC;AAC/E;AACA;AACA;AACA;AACA;AACA,E;;;;ACVA,wF;;;;ACAA;AACA;AACA;AACA,uDAAuD,iBAAiB;AACxE;AACA,gDAAgD,aAAa;AAC7D,E;;;;;;;;;;;;;ACN0B;AACI;AACH;AACU;AACE;AAEvC,MAAMC,gBAAgBrF,4CAAMA,CAACC,4CAAIA,EAAE,KAAK,CAAC;IAAE,eAAe;AAAS,EAAE,CAAC;;AAEtE,CAAC;AAED,sDAAe;IACb,OAAO;IACP,WAAWI,kCAAOA;IAClB,UAAU;QACR,SAAS;YACP,MAAM;YACN,cAAc;YACd,aAAa;YACb,SAAS;gBAAC;gBAAW;aAAQ;YAC7B,SAAS;gBACP,SAAS;oBAAC;oBAAW;iBAAQ;gBAC7B,SAAS;oBAAE,MAAM;gBAAS;YAC5B;QACF;IACF;AACF,CAAC,EAAC;AAEF,MAAMiF,WAAW,CAACC,qBAChB,+CAACF,mCACC,+CAACnF,iCAAIA,QAED,ovBAGJ,+CAACG,kCAAOA,EAAKkF,qBACb,+CAACrF,iCAAIA,QAED;AAMD,MAAMsF,UAAUF,SAAS,IAAI,CAAC,CAAC,GAAG"}
|
|
@@ -1,393 +0,0 @@
|
|
|
1
|
-
(() => {
|
|
2
|
-
"use strict";
|
|
3
|
-
var __webpack_modules__ = ({
|
|
4
|
-
5437(__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_components__rspack_import_1 = __webpack_require__(2770);
|
|
8
|
-
/* import */ var styled_components__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_1);
|
|
9
|
-
/* import */ var _layout_Flex__rspack_import_2 = __webpack_require__(3696);
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const DEFAULT_BOX_SIZE = 40;
|
|
14
|
-
const DEFAULT_ICON_SIZE = 16;
|
|
15
|
-
const DEFAULT_BADGE_SIZE = 20;
|
|
16
|
-
function getClipRectangleSize(badgeSize) {
|
|
17
|
-
return 3 / 4 * badgeSize;
|
|
18
|
-
}
|
|
19
|
-
const getTopRightSquareClippedPolygon = (boxSize, rectangleSize)=>{
|
|
20
|
-
// clipping path that hides top right square of size `${rectangleSize}px`
|
|
21
|
-
const diff = boxSize - rectangleSize;
|
|
22
|
-
return `polygon(0 0, 0 0, 0 0, ${diff}px 0, ${diff}px ${rectangleSize}px, 100% ${rectangleSize}px, 100% 100%, 100% 100%, 100% 100%, 0 100%, 0 100%, 0 100%)`;
|
|
23
|
-
};
|
|
24
|
-
const Container = styled_components__rspack_import_1_default()((0,_layout_Flex__rspack_import_2["default"])).attrs((p)=>({
|
|
25
|
-
heigth: p.size,
|
|
26
|
-
width: p.size,
|
|
27
|
-
alignItems: "center",
|
|
28
|
-
justifyContent: "center",
|
|
29
|
-
position: "relative"
|
|
30
|
-
}))``;
|
|
31
|
-
const IconBoxBackground = styled_components__rspack_import_1_default()((0,_layout_Flex__rspack_import_2["default"]))`
|
|
32
|
-
position: absolute;
|
|
33
|
-
height: ${(p)=>p.size}px;
|
|
34
|
-
width: ${(p)=>p.size}px;
|
|
35
|
-
${(p)=>{
|
|
36
|
-
return p.hasBadge && `clip-path: ${getTopRightSquareClippedPolygon(p.size, getClipRectangleSize(p.badgeSize))};`;
|
|
37
|
-
}};
|
|
38
|
-
border-radius: ${(p)=>p.theme.radii[2]}px;
|
|
39
|
-
`;
|
|
40
|
-
const BadgeContainer = (styled_components__rspack_import_1_default().div)`
|
|
41
|
-
position: absolute;
|
|
42
|
-
${(p)=>`
|
|
43
|
-
top: -${p.badgeSize / 2 - 2}px;
|
|
44
|
-
right: -${p.badgeSize / 2 - 2}px;`}
|
|
45
|
-
`;
|
|
46
|
-
const IconBox = ({ Badge, size = DEFAULT_BOX_SIZE, children, borderColor = "neutral.c40", badgeColor, badgeSize = DEFAULT_BADGE_SIZE })=>{
|
|
47
|
-
const hasBadge = !!Badge;
|
|
48
|
-
return /*#__PURE__*/ react__rspack_import_0_default().createElement(Container, {
|
|
49
|
-
size: size
|
|
50
|
-
}, /*#__PURE__*/ react__rspack_import_0_default().createElement(IconBoxBackground, {
|
|
51
|
-
size: size,
|
|
52
|
-
badgeSize: badgeSize,
|
|
53
|
-
hasBadge: hasBadge,
|
|
54
|
-
border: "1px solid",
|
|
55
|
-
borderColor: borderColor
|
|
56
|
-
}), children, hasBadge && /*#__PURE__*/ react__rspack_import_0_default().createElement(BadgeContainer, {
|
|
57
|
-
badgeSize: badgeSize
|
|
58
|
-
}, /*#__PURE__*/ react__rspack_import_0_default().createElement(Badge, {
|
|
59
|
-
size: badgeSize,
|
|
60
|
-
color: badgeColor
|
|
61
|
-
})));
|
|
62
|
-
};
|
|
63
|
-
const BoxedIcon = ({ Icon, iconSize = DEFAULT_ICON_SIZE, iconColor, ...iconBoxProps })=>{
|
|
64
|
-
return /*#__PURE__*/ react__rspack_import_0_default().createElement(IconBox, iconBoxProps, /*#__PURE__*/ react__rspack_import_0_default().createElement(Icon, {
|
|
65
|
-
size: iconSize || DEFAULT_ICON_SIZE,
|
|
66
|
-
color: iconColor
|
|
67
|
-
}));
|
|
68
|
-
};
|
|
69
|
-
/* export default */ const __rspack_default_export = (BoxedIcon);
|
|
70
|
-
|
|
71
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
72
|
-
}, {
|
|
73
|
-
DEFAULT_BADGE_SIZE: DEFAULT_BADGE_SIZE,
|
|
74
|
-
DEFAULT_BOX_SIZE: DEFAULT_BOX_SIZE,
|
|
75
|
-
DEFAULT_ICON_SIZE: DEFAULT_ICON_SIZE,
|
|
76
|
-
"default": __rspack_default_export
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
},
|
|
81
|
-
1215(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
82
|
-
/* import */ var _ledgerhq_icons_ui_reactLegacy__rspack_import_0 = __webpack_require__(9979);
|
|
83
|
-
/* import */ var _ledgerhq_icons_ui_reactLegacy__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(_ledgerhq_icons_ui_reactLegacy__rspack_import_0);
|
|
84
|
-
/* import */ var react__rspack_import_1 = __webpack_require__(2015);
|
|
85
|
-
/* import */ var react__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_1);
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
const iconNames = Array.from(Object.keys(_ledgerhq_icons_ui_reactLegacy__rspack_import_0).reduce((set, rawKey)=>{
|
|
89
|
-
const key = rawKey.replace(/(.+)(Medium)+$/g, "$1");
|
|
90
|
-
if (!set.has(key)) set.add(key);
|
|
91
|
-
return set;
|
|
92
|
-
}, new Set()));
|
|
93
|
-
const Icon = ({ name, size = 16, color = "currentColor", weight = "Medium" })=>{
|
|
94
|
-
const maybeIconName = `${name}${weight}`;
|
|
95
|
-
if (maybeIconName in _ledgerhq_icons_ui_reactLegacy__rspack_import_0) {
|
|
96
|
-
// @ts-expect-error FIXME I don't know how to make you happy ts
|
|
97
|
-
const Component = _ledgerhq_icons_ui_reactLegacy__rspack_import_0[maybeIconName];
|
|
98
|
-
return /*#__PURE__*/ react__rspack_import_1_default().createElement(Component, {
|
|
99
|
-
size: size,
|
|
100
|
-
color: color
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
return null;
|
|
104
|
-
};
|
|
105
|
-
/* export default */ const __rspack_default_export = (Icon);
|
|
106
|
-
|
|
107
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
108
|
-
}, {
|
|
109
|
-
"default": __rspack_default_export,
|
|
110
|
-
iconNames: iconNames
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
},
|
|
115
|
-
3696(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
116
|
-
/* import */ var _styled__rspack_import_0 = __webpack_require__(7680);
|
|
117
|
-
|
|
118
|
-
const FlexBox = _styled__rspack_import_0["default"].div.attrs({
|
|
119
|
-
display: "flex",
|
|
120
|
-
minWidth: 0
|
|
121
|
-
})``;
|
|
122
|
-
/* export default */ const __rspack_default_export = (FlexBox);
|
|
123
|
-
|
|
124
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
125
|
-
}, {
|
|
126
|
-
"default": __rspack_default_export
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
},
|
|
131
|
-
7680(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
132
|
-
/* import */ var _styles_system_gaps__rspack_import_2 = __webpack_require__(4182);
|
|
133
|
-
/* import */ var styled_components__rspack_import_0 = __webpack_require__(2770);
|
|
134
|
-
/* import */ var styled_components__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_0);
|
|
135
|
-
/* import */ var styled_system__rspack_import_1 = __webpack_require__(9351);
|
|
136
|
-
/* import */ var styled_system__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_1);
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
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);
|
|
141
|
-
const proxyStyled = new Proxy((styled_components__rspack_import_0_default()), {
|
|
142
|
-
apply (target, thisArg, argumentsList) {
|
|
143
|
-
return styled_components__rspack_import_0_default()(target.apply(thisArg, argumentsList)(baseStyles));
|
|
144
|
-
},
|
|
145
|
-
get (target, property) {
|
|
146
|
-
if (typeof target[property] === "function") {
|
|
147
|
-
return styled_components__rspack_import_0_default()(target[property].apply((styled_components__rspack_import_0_default()), [
|
|
148
|
-
baseStyles
|
|
149
|
-
]));
|
|
150
|
-
}
|
|
151
|
-
return target[property];
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
/* export default */ const __rspack_default_export = (proxyStyled);
|
|
155
|
-
|
|
156
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
157
|
-
}, {
|
|
158
|
-
"default": __rspack_default_export
|
|
159
|
-
});
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
},
|
|
163
|
-
4182(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
164
|
-
/* import */ var styled_system__rspack_import_0 = __webpack_require__(9351);
|
|
165
|
-
/* import */ var styled_system__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_0);
|
|
166
|
-
|
|
167
|
-
const gaps = (0,styled_system__rspack_import_0.system)({
|
|
168
|
-
rowGap: {
|
|
169
|
-
property: "rowGap",
|
|
170
|
-
scale: "space"
|
|
171
|
-
},
|
|
172
|
-
columnGap: {
|
|
173
|
-
property: "columnGap",
|
|
174
|
-
scale: "space"
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
/* export default */ const __rspack_default_export = (gaps);
|
|
178
|
-
|
|
179
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
180
|
-
}, {
|
|
181
|
-
"default": __rspack_default_export
|
|
182
|
-
});
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
},
|
|
186
|
-
9979(module) {
|
|
187
|
-
module.exports = require("@ledgerhq/icons-ui/reactLegacy");
|
|
188
|
-
|
|
189
|
-
},
|
|
190
|
-
2015(module) {
|
|
191
|
-
module.exports = require("react");
|
|
192
|
-
|
|
193
|
-
},
|
|
194
|
-
2770(module) {
|
|
195
|
-
module.exports = require("styled-components");
|
|
196
|
-
|
|
197
|
-
},
|
|
198
|
-
9351(module) {
|
|
199
|
-
module.exports = require("styled-system");
|
|
200
|
-
|
|
201
|
-
},
|
|
202
|
-
|
|
203
|
-
});
|
|
204
|
-
// The module cache
|
|
205
|
-
var __webpack_module_cache__ = {};
|
|
206
|
-
|
|
207
|
-
// The require function
|
|
208
|
-
function __webpack_require__(moduleId) {
|
|
209
|
-
|
|
210
|
-
// Check if module is in cache
|
|
211
|
-
var cachedModule = __webpack_module_cache__[moduleId];
|
|
212
|
-
if (cachedModule !== undefined) {
|
|
213
|
-
return cachedModule.exports;
|
|
214
|
-
}
|
|
215
|
-
// Create a new module (and put it into the cache)
|
|
216
|
-
var module = (__webpack_module_cache__[moduleId] = {
|
|
217
|
-
exports: {}
|
|
218
|
-
});
|
|
219
|
-
// Execute the module function
|
|
220
|
-
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
221
|
-
|
|
222
|
-
// Return the exports of the module
|
|
223
|
-
return module.exports;
|
|
224
|
-
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
// webpack/runtime/compat_get_default_export
|
|
228
|
-
(() => {
|
|
229
|
-
// getDefaultExport function for compatibility with non-ESM modules
|
|
230
|
-
__webpack_require__.n = (module) => {
|
|
231
|
-
var getter = module && module.__esModule ?
|
|
232
|
-
() => (module['default']) :
|
|
233
|
-
() => (module);
|
|
234
|
-
__webpack_require__.d(getter, { a: getter });
|
|
235
|
-
return getter;
|
|
236
|
-
};
|
|
237
|
-
|
|
238
|
-
})();
|
|
239
|
-
// webpack/runtime/define_property_getters
|
|
240
|
-
(() => {
|
|
241
|
-
__webpack_require__.d = (exports, getters, values) => {
|
|
242
|
-
var define = (defs, kind) => {
|
|
243
|
-
for(var key in defs) {
|
|
244
|
-
if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
|
|
245
|
-
Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
};
|
|
249
|
-
define(getters, "get");
|
|
250
|
-
define(values, "value");
|
|
251
|
-
};
|
|
252
|
-
})();
|
|
253
|
-
// webpack/runtime/has_own_property
|
|
254
|
-
(() => {
|
|
255
|
-
__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
256
|
-
})();
|
|
257
|
-
// webpack/runtime/make_namespace_object
|
|
258
|
-
(() => {
|
|
259
|
-
// define __esModule on exports
|
|
260
|
-
__webpack_require__.r = (exports) => {
|
|
261
|
-
if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
262
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
263
|
-
}
|
|
264
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
265
|
-
};
|
|
266
|
-
})();
|
|
267
|
-
var __webpack_exports__ = {};
|
|
268
|
-
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
|
|
269
|
-
(() => {
|
|
270
|
-
__webpack_require__.r(__webpack_exports__);
|
|
271
|
-
/* import */ var react__rspack_import_0 = __webpack_require__(2015);
|
|
272
|
-
/* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
|
|
273
|
-
/* import */ var _Icon__rspack_import_1 = __webpack_require__(1215);
|
|
274
|
-
/* import */ var _BoxedIcon__rspack_import_2 = __webpack_require__(5437);
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
const ExampleIcon = ({ size, color, name })=>/*#__PURE__*/ react__rspack_import_0_default().createElement(_Icon__rspack_import_1["default"], {
|
|
279
|
-
name: name,
|
|
280
|
-
size,
|
|
281
|
-
color
|
|
282
|
-
});
|
|
283
|
-
const Story = {
|
|
284
|
-
title: "Asorted/Icons/BoxedIcon",
|
|
285
|
-
component: _BoxedIcon__rspack_import_2["default"],
|
|
286
|
-
argTypes: {
|
|
287
|
-
exampleIconName: {
|
|
288
|
-
type: "enum",
|
|
289
|
-
description: "[Not a BoxedIcon prop, only for this Storybook example] - Icon name. Value is passed to the `Icon` component of this UI library which is then used for the `Icon` prop.",
|
|
290
|
-
options: _Icon__rspack_import_1.iconNames,
|
|
291
|
-
control: {
|
|
292
|
-
type: "select"
|
|
293
|
-
}
|
|
294
|
-
},
|
|
295
|
-
exampleBadgeName: {
|
|
296
|
-
type: "enum",
|
|
297
|
-
description: "[Not a BoxedIcon prop, only for this Storybook example] - Badge icon name. Value is passed to the `Icon` component of this UI library which is then used for the `Badge` prop.",
|
|
298
|
-
options: _Icon__rspack_import_1.iconNames,
|
|
299
|
-
control: {
|
|
300
|
-
type: "select"
|
|
301
|
-
}
|
|
302
|
-
},
|
|
303
|
-
exampleBadgeEnabled: {
|
|
304
|
-
type: "boolean",
|
|
305
|
-
description: "[Not a BoxedIcon prop, only for this Storybook example] - Controls whether a `Badge` prop is passed to the `BoxedIcon` component."
|
|
306
|
-
},
|
|
307
|
-
Badge: {
|
|
308
|
-
control: false
|
|
309
|
-
},
|
|
310
|
-
Icon: {
|
|
311
|
-
control: false
|
|
312
|
-
},
|
|
313
|
-
iconColor: {
|
|
314
|
-
type: "string",
|
|
315
|
-
control: {
|
|
316
|
-
type: "color"
|
|
317
|
-
}
|
|
318
|
-
},
|
|
319
|
-
badgeColor: {
|
|
320
|
-
type: "string",
|
|
321
|
-
control: {
|
|
322
|
-
type: "color"
|
|
323
|
-
}
|
|
324
|
-
},
|
|
325
|
-
borderColor: {
|
|
326
|
-
type: "string",
|
|
327
|
-
control: {
|
|
328
|
-
type: "color"
|
|
329
|
-
}
|
|
330
|
-
},
|
|
331
|
-
iconSize: {
|
|
332
|
-
type: "number"
|
|
333
|
-
},
|
|
334
|
-
badgeSize: {
|
|
335
|
-
type: "number"
|
|
336
|
-
},
|
|
337
|
-
size: {
|
|
338
|
-
type: "number"
|
|
339
|
-
}
|
|
340
|
-
},
|
|
341
|
-
args: {
|
|
342
|
-
exampleIconName: "Activity",
|
|
343
|
-
exampleBadgeName: "CircledCheckSolid",
|
|
344
|
-
exampleBadgeEnabled: true,
|
|
345
|
-
iconColor: "hsla(110, 50%, 57%, 1)",
|
|
346
|
-
badgeColor: "hsla(110, 50%, 57%, 1)",
|
|
347
|
-
borderColor: "success.c40",
|
|
348
|
-
iconSize: _BoxedIcon__rspack_import_2.DEFAULT_ICON_SIZE,
|
|
349
|
-
badgeSize: _BoxedIcon__rspack_import_2.DEFAULT_BADGE_SIZE,
|
|
350
|
-
size: _BoxedIcon__rspack_import_2.DEFAULT_BOX_SIZE
|
|
351
|
-
}
|
|
352
|
-
};
|
|
353
|
-
/* export default */ const __rspack_default_export = (Story);
|
|
354
|
-
const BoxedIconTemplate = (args)=>{
|
|
355
|
-
const badgeColor = args.badgeColor;
|
|
356
|
-
const badgeSize = args.badgeSize;
|
|
357
|
-
const borderColor = args.borderColor;
|
|
358
|
-
const iconColor = args.iconColor;
|
|
359
|
-
const IconComp = args.Icon || ((props)=>/*#__PURE__*/ react__rspack_import_0_default().createElement(ExampleIcon, {
|
|
360
|
-
...props,
|
|
361
|
-
name: args.exampleIconName
|
|
362
|
-
}));
|
|
363
|
-
const BadgeComp = args.Badge || ((props)=>/*#__PURE__*/ react__rspack_import_0_default().createElement(ExampleIcon, {
|
|
364
|
-
...props,
|
|
365
|
-
name: args.exampleBadgeName
|
|
366
|
-
}));
|
|
367
|
-
const iconSize = args.iconSize;
|
|
368
|
-
const size = args.size;
|
|
369
|
-
return /*#__PURE__*/ react__rspack_import_0_default().createElement(_BoxedIcon__rspack_import_2["default"], {
|
|
370
|
-
Icon: IconComp,
|
|
371
|
-
Badge: args.exampleBadgeEnabled ? BadgeComp : undefined,
|
|
372
|
-
badgeColor: badgeColor,
|
|
373
|
-
badgeSize: badgeSize,
|
|
374
|
-
borderColor: borderColor,
|
|
375
|
-
iconColor: iconColor,
|
|
376
|
-
iconSize: iconSize,
|
|
377
|
-
size: size
|
|
378
|
-
});
|
|
379
|
-
};
|
|
380
|
-
const BoxedIcon = BoxedIconTemplate.bind({});
|
|
381
|
-
|
|
382
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
383
|
-
}, {
|
|
384
|
-
BoxedIcon: BoxedIcon,
|
|
385
|
-
"default": __rspack_default_export
|
|
386
|
-
});
|
|
387
|
-
|
|
388
|
-
})();
|
|
389
|
-
|
|
390
|
-
module.exports = __webpack_exports__;
|
|
391
|
-
})()
|
|
392
|
-
;
|
|
393
|
-
//# sourceMappingURL=BoxedIcon.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"components/asorted/Icon/BoxedIcon.stories.js","sources":["webpack://@ledgerhq/react-ui/./src/components/asorted/Icon/BoxedIcon.tsx","webpack://@ledgerhq/react-ui/./src/components/asorted/Icon/Icon.tsx","webpack://@ledgerhq/react-ui/./src/components/layout/Flex/index.ts","webpack://@ledgerhq/react-ui/./src/components/styled.ts","webpack://@ledgerhq/react-ui/./src/styles/system/gaps.ts","webpack://@ledgerhq/react-ui/webpack/runtime/compat_get_default_export","webpack://@ledgerhq/react-ui/webpack/runtime/define_property_getters","webpack://@ledgerhq/react-ui/webpack/runtime/has_own_property","webpack://@ledgerhq/react-ui/webpack/runtime/make_namespace_object","webpack://@ledgerhq/react-ui/./src/components/asorted/Icon/BoxedIcon.stories.tsx"],"sourcesContent":["import React from \"react\";\nimport styled from \"styled-components\";\nimport Flex from \"../../layout/Flex\";\n\nexport const DEFAULT_BOX_SIZE = 40;\nexport const DEFAULT_ICON_SIZE = 16;\nexport const DEFAULT_BADGE_SIZE = 20;\n\nfunction getClipRectangleSize(badgeSize: number): number {\n return (3 / 4) * badgeSize;\n}\n\nconst getTopRightSquareClippedPolygon = (boxSize: number, rectangleSize: number) => {\n // clipping path that hides top right square of size `${rectangleSize}px`\n const diff = boxSize - rectangleSize;\n return `polygon(0 0, 0 0, 0 0, ${diff}px 0, ${diff}px ${rectangleSize}px, 100% ${rectangleSize}px, 100% 100%, 100% 100%, 100% 100%, 0 100%, 0 100%, 0 100%)`;\n};\n\nconst Container = styled(Flex).attrs((p: { size: number }) => ({\n heigth: p.size,\n width: p.size,\n alignItems: \"center\",\n justifyContent: \"center\",\n position: \"relative\",\n}))<{ size: number }>``;\n\nconst IconBoxBackground = styled(Flex)<{ size: number; badgeSize: number; hasBadge: boolean }>`\n position: absolute;\n height: ${p => p.size}px;\n width: ${p => p.size}px;\n ${p => {\n return (\n p.hasBadge &&\n `clip-path: ${getTopRightSquareClippedPolygon(p.size, getClipRectangleSize(p.badgeSize))};`\n );\n }};\n border-radius: ${p => p.theme.radii[2]}px;\n`;\n\nconst BadgeContainer = styled.div<{ badgeSize: number }>`\n position: absolute;\n ${p => `\n top: -${p.badgeSize / 2 - 2}px;\n right: -${p.badgeSize / 2 - 2}px;`}\n`;\n\nexport type IconProps = {\n size?: number;\n color?: string;\n};\n\nexport type IconBoxProps = {\n /**\n * Component that takes `{size?: number; color?: string}` as props. Will be rendered at the top right with the size provided in `badgeSize` or a default size.\n */\n Badge?: React.ComponentType<IconProps> | ((props: IconProps) => React.JSX.Element);\n /**\n * Color of the border\n */\n borderColor?: string;\n /**\n * Badge color, will be applied to the component provided in the `Badge` prop\n */\n badgeColor?: string;\n /**\n * Badge size, will be applied to the component provided in the `Badge` prop\n */\n badgeSize?: number;\n children?: React.JSX.Element;\n /**\n * Box size for preview\n */\n size?: number;\n};\n\nexport type BoxedIconProps = IconBoxProps & {\n /**\n * Component that takes `{size?: number; color?: string}` as props. Will be rendered at the top right with the size provided in `iconSize` or a default size.\n */\n Icon: React.ComponentType<IconProps> | ((props: IconProps) => React.JSX.Element);\n /**\n * Icon size, will be applied to the component provided in the `Icon` prop\n */\n iconSize?: number;\n /**\n * Icon color, will be applied to the component provided in the `Icon` prop\n */\n iconColor?: string;\n};\n\nexport const IconBox = ({\n Badge,\n size = DEFAULT_BOX_SIZE,\n children,\n borderColor = \"neutral.c40\",\n badgeColor,\n badgeSize = DEFAULT_BADGE_SIZE,\n}: IconBoxProps) => {\n const hasBadge = !!Badge;\n return (\n <Container size={size}>\n <IconBoxBackground\n size={size}\n badgeSize={badgeSize}\n hasBadge={hasBadge}\n border=\"1px solid\"\n borderColor={borderColor}\n />\n {children}\n {hasBadge && (\n <BadgeContainer badgeSize={badgeSize}>\n <Badge size={badgeSize} color={badgeColor} />\n </BadgeContainer>\n )}\n </Container>\n );\n};\n\nconst BoxedIcon = ({\n Icon,\n iconSize = DEFAULT_ICON_SIZE,\n iconColor,\n ...iconBoxProps\n}: BoxedIconProps) => {\n return (\n <IconBox {...iconBoxProps}>\n <Icon size={iconSize || DEFAULT_ICON_SIZE} color={iconColor} />\n </IconBox>\n );\n};\n\nexport default BoxedIcon;\n","import * as icons from \"@ledgerhq/icons-ui/reactLegacy\";\nimport React from \"react\";\n\nexport type Props = {\n name: string;\n size?: number;\n weight?: \"Medium\";\n color?: string;\n};\n\nexport const iconNames = Array.from(\n Object.keys(icons).reduce((set, rawKey) => {\n const key = rawKey.replace(/(.+)(Medium)+$/g, \"$1\");\n if (!set.has(key)) set.add(key);\n return set;\n }, new Set<string>()),\n);\n\nconst Icon = ({\n name,\n size = 16,\n color = \"currentColor\",\n weight = \"Medium\",\n}: Props): React.JSX.Element | null => {\n const maybeIconName = `${name}${weight}`;\n if (maybeIconName in icons) {\n // @ts-expect-error FIXME I don't know how to make you happy ts\n const Component = icons[maybeIconName];\n return <Component size={size} color={color} />;\n }\n return null;\n};\n\nexport default Icon;\n","import baseStyled, { BaseStyledProps } from \"../../styled\";\n\nconst FlexBox = baseStyled.div.attrs<BaseStyledProps, BaseStyledProps>({\n display: \"flex\",\n minWidth: 0,\n})``;\nexport type FlexBoxProps = BaseStyledProps & React.HTMLAttributes<HTMLDivElement>;\n\nexport default FlexBox;\n","import React from \"react\";\nimport gaps from \"../styles/system/gaps\";\nimport styled, { StyledInterface, InterpolationFunction } from \"styled-components\";\nimport {\n compose,\n flexbox,\n FlexboxProps,\n space,\n SpaceProps,\n position,\n PositionProps,\n color,\n ColorProps,\n layout,\n LayoutProps,\n overflow,\n OverflowProps,\n border,\n BorderProps,\n} from \"styled-system\";\n\nexport type BaseStyledProps = SpaceProps &\n FlexboxProps &\n PositionProps &\n ColorProps &\n LayoutProps &\n BorderProps &\n OverflowProps & {\n /**\n * The columnGap CSS property sets the size of the gap (gutter) between an element's grid columns.\n */\n columnGap?: string | number;\n /**\n * The rowGap CSS property sets the size of the gap (gutter) between an element's grid rows.\n */\n rowGap?: string | number;\n color?: string;\n children?: React.ReactNode;\n };\n\nexport const baseStyles: InterpolationFunction<unknown> = compose(\n flexbox,\n space,\n position,\n color,\n layout,\n overflow,\n gaps,\n border,\n);\n\nconst proxyStyled = new Proxy(styled, {\n apply(target: typeof styled, thisArg, argumentsList: Parameters<typeof styled>) {\n return styled(target.apply(thisArg, argumentsList)(baseStyles));\n },\n get(target, property: keyof typeof styled) {\n if (typeof target[property] === \"function\") {\n return styled(target[property].apply(styled, [baseStyles]));\n }\n return target[property];\n },\n});\n\nexport default <StyledInterface>proxyStyled;\n","import { system } from \"styled-system\";\n\nconst gaps = system({\n rowGap: { property: \"rowGap\", scale: \"space\" },\n columnGap: { property: \"columnGap\", scale: \"space\" },\n});\n\nexport default gaps;\n","// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, getters, values) => {\n\tvar define = (defs, kind) => {\n\t\tfor(var key in defs) {\n\t\t\tif(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {\n\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });\n\t\t\t}\n\t\t}\n\t};\n\tdefine(getters, \"get\");\n\tdefine(values, \"value\");\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import React from \"react\";\nimport Icon, { iconNames } from \"./Icon\";\nimport BoxedIconC, {\n BoxedIconProps,\n IconProps,\n DEFAULT_BOX_SIZE,\n DEFAULT_ICON_SIZE,\n DEFAULT_BADGE_SIZE,\n} from \"./BoxedIcon\";\n\nconst ExampleIcon = ({ size, color, name }: IconProps & { name: string }) => (\n <Icon name={name} {...{ size, color }} />\n);\n\nconst Story = {\n title: \"Asorted/Icons/BoxedIcon\",\n component: BoxedIconC,\n argTypes: {\n exampleIconName: {\n type: \"enum\",\n description:\n \"[Not a BoxedIcon prop, only for this Storybook example] - Icon name. Value is passed to the `Icon` component of this UI library which is then used for the `Icon` prop.\",\n options: iconNames,\n control: { type: \"select\" },\n },\n exampleBadgeName: {\n type: \"enum\",\n description:\n \"[Not a BoxedIcon prop, only for this Storybook example] - Badge icon name. Value is passed to the `Icon` component of this UI library which is then used for the `Badge` prop.\",\n options: iconNames,\n control: { type: \"select\" },\n },\n exampleBadgeEnabled: {\n type: \"boolean\",\n description:\n \"[Not a BoxedIcon prop, only for this Storybook example] - Controls whether a `Badge` prop is passed to the `BoxedIcon` component.\",\n },\n Badge: {\n control: false,\n },\n Icon: {\n control: false,\n },\n iconColor: {\n type: \"string\",\n control: { type: \"color\" },\n },\n badgeColor: {\n type: \"string\",\n control: { type: \"color\" },\n },\n borderColor: {\n type: \"string\",\n control: { type: \"color\" },\n },\n iconSize: {\n type: \"number\",\n },\n badgeSize: {\n type: \"number\",\n },\n size: {\n type: \"number\",\n },\n },\n args: {\n exampleIconName: \"Activity\",\n exampleBadgeName: \"CircledCheckSolid\",\n exampleBadgeEnabled: true,\n iconColor: \"hsla(110, 50%, 57%, 1)\",\n badgeColor: \"hsla(110, 50%, 57%, 1)\",\n borderColor: \"success.c40\",\n iconSize: DEFAULT_ICON_SIZE,\n badgeSize: DEFAULT_BADGE_SIZE,\n size: DEFAULT_BOX_SIZE,\n },\n};\n\nexport default Story;\n\nconst BoxedIconTemplate = (\n args: BoxedIconProps & {\n exampleIconName: string;\n exampleBadgeName: string;\n exampleBadgeEnabled: boolean;\n },\n) => {\n const badgeColor = args.badgeColor;\n const badgeSize = args.badgeSize;\n const borderColor = args.borderColor;\n const iconColor = args.iconColor;\n const IconComp =\n args.Icon || ((props: IconProps) => <ExampleIcon {...props} name={args.exampleIconName} />);\n const BadgeComp =\n args.Badge || ((props: IconProps) => <ExampleIcon {...props} name={args.exampleBadgeName} />);\n const iconSize = args.iconSize;\n const size = args.size;\n\n return (\n <BoxedIconC\n Icon={IconComp}\n Badge={args.exampleBadgeEnabled ? BadgeComp : undefined}\n badgeColor={badgeColor}\n badgeSize={badgeSize}\n borderColor={borderColor}\n iconColor={iconColor}\n iconSize={iconSize}\n size={size}\n />\n );\n};\n\nexport const BoxedIcon = BoxedIconTemplate.bind({});\n"],"names":["React","styled","Flex","DEFAULT_BOX_SIZE","DEFAULT_ICON_SIZE","DEFAULT_BADGE_SIZE","getClipRectangleSize","badgeSize","getTopRightSquareClippedPolygon","boxSize","rectangleSize","diff","Container","p","IconBoxBackground","BadgeContainer","IconBox","Badge","size","children","borderColor","badgeColor","hasBadge","BoxedIcon","Icon","iconSize","iconColor","iconBoxProps","icons","iconNames","Array","Object","set","rawKey","key","Set","name","color","weight","maybeIconName","Component","baseStyled","FlexBox","gaps","compose","flexbox","space","position","layout","overflow","border","baseStyles","proxyStyled","Proxy","target","thisArg","argumentsList","property","system","BoxedIconC","ExampleIcon","Story","BoxedIconTemplate","args","IconComp","props","BadgeComp","undefined"],"mappings":";;;;;;;;;AAA0B;AACa;AACF;AAE9B,MAAMG,mBAAmB,GAAG;AAC5B,MAAMC,oBAAoB,GAAG;AAC7B,MAAMC,qBAAqB,GAAG;AAErC,SAASC,qBAAqBC,SAAiB;IAC7C,OAAQ,IAAI,IAAKA;AACnB;AAEA,MAAMC,kCAAkC,CAACC,SAAiBC;IACxD,yEAAyE;IACzE,MAAMC,OAAOF,UAAUC;IACvB,OAAO,CAAC,uBAAuB,EAAEC,KAAK,MAAM,EAAEA,KA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